rungate 0.2.0 → 0.3.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 (282) hide show
  1. package/bin/rungate.ts +70 -0
  2. package/lib/aes-calculator.ts +66 -0
  3. package/lib/agent-audit.ts +139 -0
  4. package/lib/agent-brief-validation.ts +359 -0
  5. package/lib/agents-md-refs.ts +90 -0
  6. package/lib/bash-file-read.ts +197 -0
  7. package/lib/behavioral-cache.ts +78 -0
  8. package/lib/branch-cleanup.ts +234 -0
  9. package/lib/brief-context-parser.ts +35 -0
  10. package/lib/canary.ts +117 -0
  11. package/lib/check-registry.ts +226 -0
  12. package/lib/ci-checkout.ts +400 -0
  13. package/lib/cli-commands.ts +137 -0
  14. package/lib/compliance-backfill.ts +220 -0
  15. package/lib/compliance-report.ts +504 -0
  16. package/lib/compliance.ts +361 -0
  17. package/lib/config-loader.ts +255 -0
  18. package/lib/conformity.ts +1818 -131
  19. package/lib/container-provenance.ts +230 -0
  20. package/lib/create-brief.ts +150 -0
  21. package/lib/create-sc.ts +272 -0
  22. package/lib/deep-merge.ts +69 -0
  23. package/lib/dev-liveness.ts +214 -0
  24. package/lib/directive-extractor.ts +210 -0
  25. package/lib/distribution-standing.ts +113 -0
  26. package/lib/doc-hygiene.ts +238 -0
  27. package/lib/eval-criteria.ts +6 -0
  28. package/lib/evidence-portability.ts +123 -0
  29. package/lib/evidence-prevalidator.ts +390 -0
  30. package/lib/evidence-required.ts +150 -0
  31. package/lib/evidence-satisfiability.ts +288 -0
  32. package/lib/frontmatter.ts +163 -0
  33. package/lib/gap-scanner.ts +348 -0
  34. package/lib/gate-enforcement.ts +366 -0
  35. package/lib/generators/agent-briefs.ts +136 -0
  36. package/lib/generators/agents-md.ts +506 -0
  37. package/lib/generators/code-map.ts +60 -0
  38. package/lib/generators/types.ts +184 -0
  39. package/lib/git-ref-normalizer.ts +107 -0
  40. package/lib/github.ts +539 -0
  41. package/lib/harness-identity.ts +63 -0
  42. package/lib/hill-climb.ts +164 -0
  43. package/lib/instruction-effectiveness.ts +131 -0
  44. package/lib/issue-closure-audit.ts +225 -0
  45. package/lib/issue-create-override.ts +343 -0
  46. package/lib/js-top-level-code.ts +250 -0
  47. package/lib/liveness-contradiction.ts +149 -0
  48. package/lib/organize.ts +505 -0
  49. package/lib/paths.ts +197 -6
  50. package/lib/post-fix-verify.ts +157 -0
  51. package/lib/prior-branch.ts +489 -0
  52. package/lib/project-state-shape.ts +166 -0
  53. package/lib/promote-outputs.ts +156 -0
  54. package/lib/prove-label-gate.ts +35 -0
  55. package/lib/reachability.ts +302 -0
  56. package/lib/release-preflight.ts +186 -0
  57. package/lib/rule-health-pipeline.ts +264 -0
  58. package/lib/rule-health-trend.ts +161 -0
  59. package/lib/rule-provenance.ts +149 -0
  60. package/lib/rule-registry.ts +128 -0
  61. package/lib/rungate-schema.ts +114 -4
  62. package/lib/sc-claim-forms.ts +179 -0
  63. package/lib/sc-cover.ts +150 -0
  64. package/lib/sc-guard.ts +157 -0
  65. package/lib/sc-ids.ts +344 -0
  66. package/lib/scaffold/defaults.ts +165 -0
  67. package/lib/scaffold/managed-workflow.ts +370 -0
  68. package/lib/scaffold/owned-files.ts +265 -0
  69. package/lib/scaffold/steps.ts +2680 -0
  70. package/lib/scanner.ts +701 -0
  71. package/lib/screenshot-upload.ts +73 -0
  72. package/lib/secret-patterns.ts +112 -0
  73. package/lib/security-verdict.ts +616 -0
  74. package/lib/signal-phrases.ts +1 -0
  75. package/lib/spec-change-conformity.ts +80 -0
  76. package/lib/spec-files.ts +62 -0
  77. package/lib/spec-registry.ts +133 -0
  78. package/lib/spec-updater.ts +96 -0
  79. package/lib/stale-cleanup.ts +224 -0
  80. package/lib/stale-issue-scanner.ts +36 -0
  81. package/lib/strip-js-comments.ts +269 -0
  82. package/lib/suite-measurement.ts +228 -0
  83. package/lib/task-completion-checks.ts +177 -0
  84. package/lib/test-suite-lock.ts +1136 -0
  85. package/lib/transcript-checker.ts +1140 -0
  86. package/lib/validators/spec-validators.ts +171 -0
  87. package/lib/verdict-capture.ts +73 -0
  88. package/lib/verified-push.ts +358 -0
  89. package/lib/workflow-security.ts +174 -0
  90. package/lib/worktree-cleanup.ts +250 -0
  91. package/lib/worktree-collect.ts +283 -0
  92. package/lib/worktree-isolation.ts +82 -0
  93. package/package.json +36 -3
  94. package/prompts/ac-adversary.md +14 -2
  95. package/prompts/aditi.md +5 -0
  96. package/prompts/blast-radius.md +5 -0
  97. package/prompts/container-verify.md +5 -0
  98. package/prompts/discovery.md +4 -0
  99. package/prompts/environment.md +5 -0
  100. package/prompts/evidence-hierarchy.md +5 -0
  101. package/prompts/evidence-validator.md +11 -0
  102. package/prompts/marcus.md +5 -0
  103. package/prompts/prevention.md +5 -0
  104. package/prompts/prove-reproducer.md +12 -0
  105. package/prompts/quinn-decision-tree.md +5 -0
  106. package/prompts/quinn-ui-brief.md +5 -0
  107. package/prompts/quinn.md +5 -0
  108. package/prompts/rca.md +5 -0
  109. package/prompts/read-before-write.md +4 -0
  110. package/prompts/regression.md +5 -0
  111. package/prompts/serena.md +5 -0
  112. package/scripts/audit-specs.ts +464 -0
  113. package/scripts/convert-spec.ts +293 -0
  114. package/scripts/create-sc.ts +92 -0
  115. package/scripts/create-spec.ts +166 -0
  116. package/scripts/extract-constraints.ts +4 -3
  117. package/scripts/generate-code-map.ts +1 -1
  118. package/scripts/scaffold-project.ts +138 -1426
  119. package/scripts/sync-spec-tests.ts +211 -126
  120. package/.claude/agents/aditi.md +0 -47
  121. package/.claude/agents/marcus.md +0 -50
  122. package/.claude/agents/quinn.md +0 -58
  123. package/.claude/agents/rook.md +0 -47
  124. package/.claude/agents/serena.md +0 -46
  125. package/.claude/rungate.json +0 -11
  126. package/.fallowrc.json +0 -28
  127. package/.github/copilot-instructions.md +0 -20
  128. package/.rungate/conformity-findings.json +0 -648
  129. package/AGENTS.md +0 -106
  130. package/CODE-MAP.md +0 -50
  131. package/HARNESS.md +0 -88
  132. package/bun.lock +0 -26
  133. package/bunfig.toml +0 -2
  134. package/config/brief-policies.json +0 -28
  135. package/config/ceremony-profiles.json +0 -212
  136. package/config/consumer-cascade-map.json +0 -24
  137. package/config/doc-cascade-map.json +0 -24
  138. package/config/eval.json +0 -84
  139. package/config/profiles/account-plan.yaml +0 -36
  140. package/config/profiles/campaign.yaml +0 -94
  141. package/config/prove-evidence.schema.json +0 -65
  142. package/config/spec-policies.json +0 -36
  143. package/config/workflow-schema.json +0 -281
  144. package/gates/SCHEMA-GUIDE.md +0 -121
  145. package/gates/ac-quality.test.ts +0 -106
  146. package/gates/adversarial.test.ts +0 -274
  147. package/gates/brief-assembler.test.ts +0 -429
  148. package/gates/brief-assembler.ts +0 -334
  149. package/gates/bunfig.toml +0 -2
  150. package/gates/chain.test.ts +0 -91
  151. package/gates/e2e-smoke.test.ts +0 -234
  152. package/gates/error-classifier.test.ts +0 -249
  153. package/gates/error-classifier.ts +0 -89
  154. package/gates/orchestrator.test.ts +0 -950
  155. package/gates/orchestrator.ts +0 -569
  156. package/gates/preload.ts +0 -77
  157. package/gates/prompts/ac-adversary.md +0 -20
  158. package/gates/prompts/evidence-validator.md +0 -22
  159. package/gates/prompts/prove-reproducer.md +0 -53
  160. package/gates/prove.test.ts +0 -164
  161. package/gates/run-gate.ts +0 -936
  162. package/gates/schema-parity.test.ts +0 -197
  163. package/gates/schema.ts +0 -362
  164. package/gates/self-heal.test.ts +0 -511
  165. package/gates/self-heal.ts +0 -121
  166. package/gates/ship-orchestrator.test.ts +0 -379
  167. package/gates/ship-orchestrator.ts +0 -363
  168. package/gates/test-fixtures/broken-no-environments.json +0 -60
  169. package/gates/test-fixtures/valid-standard.json +0 -54
  170. package/gates/test-utils.ts +0 -43
  171. package/gates/witness.ts +0 -220
  172. package/gates/workflow.test.ts +0 -1053
  173. package/hooks/AgentBriefGuard.hook.ts +0 -586
  174. package/hooks/AgentVerdictCapture.hook.ts +0 -134
  175. package/hooks/AutoVerifyGate.hook.ts +0 -76
  176. package/hooks/GateEnforcement.hook.ts +0 -273
  177. package/hooks/IssueCloseGuard.hook.ts +0 -116
  178. package/hooks/MergeGuard.hook.ts +0 -55
  179. package/hooks/StaleTTLCleanup.hook.ts +0 -133
  180. package/hooks/VerifyPhaseLock.hook.ts +0 -81
  181. package/hooks/WorkflowStateGuard.hook.ts +0 -37
  182. package/hooks/lib/agentDetection.ts +0 -70
  183. package/hooks/lib/findWorkflow.ts +0 -101
  184. package/hooks/lib/parseStdin.ts +0 -37
  185. package/hooks/lib/paths.ts +0 -111
  186. package/hooks/lib/utils.ts +0 -81
  187. package/reference/migration-manifest.json +0 -554
  188. package/reference/prompts/agent-aditi.md +0 -38
  189. package/reference/prompts/agent-marcus.md +0 -38
  190. package/reference/prompts/agent-quinn.md +0 -38
  191. package/reference/prompts/agent-rook.md +0 -37
  192. package/reference/prompts/agent-serena.md +0 -37
  193. package/reference/prompts/council-skill.md +0 -170
  194. package/reference/prompts/goal-skill.md +0 -235
  195. package/reference/prompts/prove-skill.md +0 -283
  196. package/reference/prompts/quinn-standard.md +0 -246
  197. package/reference/prompts/ship-convergence.md +0 -65
  198. package/reference/prompts/ship-escalation.md +0 -43
  199. package/reference/prompts/ship-iteration.md +0 -382
  200. package/reference/prompts/ship-pending-patches.md +0 -246
  201. package/reference/prompts/ship-reference.md +0 -250
  202. package/reference/prompts/ship-skill.md +0 -347
  203. package/reference/prompts/ship-templates.md +0 -215
  204. package/reference/scripts/batch-status.sh +0 -68
  205. package/reference/scripts/chain-compat-check.sh +0 -67
  206. package/reference/scripts/context-audit.sh +0 -314
  207. package/reference/scripts/dead-export-check.sh +0 -61
  208. package/reference/scripts/generate-qc-tables.sh +0 -92
  209. package/reference/scripts/harness-init.sh +0 -111
  210. package/reference/scripts/pai-054-baseline-check.sh +0 -40
  211. package/reference/scripts/prove-smoke-test.sh +0 -112
  212. package/reference/scripts/setup-keychain-salt.sh +0 -12
  213. package/reference/scripts/skill-optimizer-friday.sh +0 -88
  214. package/reference/scripts/skill-qc-test.sh +0 -351
  215. package/reference/scripts/skill-synthesize-tonight.sh +0 -66
  216. package/reference/specs/HARNESS-EXTRACTION-SPEC.md +0 -263
  217. package/reference/specs/harness-v3-bash-deletion-plan.md +0 -65
  218. package/reference/specs/harness-v3-migration-plan.md +0 -188
  219. package/scripts/decision-reconcile.sh +0 -74
  220. package/scripts/decision-reconcile.ts +0 -152
  221. package/scripts/git-hooks/pre-commit +0 -76
  222. package/scripts/git-hooks/pre-push +0 -271
  223. package/scripts/harness-skill-check.sh +0 -52
  224. package/scripts/lib/gap-emit.sh +0 -65
  225. package/scripts/lib/jq-update.sh +0 -30
  226. package/scripts/lib/resolve-slug.sh +0 -30
  227. package/scripts/lib/verify-spec-compliance.sh +0 -102
  228. package/scripts/prove-backfill.sh +0 -87
  229. package/scripts/scaffold-rungate-config.ts +0 -91
  230. package/scripts/self-containment-check.sh +0 -109
  231. package/scripts/skill-qc-validator.sh +0 -402
  232. package/scripts/slug-resolver.sh +0 -14
  233. package/specs/BOOTSTRAP-DATA-FLOW-SPEC.md +0 -2493
  234. package/specs/BOOTSTRAP-TEST-PLAN.md +0 -571
  235. package/specs/HARNESS-GATES.md +0 -256
  236. package/specs/HARNESS-SKILL-CHAIN.md +0 -286
  237. package/specs/HARNESS-SKILL-CONTRACT.md +0 -93
  238. package/specs/HARNESS-STANDARD.md +0 -488
  239. package/specs/SPEC-TEMPLATE.md +0 -53
  240. package/specs/bootstrap-data-flow.png +0 -0
  241. package/specs/harness-automation-matrix.md +0 -314
  242. package/specs/harness-automation-matrix.rules.json +0 -64
  243. package/test/anti.test.ts +0 -80
  244. package/test/contract-negative.test.ts +0 -86
  245. package/test/contract.test.ts +0 -158
  246. package/test/external-deps.test.ts +0 -48
  247. package/test/fixtures/golden-project/.env.example +0 -3
  248. package/test/fixtures/golden-project/Makefile +0 -7
  249. package/test/fixtures/golden-project/docs/adr/ADR-001-framework.md +0 -23
  250. package/test/fixtures/golden-project/docs/setup-guide.md +0 -10
  251. package/test/fixtures/golden-project/package.json +0 -10
  252. package/test/fixtures/golden-project/specs/api-spec.md +0 -20
  253. package/test/fixtures/golden-project/src/auth.ts +0 -8
  254. package/test/fixtures/golden-project/src/db.ts +0 -11
  255. package/test/fixtures/golden-project/src/index.ts +0 -19
  256. package/test/fixtures/golden-project/src/utils/format.ts +0 -3
  257. package/test/fixtures/golden-project/test/auth.test.ts +0 -15
  258. package/test/fixtures/golden-project/tsconfig.json +0 -12
  259. package/test/meta-sc-coverage.test.ts +0 -159
  260. package/test/phase-0.test.ts +0 -846
  261. package/test/phase-1.test.ts +0 -617
  262. package/test/phase-2.test.ts +0 -620
  263. package/test/phase-3.test.ts +0 -99
  264. package/test/scaffold-conformity.test.ts +0 -8
  265. package/test/schema-canary.test.ts +0 -51
  266. package/test/spec-compliance-auto.test.ts +0 -64
  267. package/test/spec-compliance.test.ts +0 -295
  268. package/test/spec-discovery.test.ts +0 -68
  269. package/test/spec-drift.test.ts +0 -5
  270. package/test/structure.test.ts +0 -165
  271. package/test/unit/agent-brief-guard-ship.test.ts +0 -293
  272. package/test/unit/extract-constraints.test.ts +0 -145
  273. package/test/unit/issue-close-guard.test.ts +0 -204
  274. package/test/unit/scaffold-project.test.ts +0 -417
  275. package/test/unit/skill-cooccurrence.test.ts +0 -177
  276. package/test/unit/skill-sequence-logger.test.ts +0 -244
  277. package/test/unit/workflow-state-guard.test.ts +0 -95
  278. package/workflows/batch-ship.js +0 -295
  279. package/workflows/council.js +0 -481
  280. package/workflows/prove.js +0 -560
  281. package/workflows/ship.js +0 -789
  282. package/workflows/verify.js +0 -236
@@ -1,648 +0,0 @@
1
- {
2
- "timestamp": "2026-09-19T18:51:06.587Z",
3
- "total": 106,
4
- "failures": 0,
5
- "warnings": 0,
6
- "candidateCount": 106,
7
- "staleCount": 0,
8
- "findings": [],
9
- "constraintCandidates": [
10
- {
11
- "rule": "No new gaps",
12
- "source": "specs/harness-automation-matrix.md:246",
13
- "hash": "51efd596e134",
14
- "status": "pending"
15
- },
16
- {
17
- "rule": "BY DESIGN |",
18
- "source": "specs/harness-automation-matrix.md:41",
19
- "hash": "24871910c4cc",
20
- "status": "pending"
21
- },
22
- {
23
- "rule": "By design (DA's job):** 1 (3%)",
24
- "source": "specs/harness-automation-matrix.md:77",
25
- "hash": "189d7f676d52",
26
- "status": "pending"
27
- },
28
- {
29
- "rule": "By design (XS ceremony) | — |",
30
- "source": "specs/harness-automation-matrix.md:283",
31
- "hash": "e67dd197aba8",
32
- "status": "pending"
33
- },
34
- {
35
- "rule": "**AC failures:** Must fix — no skip allowed. Iterate until pass or circuit breaker",
36
- "source": "specs/HARNESS-GATES.md:73",
37
- "hash": "c52c92491462",
38
- "status": "pending"
39
- },
40
- {
41
- "rule": "Brief must contain template markers (## Context, ## Task, ## Verify, ## Report back)",
42
- "source": "specs/HARNESS-GATES.md:167",
43
- "hash": "2ea38aa950c0",
44
- "status": "pending"
45
- },
46
- {
47
- "rule": "`mode: \"bypassPermissions\"` must be set",
48
- "source": "specs/HARNESS-GATES.md:168",
49
- "hash": "e64258aea32a",
50
- "status": "pending"
51
- },
52
- {
53
- "rule": ". Never loop more than N iterations without hitting a circuit breaker",
54
- "source": "specs/HARNESS-STANDARD.md:412",
55
- "hash": "a396479701d7",
56
- "status": "pending"
57
- },
58
- {
59
- "rule": "Anti-pattern:** 2+ hours of research without resolution",
60
- "source": "specs/HARNESS-STANDARD.md:210",
61
- "hash": "4eec4b104187",
62
- "status": "pending"
63
- },
64
- {
65
- "rule": "ONLY on the Mac Mini container\")",
66
- "source": "specs/HARNESS-STANDARD.md:251",
67
- "hash": "a7e338c57ce3",
68
- "status": "pending"
69
- },
70
- {
71
- "rule": "Only intent-level changes (what we are trying to achieve, not just the numbers) require council",
72
- "source": "specs/HARNESS-STANDARD.md:365",
73
- "hash": "89f3062506b0",
74
- "status": "pending"
75
- },
76
- {
77
- "rule": "Only when unknowns exist |",
78
- "source": "specs/HARNESS-STANDARD.md:481",
79
- "hash": "fb91f25415b5",
80
- "status": "pending"
81
- },
82
- {
83
- "rule": ". Must be a file that survives session boundaries",
84
- "source": "specs/HARNESS-SKILL-CONTRACT.md:26",
85
- "hash": "eb2ae3d50612",
86
- "status": "pending"
87
- },
88
- {
89
- "rule": "3 routes → CODE-MAP must find them",
90
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:101",
91
- "hash": "e6baadc1d229",
92
- "status": "pending"
93
- },
94
- {
95
- "rule": "2+ modules with known exports → consumer scan must detect them",
96
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:102",
97
- "hash": "8d7d264e9b0e",
98
- "status": "pending"
99
- },
100
- {
101
- "rule": ".env.example → envVars must populate",
102
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:103",
103
- "hash": "64ba67523051",
104
- "status": "pending"
105
- },
106
- {
107
- "rule": "Makefile with port → rungate.json must detect port 3000",
108
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:104",
109
- "hash": "b362240df1ce",
110
- "status": "pending"
111
- },
112
- {
113
- "rule": "Existing tests → test baseline must capture pass/fail count",
114
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:105",
115
- "hash": "3c1eb2cc7126",
116
- "status": "pending"
117
- },
118
- {
119
- "rule": "Spec with SCs → spec-drift must hash it",
120
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:106",
121
- "hash": "75bab835a5a9",
122
- "status": "pending"
123
- },
124
- {
125
- "rule": "ADR → doc hygiene must validate frontmatter",
126
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:107",
127
- "hash": "df5e59533684",
128
- "status": "pending"
129
- },
130
- {
131
- "rule": "Utility module with 1 export → tests can check shallow module detection",
132
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:108",
133
- "hash": "257c76c8cacb",
134
- "status": "pending"
135
- },
136
- {
137
- "rule": "package.json (SC-73): required fields added",
138
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:304",
139
- "hash": "6be99175bf26",
140
- "status": "pending"
141
- },
142
- {
143
- "rule": "AGENTS.md (SC-17, 18, 25, 94, 95, 128, 139): <150 lines, required sections, empty omitted, rules under 200 words",
144
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:307",
145
- "hash": "930c77c96837",
146
- "status": "pending"
147
- },
148
- {
149
- "rule": "[ ] TP-1: Golden test fixture exists at test/fixtures/golden-project/ with all required files",
150
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:533",
151
- "hash": "dd1b2bed3ca4",
152
- "status": "pending"
153
- },
154
- {
155
- "rule": "[ ] TP-12: Compliance audit checks 10 dimensions per file: existence, line count, required content, ordering, word count, rule count, examples, authority tiers, frontmatter, cross-references",
156
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:544",
157
- "hash": "7bf553a83e22",
158
- "status": "pending"
159
- },
160
- {
161
- "rule": "Golden fixture expected output must be HAND-WRITTEN to match the spec. Auto-generating expected output from the implementation is a tautological test — it tests \"does the code produce what the code produces\" not \"does the code produce what the spec says.\"",
162
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:566",
163
- "hash": "5f992574cbd8",
164
- "status": "pending"
165
- },
166
- {
167
- "rule": "Phase test files should not share test infrastructure beyond fixture creation utilities. Each phase must be independently debuggable",
168
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:567",
169
- "hash": "58e4f534cc12",
170
- "status": "pending"
171
- },
172
- {
173
- "rule": "no new SCs)",
174
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:349",
175
- "hash": "d0797da4ac0b",
176
- "status": "pending"
177
- },
178
- {
179
- "rule": "intentional: generated expected output would be a tautological test",
180
- "source": "specs/BOOTSTRAP-TEST-PLAN.md:185",
181
- "hash": "f1681775adf7",
182
- "status": "pending"
183
- },
184
- {
185
- "rule": "[ ] SC-A1: [anti-criterion — must NOT happen]",
186
- "source": "specs/SPEC-TEMPLATE.md:45",
187
- "hash": "9d74e5ca4f2b",
188
- "status": "pending"
189
- },
190
- {
191
- "rule": "Reproduce-first: almost never done (#82 closed 3x without reproducing)",
192
- "source": "specs/HARNESS-SKILL-CHAIN.md:17",
193
- "hash": "1daec70d8e69",
194
- "status": "pending"
195
- },
196
- {
197
- "rule": "Before/after evidence: never captured structurally",
198
- "source": "specs/HARNESS-SKILL-CHAIN.md:18",
199
- "hash": "6ed78c8a0631",
200
- "status": "pending"
201
- },
202
- {
203
- "rule": "**Harness-owned** — fully managed, user should not edit, always regenerated",
204
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:77",
205
- "hash": "fdadc07d1f52",
206
- "status": "pending"
207
- },
208
- {
209
- "rule": "**Co-owned (additive)** — harness ensures required entries, user adds their own, never removes existing",
210
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:78",
211
- "hash": "9ee9e3914a4a",
212
- "status": "pending"
213
- },
214
- {
215
- "rule": "**Co-owned (WARN)** — harness recommends fields, user decides, never modifies",
216
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:79",
217
- "hash": "bc24323876ff",
218
- "status": "pending"
219
- },
220
- {
221
- "rule": "**User-owned** — harness never touches content",
222
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:83",
223
- "hash": "3fe48e38adaa",
224
- "status": "pending"
225
- },
226
- {
227
- "rule": "New: `runPackageValidation` → package.json required fields",
228
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:381",
229
- "hash": "fdd9cf9ad7c7",
230
- "status": "pending"
231
- },
232
- {
233
- "rule": "**Project-specific** (deploy.yml, custom hooks, project scripts) → created by developer/agent, lives in repo, never touched by harness",
234
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:944",
235
- "hash": "a98e3bfcd925",
236
- "status": "pending"
237
- },
238
- {
239
- "rule": "Never report PASS with known gaps — list every gap",
240
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1043",
241
- "hash": "cb04e4e6caea",
242
- "status": "pending"
243
- },
244
- {
245
- "rule": "Null in config means skip — never guess values",
246
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1046",
247
- "hash": "b14e62b8ae02",
248
- "status": "pending"
249
- },
250
- {
251
- "rule": "Anti-criteria (must NOT happen) use: AC-A1, AC-A2",
252
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1265",
253
- "hash": "b51624203953",
254
- "status": "pending"
255
- },
256
- {
257
- "rule": "IDs are stable — once assigned, never renumbered even if ACs are removed",
258
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1266",
259
- "hash": "20769305d153",
260
- "status": "pending"
261
- },
262
- {
263
- "rule": "Each test must annotate which AC it covers: `// covers: AC-1`",
264
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1267",
265
- "hash": "2124e43e2c28",
266
- "status": "pending"
267
- },
268
- {
269
- "rule": "Coding principles (deep modules, boundary validation, Zod at boundaries, assertNever, branded types)",
270
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1780",
271
- "hash": "8c7dde59e9fd",
272
- "status": "pending"
273
- },
274
- {
275
- "rule": "Universal Core Principles: 6 rules (always-on, every agent)",
276
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1923",
277
- "hash": "695826a7a4f0",
278
- "status": "pending"
279
- },
280
- {
281
- "rule": "Existing Hard Constraints are NEVER removed by re-scan — only added to",
282
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2175",
283
- "hash": "d84fdf7f3f8a",
284
- "status": "pending"
285
- },
286
- {
287
- "rule": "[ ] SC-73: package.json has required fields (name, type:module, scripts.test, devDependencies.rungate) — scaffold adds missing, never overwrites existing",
288
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2226",
289
- "hash": "f3beab139473",
290
- "status": "pending"
291
- },
292
- {
293
- "rule": "[ ] SC-74: tsconfig.json has recommended fields (strict:true) — scaffold WARNs if missing, never overwrites",
294
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2227",
295
- "hash": "1e76a4b671d2",
296
- "status": "pending"
297
- },
298
- {
299
- "rule": "[ ] SC-75: Spec frontmatter has required fields (doc-type, status, testable, governs) — Spec Discovery FAILs if missing",
300
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2228",
301
- "hash": "a67314676d35",
302
- "status": "pending"
303
- },
304
- {
305
- "rule": "[ ] SC-76: ADR frontmatter has required fields (doc-type:adr, status, created) — Doc Hygiene FAILs if missing",
306
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2229",
307
- "hash": "3601b952231d",
308
- "status": "pending"
309
- },
310
- {
311
- "rule": "[ ] SC-77: `bunx rungate create-spec` creates spec with all required frontmatter fields pre-populated",
312
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2230",
313
- "hash": "52a1a8a18912",
314
- "status": "pending"
315
- },
316
- {
317
- "rule": "[ ] SC-78: `bunx rungate create-adr` creates ADR with all required frontmatter fields pre-populated",
318
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2231",
319
- "hash": "76af1cca4388",
320
- "status": "pending"
321
- },
322
- {
323
- "rule": "[ ] SC-82: Scaffold creates .github/workflows/ci.yml — harness-owned, always regenerated from template + rungate.json",
324
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2233",
325
- "hash": "75d32112185f",
326
- "status": "pending"
327
- },
328
- {
329
- "rule": "[ ] SC-83: Scaffold creates .github/workflows/gates.yml — harness-owned, always regenerated from template + rungate.json",
330
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2234",
331
- "hash": "f9373364d31f",
332
- "status": "pending"
333
- },
334
- {
335
- "rule": "[ ] SC-123: .github/copilot-instructions.md created if missing, NEVER overwritten if exists — scaffold skips on existing",
336
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2262",
337
- "hash": "dc4aa07cbb8a",
338
- "status": "pending"
339
- },
340
- {
341
- "rule": "[ ] SC-139: AGENTS.md rules content (excluding tables/headers) stays under 200 words — always-on context must be lean",
342
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2268",
343
- "hash": "982e0e1ed09a",
344
- "status": "pending"
345
- },
346
- {
347
- "rule": "[ ] SC-143: Each template declares activation mode: always-on, file-pattern, agent-decided, or manual",
348
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2272",
349
- "hash": "3e4c37111a7c",
350
- "status": "pending"
351
- },
352
- {
353
- "rule": "[ ] SC-145: Brief-assembler orders sections: identity (role) → principles → methodology → ACs → verification commands — never methodology after ACs",
354
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2274",
355
- "hash": "c0e0f796ed51",
356
- "status": "pending"
357
- },
358
- {
359
- "rule": "[ ] SC-146: Every agent brief categorizes rules into three tiers: Always Do (autonomous), Ask First (needs approval), Never Do (hard stops) — gate validates \"Never Do\" items mechanically",
360
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2275",
361
- "hash": "a3ee4cda9b37",
362
- "status": "pending"
363
- },
364
- {
365
- "rule": "[ ] SC-137: Rejected constraint candidates logged to reference/rejected-constraints.md with content-hash dedup — same candidate never resurfaces",
366
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2290",
367
- "hash": "f6f5e07af3c0",
368
- "status": "pending"
369
- },
370
- {
371
- "rule": "[ ] SC-48: ACs use Given/When/Then format with four required fields: trigger, output, verify command, exclusions",
372
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2320",
373
- "hash": "f1427571fbfa",
374
- "status": "pending"
375
- },
376
- {
377
- "rule": "[ ] SC-53: RCA section required in Marcus brief for bug-fix issues — rootCause, prediction, predictionVerified",
378
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2325",
379
- "hash": "0a0cf428c274",
380
- "status": "pending"
381
- },
382
- {
383
- "rule": "[ ] SC-63: Spec content hash tracked — hash mismatch at gate = FAIL (tests must match current spec)",
384
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2335",
385
- "hash": "b1c9a9b73611",
386
- "status": "pending"
387
- },
388
- {
389
- "rule": "[ ] SC-79: Conformity includes `runPackageValidation` check for package.json required fields",
390
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2341",
391
- "hash": "0b543566e36c",
392
- "status": "pending"
393
- },
394
- {
395
- "rule": "[ ] SC-81: Phase 0 file creation is additive — never overwrites existing content, only adds missing fields/entries",
396
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2342",
397
- "hash": "ac22cb2e45d5",
398
- "status": "pending"
399
- },
400
- {
401
- "rule": "[ ] SC-129: Gate WARNs if a new module file has more exported functions than internal functions (shallow module signal)",
402
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2355",
403
- "hash": "932ea313cbcf",
404
- "status": "pending"
405
- },
406
- {
407
- "rule": "[ ] SC-131: Anti-criteria (SC-A*) use absence verification — Verify command must confirm absence, not presence",
408
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2357",
409
- "hash": "3a583291a160",
410
- "status": "pending"
411
- },
412
- {
413
- "rule": "rungate.json consumers field: auto-detection from CODE-MAP may miss consumers that are dynamically imported or configured at runtime. Manual override must be preserved on re-scan",
414
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2403",
415
- "hash": "a5d07bdcff99",
416
- "status": "pending"
417
- },
418
- {
419
- "rule": "Hard Constraints in AGENTS.md must survive regeneration — they're the one section that can't be auto-detected from code. **CRITICAL (council finding):** The preservation regex must handle Hard Constraints as the last section — the lookahead `(?=\\n## |\\s*$)` handles this (fixed)",
420
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2404",
421
- "hash": "bff3b77bd977",
422
- "status": "pending"
423
- },
424
- {
425
- "rule": "`rejected-constraints.md` must use content-hash dedup so rejections survive line-number changes across doc edits. Prevents the same false positive from resurfacing on every re-scan",
426
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2406",
427
- "hash": "70429a10a0bd",
428
- "status": "pending"
429
- },
430
- {
431
- "rule": ".gitignore on new projects: pre-flight creates .gitignore from full security template BEFORE `bun init` runs, ensuring secrets are excluded from the first commit. On existing projects, scaffold verifies required entries and appends missing ones",
432
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2411",
433
- "hash": "4a0cb9bdbbdb",
434
- "status": "pending"
435
- },
436
- {
437
- "rule": "Quinn a11y tree dependency: browser_snapshot() requires Playwright MCP server running. If MCP unavailable, Quinn falls back to screenshots with WARN. Never block QA on infra failure",
438
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2414",
439
- "hash": "5d42115fd354",
440
- "status": "pending"
441
- },
442
- {
443
- "rule": "Iterative refinement paradox: asking an agent to \"improve\" its own code 5+ times increases vulnerabilities 37.6% (IEEE-ISTAS 2025). The harness's circuit breaker (3 iterations max, research required at iteration 2) exists partly for this reason",
444
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2420",
445
- "hash": "2e71aabd007a",
446
- "status": "pending"
447
- },
448
- {
449
- "rule": "Always-on 200-word budget (SC-139): measured as prose content in AGENTS.md, excluding table formatting, headers, and code blocks. Tables are information-dense and parse differently than prose rules",
450
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2424",
451
- "hash": "a5d6289b47aa",
452
- "status": "pending"
453
- },
454
- {
455
- "rule": ". Never sideways, never up",
456
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:19",
457
- "hash": "ffd316fdfa8f",
458
- "status": "pending"
459
- },
460
- {
461
- "rule": ". Never substitute hardcoded defaults for missing data",
462
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:20",
463
- "hash": "df2caa7746f8",
464
- "status": "pending"
465
- },
466
- {
467
- "rule": ". Never remove existing |",
468
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:42",
469
- "hash": "aae340595f02",
470
- "status": "pending"
471
- },
472
- {
473
- "rule": ". Never overwrite existing |",
474
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:43",
475
- "hash": "ca39e117ce08",
476
- "status": "pending"
477
- },
478
- {
479
- "rule": ". Never modify |",
480
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:47",
481
- "hash": "e1197561e997",
482
- "status": "pending"
483
- },
484
- {
485
- "rule": ". Never overwrite",
486
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:279",
487
- "hash": "7800e85079cc",
488
- "status": "pending"
489
- },
490
- {
491
- "rule": ". Never remove existing entries",
492
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:372",
493
- "hash": "650c5700a812",
494
- "status": "pending"
495
- },
496
- {
497
- "rule": ". Always regenerated from template + rungate",
498
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:647",
499
- "hash": "039028898a2d",
500
- "status": "pending"
501
- },
502
- {
503
- "rule": ". Never copy templates manually",
504
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:964",
505
- "hash": "2bc8213cd29c",
506
- "status": "pending"
507
- },
508
- {
509
- "rule": ". Never duplicate components — add props",
510
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1054",
511
- "hash": "bcdae060c440",
512
- "status": "pending"
513
- },
514
- {
515
- "rule": ". Never swallow errors silently",
516
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1100",
517
- "hash": "6060eeb3f161",
518
- "status": "pending"
519
- },
520
- {
521
- "rule": ". Required for S-tier (dual-arm) evidence",
522
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1721",
523
- "hash": "fc42285b8371",
524
- "status": "pending"
525
- },
526
- {
527
- "rule": ". Never block QA on infra failure",
528
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2414",
529
- "hash": "224677a0a891",
530
- "status": "pending"
531
- },
532
- {
533
- "rule": "no new console errors | Clean state verification |",
534
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1550",
535
- "hash": "699a2ff147cd",
536
- "status": "pending"
537
- },
538
- {
539
- "rule": "no new failures",
540
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1740",
541
- "hash": "a968808661c0",
542
- "status": "pending"
543
- },
544
- {
545
- "rule": "anti-pattern is absent | Absence proof |",
546
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1166",
547
- "hash": "74f79cbf55e9",
548
- "status": "pending"
549
- },
550
- {
551
- "rule": "anti-pattern of agents deleting failing tests",
552
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1421",
553
- "hash": "cb5c5dfeb378",
554
- "status": "pending"
555
- },
556
- {
557
- "rule": "intentional anti-patterns, deploy gotchas, disabled features, safety boundaries",
558
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2144",
559
- "hash": "31f96c38a591",
560
- "status": "pending"
561
- },
562
- {
563
- "rule": "intentional choices |",
564
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2152",
565
- "hash": "52733e25bb61",
566
- "status": "pending"
567
- },
568
- {
569
- "rule": "intentional\", \"by design\", \"do not change\", \"never\", \"must not\" |",
570
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2153",
571
- "hash": "35832274ecf2",
572
- "status": "pending"
573
- },
574
- {
575
- "rule": "intentional coupling |",
576
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2155",
577
- "hash": "a815932cd558",
578
- "status": "pending"
579
- },
580
- {
581
- "rule": "intentional|by design|do not|never|must not|anti-pattern|permanently disabled|looks like",
582
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2160",
583
- "hash": "db574a034f17",
584
- "status": "pending"
585
- },
586
- {
587
- "rule": "by design | Quinn journeys capped at 5-8 steps",
588
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2398",
589
- "hash": "38cbcf3128aa",
590
- "status": "pending"
591
- },
592
- {
593
- "rule": "anti-pattern across multiple teams | DEV Community, FreeCodeCamp |",
594
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2439",
595
- "hash": "7ccd27193f9b",
596
- "status": "pending"
597
- },
598
- {
599
- "rule": "Only include non-inferrable details",
600
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:22",
601
- "hash": "f3d46ff3b584",
602
- "status": "pending"
603
- },
604
- {
605
- "rule": "only when performance requires it and document why",
606
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1087",
607
- "hash": "92ab6496b34e",
608
- "status": "pending"
609
- },
610
- {
611
- "rule": "only when a11y can't verify) | layout, color, overlap |",
612
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1551",
613
- "hash": "13fb252335cd",
614
- "status": "pending"
615
- },
616
- {
617
- "rule": "Only on FAIL or visual step | Check for new errors |",
618
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1592",
619
- "hash": "fc891a31d09b",
620
- "status": "pending"
621
- },
622
- {
623
- "rule": "Only on explicit invocation | Full spec reference |",
624
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:1914",
625
- "hash": "f2b960726207",
626
- "status": "pending"
627
- },
628
- {
629
- "rule": "only on FAIL or visual checks",
630
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2328",
631
- "hash": "db133075cfae",
632
- "status": "pending"
633
- },
634
- {
635
- "rule": "only when the brief-assembler judges it relevant to the issue type",
636
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2425",
637
- "hash": "183b6d089cee",
638
- "status": "pending"
639
- },
640
- {
641
- "rule": "permanent (security constraints, architectural invariants)",
642
- "source": "specs/BOOTSTRAP-DATA-FLOW-SPEC.md:2426",
643
- "hash": "ba964868e67b",
644
- "status": "pending"
645
- }
646
- ],
647
- "staleness": []
648
- }