@techgoblin/gobstack 0.6.0-alpha.3 → 0.6.0-beta.1

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 (110) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +256 -120
  3. package/VERSION +1 -1
  4. package/bans/README.md +5 -5
  5. package/bans/grep-ban.sh +1 -1
  6. package/bin/goblin-bans +103 -27
  7. package/bin/goblin-init +346 -211
  8. package/bin/goblin-install +281 -204
  9. package/bin/goblin-lib.sh +79 -76
  10. package/bin/goblin-map +130 -571
  11. package/bin/goblin-mcp.js +37 -16
  12. package/bin/goblin-verify +254 -998
  13. package/bin/goblin.js +4 -9
  14. package/docs/GUIDE.md +727 -181
  15. package/docs/LIMITS.md +273 -301
  16. package/docs/RECORD-NOTES.md +1 -2
  17. package/manifest/bans.tsv +9 -9
  18. package/manifest/categories.tsv +18 -0
  19. package/manifest/enforcement.tsv +12 -68
  20. package/manifest/glossary.tsv +6 -12
  21. package/manifest/library.tsv +33 -0
  22. package/package.json +1 -4
  23. package/skills/goblin-bootstrap/SKILL.md +20 -32
  24. package/skills/goblin-feature-map/SKILL.md +1 -1
  25. package/skills/goblin-verify-author/SKILL.md +2 -2
  26. package/skills/practice/SKILL.md +4 -4
  27. package/templates/AGENTS.md.tmpl +6 -6
  28. package/templates/HANDOFF.md.tmpl +1 -1
  29. package/templates/SPEC.md.tmpl +2 -2
  30. package/templates/agents-block.tmpl +1 -10
  31. package/adapters/_template/adapter.tsv +0 -16
  32. package/adapters/_template/detect.sh +0 -10
  33. package/adapters/_template/emit.sh +0 -5
  34. package/adapters/_template/verify.sh +0 -4
  35. package/adapters/claude/adapter.tsv +0 -8
  36. package/adapters/claude/detect.sh +0 -8
  37. package/adapters/claude/verify.sh +0 -47
  38. package/adapters/codex/adapter.tsv +0 -12
  39. package/adapters/codex/detect.sh +0 -9
  40. package/adapters/codex/verify.sh +0 -45
  41. package/adapters/copilot/adapter.tsv +0 -10
  42. package/adapters/copilot/detect.sh +0 -8
  43. package/adapters/copilot/verify.sh +0 -45
  44. package/adapters/cursor/adapter.tsv +0 -11
  45. package/adapters/cursor/detect.sh +0 -10
  46. package/adapters/cursor/verify.sh +0 -45
  47. package/adapters/gemini/adapter.tsv +0 -15
  48. package/adapters/gemini/detect.sh +0 -11
  49. package/adapters/gemini/verify.sh +0 -49
  50. package/adapters/hermes/adapter.tsv +0 -9
  51. package/adapters/hermes/detect.sh +0 -8
  52. package/adapters/hermes/verify.sh +0 -27
  53. package/adapters/opencode/adapter.tsv +0 -14
  54. package/adapters/opencode/detect.sh +0 -9
  55. package/adapters/opencode/verify.sh +0 -45
  56. package/automations/README.md +0 -53
  57. package/automations/bugreporter-intake.sh +0 -145
  58. package/automations/drift-audit.sh +0 -139
  59. package/automations/report.schema.tsv +0 -10
  60. package/bin/goblin +0 -144
  61. package/bin/goblin-audit +0 -143
  62. package/bin/goblin-doctor +0 -233
  63. package/bin/goblin-emit +0 -495
  64. package/bin/goblin-extras +0 -360
  65. package/bin/goblin-model +0 -105
  66. package/bin/goblin-upgrade +0 -580
  67. package/docs/ADOPTION.md +0 -173
  68. package/docs/CI.md +0 -190
  69. package/docs/CONTRACTS.md +0 -215
  70. package/docs/DESIGN.md +0 -92
  71. package/docs/ENFORCEMENT.md +0 -228
  72. package/docs/FLOWS.md +0 -164
  73. package/docs/GLOSSARY.md +0 -40
  74. package/docs/GUARDRAILS.md +0 -126
  75. package/docs/INTEGRATION.md +0 -92
  76. package/docs/LOOP.md +0 -165
  77. package/docs/RE-PLAYBOOK.md +0 -183
  78. package/docs/RISKS.md +0 -70
  79. package/docs/ROLES.md +0 -105
  80. package/extras-catalogue/catalogue.tsv +0 -42
  81. package/extras-catalogue/payload/README.md +0 -14
  82. package/extras-catalogue/payload/taste-skill/taste/REFERENCE.md +0 -3
  83. package/extras-catalogue/payload/taste-skill/taste/SKILL.md +0 -9
  84. package/manifest/classes.tsv +0 -51
  85. package/manifest/playbooks.tsv +0 -16
  86. package/presets/electron-overlay.yaml +0 -38
  87. package/presets/fleet.yaml +0 -43
  88. package/presets/game.yaml +0 -38
  89. package/presets/research.yaml +0 -41
  90. package/presets/service.yaml +0 -40
  91. package/presets/software.yaml +0 -48
  92. package/roles.yaml +0 -54
  93. package/skills/goblin-bugfix/SKILL.md +0 -26
  94. package/skills/goblin-bugreporter/SKILL.md +0 -52
  95. package/skills/goblin-drift-audit/SKILL.md +0 -43
  96. package/skills/goblin-eval/SKILL.md +0 -68
  97. package/skills/goblin-feature/SKILL.md +0 -26
  98. package/skills/goblin-investigation/SKILL.md +0 -26
  99. package/skills/goblin-judge/SKILL.md +0 -74
  100. package/skills/goblin-loop/SKILL.md +0 -88
  101. package/skills/goblin-mode/SKILL.md +0 -70
  102. package/skills/goblin-overnight/SKILL.md +0 -42
  103. package/skills/goblin-pr-gate/SKILL.md +0 -42
  104. package/skills/goblin-re-mobile/SKILL.md +0 -51
  105. package/skills/goblin-refactor/SKILL.md +0 -23
  106. package/skills/goblin-sweep/SKILL.md +0 -23
  107. package/skills/goblin-tdd-repro/SKILL.md +0 -27
  108. package/templates/audit-waiver.tsv.tmpl +0 -10
  109. package/templates/install-hooks.allowlist.tmpl +0 -9
  110. package/templates/report.yaml.tmpl +0 -16
package/docs/LIMITS.md CHANGED
@@ -16,9 +16,13 @@ the rest — in its dated parentheticals; `docs/RECORD-NOTES.md` is the legend.)
16
16
  3. **No agent graph and no verdict-ledger daemon.** The board replaces both at a lower
17
17
  resolution: `parents` expresses ordering, not data flow, and sibling cards cannot see each
18
18
  other.
19
- 4. **Fifteen playbooks against twenty-three.** The cuts in `docs/FLOWS.md` are deliberate and each
20
- is argued, but real coverage is lost: performance hillclimbing, pixel parity, trace
21
- forensics, stack landing, worktree hygiene.
19
+ 4. **Five shipped skills against the old twenty-three-procedure catalogue.** The cuts in
20
+ `docs/GUIDE.md` are deliberate and each is argued, but real coverage is lost: performance
21
+ hillclimbing, pixel parity, trace forensics, stack landing, worktree hygiene — and, since the
22
+ v3 enhance-layer cut, the whole commodity set (investigation, bugfix, feature, refactor,
23
+ tdd-repro, eval, sweep, overnight, pr-gate, bugreporter, drift-audit, mode-router), which
24
+ moved to the `attic/` branch. The external-categories adjudication (init brief) is the
25
+ replacement path for what a repo actually needs.
22
26
  5. **No swarm or arena fan-out.** The read-versus-write axis says that is correct for this work
23
27
  mix; it is still a capability the other harness has and this does not.
24
28
 
@@ -27,17 +31,15 @@ the rest — in its dated parentheticals; `docs/RECORD-NOTES.md` is the legend.)
27
31
  6. **The biggest measured defect is out of reach.** The orchestrator's routing text says a bare
28
32
  subagent spawn reaches the specialist profiles; it does not. That is the highest-cost defect
29
33
  on the box, and goblin-stack cannot fix it from inside a project repo. It ships corrected
30
- text in `docs/INTEGRATION.md` and lints its own artifacts (`MD-03`); the fleet-side edit is
34
+ text in `docs/GUIDE.md`; the fleet-side edit is
31
35
  escalated.
32
- 7. **The staleness of a fleet-config repo is detectable and not fixable here** — the E-class gate
36
+ 7. **The staleness of a fleet-config repo is detectable and not fixable here** — an artifact-scoped gate
33
37
  notices it, and the underlying job bug belongs to another repository.
34
- 8. **A new surface to maintain.** Per-repo vendored `.goblin/` plus `.hermes/skills/` means
38
+ 8. **A new surface to maintain.** Per-repo vendored `.gob/` plus `.hermes/skills/` means
35
39
  upgrade debt in every adopted repo, plus one more command pair to learn. The counter is that
36
40
  the alternative — profile copies — already failed.
37
- 9. **Ten rows are labelled `advisory`, and nine of them are prose with no check at all:**
38
- `HP-04`, `HS-03`, `CM-02`, `MD-03`, `PG-04`, `DOC-01`, `DOC-02`, `SC-09` and `JG-03` (G2, the
39
- judge lane that has never returned a non-`done` verdict). One (`MD-02`) is
40
- advisory-labelled but still reports its state as `ADV`. Each is counted and capped, but a
41
+ 9. **Six rows are labelled `advisory`, and all six are prose with no check at all:**
42
+ `HP-04`, `HS-03`, `CM-02`, `DOC-01`, `DOC-02` and `SC-09`. Each is counted and capped, but a
41
43
  counted rule is still not an enforced one, and **the cap is a policy, not a proof.**
42
44
  10. **It does not reduce the profile-skill surface.** It only stops that surface from growing
43
45
  with project procedures; the existing divergence is a separate cleanup.
@@ -48,28 +50,15 @@ the rest — in its dated parentheticals; `docs/RECORD-NOTES.md` is the legend.)
48
50
  replaced with real probes.
49
51
  12. **`HP-03` proves a date exists, not that a number is fresh.** A HANDOFF can carry yesterday's
50
52
  number with today's date and pass. Since V1 the row is anchored on the gate names
51
- `.goblin/goblin.yaml` DECLARES and skips the template's own example sentence, so a real gate
53
+ the `AGENTS.md` gob block DECLARES and skips the template's own example sentence, so a real gate
52
54
  line can no longer lose its `measured <date>` in silence (G8-2 measured the old row passing
53
55
  exactly that); but nothing re-measures the number, and a gate-bearing line that names no
54
56
  declared gate and carries no gate-shaped keyword is still unseen.
55
- 13. **`PG-04` is documentation, and `PG-05` is a text reading — re-declared at W4 rather than
56
- called a gate.** `PG-04` stays `advisory` because the forge is unobservable from inside a
57
- repo: a protected branch whose only admin is the person pushing protects nothing, so a
58
- required check armed under the sole admin's own identity binds nobody — the second half of
59
- that sentence is measured (Harvey is the sole admin of every repo he owns), and changing it
60
- is a forge/account change, not a repository change. `PG-05` **used to be a heuristic**: it
61
- counted "every step is guarded", so a single **job-level** `if:`, a job with no step, and the
62
- measured real shape (one *unguarded* step deciding whether the guarded gate step runs) all
63
- passed it while GitHub reported Success. It now refuses a conditional job, a conditional
64
- step, a job that declares no step and a workflow with no `jobs:` — see `docs/CI.md` §1 for
65
- why a skipped job is a green light. It is still a **text reading**: no YAML parser
66
- (`docs/CONTRACTS.md` allows none), so a flow-style `jobs: {…}` mapping is refused rather than
67
- parsed, a `#` inside a quoted string is read as a comment, and a conditional step that is
68
- genuinely safe is indistinguishable from the trap. It cannot see branch protection, the
69
- required-check list, or whether the job ever ran — `PG-04` is the row that says so. `PG-06`
70
- is the other half and has its own limit: it proves the declared gate is **invoked** in a file
71
- under `.github/workflows/`, never that the forge marks that job required, never that it is
72
- the job the forge waits on, and never that the workflow can fail.
57
+ 13. **Cut in v3: the CI lane (`PG-04`, `PG-05`, `PG-06`, `docs/CI.md`).** The workflow reader is
58
+ gone: no `.github/workflows` payload is shipped, no row reads a workflow, and the doc that
59
+ argued the forge settings is deleted. What the lane could never see — the required-check list,
60
+ the bypass switch, the push identity, whether the job ever ran — is recorded here and in
61
+ `README.md` K7/K18, not solved.
73
62
  14. **`CM-02` cannot be enforced.** A backtick lost to command substitution leaves no trace a
74
63
  later check can read.
75
64
 
@@ -88,12 +77,13 @@ the rest — in its dated parentheticals; `docs/RECORD-NOTES.md` is the legend.)
88
77
  curated Skills stayed above it. **goblin-stack installs agent-authored skills**, so the lower
89
78
  row of that result is a warning about its own output, not someone else's: a generated skill
90
79
  accepted after a skim is a different proposition from a written one. It is why `P6` hands the
91
- generated skill to `P12` before any `verified:` date advances (`docs/RISKS.md` K15).
92
- **`P12` is still the mechanism to find out, and it has still never been run**: the record format
93
- is now specified (`skills/goblin-eval/SKILL.md`) and **no row reads a lane** (#31).
80
+ generated skill to an eval before any `verified:` date advances (`README.md` K15).
81
+ **The eval (`P12`) is still the mechanism to find out, and it has still never been run**: the
82
+ record format was specified in `skills/goblin-eval/SKILL.md` (cut to `attic/` in v3, with the
83
+ record shape preserved there) and **no row reads a lane** (#31).
94
84
  Pin: `https://www.skillsbench.ai/blogs/skillsbench-1-1`, sha256 of the retrieved page
95
85
  `d812bb7c2da702cc67556eb5f46b9e93faaca19d3545376544866e940126ef15`, fetched 2026-09-25; the
96
- eleven-token ban and the judge procedure are argued in
86
+ eleven-token ban and the grading procedure are argued in
97
87
  `https://ai.engineer/talks/0vphxNt4wyk-don-t-ship-skills-without-evals`. **Not registered**:
98
88
  the source registry is `manifest/sources.tsv` (G9's artifact) and that file does not exist in
99
89
  this repo — measured, `git ls-files manifest/` names five files and none of them is
@@ -108,62 +98,43 @@ the rest — in its dated parentheticals; `docs/RECORD-NOTES.md` is the legend.)
108
98
  mechanised as *the HANDOFF names a commit that exists in this repo and is an ancestor of
109
99
  HEAD*, which still catches the defect the rule exists for (an artifact that names no commit
110
100
  at all). The deviation and its reason are in the row's own `if_not_why` column.
111
- 18. **`.goblin/installed.json` is not signed, so nothing here proves it was not rewritten.** Every
101
+ 18. **`.gob/installed.json` is not signed, so nothing here proves it was not rewritten.** Every
112
102
  drift check — `IN-02`, `SK-02`, and `HS-01`'s hash of the harness dir — reads its expected
113
103
  hash out of that one file, and that file is the one file no check protects. Measured: append a
114
- byte to `.goblin/bin/goblin-verify`, rewrite its recorded hash in `installed.json`, commit, and
115
- the run is **fully GREEN** (`38 passed, 0 failed`, exit 0). One edit defeats three rows at
104
+ byte to `.gob/bin/goblin-verify`, rewrite its recorded hash in `installed.json`, commit, and
105
+ the run is **fully GREEN** (`14 passed, 0 failed`, exit 0). One edit defeats three rows at
116
106
  once, and it is the cheapest way to fake a green run. Doing better needs an anchor the target
117
107
  cannot edit — a signature, or a hash held outside the repo — and goblin-stack has no such
118
108
  trust root: the source checkout is not guaranteed to exist at verify time, and any value
119
109
  stored in the tree is editable by the same hand. It is therefore **recorded here and printed
120
110
  in the "cannot see" footer on every run**, not claimed away.
121
- 19. **No automation has ever run here.** Cost per run, the respawn guards under a nightly
122
- producer, and whether `researcher` is the right reporter profile are all unmeasured; the
123
- first watched run of A-02 is what produces those numbers. The producer's own ceiling is a
124
- **run count**, not a dollar figure — no config key holds the spend cap, so no automation can
125
- read it, and none pretends to.
126
- 20. **The dedup key is a dedup, not a mutex.** The board's lookup runs before the write
127
- transaction, so a concurrent create can insert twice and the next lookup stabilises on the
128
- newest. The key stops a duplicate storm; it does not make one impossible.
129
- 21. **`AU-02`'s normalisation is only measured on synthetic reports.** Two differently-typed
130
- copies of one symptom give one key and a different symptom gives another, but whether a real
131
- report set normalises well enough is unknown. Its failure mode is a duplicate card, never a
132
- lost report.
133
- 22. **No audit has ever run against a real registry here.** Everything `SC-07` does was measured
134
- against a canned npm-audit report (`tests/t-audit.sh`), so the parse is proven, the *policy*
135
- is not: whether the recorded waiver set matches the real advisory set is unknown until the
136
- first real `goblin-audit`. Its skip-with-a-reason behaviour on a repo with no record is what
137
- keeps that honest rather than silent.
138
- 23. **The audit record is read by field name, not by a JSON parser.** `goblin-audit` recognises
139
- npm's `vulnerabilities` / `via` shape (`source`, `name`, `url`, `range`) with awk and REFUSES
140
- (exit 5) anything it cannot parse, rather than writing an empty record that `SC-07` would read
141
- as clean. A different audit tool is therefore a refusal, not a silent pass.
142
- 24. **The freshness rows need a GNU `date -d`.** `SC-07` parses the record's date that way; on a
143
- host without it the row FAILS with the reason rather than assuming the record is fresh.
111
+ 19. **Cut in v3: the automation producers.** `automations/` (the drift-audit and bugreporter cron
112
+ producers), their `AU-01`..`AU-04` rows and the cron walkthrough are removed. Their cost per
113
+ run and the respawn guards were never measured against a real board here, and the producer's
114
+ own ceiling was a **run count**, not a dollar figure.
115
+ 20. **Cut in v3: the automation dedup key.** The content-only dedup contract (`AU-02`) retired
116
+ with the producers that wrote the key; a project that runs its own intake keeps the
117
+ `--idempotency-key` dedup on the board side.
118
+ 21. **Cut in v3: the reporter normalisation.** `AU-02`'s synthetic-only normalisation measurement
119
+ retired with the row and the producers.
120
+ 22. **Cut in v3: the dependency-audit lane.** `goblin-audit`, `SC-07` and `SC-08` are removed —
121
+ the deliberate network-shaped audit and the lockfile install-hook reader are gone.
122
+ 23. **Cut in v3: the audit-record parse (#22's lane).** The field-name reader and its
123
+ refuse-unparseable (exit 5) contract retired with `goblin-audit`.
124
+ 24. **Cut in v3: the freshness date parse (#22's lane).** The GNU `date -d` dependency retired
125
+ with `SC-07`.
144
126
  25. **`SC-04` reads one statement, not one program.** A cookie write spread over three lines (or
145
127
  assembled through a helper) is not seen, and the row says so in its own cell.
146
- 26. **The last advisory slot is an open decision, not a rule.** Measured (V1): the advisory rows
147
- are `HP-04`, `HS-03`, `CM-02`, `MD-02`, `MD-03`, `PG-04`, `DOC-01`, `DOC-02`, `SC-09` — 9 at a
148
- ceiling of 10 — so **exactly one slot was free**, and `SK-03` reported that arithmetic at the
149
- time (`advisory 9 of ceiling 10 (1 free slot)`; **corrected 2026-09-25 (AB3):** the run prints
150
- `advisory 10 of ceiling 10 (0 free slots: the next advisory row FAILs)`, W3's `JG-03` having
151
- taken the slot — the two notes below carry the chronology). Two planned cards each wanted the
152
- slot: G1's `FM-03` (the feature map) and G2's `JG-03` (the judge agent). **Nothing in this repo
153
- chooses between them**, and V1 deliberately spent nothing. The cap is a count, not a strict
154
- bound: measured, 10 advisory rows at a ceiling of 10 **pass**, and the 11th FAILs (10 at a
155
- ceiling of 9 FAILs). So the tenth row is allowed; the eleventh is not. Whoever lands second
156
- brings a real command.
157
- **Decided 2026-09-25 (W2):** G1's `FM-03` does **not** take the slot. The feature map ships
158
- `FM-01` and `FM-02` as real commands, and the one thing they cannot check — whether the map
159
- lists every feature — is recorded as #30 instead of as a counted row; the slot is left free for
160
- G2's `JG-03`, whose judge is the mechanism `P12` actually needs. Measured after W2, `SK-03`
161
- still reads `advisory 9 of ceiling 10 (1 free slot)`.
162
- **Spent 2026-09-25 (W3):** G2 landed and `JG-03` took it. The slot is now **full** — measured
163
- `advisory 10 of ceiling 10 (0 free slots: the next advisory row FAILs)` — so the next author who
164
- wants an advisory row must raise `advisory_ceiling` in the same change and write down why,
165
- rather than discovering the cap from a red run. This is not a rule change; it is the arithmetic
166
- the ceiling was always meant to force into the open.
128
+ 26. **The advisory slots are a count, not a strict bound.** Measured (v3): 0 advisory rows in the
129
+ default matrix at a ceiling of 10 (all six moved to the library), so `SK-03` reports
130
+ `advisory 0 of ceiling 10 (10 free slots)`. A row is advisory
131
+ if its `check` cell says so OR its `enforced_by` cell does; the cap is a count — 10 advisory
132
+ rows at a ceiling of 10 **pass**, and the 11th FAILs (10 at a ceiling of 9 FAILs). The v3 cuts
133
+ (the dependency-audit and CI rows) returned the slots earlier advisory rows had spent, so the
134
+ next author who wants an advisory row has room — and, once it is full again, must raise
135
+ `advisory_ceiling` in the same change and write down why rather than discovering the cap from a
136
+ red run. This is not a rule change; it is the arithmetic the ceiling was always meant to force
137
+ into the open.
167
138
  30. **The feature map is an inventory, and nothing checks that it is complete.** `FM-01` checks the
168
139
  index against the feature files that exist and the four-H2 entry contract; `FM-02` is a tripwire
169
140
  over `entry_paths:`. **Neither can see a feature nobody wrote down** — that needs semantic
@@ -177,65 +148,36 @@ the rest — in its dated parentheticals; `docs/RECORD-NOTES.md` is the legend.)
177
148
  the source tree, not the repo root, and the third is why the upkeep pass in
178
149
  `skills/goblin-feature-map/SKILL.md` requires the date to advance only for a feature someone
179
150
  actually drove.
180
- 31. **The P6↔P12 loop is wired as a contract with no runner.** `P6` now hands a generated
181
- verification skill to `P12` and `verified:` does not advance until an eval record exists; the
182
- record's shape, the eleven-token ban, the cheap-checks-first ladder, the merge rule and the pass
183
- condition (every seeded defect detected, the control's number at zero, every correction RED
184
- before GREEN) are all specified in `skills/goblin-eval/SKILL.md`. **No row reads a lane, and
185
- nothing executes an eval** — measured after W2, `manifest/enforcement.tsv` has no `EV-*` row,
186
- and `P12` has still never been run. The runner and the record checks (`EV-01`..`EV-04` in G1's
187
- design) are deferred to a follow-up card, deliberately and in the open, rather than half-built:
188
- a row that reads a record nobody writes would pass vacuously and look like enforcement.
189
- 32. **The judge is a language model grading prose, and the record proves a handle exists — never
190
- that the handle supports the verdict.** `JG-01` FAILs a `done` verdict whose evidence resolves
191
- to nothing: `sha:<hex>` must be a commit in `git rev-list --all`, `file:<path>` a path under the
192
- root, `sha256:<hex>` the digest of a file under `.goblin/loop/`. All three say *exists*. A judge
193
- may cite a real commit that has nothing to do with the claim and pass, and a `cmd:<command>`
194
- token resolves **nothing on purpose** — the command ran, its output is not in the record, and a
195
- verdict resting on it is the self-report the row refuses. Two smaller blind spots are stated in
196
- the row's own why-cell and repeated here: the row cannot see **which lane returned a verdict**
197
- (no file in a repo observes the profile that ran — `MD-03`), and **an unresolved judge lane is
198
- an `ADV`, not a failure**, because a repo cannot choose the fleet's routing (`docs/ROLES.md`,
199
- "the measured caveat"): measured on this box, the judge lane resolves to no profile at all.
200
- Finally, the `JG-03` counter-measure is **policy, not a check** — one known-red control verdict
201
- per wave, recorded in `docs/LOOP.md`: a lane that has judged twice cannot be called always-yes,
202
- and the history that would show a bad lane lives across cards and repos.
203
- 33. **`LP-04` measures a changed evidence pointer, which is a proxy for progress — not progress.**
204
- Three consecutive verdict rows with an identical non-empty pointer and a result that is not
205
- `predicate:green` is a FAIL naming the row numbers, and that is the strongest thing a repo can
206
- read without running the loop. A loop that edits a file each turn to keep the pointer moving is
207
- not caught, and **nothing in Hermes detects a lack of progress either**: measured in
208
- `hermes_cli/goals.py`, `run_kanban_goal_loop` carries no progress state at all — its whole
209
- state is `last_response`, `turns_used` and `nudged_to_finalize`, so a loop that returns
210
- `continue` for the same reason nineteen times spends nineteen turns and then blocks
211
- (`hermes_cli/goals.py:1636-1638`, `:1689-1696`). So the budget is the backstop, and the budget
212
- has its own blind spots: `LP-03` proves the declared budget is a positive integer at or under
213
- `loop_max_turns_ceiling` and that the record holds no more verdict rows than the budget — it
214
- cannot see whether the budget is **affordable**, and cost is not a field the record holds
215
- (neither turns nor tokens nor the per-turn auxiliary judge call). Three further "not yets" are
216
- structural rather than measurable: `LP-01` proves a recorded first run exists and that its
217
- timestamp is at or before the first log row — **not that the command ran and not that the
218
- `exit=` value was measured rather than typed** (`HP-03`'s defect, one artifact over); `LP-02`
219
- proves the predicate file still hashes to its pin — **not that the predicate is the right one,
220
- and not who edited it**; and a predicate that was **vacuously true from the start** (a `grep -c`
221
- against a renamed directory) passes `LP-01` and `LP-02` and ends the loop green on nothing.
222
- `LP-05` makes a write-up mandatory and therefore visible — nothing can make it true.
151
+ 31. **The author↔eval loop is wired as a contract with no runner.** The authoring skill hands a
152
+ generated verification skill to the eval (`P12`) and `verified:` does not advance until an eval
153
+ record exists; the record's shape, the eleven-token ban, the cheap-checks-first ladder, the
154
+ merge rule and the pass condition (every seeded defect detected, the control's number at zero,
155
+ every correction RED before GREEN) were specified in `skills/goblin-eval/SKILL.md` — cut to
156
+ `attic/` in v3 (no row ever read it: dead weight), the spec preserved on that branch.
157
+ **No row reads a lane, and nothing executes an eval** — measured after W2,
158
+ `manifest/enforcement.tsv` has no `EV-*` row, and the eval has still never been run. The runner
159
+ and the record checks (`EV-01`..`EV-04` in G1's design) are deferred to a follow-up card,
160
+ deliberately and in the open, rather than half-built: a row that reads a record nobody writes
161
+ would pass vacuously and look like enforcement.
162
+ 32. **Withdrawn (v3).** The judge lane and loop record this item measured were removed in the
163
+ model/role/loop cut; the numbering is kept stable for the cross-references below.
164
+ 33. **Withdrawn (v3).** Same cut: `LP-*` and `JG-*` no longer exist.
223
165
 
224
166
  ## What the harness refuses to do
225
167
 
226
168
  It does not claim a green run means the work is right. `goblin-verify` asserts that the installed
227
169
  files are the files on disk, that every rule with a command still passes, and that the
228
170
  untestable remainder is counted and capped — and it prints, on every single run, what it cannot
229
- see: the five upstream blind spots, plus the ban lane's own (the unsigned ban table #28, the
230
- text-probe gap #27, and a ban that is invisible until verify runs, `V3-1`), plus the judge/loop
231
- lane's (#32: a handle that exists is not a handle that supports the verdict; #33: a changed
232
- pointer is a proxy for progress, not progress), plus the CI lane's (#34: a file is not a gate —
233
- the required-check list, the bypass switch and the push identity are forge state; #35: the
234
- Electron perf number is a host gate, and the ratchet deliberately carries a different metric).
171
+ see: the upstream blind spots, plus the ban lane's own (the unsigned ban table #28, the text-probe
172
+ gap #27, and a ban that is invisible until verify runs, `V3-1`) and the reference-corpus lane's own.
173
+ The CI lane is cut (#34: a file is not a gate — the required-check list, the bypass switch and the
174
+ push identity are forge state) and the footer names it NO LONGER: a run does not carry a blind spot
175
+ for a lane the product deleted. (The Electron perf number #35 is a host gate, and the ratchet
176
+ deliberately carries a different metric.)
235
177
 
236
178
  27. **The ban probes are text probes, not ASTs.** `BN-01`, `BN-02`, `BN-03` and `BN-05` are
237
179
  `grep` over source under `bash`/`grep`/`awk` only — the dependency contract in
238
- `docs/CONTRACTS.md` allows no parser and no `npm`. So a `: any` inside a string or a comment
180
+ `docs/GUIDE.md` allows no parser and no `npm`. So a `: any` inside a string or a comment
239
181
  is reported, `Record<string, any>` (no leading colon) is missed, and BN-05 does not resolve
240
182
  module aliases or dynamic imports. The AST-grade form of the same bans (BN-01..BN-04 in
241
183
  `G5.md` §C.2) needs ESLint and `dependency-cruiser`; that is why **G5's `BN-04` (the nine
@@ -247,8 +189,8 @@ Electron perf number is a host gate, and the ratchet deliberately carries a diff
247
189
  28. **The ban table's integrity rides on `IN-02`, and `IN-02` rides on an unsigned record.** A
248
190
  project could empty `manifest/bans.tsv` (or edit a `detect` command) and the ban gate would
249
191
  pass vacuously — `BN-00` fails closed on an *empty* table, but it cannot see a table whose
250
- rows were weakened, because `.goblin/manifest/bans.tsv` is hashed by `IN-02` and
251
- `.goblin/installed.json` is not signed (`docs/LIMITS.md` #18). The ban list is not
192
+ rows were weakened, because `.gob/manifest/bans.tsv` is hashed by `IN-02` and
193
+ `.gob/installed.json` is not signed (`docs/LIMITS.md` #18). The ban list is not
252
194
  tamper-proof; it is as strong as the record every drift check trusts. **Measured (W5-12):** with
253
195
  `BN-01`'s `detect` cell set to `true`, `BN-00` and `BN-01` both PASS and the only row that
254
196
  changes verdict is `IN-02`'s drift check — the `W5-12` control in `tests/t-verify-red.sh` pins
@@ -267,39 +209,34 @@ Electron perf number is a host gate, and the ratchet deliberately carries a diff
267
209
  new number together, and record it as an operator action), which is the deliberate re-anchor
268
210
  the row's own why-cell names. It is a bound on the budget's shape, not a claim that the
269
211
  budget is the right one — and it still never re-measures.
270
- 34. **The CI lane reads files, and a file is not a gate.** The shipped workflow
271
- (`templates/ci/goblin-gate.yml.tmpl` → `.github/workflows/goblin-gate.yml`) has no `if:` at any
272
- level, but nothing in a repository can make GitHub **require** it: the required-check list,
273
- the bypass switch and the push identity are forge state (four settings, `docs/CI.md` §1).
274
- `PG-06` proves the whole declared gate set is invoked in a file under `.github/workflows/` and
275
- cannot prove that file is the one the forge waits on; `PG-05`'s reader has no parser, so a
276
- flow-style `jobs: {…}` mapping is refused, and a `#` inside a quoted string truncates the line
277
- it is on. Two further measured gaps: the template's job is `ubuntu-latest` with no cache, so a
278
- repo whose gate needs a display, a licence, a GPU or a signed-in session cannot use it at all
279
- (that is a **host** gate — the class-C rule, restated for class F; **corrected 2026-10-02 (W6):**
280
- F is merged into `software`, so this is the electron opt-in), and a private repo's
281
- Actions minutes are billed to the account (2,000/month free). Measured ground truth at W4:
282
- **one** first-party workflow exists in the whole estate and it self-skips; five of the six
283
- repos with a remote have none.
212
+ 34. **Cut in v3: the CI lane reads files, and a file is not a gate.** The shipped
213
+ `goblin-gate.yml` template and the `PG-05`/`PG-06` readers are gone. The limit the lane named
214
+ stands as a fact about CI in general: nothing in a repository can make GitHub **require** a
215
+ workflow, and the required-check list, the bypass switch and the push identity are forge state.
216
+ A project that runs CI wires its own workflow; the harness ships none, and none of its rows
217
+ read one.
284
218
  35. **The Electron perf number is a host gate, and the ratchet carries a different metric.**
285
- `presets/F-electron.yaml` declares `main_thread_busy_pct` as `perf_host_gate:` and uses
219
+ The (now removed) Electron preset declared `main_thread_busy_pct` as `perf.host_gate:` and used
286
220
  `app_bundle_bytes` for `ratchet:` — a **deliberate deviation** from G6 §B.3, which put the FPS
287
221
  number in the ratchet. The instrument that produces it (CDP `Performance.getMetrics`, or
288
222
  `app.getAppMetrics()[i].cpu.percentCPUUsage` inside a real Electron) needs Playwright or
289
223
  Electron plus a GUI, and a shipped rule may use nothing but bash/git/awk/sed/grep/python3
290
- (`docs/CONTRACTS.md`) — so `ratchet.cmd` pointing at the probe would make a fresh install
224
+ (`docs/GUIDE.md`) — so `ratchet.cmd` pointing at the probe would make a fresh install
291
225
  **born RED**, which is the one thing the install path must not produce. The probe belongs to
292
226
  the project; a project whose CI needs npm runs it in **its own** workflow. What the number
293
227
  means has a limit of its own, and it is measured: this box is an LXC with no display and no
294
228
  system Chromium, so the G6 sweep came from a *bundled headless* Chromium with no compositor
295
229
  and no vsync. Relative comparisons on one machine are meaningful (which is why
296
230
  `main_thread_busy_pct` works at all, and why frame time does not — p50 stayed flat at 16.70 ms
297
- while the main thread went from 1.8 % to 54.5 % busy, `docs/CI.md` §3.3); an absolute FPS
298
- claim is not. Three further Electron failure modes are **recorded, not mechanised**, and
299
- `docs/CI.md` §4 says why: the dependency-graph boundary check, `ipcMain` sender validation,
300
- and fuses at package time. **Corrected 2026-10-02 (W6):** this preset is now
301
- `presets/electron-overlay.yaml`, rendered over `presets/software.yaml` by `--electron` (or the
302
- `desktop`/`F` install alias) — the old `F` class was merged into `software`.
231
+ while the main thread went from 1.8 % to 54.5 % busy, the W4 sweep); an absolute FPS
232
+ claim is not. Three further Electron failure modes are **recorded, not mechanised**: the
233
+ dependency-graph boundary check, `ipcMain` sender validation,
234
+ and fuses at package time. **Cut in v3:** the class presets and the `electron` overlay are
235
+ gone; the electron bans (`BN-06`..`BN-09`) ride the `dep:electron` PREDICATE in their
236
+ `applies_when` — they run only when `package.json` names electron under dependencies or
237
+ devDependencies, so a fresh non-Electron repo reports them not applicable rather than running
238
+ them off the harness's own shipped files (FIX 1 removed that false green) — and the only
239
+ off-switch is naming a ban in `bans_disabled:`.
303
240
  36. **A ban's exemption reaches the probe through its environment, so a custom probe can ignore it.**
304
241
  `bans_exempt:` and the inline `// BAN-OK(<id>): <reason>` are filtered *before* the exit code is
305
242
  chosen, because a filter applied to a probe's stdout afterwards cannot change a verdict — that
@@ -310,40 +247,21 @@ Electron perf number is a host gate, and the ratchet deliberately carries a diff
310
247
  choice makes. The engine's own stdout is no longer filtered at all, so a probe that ignores the
311
248
  contract prints the exempted lines it reported — loud, and still a FAIL.
312
249
  37. **`FM-02` refuses the harness, not every non-source file.** The search skips `.git/`,
313
- `.goblin/`, `.hermes/`, the declared `harness_dir` and the map's own directory, so a stub map
250
+ `.gob/`, `.hermes/`, the declared `harness_dir` and the map's own directory, so a stub map
314
251
  whose token occurs only in the install no longer resolves (W5-4: `entry_paths: [export]` used to
315
- "resolve" to `./.goblin/bin/goblin-verify`). It does **not** exclude the target's own `docs/`,
252
+ "resolve" to `./.gob/bin/goblin-verify`). It does **not** exclude the target's own `docs/`,
316
253
  `tests/` or build output: a token that occurs only there still reads as resolved, and excluding
317
254
  them would be a guess about a layout goblin-stack does not know. Nor is there a frequency bound
318
255
  — a common token ("export", "main") is satisfied by the first of hundreds of files.
319
- 38. **The judge lane's model family is reported, never enforced — and on this box it is not even
320
- mapped yet.** `JG-02` proves the declared profile *names* are disjoint; W5-6 measured that a
321
- profile mapped to the author's own model passed it. `MD-02` now resolves the judge lane and
322
- compares its model with the code lane's, so the state is loud — but it stays `advisory`
323
- (`return 2`, never a FAIL): goblin-stack cannot choose the fleet's models, and a repo-local file
324
- cannot observe *which* model a lane actually ran. Measured on this box at X1: Harvey's
325
- `fleet-model.yaml` names **no `judge:` profile at all**, so `MD-02` reports the judge lane
326
- **unresolved** and prints the one-line remedy, while every profile it *does* name — nine of
327
- them, the named per-fleet role profiles this setup routes its lanes through —
328
- resolves to one model under an active promotion. So on this box the honest reading is: the judge
329
- lane is not mapped, and the moment it is mapped it will be the author's own family. The
330
- comparison is exact model equality, not a version-stripped "family": two spellings of the same
331
- family that differ only in a suffix would read as different.
332
- 39. **`LP-02` cannot tell a weaker predicate from a re-scope. The close-and-reopen is recorded, not
333
- prevented.** A loop could archive its bar under `closed-<date>/`, write a weaker one, re-pin,
334
- and pass `LP-02` and `LP-05` with nothing in the record (W5-7, measured). The row now requires
335
- every archive to hold its predicate **and** the pin it was closed under, and the live
336
- `predicate.sha256` to name the archived digest on a `previous:` line — so a **silent** relaxation
337
- is caught and a legitimate re-scope costs one line. Whether the new predicate is weaker, and who
338
- edited it, is not decidable from a digest, and a predicate that calls a script elsewhere is
339
- pinned only at its call site. The residual is the same one `LP-01` carries one file over: the
340
- record is evidence, not proof that the loop stopped for the right reason.
256
+ 38. **Withdrawn (v3).** The judge-lane model comparison this item measured was removed in the
257
+ model/role/loop cut; the numbering is kept stable.
258
+ 39. **Withdrawn (v3).** Same cut: `LP-*` no longer exist.
341
259
  40. **A fresh install into a repo with no commits is born RED, and X1 did not change that.** Measured
342
- at X1: `goblin-install --class A` into a `git init` with zero commits, then `goblin-verify`, gives
343
- `37 passed, 6 failed, 11 advisory, 24 skipped`, exit 1 — `HP-05`, `SP-02`, `GT-02`, `CM-01`,
344
- `CM-03` and `PT-02` all read a HEAD that does not exist yet. The install never creates the seed
260
+ at X1: `goblin-install` into a `git init` with zero commits, then `goblin-verify`, gives
261
+ a fresh install into a repo with no commits is born RED — `HP-05`, `SP-02`, `GT-02`,
262
+ `CM-03` and others read a HEAD that does not exist yet. The install never creates the seed
345
263
  commit (`bin/goblin-install` writes files and stops), and it must not: a tool that commits into
346
- Harvey's repo on first contact is the overreach `docs/CONTRACTS.md` rules out. Carried from W5
264
+ Harvey's repo on first contact is the overreach `docs/GUIDE.md` rules out. Carried from W5
347
265
  §5's `G8-9` rather than fixed here — it is a **sequencing** limit, not a hole in a row: one commit
348
266
  clears all six, and `tests/t-verify-green.sh` seeds one before it installs.
349
267
  41. **Eleven of Y1 §7's eighteen documented mechanisms still carry no control of their own, and one
@@ -371,39 +289,32 @@ Electron perf number is a host gate, and the ratchet deliberately carries a diff
371
289
  this file's #36, where the FAIL is measured.
372
290
  - item 7 — `BAN-OK` must sit on the offending line: the marker's *effect* is controlled, the
373
291
  on-this-line clause is not (a marker on another line does not clear the violation).
374
- - items 8, 9 — `SC-05`'s `.goblin/boundary-waivers` and `SC-08`'s
375
- `.goblin/install-hooks.allowlist`: both files are copied and both FAIL directions are
376
- controlled; neither *honoured* direction is. (`SC-08`'s reader is the row the minified
377
- lockfile defeated — Z2-2; that was a shape, not this item, and it is fixed and controlled.)
292
+ - item 8 — `SC-05`'s `.gob/boundary-waivers`: the file is copied and both FAIL directions
293
+ are controlled; the *honoured* direction is not.
378
294
  - item 10 — `SC-03` clause 2, `sec_build_output`: a literal in `dist/assets` FAILs; only the
379
295
  clause-1 path is controlled.
380
296
  - items 11, 12, 15 — `scaffold_checks:`'s SKIP branch, `perf_host_gate` (#35) and
381
- `templates/loop/*.tmpl`: declared no-ops (SKIP, a host gate, and templates `docs/LOOP.md`
382
- says nothing installs). A control here would assert that nothing happens.
383
- - item 13 — `docs/CI.md`'s flow-style `jobs: {…}` refusal: fails closed already, so a control
384
- would pin the strict direction of a check that cannot pass vacantly.
385
- - item 14 — `bin/goblin-model`: works (`code` → the resolved lane, unknown role → exit 2);
386
- only its *absence* from an install is asserted.
387
- - item 16 — `docs/LOOP.md` §6's "one known-red control verdict per wave, recorded in this
388
- file": a prose obligation, not a command. It is honoured in the write-ups (or not) and no
389
- check can read a wave.
297
+ `templates/*.tmpl`: declared no-ops (SKIP, a host gate). A control here would assert that
298
+ nothing happens.
299
+ - item 13 — the cut CI lane's flow-style `jobs: {…}` refusal: it failed closed already, and
300
+ the lane is gone, so no control is owed.
390
301
  **W5-10 is answered here too.** The tenant strings `PT-01` forbids do not reach `docs/`, because
391
- `docs/` is never installed: the row's directory list is `skills manifest bin templates presets
392
- .goblin .hermes`, so a string under `docs/` is source-tree prose that no operator's repo ever
302
+ `docs/` is never installed: the row's directory list is `skills manifest bin templates`
303
+ .gob .hermes`, so a string under `docs/` is source-tree prose that no operator's repo ever
393
304
  receives. That is the whole reason, it is deliberate, and the row is not weakened by it — Y1
394
305
  agreed, and Z1 leaves it. This is the sentence Z1 added so the reason is visible in the shipped
395
306
  artifact rather than only in the wave's own notes.
396
307
 
397
308
  42. **The doc walk cannot read a path broken at the directory/name boundary.**
398
- `tests/t-doc-promises.sh` reads a command directory only as `.goblin/bin/` or `bin/` **with its
399
- trailing slash**; when a line ends on the bare directory (`.goblin/bin`, `bin`) and the slash
400
- leads the next line (`/goblin-doctor`) or is dropped (`goblin-doctor`), the directory and its
309
+ `tests/t-doc-promises.sh` reads a command directory only as `.gob/bin/` or `bin/` **with its
310
+ trailing slash**; when a line ends on the bare directory (`.gob/bin`, `bin`) and the slash
311
+ leads the next line (`/goblin-verify`) or is dropped (`goblin-verify`), the directory and its
401
312
  continuation are both invisible — the first fragment stops before the name the grammar needs, the
402
313
  second is not preceded by `bin/`, so neither is a token and neither is asserted. Measured
403
- 2026-09-26 (AB7): a plant of that form in `docs/CI.md` is reported **`PASS`, rc 0**, mentioning
314
+ 2026-09-26 (AB7): a plant of that form is reported **`PASS`, rc 0**, mentioning
404
315
  the plant **zero** times, and a line that ends on the bare directory with nothing after it is
405
316
  silent too, because the `dangling()` guard needs the trailing slash as well. **0 live instances**
406
- — measured: `grep -rnE '\.goblin/bin$|bin/$' $(git ls-files)` → **no output, exit 1**. **What it
317
+ — measured: `grep -rnE '\.gob/bin$|bin/$' $(git ls-files)` → **no output, exit 1**. **What it
407
318
  costs:** a false path written in that form — the exact defect this file's whole species is named
408
319
  for — passes the watch silently, so a future document could hand a reader a command that does not
409
320
  exist and nothing in the walk would say so. **Ticketed, not gated:** reading the form is a change
@@ -481,58 +392,27 @@ the Node the gates ran under.
481
392
  version a rule — which is a real option, not done here. Until then the guarantee is
482
393
  development-time only: green in this checkout, unverifiable in the wild.
483
394
 
484
- 45. **The migration is crash-safe by sequence, not by journal — a kill mid-upgrade leaves a shape
485
- only three of which are detected.** `goblin upgrade` runs eight steps across two commits, and
486
- the spec's refusal conditions name the shapes a crashed run can leave: record says global but
487
- the 18 files are still here (R8 catches it), the record lost its engine: block entirely (R9
488
- catches it), commits half-landed (the preflight's own state resolution). What is NOT caught:
489
- a crash between the engine landing (step 3) and commit A (step 4) leaves `~/.goblin/engine`
490
- written but the repo untouched — harmless, invisible, and never re-verified (the next upgrade
491
- run compares hashes and refuses R6 if the payload has since changed, so the stale engine can
492
- sit there being wrong until someone looks). And the shadowing footer (W3 §3) reads only the
493
- vendored-payload shape; a repo whose engine_dir points at an engine that no longer exists
494
- FAILs the resolution chain loudly (exit 2), but a repo pointing at an engine whose bytes have
495
- silently changed since migration day runs green on the drifted table — the footer's hashes
496
- name what ran, nothing compares them to migration day's. **Ticketed, not gated:** a
497
- migration-day hash pin in the record compared per-run is the real fix and is a row-shaped
498
- change (a new IN clause), not a W3 patch. Measured: R6 refuses the wrong-engine reuse, R8/R9
499
- catch the two crash shapes they name, and the between-steps engine write is unwatched.
500
-
501
- 46. **The emitted platform config is unsigned and hand-editable — DRIFT is detected per run,
502
- never prevented.** `goblin emit` writes skills byte-copies and one delimited block in the
503
- platform's context file, recorded in `~/.goblin-stack/emissions.tsv` with pre-image hashes
504
- (so `--uninstall` restores byte-exactly), but nothing signs what it writes: an edit to an
505
- emitted `SKILL.md` or to the bytes inside the `goblin-stack:begin/end` block makes the
506
- platform's `verify.sh` oracle report DRIFT on the next `goblin doctor` run — and that is
507
- all it does. There is no lock, no signature, and no write protection on any emitted file;
508
- a platform (or the user) can change them between two doctor runs and nothing notices
509
- until someone runs one. The same holds for `--unshadow`: it removes only project copies
510
- whose hash equals the source payload and refuses-and-names any that differ, so a real
511
- local edit survives, but nothing reconciles it either. Measured: a one-byte tamper in an
512
- emitted `SKILL.md` and a stale marker VERSION in the context block each report DRIFT (exit
513
- 1) on the next run, and uninstall refuses to delete a recorded file whose bytes no longer
514
- match its post-image (R6).
515
-
516
- 47. **The four W4b adapter conventions are documented shapes, not run-probed installs — and
517
- two of the seven platforms cannot block commands outright.** cursor and codex are not
518
- installed on the build machine, so their rows pin the official docs (read 2026-09-29),
519
- not a live CLI; a platform changing its layout invalidates the adapter silently until a
520
- doctor DRIFT names it. codex and gemini report cap_command_blocking `partial` — codex
521
- disables skills via `~/.codex/config.toml` `[[skills.config]]`, gemini only narrows via
522
- approval modes — so an emitted skill is *available* there even when the operator would
523
- forbid it; the doctor prints the codex hooks caveat (sessionStart only). And gemini's
524
- id cell was measured to be exactly its platform name (the `gem_ini` typo shipped in one
525
- W4b build and the doctor's DRIFT caught it — the schema check works).
395
+ 45. **Cut in v3: the `gob upgrade` migration.** The 0.4.4 per-repo → global-engine migration is
396
+ removed; `init --write` re-pins a repo in place. The crash-safety limitation it carried (its
397
+ safety was sequence-ordered, not journalled) retires with the command.
398
+
399
+ 46. **Cut in v3: the platform-emit surface.** The adapter tree and the emit engine are gone; no
400
+ per-platform skills or context blocks are emitted; the harness stays repo-neutral. The
401
+ unsigned, hand-editable emitted-config limitation retires with the engine.
402
+
403
+ 47. **Cut in v3: the adapter conventions.** The seven near-duplicate adapter verify/detect
404
+ scripts are gone with the platform-emit surface; the neutral harness plus the core skills
405
+ carry the per-platform story now.
526
406
 
527
407
  48. **`SP-01`'s rule text once overclaimed; it now states the check's actual scope.** The text
528
408
  used to read "The current round has a SPEC" while the check is
529
409
  `ls ./*-SPEC.md >/dev/null 2>&1`, which passes on ANY spec-shaped file at the repo root. The
530
- measured consequence: a fresh class-A install ships the scaffold's `ROUND-000-SPEC.md`, and
410
+ measured consequence: a fresh default install ships the scaffold's `ROUND-000-SPEC.md`, and
531
411
  `SP-01` PASSes on that scaffold alone — no round is open, and the row is green anyway. A stale
532
412
  spec from a finished round keeps satisfying the row exactly as well as a live one, because the
533
413
  check has no notion of "current". **Fixed in W6 (text, not check):** the row now reads
534
414
  "A *-SPEC.md file exists at the repo root (any round, not the current one - round-scoping
535
- arrives with the W6 staged chain)" — manifest and `docs/ENFORCEMENT.md` re-rendered in the
415
+ arrives with the W6 staged chain)" — manifest and `docs/GUIDE.md` re-rendered in the
536
416
  same commit, the check cell untouched. What it costs: the SPEC-exists signal in a run summary is
537
417
  weaker than a round-scoped claim would suggest — read it as "a `*-SPEC.md` file is present", not "this round's spec is
538
418
  here". Measured: `goblin-verify` on a fresh probe install reports `PASS SP-01 (ls
@@ -549,64 +429,50 @@ the Node the gates ran under.
549
429
  friction: a script that treats every stdout line as a verdict line trips on the banner and
550
430
  footer lines, which are not `PASS`/`FAIL` rows. The contract is the EXIT CODE, never the line
551
431
  set: 0 green, 1 red, 2 refuse — parse the exit code, or filter to `^[A-Z]{2}-[0-9]{2}` before
552
- reading lines. Measured: `./.goblin/bin/goblin-verify > out.txt` on a probe install puts
432
+ reading lines. Measured: `./.gob/bin/goblin-verify > out.txt` on a probe install puts
553
433
  `engine: mode=vendored cli_sha256=… enforcement_tsv_sha256=…` in the captured file
554
434
  (`tests/t-engine-dir.sh` itself asserts the footer IN captured output, so removing it or
555
435
  tty-gating it would break the engine's own suite). Recorded so the pitfall is findable from
556
436
  this file; no change to the engine is implied or wanted.
557
437
 
558
- 50. **`CM-01` reads only the most recent commit — historical commits with a wrong identity pass
559
- unseen. Current stated scope: the row gates the identity of HEAD at the moment of the run,
560
- and nothing older; that is the row's whole claim, by design.** The check is
561
- `test "$(git log -1 --format='%ae')"` against the configured
562
- `owner_email`, so it gates the identity of HEAD at the moment of the run and nothing older.
563
- Measured: a probe history `owner → wrong@old.co → owner` reports `--only CM-01` clean (exit 0)
564
- with the wrong-identity commit sitting one below HEAD. That is consistent with the
565
- gate-at-the-moment design — every row judges the tree and history as they stand when verify
566
- runs, and retrofitting an identity sweep over `git log --all` is a policy change, not a bug
567
- fix — but it should be named: the row's green means "the latest commit carries the owner
568
- identity", never "no commit in this repo's history carries an ambient one". A wrong-identity
569
- commit that has since been followed by correct ones is invisible to every run. Recorded as a
570
- boundary; no row change implied. `docs/ENFORCEMENT.md`'s CM-01 row carries the same one-line
571
- scope statement.
572
-
573
- 51. **`gob init` writes its three added values into `goblin.yaml` itself, not through a
574
- template.** Install renders `.goblin/goblin.yaml` from `templates/goblin.yaml.tmpl` and
575
- owns it (`put_once`: never rewritten after the first install) — and install correctly
576
- carries no `--branch/--email/--gate` flags, because those keys are the project's to edit.
577
- The wizard therefore `sed`-patches `branch:` and `owner_email:` and rewrites the first
578
- gate's `cmd:` line right after install renders the file, fail-closed: the gate must read
579
- back through the engine's own `g_yaml_gates` or the run stops. The cost is a second
580
- writer for exactly those three lines: a hand-customised comment placement survives, but a
581
- future template change to those lines' shapes (renamed keys, a multi-gate default) must
582
- be mirrored in `bin/goblin-init`. The wizard never rewrites anything outside the declared
583
- keys, and a re-run after a hand edit of another line leaves that line alone. Recorded as
584
- a boundary; the alternative — teaching install three wizard-only flags — would put wizard
585
- vocabulary into the installer's contract for no gain.
438
+ 50. **Cut in v3: the owner-identity and declared-branch rows.** `CM-01` (commits carry the owner
439
+ identity) and `PT-02` (the default branch is declared, not assumed) are removed, with their
440
+ `owner_email:` / `branch:` config keys. The gate reads git directly, so neither is worth
441
+ asking a human for: a verify run that needs the current branch or the commit author can read
442
+ both from `git`. The old `CM-01` limit — it gated only the identity of HEAD, so historical
443
+ commits with a wrong identity passed — is recorded here rather than mechanised, and `GT-03`'s
444
+ freshness check still reads HEAD's reflog.
445
+
446
+ 51. **`gob init` merges its proposal keys into the `AGENTS.md` gob block itself, not through a
447
+ template.** Install renders the `AGENTS.md` gob block from `templates/AGENTS.md.tmpl` and
448
+ owns it (`put_once`: never rewritten after the first install), and install carries no
449
+ `--gate`/`--feature-map` flags, because those keys are the project's to edit. The wizard
450
+ therefore merges the proposal's first gate (and its `feature_map:`) over the installer's
451
+ default keys right after install renders the file, fail-closed: the gate must read back
452
+ through the engine's own `g_agents_gates` or the run stops. The cost is a second writer for
453
+ exactly those keys: a hand-customised comment placement survives, but a future template
454
+ change to those lines' shapes must be mirrored in `bin/goblin-init`. The wizard never
455
+ rewrites anything outside the declared keys, and a re-run after a hand edit of another line
456
+ leaves that line alone. Recorded as a boundary; the alternative — teaching install
457
+ wizard-only flags — would put wizard vocabulary into the installer's contract for no gain.
586
458
 
587
459
  52. **`scope:source` and `scope:target` name WHOSE burden a row carries — the framework's or
588
460
  the adopting repo's.** `scope:source` is goblin-stack's own proof burden: those rows
589
- (`PR-01`..`PR-05`) are the framework testing ITSELF while it is being developed — they run
461
+ (`PR-01`..`PR-04`) are the framework testing ITSELF while it is being developed — they run
590
462
  in this repo, under `tests/run-tests.sh`, and a dev of goblin-stack is the one who owes the
591
463
  run. `scope:target` is the adopting repo's proof burden: those rows run in an installed
592
464
  repo via `goblin-verify`, and the repo's owner owes the run. Same matrix, two creditors:
593
465
  a source row can never fail a user's repo, and a target row can never substitute for the
594
- framework's own suite. Recorded as a definition; `docs/ENFORCEMENT.md`'s scope paragraph
466
+ framework's own suite. Recorded as a definition; `docs/GUIDE.md`'s scope paragraph
595
467
  carries the same sentence for the reader who arrives there first.
596
468
 
597
- 53. **The sixth class is gone: the desktop shell is `software` + `electron: true`, and `A`..`E` are
598
- read-time aliases.** W6 merged `F` into `software` because their `manifest/classes.tsv` need
599
- columns were measured identical on all ten parts — the old column added config (the electron
600
- `bans:`, the `perf.host_gate:`, the `app_bundle_bytes` ratchet, the `dist out release`
601
- build-output scope), never a part. Measured on the merge tree (2026-10-02): the tsv is 50 rows
602
- over five classes; `gob init --class desktop`, `--class F` and `--class software --electron`
603
- render byte-identical `goblin.yaml` (`class: software`, `electron: true`); and a pre-merge repo
604
- carrying `class: F` with no `electron:` key verifies unchanged, `38 passed, 0 failed, 11
605
- advisory, 33 skipped`, exit 0, with `git status --porcelain` empty — zero writes, because its
606
- bans and host gate live in its own config. What this costs, recorded rather than fixed: such a
607
- repo gets the merge's declaration-time host-gate check only after hand-adding `electron: true`;
608
- its bans and host gate keep running either way, so nothing fails closed, and the CLI keeps
609
- accepting `desktop`/`F` as aliases.
469
+ 53. **Cut in v3: the class taxonomy and the presets.** The five class names (`software`,
470
+ `service`, `game`, `research`, `fleet`), the `A`..`E` letters, the older `app`/`agent`/`desktop`
471
+ aliases, the `presets/` yaml files, `manifest/classes.tsv` and the `--class` / `--electron`
472
+ flags are all removed. A class only ever selected which parts were required and which bans ran;
473
+ the parts default on (opt out by name with `--opt-out`), and a ban self-selects by its
474
+ `applies_when` glob. The installer renders ONE default config block; there is no taxonomy left
475
+ to render it from, and no reader has to choose a category before installing.
610
476
 
611
477
  54. **The vendored engine wins over a global `engine_dir` by design, and in v2 that is the
612
478
  whole story.** The resolution chain (goblin-verify §"engine resolution") puts
@@ -617,18 +483,124 @@ the Node the gates ran under.
617
483
  pin closes silent re-pinning — the rules a repo is judged by must be the rules its own
618
484
  install record hashes, and any change to them is a diff the repo owner reviews. The
619
485
  corresponding suite (`t-engine-dir.sh`) is deleted with the v2 surface cut rather than
620
- migrated: v2 has no `upgrade` command to move a global engine under a repo, and the
486
+ migrated: v3 ships no command to move a global engine under a repo, and the
621
487
  global-engine lane itself is session-2/3 scope — when it returns it returns re-measured
622
488
  against the AGENTS.md frontmatter shape.
623
489
 
624
- 55. **CI is out of the v2 product, and `docs/CI.md` is its LIMITS candidate, not a kept promise.**
625
- v2 installs nothing under `.github/` — the `ci-gate` part carries `-` for every class in
626
- `manifest/classes.tsv` (kept as the recorded W4 remnant), `PG-05`/`PG-06` SKIP with no
627
- workflow to read, and no flag configures the lane. The file that carried the lane's contract
628
- (`docs/CI.md`: the four forge settings that make a workflow a gate, the Electron perf
629
- deviation) still exists in the checkout as REFERENCE — the argument it makes ("a required
490
+ 55. **CI is out of the product, and its reference doc is deleted.** The install writes nothing under
491
+ `.github/` — the `ci-gate` part is off — and the `PG-04`/`PG-05`/`PG-06` rows are cut. The doc that carried
492
+ the lane's contract (`docs/CI.md`) is deleted with them; the argument it made (a required
630
493
  check that reports Success after skipping its gate is a green light for a commit whose gate
631
- never ran") is about CI in general and survives the cut — but no document the README's table
632
- promises sends a reader there, and the lane returns with the CI surface in a later alpha or
633
- not at all. What this admits: the verifier's "cannot see" footer still names the CI lane's
634
- blind spots, for the day the lane comes back re-measured.
494
+ never ran) is about CI in general and is preserved in this entry. What this admits: the
495
+ verifier's "cannot see" footer NO LONGER names the CI lane — it names the ban and
496
+ reference-corpus lanes only, because a lane the product cut is not a blind spot a run carries.
497
+ 56. **The repo-local override is a discovery surface, and a machine-trust boundary.** A row turned
498
+ on through `.gob/manifest/enforcement.local.tsv` runs exactly like a built-in row, and that file
499
+ is a repo's own data: it is not part of the shipped matrix, so `IN-03` (the matrix self-check)
500
+ does not read it, and nothing signs it — a repo can carry a local row whose check is a no-op, the
501
+ same blind spot `.gob/installed.json` has (docs/LIMITS.md #18, one table over). What the honesty
502
+ gate *does* hold is mechanical and narrow on purpose: a local row that names no check the engine
503
+ can run (an id in neither the matrix nor the library, a `goblin-verify --only <ID>` marker with no
504
+ builtin, a check that cannot execute, or a bare id with no check cell) is refused at exit 3, so a
505
+ repo cannot add a rule that *nothing* verifies. It cannot judge whether a local check tests the
506
+ right thing — no row here can.
507
+
508
+ ---
509
+
510
+ ## The guard rails — the security and perf rows
511
+
512
+ `manifest/enforcement.tsv` is the machine-readable form; this is the prose for the ten rows it
513
+ gained in v0.2 (`SC-01`..`SC-09`, `PF-01`). Every one of them is **declared** in
514
+ the `AGENTS.md` gob block under `security:` and `perf:` - a stack-specific rule guessed from the
515
+ files on disk is how a matrix starts lying, so nothing here infers a stack.
516
+
517
+ ### The rung ladder, and the rule for choosing a rung
518
+
519
+ (a) lint rule / static check > (b) script gate > (c) CI job > (d) runtime check > (e) prose
520
+
521
+ The rung is chosen by **what can observe the failure**, not by what is cheapest to write, and the
522
+ rung below must be *demonstrably unable* to see it - the reason is recorded in the row's
523
+ `if_not_why` cell. Three constraints shaped the design, and all three are pre-existing:
524
+
525
+ 1. **No network at verify time.** `README.md` K4: a network call at verify time breaks the
526
+ offline dependency contract. A row that needs the network is not a verify-time row.
527
+ 2. **`enforced_by` is a closed enum** (`script`, `lint`, `gate`, `advisory`) and `check` is one of:
528
+ a real command, the literal `advisory`, or `goblin-verify --only <ID>` for a multi-line body.
529
+ Every row here obeys that, and `IN-03` fails the manifest otherwise.
530
+ 3. **`advisory_ceiling` is 10 and the labelled count is 0.** The matrix labels no row
531
+ `advisory`, and the ceiling caps that count at **0 of 10** — every advisory row moved to the
532
+ library (off by default), so a default run spends no slot. **Corrected 2026-10-10 (v3).** Nothing else in this lane is
533
+ prose dressed as a check.
534
+
535
+ ### T1 - secrets and the config surface (`SC-01`..`SC-04`)
536
+
537
+ All four are rung (a)/(b): one shell line or a small builtin, and all four are RED-able.
538
+
539
+ | row | what it proves | how it proves it |
540
+ |---|---|---|
541
+ | `SC-01` | no secret file is tracked | `git ls-files` over the `.env`/`.pem`/`.key` family (`.example`/`.sample`/`.template` excluded) |
542
+ | `SC-02` | the ignore rules cover the **whole** family | clause 1 reads `.gitignore`; clause 2 asks git's own matcher, `git check-ignore -q`, once per path - a rule that looks right but does not match still fails |
543
+ | `SC-03` | no client-visible name is secret-shaped, and no build output carries a secret literal | the `NEXT_PUBLIC_*_(SECRET\|TOKEN\|KEY\|PASSWORD\|PRIVATE)` name pattern over source, then known secret prefixes (`sk-`, `ghp_`, `AKIA`, `eyJ`) over `security.build_output` |
544
+ | `SC-04` | every cookie write carries its flags | `document.cookie =` needs `secure` + `samesite` in the same statement; `cookies().set(` / `res.cookie(` need `httpOnly` + `sameSite` |
545
+
546
+ `SC-02` ships a real control rather than being assumed, because the honest baseline is GREEN: a
547
+ fresh install writes the family into `.gitignore` (`sec_gitignore_family: yes`), and the control
548
+ proves the row would notice the day a hand edit narrows it.
549
+
550
+ **A JS-written cookie is readable by any script.** `SC-04` *reports* that; it does not fail on it.
551
+ That is a design fact about the product, not a bug, and a matrix that failed on it would be wrong
552
+ about the thing it was measuring.
553
+
554
+ ### T2 - input boundaries and dependencies (`SC-05`..`SC-06`)
555
+
556
+ | row | what it proves | the limit it states |
557
+ |---|---|---|
558
+ | `SC-05` | every write route calls a validator, or is waived | it proves a validator is *called* (`safeParse\|zod\|valibot\|yup\|ajv\|superstruct\|validate(`), never that the schema is right - a schema that accepts everything passes |
559
+ | `SC-06` | a lockfile exists and is tracked | it cannot see that the lockfile is *stale* relative to `package.json`: resolving that needs the package manager, which is a deliberate network-shaped step |
560
+
561
+ ### T3 - the performance budget (`PF-01`, plus the ratchet)
562
+
563
+ The budget **is** `GT-04`/`GT-05`, unchanged: `ratchet.name` is the metric, `ratchet.cmd` is the
564
+ one command that produces it, `ratchet.ceiling` is the measured baseline, and `GT-05` prints
565
+ `old <n> + <delta> new = <n>` when the number rises. **No second mechanism, no new key for the
566
+ number.**
567
+
568
+ | project shape | metric | command | hermetic? |
569
+ |---|---|---|---|
570
+ | web app (Next) | total client JS bytes | `find .next/static -type f -name '*.js' -exec cat {} + \| wc -c` | yes |
571
+ | SPA (Vite) | bundle JS bytes | `find dist/assets -type f -name '*.js' -exec cat {} + \| wc -c` | yes |
572
+ | component lib | published bytes | `find dist -type f -exec cat {} + \| wc -c` | yes |
573
+ | service/config | own build bytes, plus host latency | `find dist -type f -exec cat {} + \| wc -c` · `curl -w '%{time_total}'` | size yes, latency **no** |
574
+ | game | build bytes, plus host frame time | as web app · Editor run | size yes, frame time **no** |
575
+ | none declared | none | - | - |
576
+
577
+ `find ... -exec cat {} + | wc -c` is used rather than `du` because `du` reports block sizes and is
578
+ not deterministic across filesystems. Raw bytes are the *reported* number and are the only one
579
+ that is ratcheted: a gzip figure changes with the compressor, so it is a report, never a ceiling.
580
+
581
+ **The default config ships this metric** (`client_js_bytes`), and the TODO count that used to be
582
+ the ratchet moved into a **gate** (`todo_ceiling`, `-le 160`): a shipped-software round is
583
+ supposed to move the perf number, and the TODO ceiling is a floor against decay, not the budget.
584
+ A fresh install measures `0` for a repo with no build output, so the number is honest from the
585
+ first commit and gets re-anchored deliberately.
586
+
587
+ **Re-anchoring is deliberate, never automatic.** When a round legitimately raises the number, the
588
+ operator re-runs the command, writes the new `ceiling`, and writes the matching
589
+ `perf.baseline_value`/`baseline_commit`/`measured`. `PF-01` is the row that stops "I raised the
590
+ ceiling" from silently becoming "I never measured again": a baseline whose commit does not resolve
591
+ to an ancestor of `HEAD` is a RED.
592
+
593
+ `PF-01` **skips with a reason** when no metric is declared (`perf.metric` empty) or when no
594
+ baseline has been recorded yet - because a row that is RED on every fresh install teaches people
595
+ to ignore it. The skip names the command to run.
596
+
597
+ ### What this lane cannot see
598
+
599
+ - **A local byte count is not a real user's device.** It says nothing about parse/execute time on
600
+ a mid-range phone, a cold cache or a slow network - and nothing about what the bytes do. A
601
+ 700 KB bundle that does nothing is better than a 200 KB one that blocks the main thread.
602
+ - **Frame time, idle CPU, memory growth and latency are host gates**, named as such in
603
+ `perf.host_gate` and in `gates:` - never hermetic ratchets.
604
+ - **A perf budget cannot see a layout thrash or a re-render per keystroke.** Only a frame-time
605
+ measurement can, and that is a host gate.
606
+ - **No automation has ever run against a real board here.** Cost per run is unmeasured.