@thebassclef/lite 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/cli.cjs +40 -6
  2. package/dist/cli.js +40 -6
  3. package/dist/index.cjs +1 -1
  4. package/dist/index.d.ts +1 -1
  5. package/dist/index.js +1 -1
  6. package/package.json +1 -1
  7. package/substrate/.bassclef/lite-manifest.json +999 -92
  8. package/substrate/.claude/hooks/longrun-prep-compounding-axis-check.sh +492 -0
  9. package/substrate/.claude/hooks/longrun-prep-compounding-sequence-check.sh +492 -0
  10. package/substrate/.claude/hooks/pre-commit-gate.sh +1 -2
  11. package/substrate/.claude/hooks/turn-prose-kiss-check.sh +30 -1
  12. package/substrate/.claude/luminaries/glenford-myers.md +230 -0
  13. package/substrate/.claude/luminaries/hunt-thomas.md +115 -0
  14. package/substrate/.claude/luminaries/hyrum-wright.md +94 -0
  15. package/substrate/.claude/luminaries/michael-feathers.md +2 -2
  16. package/substrate/.claude/luminaries/tony-hoare.md +170 -0
  17. package/substrate/.claude/luminaries/vaughn-vernon.md +50 -0
  18. package/substrate/.claude/luminaries/w-edwards-deming.md +158 -0
  19. package/substrate/.claude/rules/accessor-library-discipline.md +138 -0
  20. package/substrate/.claude/rules/adr-discipline.md +120 -0
  21. package/substrate/.claude/rules/api-conventions.md +125 -0
  22. package/substrate/.claude/rules/bootstrap-pair-discipline.md +141 -0
  23. package/substrate/.claude/rules/cold-adopter-harness-discipline.md +129 -0
  24. package/substrate/.claude/rules/compounding-axis-fresh-analysis.md +188 -0
  25. package/substrate/.claude/rules/compounding-sequence-fresh-analysis.md +188 -0
  26. package/substrate/.claude/rules/defensive-bash.md +68 -0
  27. package/substrate/.claude/rules/deferred-actions.md +233 -0
  28. package/substrate/.claude/rules/github-issue-flash-tweet.md +156 -0
  29. package/substrate/.claude/rules/hook-wire-on-author.md +103 -0
  30. package/substrate/.claude/rules/iteration-bet-brief-completeness.md +54 -0
  31. package/substrate/.claude/rules/lite-manifest-schema-change-discipline.md +3 -3
  32. package/substrate/.claude/rules/longrun-prep-plan-doc-compression.md +89 -0
  33. package/substrate/.claude/rules/loop-discipline.md +81 -0
  34. package/substrate/.claude/rules/manual-prod-approval.md +100 -0
  35. package/substrate/.claude/rules/marker-enrichment-discipline.md +99 -0
  36. package/substrate/.claude/rules/mobile-ephemeral-session.md +109 -0
  37. package/substrate/.claude/rules/new-dependency-check.md +51 -0
  38. package/substrate/.claude/rules/option-label-discipline.md +108 -0
  39. package/substrate/.claude/rules/pattern-annotation.md +100 -0
  40. package/substrate/.claude/rules/plain-english-discipline.md +11 -9
  41. package/substrate/.claude/rules/plan-enumeration-needs-value-props.md +211 -0
  42. package/substrate/.claude/rules/pr-title-shape.md +161 -0
  43. package/substrate/.claude/rules/prototype-workflow.md +65 -0
  44. package/substrate/.claude/rules/reserved-skill-names.md +123 -0
  45. package/substrate/.claude/rules/schema-management.md +49 -0
  46. package/substrate/.claude/rules/security.md +37 -0
  47. package/substrate/.claude/rules/skill-composition-declarations.md +124 -0
  48. package/substrate/.claude/rules/skill-description-clarity.md +247 -0
  49. package/substrate/.claude/rules/skill-procedure-step-list.md +137 -0
  50. package/substrate/.claude/rules/stuck-signal-diagnostic.md +140 -0
  51. package/substrate/.claude/rules/substrate-config-schema.md +98 -0
  52. package/substrate/.claude/rules/test-list-discipline.md +175 -0
  53. package/substrate/.claude/rules/test-sufficiency.md +210 -0
  54. package/substrate/.claude/rules/testing-tier-config.md +145 -0
  55. package/substrate/.claude/rules/testing.md +38 -0
  56. package/substrate/.claude/rules/turn-estimate-grounding.md +134 -0
  57. package/substrate/.claude/rules/visual-hierarchy.md +437 -0
  58. package/substrate/.claude/rules/we-dont-break-adopters.md +126 -0
  59. package/substrate/.claude/rules/wu-sequencing-compounds.md +145 -0
  60. package/substrate/.claude/skills/build/SKILL.md +1 -1
  61. package/substrate/.claude/skills/chronicle/SKILL.md +55 -0
  62. package/substrate/.claude/skills/clean-artifacts/SKILL.md +249 -0
  63. package/substrate/.claude/skills/decompose/SKILL.md +1 -1
  64. package/substrate/.claude/skills/diagnose/SKILL.md +1 -1
  65. package/substrate/.claude/skills/feynman/SKILL.md +90 -0
  66. package/substrate/.claude/skills/howdoi/SKILL.md +1 -1
  67. package/substrate/.claude/skills/ia-model/SKILL.md +1 -1
  68. package/substrate/.claude/skills/interaction-design/SKILL.md +1 -1
  69. package/substrate/.claude/skills/interpret-input/SKILL.md +8 -8
  70. package/substrate/.claude/skills/journal/SKILL.md +209 -0
  71. package/substrate/.claude/skills/kiss/SKILL.md +1 -1
  72. package/substrate/.claude/skills/launch/SKILL.md +14 -23
  73. package/substrate/.claude/skills/lean-canvas/SKILL.md +1 -1
  74. package/substrate/.claude/skills/longrun/SKILL.md +45 -8
  75. package/substrate/.claude/skills/luminary/SKILL.md +1 -1
  76. package/substrate/.claude/skills/ogilvy-writing-audit/SKILL.md +1 -1
  77. package/substrate/.claude/skills/onboard-repo/SKILL.md +143 -709
  78. package/substrate/.claude/skills/pattern-review/SKILL.md +1 -1
  79. package/substrate/.claude/skills/personas/SKILL.md +5 -5
  80. package/substrate/.claude/skills/promote/SKILL.md +1 -1
  81. package/substrate/.claude/skills/requirement/SKILL.md +1 -1
  82. package/substrate/.claude/skills/retro/SKILL.md +1 -1
  83. package/substrate/.claude/skills/riff/SKILL.md +1 -1
  84. package/substrate/.claude/skills/roadmap-reconcile/SKILL.md +1 -1
  85. package/substrate/.claude/skills/session-end/SKILL.md +1 -1
  86. package/substrate/.claude/skills/session-log/SKILL.md +3 -3
  87. package/substrate/.claude/skills/skills/SKILL.md +1 -1
  88. package/substrate/.claude/skills/spec/SKILL.md +1 -1
  89. package/substrate/.claude/skills/sprint/SKILL.md +1 -1
  90. package/substrate/.claude/skills/stage/SKILL.md +1 -1
  91. package/substrate/.claude/skills/state-a-problem/SKILL.md +1 -1
  92. package/substrate/.claude/skills/temperance/SKILL.md +1 -1
  93. package/substrate/.claude/skills/use-case/SKILL.md +1 -1
  94. package/substrate/.claude/skills/user-stories/SKILL.md +1 -1
  95. package/substrate/.claude/skills/value-prop/SKILL.md +1 -1
  96. package/substrate/.claude/skills/verify/SKILL.md +1 -1
  97. package/substrate/.claude/skills/visual-review/SKILL.md +503 -0
  98. package/substrate/.claude/skills/whats-the-plan/SKILL.md +202 -0
  99. package/substrate/.claude/skills/whereami/SKILL.md +2 -2
  100. package/substrate/CONTRIBUTING.md +1 -1
  101. package/substrate/README.md +5 -5
  102. package/substrate/lib/prose-scan-boundary.sh +171 -0
  103. package/substrate/lib/tier-check.sh +50 -1
  104. package/substrate/lib/tier-dependency-audit.sh +159 -4
  105. package/substrate/presence/install/bassclef-sync.template.sh +1 -1
  106. package/substrate/scripts/generate-lite-manifest.sh +21 -5
  107. package/substrate/standards/adr-template.md +86 -0
  108. package/substrate/standards/api-conventions/nextjs.md +84 -0
  109. package/substrate/standards/artifact-composition.md +209 -0
  110. package/substrate/standards/bash-hook-safety.md +246 -0
  111. package/substrate/standards/branch-stacking.md +408 -0
  112. package/substrate/standards/code-safety-principles.md +176 -0
  113. package/substrate/standards/composer-prerequisites.md +155 -0
  114. package/substrate/standards/dependency-discipline/cargo.md +39 -0
  115. package/substrate/standards/dependency-discipline/gem.md +43 -0
  116. package/substrate/standards/dependency-discipline/go-mod.md +41 -0
  117. package/substrate/standards/dependency-discipline/npm.md +42 -0
  118. package/substrate/standards/dependency-discipline/pip.md +42 -0
  119. package/substrate/standards/deployment-topology/ec2-tailscale.md +225 -0
  120. package/substrate/standards/deployment-topology.md +69 -0
  121. package/substrate/standards/docs-sync-allowlist.md +4 -4
  122. package/substrate/standards/domain-and-dns.md +145 -0
  123. package/substrate/standards/frontend-stack.md +67 -0
  124. package/substrate/standards/frontmatter-schema.md +154 -0
  125. package/substrate/standards/hook-injection-discipline.md +202 -0
  126. package/substrate/standards/hook-install-class.md +215 -0
  127. package/substrate/standards/input-handler-interface.md +152 -0
  128. package/substrate/standards/lite-manifest-schema-changes.md +60 -0
  129. package/substrate/standards/luminary-matching.md +105 -0
  130. package/substrate/standards/migration-discipline/active-record.md +50 -0
  131. package/substrate/standards/migration-discipline/alembic.md +43 -0
  132. package/substrate/standards/migration-discipline/gorm.md +50 -0
  133. package/substrate/standards/migration-discipline/prisma.md +53 -0
  134. package/substrate/standards/migration-discipline/sqlalchemy.md +51 -0
  135. package/substrate/standards/mobile-ephemeral-session.md +167 -0
  136. package/substrate/standards/model-routing-discipline.md +160 -0
  137. package/substrate/standards/persona-schema.md +229 -0
  138. package/substrate/standards/pluggable-luminaries.md +323 -0
  139. package/substrate/standards/pr-body-discipline.md +115 -0
  140. package/substrate/standards/preview-state-schema.md +189 -0
  141. package/substrate/standards/reserved-skill-names.md +120 -0
  142. package/substrate/standards/scannable-multi-option-output.md +261 -0
  143. package/substrate/standards/sdlc-gates/typescript.md +57 -0
  144. package/substrate/standards/session-board.md +256 -0
  145. package/substrate/standards/state-spine-contract.md +255 -0
  146. package/substrate/standards/steering-hints/kiss-words.md +11 -0
  147. package/substrate/standards/substrate-config-schema.md +267 -0
  148. package/substrate/standards/tier-dependency-analysis.md +1 -1
  149. package/substrate/standards/tier-tag-schema.md +1 -1
  150. package/substrate/standards/two-layer-config.md +99 -0
  151. package/substrate/standards/use-case-format.md +292 -0
  152. package/substrate/standards/user-story-invest.md +268 -0
  153. package/substrate/standards/velocity-and-appetite.md +229 -0
  154. package/substrate/standards/voice-input-pattern.md +119 -0
  155. package/substrate/standards/worktree-management.md +211 -0
  156. package/substrate/templates/chronicle-template.md +75 -0
  157. package/substrate/templates/memory-proposal-template.md +77 -0
  158. package/substrate/templates/persona-template.md +200 -0
  159. package/substrate/templates/pr-faq.md +45 -0
  160. package/substrate/templates/secret-rotation-template.md +162 -0
  161. package/substrate/templates/spec-template.md +131 -0
  162. package/substrate/templates/use-case-template.md +194 -0
  163. package/substrate/templates/user-story-template.md +107 -0
@@ -0,0 +1,141 @@
1
+ ---
2
+ tier: lite
3
+ description: Every substrate primitive ships with its paired bootstrap discipline.
4
+ ---
5
+
6
+ # Bootstrap-Pair Discipline
7
+
8
+ Every substrate primitive ships with its paired bootstrap discipline. A primitive without its pair is half-shipped — the substrate appears to ship the feature, but adopters hit the missing half as silent breakage at runtime.
9
+
10
+ This rule names the failure class, enumerates 5 known instances, and gives the discipline a name so future PRs catch the failure at authoring time instead of at adopter-runtime time.
11
+
12
+ ## When this rule fires
13
+
14
+ Any PR that adds a substrate primitive to bassclef. "Substrate primitive" means any of these surfaces:
15
+
16
+ - **Hook** — a new file under `.claude/hooks/*.sh`
17
+ - **Rule** — a new file under `.claude/rules/*.md`
18
+ - **Skill** — a new directory under `.claude/skills/<name>/SKILL.md`
19
+ - **Validator / accessor / library** — a new shell library under `lib/*.sh` or a new validator under `scripts/`
20
+ - **Schema** — a new JSON Schema under `standards/state-spine/schemas/*.schema.json`
21
+ - **Standard** — a new standard under `standards/*.md`
22
+ - **ADR** — a new file under `architecture/decisions/ADR-*.md`
23
+
24
+ The rule passes through (does not fire) on:
25
+
26
+ - Operator content (chronicles, journals, deferred-actions)
27
+ - Documentation edits without behavior change
28
+ - Bug fixes that touch existing primitives without adding new ones
29
+ - Test edits (covered by sister rules — `.claude/rules/testing-tier-config.md`, `test-list-discipline.md`)
30
+
31
+ ## The 7 known instances
32
+
33
+ Each row names the primitive being added, the pair it owes, and the failure mode when the pair is missing.
34
+
35
+ | Building block added | Bootstrap pair owed | Failure mode when missing |
36
+ |---|---|---|
37
+ | **Hook** under `.claude/hooks/*.sh` | The hook is wired in `.claude/settings.json` OR `presence/install/bassclef-sync.template.sh` for adopters | Hook exists on disk but stays silent (dead-letter) — surfaced 5 times during the 2026-04 substrate audit |
38
+ | **Rule** citing a mechanical hook in `## Mechanical Enforcement` | The cited hook exists on disk AND is wired | Rule promises mechanical layer that stays silent; methodology only — surfaced 11 times in WU-5 of bet 2026-06-24c |
39
+ | **Skill** declaring `modes:` / `tiers:` / `sizes:` in frontmatter | The `description:` field names each declared mode inline (per `.claude/rules/skill-description-clarity.md` description-mirrors-modes) | Type-ahead operator menu shows nothing distinguishing — surfaced 3 times in WU-6 of bet 2026-06-24c |
40
+ | **Accessor library** named in a rule (`lib/state.sh`) | The file exists at the named path | Rule's `accessor-library-discipline.md` references a path that 404s — surfaced via #324 (closed via bet 2026-06-25a) |
41
+ | **Schema** under `standards/state-spine/schemas/*.schema.json` | The write-time validation hook is wired (`state-validate.sh` PreToolUse) AND the entity has a storage-shape entry in `standards/state-spine.md` | Schema ships but the spine permits writes that violate it — surfaced via #319 (partial-close via bet 2026-06-25a WU-3) |
42
+ | **Adopter-observable surface change** — new hook / skill / rule / agent / luminary / standard / ADR / schema / sync-template OR edit to an existing one matching `.claude/rules/cold-adopter-harness-discipline.md` § "When this rule fires" | The cold-adopter harness check class covering the new surface exists in `scripts/cold-adopter-harness-sync.sh` AND the CI job `cold-adopter-harness` in `.github/workflows/bassclef-pr-ci.yml` fires on the PR | Substrate ships a change that breaks adopter-observable surface; harness passes with stale coverage OR harness fails with no CI gate to catch it before merge — surfaced via 2026-06-25 /longrun prep audit (Gap 1 + Gap 2 + Gap 3 of 5; closed via bet 25g) |
43
+ | **Release pipeline path change** (added bet 2026-06-29c WU-5) — any PR that adds a new top-level directory (e.g., new `lib/`, `templates/`, `presence/`) OR moves files between substrate directories (`scripts/`, `presence/`, `lib/`, `standards/`) OR adds a new operator-template at `presence/install/` | The release script's `ALLOWED_PATHS` in `scripts/release-to-bassclef.sh` covers the new top-level directory AND any new template at `presence/install/<name>.template.sh` is handled by the release step that ships templates (e.g., `public-bassclef-settings.template.json` copy step) | Release ships everything except the new directory; adopters get partial substrate; hooks reference files that aren't on the public tree — surfaced 4 release iterations in a row on 2026-06-29 (PRs #1372/#1373/#1374/#1375): PR #318 missed `scripts/`; later PRs missed `lib/` + `templates/`; settings template needed its own release-script step. Three sister cures: (a) extending the cold-adopter harness rule-mechanism-claim scanner to recognize `<name>.template.sh` as evidence the hook ships via install template; (b) refining the operator-private-path check filename pattern so it doesn't false-positive on bassclef's own `-review` rule names (out of scope tonight; tracked as follow-on); (c) auto-applying the `bassclef-internal-prose-ok` label on release PRs so the operator-private-path check passes first time (out of scope tonight; tracked as follow-on). |
44
+
45
+ ## What this rule requires
46
+
47
+ When a PR adds a substrate primitive, the PR body MUST include a `Bootstrap pair shipped` block in the Summary section naming the pair:
48
+
49
+ ```markdown
50
+ ## Bootstrap pair shipped
51
+
52
+ - Building block: `<path>` (e.g., `.claude/hooks/foo.sh`)
53
+ - Pair: `<wiring location>` (e.g., `.claude/settings.json` PreToolUse Edit|Write|MultiEdit) OR `<rationale for no pair>`
54
+ ```
55
+
56
+ If the primitive type is not in the 5-instance table, the author names the pair in plain English ("the pair this primitive owes is X because Y"). The reviewer's job is to verify the pair actually exists in the PR — not just that the author named it.
57
+
58
+ ## Anti-patterns
59
+
60
+ These shapes fail this rule.
61
+
62
+ **Ship hook without wiring** — the hook lives on disk but no settings.json registers it. The hook is dead-letter; the failure surfaces silently in adopter sessions.
63
+
64
+ INSTEAD: ship the wiring in the same PR.
65
+
66
+ **Cite an unwired hook in a rule's Mechanical Enforcement section** — the rule promises mechanical enforcement but the hook is not wired. The rule operates as methodology-only with no agent-side awareness of the gap.
67
+
68
+ INSTEAD: either wire the hook in the same PR or rephrase the rule to claim methodology-only enforcement.
69
+
70
+ **Declare skill modes in frontmatter without naming them inline in the description** — the harness type-ahead shows the skill name but no mode disambiguation; operator has to invoke and discover.
71
+
72
+ INSTEAD: include each declared mode in the description's 280-character budget.
73
+
74
+ **Name a file path in a rule that does not exist on the substrate** — adopters reading the rule follow the path and 404.
75
+
76
+ INSTEAD: verify the path resolves on bassclef-upstream before the PR opens.
77
+
78
+ **Ship a schema without wiring the write-time validator** — writes that violate the schema land in the spine and corrupt state silently.
79
+
80
+ INSTEAD: wire `state-validate.sh` in `.claude/settings.json` in the same PR as the schema.
81
+
82
+ ## Override path
83
+
84
+ `SKIP_BOOTSTRAP_PAIR=1 <command>` — for genuine cases where the pair lands in a separate PR by design AND the separate PR is filed AND the current PR's body cites the follow-on. Logged via trace-helper.
85
+
86
+ INSTEAD of overriding for routine work: ship the pair in the same PR. The cost is small (one hook line, one settings.json entry, one rule citation) and the discipline compounds across every future primitive.
87
+
88
+ ## Why this rule exists
89
+
90
+ Five instances of "ship A without paired B" surfaced during the 2026-04 to 2026-06 substrate audit period (WU-10 of bet 2026-06-24c). Each instance was diagnosed individually before the class was named. Diagnosing the class lets future PRs catch the failure at authoring time instead of accumulating as silent debt the next architect-review sweeps surface.
91
+
92
+ Per `@luminary john-ousterhout` (deep modules): a substrate module is "deep" when its API matches its internal complexity. A bootstrap-paired ship matches the API surface (rule says X exists, hook does Y) with the internal commitment (X is on disk, Y is wired). Half-shipped primitives have shallow APIs that lie about internal state.
93
+
94
+ Per `@luminary michael-nygard` (stability patterns): bootstrap-pair is the circuit-breaker against incomplete substrate ships. The rule fires at the PR-author boundary; the optional V2 mechanical layer would fire at the pre-commit boundary; both prevent the half-shipped class from reaching adopter machines.
95
+
96
+ Per `@luminary kent-beck` (test-first): the test for a substrate primitive often IS its bootstrap pair. The hook test ships when the hook ships; the test running confirms the hook fires; the wiring is the bootstrap pair that makes the test reachable from adopter sessions.
97
+
98
+ Per `@luminary linus-torvalds` (adopter compatibility stance): when bassclef ships an incomplete substrate primitive, the failure is invisible to bassclef-internal tests (which assume bassclef's own environment is intact) but catastrophic at first adopter run (which catches the missing pair). The bootstrap-pair discipline is the bassclef-internal analog of the kernel-compatibility-stance Linus articulated — applied to substrate-internal completeness.
99
+
100
+ ## Mechanical layer (V2 deferred)
101
+
102
+ V1 of this rule is methodology only. V2 deferred extension: a pre-commit hook that:
103
+
104
+ 1. Detects PRs adding substrate primitives (path matchers per the "When this rule fires" section)
105
+ 2. Greps the staged content for the pair (e.g., new hook → grep settings.json staged diff for the hook's path)
106
+ 3. BLOCKs when the pair is absent AND the override is absent
107
+
108
+ Defer to a separate goal when the methodology layer has shipped through enough PRs that the failure modes are stable and the pre-commit logic can mechanize against them confidently.
109
+
110
+ ## Composes with
111
+
112
+ - `.claude/rules/pr-body-shape.md` — the `Bootstrap pair shipped` block lives in the Summary section per this rule
113
+ - `.claude/rules/we-dont-break-adopters.md` — sister discipline at the adopter-observable surface; this rule extends the discipline to bassclef-internal substrate completeness
114
+ - `.claude/rules/blocked-items.md` — the BLOCK protocol the V2 mechanical layer would fire
115
+ - `.claude/rules/loop-discipline.md` — sister at the construction-cycle level; bootstrap-pair check fires in the per-PR loop discipline
116
+ - `.claude/rules/accessor-library-discipline.md` — the rule that surfaced one instance (#324)
117
+ - `.claude/rules/testing-tier-config.md` — the Tier 0 strict-TDD pattern; the bootstrap pair often IS the test that locks the primitive
118
+ - `architecture/audits/2026-06-24-validator-bootstrap.md` — WU-10 surfaced the 5-instance enumeration
119
+
120
+ ## Distinct from
121
+
122
+ - `we-dont-break-adopters.md` — that rule covers adopter-observable surfaces. This rule covers substrate-internal completeness. The two compose; both required.
123
+ - `loop-discipline.md` — that rule covers the per-PR construction cycle. This rule covers the per-primitive completeness check WITHIN that cycle.
124
+ - `testing-tier-config.md` — that rule covers WHICH paths require which tier of test enforcement. This rule covers whether the primitive's PAIR ships at all.
125
+
126
+ ## Refs
127
+
128
+ - bassclef-upstream#328 (this rule's filing ticket)
129
+ - bassclef-upstream#322 (single-instance case that seeded the generalization)
130
+ - bassclef-upstream#319 (hook wiring instance — partial-close via bet 25a WU-3)
131
+ - bassclef-upstream#324 (lib accessor library instance — closed via bet 25a)
132
+ - bassclef-upstream#325 (workflows instance — closed via bet 25b)
133
+ - bassclef-upstream#326 (design + patterns instance — closed via bet 25c)
134
+ - `architecture/audits/2026-06-24-validator-bootstrap.md` (WU-10 of bet 24c)
135
+ - bet 2026-06-25d — this rule's ship vehicle
136
+
137
+ ## Retirement condition
138
+
139
+ This rule retires only if substrate primitives cease to require paired bootstrap (very unlikely — the half-shipped failure class is inherent to any modular substrate that crosses the bassclef → adopter boundary). The 5-instance enumeration may grow as new primitive types surface (e.g., agent definitions, luminary catalog entries) — extend the table per amendment.
140
+
141
+ Closes bassclef-upstream#328.
@@ -0,0 +1,129 @@
1
+ ---
2
+ tier: lite
3
+ description: Substrate changes that touch any adopter-observable surface MUST pass the cold-adopter harness before merge.
4
+ ---
5
+
6
+ # Cold-Adopter Harness Discipline
7
+
8
+ Substrate changes that touch any adopter-observable surface MUST pass the cold-adopter harness before merge. The harness lives at `scripts/cold-adopter-harness-sync.sh` and runs as a PR-blocking job in `.github/workflows/bassclef-pr-ci.yml`. This rule is the methodology layer; the CI job is the mechanical layer; both load-bearing together close the audit gap that surfaced 2026-06-25 (harness existed but no rule required substrate evolution to drive a check).
9
+
10
+ ## When this rule fires
11
+
12
+ Any PR that touches a path in the adopter-observable surface set:
13
+
14
+ - `.claude/hooks/*.sh` — hook scripts adopters symlink into their `.claude/` dirs
15
+ - `.claude/skills/*/SKILL.md` — skill definitions adopters discover by name
16
+ - `.claude/rules/*.md` — rules adopters inherit via `additionalDirectories`
17
+ - `.claude/agents/*.md` — agent definitions adopters dispatch by role
18
+ - `.claude/luminaries/*.md` — luminaries adopters reference in goal docs
19
+ - `lib/*.sh` — shared accessor libraries adopters source from
20
+ - `standards/*.md` — standards adopters cite as reference
21
+ - `standards/state-spine/schemas/*.json` — schemas adopters validate against
22
+ - `presence/install/bassclef-sync.*.sh` — sync templates adopters vendor
23
+ - `architecture/decisions/ADR-*.md` — ADRs adopters read for architecture context
24
+ - `.github/workflows/bassclef-*.yml` — workflows adopters extend (when the change affects shared workflow shape)
25
+ - `scripts/*.sh` — scripts adopters invoke (when classified as adopter-facing per `.claude/rules/testing-tier-config.md`)
26
+ - Any other path under `~/src/sunj-labs/` that adopter sync hooks resolve through
27
+
28
+ The rule passes through (does not fire) on:
29
+
30
+ - Operator content (chronicles, journals, deferred-actions, `docs/operator-private/**`)
31
+ - Documentation edits that stay clear of adopter-observable surface (typo in a chronicle)
32
+ - Test edits where the source under test is not adopter-observable
33
+ - Bug fixes where the harness already covers the change class (the harness IS the regression test in that case)
34
+
35
+ ## What the rule requires
36
+
37
+ When a PR touches an adopter-observable path, the agent OR operator MUST:
38
+
39
+ 1. **Local pre-push run** — execute `bash scripts/cold-adopter-harness-sync.sh --mode sync --target .` from the bassclef-upstream root. Confirm exit 0 (all checks pass) OR explicitly document why a check failure is acceptable.
40
+ 2. **CI confirmation** — the `cold-adopter-harness` PR-blocking job in `.github/workflows/bassclef-pr-ci.yml` runs the same command on the PR head. Job must pass before merge.
41
+ 3. **PR body acknowledgement** — when the PR body's `Test plan` section is authored, include a line confirming the harness was run locally OR cite the CI job that runs it.
42
+
43
+ The mechanical layer (CI job) is the load-bearing enforcement. The methodology layer (this rule + the local pre-push step) closes the gap between commit time and CI-fire time.
44
+
45
+ ## What this rule does NOT require
46
+
47
+ - Running the harness on every commit (only on substrate-affecting paths; the path matcher above is the trigger)
48
+ - Running the harness on operator content (chronicles, journals — pass-through)
49
+ - Re-running the harness when CI already ran it cleanly and no substrate-affecting paths changed in a follow-up commit
50
+ - A separate harness for adopter-facing scripts (the same `scripts/cold-adopter-harness-sync.sh` covers all surfaces)
51
+ - Pre-commit-time enforcement (deferred to follow-on; bet 25g closes the CI + methodology layers; pre-commit hook is Gap 4 follow-on)
52
+
53
+ ## Anti-patterns
54
+
55
+ These shapes fail this rule.
56
+
57
+ **Substrate change shipped without running the harness locally.** Author edited `.claude/hooks/<name>.sh`, ran the test suite, pushed. CI catches it but the round-trip cost is one PR cycle wasted.
58
+
59
+ INSTEAD: run `bash scripts/cold-adopter-harness-sync.sh --mode sync --target .` before pushing. Catches the same class of failure locally; saves the CI round-trip.
60
+
61
+ **Substrate change shipped + CI green + harness still fails.** The CI job ran but produced a stale result because the harness was not extended to cover the new check class. The author's PR ships; an adopter cloning fresh hits the failure.
62
+
63
+ INSTEAD: extend the harness check classes in the same PR that introduces the new surface. Per `.claude/rules/bootstrap-pair-discipline.md` — when a new substrate primitive ships, its bootstrap pair includes the harness check class that validates it.
64
+
65
+ **Author overrides the harness CI job to merge faster.** Operator-merge mode with `SKIP_COLD_ADOPTER_HARNESS=1` set in the workflow environment.
66
+
67
+ INSTEAD: fix the harness failure OR document the explicit deferral in the PR body's `Out of scope` section with a follow-on ticket reference. Silence is not deferral.
68
+
69
+ **Adopter-observable change disguised as operator-internal change.** Author edits `presence/install/bassclef-sync.template.sh` (adopter-observable) but commits it as a `chore:` claiming it is internal-only.
70
+
71
+ INSTEAD: the path-matcher determines adopter-observable status, not the commit message. `presence/install/*` IS adopter-observable; the harness fires.
72
+
73
+ ## Override path
74
+
75
+ `SKIP_COLD_ADOPTER_HARNESS=1` env var — logged via trace-helper per existing bassclef hook idiom. Use only for:
76
+
77
+ - One-shot migration scripts that bootstrap state and intentionally produce a harness failure during the migration window (the migration itself fixes the failure)
78
+ - Emergency rescue when the harness itself is broken (substrate-defect recovery; harness must be fixed before next PR)
79
+ - Explicitly-deferred work where the PR body documents the override + cites a follow-on ticket that closes the deferred check
80
+
81
+ For routine work, run the harness. The cost is ~30 seconds on `--target .` (no live network fetch). The discipline holds across every PR.
82
+
83
+ ## How bassclef channels this discipline
84
+
85
+ The discipline lives in three layers — pre-commit (operator-side fast-fail), PR-CI (PR-side enforcement), and /verify (operator-side audit) — all firing the same 12-pattern matcher per Saltzer-Schroeder complete mediation:
86
+
87
+ - `.claude/rules/cold-adopter-harness-discipline.md` — this rule (methodology layer)
88
+ - `.claude/hooks/pre-commit-gate.sh` § "Cold-adopter harness fast-path" — pre-commit layer (operator-side fast-fail; ships via bet 25h WU-2). Detects substrate-affecting staged paths, runs harness in `--mode structural` for fast feedback, BLOCKs the commit on harness failure. Override: `SKIP_COLD_ADOPTER_HARNESS=1 git commit`.
89
+ - `.github/workflows/bassclef-pr-ci.yml` — `cold-adopter-harness` PR-blocking job (PR-CI mechanical layer; ships via bet 25g WU-2)
90
+ - `.claude/skills/verify/SKILL.md` — operator-side audit composition (ships via bet 25h WU-3)
91
+ - `scripts/cold-adopter-harness-sync.sh` — the shape b harness all three layers invoke; extended with workflow-loop checks via bet 25g WU-3; FURTHER extended with Shape d mechanism-fidelity check classes via bet 27c WU-5 (4 new classes: `hook-wiring-presence`, `hook-path-resolution-under-install-class`, `hook-end-to-end-smoke`, `rule-mechanism-claim-fidelity`; V1 ADVISORY → V2 BLOCK after Bet C-pre-2 cures land)
92
+ - `standards/cold-adopter-harness.md` (standard tier — operator + standard adopter reachable) — operational reference for invocation + check semantics; documents Shape d V1 ADVISORY mode per bet 27c WU-5
93
+ - `.claude/rules/bootstrap-pair-discipline.md` — sister rule; amended in bet 25g WU-1 to list cold-adopter validation as a paired bootstrap class
94
+
95
+ ## Composes with
96
+
97
+ - `@luminary saltzer-schroeder` — complete-mediation principle (every adopter-observable surface validated by the harness; the rule names which surfaces are observable)
98
+ - `@luminary hyrum-wright` — observable behavior becomes load-bearing (the harness pins the observable contract; this rule formalizes that pinning)
99
+ - `@luminary linus-torvalds` — adopter-trust ceiling (CI gate IS the operational form of the adopter-compatibility stance; rule names the discipline)
100
+ - `@luminary michael-feathers` — characterization tests at the adopter boundary (the harness IS the characterization test; this rule mandates the test fires)
101
+ - `.claude/rules/we-dont-break-adopters.md` — sister discipline; this rule is the test-side of the discipline that rule defines
102
+ - `.claude/rules/bootstrap-pair-discipline.md` — sister rule; this rule's "harness check class" IS one of bootstrap-pair's required pairs for adopter-observable primitives
103
+ - `.claude/rules/testing-tier-config.md` — Tier 0 paths the harness validates; sister rule for per-path test enforcement
104
+ - `.claude/rules/loop-discipline.md` — the per-PR cycle this rule fires within (loop's final-validation step composes the harness check)
105
+ - `.claude/rules/blocked-items.md` — BLOCK protocol the CI job fires when the harness fails
106
+
107
+ ## Distinct from
108
+
109
+ - `.claude/rules/we-dont-break-adopters.md` — that rule names the operator-side discipline (ship within the adopter contract); this rule names the mechanical enforcement (the harness fires on every PR)
110
+ - `.claude/rules/bootstrap-pair-discipline.md` — that rule lists 5 substrate-primitive classes that need paired bootstrap; this rule extends with the adopter-validation pair as a 6th class
111
+ - `.claude/rules/testing-tier-config.md` — that rule names per-path test enforcement tier; this rule names harness-level enforcement that composes with per-path tiers
112
+ - `scripts/release-to-bassclef.sh` — that script publishes substrate downstream; this rule's harness is a pre-publish gate (CI fires before release pipeline runs)
113
+
114
+ ## Refs
115
+
116
+ - bassclef-upstream#341 — shape c (this rule + the CI job ship together via bet 25g)
117
+ - bassclef-upstream#333 — shape a (harness foundation; closed via 25e)
118
+ - bassclef-upstream#320 — substrate architect-review epic (closed; 24c umbrella still in_flight)
119
+ - bet `docs/iteration-bets/2026-06-25g-cold-adopter-ci-and-discipline.md` — ship vehicle
120
+ - bet `docs/iteration-bets/2026-06-25f-fixes-then-harness.md` — shape b parent
121
+ - ADR-029 release pipeline (CI harness fires before release)
122
+ - ADR-031 (`we-dont-break-adopters` decision) — this rule is the test-side enforcement
123
+ - 2026-06-25 /longrun prep audit — surfaced the 5 wiring gaps this rule + bet 25g close (3 of 5)
124
+
125
+ ## Retirement condition
126
+
127
+ This rule retires only if bassclef stops having adopters OR the cold-adopter harness retires. The CI mechanical layer may evolve (separate workflow, runner profile change, harness extension) but the discipline of validating adopter-observable surface before merge persists.
128
+
129
+ Closes audit Gap 2 surfaced at /longrun prep 2026-06-25. Sister gaps 4 + 5 (pre-commit hook, /verify composition) filed as follow-ons during bet 25g closeout.
@@ -0,0 +1,188 @@
1
+ ---
2
+ tier: lite
3
+ description: "When /longrun prep proposes scope shapes, each shape's compounding-sequence row comes from fresh analysis."
4
+ ---
5
+
6
+ # Compounding-Axis Fresh Analysis
7
+
8
+ When `/longrun` prep proposes scope shapes, each shape's compounding-sequence row comes from fresh analysis. Hand-off documents do not satisfy Step 1.5 of the `/longrun` SKILL. That includes `docs/whereami.md`'s `next_longrun_queue` recommended order, an audit doc's `next_pending`, and a prior chronicle's pickup suggestion. Each shape gets its own row from the agent's own analysis at prep time.
9
+
10
+ This rule is the methodology layer. The mechanical layer is `.claude/hooks/longrun-prep-compounding-sequence-check.sh`. That Stop hook is wired in `.claude/settings.json`. Tests at `.claude/hooks/tests/longrun-prep-compounding-sequence-check.test.sh`.
11
+
12
+ The hook scans the latest assistant message when `state/markers/turn-prose-surface/longrun_prep_proposal.marker` is touched. It BLOCKs the stop (exit 2) when the compounding-sequence column headers are missing. Hook accepts EITHER shape per PR #1591 (bassclef#1555 PR-1): the new 6-axis frame (default, per plan doc `docs/next-session-plan-2026-09-09-compounding-axis-refactor.md`) OR the legacy 5-axis frame (grace window through 2026-10-31 per ADR-031). Backward compat opt-out: `COMPOUNDING_AXIS_TOGGLE=advisory` reverts to V1 (finding to stderr; exit 0).
13
+
14
+ **V2 strict landed 2026-06-30.** The first `/longrun` prep after V1 ship surfaced only 3 of 5 columns at the operator-facing table. The hook caught the miss as designed. But it emitted ADVISORY to stderr. The agent could not see its own advisory in conversation. The operator could not see it on mobile. The operator asked "compounding sequence miss intact from the last substrate fix?" — that proved the visibility gap. The hook ships V2 strict as the next calibration step per ADR-035 (substrate-as-system — the mechanism must close the loop).
15
+
16
+ ## Why this rule exists
17
+
18
+ Bet 30b filed under five catches of one class in 36 hours. The pattern: the agent emits operator-facing assertions without re-reading the data the assertion claims. One catch was that evening's `/longrun` prep. The agent shipped three scope shapes ordered by size rather than by how often each shape's work would fire after shipping. The agent treated whereami's `next_longrun_queue` recommended order as a stand-in for fresh analysis. Operator caught the miss and asked why the analysis step was skipped.
19
+
20
+ The hook caught nothing. The agent touched the surface marker AFTER writing the proposal, not before. The Stop hook fired at the next Stop event with a different latest assistant message — not the proposal where the column was missing.
21
+
22
+ This rule extends the discipline beyond hook coverage:
23
+
24
+ 1. **Fresh analysis** — each scope candidate gets a per-shape compounding row authored at prep time, not copied from a hand-off doc
25
+ 2. **Marker touch BEFORE the surface** — the marker is the agent's commit to writing the compounding-aware proposal next; touching after defeats the hook's check (cross-reference `.claude/rules/operator-facing-prose.md` Rule 3)
26
+ 3. **Marker cleanup AFTER the surface (paired with V2 strict)** — the agent removes the marker once the prep proposal has landed AND the operator has confirmed scope. The marker's purpose is satisfied at that point. Without cleanup under V2 strict, every post-prep Stop event blocks. The hook scans every assistant message. Most post-prep turns (status updates, commit summaries, WU work) do not carry a shape proposal table. Cleanup is the bootstrap pair V1 advisory hid (exit 0 forgave the gap).
27
+ 4. **R8 underlying pattern (per bet 30b risk ledger)** — the agent does not label a substrate artifact (risk ledger, decomposition, audit, ADR-consult, sources-read citation) without doing the underlying work that produces it. Naming the artifact ≠ producing it.
28
+
29
+ ## When this rule fires
30
+
31
+ Every `/longrun` prep that proposes scope shapes:
32
+
33
+ - `/longrun prep` (operator types) — Step 1.5 compounding-sequence analysis per shape candidate
34
+ - `/sprint` next-work proposals when scope-shape options are surfaced (sister surface; same shape contract)
35
+ - Bet doc authoring — when the goal doc's `## Steps` section enumerates a per-shape table, the same axis applies
36
+
37
+ The rule does NOT fire on:
38
+
39
+ - Single-shape continuation prep where the operator has already confirmed scope (no shape PICK happening; per-shape compounding still applies per memory `feedback-compounding-sequence-mandatory-every-prep-surface`)
40
+ - WU-sequencing inside a chosen shape (covered by sister rule `.claude/rules/wu-sequencing-compounds.md` for Step 1.7 INTRA-shape)
41
+
42
+ ## What the rule requires
43
+
44
+ Before the operator picks a scope shape:
45
+
46
+ 1. **Touch the surface marker FIRST** — `mkdir -p state/markers/turn-prose-surface && touch state/markers/turn-prose-surface/longrun_prep_proposal.marker` BEFORE writing the proposal. The marker tells the Stop hook the next message is a prep proposal subject to the column-presence check.
47
+ 2. **Per-option compounding row** — each option candidate carries 6 axes per `/longrun` SKILL Step 1.5 (new default per bassclef#1555). Per `#1193` cure, Step 1.5 prescribes the `### Compounding value per option` section explicitly. The 6 axes read as practical decision fields for Sam (Saturday evaluator) and Louis (context switcher) per plan doc `docs/next-session-plan-2026-09-09-compounding-axis-refactor.md` L36-45.
48
+
49
+ The 6-axis default (new; per bassclef#1555 PR-2):
50
+
51
+ | Axis | Source | Standard values |
52
+ |---|---|---|
53
+ | Deliverable | Plain sentence | What ships when this option lands |
54
+ | Problem | `/state-a-problem brief` | ≤500 chars; framework implicit |
55
+ | Value prop | `/value-prop tweet` | ≤280 chars; claim + sharpener |
56
+ | Turns | Grounded range | Cite past goal actuals per `.claude/rules/turn-estimate-grounding.md` |
57
+ | Risk | 🟢 / 🟡 / 🔴 | Low / medium / high |
58
+ | Shipping priority | Q1 / Q2 / Q3 / Q4 or blank | Blank prompts `Run /eisenhower to prioritize?` |
59
+
60
+ The 5-axis legacy (grace window through 2026-10-31 per ADR-031; hook accepts both shapes):
61
+
62
+ | Plain-English (preferred per ADR-040 D4) | Compressed (grace only) | Standard values |
63
+ |---|---|---|
64
+ | Where the payoff shows up | Compounding surface | per-PR / per-release / per-session / per-adopter / per-quarter |
65
+ | How often it fires | Compounding rate | continuous / frequent / per-session / per-adopter / per-quarter |
66
+ | What must be true first | Foundation prerequisites | none / specific goal / ticket / config flag |
67
+ | Does this teach a shape later work reuses | Inverse-dependency | yes (names the later work) / no |
68
+ | What breaks if we ship this half-done | Risk class | low / medium / high |
69
+
70
+ R8 catch preservation: Deliverable + Problem + Value prop force fresh per-option analysis. `/state-a-problem` and `/value-prop` are themselves cognitive tools that resist copy-paste. The distinct-values check per option (bassclef#564) applies to whichever shape the prep uses.
71
+ 3. **Fresh analysis** — the column values come from the agent's reading of the shape itself, not from a hand-off doc's recommended order. If the agent reads a hand-off doc and the order matches its own analysis, the row matches by coincidence, not by copy. If the order DOESN'T match, the rule surfaces the conflict to the operator.
72
+ 4. **Recommended shape rationale** cites the compounding sequence + adopter-benefit mechanism (per sister rule for Step 1.6 bassclef-upstream#1302) explicitly.
73
+ 5. **Remove the surface marker AFTER scope confirmation** — once the prep proposal has landed AND the operator has confirmed scope (or the proposal is being abandoned), remove `state/markers/turn-prose-surface/longrun_prep_proposal.marker`. The marker's purpose is satisfied. Leaving it present makes every post-prep Stop event block under V2 strict default. Most subsequent turns (status updates, commit summaries, WU work) do not carry a shape proposal table.
74
+
75
+ ```bash
76
+ rm -f state/markers/turn-prose-surface/longrun_prep_proposal.marker
77
+ ```
78
+
79
+ This step is mandatory at the prep→execution handoff. Hook auto-cleanup deferred to a follow-on (substrate-evolution ticket) — the rule names the discipline; the agent removes the marker today.
80
+
81
+ ## Postcondition contract (per Hoare)
82
+
83
+ Per bassclef-upstream#564 + luminary consultation (Ousterhout / Hoare / Feathers / Saltzer-Schroeder / Beck):
84
+
85
+ **Precondition:** the /longrun prep proposes 2+ candidate shapes, each with a distinct scope.
86
+
87
+ **Postcondition:** for every option O in the candidate set, for every axis A in the axis list of the shape the prep uses (6-axis default OR 5-axis legacy), the prep output contains a non-empty value V(O, A). The rendering satisfies the postcondition in one of two accepted shapes (per bassclef-upstream#1376):
88
+
89
+ - **Per-option shape (pre-existing default).** V(O, A) renders under O's section as bullets or table rows. Each option gets a full section. Not only in a header row shared across options.
90
+ - **Per-recommended-only shape (bassclef-upstream#1376 addition).** The prep opens with `**Recommend:** Option X`. V(recommended, A) renders under the recommended option's section as bullets. V(other, A) renders as scan-table row cells — one cell per axis per non-recommended option. Reader lands the recommended card fast; other options stay auditable from the scan-table row.
91
+
92
+ The 6-axis default is: Deliverable, Problem, Value prop, Turns, Risk, Shipping priority. The 5-axis legacy (grace window through 2026-10-31) is: Where the payoff shows up, How often it fires, What must be true first, Does this teach a shape later work reuses, What breaks if we ship this half-done. Hook accepts either shape per PR #1591.
93
+
94
+ The postcondition is stronger than the message-level check V2 ships. V2 verifies that the column names appear anywhere in the message. V3 (bassclef-upstream#564; ships with this rule amendment) verifies that each option section carries all axes of the chosen shape as distinct values. A single header row with axis names but no per-option values fails the postcondition. That is the R8 pattern this cure closes.
95
+
96
+ Per `#1193` cure — the hook regex accepts both `Shape a-c` and `Option a-e` for the per-shape check during the grace window through 2026-10-31 per `.claude/rules/we-dont-break-adopters.md`. After that date only `Option [a-z]` matches. SKILL `#830` renamed the label; the rule postcondition applies equally to both vocabularies.
97
+
98
+ **When shapes legitimately share an axis value** (e.g., all three shapes have `Risk class: low` because the work is small), the values still render per shape — same text under three sections. Rendering satisfies the postcondition. The check does not flag legitimate convergence.
99
+
100
+ ## Anti-patterns
101
+
102
+ These shapes fail this rule.
103
+
104
+ **Agent ships scope shapes WITHOUT compounding-sequence columns.** Tonight's failure (caught by operator). Cure: include the columns; touch the marker BEFORE the proposal.
105
+
106
+ **Agent ships scope shapes with columns COPIED from whereami's `next_longrun_queue` or an audit's `next_pending`.** The columns are present but the fresh-analysis precondition is violated (R2 Hoare — mechanically unverifiable from output). Cure: re-analyze each shape independently; surface conflict if hand-off order disagrees with fresh order.
107
+
108
+ **Agent touches the surface marker AFTER writing the proposal.** Tonight's failure mode. The hook fires at the next Stop event with the marker-touch message as the latest assistant message — not the proposal. Cure: touch marker BEFORE proposal.
109
+
110
+ **Agent leaves the surface marker present after scope confirmation.** Under V2 strict default this blocks every subsequent Stop event because the hook scans every assistant message and most post-prep turns do not carry a shape proposal table. Cure: remove the marker at the prep→execution handoff per step 5 above.
111
+
112
+ **Agent labels a "risk ledger" / "decomposition" / "audit" / "sources-read" without doing the underlying work (R8 underlying pattern).** The label is the assertion; the work that produces it is the data the assertion claims. Tonight's risk-ledger catch by operator. Cure: cite the file path of the produced artifact in agent output; not just the label.
113
+
114
+ INSTEAD of any of these: do the work first; touch the marker; write the proposal with the compounding row populated from fresh analysis; cite produced artifacts by file path.
115
+
116
+ ## Hand-off documents that do NOT satisfy
117
+
118
+ These all carry useful context but do not substitute for fresh analysis:
119
+
120
+ - `docs/whereami.md` `next_longrun_queue` — operator + prior session's pickup suggestion; not compounding-derived
121
+ - audit doc `next_pending` field — sequenced by audit author; may not match current compounding priorities
122
+ - prior chronicle's "next pickup" suggestion — operator-facing handoff narrative; not analysis
123
+ - prior goal doc's `next_bet` field — sequencing intent; not analysis
124
+ - memory entry `feedback_*` — prior discipline; relevant context but not a substitute for the per-shape row
125
+
126
+ Agent reads all of these for context. Agent then writes fresh compounding analysis per shape. The two activities are distinct.
127
+
128
+ ## Override
129
+
130
+ `SKIP_COMPOUNDING_AXIS_CHECK=1 <command>` — bypass the hook for one call (already exists; logged via trace-helper). The rule's methodology layer has no override — fresh analysis is the precondition; without it, the proposal is incomplete.
131
+
132
+ For trivial single-shape continuation prep where the operator has already confirmed scope: the rule applies but cost is small (one row in the goal doc); no override needed.
133
+
134
+ ## Composes with
135
+
136
+ - `.claude/rules/wu-sequencing-compounds.md` — sister at Step 1.7 INTRA-shape (per-step produces/consumes)
137
+ - `.claude/rules/operator-facing-prose.md` Rule 3 — marker touch BEFORE the named surface (this rule's mechanism precondition)
138
+ - `.claude/rules/blocked-items.md` — BLOCKED protocol the hook fires under V2 strict
139
+ - `.claude/rules/substrate-as-system.md` — every rule has a mechanism + every mechanism has a rule; this rule pairs the existing `longrun-prep-compounding-sequence-check.sh` mechanism with its rule body
140
+ - `.claude/hooks/longrun-prep-compounding-sequence-check.sh` — the mechanical layer
141
+ - `.claude/hooks/tests/longrun-prep-compounding-sequence-check.test.sh` — Tier 0 tests pinning the hook
142
+ - `.claude/skills/longrun/SKILL.md` Step 1.5 — the procedure surface the rule serves
143
+ - `@luminary jerome-saltzer-and-michael-schroeder` — complete mediation principle
144
+ - `@luminary tony-hoare` — pre/postcondition contracts (R2 fresh-analysis is precondition, mechanically unverifiable)
145
+ - `@luminary michael-feathers` — characterization tests pin REAL prep prose (R3 follow-on)
146
+ - `@luminary kent-beck` — Tier 0 strict TDD on the hook (R4 follow-on covers each umbrella ticket instance)
147
+
148
+ ## Refs
149
+
150
+ - sunj-labs/bassclef-upstream#540 — umbrella ticket; this rule closes 1 of 5 sub-cures
151
+ - `docs/iteration-bets/2026-06-30b-substrate-anchoring-cure.md` — goal doc; WU-E ships this rule
152
+ - `docs/risk-ledgers/2026-06-30b-substrate-anchoring-cure.md` — 8 lens pre-mortem + R8 meta-catch
153
+ - bassclef-upstream#1299 (Step 1.5 INTER-shape compounding-sequence) — sister filing ticket if it exists
154
+ - bassclef-upstream#1302 (Step 1.6 INTER-shape adopter-benefit) — sister rule shape
155
+ - bassclef-upstream#1304 (turn-prose-surface marker discipline) — operator-facing-prose Rule 3
156
+ - memory `feedback-compounding-sequence-mandatory-every-prep-surface` — fires at every prep surface, including single-shape continuation
157
+ - memory `feedback-architect-review-audit-is-authoritative` — audits override `next_longrun_queue` for next-pickup
158
+ - ADR-035 substrate-as-system — the tenet this rule operationalizes at Step 1.5
159
+ - ADR-040 Decision 4 (planning-skill body template) — plain-English axis names shipped in PR #743 (goal 17a). Per #745, the sister rule + hook accept both shapes during the grace window through 2026-10-31.
160
+
161
+ ## Deferred to follow-on
162
+
163
+ The bet 30b risk ledger named these add-to-scope dispositions for WU-E; they ship in a follow-on goal:
164
+
165
+ - **R3 (Feathers)** — extend Tier 0 tests with 3 characterization tests against REAL `/longrun` prep messages (tonight's + 2 from prior goal prep chronicles)
166
+ - **R4 (Beck)** — extend Tier 0 tests with cases for each instance under umbrella #540 (release recommendation skip, cleanup proposal skip, visual-compare skip, session-orientation skip)
167
+ - **R6 (Linus)** — cold-adopter harness check for session-reflection.d/05-active-bet.sh fragment presence (sister to WU-B)
168
+ - **R7 (Norman)** — extend `longrun-prep-compounding-sequence-check.sh` to ALSO scan for proof-of-read line from `/longrun` Step 0.4 (sister to WU-B cure 3)
169
+
170
+ The rule body is complete without these; the hook coverage extension is a separate ship vehicle.
171
+
172
+ ## Per-WU coverage (bassclef-upstream#597 extension)
173
+
174
+ Per-WU compounding-sequence rendering carries the same 5 axes at the step layer, alongside the produces/consumes table.
175
+
176
+ When a `/longrun` prep proposal contains 2+ WU rows in the produces/consumes table (per Step 1.7), the proposal MUST also carry per-step compounding-sequence rendering — either a `## Compounding value per step` section OR per-step 5-axis bullets under each step.
177
+
178
+ Anti-pattern that fails: shape-level 5 axes rendered per Step 1.5, WU produces/consumes rendered per Step 1.7, per-step compounding-sequence skipped. This shape passed as convention for weeks. It got displaced when PR #567 tightened Step 1.5 to per-shape distinct values, which shifted agent attention to shape-level. INSTEAD of trusting convention: mechanize the per-step coverage so sibling discipline tightening does not crowd it out.
179
+
180
+ Correct shape: same 5 axes rendered per step with distinct values — plain-English names preferred per ADR-040 D4 (Where the payoff shows up / How often it fires / What must be true first / Does this teach a shape later work reuses / What breaks if we ship this half-done). Compressed forms accepted during the grace window through 2026-10-31.
181
+
182
+ Mechanical layer: `.claude/hooks/longrun-prep-compounding-sequence-check.sh` extended with per-step check (V1 strict — BLOCK on missing per-step axes when 2+ WU rows present). Toggle `COMPOUNDING_AXIS_TOGGLE=advisory` retains backward-compat.
183
+
184
+ Sister to Step 1.5 per-shape check (bassclef-upstream#564). Same discipline shape at a different layer.
185
+
186
+ ## Retirement condition
187
+
188
+ This rule retires only if `/longrun` Step 1.5 stops requiring per-shape compounding analysis. Mechanical extensions (V2 BLOCK flip, additional column types, additional surfaces) may evolve; the discipline of fresh analysis per shape persists.