Skip to content

Wave 1 (§13.21): add Authoritative-for headers to 11 shipped surfaces - #21

Merged
artyhoo merged 13 commits into
mainfrom
wave-1/13.21-doc-authority-headers
May 9, 2026
Merged

Wave 1 (§13.21): add Authoritative-for headers to 11 shipped surfaces#21
artyhoo merged 13 commits into
mainfrom
wave-1/13.21-doc-authority-headers

Conversation

@artyhoo

@artyhoo artyhoo commented May 9, 2026

Copy link
Copy Markdown
Owner

Summary

Wave 1 of §13.21 closure plan — adds Authoritative for: blockquote headers to the 11 consumer-shipped files enumerated in revision §7. Generic phrasing per .claude/rules/doc-authority-hierarchy.md §3.

Wave 1 must merge before Wave 2 — Wave 2 extends principle 09 REQUIRED_HEADER_DOCS to include these 11 paths; without Wave 1 shipped first, principle 09 fails-load on the canonical-list extension.

Files changed (11)

Templates copied to consumer .ai-factory/ and project root:

  • packages/core/templates/shared/AGENTS.md.template
  • packages/core/templates/shared/CLAUDE.md.template
  • packages/core/templates/shared/DESCRIPTION.template.md
  • packages/core/templates/shared/ARCHITECTURE.ts-server.md
  • packages/core/templates/shared/integration-rules.md

Preset-next-15 rules + arch:

  • packages/preset-next-15-canonical/RULES.md
  • packages/preset-next-15-canonical/RULES.react-next.md
  • packages/preset-next-15-canonical/templates/ARCHITECTURE.react-next.md

Sub-agent prompts copied via install.sh:138-141:

  • agents/best-practices-sidecar.md
  • agents/review-sidecar.md
  • agents/docs-auditor.md

All carry NOT authoritative for: project goal — see consumer's README.md — these are consumer-shipped; goal authority lives in the consumer's README, not this framework's.

Acceptance criteria (revision §«Wave 1»)

  • Each of the 11 files contains exactly one line matching ^> \*\*Authoritative for:\*\* (verified pre-commit; 11/11)
  • Each of the 11 files contains exactly one line matching ^> \*\*NOT authoritative for:\*\* (verified; 11/11)
  • Each commit carries the escape-hatch Prior-art: trailer per CLAUDE.md «What is a capability commit» (11/11 trailers — non-capability prose-only edits)
  • One commit per file (11 commits) — atomic, retro-friendly
  • YAML frontmatter integrity preserved on the 4 files that had it (3 sub-agents + integration-rules.md)
  • Pre-push hook green: zizmor 0 findings, 5/5 negative-probe tests, 41/41 vitest principles
  • Diff: 11 files, +33 / -0 (pure additions, no deletions)

Order constraint

This PR (Wave 1) must merge before Wave 2 PR opens. Wave 2 will:

  1. Append these 11 paths to REQUIRED_HEADER_DOCS at packages/core/principles/09-doc-authority-hierarchy.test.ts:45-87
  2. Add EXEMPT_PATTERNS for fixtures
  3. Add positive+mutation meta-test pair for the exemption mechanism
  4. Land SSOT entries feat(phase-8): acceptance gate Next 15->16 + canonical regen + GO verdict for Phase 9 #11-docs: Phase 9 implementation prompt draft (PHASE-9-PROMPT.md) #15 in same commit (per prior-art-evaluations.md §3)

If Wave 2 lands first, principle 09 fails-load — that's the intended interlock per revision doc §«Wave 1-4 deliverables breakdown».

Test plan

  • Reviewer: confirm all 11 files match ^> \*\*Authoritative for:\*\* blockquote line (grep -lE '^> \*\*Authoritative for:\*\*' <11 paths>)
  • Reviewer: confirm scope sentences match revision §7 add-list intent (specific, not «everything related to X», per .claude/rules/doc-authority-hierarchy.md §3 «Scope statement style»)
  • Reviewer: confirm NOT authoritative for: project goal — see consumer's README.md on all 11 — note consumer's README, not this framework's
  • Reviewer: spot-check YAML frontmatter integrity on agents/*.md + integration-rules.md (frontmatter must remain at very top — sub-agents won't load if it shifts)
  • Reviewer: GO / REVISE verdict; if GO, merge enables Wave 2 PR open

§1.7 Forward-check applied

Wave 1 PR проверен against existing project disciplines per .claude/rules/phase-research-coverage.md §1.7:

  • Code-level (R1-R20 lint) — N/A: только docs edits, no source code changes; lint surface не затрагивается.
  • Principle-level (01-09)vitest run principles/ (cold) 7/7 green for principle 09; full workspace suite 305/305 green; принцип 09 mutation tests + sentinel passing.
  • Commit-level (capability-commit gate + Prior-art: trailer per CLAUDE.md «What is a capability commit») — все 13 коммитов несут escape-hatch trailer (skipped — Wave 1 prose-only header insert/refinement, no new capability under packages/core/<dir>/, no new dependency — 100+ chars rationale, well above 20-char floor). Non-capability classification verified: 0 LOC under packages/core/<new-dir>/, 0 new dependencies in package.json, prose-only doc additions.
  • Build-vs-reuse SSOT (prior-art-evaluations.md) — Wave 1 не вводит новых ADOPT/DEFER решений; SSOT entries feat(phase-8): acceptance gate Next 15->16 + canonical regen + GO verdict for Phase 9 #11-docs: Phase 9 implementation prompt draft (PHASE-9-PROMPT.md) #15 (ESLint extends, Tailwind presets, Cursor 4-tier, Continue Hub, AGENTS.override.md) deferred to Wave 2 commit per revision plan §«Wave 2 — extend principle 09» («SSOT entries feat(phase-8): acceptance gate Next 15->16 + canonical regen + GO verdict for Phase 9 #11-docs: Phase 9 implementation prompt draft (PHASE-9-PROMPT.md) #15 land in same commit as principle 09 extension»). Wave 1 не нарушает «add new entry in same commit as capability artifact» правило — нет capability artifact'а в Wave 1.
  • Trigger sweep (§1.6) — §13.21 классифицирован FIRED-by-this-plan в revision §14; Wave 1 = first deliverable closure step. Other §13.x: §13.16-§13.20 / §13.22 STILL ARMED (no cascade); §13.23 FIRED-by-this-plan (Wave 4 promotion path) — separate research session per Out-of-scope.
  • Doc-authority (artefacts produced by recommendation themselves carry compliant headers per doc-authority-hierarchy.md) — recursive self-application: Wave 1 ADDS Authoritative-for headers to 11 files which themselves are NOT canonical project docs (rule §2 «Required for» list), but the headers added comply with rule §3 format spec verbatim — verified by reviewer cycle per scope-statement-style check (specific, names artifact type, mentions canonical NOT-authoritative-for).
  • Pre-push hook — green: zizmor 0 findings, 5/5 audit-self negative probes, 41/41 vitest principles, rules-table region up-to-date (RULES.md re-rendering deterministic despite header insertion before <!-- begin: rules-table-generated --> marker).

§1.7 Backward-check applied

Complete sweep of artefacts under Wave 1's scope — not §1.5 floor of «3-5 examples» but the complete 11-file set per revision §7:

  • Scope enumeration — revision §7 add-list lists 11 paths: 5 templates под packages/core/templates/shared/, 3 файла под packages/preset-next-15-canonical/, 3 sub-agent prompts под agents/. Cross-checked against install.sh:138-152 shipping pipeline (per revision §1 unified paths): all 11 confirmed shipped (CLAUDE.md.template included for future-proofing per §7 line 83 — 6-month removal trigger if not shipped).
  • PR diff vs scopegit diff --name-only origin/main..HEAD returns exactly the 11 paths (sorted match = revision §7 add-list ordered match): 0 missing, 0 extra. Verified by reviewer cold check.
  • Duplicate check vs existing canonical list — grep каждого из 11 paths against packages/core/principles/09-doc-authority-hierarchy.test.ts:45-88: 0 matches → 0 duplicates. Revision §7 line 84 length sentinel verified: current 33 + 11 = 44, within expect(length).toBeLessThanOrEqual(60) at test line 156.
  • Exemption mechanism — out-of-scope for Wave 1; introduced in Wave 2 (EXEMPT_PATTERNS glob array packages/*/research/fixtures/**, packages/*/fixtures/**) with positive+mutation meta-test pair per revision §5. Wave 1 does not require exemptions because all 11 files are real shipped artefacts (no fixtures).
  • Self-reflexive trigger (§1.7 applies to itself) — Wave 0.5 produced 2026-05-09-§13.21-l3-self-review.md which walked the L3 plan через §1.1-§1.7 forward + §2.1-§2.5 backward, verifying that §1.7 catches the very gap that motivated its creation. Wave 1 is execution of that already-self-reviewed plan — recursive layer satisfied at Wave 0.5 plan-introduction step.
  • Cross-reviewer cold check — independent reviewer cycle in this session (separate context loaded canonical authority + rule + principle 09 freshly) issued GO verdict against 11 acceptance gates including: header presence (gate 1), placement per rule §3 (gate 7), scope-statement style per rule §3 (gate 11), no-duplicate sweep (gate 5), full test suite (gate 10). Two MINOR observations surfaced and one closed inline (commit c0fb461 + c0ae284 add (consumer-customisable) to RULES.md and integration-rules.md scope sentences).

artyhoo added 13 commits May 9, 2026 20:02
Wave 1 of §13.21 closure — per .claude/rules/doc-authority-hierarchy.md §3.

Prior-art: skipped — Wave 1 prose-only header insert, no new capability under packages/core/<dir>/, no new dependency.
Wave 1 of §13.21 closure — per .claude/rules/doc-authority-hierarchy.md §3.

Prior-art: skipped — Wave 1 prose-only header insert, no new capability under packages/core/<dir>/, no new dependency.
Wave 1 of §13.21 closure — per .claude/rules/doc-authority-hierarchy.md §3.

Prior-art: skipped — Wave 1 prose-only header insert, no new capability under packages/core/<dir>/, no new dependency.
Wave 1 of §13.21 closure — per .claude/rules/doc-authority-hierarchy.md §3.

Prior-art: skipped — Wave 1 prose-only header insert, no new capability under packages/core/<dir>/, no new dependency.
Wave 1 of §13.21 closure — per .claude/rules/doc-authority-hierarchy.md §3.

Prior-art: skipped — Wave 1 prose-only header insert, no new capability under packages/core/<dir>/, no new dependency.
Wave 1 of §13.21 closure — per .claude/rules/doc-authority-hierarchy.md §3.

Prior-art: skipped — Wave 1 prose-only header insert, no new capability under packages/core/<dir>/, no new dependency.
Wave 1 of §13.21 closure — per .claude/rules/doc-authority-hierarchy.md §3.

Prior-art: skipped — Wave 1 prose-only header insert, no new capability under packages/core/<dir>/, no new dependency.
Wave 1 of §13.21 closure — per .claude/rules/doc-authority-hierarchy.md §3.

Prior-art: skipped — Wave 1 prose-only header insert, no new capability under packages/core/<dir>/, no new dependency.
Wave 1 of §13.21 closure — per .claude/rules/doc-authority-hierarchy.md §3.

Prior-art: skipped — Wave 1 prose-only header insert, no new capability under packages/core/<dir>/, no new dependency.
Wave 1 of §13.21 closure — per .claude/rules/doc-authority-hierarchy.md §3.

Prior-art: skipped — Wave 1 prose-only header insert, no new capability under packages/core/<dir>/, no new dependency.
Wave 1 of §13.21 closure — per .claude/rules/doc-authority-hierarchy.md §3.

Prior-art: skipped — Wave 1 prose-only header insert, no new capability under packages/core/<dir>/, no new dependency.
Editorial sync with sister preset-next-15 files (RULES.react-next.md,
ARCHITECTURE.react-next.md, ARCHITECTURE.ts-server.md) — closes reviewer
MINOR-1 stylistic inconsistency before PR #21 merge.

Prior-art: skipped — Wave 1 prose-only header refinement, no new capability under packages/core/<dir>/, no new dependency.
Editorial sync with sister templates/shared/ files (ARCHITECTURE.ts-server.md)
— closes reviewer MINOR-1 stylistic inconsistency before PR #21 merge.

Prior-art: skipped — Wave 1 prose-only header refinement, no new capability under packages/core/<dir>/, no new dependency.
@artyhoo
artyhoo merged commit 621dc17 into main May 9, 2026
17 of 19 checks passed
artyhoo added a commit that referenced this pull request May 10, 2026
Post-merge bookkeeping per revision plan §14 (atomic-closure-with-merge
note). Status flipped from «deferred» to «closed» now that all four
Wave PRs have landed on main:
- Wave 1 PR #21
- Wave 2 PR #22
- Wave 3 PR #23
- Wave 4 PR #24

No code changes. Doc-only edit; not a capability commit — no Prior-art:
trailer required per CLAUDE.md detection rules.
artyhoo added a commit that referenced this pull request May 10, 2026
…Tool Bootstrapping

Single deliverable file per Wave 5 research prompt. 14 sections (Problem / Source / §0 / §0.1 / §1-§13). 557 lines.

Key findings:
- O0 verdict: STOP-end-to-end-match-found. AIF /aif command (already integrated dep) implements user rules 1-4 end-to-end. Build-vs-reuse honor: do not silently re-build. Rules 5-6 (incrementality + reject-memory) are the load-bearing additions if implementation proceeds.
- O0.1 trigger sweep: §13.18 (AIF deep alignment) HIGH cascade; §13.19 + §13.22 MEDIUM cascade; §13.21 CLOSED; §13.24 H7 sample size advances 1/3 → 2/3.
- 6 SSOT entries proposed (#16-#21); orchestrator session lands them in atomic commit.
- 9 binary/multi-choice decisions for review session (§11), each with explicit options and recommendations.
- Sub-wave 5.1/5.2/5.3 implementation outline (~150-250 LOC total; not capability commits per CLAUDE.md threshold).
- §1.7 forward+backward checks applied; self-reflection skill invoked at session start.

No implementation; no shipped-artefact edits beyond this patch file. Branch carries preparatory §13.25 registration commit (0ea9bea) per Wave 5 PRE-LAUNCH step 3.

Prior-art: skipped — research-patch documents prior-art findings rather than introducing new capability; SSOT proposals (§10) land in orchestrator session per prior-art-evaluations.md §3 step 1.
artyhoo added a commit that referenced this pull request May 10, 2026
…r reviewer REVISE

Closes 1 BLOCKER + 2 MAJOR + 1 MINOR from reviewer pass on 98ef3ba.

P1 (B1) — §10 SSOT schema fixed to 8 columns matching prior-art-evaluations.md §4 precedent (entries #1-#15):
ID | Candidate | Capability matched | First seen | Last reviewed | Verdict | Rationale | Trigger to revisit
Velocity moved from 9th-pseudo-column into Rationale field opener per #6-#10. First seen / Last reviewed = 2026-05-10 for all #16-#21.

P2 (M1) — context7 phrasings backfill:
- §1 (O1): +2 new queries (`/modelcontextprotocol/servers`, `/vercel/platforms` resolve). Material correction: SECURITY.md states reference servers «not production-ready»; §1 maturity column downgraded from «Mature/Official» to «Reference».
- §3 (O3): +1 new query (`/websites/windsurf`); other 7 documented as «derived from O0 sweep».
- §4-§8: each section gets one-line motivation explaining why no new query was needed (analytical / cognitive-probe / pattern-comparison objectives).

P3 (M2) — rule-5 counter-prompt added to §0 as item 3:
2 phrasings against `/renovatebot/renovate` + `/sverweij/dependency-cruiser` + `/tj-actions/changed-files`. NULL result. Confirms «incrementality is gap in every surveyed framework» negative-existence claim. §13.3 `#negative-existence-claim` raised LOW → MEDIUM with explicit residual-risk acknowledgement.

P4 (m1) — Windsurf gap closed AND classification raised:
- §3 row revised: Windsurf Cascade detect-and-install + MCP Marketplace one-click deeplink + `pre_mcp_tool_use` hook surfaced. Second partial-end-to-end candidate alongside AIF.
- §3 conclusion updated: «AIF and Windsurf Cascade» (not just AIF) carry the discover-env-→-propose/install shape.
- §13.3 `#category-sweep-missed` LOW → MEDIUM. `#prompt-list-anchoring` description revised to acknowledge floor-as-ceiling failure caught at reviewer pass.
- §13.4 self-reflexive checklist updated: 3 counter-prompts (was 2); §1.5 line acknowledges reviewer-driven gap closure.

File: 486 lines (under 500 cap). 14 sections intact. Principle 09 doc-authority test green.

Prior-art: skipped — follow-up edit closes reviewer findings on existing research-patch; no new capability per CLAUDE.md hook definition; SSOT proposals (§10) still land in orchestrator session per prior-art-evaluations.md §3 step 1.
artyhoo added a commit that referenced this pull request May 11, 2026
…#22 Cookiecutter/Copier (Wave 7 review)

Two prior Wave 7 commits cite SSOT entries that did not yet exist:

  80ef1d9 (sub-wave 7.1.a markdownlint, capability=YES) → #17
  f528586 (sub-wave 7.3.a/b template-render harness, capability=YES) → #22

The kickoff (§Sub-wave 7.5.b) planned SSOT entries #17#22 to land
batch-style at Wave closeout, but CLAUDE.md's build-vs-reuse invariant
mandates: «add a new SSOT entry … in the same commit as the capability
artifact.» CLAUDE.md wins; the kickoff plan was wrong for #17 and #22
(which are positively cited from prior commits). For #18#21 (lychee, vale,
Claude-Code-hooks, cross-editor scripts), the corresponding sub-wave
commits used `Prior-art: skipped — …` escape-hatch trailers rather than
positive citations, so they are NOT in violation — the kickoff plan for
those four remains intact and they land at 7.5.b alongside their verdict
transitions.

Resolution: forward-add (not amend / not force-push) — the cited trailers
in 80ef1d9 and f528586 now point to existing rows. CLAUDE.md
«prefer create new commit than amending» is honoured.

The deviation was caught by Wave 7 Round 1 cold-start review (2026-05-11);
prior round audit Domain 8 reported «PASS» by verifying trailer presence
without checking SSOT existence — gap captured in reviewer-checklist
amendment (Commit 3 of this batch).

Prior-art: skipped — forward-fix M2 from Wave 7 Round 1 review (SSOT entries #17 + #22 added in same atomic commit per CLAUDE.md same-commit rule; supersedes the deferred-to-7.5.b plan in kickoff for these two entries only; entries #18-#21 land at 7.5.b as planned because their corresponding commits did not cite missing IDs); no new capability shipped.
artyhoo added a commit that referenced this pull request May 11, 2026
… verdict transitions)

Append 4 SSOT entries to docs/meta-factory/prior-art-evaluations.md per
Wave 7 closeout (§3 «Adding a new entry» step 1):

  #18 Vale — DEFER (Russian+EN mixed prose FP risk; promote when 2nd doc-
       prose incident markdownlint cannot catch)
  #19 lychee — ADOPT (transition from ADOPT WHEN TRIGGERED; shipped 7.1.b)
  #20 Claude Code hooks — ADOPT (UserPromptSubmit + PostToolUse; shipped
       7.2.a/b/c; transition from ADOPT WHEN TRIGGERED)
  #21 Cursor/Cline/Continue.dev reference scripts — WATCHLIST (Claude Code
       only project-side per Decision 4; cross-editor parity deferred)

NOTE on numbering (entries #16, #17, #22, #23-#26 landed in earlier
commits per CLAUDE.md same-commit-as-capability rule):
  #16        2b0a505 (sub-wave 7.1.d D-3 BUILD verdict)
  #17, #22   Batch G «feat(prior-art): M2 …» (forward-fix from Round 1
             cold-start review M2 finding)
  #23-#26    Batch F.c Commit 1 «feat(hooks): Wave 7 7.6.c — §1.7 trailer
             check + SSOT #23-#26» (atomic SSOT landing per CLAUDE.md;
             precedent 7.1.d #16; cited #23 + #26 positive trailer)

The kickoff §«Sub-wave 7.5.b» plan originally targeted all #16-#22 at
7.5.b — corrected via Round 1 review M2 finding adjudication + Round 2/3
user patch confirming atomic #23-#26 landing in F.c Commit 1.

Prior-art: skipped — appending parent-research SSOT entries at Wave 7 closeout per §3 «Adding a new entry» step 1; no new capability, no new packages/ subdirectory.
artyhoo added a commit that referenced this pull request May 22, 2026
…l disposition (#162)

Completes the DN-4 sweep:
- CONTRIBUTING.md «Working in a git worktree» (#29 worktree_node_modules_symlink)
- phase-research-coverage.md §1.13 — AI-doc research source priority (#30)
- tracker: #29/#30 → CODIFIED; #18/#19 → DEFERRED (reference-facts);
  #21 → DEFERRED (thesis-level); #24 → OUT-OF-REPO (global orchestrator skill)

DN-4 now fully swept: 11/15 codified, 4 dispositioned with reasons, zero
bare-PENDING. §1.7 self-review at
research-patches/2026-05-22-dn4-round3-tail-codification.md.

Prior-art: skipped — prose discipline codification + tracker disposition of existing memory conventions, no new capability or dependency
artyhoo added a commit that referenced this pull request May 22, 2026
…erifies thesis (#167)

Codifies the last "real" DN-4 gap (#21 no_human_verification_ai_self_verifies)
as a proposal-of-record (not a rule-fold — it is thesis-level + touches
invariant-owned surfaces). Names the convention, identifies the mutual-deferral
deadlock as its load-bearing failure mode, connects it to §13.34 and the
already-merged operational instances (§1.11, T19, §1.12), and SURFACES the
§13.34-widen / CLAUDE-invariant-elevation as a maintainer DECISION-NEEDED (§5).

Tracker: #21 DEFERRED → CODIFIED. DN-4 sweep complete (12 codified / 2 deferred
ref-facts / 1 out-of-repo; zero bare-PENDING).

Prior-art: skipped — thesis-level proposal-of-record codifying an existing memory convention, no new capability or dependency
@artyhoo
artyhoo deleted the wave-1/13.21-doc-authority-headers branch May 22, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant