@thebassclef/lite 1.0.3 → 1.1.0

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 (275) hide show
  1. package/dist/cli.cjs +92 -6
  2. package/dist/cli.js +92 -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/dist/lite/.claude/agents/architect.md +70 -0
  7. package/dist/lite/.claude/agents/builder.md +114 -0
  8. package/dist/lite/.claude/agents/designer.md +156 -0
  9. package/dist/lite/.claude/agents/reviewer.md +88 -0
  10. package/dist/lite/.claude/hooks/bassclef-sync.sh +85 -27
  11. package/dist/lite/.claude/hooks/longrun-prep-compounding-axis-check.sh +492 -0
  12. package/dist/lite/.claude/hooks/longrun-prep-render-check.sh +236 -0
  13. package/dist/lite/.claude/hooks/persona-name-scrub-check.sh +105 -0
  14. package/dist/lite/.claude/hooks/skill-step-list-check.sh +171 -0
  15. package/dist/lite/.claude/luminaries/alan-cooper.md +170 -0
  16. package/dist/lite/.claude/luminaries/alistair-cockburn.md +140 -0
  17. package/dist/lite/.claude/luminaries/amazon-pr-faq.md +34 -0
  18. package/dist/lite/.claude/luminaries/andreas-zeller.md +74 -0
  19. package/dist/lite/.claude/luminaries/ash-maurya.md +121 -0
  20. package/dist/lite/.claude/luminaries/bill-buxton.md +210 -0
  21. package/dist/lite/.claude/luminaries/charles-sanders-peirce.md +150 -0
  22. package/dist/lite/.claude/luminaries/david-ogilvy.md +192 -0
  23. package/dist/lite/.claude/luminaries/don-norman.md +173 -0
  24. package/dist/lite/.claude/luminaries/edward-tufte.md +179 -0
  25. package/dist/lite/.claude/luminaries/eric-evans.md +160 -0
  26. package/dist/lite/.claude/luminaries/frederick-brooks.md +50 -0
  27. package/dist/lite/.claude/luminaries/gang-of-four.md +157 -0
  28. package/dist/lite/.claude/luminaries/glenford-myers.md +230 -0
  29. package/dist/lite/.claude/luminaries/hunt-thomas.md +115 -0
  30. package/dist/lite/.claude/luminaries/hyrum-wright.md +94 -0
  31. package/dist/lite/.claude/luminaries/jason-fried-dhh.md +46 -0
  32. package/dist/lite/.claude/luminaries/jesse-james-garrett.md +154 -0
  33. package/dist/lite/.claude/luminaries/john-ousterhout.md +94 -0
  34. package/dist/lite/.claude/luminaries/karl-popper.md +132 -0
  35. package/dist/lite/.claude/luminaries/kent-beck.md +168 -0
  36. package/dist/lite/.claude/luminaries/linus-torvalds.md +218 -0
  37. package/dist/lite/.claude/luminaries/martin-fowler.md +164 -0
  38. package/dist/lite/.claude/luminaries/michael-feathers.md +125 -0
  39. package/dist/lite/.claude/luminaries/michael-nygard.md +118 -0
  40. package/dist/lite/.claude/luminaries/robert-c-martin.md +164 -0
  41. package/dist/lite/.claude/luminaries/saltzer-schroeder.md +194 -0
  42. package/dist/lite/.claude/luminaries/sophia-prater.md +193 -0
  43. package/dist/lite/.claude/luminaries/stephen-toulmin.md +131 -0
  44. package/dist/lite/.claude/luminaries/tony-hoare.md +170 -0
  45. package/dist/lite/.claude/luminaries/vaughn-vernon.md +50 -0
  46. package/dist/lite/.claude/luminaries/w-edwards-deming.md +158 -0
  47. package/dist/lite/.claude/rules/accessor-library-discipline.md +110 -0
  48. package/dist/lite/.claude/rules/adr-discipline.md +96 -0
  49. package/dist/lite/.claude/rules/api-conventions.md +115 -0
  50. package/dist/lite/.claude/rules/artifact-ingestion.md +137 -0
  51. package/dist/lite/.claude/rules/assert-only-after-verify.md +111 -0
  52. package/dist/lite/.claude/rules/blocked-items.md +139 -0
  53. package/dist/lite/.claude/rules/bootstrap-pair-discipline.md +106 -0
  54. package/dist/lite/.claude/rules/branching.md +28 -0
  55. package/dist/lite/.claude/rules/cold-adopter-harness-discipline.md +93 -0
  56. package/dist/lite/.claude/rules/commit-conventions.md +22 -0
  57. package/dist/lite/.claude/rules/compounding-axis-fresh-analysis.md +173 -0
  58. package/dist/lite/.claude/rules/compounding-sequence-fresh-analysis.md +173 -0
  59. package/dist/lite/.claude/rules/context-engineering.md +155 -0
  60. package/dist/lite/.claude/rules/context-management.md +85 -0
  61. package/dist/lite/.claude/rules/defensive-bash.md +52 -0
  62. package/dist/lite/.claude/rules/deferred-actions.md +233 -0
  63. package/dist/lite/.claude/rules/destructive-operations.md +69 -0
  64. package/dist/lite/.claude/rules/diagnosis.md +38 -0
  65. package/dist/lite/.claude/rules/github-issue-flash-tweet.md +114 -0
  66. package/dist/lite/.claude/rules/guardrails.md +73 -0
  67. package/dist/lite/.claude/rules/hook-wire-on-author.md +77 -0
  68. package/dist/lite/.claude/rules/identifier-leak-prevention.md +73 -0
  69. package/dist/lite/.claude/rules/iteration-bet-brief-completeness.md +43 -0
  70. package/dist/lite/.claude/rules/lite-manifest-schema-change-discipline.md +79 -0
  71. package/dist/lite/.claude/rules/longrun-prep-plan-doc-compression.md +77 -0
  72. package/dist/lite/.claude/rules/loop-discipline.md +71 -0
  73. package/dist/lite/.claude/rules/manual-prod-approval.md +100 -0
  74. package/dist/lite/.claude/rules/marker-enrichment-discipline.md +72 -0
  75. package/dist/lite/.claude/rules/mobile-ephemeral-session.md +109 -0
  76. package/dist/lite/.claude/rules/new-dependency-check.md +44 -0
  77. package/dist/lite/.claude/rules/oo-ad-entry-point.md +95 -0
  78. package/dist/lite/.claude/rules/operator-facing-prose.md +177 -0
  79. package/dist/lite/.claude/rules/option-label-discipline.md +82 -0
  80. package/dist/lite/.claude/rules/pattern-annotation.md +83 -0
  81. package/dist/lite/.claude/rules/persona-name-leak-scrub.md +90 -0
  82. package/dist/lite/.claude/rules/plain-english-discipline.md +132 -0
  83. package/dist/lite/.claude/rules/plan-enumeration-needs-value-props.md +177 -0
  84. package/dist/lite/.claude/rules/pr-body-shape.md +195 -0
  85. package/dist/lite/.claude/rules/pr-strategy.md +142 -0
  86. package/dist/lite/.claude/rules/pr-title-shape.md +90 -0
  87. package/dist/lite/.claude/rules/prototype-workflow.md +53 -0
  88. package/dist/lite/.claude/rules/reserved-skill-names.md +103 -0
  89. package/dist/lite/.claude/rules/schema-management.md +42 -0
  90. package/dist/lite/.claude/rules/sdlc-gates.md +149 -0
  91. package/dist/lite/.claude/rules/security.md +37 -0
  92. package/dist/lite/.claude/rules/session-artifacts.md +236 -0
  93. package/dist/lite/.claude/rules/skill-composition-declarations.md +105 -0
  94. package/dist/lite/.claude/rules/skill-description-clarity.md +196 -0
  95. package/dist/lite/.claude/rules/skill-procedure-step-list.md +119 -0
  96. package/dist/lite/.claude/rules/sprint-prep-preset-picker.md +76 -0
  97. package/dist/lite/.claude/rules/state-schema-validation.md +156 -0
  98. package/dist/lite/.claude/rules/stuck-signal-diagnostic.md +111 -0
  99. package/dist/lite/.claude/rules/substrate-config-schema.md +85 -0
  100. package/dist/lite/.claude/rules/test-list-discipline.md +129 -0
  101. package/dist/lite/.claude/rules/test-sufficiency.md +186 -0
  102. package/dist/lite/.claude/rules/testing-tier-config.md +125 -0
  103. package/dist/lite/.claude/rules/testing.md +38 -0
  104. package/dist/lite/.claude/rules/turn-estimate-grounding.md +82 -0
  105. package/dist/lite/.claude/rules/visual-hierarchy.md +427 -0
  106. package/dist/lite/.claude/rules/we-dont-break-adopters.md +103 -0
  107. package/dist/lite/.claude/rules/whereami-load-bearing.md +184 -0
  108. package/dist/lite/.claude/rules/writing-craft-discipline.md +72 -0
  109. package/dist/lite/.claude/rules/wu-sequencing-compounds.md +119 -0
  110. package/dist/lite/.claude/skills/build/SKILL.md +640 -0
  111. package/dist/lite/.claude/skills/chronicle/SKILL.md +55 -0
  112. package/dist/lite/.claude/skills/clean-artifacts/SKILL.md +249 -0
  113. package/dist/lite/.claude/skills/decompose/SKILL.md +280 -0
  114. package/dist/lite/.claude/skills/diagnose/SKILL.md +297 -0
  115. package/dist/lite/.claude/skills/feynman/SKILL.md +90 -0
  116. package/dist/lite/.claude/skills/howdoi/SKILL.md +105 -0
  117. package/dist/lite/.claude/skills/ia-model/SKILL.md +108 -0
  118. package/dist/lite/.claude/skills/interaction-design/SKILL.md +112 -0
  119. package/dist/lite/.claude/skills/interpret-input/SKILL.md +180 -0
  120. package/dist/lite/.claude/skills/journal/SKILL.md +209 -0
  121. package/dist/lite/.claude/skills/kiss/SKILL.md +449 -0
  122. package/dist/lite/.claude/skills/launch/SKILL.md +915 -0
  123. package/dist/lite/.claude/skills/lean-canvas/SKILL.md +332 -0
  124. package/dist/lite/.claude/skills/longrun/SKILL.md +512 -0
  125. package/dist/lite/.claude/skills/luminary/SKILL.md +481 -0
  126. package/dist/lite/.claude/skills/ogilvy-writing-audit/SKILL.md +177 -0
  127. package/dist/lite/.claude/skills/onboard-repo/SKILL.md +1640 -0
  128. package/dist/lite/.claude/skills/pattern-review/SKILL.md +99 -0
  129. package/dist/lite/.claude/skills/personas/SKILL.md +207 -0
  130. package/dist/lite/.claude/skills/promote/SKILL.md +283 -0
  131. package/dist/lite/.claude/skills/requirement/SKILL.md +98 -0
  132. package/dist/lite/.claude/skills/retro/SKILL.md +117 -0
  133. package/dist/lite/.claude/skills/riff/SKILL.md +114 -0
  134. package/dist/lite/.claude/skills/roadmap-reconcile/SKILL.md +163 -0
  135. package/dist/lite/.claude/skills/session-end/SKILL.md +309 -0
  136. package/dist/lite/.claude/skills/session-log/SKILL.md +299 -0
  137. package/dist/lite/.claude/skills/skills/SKILL.md +228 -0
  138. package/dist/lite/.claude/skills/spec/SKILL.md +105 -0
  139. package/dist/lite/.claude/skills/sprint/SKILL.md +418 -0
  140. package/dist/lite/.claude/skills/stage/SKILL.md +384 -0
  141. package/dist/lite/.claude/skills/state-a-problem/SKILL.md +185 -0
  142. package/dist/lite/.claude/skills/temperance/SKILL.md +108 -0
  143. package/dist/lite/.claude/skills/use-case/SKILL.md +417 -0
  144. package/dist/lite/.claude/skills/user-stories/SKILL.md +268 -0
  145. package/dist/lite/.claude/skills/value-prop/SKILL.md +251 -0
  146. package/dist/lite/.claude/skills/verify/SKILL.md +160 -0
  147. package/dist/lite/.claude/skills/visual-review/SKILL.md +503 -0
  148. package/dist/lite/.claude/skills/whats-the-plan/SKILL.md +202 -0
  149. package/dist/lite/.claude/skills/whereami/SKILL.md +307 -0
  150. package/dist/lite/AGENTS.md +79 -0
  151. package/dist/lite/CLAUDE-lite.md +85 -0
  152. package/dist/lite/CODE_OF_CONDUCT.md +28 -0
  153. package/dist/lite/CONTRIBUTING.md +177 -0
  154. package/dist/lite/README.md +173 -0
  155. package/dist/lite/SECURITY.md +19 -0
  156. package/dist/lite/architecture/decisions/ADR-029-release-pipeline.md +79 -0
  157. package/dist/lite/architecture/decisions/ADR-031-non-breaking-changes-adopter-discipline.md +139 -0
  158. package/dist/lite/architecture/decisions/ADR-032-adopter-sync-dispatcher-architecture.md +192 -0
  159. package/dist/lite/architecture/decisions/ADR-039-release-tagging-scheme.md +145 -0
  160. package/dist/lite/architecture/decisions/ADR-040-planning-skill-vocabulary-and-lite-profile.md +155 -0
  161. package/dist/lite/architecture/decisions/ADR-044-unified-skill-body-template.md +162 -0
  162. package/dist/lite/lib/clean-artifacts-sweep.sh +112 -0
  163. package/dist/lite/lib/code-comment-discipline.sh +144 -0
  164. package/dist/lite/lib/composer-preflight.sh +459 -0
  165. package/dist/lite/lib/deferred-actions.sh +146 -0
  166. package/dist/lite/lib/hook-header-parser.sh +61 -0
  167. package/dist/lite/lib/hook-heartbeat.sh +152 -0
  168. package/dist/lite/lib/hook-inject.sh +255 -0
  169. package/dist/lite/lib/hook-installer.sh +195 -0
  170. package/dist/lite/lib/luminary-pick.sh +96 -0
  171. package/dist/lite/lib/output-discipline.sh +143 -0
  172. package/dist/lite/lib/prose-scan-boundary.sh +171 -0
  173. package/dist/lite/lib/rewrite-check.sh +214 -0
  174. package/dist/lite/lib/session-rescue.sh +151 -0
  175. package/dist/lite/lib/source-graph-walker.sh +277 -0
  176. package/dist/lite/lib/state.sh +1372 -0
  177. package/dist/lite/lib/telemetry.sh +205 -0
  178. package/dist/lite/lib/tier-check.sh +187 -0
  179. package/dist/lite/lib/tier-dependency-audit.sh +1088 -0
  180. package/dist/lite/presence/install/bassclef-hook-connect.sh +178 -0
  181. package/dist/lite/presence/install/bassclef-sync.dispatcher.template.sh +841 -0
  182. package/dist/lite/presence/install/bassclef-sync.template.sh +2278 -0
  183. package/dist/lite/presence/install/schedule-auto-save.cron.sh +88 -0
  184. package/dist/lite/presence/install/schedule-auto-save.taskscheduler.md +122 -0
  185. package/dist/lite/scripts/aggregate-telemetry.sh +217 -0
  186. package/dist/lite/scripts/analyze-tier-dependencies.sh +239 -0
  187. package/dist/lite/scripts/generate-lite-manifest.sh +505 -0
  188. package/dist/lite/scripts/generate-tier-manifest.sh +28 -0
  189. package/dist/lite/scripts/intent-drift-check.sh +456 -0
  190. package/dist/lite/scripts/lite-manifest-drift-check.sh +146 -0
  191. package/dist/lite/scripts/render-lite-manifest-doc.sh +150 -0
  192. package/dist/lite/standards/adr-template.md +86 -0
  193. package/dist/lite/standards/api-conventions/nextjs.md +84 -0
  194. package/dist/lite/standards/artifact-composition.md +209 -0
  195. package/dist/lite/standards/bash-hook-safety.md +246 -0
  196. package/dist/lite/standards/bassclef-configs-schema.md +232 -0
  197. package/dist/lite/standards/bassclef-evolution.md +143 -0
  198. package/dist/lite/standards/bassclef-internal-jargon.md +244 -0
  199. package/dist/lite/standards/bassclef-managed-sentinel.md +96 -0
  200. package/dist/lite/standards/bassclef-source-config.md +228 -0
  201. package/dist/lite/standards/branch-stacking.md +408 -0
  202. package/dist/lite/standards/code-safety-principles.md +176 -0
  203. package/dist/lite/standards/composer-prerequisites.md +155 -0
  204. package/dist/lite/standards/deferred-actions-schema.md +204 -0
  205. package/dist/lite/standards/dependency-discipline/cargo.md +39 -0
  206. package/dist/lite/standards/dependency-discipline/gem.md +43 -0
  207. package/dist/lite/standards/dependency-discipline/go-mod.md +41 -0
  208. package/dist/lite/standards/dependency-discipline/npm.md +42 -0
  209. package/dist/lite/standards/dependency-discipline/pip.md +42 -0
  210. package/dist/lite/standards/deployment-topology/ec2-tailscale.md +225 -0
  211. package/dist/lite/standards/deployment-topology.md +69 -0
  212. package/dist/lite/standards/docs-sync-allowlist.md +76 -0
  213. package/dist/lite/standards/domain-and-dns.md +145 -0
  214. package/dist/lite/standards/frontend-stack.md +67 -0
  215. package/dist/lite/standards/frontmatter-schema.md +154 -0
  216. package/dist/lite/standards/graceful-exit.md +227 -0
  217. package/dist/lite/standards/hook-idempotency.md +102 -0
  218. package/dist/lite/standards/hook-injection-discipline.md +202 -0
  219. package/dist/lite/standards/hook-install-class.md +215 -0
  220. package/dist/lite/standards/input-handler-interface.md +152 -0
  221. package/dist/lite/standards/lite-manifest-schema-changes.md +180 -0
  222. package/dist/lite/standards/lite-manifest.json +2797 -0
  223. package/dist/lite/standards/luminary-matching.md +105 -0
  224. package/dist/lite/standards/luminary-problem-patterns.md +481 -0
  225. package/dist/lite/standards/migration-discipline/active-record.md +50 -0
  226. package/dist/lite/standards/migration-discipline/alembic.md +43 -0
  227. package/dist/lite/standards/migration-discipline/gorm.md +50 -0
  228. package/dist/lite/standards/migration-discipline/prisma.md +53 -0
  229. package/dist/lite/standards/migration-discipline/sqlalchemy.md +51 -0
  230. package/dist/lite/standards/mobile-ephemeral-session.md +167 -0
  231. package/dist/lite/standards/model-routing-discipline.md +160 -0
  232. package/dist/lite/standards/ogilvy-writing-rules.md +225 -0
  233. package/dist/lite/standards/opener-discipline.md +96 -0
  234. package/dist/lite/standards/operator-facing-prose-discipline.md +201 -0
  235. package/dist/lite/standards/persona-schema.md +229 -0
  236. package/dist/lite/standards/pluggable-luminaries.md +323 -0
  237. package/dist/lite/standards/pr-body-discipline.md +115 -0
  238. package/dist/lite/standards/preview-state-schema.md +189 -0
  239. package/dist/lite/standards/project-directory-layout.md +276 -0
  240. package/dist/lite/standards/release-tagging.md +137 -0
  241. package/dist/lite/standards/reserved-skill-names.md +120 -0
  242. package/dist/lite/standards/scannable-multi-option-output.md +265 -0
  243. package/dist/lite/standards/sdlc-compliance.md +286 -0
  244. package/dist/lite/standards/sdlc-gates/typescript.md +57 -0
  245. package/dist/lite/standards/secrets-lifecycle.md +210 -0
  246. package/dist/lite/standards/security-scanner-adapter.md +145 -0
  247. package/dist/lite/standards/session-board.md +256 -0
  248. package/dist/lite/standards/skill-output-discipline.md +121 -0
  249. package/dist/lite/standards/state-spine-contract.md +255 -0
  250. package/dist/lite/standards/state-spine.md +511 -0
  251. package/dist/lite/standards/steering-hints/kiss-words.md +11 -0
  252. package/dist/lite/standards/substrate-config-schema.md +267 -0
  253. package/dist/lite/standards/tech-stack-config.md +109 -0
  254. package/dist/lite/standards/tier-dependency-analysis.md +167 -0
  255. package/dist/lite/standards/tier-runtime-deps/lite.md +57 -0
  256. package/dist/lite/standards/tier-tag-schema.md +155 -0
  257. package/dist/lite/standards/two-layer-config.md +99 -0
  258. package/dist/lite/standards/use-case-format.md +292 -0
  259. package/dist/lite/standards/user-story-invest.md +268 -0
  260. package/dist/lite/standards/velocity-and-appetite.md +229 -0
  261. package/dist/lite/standards/voice-input-pattern.md +119 -0
  262. package/dist/lite/standards/whereami-schema.md +301 -0
  263. package/dist/lite/standards/worktree-management.md +211 -0
  264. package/dist/lite/standards/writing-guide.md +213 -0
  265. package/dist/lite/templates/chronicle-template.md +75 -0
  266. package/dist/lite/templates/deferred-action-template.md +45 -0
  267. package/dist/lite/templates/memory-proposal-template.md +77 -0
  268. package/dist/lite/templates/persona-template.md +200 -0
  269. package/dist/lite/templates/pr-faq.md +45 -0
  270. package/dist/lite/templates/secret-rotation-template.md +162 -0
  271. package/dist/lite/templates/spec-template.md +131 -0
  272. package/dist/lite/templates/use-case-template.md +194 -0
  273. package/dist/lite/templates/user-story-template.md +107 -0
  274. package/dist/lite/templates/whereami-template.md +101 -0
  275. package/package.json +1 -1
@@ -0,0 +1,120 @@
1
+ ---
2
+ tier: lite
3
+ description: Bassclef MUST NOT create a skill with a name that Claude Code (the harness) already claims.
4
+ ---
5
+
6
+ # Reserved Skill Names
7
+
8
+ Bassclef MUST NOT create a skill with a name that Claude Code (the
9
+ harness) already claims. Operator typing `/<name>` resolves to the
10
+ harness built-in, not bassclef's skill — producing silent behavioral
11
+ drift.
12
+
13
+ This file is the **list**. The rule that references it lives at
14
+ `.claude/rules/reserved-skill-names.md`. Separating the two lets the
15
+ list evolve with Claude Code releases without churning the rule.
16
+
17
+ ## Reserved names (as of 2026-04-18)
18
+
19
+ Source: Claude Code harness built-in skill registry observed in-session.
20
+
21
+ ### Claude Code operational built-ins
22
+
23
+ These are always resolved by the Claude Code harness and will never
24
+ reach bassclef's skill registry:
25
+
26
+ | Name | Purpose (per harness) |
27
+ |------|----------------------|
28
+ | `update-config` | Configure Claude Code harness via settings.json |
29
+ | `keybindings-help` | Keyboard shortcut customization |
30
+ | `simplify` | Review changed code for reuse/quality |
31
+ | `fewer-permission-prompts` | Scan transcripts + prioritize allowlist |
32
+ | `loop` | Recurring prompt / slash-command execution |
33
+ | `schedule` | Scheduled remote agents (triggers) |
34
+ | `claude-api` | Build/debug Claude API / SDK apps |
35
+
36
+ ### Claude Code "FEY" remote built-ins
37
+
38
+ Sourced from `FEY` array in Claude Code `cli.js`:
39
+
40
+ | Name | Purpose (per harness) |
41
+ |------|----------------------|
42
+ | `autopilot` | Autopilot mode |
43
+ | `bugfix` | Remote bugfix workflow |
44
+ | `dashboard` | Remote dashboard |
45
+ | `docs` | Docs workflow |
46
+ | `investigate` | Investigation workflow |
47
+
48
+ ### Claude Code init/setup
49
+
50
+ | Name | Purpose (per harness) |
51
+ |------|----------------------|
52
+ | `init` | Initialize a new CLAUDE.md file |
53
+ | `review` | Review a pull request |
54
+ | `security-review` | Security review of pending changes |
55
+
56
+ ## What the rule enforces
57
+
58
+ Any new `.claude/skills/<name>/SKILL.md` introduced by a PR MUST NOT
59
+ use a name from this list. The pre-commit hook blocks commits that
60
+ add a colliding directory. See `.claude/rules/reserved-skill-names.md`
61
+ for full enforcement semantics.
62
+
63
+ ## Updating this list
64
+
65
+ Triggers that justify adding a name:
66
+
67
+ - New Claude Code release adds a slash-command built-in not listed here
68
+ - Observed behavioral drift where a bassclef skill name was silently
69
+ overridden by the harness
70
+ - Upstream Anthropic documentation announces a reserved prefix or name
71
+
72
+ Process:
73
+
74
+ 1. Verify the collision exists (type `/<name>` in a clean session,
75
+ observe the harness responds without reaching bassclef)
76
+ 2. Add the row to the table above with purpose description
77
+ 3. Bump the date in the heading ("as of YYYY-MM-DD")
78
+ 4. File a bassclef issue if any existing bassclef skill uses the
79
+ newly-colliding name — that skill MUST be renamed before the rule
80
+ addition merges
81
+
82
+ ## Verification
83
+
84
+ Test case for the pre-commit hook lives at
85
+ `.claude/hooks/tests/reserved-names-test.sh`. Run via:
86
+
87
+ ```bash
88
+ bash .claude/hooks/tests/reserved-names-test.sh
89
+ ```
90
+
91
+ Tests:
92
+ - Hook blocks commit staging `.claude/skills/docs/SKILL.md` (collision)
93
+ - Hook permits commit staging `.claude/skills/docs-v2/SKILL.md` (no collision)
94
+ - Hook respects `SKIP_RESERVED_NAMES=1` override
95
+
96
+ ## Override
97
+
98
+ Rare case: bassclef deliberately wants to shadow a harness built-in
99
+ (e.g., wraps or replaces the built-in). Requires:
100
+
101
+ 1. Explicit operator confirmation in PR body
102
+ 2. `SKIP_RESERVED_NAMES=1` env var on the commit
103
+ 3. Rationale documented in the skill's SKILL.md frontmatter
104
+
105
+ The override exists because rules should not be unjudgeable — but the
106
+ friction is deliberately high.
107
+
108
+ ## Relationship to other standards
109
+
110
+ - `standards/substrate-config-schema.md` — external resource reference
111
+ conventions (orthogonal)
112
+ - `.claude/rules/reserved-skill-names.md` — the rule that reads this list
113
+ - `.claude/hooks/pre-commit-gate.sh` — mechanical enforcement
114
+
115
+ ## When to retire this list
116
+
117
+ If Claude Code ships a mechanical API to query reserved names at
118
+ runtime (e.g., `claude --list-builtins --json`), this static list can
119
+ be replaced with a dynamic check. Until then, the list is the
120
+ interface.
@@ -0,0 +1,265 @@
1
+ ---
2
+ tier: lite
3
+ standard: scannable-multi-option-output
4
+ status: accepted
5
+ authoring_luminaries:
6
+ primary:
7
+ - don-norman
8
+ - sophia-prater
9
+ supporting:
10
+ - jesse-james-garrett
11
+ - edward-tufte
12
+ description: Design principles for skills that render multi-option choice surfaces (e.g.
13
+ ---
14
+
15
+ # Scannable multi-option output
16
+
17
+ Design principles for skills that render multi-option choice surfaces (e.g. `/longrun prep`, `/sprint` Step 7). The principles below apply when the output stacks 3-5 tables covering options + trade-offs + steps and the operator needs to scan + pick fast.
18
+
19
+ ## Sources read
20
+
21
+ - `.claude/luminaries/don-norman.md` — signifiers + mapping + feedback + constraints
22
+ - `.claude/luminaries/jesse-james-garrett.md` — five planes of UX (strategy + scope + structure + skeleton + surface)
23
+ - `.claude/luminaries/sophia-prater.md` — OOUX (objects first) + progressive disclosure
24
+ - `.claude/luminaries/edward-tufte.md` — data-ink ratio + small multiples + sparklines + glyph encodes data
25
+ - `docs/personas/sam.md` L33 — "I skim first, dig second, bail third."
26
+ - `docs/personas/2026-07-12-bet11c-louis.md` L25 — "Skims group headings first."
27
+ - Ticket #853 — the filing case for this discipline
28
+ - Bet 24e — this extension adds Tufte + Prater + card template + glyph legend + progressive disclosure
29
+
30
+ ## Readers we design for
31
+
32
+ Two personas set the bar.
33
+
34
+ - **Sam** has a 15-30 min Saturday budget. He bounces on friction. He skims, digs, bails.
35
+ - **Louis** skims group headings first. He opens a section only when this week's work needs it.
36
+
37
+ Both punish output that hides structure or repeats content across tables.
38
+
39
+ ## The Norman + Garrett debate
40
+
41
+ ### Norman on signifiers + feedback
42
+
43
+ Sam bounces on friction. His scan budget cannot afford re-reading the same table twice. Louis skims headings first. Headings ARE the affordance. No heading means no affordance. Signifiers must be OBVIOUS on first scan.
44
+
45
+ On a refinement, delta rendering IS the feedback loop. Silent rebuild breaks the loop.
46
+
47
+ Mapping — one anchor for one concern. Never one anchor for three tables.
48
+
49
+ ### Garrett on the five planes
50
+
51
+ Stacked tables live at the skeleton plane. That is where things are placed.
52
+
53
+ A first-cut prep output mixes four planes in one visual block. Strategy plus scope plus structure plus skeleton. Mixed planes break the five-planes rule.
54
+
55
+ Give each plane its own `###` anchor. Reader scans anchors. Reader opens the one they need.
56
+
57
+ ## The Tufte + Prater debate (bet 24e extension)
58
+
59
+ ### Prater on OOUX
60
+
61
+ Each option is an object. Each object has attributes — Problem, Value, Compounds, Adopter, Risk. Rendering one attribute per table forces the reader to reassemble the object in their head. Schema-mirror UX. The interface should mirror the reader's mental model.
62
+
63
+ One card per option. Object first. Attributes inline with bold labels. Progressive disclosure — options at first glance; step detail expands only for the option the reader picks.
64
+
65
+ ### Tufte on data density
66
+
67
+ The 5-table stack is chartjunk. Every cell repeats option labels + carries one axis. Data-ink ratio is low. Same shape repeated per option is small multiples — belongs in one dense structure.
68
+
69
+ Glyphs encode data, not decoration. Color IS the data (🟢 low / 🟡 medium / 🔴 high). Sparkline analog — a single glyph beats a cell full of prose.
70
+
71
+ Progressive disclosure serves data-ink too. Do not render step detail for options the operator will not pick.
72
+
73
+ ## Synthesized principles
74
+
75
+ Twelve principles the four lenses agreed on. Skills that render multi-option surfaces MUST follow them.
76
+
77
+ 1. **One anchor per concern.** `###` header before each block. Anchor names the plane or concern.
78
+ 2. **Bold anchor pattern for sub-blocks.** Where an `###` header would be too heavy, use bold anchor plus blank line.
79
+ 3. **Delta rendering on refinements.** When operator asks "add column X", render ONLY the new column with reference to the source anchor by name.
80
+ 4. **Horizontal rule between planes.** `---` separates strategy from structure from skeleton. Not between every table.
81
+ 5. **Whitespace floor.** At least 2 blank lines OR one HR between top-level anchors.
82
+ 6. **Recommendation always at end.** One sentence citing compounding sequence + risk class.
83
+ 7. **Compact scan-table first** (Tufte). 4-6 columns, one row per option, glyphs encode risk + compounding rate. Reader scans + picks in 20-30 seconds.
84
+ 8. **One card per option** (Prater OOUX). Each card carries Problem + Value + Compounds + Adopter + Risk inline with bold labels.
85
+ 9. **Steps rendered only for the recommended option** (Prater + Tufte). Progressive disclosure. Not for all 3 options.
86
+ 10. **Problem + Value inline in every option card AND every step card.** Names the user pain the option or step addresses.
87
+ 11. **Glyphs encode data, not decoration** (Tufte chartjunk rule). Only glyphs that carry a signal ship.
88
+ 12. **Delta rendering as inline callout** — "Added: change class (delta on § Options above)" + small table with only the delta cells.
89
+
90
+ ## Card template
91
+
92
+ Every option card ships in this shape:
93
+
94
+ ```
95
+ ### <label> · <scope> · <turns> · <risk glyph> <risk word>
96
+
97
+ **Problem** — <one sentence naming the user pain this option addresses>
98
+ **Value** — <one sentence naming what the operator gets>
99
+ **Compounds** — <axis 1> · <axis 2> · <axis 3> · <axis 4> · <axis 5>
100
+ **Adopter** — <mechanism> · <visibility> · <action required>
101
+ **Risk** — <glyph> <severity> — <what could fail; who catches it>
102
+ ```
103
+
104
+ Every step card ships in this shape:
105
+
106
+ ```
107
+ ### Step <N> · <slug> · <turns> · <risk glyph> <risk word>
108
+
109
+ **Problem** — <one sentence naming the pain this step solves>
110
+ **Produces** — <artifact path or decision>
111
+ **Consumes** — <prior step + shared state>
112
+ **Teaches** — <pattern later work reuses>
113
+ **Risk** — <glyph> <severity> — <what could fail; who catches it>
114
+ ```
115
+
116
+ ## Glyph legend
117
+
118
+ Only glyphs that encode data. No decoration.
119
+
120
+ | Glyph | Meaning |
121
+ |---|---|
122
+ | 🟢 | low risk — CI catches it; no adopter impact; under 15 min to fix |
123
+ | 🟡 | medium risk — needs a rebuild cycle; local rollback; under 2h to fix |
124
+ | 🔴 | high risk — adopter sees the drift; compat shim or release rollback; over 2h to fix |
125
+ | · | axis separator inside an inline value list |
126
+ | § | reference to a named section anchor in delta callouts |
127
+
128
+ Bands anchor to Klein premortem (imagined failure mode names the risk), Tufte data density (glyph + one line captures severity + cause + detection), and Maurya riskiest-assumption (one risk per option; the biggest one).
129
+
130
+ Words carry compounding rate — `per-adopter`, `per-session`, `one-time`, `per-quarter`. Arrows and other decorative glyphs stay OUT.
131
+
132
+ ## Progressive disclosure — the rule
133
+
134
+ Compact scan-table + per-option cards render for ALL options. Step cards render ONLY for the recommended option.
135
+
136
+ When operator picks a different option, step cards for that option render on the next turn. On operator ask ("show steps for B and C too"), expand for all.
137
+
138
+ Rationale — data-ink and reader attention are finite. Rendering steps for options the operator will not pick is chartjunk.
139
+
140
+ ## Delta rendering — the anti-pattern and the cure
141
+
142
+ Silent rebuild:
143
+
144
+ > Operator — "add a change-class column"
145
+ > Agent — re-renders all 4-5 tables verbatim plus one new column
146
+
147
+ Named delta:
148
+
149
+ > Operator — "add a change-class column"
150
+ > Agent — "Adding column to § Options above:"
151
+ > [renders only the new column with the option labels]
152
+
153
+ Full re-render is correct only when the operator asks for it explicitly ("show me the full picture again") OR the underlying option set changed.
154
+
155
+ ## When to apply this standard
156
+
157
+ - `/longrun prep` — Steps 1.4c + 1.4d cite this standard
158
+ - `/sprint` Step 7 — Steps 7a + 7b cite this standard
159
+ - Any future skill that renders 3+ option tables with trade-offs
160
+
161
+ ## Canonical example — recommendation-first shape (per bassclef-web#152)
162
+
163
+ The example below shows the shape the substrate targets. Reader sees the pick in the first 15 lines. Scan table follows. Card for the recommended option only.
164
+
165
+ ### Anti-pattern — decision buried below 5-axis blocks
166
+
167
+ ```
168
+ [Three-block opener — Problem + Value + Evidence]
169
+
170
+ ## Options
171
+
172
+ | Option | Scope | Turns | Compounds | Risk |
173
+ |---|---|---|---|---|
174
+ | a | Full six-amendment ship | 150-250 | per-session | med |
175
+ | b | Narrow four amendments | 100-150 | per-session | low |
176
+ | c | Adjacent install.sh | 40-80 | per-adopter | med |
177
+
178
+ ## Compounding value per option
179
+
180
+ **Option a:** [5-axis block, ~10 lines]
181
+ **Option b:** [5-axis block, ~10 lines]
182
+ **Option c:** [5-axis block, ~10 lines]
183
+
184
+ ## Recommended card for Option a
185
+
186
+ [Card ~15 lines]
187
+
188
+ ## Steps for Option a
189
+
190
+ [Step cards ~20 lines]
191
+
192
+ ## Recommendation
193
+
194
+ Recommend Option a because Y.
195
+
196
+ Reply a, b, or c.
197
+ ```
198
+
199
+ Reader scrolls past ~80 lines of options + axes + cards + steps before reaching the pick.
200
+
201
+ ### Conformant — recommendation first, cards on demand
202
+
203
+ ```
204
+ [Three-block opener — Problem + Value + Evidence]
205
+
206
+ ## Recommendation
207
+
208
+ **Recommend:** Option a (six-amendment ship · 150-250 turns · risk 🟡) because per-session compounding beats Option c's per-adopter frequency, and Option b defers /build value by one cycle.
209
+
210
+ ## Options
211
+
212
+ | Option | Scope | Turns | Compounds | Risk | Why not (non-rec.) |
213
+ |---|---|---|---|---|---|
214
+ | a | Full six-amendment ship | 150-250 | per-session | 🟡 | rec |
215
+ | b | Narrow four amendments | 100-150 | per-session | 🟢 | drops /build value |
216
+ | c | Adjacent install.sh | 40-80 | per-adopter | 🟡 | drops baseline branch |
217
+
218
+ ## Compounding value per option
219
+
220
+ [5-axis block per option — same as anti-pattern; hook postcondition per compounding-sequence-fresh-analysis.md requires per-option coverage today; hook extension to recommended-only lives at follow-on ticket per bassclef-web#152]
221
+
222
+ ## Recommended · full · 150-250t · 🟡
223
+
224
+ [Card — Problem / Value / Compounds / Adopter — for Option a only]
225
+
226
+ ## Steps for Option a
227
+
228
+ [Step cards — for Option a only]
229
+
230
+ Reply a, b, or c. Ask for "cards for B and C" to expand.
231
+ ```
232
+
233
+ Reader sees the pick in the first 8 lines. Scan table follows for context. Cards + step cards on demand for non-recommended.
234
+
235
+ ### Anchor luminaries for the reshape
236
+
237
+ - **Sophia Prater (OOUX + progressive disclosure)** — recommended card renders by default; non-recommended cards expand on operator ask
238
+ - **Donald Norman (signifier)** — the recommendation sentence IS the signifier for the decision; place it where the eye lands first
239
+ - **Edward Tufte (data-ink)** — glyphs (🟢/🟡/🔴) encode risk in one character per scan-table cell; drops paragraph prose per option
240
+ - **Jason Fried (say less)** — non-recommended options ship rationale in the `Why not` column; no per-option card
241
+ - **Amazon PR/FAQ (decision at top)** — working-backwards discipline; reader sees "we recommend X because Y" first
242
+
243
+ ### Table character class
244
+
245
+ Scan-table cells contain plain alphanumerics per `.claude/rules/visual-hierarchy.md` Section 12. Avoid em-dashes, backticks, quotes, or Unicode ellipsis in cells — Claude Code TUI falls back to key-value paragraphs when these characters appear. Cure per character in the sister rule catalog.
246
+
247
+ ## Refs
248
+
249
+ - Ticket #853 — the filing case
250
+ - `.claude/luminaries/don-norman.md`
251
+ - `.claude/luminaries/jesse-james-garrett.md`
252
+ - `.claude/luminaries/sophia-prater.md`
253
+ - `.claude/luminaries/edward-tufte.md`
254
+ - `docs/personas/sam.md`
255
+ - `docs/personas/2026-07-12-bet11c-louis.md`
256
+ - `.claude/skills/longrun/SKILL.md` Steps 1.4c + 1.4d + 1.5-1.7 (card refactor)
257
+ - `.claude/skills/sprint/SKILL.md` Steps 7a + 7b (parity)
258
+ - ADR-040 Decision 4 (SKILL body template shape — this standard offloads the debate content from SKILL bodies to keep template lean)
259
+ - Bet 24d — original filing (principles 1-6)
260
+ - Bet 24e — this extension (principles 7-12 + card template + glyph legend + progressive disclosure)
261
+ - bassclef-web#152 — recommendation-first canonical example (adopter promote landing 2026-08-25)
262
+
263
+ ## Retirement
264
+
265
+ Retires only if multi-option surfaces cease to be a bassclef output pattern.
@@ -0,0 +1,286 @@
1
+ ---
2
+ tier: lite
3
+ description: "Defines how gate evidence is captured, where it lives, and how it's queried."
4
+ ---
5
+
6
+ # SDLC Compliance Tracking Standard
7
+
8
+ Defines how gate evidence is captured, where it lives, and how it's queried.
9
+ Replaces the previous trace-log approach (empty action/outcome columns,
10
+ operational problems, now gitignored) with structured compliance data
11
+ embedded in existing artifacts.
12
+
13
+ ---
14
+
15
+ ## Design Decision: Compliance in Chronicles, Not Separate Files
16
+
17
+ Gate evidence lives **in the chronicle entry**, not in a separate compliance
18
+ report. Rationale:
19
+
20
+ 1. Chronicles already capture what happened — compliance is "did the gates
21
+ fire during what happened?"
22
+ 2. A separate file creates drift — the chronicle says one thing, the
23
+ compliance report says another
24
+ 3. Chronicles are append-only and committed to git — they're auditable
25
+ 4. The previous trace-log approach failed because it was a parallel artifact
26
+ nobody maintained
27
+
28
+ The trade-off: compliance data is less machine-queryable embedded in
29
+ chronicles than in structured JSON. If machine querying becomes needed,
30
+ extract it from chronicles rather than maintaining a parallel source of truth.
31
+
32
+ ---
33
+
34
+ ## Session Timing Fields
35
+
36
+ Every chronicle entry includes timing metadata in the frontmatter.
37
+ These fields close the feedback loop between time budget estimates and
38
+ actual session duration, enabling calibration over time.
39
+
40
+ ### Frontmatter timing fields
41
+
42
+ | Field | Type | Required | Description |
43
+ |-------|------|----------|-------------|
44
+ | `started_at` | ISO 8601 datetime | SHOULD | Session start — derived from first commit timestamp or conversation start |
45
+ | `ended_at` | ISO 8601 datetime | SHOULD | Session end — current time at chronicle write |
46
+ | `duration_minutes` | integer | SHOULD | Approximate elapsed minutes (ended_at − started_at) |
47
+ | `turns` | integer or `~N` | SHOULD | Approximate conversation turns this session |
48
+ | `closes` | array of strings | MAY | Issues resolved this session, e.g., `["#37", "#42"]` |
49
+
50
+ All timing fields are optional for backward compatibility — chronicles
51
+ without them are valid historical records. Use `~` prefix for approximate
52
+ values (e.g., `turns: ~40`).
53
+
54
+ ### Deriving timing data
55
+
56
+ - `started_at`: First commit on the session's work, or conversation start
57
+ time if available. Approximate is fine — trend data, not billing.
58
+ - `ended_at`: Current timestamp when the chronicle is written.
59
+ - `duration_minutes`: Simple subtraction, rounded to nearest 5 minutes.
60
+ - `turns`: Estimate from conversation length. Exact counting is fragile
61
+ and not worth the precision.
62
+
63
+ ---
64
+
65
+ ## Gate Evidence Format
66
+
67
+ Every chronicle entry includes a **Gate Evidence** section after the
68
+ narrative. This section records what gates fired and their outcomes.
69
+
70
+ ```markdown
71
+ ## Gate evidence
72
+
73
+ | Gate | Fired | Evidence | Outcome |
74
+ |------|-------|----------|---------|
75
+ | Temperance | yes | Stated approach before first edit on feature/NNN | Proceeded — scope matched spec |
76
+ | Diagnosis | n/a | Not a fix branch | — |
77
+ | Pre-build spec check | yes | Spec at docs/specs/crm.md, referenced in iteration goal | Current |
78
+ | Tests | yes | 12 unit, 3 integration, all pass | `npm test` exit 0 |
79
+ | Visual review | yes | docs/visual-reviews/2026-04-07-deal-card.md | PASS WITH NOTES |
80
+ | Verify | yes | Ran /verify after each task (3 tasks) | All passed |
81
+ | Architect review | no — not due | Last review: 2026-04-05 (6 commits ago, threshold is 10) | — |
82
+
83
+ ### Gate skip justifications
84
+ - Diagnosis skipped: feature branch, not fix branch (per sdlc-gates rule)
85
+ ```
86
+
87
+ ### Required fields
88
+
89
+ | Field | Description |
90
+ |-------|-------------|
91
+ | Gate | Which gate (from `.claude/rules/sdlc-gates.md`) |
92
+ | Fired | yes / no / n/a (with reason if no or n/a) |
93
+ | Evidence | Where to find proof — file path, commit hash, or inline note |
94
+ | Outcome | Result of the gate check |
95
+
96
+ ### Gate skip justifications
97
+
98
+ If a gate was skipped, the reason must be stated. Valid reasons:
99
+
100
+ - **n/a**: Gate doesn't apply (e.g., diagnosis on a feature branch)
101
+ - **Degraded mode**: Infrastructure unavailable (e.g., Playwright MCP missing
102
+ for visual review) — must note what was done instead
103
+ - **Assessed as trivial**: For diagnosis only — cause was immediately obvious
104
+ and reproducible. State the cause.
105
+
106
+ Invalid reasons:
107
+ - "Ran out of time" — gates are non-negotiable
108
+ - "Will do later" — gates fire before commit, not after
109
+ - No reason given — a bare "no" in the Fired column is a compliance failure
110
+
111
+ ---
112
+
113
+ ## Gates to Track
114
+
115
+ These are the gates defined in `.claude/rules/sdlc-gates.md` and
116
+ `strategy/agent-choreography.md` Section 9:
117
+
118
+ ### Pre-build gates (before writing code)
119
+
120
+ | Gate | Trigger | Evidence format |
121
+ |------|---------|----------------|
122
+ | Temperance | First edit per branch | "Stated approach: [summary]" |
123
+ | Diagnosis | All fix/ branches | "Is/Is Not completed, root cause: [summary]" or "Assessed as trivial: [cause]" |
124
+ | Spec check | Before Construction | "Spec at [path], current as of [date]" |
125
+ | Issue exists | Before branch creation | "Issue #NNN created/exists" |
126
+
127
+ ### Post-build gates (before committing)
128
+
129
+ | Gate | Trigger | Evidence format |
130
+ |------|---------|----------------|
131
+ | Tests | Every commit with logic changes | "[N] unit, [M] integration, all pass" |
132
+ | Verify | Every task completion | "Ran /verify — [outcome]" |
133
+ | Visual review | Every UI change | "Report at [path] — [verdict]" |
134
+ | Architect review | Every 10 commits or before launch | "Last review: [date], [N] commits ago" |
135
+
136
+ ### Session gates (phase/session boundaries)
137
+
138
+ | Gate | Trigger | Evidence format |
139
+ |------|---------|----------------|
140
+ | Chronicle | Phase transition + session end | "Chronicle at [path]" |
141
+ | Checkpoint | Exit conditions per graceful-exit.md | "Checkpoint at .claude/CHECKPOINT.md" |
142
+ | LinkedIn draft | Notable decisions (SHOULD) | "Draft at [path]" or "No notable moments this session" |
143
+
144
+ ---
145
+
146
+ ## Iteration Goal Closeout
147
+
148
+ When an iteration completes, append a **Closeout** section to the
149
+ iteration goal file. This captures actuals vs time budget and gate compliance
150
+ across the iteration's sessions — the feedback loop that calibrates
151
+ future time budget estimates.
152
+
153
+ ### Closeout format
154
+
155
+ ```markdown
156
+ ## Closeout
157
+
158
+ ### Actuals vs appetite
159
+
160
+ | Metric | Time budget | Actual | Delta |
161
+ |--------|----------|--------|-------|
162
+ | Turns | 40 | 52 | +30% |
163
+ | Duration | ~1 session | 2 sessions (75m + 40m) | +1 session |
164
+ | Issues closed | 3 | 2 | -1 (deferred #NNN) |
165
+
166
+ ### Gate compliance
167
+
168
+ | Gate | Expected | Fired | Skipped | Notes |
169
+ |------|----------|-------|---------|-------|
170
+ | Temperance | 3 | 3 | 0 | — |
171
+ | Diagnosis | 1 | 1 | 0 | fix branch |
172
+ | Tests | 3 | 2 | 1 | 1 docs-only commit, n/a |
173
+ | Verify | 3 | 3 | 0 | — |
174
+ | Visual review | 0 | 0 | 0 | no UI changes |
175
+
176
+ ### Calibration notes
177
+
178
+ [What was over/underscoped. Guidance for next similar iteration.
179
+ Example: "Time budget was tight — the extraction script was underscoped.
180
+ Next similar iteration: budget 50 turns."]
181
+ ```
182
+
183
+ ### When to write the closeout
184
+
185
+ - When all acceptance criteria are met (or explicitly deferred)
186
+ - Before writing the final chronicle for the iteration
187
+ - The closeout data comes from the session chronicles' timing fields
188
+ and gate evidence tables — it's an aggregation, not a separate data source
189
+
190
+ ### Acceptance criteria for closeout
191
+
192
+ The iteration goal's acceptance criteria checkboxes should be updated
193
+ to reflect actual completion state. Deferred items get a note explaining
194
+ why and a reference to the follow-up issue.
195
+
196
+ ---
197
+
198
+ ## Querying Compliance
199
+
200
+ ### Manual query (current approach)
201
+
202
+ ```bash
203
+ # Find all chronicles with gate evidence
204
+ grep -l "Gate evidence" chronicle/*.md
205
+
206
+ # Find skipped gates
207
+ grep -A 1 "no —\|no $" chronicle/*.md
208
+
209
+ # Find visual review failures
210
+ grep "FAIL" chronicle/*.md
211
+ ```
212
+
213
+ ### Architect review query
214
+
215
+ During `/architect-review`, the Architect reads the last 5 chronicles
216
+ and checks:
217
+
218
+ 1. Are all required gates present in each entry?
219
+ 2. Are there unexplained skips?
220
+ 3. Is there a pattern of degraded mode (infrastructure not available)?
221
+ 4. Are gate skip justifications valid?
222
+
223
+ This is the primary compliance audit mechanism — it runs every 10 commits.
224
+
225
+ ### Future: structured extraction
226
+
227
+ If machine-queryable compliance becomes needed:
228
+
229
+ 1. Extract gate evidence sections from chronicles into JSON
230
+ 2. Script: `scripts/extract-compliance.sh` → `docs/compliance/latest.json`
231
+ 3. Run on demand or as part of architect review
232
+ 4. The chronicle remains the source of truth; JSON is a derived view
233
+
234
+ Do not build this until there's a real need. The architect review query
235
+ is sufficient for current scale.
236
+
237
+ ---
238
+
239
+ ## Hook Integration
240
+
241
+ ### Existing hooks that produce gate evidence
242
+
243
+ | Hook | What it captures | Where |
244
+ |------|-----------------|-------|
245
+ | `pre-build-gate.sh` | Temperance fired, diagnosis fired (fix branches) | Blocks the edit until gate clears |
246
+ | `pre-commit` (if configured) | Tests pass, lint pass | Blocks the commit |
247
+ | `session-end` / Stop hook | Chronicle written, checkpoint written | Fires at session end |
248
+
249
+ ### Agent responsibility
250
+
251
+ Hooks capture mechanical gates (did the tool run?). The agent captures
252
+ semantic gates (was the outcome meaningful?). Both are needed.
253
+
254
+ The agent writes the gate evidence table in the chronicle. Hooks provide
255
+ the enforcement that gates fire at all. Neither replaces the other.
256
+
257
+ ---
258
+
259
+ ## Compliance Failures
260
+
261
+ A compliance failure is a chronicle entry where:
262
+
263
+ 1. A required gate shows "no" without a valid justification
264
+ 2. The gate evidence section is missing entirely
265
+ 3. Evidence references a file that doesn't exist
266
+
267
+ ### Response to compliance failures
268
+
269
+ - **At architect review**: Flag the failure, check if it caused actual harm
270
+ (missed bug, broken deployment, etc.), recommend process fix
271
+ - **At session start**: If the previous chronicle has a compliance failure,
272
+ note it in the current session's chronicle under "Entry state"
273
+ - **Do NOT retroactively fix chronicles** — they're historical records.
274
+ Note the gap and prevent recurrence.
275
+
276
+ ---
277
+
278
+ ## Relationship to Other Standards
279
+
280
+ | Standard | Relationship |
281
+ |----------|-------------|
282
+ | `.claude/rules/sdlc-gates.md` | Defines which gates exist; this standard defines how to track them |
283
+ | `strategy/agent-choreography.md` | Section 9 defines MUST gates; this standard defines evidence format |
284
+ | `standards/graceful-exit.md` | Checkpoint is a tracked gate at session boundaries |
285
+ | `.claude/skills/chronicle/SKILL.md` | Chronicle skill should include gate evidence template |
286
+ | `.claude/skills/architect-review/SKILL.md` | Architect review queries compliance from chronicles |