@techgoblin/gobstack 0.6.0-alpha.4 → 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 +249 -116
  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 +345 -259
  8. package/bin/goblin-install +269 -213
  9. package/bin/goblin-lib.sh +63 -66
  10. package/bin/goblin-map +130 -579
  11. package/bin/goblin-mcp.js +9 -14
  12. package/bin/goblin-verify +249 -993
  13. package/bin/goblin.js +4 -9
  14. package/docs/GUIDE.md +724 -179
  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 +11 -67
  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 -365
  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 -218
  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/GUIDE.md CHANGED
@@ -3,7 +3,7 @@
3
3
  A step-by-step guide for your first week. **Read this before the README.** The README tells you
4
4
  what the pieces are; this tells you what to *do*, in order, and what you should see when it works.
5
5
 
6
- Version: `0.6.0-alpha.4` · Last measured: 2026-10-09 · Every command and every output below was run on a
6
+ Version: `0.6.0-beta.1` · Last measured: 2026-10-09 · Every command and every output below was run on a
7
7
  real repository while writing this guide.
8
8
 
9
9
  ---
@@ -58,8 +58,8 @@ Everything else in gobstack follows from that sentence. If you remember one thin
58
58
  guide, remember that one — it is also the standard the harness holds itself to, and the reason it
59
59
  ships a file of things it *cannot* check (`docs/LIMITS.md`).
60
60
 
61
- **Words this guide uses** — gate, ratchet, class, part, replay and the rest are defined in one
62
- sentence each in `docs/GLOSSARY.md` (rendered from the glossary table the install ships:
61
+ **Words this guide uses** — gate, ratchet, part, replay and the rest are defined in one
62
+ sentence each in `README.md` (rendered from the glossary table the install ships:
63
63
  `.gob/manifest/glossary.tsv`).
64
64
 
65
65
  ---
@@ -71,8 +71,7 @@ sentence each in `docs/GLOSSARY.md` (rendered from the glossary table the instal
71
71
  | | |
72
72
  |---|---|
73
73
  | `bash`, `git`, `awk`, `sed`, `grep`, `python3` | already on any Linux/macOS box |
74
- | a project that is a **git repository** | `git status` must work; the harness reads commit identity |
75
- | a branch named the same as the one you declare | see step 3 — a `master`/`main` mismatch is the most common first failure |
74
+ | a project that is a **git repository** | `git status` must work; the harness reads commit history |
76
75
 
77
76
  You need node ≥ 18 (for the npm shim only), beyond the row above.
78
77
 
@@ -109,21 +108,18 @@ and installs:
109
108
 
110
109
  gob init --heuristic # the brief + schema; --heuristic adds scanned hints
111
110
 
112
- The brief asks for exactly four decisions — class, branch, owner email, and ONE gate command
111
+ The brief asks for one decision — the gate command — plus the mandatory feature map
113
112
  that proves the repo is healthy. Write them into the proposal file (the brief names the schema;
114
113
  a hand-written one works fine):
115
114
 
116
115
  <!-- gob:begin (gobstack config — edit in place; the parser reads only this block) -->
117
- class: software
118
- branch: main
119
- owner_email: you@example.com
120
116
  gate_check_cmd: bash tests/run-tests.sh
121
117
  <!-- gob:end -->
122
118
 
123
119
  ## gob init summary
124
120
 
125
121
  - scan: bare repo, no package.json — the brief was answered by hand
126
- - chose: class software, branch main, gate `bash tests/run-tests.sh`
122
+ - chose: gate `bash tests/run-tests.sh`, a one-feature map
127
123
 
128
124
  then install it:
129
125
 
@@ -131,15 +127,15 @@ then install it:
131
127
 
132
128
  Expected output (this is a real transcript, trimmed):
133
129
 
134
- created 23 · updated 0 · unchanged 0 · skipped 0
130
+ created 22 · updated 0 · unchanged 0 · skipped 0
135
131
 
136
132
  next:
137
- 1. cd /tmp/gs-try && git add -A && git commit # the install is a change like any other
138
- 2. .gob/bin/goblin-verify # or add .gob/bin to PATH
139
- 3. edit AGENTS.md: replace the default gate with your real commands (P8 step 3)
140
- 4. agent skills are opt-in (the per-platform emit surface returns in a later alpha)
133
+ 1. cd /tmp/gs-try && git add -A && git commit # the install is uncommitted by design
134
+ 2. .gob/bin/goblin-verify # re-runs the gate the config declares; green on a fresh repo
135
+ 3. the gate is the one you declared and gob init measured (test: bash tests/run-tests.sh); edit AGENTS.md's gate_ keys when it changes
136
+ 4. the core goblin tier ships under .gob/skills/ by default; the .hermes/ project tier is opt-in: re-run with --skills yes
141
137
 
142
- **`created 23`** is the installer's count of the files it **tracks**. It writes **24**: the 24th
138
+ **`created 22`** is the installer's count of the files it **tracks**. It writes **23**: the 23rd
143
139
  is `.gob/installed.json`, the record it keeps for itself, which it writes but does not count. It
144
140
  has written nothing outside this directory — and nothing under `.github/`: **v2 installs no
145
141
  CI, ever.** The default install ships **no agent skills** — the harness is neutral.
@@ -148,19 +144,6 @@ CI, ever.** The default install ships **no agent skills** — the harness is neu
148
144
  harness reads lives in the `<!-- gob:begin --> … <!-- gob:end -->` marker block at the top of
149
145
  `AGENTS.md`. Edit it in place; the parser reads only that block.
150
146
 
151
- ### Why `git init -b main` matters
152
-
153
- The harness **declares** your default branch rather than assuming it (rule `PT-02`). If your repo's
154
- branch is `master` and the config says `main`, verify fails on the very first run:
155
-
156
- FAIL PT-02 declared main, actual master
157
-
158
- That is not a bug — it is the harness refusing to guess, which is the same reason it fails instead
159
- of silently skipping a repo whose branch it got wrong. **Fix it in the AGENTS.md block, not by
160
- renaming your branch** (unless you want to).
161
-
162
- ---
163
-
164
147
  ## 4. Step 2 — Commit, then verify (the moment it earns its keep)
165
148
 
166
149
  cd /tmp/gs-try
@@ -170,14 +153,14 @@ renaming your branch** (unless you want to).
170
153
  You will see one line per rule. The shape:
171
154
 
172
155
  PASS IN-01 the install record exists and names its version
173
- PASS IN-02 15 installed files hashed
156
+ PASS IN-02 20 installed files hashed
174
157
  FAIL HP-05 HANDOFF.md names no commit that exists in this repo
175
- SKIP HS-02 no pinned pre-change commit yet - the REPLAY is not provable
176
- ADV HP-04 A stale sentence is corrected in place... (advisory)
158
+ SKIP FM-01 feature_map: is empty - this state is UNREACHABLE ...
159
+ SKIP BN-06 No renderer with Node access ... (not applicable: no package.json, so nothing declares electron)
177
160
 
178
161
  and a summary line at the bottom:
179
162
 
180
- 36 passed, 1 failed, 11 advisory, 34 skipped # HP-05, below
163
+ 16 passed, 1 failed, 0 advisory, 10 skipped # the HP-05 placeholder, before you name a real commit
181
164
 
182
165
  ### How to read that output
183
166
 
@@ -189,28 +172,27 @@ and a summary line at the bottom:
189
172
  | `ADV` | advisory — a rule with no runnable check, **counted** | nothing, but know it is not enforced |
190
173
 
191
174
  **`SKIP` is not success and not failure.** It is the harness telling you the truth: "this rule has
192
- nothing to read yet." On a brand-new install, three dozen rows skip — because there is no `src/` for a
193
- ban to scan, no feature map, no loop record, no pinned pre-change commit. That is correct on day
175
+ nothing to read yet." On a brand-new install, ten rows skip — because there is no `src/` for a
176
+ ban to scan, no feature map, no pinned pre-change commit. That is correct on day
194
177
  one. The list of what is still skipping *is* your onboarding checklist.
195
178
 
196
- ### Feature maps: generate with `gob map`, then opt in
197
-
198
- The feature-map rows (`FM-01`, `FM-02`) are opt-in by declaration: while `feature_map:` in the
199
- AGENTS.md gob block is empty, both rows SKIP. When you are ready to keep a map honest, the flow
200
- is:
201
-
202
- 1. **Generate a starter.** `gob map --heuristic` works in any git repo — no install needed. It
203
- scans the repo (Next.js app/pages router, Nuxt, route files, or top-level `src/`/`lib/`
204
- module dirs as TODO placeholders) and writes `features/README.md` plus one file per detected
205
- feature. It never clobbers: an existing `features/` refuses until `--force`, which regenerates
206
- only the index and adds new slugs — your hand-edited feature files are never rewritten.
207
- 2. **Hand-pass every file.** The generated files say so themselves: a `verified: never-driven
208
- (generated <date>)` line is not a drive claim. Edit each one into a real feature description
209
- with concrete entry paths and driving steps.
210
- 3. **Then, optionally, declare it.** Set `feature_map: features/README.md` in the AGENTS.md gob
211
- block and `FM-01`/`FM-02` start reading it on every verify — that declaration is the
212
- verify opt-in, never forced. A repo that wants the generator but not the rows can run
213
- `gob map` and never declare anything.
179
+ ### Feature maps: authored in the `gob init` proposal, mandatory
180
+
181
+ The feature-map rows (`FM-01`, `FM-02`) are always live: `feature_map:` is a REQUIRED key, so
182
+ there is no "no map declared" state and no standalone generator. The map is authored in the SAME
183
+ pass as the install — the `gob init` brief's `## feature-map` section asks the agent to embed the
184
+ files in the proposal: a `### features/README.md` index and one `### features/<slug>.md` per
185
+ feature, each in a fenced block. `gob init --write` validates the whole map before it writes
186
+ anything, then materialises `features/`.
187
+
188
+ Per feature file: frontmatter with `feature:` equal to the filename stem, >=1 `entry_paths:`
189
+ item (each a single whitespace-free token), and exactly the four H2s in order — `Sub-features`,
190
+ `How to get to it (user POV)`, `Driving it with <harness>`, `Gotchas`. The README index must link
191
+ every feature as `(./<slug>.md)` and every relative link must resolve. `--write` resolves every
192
+ entry path at write time: it must EXIST and be TRACKED (`git ls-files`), so a map cannot claim a
193
+ `verified:` date over uncommitted source — `verified: never-driven (<date>)` is the honest
194
+ day-one line, not a drive claim. A repo with no committed file to map refuses with a named
195
+ remedy — commit at least one file, then run again.
214
196
 
215
197
  **Read the failure messages.** They are written to be actionable, not decorative. `HP-05` above is
216
198
  telling you the HANDOFF does not yet name a commit — fix it by naming your HEAD in the `State`
@@ -220,9 +202,9 @@ section.
220
202
 
221
203
  | Step | Command | Verify prints | The FAILs |
222
204
  |---|---|---|---|
223
- | 1. the install ran | `gob init --write ... --yes` | `35 passed, 2 failed, 11 advisory, 34 skipped` | the install is uncommitted (`CM-03`) and the shipped SPEC is untracked (`SP-02`) |
224
- | 2. the first commit | `git add -A && git commit` | `36 passed, 1 failed, 11 advisory, 34 skipped` | `HP-05` (the placeholder) — plus `GT-02` if your gate names a script the repo does not have |
225
- | 3. name a real HEAD — and **commit that too** | edit `HANDOFF.md`, then `git add -A && git commit` | `37 passed, 0 failed, 11 advisory, 34 skipped` | none — green |
205
+ | 1. the install ran | `gob init --write ... --yes` | `22 passed, 0 failed, 0 advisory, 5 skipped` | none — the installer fills `HANDOFF.md`'s HEAD from the seed commit, and the uncommitted-install / untracked-SPEC reds (`CM-03`, `SP-02`) are now library rows, off by default |
206
+ | 2. the first commit | `git add -A && git commit` | `22 passed, 0 failed, 0 advisory, 5 skipped` | none — green |
207
+ | 3. name a real HEAD — and **commit that too** | edit `HANDOFF.md`, then `git add -A && git commit` | `22 passed, 0 failed, 0 advisory, 5 skipped` | none — `CM-03` is a library row, so a dirty tree no longer re-reds by default |
226
208
 
227
209
  One of those deserves its name spelled out:
228
210
 
@@ -230,9 +212,9 @@ One of those deserves its name spelled out:
230
212
  proposal (`bash tests/run-tests.sh`) does not exist in a throwaway repo — the shell's own
231
213
  *command not found*. Replace it with a command that can run (or create the script). The failure
232
214
  line tells you this: `gate check: bash tests/run-tests.sh -> exit 127`.
233
- - **Step 3 is two steps on purpose.** Naming a real HEAD in `HANDOFF.md` without committing it
234
- re-reds `CM-03` (`1 dirty entr(y|ies)`) — commit-as-you-go starts on minute one. Edit, commit,
235
- then verify.
215
+ - **Step 3 is two steps on purpose.** `CM-03` (commit-as-you-go) is a library row now, so a
216
+ dirty tree no longer re-reds by default — but the discipline is unchanged: edit, commit, then
217
+ verify. Enable `CM-03` from the library if you want the gate to hold you to it.
236
218
 
237
219
  ### The three-day-one failures, and why they are not a broken harness
238
220
 
@@ -240,11 +222,9 @@ If you ran step 1 without `-b main`, or with the wrong git identity, you will se
240
222
 
241
223
  | FAIL | Cause | Fix |
242
224
  |---|---|---|
243
- | `PT-02 declared main, actual master` | branch name mismatch | set `branch:` in the AGENTS.md gob block |
244
- | `CM-01` (commit identity) | the repo's commit email ≠ the declared `owner_email:` | set `owner_email:` in the gob block |
245
225
  | `HP-05` | `HANDOFF.md` still names the scaffold placeholder `` `0000000` `` | replace it with your real short HEAD |
246
226
 
247
- **All three are configuration, not defects.** The harness is reporting your repo's actual state
227
+ **It is configuration, not a defect.** The harness is reporting your repo's actual state
248
228
  against a declared expectation. That is exactly what you want it to do.
249
229
 
250
230
  `HP-05` deserves one sentence more, because it surprises people: the scaffold ships
@@ -263,12 +243,7 @@ by the installer:
263
243
 
264
244
  Open it. The keys that matter on day one:
265
245
 
266
- class: software # software|service|game|research|fleet (A-E are aliases)
267
- branch: main # DECLARED, never assumed
268
- owner_email: you@example.com # the commit identity this repo expects
269
246
  practice: /path/to/your-standard.md # optional: your own house rules, hash-pinned
270
- models_file: /path/to/fleet-model.yaml # the ONE machine-specific input (per machine; a
271
- # fresh install without --models leaves it empty)
272
247
  gate_<name>_cmd: <one command> # YOUR real commands, one line each
273
248
 
274
249
  **The single most valuable edit you will make:** replace the gate line(s) with the commands you
@@ -298,34 +273,17 @@ a re-install — an edited standard is never a silent no-op.
298
273
 
299
274
  ---
300
275
 
301
- ## 6. Step 4 — Pick the right class (this decides what you get)
302
-
303
- A class is **not** a strictness level. It selects which parts are required, optional, or off, and it
304
- supplies the default gate shape. Choose by asking *what does "done" mean here?*
305
-
306
- | Class | Choose it when | "Done" means |
307
- |---|---|---|
308
- | **software** (A) | an app, library, or tool users run | a gate set reports measured numbers and a round lands |
309
- | **service** (B) | an API, schema, route, or deployment config | the contract is unchanged, or the change is deliberate and migrated |
310
- | **game** (C) | a game | a suite is green **and** a human feel verdict exists |
311
- | **research** (D) | notes, a vault, a research directory | a question is answered with sources and is findable |
312
- | **fleet** (E) | your agent's own config (`~/.hermes`) | the change is applied, verified against the artifact, versioned |
276
+ ## 6. Step 4 — There is one config, not five classes
313
277
 
314
- An Electron app is **software** with `electron: true` — the opt-in adds the electron bans and a host
315
- gate, not a sixth class. The old `F` letter still resolves there as an install alias.
278
+ There is **no class to pick**. gobstack installs one configuration; the ban table self-selects
279
+ per row (a ban runs only when a real file matches its `applies_when` glob), so the installer
280
+ needs no taxonomy to decide what to render. "Done" is defined by the repo's own gate, not by a
281
+ category: ask *what does "done" mean here?* and declare it as `gate_<name>_cmd` (§5).
316
282
 
317
- **Two placements people get wrong:**
318
-
319
- - A repo that holds *output* while the code lives elsewhere → **research**, not **software**. Gating
320
- it like an application gates the wrong artifact.
321
- - A plain input directory that is not a build target → **research** with `archive: true`, which tells
322
- verify to expect no HANDOFF and no gates, and to say so.
323
-
324
- Switch class later by editing `class:` in the gob block and re-running install. The parts you no longer
325
- need are recorded as **disabled** and will report `SKIP (opt-out)` rather than failing.
283
+ Parts you do not want are switched off by name with `--opt-out <part>`, which records the part
284
+ in `disabled:` so its rows report `SKIP (opt-out)` rather than passing silently.
326
285
 
327
286
  ---
328
-
329
287
  ## 7. Step 5 — Your first real change, end to end
330
288
 
331
289
  Now do the thing the harness exists for. Pick a small real task in a real repo.
@@ -369,7 +327,7 @@ honest entry, and the harness treats it as one.
369
327
  > **Prove it was broken first.**
370
328
 
371
329
  Before you trust a check, break the thing it checks and watch it go red — then put it back and watch
372
- it go green. Break it on a row this walkthrough can actually break: `IN-02` hashes the 15 files it
330
+ it go green. Break it on a row this walkthrough can actually break: `IN-02` hashes the 18 files it
373
331
  tracks — not the ones it `owns` (including `AGENTS.md`, whose gob block §5 has you editing) and not
374
332
  `.gob/installed.json`; edit one of the tracked — the exercise below uses `.gob/bans/README.md`.
375
333
 
@@ -446,34 +404,31 @@ the next session.
446
404
 
447
405
  ## 9. What to expect on day one (so you do not misread it)
448
406
 
449
- A software-class install lands on a specific shape. The first reds are
407
+ A default install lands on a specific shape. The first red is
450
408
  the scaffold teaching on purpose — `HP-05`, the `0000000` placeholder in `HANDOFF.md` (§4). The
451
409
  walk in §4 measured, step by step:
452
410
 
453
- 35 passed, 2 failed, 11 advisory, 34 skipped # straight after the install (CM-03 + SP-02)
454
- 36 passed, 1 failed, 11 advisory, 34 skipped # first commit: HP-05 left (and GT-02 too if the gate cannot run)
455
- 37 passed, 0 failed, 11 advisory, 34 skipped # real HEAD named and committed: green
411
+ 16 passed, 1 failed, 0 advisory, 10 skipped # straight after the install (the HP-05 placeholder)
412
+ 17 passed, 0 failed, 0 advisory, 10 skipped # name a real commit in HANDOFF.md, commit, and it is green
456
413
 
457
- Name a real commit in `HANDOFF.md`, commit, and give the gate lines real commands (§5), and it is
458
- green:
414
+ (On the older `gob init` walk the uncommitted-install and untracked-SPEC reds — `CM-03`, `SP-02`
415
+ — were the first two FAILs; both are library rows now, off by default.) Name a real commit in
416
+ `HANDOFF.md`, commit, and give the gate lines real commands (§5), and it is green:
459
417
 
460
- 37 passed, 0 failed, 11 advisory, 34 skipped (on a real project; your numbers will differ)
418
+ 17 passed, 0 failed, 0 advisory, 10 skipped (on a real project; your numbers will differ)
461
419
 
462
- **Thirty-four rows skipping is correct**, and each skip prints its reason. In plain terms: the
420
+ **Ten rows skipping is correct**, and each skip prints its reason. In plain terms: the
463
421
  harness is telling you which of its rules have nothing to read yet. It is a checklist, not a
464
422
  scolding.
465
423
 
466
424
  Two readings that are easy to get wrong:
467
425
 
468
- - **Advisory rows are not passes.** Ten rules are labelled `advisory` — counted, not enforced, and
469
- nine of them carry no executable check at all. The count is capped by `advisory_ceiling: 10`, and
470
- a software-class install already sits at 10 of 10: adding another unenforceable rule fails verify until
471
- one is removed. That is intentional. (The summary line can print `11 advisory`: the eleventh ADV
472
- line is `JG-02`, a row with a real command of its own that reports ADV here because your model
473
- file declares no `judge:` lane — it prints the remedy rather than failing a repo for a fleet's
474
- routing.)
426
+ - **Advisory rows are not passes.** No row of the shipped matrix is labelled `advisory` — the
427
+ six advisory rows moved to the library (`gob verify --library`), so a default install sits at
428
+ 0 of 10 on `advisory_ceiling: 10`. Enabling one from the library spends a slot: adding
429
+ unenforceable rules eventually fails verify until one is removed. That is intentional.
475
430
  - **Vacuously-passing rows are not proven.** A rule about "the first review note" passes when there
476
- is no review note yet. It is not lying — it is passing on an empty set. `docs/CONTRACTS.md`
431
+ is no review note yet. It is not lying — it is passing on an empty set. `docs/GUIDE.md`
477
432
  names which rows do this.
478
433
 
479
434
  ---
@@ -483,9 +438,8 @@ Two readings that are easy to get wrong:
483
438
  | Symptom | What it means | What to do |
484
439
  |---|---|---|
485
440
  | `refused to overwrite: HANDOFF.md`, exit 1 | your repo already had a HANDOFF | **do not `--force`** — reconcile it (below) |
486
- | `PT-02 declared main, actual master` | branch mismatch | set `branch:` in the gob block |
487
441
  | `IN-02 ... practice EDITED` | someone changed the pinned standard | re-pin deliberately: `--re-pin` |
488
- | `gob: unrecognized command: <verb>` (exit 2) | you ran a verb outside the v2 surface (`audit`, `doctor`, `emit`, `sync`, `upgrade`, `install`) | use the five wired verbs: `init`, `map`, `verify`, `bans`, `uninstall` — the unwired surface returns in a later alpha |
442
+ | `gob: unrecognized command: <verb>` (exit 2) | you ran a verb outside the v2 surface (`audit`, `install`) | use the six wired verbs: `init`, `map`, `verify`, `bans`, `mcp`, `uninstall` |
489
443
  | `IN-03` fails, "manifest is broken" | a row has a broken check column | fix the row; this is a source defect, not yours |
490
444
  | a `FAIL` you believe is wrong | the check may be weak, or your belief may be | run `--only <id>` and read the command it prints |
491
445
  | a changelog or matrix note says `W6` or `Z1-4` | that is a revision wave code | `docs/RECORD-NOTES.md` is the legend, one line per code |
@@ -502,7 +456,7 @@ itself with the vendored manifest, because that is the manifest its install reco
502
456
  (`docs/LIMITS.md` #54). A declared but unusable `engine_dir:` is verify **exit 2 with no
503
457
  fallback** — a repo is never judged by an engine it did not declare. The engine's own identity
504
458
  prints in every run's footer (`engine: mode=vendored cli_sha256=… enforcement_tsv_sha256=…`). The
505
- same commands are available outside any repo through the npm CLI: `gob init` / `gob map` /
459
+ same commands are available outside any repo through the npm CLI: `gob init` /
506
460
  `gob verify` / `gob bans` / `gob --version`.
507
461
 
508
462
  **Two exit-code contracts worth knowing:**
@@ -511,7 +465,7 @@ same commands are available outside any repo through the npm CLI: `gob init` / `
511
465
  |---|---|
512
466
  | `goblin-install` | `0` ok · `1` a refusal (with the path and the fix) · `2` bad input |
513
467
  | `goblin-verify` | `0` all checks passed · `1` a check failed · `2` could not run · `3` the manifest itself is broken |
514
- | `gob` (npm CLI) | propagates the subcommand's codes verbatim; a verb outside the surface (`audit`/`doctor`/`emit`/`sync`/`upgrade`/`install`) is refused with exit 2 and the usage |
468
+ | `gob` (npm CLI) | propagates the subcommand's codes verbatim; a verb outside the surface (`audit`/`install`) is refused with exit 2 and the usage |
515
469
 
516
470
  `3` is the one to notice: it means gobstack's own rule table is malformed, not your project.
517
471
 
@@ -522,16 +476,12 @@ same commands are available outside any repo through the npm CLI: `gob init` / `
522
476
  ### Commands
523
477
 
524
478
  gob init [--heuristic] [--write <proposal>] [--target <dir>] [--dry-run] [--yes]
525
- [--with-mcp-config]
526
- gob map [--heuristic [target]] [--write <dir>] [--force]
527
479
  gob mcp # the MCP stdio server (three tools, local only)
528
- gob extras list | show <id> | install <id...> # the curated extras catalogue
529
480
 
530
481
  .gob/bin/goblin-verify [--only <id[,id...]>] [--json] [--list]
531
482
  .gob/bin/goblin-bans # run the ban list
532
483
  gob uninstall --target <dir> # the uninstall job
533
484
  goblin-install --target <dir> --re-pin # the deliberate re-pin (from the checkout/install tree)
534
- bin/goblin-model <role> # checkout-only; resolve a role to a profile (docs/ROLES.md)
535
485
 
536
486
  ### Register the harness with your agent (MCP)
537
487
 
@@ -545,77 +495,39 @@ The one-liner, per user account:
545
495
 
546
496
  claude mcp add gob -- npx -y @techgoblin/gobstack mcp
547
497
 
548
- or, committed with the repo so every teammate's agent picks it up (Claude Code and Cursor
549
- auto-detect it):
498
+ or, committed with the repo so every teammate's agent picks it up: `gob init --write` writes
499
+ a repo-root `.mcp.json` as part of the install (Claude Code and Cursor auto-detect it). It is
500
+ ask-once, and never overwrites a `.mcp.json` you customized.
550
501
 
551
- gob init --with-mcp-config # writes .mcp.json; never overwrites one you customized
502
+ ### The 5-skill payload
552
503
 
553
- ### The 15 playbooks
504
+ v3 enhance-layer (proposal §2): the gate-coupled skills ship; the commodity procedures
505
+ (investigation, bugfix, feature, refactor, tdd-repro, eval, sweep, overnight, pr-gate,
506
+ bugreporter, drift-audit, mode-router) and the dormant re-mobile lab moved to the `attic/`
507
+ branch. What ships is exactly what a verifier row reads:
554
508
 
555
- Named procedures, installed as project-local skills. Each has a measurable verification step.
556
-
557
- | | Playbook | Use it when |
509
+ | | Skill | Use it when |
558
510
  |---|---|---|
559
- | P1 | `goblin-investigation` | a read-only question, or "why is this happening" |
560
- | P2 | `goblin-bugfix` | a reported defect |
561
- | P3 | `goblin-feature` | new behaviour |
562
- | P4 | `goblin-refactor` | a behaviour-preserving reshape |
563
- | P5 | `goblin-tdd-repro` | a defect where a regression test is cheap |
564
511
  | P6 | `goblin-verify-author` | a project has no live check lane, or its gates drift |
565
- | P7 | `goblin-pr-gate` | anything that should be reviewed before landing |
566
512
  | P8 | `goblin-bootstrap` | adopting gobstack, or starting a project |
567
513
  | P9 | `goblin-handoff` | ending a session, or picking up another's |
568
- | P10 | `goblin-overnight` | an unattended run over a predicate |
569
- | P11 | `goblin-sweep` | the same change across many projects |
570
- | P12 | `goblin-eval` | a skill or prompt changed — did it do anything? |
571
- | P13 | `goblin-bugreporter` | an event delivered a report |
572
- | P14 | `goblin-drift-audit` | a recorded claim disagrees with the artifact |
573
- | P15 | `goblin-re-mobile` | one shipped Android build must be understood as facts for study |
574
-
575
- ### The extras catalogue (suggestions, not installs)
576
-
577
- `gob extras` browses and installs the curated extras catalogue — third-party agent skills,
578
- MCP servers and workflows the curator reviewed and carried in `extras-catalogue/catalogue.tsv`.
579
- The one rule to hold onto: **init suggests, the catalogue allows, you install.**
580
-
581
- gob extras list # the whole catalogue, grouped by category
582
- gob extras list testing # one category: frontend | testing | game | node
583
- gob extras show playwright-mcp # one row, every field
584
- gob extras install playwright-mcp --target . # mcp: prints the mcp.json snippet
585
- gob extras install taste-skill --target . --platform claude # skill: .claude/skills/taste/
586
- gob extras install taste-skill --target . # no platform: .gob/extras/taste/
587
-
588
- Verdicts: a `RECOMMEND` row is pre-ticked when `gob init` suggests; a `MAYBE` row is listed
589
- but never pre-ticked; a `SKIP` row refuses install (visible history, declined candidate).
590
- The license gate rides on top, hard: a row installs only when its `license_status` is
591
- `verified` — a `LICENSE-PENDING` row (license unresolved) is never pre-ticked and
592
- `gob extras install` refuses it with `license pending verification` until the curator flips
593
- the row's data in `catalogue.tsv`.
594
- Nothing installs at init — `gob init --write` honours only the rows your proposal ticks, and
595
- it installs them by calling `gob extras install`, so the allowlist is one code path. An id
596
- that is not in the catalogue is refused; installs copy from the vendored payload in the
597
- package (no network), and an mcp row merges into `.mcp.json` only with `--with-mcp-config`,
598
- never overwriting an entry you customized.
599
-
600
- The brief also asks your agent to propose discoveries (`discover_extras:`): web-found skills
601
- that match the stack but are not in the catalogue, each with a live URL, a license and a
602
- rationale. Proposals are inert; the curator promotes accepted ones into `catalogue.tsv` by PR
603
- or edit, and only then can `gob extras install` name them.
514
+ | — | `goblin-feature-map` | a feature map a verifier row reads (FM-01/02) |
515
+ | — | `practice` | a standard the install pins and IN-02 hashes |
516
+
517
+ The cut procedures were generic coding-advice prose with no row reading them — the anti-pattern
518
+ this product exists to catch. They are recoverable from `attic/`; the extend mechanism and the
519
+ external-categories adjudication (init brief) add what a repo actually needs.
604
520
 
605
521
  ### Where the real documentation lives
606
522
 
523
+ gobstack ships three documents. This guide is the front door; the README is the reference; LIMITS is the honesty ledger. The sections below (§14–§18) absorb the material that used to live in the per-topic files.
524
+
607
525
  | File | Read it for |
608
526
  |---|---|
609
- | `docs/DESIGN.md` | the thesis and every rejected alternative |
610
- | `docs/GLOSSARY.md` | every term of art in one table (rendered from `.gob/manifest/glossary.tsv`) |
611
- | `docs/RECORD-NOTES.md` | the wave codes the changelog uses, one line each |
612
- | `docs/FLOWS.md` | the playbooks in full, with reasons |
613
- | `docs/ENFORCEMENT.md` | the rule matrix, rendered for a human |
614
- | `docs/LIMITS.md` | **what this cannot check** — read this one early |
615
- | `docs/RISKS.md` | the risk register and non-goals |
616
- | `docs/CONTRACTS.md` | exact interface, exit codes, uninstall |
617
- | `docs/ADOPTION.md` | classes, presets, adoption order |
618
- | `docs/LOOP.md`, `docs/GUARDRAILS.md` | the newer lanes |
527
+ | `README.md` | the thesis, every rejected alternative, the risk register and non-goals, and the glossary |
528
+ | `docs/GUIDE.md` | this file: the first week in order, the interface, the rule matrix, the shipped skills, the integration points |
529
+ | `docs/LIMITS.md` | **what this cannot check** — read this one early: the security and perf lanes, and every recorded limit |
530
+ | `docs/RECORD-NOTES.md` | the wave codes the changelog and the matrix parentheticals use, one line each |
619
531
 
620
532
  ---
621
533
 
@@ -629,7 +541,7 @@ Stated plainly, because a guide that oversells its tool is worse than no guide:
629
541
  behaviour passes. Only the REPLAY habit (prove it goes red) catches that, and only if you do it.
630
542
  - **It cannot see a real user's device.** A performance number measured on your machine is not a
631
543
  user's experience, and the harness says so in its own output.
632
- - **Ten of its rules are labelled `advisory`** — counted, not enforced, and capped at 10 of 10. They
544
+ - **Six of its rules are labelled `advisory`** — counted, not enforced, and capped at a ceiling of 10. They
633
545
  are listed by name.
634
546
  - **It is not a product.** It is a repository of files, installed into other repositories.
635
547
  No service, no daemon, no support contract.
@@ -651,12 +563,645 @@ the result.
651
563
  4. When you have a bug that a test could catch, walk P5 (`goblin-tdd-repro`) end to end once.
652
564
 
653
565
  **If you are sharing this with a team:** the parts that matter are `HANDOFF.md`, the gate commands
654
- you declare, and the REPLAY habit. The rest is optional machinery you can switch off per class.
566
+ you declare, and the REPLAY habit. The rest is optional machinery you can switch off per part.
655
567
  Lead with *"prove it was broken first"* — it is the one practice that survives contact with a
656
568
  deadline.
657
569
 
658
570
  ---
659
571
 
572
+
573
+ ---
574
+
575
+ ## 14. The interface — the installer and the verifier
576
+
577
+ Dependencies: **`bash`, `git`, `awk`, `sed`, `grep`, `python3`.** No npm, no jq, no yq, no
578
+ network. `python3` is used for one thing only: reading the two-level model mapping file, the
579
+ same way the fleet's own tool reads it. Everything else is line-oriented shell.
580
+
581
+ ### Install
582
+
583
+ goblin-install --target <dir> [options]
584
+
585
+ --target <dir> required; the repo root to install into
586
+ --practice <path> the referenced standard (default: $GOBLIN_PRACTICE; unset = no
587
+ practice pin; a named path that is absent is reported, never
588
+ silently dropped)
589
+ --parts <list> comma list to install (default = the whole default part set)
590
+ --archive mark the project archive: verify requires no HANDOFF and no gates
591
+ --skills <spec> which skills to vendor into .gob/skills/ (default: the seven core
592
+ skills). <spec> is `yes`/`no` for the core tier, `all` for every skill
593
+ in the repo's skills/, or a comma-separated name list
594
+ (`goblin-eval,goblin-tdd-repro`). An unknown name is refused with the
595
+ available set named. `yes` additionally installs the full set under
596
+ .hermes/skills (the Hermes project tier). On a repo whose record already
597
+ has a chosen set, an OMITTED flag keeps it; an explicit `--skills no`
598
+ drops back to the core tier and removes the files it no longer covers.
599
+ --list-skills print the skill library (name, tier, one-line purpose) and exit
600
+ --dry-run print the plan; write nothing
601
+ --no-verify skip the health check (goblin-verify) at the end; the wizard
602
+ still installs, and prints the skip notice
603
+ --upgrade re-install at the current version; report created/updated/unchanged/skipped
604
+ --opt-out <part> record the part in disabled: so its required checks are skipped
605
+ --uninstall remove exactly the files in installed.json
606
+ --re-pin re-record practice_sha256: for an edited standard; nothing else changes
607
+ --force allow overwriting a file gobstack did not create
608
+ --yes non-interactive; take the defaults above
609
+
610
+ Exit codes: `0` success or no-op · `1` a refusal, with the path and the fix · `2` bad input or a
611
+ missing dependency.
612
+
613
+ #### Idempotency
614
+
615
+ The installer writes only paths it records, and it **hash-compares before writing**, so running
616
+ it twice with the same arguments and the same `VERSION` prints `no-op: N files unchanged` and
617
+ exits 0 **without touching a byte**. A different `VERSION` is an upgrade: it rewrites only the
618
+ files whose hash changed and prints `created C · updated U · unchanged N · skipped S`.
619
+
620
+ #### Three kinds of file, and why the distinction matters
621
+
622
+ | kind | recorded as | overwritten? | hash-checked? | removed by `--uninstall`? |
623
+ |---|---|---|---|---|
624
+ | installed artifact (bin, manifest, opt-in skills, harness scaffold) | `files` | yes, on upgrade | yes — IN-02, SK-02 | yes |
625
+ | created once, then yours (the `AGENTS.md` gob block, `HANDOFF.md`, `AGENTS.md`, `*-SPEC.md`, `reviews/.gitkeep`) | `owned` | never | no — you are meant to edit them | no, except the config |
626
+ | pre-existing, left alone | `refused` | never | no — IN-04 only proves it was not taken over | no |
627
+
628
+ A `refused` path is not a dead end. For `HANDOFF.md` the remedy is the reconciliation in
629
+ `docs/GUIDE.md` ("Adopting into a repo that already has a `HANDOFF.md`"): keep the project's
630
+ file, merge the five required sections and a dated gate line in, then verify. `--force` overwrites
631
+ it and exists for a scaffold copy with nothing to keep.
632
+
633
+ An **edited standard is not a dead end** either. `practice_sha256:` pins the referenced standard
634
+ and `IN-02` re-checks it, so one intended edit to the standard reds `IN-02` in every installed
635
+ repo. The remedy is the explicit re-pin below — not a hand-edit of the hash, and never an
636
+ automatic one.
637
+
638
+ `.gitignore` is not a file gobstack owns: it appends **one marked block** and never rewrites
639
+ the rest. The `AGENTS.md` gob block is generated once and is gobstack's own config, so
640
+ `--uninstall` removes it; `HANDOFF.md`, `AGENTS.md`, `ROUND-000-SPEC.md` and `reviews/` are the
641
+ project's record, not the harness's, and are left in place.
642
+
643
+ #### An edited standard is not a dead end
644
+
645
+ the `AGENTS.md` gob block records `practice:` and `practice_sha256:`, and `IN-02` re-checks that hash.
646
+ The pin has exactly one purpose: to make a **silently** edited standard visible rather than
647
+ assumed. The standard itself is a living document, corrected in place, so an edit that is
648
+ *intended* needs a deliberate way to re-record the pin. That is all `--re-pin` is:
649
+
650
+ goblin-install --target <dir> --re-pin
651
+
652
+ It rewrites one line of the config — nothing else — and prints both hashes:
653
+
654
+ practice re-pinned: /path/to/PROJECT-PRACTICE.md
655
+ recorded 81612b17ac3483b9d613aeb86e236539fc17403e38bf7903af708d369cf7918f
656
+ now 8334ac24f056c94c35fa97831253e7e12bace68ae5747c81ae3b696c42ddd33a
657
+
658
+ `.gob/bin/goblin-verify --only IN-02` then reports `practice pin ok`. Every other line of
659
+ the `AGENTS.md` gob block, comments included, is untouched, so the `owned` contract holds for everything
660
+ except the one value you just asked to re-record. Commit the config like any other change.
661
+ `--dry-run` prints the plan and writes nothing; when there is nothing to do it prints
662
+ `practice pin already current` and exits 0.
663
+
664
+ Four things it deliberately is not:
665
+
666
+ - **not automatic.** `goblin-verify` never re-pins, and neither does a plain `--upgrade`: a pin
667
+ that updated itself would be the very silent edit the pin exists to catch. The `practice EDITED`
668
+ failure detail names this command, so the remedy is printed where the operator meets the problem.
669
+ - **not a hand-edit.** Editing `practice_sha256:` by hand does work, but nothing then checks that
670
+ you pasted the right hash — which is the one thing this command does for you.
671
+ - **not `--force`.** `--force` is about overwriting a file gobstack did not create; it has no
672
+ opinion about the pin.
673
+ - **not a re-point.** It re-records the hash of the path already in `practice:`. Pointing the repo
674
+ at a *different* standard is a deliberate config edit, not a re-pin.
675
+
676
+ Refusals are exit `2`, each naming the path: no the `AGENTS.md` gob block, no `practice:` recorded, the
677
+ recorded path absent, or no `practice_sha256:` line to rewrite. A failed write is exit `1`, with
678
+ the path — the command never reports a re-pin that did not land. One refusal guards the mode
679
+ itself: `--uninstall --re-pin` is exit `2` with `--uninstall and --re-pin are different jobs; run
680
+ them one at a time` — the two modes run one at a time, and the pair is refused before anything is
681
+ removed.
682
+
683
+ #### Never a half-state
684
+
685
+ If any write fails the installer prints the file and exits 1. It does not roll back, because
686
+ every created file is either a whole file or absent, and the record is written last.
687
+
688
+ ### Verify
689
+
690
+ goblin-verify [--only <id[,id...]>] [--json] [--list] [--source <gobstack path>]
691
+
692
+ Output is one line per executed row, in manifest order, plus a summary line at the end:
693
+
694
+ PASS HP-01 (test -f HANDOFF.md)
695
+ FAIL GT-02 gate commit: false -> exit 1
696
+ SKIP FM-01 feature_map: is empty - this state is UNREACHABLE ...
697
+ SKIP BN-06 No renderer with Node access ... (not applicable: no package.json, so nothing declares electron)
698
+
699
+ Those three lines are one row of each marking a default run can show (no row of the shipped
700
+ matrix is advisory — the advisory rows live in the library). The summary line of a green default
701
+ run is `17 passed, 0 failed, 0 advisory, 10 skipped`.
702
+
703
+ **Exit codes:** `0` every executed check passed (advisories and skips do not fail the run) ·
704
+ `1` at least one check FAILED · `2` verify could not run (not installed, a missing dependency,
705
+ an unparseable config) · `3` the manifest itself is broken (a row with no check and no
706
+ `advisory` label, or a duplicate id).
707
+
708
+ **What verify asserts, in one sentence:** that the files it installed are the files on disk,
709
+ that every rule in the manifest with a command still passes, and that the untestable remainder
710
+ is counted and capped.
711
+
712
+ **What it cannot see** (printed at the end of every run): whether a check in the harness dir
713
+ tests the right path rather than merely passing; whether the forge is bound by the workflow
714
+ a config declares found; whether a human
715
+ read the diff; and whether `.gob/installed.json` — the record every drift check trusts — was
716
+ itself rewritten, since it
717
+ is not signed (`docs/LIMITS.md` #18). The footer names no lane the product cut: the CI lane is out
718
+ of the product and its rows and doc are deleted, so the verifier no longer names it — a lane the
719
+ product deleted is not a blind spot a run still carries (`docs/LIMITS.md` #13/#34).
720
+
721
+ #### A fresh install verifies green
722
+
723
+ Measured on a fresh DEFAULT install (skills opt-in, W6 neutral-first), committed with no
724
+ hand edit: **`17 passed, 0 failed, 0 advisory, 10 skipped`, exit 0.** The core procedure
725
+ tier is vendored on every install (`.gob/skills/`), so `SK-01`, `SK-02` and `SK-04` RUN and
726
+ pass on a fresh repo — the product no longer disables its own rows. Ten rows skip with a
727
+ reason: every ban self-selects by its `applies_when` — a GLOB (`BN-01`/`BN-02`/`BN-03`/`BN-05`
728
+ match only `.ts`/`.tsx`/`.js`/`.jsx`, so with no such source each reports itself *not
729
+ applicable*) or the `dep:electron` PREDICATE (the four electron bans `BN-06`..`BN-09` run only
730
+ when `package.json` names electron, so with none they too report *not applicable* — never running
731
+ vacuously off the harness's own `checks/*.mjs`) — and `FM-01`/`FM-02`, which
732
+ have no feature map yet (`feature_map:` ships empty on purpose: a fresh install must not be
733
+ born RED — G1, `docs/LIMITS.md` #30). Thirty-two further rows are **not skipped but OFF** —
734
+ they live in the library (`gob verify --library`), the rows that are not right for every repo.
735
+ Every skip above is a *not yet*, not a pass.
736
+
737
+ The parts that only a round can produce do **not** fail on a fresh install; the round-shaped
738
+ rows (`PG-01`..`PG-03`) are library rows now — off by default — and the declared gate *is* the
739
+ shipped floor until step 3 replaces it. `P8`
740
+ (`goblin-bootstrap`) walks that first-step list because the work is not done, not because the
741
+ verifier is reporting FAILs.
742
+
743
+ ### Opting out, and uninstalling
744
+
745
+ - **Per part:** `--opt-out <part>` records the part in `disabled:`. `goblin-verify` then reports
746
+ the part's rows as `SKIP (opt-out)` in the summary, so the opt-out is **visible rather than
747
+ absent**. The same mechanism is what makes a part's off state real.
748
+ - **The opt-out numbers are pinned (V3-3).** A default install with the core tier vendored
749
+ verifies `17 passed, 0 failed, 0 advisory, 10 skipped`, exit 0, and
750
+ `tests/t-install-off-switch.sh` asserts that line: a silent drift in the opt-out path is caught
751
+ rather than left as a number nobody wrote down (the `--skills no` count moved from `37/0/9/11`
752
+ at v0.2 as the ban and feature-map rows landed; in v3 the model/role/loop and CI rows are cut,
753
+ and the 32 not-for-every-repo rows moved to the library, so the shape is `21/0/0/6`).
754
+ - **Skills, W6 neutral-first.** A default install vendors the seven-skill CORE procedure tier
755
+ under `.gob/skills/` (so `SK-01`/`SK-02`/`SK-04` run on a fresh repo) and ships no `.hermes/`
756
+ agent tier — that wider Hermes project tier is the opt-in. A repo whose record has
757
+ `skills: yes` keeps them through every flag-less re-install and `--upgrade` (the installer
758
+ reads the record's choice and says so out loud); an explicit `--skills no` removes exactly the
759
+ recorded skill files; `--uninstall` removes everything recorded, as always.
760
+ `tests/t-install-off-switch.sh` walks that migration: install `--skills yes`, upgrade flag-less,
761
+ the skills survive byte-identical; uninstall, and they are all gone.
762
+ - **Skills, the library (the same shape as the rule library).** The repo's `skills/` holds
763
+ eighteen skills; the seven core ones are what a default install vendors. The other eleven are
764
+ the **skill library** — off by default, selected per repo with `--skills all` (every skill) or
765
+ `--skills <name>[,<name>...]` (exactly those; an unknown name is refused with the available set
766
+ named, and nothing partial is written). `--list-skills` (and the `gob init` brief's SKILL
767
+ LIBRARY section) prints every skill's name, tier and one-line purpose, so the set is
768
+ discoverable without opening the repo. `installed.json` records exactly the vendored set, so
769
+ `SK-02` hashes 7 files on a default install and 18 after `--skills all` — no more, no fewer;
770
+ dropping a skill (e.g. `all` → `no`) removes its file from the tree and the record.
771
+ `tests/t-skills-library.sh` walks all of it.
772
+ - **Whole harness:** `--uninstall` deletes the `files` list plus the `AGENTS.md` gob block, removes
773
+ every directory that leaves empty (deepest first, after `installed.json` itself is gone — the
774
+ order that used to leave `.gob/` and the sixteen `.hermes/skills/*` directories behind),
775
+ leaves `HANDOFF.md`, `AGENTS.md`, `ROUND-000-SPEC.md`, `reviews/` and the `.gitignore` block
776
+ (with a `# gobstack uninstalled <date>` marker inside it), and prints what it removed and
777
+ what it left.
778
+
779
+ ### The two commands, verbatim
780
+
781
+ gob init --write <proposal.md> --yes
782
+ .gob/bin/goblin-verify
783
+
784
+ From a checkout, without installing anything:
785
+
786
+ bash tests/run-tests.sh
787
+
788
+ ---
789
+
790
+ ## 15. The adoption order
791
+
792
+ **`—` is a real, enforced option.** The installer records every off part in `disabled:`, so its
793
+ rows report `SKIP (opt-out)`. A repo with 1,599 test files or 27 research notes is not broken by
794
+ a forced harness directory — the part is switched off by name.
795
+
796
+ Four consequences that follow from measurement, not taste:
797
+
798
+ 1. A forced harness directory breaks a repo whose tests are not `checks/*.mjs`.
799
+ 2. Two gate *kinds* must exist in the schema: hermetic (repo-local) and host (touches paths
800
+ outside the repo). A host gate reported as hermetic reports environment differences as
801
+ failures.
802
+ 3. **The gate command must be declarable per project, never inferred from the stack.** One
803
+ inferred command is wrong for a repo with no runner, a repo that cannot run its own typecheck
804
+ read-only, and a repo whose runner lives in a skill — all at once. The shipped gate is a
805
+ **floor**, and `P8` step 3 is "replace it".
806
+
807
+ ### The adoption order
808
+
809
+ Each step is independently useful and the later ones build on the earlier:
810
+
811
+ 1. **A repo already at the standard, first — to prove the installer, not to improve the
812
+ project.** The only honest test of an installer is that it is idempotent against a repo that
813
+ needs nothing. Success = install, then verify reproduces the harness count and the ratchet
814
+ number with `git status` unchanged.
815
+ 2. **The highest-risk gap second.** A large repo with client deliverables and **no version
816
+ control**: everything else is recoverable from a working tree, that one has no "before".
817
+ Gate on: `git init` done, `.gitignore` verified against local env and build-info files, first
818
+ commit exists, HANDOFF exists, the real typecheck recorded.
819
+ 3. **The fleet-config repo third — highest value per minute.** A non-code repo that cannot
820
+ fix its own home is not publishable.
821
+ 4. **The cheapest correctness win fourth.** Content types untracked inside a repo that looks
822
+ protected: commit them and write a HANDOFF.
823
+ 5. **The small ones fifth** — they exercise the `—` switches. One needs a single commit; another
824
+ needs its `.gitignore` fixed **before** `git init` because a credentials file sits in-tree.
825
+ 6. **The two small repairs sixth** that make a fleet self-consistent: a stale HEAD, a stale
826
+ number, and the REPLAY added to each.
827
+ 7. **The rest seventh — real work, no emergency.** Each is blocked on a *decision* more than on
828
+ effort.
829
+ 8. **An archived input directory — never adopted.** It is the regression test for the off
830
+ switch.
831
+
832
+ ### What a first install actually gives you
833
+
834
+ `goblin-install` exits 0 and creates `.gob/` (the verifier, the manifest, the config), `HANDOFF.md`,
835
+ `AGENTS.md`, and — only when the parts are on (`--parts spec,reviews`) — `ROUND-000-SPEC.md`,
836
+ `reviews/`, and the harness scaffold in `checks/`. A default install ships the seven-skill core
837
+ procedure tier under `.gob/skills/`; **agent skills are opt-in** — the `.hermes/` project tier
838
+ arrives only with `--skills yes` (W6 neutral-first). The repo's other eleven skills are the
839
+ **skill library**: add them to `.gob/skills/` with `--skills all` or a comma-separated name list
840
+ (`gob init --list-skills` prints every skill and its one-line purpose).
841
+
842
+ Then, in order:
843
+
844
+ git add -A && git commit # the install is a change like any other
845
+ .gob/bin/goblin-verify # 17 passed, 0 failed - the uncommitted-install red (CM-03) is a library row now
846
+
847
+ A default install (core tier, no agent skills) is **green** — `17 passed, 0 failed, 0 advisory,
848
+ 10 skipped`, exit 0 — once
849
+ `HANDOFF.md` names a commit that exists; before that edit the scaffold's `0000000` placeholder is
850
+ the one expected red (`16 passed, 1 failed`). Both numbers are measured, not assumed
851
+ (`docs/GUIDE.md`; step 2 of `docs/GUIDE.md`). Ten rows skip with a reason: `SK-01`, `SK-02`
852
+ and `SK-04` RUN (the core procedure tier is vendored under `.gob/skills/` on every install),
853
+ plus the not-yet rows: `BN-01`/`BN-02`/`BN-03`/`BN-05` have no `.ts`/`.js` source for their
854
+ `applies_when` glob and each reports itself *not applicable*; the four electron bans
855
+ `BN-06`/`BN-07`/`BN-08`/`BN-09` are selected by the `dep:electron` predicate, so with **no
856
+ `package.json`** they too report *not applicable* — never passing vacuously off the harness's own
857
+ `checks/*.mjs` — and `FM-01`/`FM-02`
858
+ (no feature map yet). Thirty-two further rows are held in the **library** (`gob verify
859
+ --library`) — off by default, each with the line that turns it on. The round-shaped rows
860
+ (`PG-*`) and the corpus rows (`RC-*`) are library rows now, so the first-step list is a list of
861
+ work, not a list of FAILs.
862
+
863
+ ### Adopting into a repo that already has a `HANDOFF.md`
864
+
865
+ The installer never overwrites a `HANDOFF.md` that existed before the install. It prints
866
+ `refused to overwrite: HANDOFF.md` and exits 1. **That exit is correct, and `--force` is not the
867
+ remedy**: `--force` replaces the project's own record with the scaffold, which is the act the
868
+ refusal exists to prevent. `--force` is for a scaffold copy with nothing to keep.
869
+
870
+ The remedy is a reconciliation. The project's file stays the file of record; nothing is deleted
871
+ (a stale sentence is corrected in place with a dated parenthetical, never removed).
872
+
873
+ 1. **Keep the file.** Do not re-install with `--force`, and do not delete it.
874
+ 2. **Give it the five sections it is missing**, each as an H2 or H3 heading whose *first word* is
875
+ the slot name — a marker or number prefix (`## ▶ START HERE`) is fine:
876
+
877
+ | section | accepted first words |
878
+ |---|---|
879
+ | orientation | `START HERE` |
880
+ | current state | `State` · `Status` |
881
+ | gates | `Gate` · `Gates` |
882
+ | next steps | `Next steps` · `Next` |
883
+ | what is not verified | `Not verified` · `Unverified` · `Not proven` · `Unproven` · `Pending <x> device test` |
884
+
885
+ `HP-02` is satisfied by the heading, not by the words appearing inside one: a `## BOARD STATE`
886
+ heading is not a `State` section.
887
+ 3. **Put the current gate numbers inside the `Gates` section, each with its date.** Every
888
+ gate-bearing line in that section must read `measured YYYY-MM-DD`. Gate numbers elsewhere (in
889
+ `State`, in a round block) are not the current gate line, and historical round gate lines are
890
+ exempt — they are the record and are kept:
891
+
892
+ - `tsc`=0 · `build`=0 · hex **144** (ceiling 160) · 38/38 harnesses green · measured 2026-09-24
893
+
894
+ 4. **Name the HEAD in `State`** (`HEAD when this file was written: <short sha>`) — `HP-05` wants a
895
+ commit that exists in this repo and is an ancestor of HEAD.
896
+ 5. **Commit, then verify:**
897
+
898
+ git add -A && git commit
899
+ .gob/bin/goblin-verify # HP-02, HP-03, HP-05 go green
900
+
901
+ Success is the full green path (`17 passed, 0 failed, 0 advisory, 10 skipped`, exit 0)
902
+ with `git status --short` empty.
903
+
904
+ The edit is additive and small — measured on the model repo (§1's exemplar, 2450 lines): three
905
+ headings plus a `State` block, one dated gate line and a `Not verified` block, 15 lines, no line
906
+ removed.
907
+
908
+ ---
909
+
910
+ ## 16. The rule matrix
911
+
912
+ `.gob/manifest/enforcement.tsv` is the matrix: **one row per on-by-default rule**. The `check`
913
+ column holds a real command that `goblin-verify` runs, or the literal `advisory`, or the marker
914
+ `goblin-verify --only <ID>` for a check that needs more than one shell line (those are
915
+ builtins in `bin/goblin-verify`, so the row stays self-describing and the matrix stays the
916
+ single source of truth). `.gob/manifest/library.tsv` holds the **off-by-default** rows — the shipped
917
+ rules that are not right for every repo — and `gob verify --library` lists each with the exact
918
+ line that turns it on: paste that line into the repo-local, versioned
919
+ `.gob/manifest/enforcement.local.tsv`, and the row joins the run exactly as if it were in the
920
+ matrix — it can PASS, FAIL (with its `remedy:` line) or report itself *not applicable*. The
921
+ override file is **optional**: absent, a run is the default set and says nothing about it. When it
922
+ is present, the summary names the rows it added under `enabled-locally:`, so a reader can tell them
923
+ apart from the default set. A local row that names no check the engine can run is **refused**
924
+ (exit 3, with a named remedy) — a row id in neither the matrix nor the library, a
925
+ `goblin-verify --only <ID>` marker whose builtin does not exist, a check that cannot execute, or a
926
+ bare id with no check cell: a repo cannot add a rule that nothing verifies.
927
+
928
+ Some `if_not_why` cells carry internal workstream tags — `W1`, `W5`, `W6` — recording which
929
+ redesign of this toolkit last touched that rule's check (W1 the global-engine split, W5 the
930
+ publish prep, W6 neutral-first).
931
+ They are historical provenance only: the rule text and its check are authoritative, not the
932
+ tag. `D1`..`D6` are the design decisions in `README.md`; `Z1`-style identifiers are
933
+ independent verification pass IDs.
934
+
935
+ `scope` is `target` (runs in an installed repo via `goblin-verify`) or `source` (runs in
936
+ this repo via `tests/run-tests.sh`). The two scopes name WHOSE proof burden a row carries:
937
+ `scope:source` is the framework's own burden when developing gobstack (a dev runs
938
+ `run-tests.sh`), `scope:target` is the adopting repo's burden (the user runs `goblin-verify`).
939
+ The source-scope rows (`PR-01`..`PR-04`) therefore never run
940
+ in an installed repo — they execute only in this repo's own test suite. `enforced_by` is one of
941
+ five values, and the enum is
942
+ closed and now ENFORCED (`IN-03`'s third clause, Z1-5): `script`, `lint`, `gate`, `advisory`,
943
+ plus `test` for a source-scope row, whose check is a script under `tests/` run by
944
+ `tests/run-tests.sh`.
945
+
946
+ Measured shape of this table: **31 rows** - 27 target, 4 source; advisory 0, gate 4, lint 16, script 8, test 3 (the on-by-default matrix, `.gob/manifest/enforcement.tsv`). The **library** (`library.tsv`) holds a further **32 rows**, all `scope:target`, off by default. The table below renders the **full 63-rule set** (matrix + library) so a reader sees the whole contract; the 32 library rows are the ones `gob verify --library` names.
947
+
948
+ ### The rows
949
+
950
+ | id | scope | enforced by | rule | check | if it cannot be enforced, why |
951
+ |---|---|---|---|---|---|
952
+ | `IN-01` | target | script | The install exists and records its version + every file's hash. | goblin-verify --only IN-01 | — (W1: the check is a builtin so the engine.mode=global clause can run — a global, declaration-only repo has no install record and SKIPs with `global engine mode — no per-repo install record`; the vendored clauses are the old one-liner: the record exists and names its version) |
953
+ | `IN-02` | target | script | Every installed file still matches its recorded hash. | goblin-verify --only IN-02 | recover: git checkout -- .gob/installed.json (or re-run `npx @techgoblin/gobstack init --write` to re-install); for a file it names drifted: git checkout -- <path> (if the edit is yours and intended, re-pin it: `goblin-install --target <dir> --re-pin` from the checkout/install tree) |
954
+ | `IN-03` | target | script | The verifier's own manifest is complete: every rule has a check or is advisory. | goblin-verify --only IN-03 | — (this row is the reason the matrix cannot rot; the second clause is D6's shape in general: a row that carries no check must be labelled advisory, or it claims verification it does not perform. The third clause is Z1-5: `enforced_by` is documented as a closed enum in docs/GUIDE.md and was read by NOTHING, so a typo in that cell changed nothing - `script\|lint\|gate\|advisory` plus `test`, the source-scope value whose check is tests/run-tests.sh. W1: the check runs against whichever manifest the engine actually resolved (the chain in bin/goblin-verify), no longer the hardcoded per-repo path — the rule's meaning is untouched, only the path input follows the engine) |
955
+ | `IN-04` | target | script | No file gobstack did not create has been overwritten. | goblin-verify --only IN-04 | Detects a file the installer recorded as pre-existing (a `refused` entry) that has since vanished, or that is listed as installed anyway. The second clause is an internal-consistency guard: with correct code a refused path is never written, so it fires only if the installer regresses. The negative control exercises the vanished branch. |
956
+ | `HP-01` | target | gate | HANDOFF.md exists at the root. | test -f HANDOFF.md | — |
957
+ | `HP-02` | target | lint | The HANDOFF carries its five required sections. | for h in 'START HERE' 'STATE\|STATUS' 'GATES?' 'NEXT STEPS\|NEXT' 'NOT VERIFIED\|UNVERIFIED\|NOT PROVEN\|UNPROVEN\|PENDING[^.]*DEVICE TEST'; do grep -qiE "^#{2,3}[[:space:]]+[^[:alpha:]]*($h)\b" HANDOFF.md \|\| { echo "missing section: $h"; exit 1; }; done | Partial: proves a heading exists whose first word names the slot, not that the section's content is complete. The slot may use the repo's own vocabulary (the model repo's `### NEXT` passes; `Status`, `Gate`, `Unverified`, `Pending <x> device test` are accepted); a heading that merely contains the word (`## BOARD STATE`) does not satisfy `State`. |
958
+ | `HP-03` | target | lint | Every gate number is a measurement with a date, never a copy. | goblin-verify --only HP-03 | Builtin, anchored on the gate NAMES `AGENTS.md` declares (GT-01's source of truth) rather than on a hardcoded keyword list: the shipped gates are named `commit` and `todo_ceiling`, neither of which the old list matched, so on a fresh install the only line it could see was the template's own example sentence, and a real gate line could lose its `date` and the row stayed GREEN (G8-2). A line whose text says "example of the required form" is template prose, not a gate number, and is skipped, so the template cannot satisfy the row. Partial: it proves a dated line inside the `Gates` section exists and that every gate-bearing line there carries a date - not that the number was re-measured that day, and not a gate-bearing line that names no declared gate and carries no gate-shaped keyword (so a line the config does not declare and the keyword list does not recognise is unseen). Historical gate lines outside that section are exempt by design - PROJECT-PRACTICE section 1's stale-sentence rule requires them to be kept. |
959
+ | `HP-04` | target | advisory | A stale sentence is corrected in place with a dated parenthetical, never deleted. | advisory | Detecting a silent deletion needs semantic judgement; a diff heuristic (>=5 removed non-empty lines with no 'corrected' addition) is too noisy to gate on. goblin-verify --only HP-04 prints the heuristic as a warning only. |
960
+ | `HP-05` | target | gate | The HANDOFF names the HEAD it describes. | goblin-verify --only HP-05 | Deviation from the design spec, with the reason: the spec's literal check is `grep -q "$(git rev-parse --short HEAD)" HANDOFF.md`, which can never pass - committing the HANDOFF moves HEAD, so the file can only name a commit that is now an ancestor. The mechanised form is therefore 'the HANDOFF names a commit that exists in this repo AND is an ancestor of HEAD', which still catches the defect it exists for (a review/handoff artifact that names no commit at all). |
961
+ | `SP-01` | target | gate | A *-SPEC.md file exists at the repo root (any round, not the current one - round-scoping arrives with the W6 staged chain). | ls ./*-SPEC.md >/dev/null 2>&1 | Skipped when `spec` is in `disabled:`. |
962
+ | `SP-02` | target | script | The SPEC is committed, not left untracked. | test -z "$(git ls-files --others --exclude-standard -- '*-SPEC.md')" | — |
963
+ | `SP-03` | target | lint | Every AC: item is checkable without a human. | awk '/^[[:space:]]*[-*][[:space:]]/ && /AC[0-9]*:/ && !/`\|==\|===\|exit\|<\|>/ {print; bad=1} END{exit bad}' ./*-SPEC.md | Partial: structural only - a checkable-looking bullet can still be unfalsifiable. The matcher is `AC[0-9]*:` because the shipped template writes `- AC1: ...`; the literal `/AC:/` only saw a bullet that spelled the label without a number. |
964
+ | `GT-01` | target | gate | The gate set is declared, never inferred from the stack. | goblin-verify --only GT-01 | Builtin: every `gate_<name>_cmd:` key in the AGENTS.md gob block is a DECLARED gate and its declaration and command are one line - a gate cannot lose its cmd and survive the count (G8-3, the condition of G8's own score sentence). The count is of declarations, not of runnable pairs. It cannot see whether a declared command is the RIGHT gate for the project: it proves a command exists, not that it is meaningful. |
965
+ | `GT-02` | target | gate | Every declared gate runs and exits 0. | goblin-verify --only GT-02 | — |
966
+ | `GT-03` | target | script | The round reports one line of measured numbers. | test -f .gob/last-gate-line && [ .gob/last-gate-line -nt "$(git rev-parse --git-dir)/logs/HEAD" ] | The freshness reference is HEAD's reflog (`.git/logs/HEAD`), which every HEAD movement rewrites - a commit in an attached or a detached worktree included, and independently of whether the refs are packed. The clause it replaced read `.git/HEAD`, a file a commit never rewrites (only branch operations do), so a commit landing after the measured line left the row GREEN while the round had moved on (D2, measured: `.git/HEAD`'s mtime unchanged across a real commit, `--only GT-03` exit 0). Two limits remain, recorded rather than hidden: a repo with the reflog disabled (`core.logAllRefUpdates=false`) has no reference to compare against, and `-nt` against a missing path is true, so the clause passes vacuously and the row then proves only that a measured line EXISTS (a repo with no commit yet is the same case); and the clause reads ANY HEAD movement as staleness, so a checkout, a branch rename or a reset FAILs it until the next gate run rewrites the line. That second behaviour is what makes a full run self-freshening: `GT-02` writes the line earlier in the same pass, so the row asserts that the line in front of you came from THIS run. `tests/t-gt03-freshness.sh` is the control, in both directions. |
967
+ | `GT-04` | target | gate | A ratchet is declared with a ceiling. | goblin-verify --only GT-04 | — |
968
+ | `GT-05` | target | gate | The ratchet has not risen. | goblin-verify --only GT-05 | — |
969
+ | `HS-01` | target | lint | Asserting harnesses follow the house shape. | goblin-verify --only HS-01 | A declared harness_dir that is absent FAILS when `scaffold_checks: yes`; when it is `no`, the row SKIPs with a reason. Keying the skip off the path alone let one config line switch this row and HS-02 off. A report utility in the same dir is counted and reported separately rather than failing the run. |
970
+ | `HS-02` | target | gate | A check green on both trees proves nothing - the REPLAY must show RED pre-change. | goblin-verify --only HS-02 | The declared `replay.cmd` is EXECUTED with `{name}` replaced by each harness's name, in the pre-change worktree, with `replay.env=<commit>` set (Z1-4). Two clauses that used to be unheard: a command that interpolates no `{name}` FAILs (it cannot be running the harness it names, so nothing was replayed), and a command that cannot be executed at all - exit 126 or 127 - FAILs rather than counting as a RED harness. The harness's name is substituted SHELL-QUOTED (`printf %q`), because the name is part of the command text the shell parses; unquoted, a name carrying `;` or `#` reached the shell as syntax (Z2-3, the G8-1 surface class), and the control for it carries a metacharacter-bearing file name. What it cannot see: a command that runs *something else* under the harness's name and exits non-zero, and whether the harness tests the right path rather than merely failing on this tree. |
971
+ | `HS-03` | target | advisory | Source probes read text with comments blanked first. | advisory | Recognising 'this probe reads source text' is semantic; a grep for the blanking helper produces false FAILs on harnesses that do not probe source. |
972
+ | `CM-02` | target | advisory | The commit message was written to a file, not passed with -m. | advisory | A backtick lost to command substitution leaves no trace a later check can read. Reported as a heuristic (unbalanced backticks in a body) only. |
973
+ | `CM-03` | target | script | Commit-as-you-go: the working tree is not carrying a dead run's work. | goblin-verify --only CM-03 | — |
974
+ | `PG-01` | target | gate | The reviewed artifact is named by SHA, and that SHA exists. | goblin-verify --only PG-01 | — |
975
+ | `PG-02` | target | script | The gate is chosen by the change, not the repo, and the tier's evidence exists. | goblin-verify --only PG-02 | — |
976
+ | `PG-03` | target | gate | A new head voids the verdict. | goblin-verify --only PG-03 | — |
977
+ | `DS-01` | target | script | Runtime data is not test fixture: a gate run must not write it. | goblin-verify --only DS-01 | — |
978
+ | `DS-02` | target | gate | Snapshot before, verify after. | goblin-verify --only DS-02 | — |
979
+ | `DOC-01` | target | advisory | A significant change updates the docs that teach it. | advisory | 'Significant' is a judgement; a diff-size heuristic fails on the cases that matter. |
980
+ | `DOC-02` | target | advisory | System-level changes are recorded wherever the project's standard says they live. | advisory | Where the recording lives may be owned by a stricter external rule than gobstack may add; the repo can only state it. |
981
+ | `SK-01` | target | lint | Every shipped skill has name + description frontmatter. | goblin-verify --only SK-01 | W1: the check is a builtin so the engine.mode=global clause can run - in global mode the procedure tier is emitted per platform (not carried in this repo) and the row SKIPs with that reason instead of passing vacuously on a repo with no skills (§2.5 names SK-01 alongside SK-02/SK-04). In vendored mode it is exactly the old loop: every SKILL.md must open with frontmatter carrying both name and description. |
982
+ | `SK-02` | target | script | The skills on disk match their recorded hashes (no drift). | goblin-verify --only SK-02 | — |
983
+ | `SK-03` | target | script | A rule with no mechanism is labelled advisory, and the advisory count is reported. | goblin-verify --only SK-03 | — |
984
+ | `SK-04` | target | lint | Every shipped skill says what it cannot see. | goblin-verify --only SK-04 | Partial: proves the section exists, not that what it says is complete or true - the limit every prose rule carries. Every shipped skill already carries it, so the row is GREEN on a fresh install and RED only under a real violation. W1: the check is a builtin so the engine.mode=global clause can run - in global mode the procedure tier is emitted per platform (not carried in this repo) and the row SKIPs with that reason. |
985
+ | `PT-01` | target | lint | No tenant-specific string inside a reusable rule. | for d in skills manifest bin templates .gob .hermes; do [ -d "$d" ] \|\| continue; grep -rniE --exclude=AGENTS.md --exclude=installed.json '(h[a]rvey\|tech-g[o]blin\|/h[o]me/[a-z]+\|g[o]blin-ui\|op[e]n-door\|sup[r]eme\|bb[t]ech\|c[l]v)' "$d" && exit 1; done; exit 0 | — (the rules an install actually writes live in `.gob/` and `.hermes/`, not in the source layout. Two documented exceptions: `AGENTS.md`, which holds `practice:` - per-machine config, not a rule - and `.gob/installed.json`, which since W1 records the machine's absolute `engine_dir` in its `engine:` block - both per-machine facts, not rules - each excluded by name. The pattern is written with character classes so this row cannot match itself.) |
986
+ | `CL-02` | target | script | An archive: true project verifies GREEN without a HANDOFF or gates. | goblin-verify --only CL-02 | Falsifiable: FAILs when `archive:` is not `true`/`false`, and when the config's value disagrees with the one the install recorded in `.gob/installed.json` (so the waiver cannot be flipped on by hand). It cannot observe the *effect* of the waiver on the other rows without re-entering the runner. |
987
+ | `SC-01` | target | lint | No secret file is tracked. | n=$(git ls-files \| grep -iE '(^\|/)\.env\|\.pem$\|\.key$' \| grep -vcE '\.(example\|sample\|template)$'); printf '%s tracked secret file(s)\n' "$n"; [ "$n" = 0 ] | Partial: it sees tracked PATHS, never contents - a secret pasted into a tracked file is invisible here, and the pattern is a name family, so a credential inside `config.ts` is missed by construction. |
988
+ | `SC-02` | target | gate | The ignore rules cover the whole secret family. | goblin-verify --only SC-02 | Builtin, and behavioural: clause 1 reads `.gitignore`; clause 2 asks git's own matcher (`git check-ignore`) for `.env`, `.env.local` and `.env.production` one path at a time, so a rule that looks right but does not match still fails. It cannot see a secret already in git history, or one committed under a name the family does not cover. SKIPs with a reason when there is no `.gitignore` and no `package.json`. |
989
+ | `SC-03` | target | lint | No client-visible name is secret-shaped, and no build output carries a secret literal. | goblin-verify --only SC-03 | Builtin, two clauses: the `NEXT_PUBLIC_*_(SECRET\|TOKEN\|KEY\|PASSWORD\|PRIVATE)` name pattern over source, and known secret prefixes over the declared build output. Partial: a prefix pattern cannot see a secret that does not look like one, and clause 2 says "no build output to scan" on the line rather than skipping silently. The source scan excludes `.gob/` and `.hermes/`, so it cannot match the row text that describes it. |
990
+ | `SC-04` | target | lint | Every cookie write carries its flags. | goblin-verify --only SC-04 | Builtin, same-statement only: a write spread over three lines is not seen, and the row says so. It REPORTS that a JS-written cookie is readable by any script rather than failing on it - that is a design fact, not a bug - so the pass is about the flags, never about the choice. |
991
+ | `SC-05` | target | gate | Every write route validates its input, or is waived. | goblin-verify --only SC-05 | Builtin: 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. `.gob/boundary-waivers` is the escape hatch, and the waived count is printed, so a silent pile-up is visible. |
992
+ | `SC-06` | target | gate | A lockfile exists, and the repo tracks it. | goblin-verify --only SC-06 | Builtin: presence, then `git ls-files --error-unmatch`. 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, not a check. SKIPs with a reason when there is no `package.json`. |
993
+ | `SC-09` | target | advisory | Auth is applied consistently across sibling routes. | advisory | Prose on purpose: "consistently" is a semantic judgement about a private surface no repo here has yet. Counted (advisory; the library holds it now) so the matrix cannot quietly grow prose. |
994
+ | `PF-01` | target | lint | The perf baseline names the commit it measured. | goblin-verify --only PF-01 | Builtin: the metric must equal `ratchet.name` so the budget and the measurement cannot silently disagree, the value must be numeric, the date must exist, the baseline commit must exist AND be an ancestor of HEAD (`HP-05`'s mechanic, reused rather than re-derived), and `ratchet.ceiling` must equal `perf.baseline_value` - otherwise a one-line ceiling raise passes while the row prints the contradiction, which is `I raised the budget and never measured again` (G8-6b). It cannot see whether the metric is the right one for the product, and it never re-measures: re-anchoring is a deliberate operator action. SKIPs with a reason when no perf metric is declared, or none has been recorded yet. |
995
+ | `BN-00` | target | script | Every ban has an enforcement row, every ban row names a replacement, and the ban table is not empty. | goblin-verify --only BN-00 | — (this row is the reason the ban list cannot decay into prose: IN-03's shape applied to bans.tsv, and it agrees in both directions) |
996
+ | `BN-01` | target | lint | No `any` in application TypeScript. | goblin-verify --only BN-01 | Text probe, not an AST: a `: any` inside a string or a comment is reported, and `Record<string, any>` (no leading colon) is missed. The AST form needs a parser the no-npm contract (docs/GUIDE.md) forbids (docs/LIMITS.md #27). SKIPs when an explicit `bans_disabled:` names it, or its globs match no file. |
997
+ | `BN-02` | target | lint | No `@ts-ignore` / `@ts-expect-error` suppressions. | goblin-verify --only BN-02 | Text probe: it sees the directive wherever it appears, including inside a string, and cannot tell a suppression hiding a real error from one on a line that would compile anyway. SKIPs when an explicit `bans_disabled:` names it, or its globs match no file. |
998
+ | `BN-03` | target | lint | No direct network call from a component. | goblin-verify --only BN-03 | Text probe over the declared component globs: it stops the call and cannot tell whether a data layer was written or the call merely moved into a helper. SKIPs when an explicit `bans_disabled:` names it, or its globs match no file. |
999
+ | `BN-05` | target | lint | No import across a declared layer boundary. | goblin-verify --only BN-05 | Reads the `layers:` list; an empty list SKIPs with a reason, never a vacuous pass. It matches an import path naming the target directory's last segment - module aliases and dynamic imports are not seen. SKIPs when no file matches its globs. |
1000
+ | `BN-06` | target | lint | No renderer with Node access (`nodeIntegration: true`). | goblin-verify --only BN-06 | Text probe over the ban table's globs, the same mechanism as BN-01..BN-05: it sees `nodeIntegration: true` wherever it appears, including inside a string, and cannot see a webPreferences object built at run time or spread in from another module. The STRONGER form is a runtime measurement - the renderer prints `process.contextIsolated` and `process.sandboxed` and the check requires true/true - and that needs a real Electron process, which the dependency contract (docs/GUIDE.md) does not allow a shipped rule to launch: it is the project's host gate (docs/LIMITS.md #34). SKIPs when an explicit `bans_disabled:` names it, or `package.json` does not name electron (the `dep:electron` predicate). |
1001
+ | `BN-07` | target | lint | No renderer with context isolation or the process sandbox turned off. | goblin-verify --only BN-07 | One probe for two properties because Electron's own documentation makes them one: disabling `contextIsolation` "also disables process sandboxing", so a repo that has turned either off has lost both. Text probe, with the same false-positive set as BN-06. SKIPs when an explicit `bans_disabled:` names it, or `package.json` does not name electron (the `dep:electron` predicate). |
1002
+ | `BN-08` | target | lint | No dangerous webPreferences. | goblin-verify --only BN-08 | Four one-line patterns from Electron's own security checklist (`webSecurity: false`, `allowRunningInsecureContent: true`, `enableBlinkFeatures`, `<webview allowpopups>`). Text probe: `enableBlinkFeatures` is banned by name rather than by value, so the string is reported even in a comment. SKIPs when an explicit `bans_disabled:` names it, or `package.json` does not name electron (the `dep:electron` predicate). |
1003
+ | `BN-09` | target | lint | No synchronous IPC and no `@electron/remote`. | goblin-verify --only BN-09 | The banned-list shape the wave's note 9 asks for, applied to Electron: `sendSync(` and `@electron/remote` block the renderer's own thread, which is the freeze these bans exist to prevent. Text probe - it sees the call site, not the call graph, so a wrapper around `sendSync` in a file the globs do not match is missed. SKIPs when an explicit `bans_disabled:` names it, or `package.json` does not name electron (the `dep:electron` predicate). |
1004
+ | `FM-01` | target | lint | Every feature file is indexed from the map README, declares its slug and at least one entry path, and carries the four-H2 entry contract. | goblin-verify --only FM-01 | SKIPs (exit 3) when feature_map: is empty - a fresh install has no map and must not be born RED (the D8 shape). When a map IS declared: the README must exist, every features/*.md must be linked from it in the (./<slug>.md) form and every relative .md link must resolve, each feature file's `feature:` must equal its filename stem, it must declare >=1 `entry_paths:`, and its H2s must be exactly Sub-features / How to get to it (user POV) / Driving it with <harness> / Gotchas, in that order. Partial: the README's own H2s are prose this row does not read, and 'the map lists every user-facing feature' is not mechanically checkable - that is docs/LIMITS.md #30, not a row. |
1005
+ | `FM-02` | target | lint | Every entry point a feature declares still resolves in source, and no entry path changed after the map was verified. | goblin-verify --only FM-02 | SKIPs (exit 3) when feature_map: is empty. A tripwire, not a proof. The token is searched under source_root with occurrences under the map's own directory excluded - without that exclusion the map's own entry-path list satisfies the search and the row could never go RED. Freshness is `git log -1 --format=%cs` on the resolved file against the feature's `verified:` date, and git sees a FILE change, not a behaviour change: the row can be RED-when-stale and never GREEN-means-fresh. A token that also occurs in a vendored copy or a build artifact is read as resolved, and a `verified:` date is itself a claim the row cannot test (docs/LIMITS.md #30). W5-4: the search skips the harness's own directories (`.gob/`, `.hermes/`, the declared `harness_dir`) and the map's own directory, so a stub map whose token occurs only in the install no longer resolves; a token that occurs only in the target's own `docs/`, `tests/` or build output still does (docs/LIMITS.md #37). Z1-6: the resolved file must be TRACKED (`git ls-files --error-unmatch`) before its date is compared - an untracked file used to make the freshness clause skip in silence, so a map could claim `verified: 2020-01-01` over source that was never committed. |
1006
+ | `VA-01` | target | gate | The generated verification skill's doctor command runs and exits 0. | goblin-verify --only VA-01 | SKIPs (exit 3) when verify_doctor: is empty (the replay.commit: "" shape). Runs the DECLARED command exactly as GT-02 runs a declared gate, and never a string read out of file content (the v0.2 blocker). Closes P6's stated-but-unenforced clause 'a generated skill that was never executed is a draft': the doctor is the smallest executable proof that the skill's own instructions still run - and it proves only that, never that the doctor tests the right path. |
1007
+ | `RC-01` | target | gate | No file in the shipping tree matches a reference-corpus hash. | goblin-verify --only RC-01 | Four clauses: (1) `reference_manifest:` empty -> SKIP with that reason (the `FM-01`/`VA-01` shape - not born RED); (2) declared but missing or unparseable -> FAIL, never a SKIP; (3) any file under the declared `security: build_output:` whose sha256 appears in an entry's sha256 -> FAIL, naming path + entry; (4) the manifest itself must not sit inside the build output, at the declared path or as a byte-identical copy - it is a listing of every corpus hash, so shipping it ships the corpus's shape. Cannot see: a re-encoded/resized/recoloured asset (level 2), copied text in a shipped string (level 3), or a manifest authored weak - that is `RC-02`. |
1008
+ | `RC-02` | target | lint | The reference manifest is shaped so `RC-01` cannot pass vacuously. | goblin-verify --only RC-02 | Schema `reference-manifest/1`; `generated_from` non-empty; `reference_app.package`/`.version`/`apk_sha256` (64 hex); `entries` non-empty; every entry carries `path`, 64-hex `sha256`, numeric `bytes`; `entry_count` equals `len(entries)`. SKIPs with `RC-01`'s reason when the key is empty. Exists because `RC-01` alone carries the `bans.tsv` weakness: a weakened input passes the check it feeds (`LIMITS.md` #28). It cannot see whether the entries are the *right* hashes - that is as strong as tamper hashing, and `installed.json` is unsigned (`LIMITS.md` #18). |
1009
+ | `RC-03` | target | script | A lab repo tracks no extracted byte: scripts, notes, manifests, docs only. | goblin-verify --only RC-03 | Two clauses: every tracked path falls under a declared allowlist (`scripts/`, `notes/`, `manifests/`, root docs - the harness's own `.gob/` and `.hermes/` files and the `.gitignore` block it appends are the install, not the lab's content, and are excluded the way `FM-02` excludes them); and no tracked file's sha256 equals any hash in a `manifests/*.sha256`. The manifest itself lists paths and hashes, which the lab repo's own README explicitly permits - the check is about *bytes*, and it must not read the manifest as a violation. SKIPs with a reason when no `manifests/` exists. Cannot see a payload renamed and re-encoded - which is why the allowlist is a second, independent trap. |
1010
+ | `RC-04` | target | lint | The acquisition record exists, and the manifest names the target and its source. | goblin-verify --only RC-04 | The header block must name a target slug + version, a source store, and a checksum (md5 or sha256 hex); the manifest must hold a `*.apk` row, the header's named apk must be that row, and a 64-hex token in the header, if present, must equal the row's sha256 (a header carrying only the md5 passes - the comparison is conditional in the engine). Weakest of the four: it proves a record EXISTS, not that the number came from the store (`HP-03`'s defect). It is the first to cut if the matrix gets heavy. |
1011
+ | `PR-01` | source | test | The installer never writes outside its target. | tests/run-tests.sh | — |
1012
+ | `PR-02` | source | test | A second install is a no-op, and an upgrade reports created/updated/unchanged. | tests/run-tests.sh | — |
1013
+ | `PR-03` | source | test | Every target-scope check goes RED under its own violation. | tests/run-tests.sh | — (the negative control the verifier re-runs) |
1014
+ | `PR-04` | source | lint | The repo is portable: no personal path in any reusable rule. | tests/run-tests.sh (the PT-01 body over the source tree, plus tests/) | — |
1015
+
1016
+ ### Advisory rows, named
1017
+
1018
+ 0 of the 27 rows are labelled `advisory`. 0 of them carry no executable check at all — the six
1019
+ advisory rows (`HP-04`, `HS-03`, `CM-02`, `DOC-01`, `DOC-02`, `SC-09`) all moved to the library
1020
+ (`gob verify --library`), so a default run carries no prose row (they are prose the matrix
1021
+ refuses to pretend about).
1022
+
1023
+ - **HP-04** (no check at all) - A stale sentence is corrected in place with a dated parenthetical, never deleted.
1024
+ - **HS-03** (no check at all) - Source probes read text with comments blanked first.
1025
+ - **CM-02** (no check at all) - The commit message was written to a file, not passed with -m.
1026
+ - **DOC-01** (no check at all) - A significant change updates the docs that teach it.
1027
+ - **DOC-02** (no check at all) - System-level changes are recorded wherever the project's standard says they live.
1028
+ - **SC-09** (no check at all) - Auth is applied consistently across sibling routes. Added when the missing entry was measured: the count said 9 and this list held 8.
1029
+
1030
+ `advisory_ceiling` (default 10) caps that count: **SK-03 fails the run when the advisory
1031
+ count exceeds it.** The number of unenforceable rules is itself a gate. Measured (v3):
1032
+ `advisory 6 of ceiling 10`.
1033
+
1034
+ **The budget, stated so the next rule author does not have to work it out (V1/G8-5).** The
1035
+ count is 6 of a ceiling of 10, so **four advisory slots are free**: a tenth advisory row is
1036
+ available, but the one after the ceiling FAILs `SK-03` unless the ceiling is raised in the same
1037
+ change, with the reason written down. `SK-03` prints the arithmetic on every run
1038
+ (`advisory 6 of ceiling 10 (4 free slots)`), and a ceiling that is not a number is a FAIL rather
1039
+ than a silent ADVISORY. The v3 cuts returned the slots the model/role/loop, dependency-audit and
1040
+ CI rows had spent.
1041
+
1042
+ `SK-03`'s count is the count the run itself uses: a row is advisory if its `check` cell says so
1043
+ OR its `enforced_by` cell does.
1044
+
1045
+ ### The ban list (G5)
1046
+
1047
+ `BN-00`..`BN-09` are not ordinary rows: they read `.gob/manifest/bans.tsv`, a table whose
1048
+ every row carries a real command. A ban with no mechanism is a wish, so `.gob/manifest/bans.tsv`
1049
+ holds `id`, the ban, the globs, the `applies_when` glob, the `detect` command, the replacement
1050
+ code, the escape hatch, the reviewer and the source — and `BN-00` fails the whole list if any ban has no enforcement
1051
+ row, if any row names no replacement, or if the table is empty. `bin/goblin-bans` is the engine
1052
+ (`--only <id>` for one, `--list` for the table); each ban's `detect` exits 0 when the tree is
1053
+ clean, 1 when the ban is violated, 3 when it cannot be read (no file matches its globs, no
1054
+ `layers:` declared) and 2 when it could not run at all — a 2 FAILS, never passes.
1055
+
1056
+ Which bans apply is decided by the GLOB alone: a ban runs whenever its `applies_when` glob
1057
+ matches a real file in the tree, and one whose glob matches no file reports itself *not
1058
+ applicable*. The only config knob is `bans_disabled:` (default empty) — naming a ban there turns
1059
+ it OFF and the skip says so and names the key. There is no allow-list.
1060
+ `bans_exempt:` records narrow, reviewed exceptions and `layers:` is what `BN-05` reads. An
1061
+ exception reaches the **probe**, not the engine's stdout: the engine exports `GOBLIN_BANS_ID` and
1062
+ `GOBLIN_BANS_EXEMPT`, the probe drops the exempted hits *before* it chooses its exit code, and an
1063
+ inline `// BAN-OK(<id>): <reason>` on the offending line clears that one line. Filtering stdout
1064
+ after the probe had already decided was decorative and made every exemption a permanent RED
1065
+ (W5-1, measured `rc 0` at `72490f0` → `rc 1` at `7fec08f`); the trade is that a project's **own**
1066
+ probe must honour the two variables or the exception fails **closed** (`docs/LIMITS.md` #36). The
1067
+ probes are text probes — `grep`, no `npm`, no AST — so their false-positive sets are stated on
1068
+ each row and in `docs/LIMITS.md` #27, and G5's `BN-04` is deliberately unshipped for the same
1069
+ reason: it cannot be mechanised without a parser, and a ban that cannot go red is worse than an
1070
+ advisory.
1071
+
1072
+ ### How a rule is added
1073
+
1074
+ A rule enters only by adding a row. If the author cannot write a command, the row's `check`
1075
+ is `advisory` and the rule's cost is visible in the summary line. There is no third option,
1076
+ and `IN-03` plus `SK-03` are what make that true: a row with neither a command nor the
1077
+ `advisory` label fails the manifest before any check runs (exit 3), and the advisory count
1078
+ fails the run when it exceeds the ceiling.
1079
+
1080
+ ### What the matrix cannot do
1081
+
1082
+ A counted rule is still not an enforced one. The cap is a policy, not a proof, and six of
1083
+ these rows are prose. That is stated here rather than implied away.
1084
+
1085
+ ---
1086
+
1087
+ ## 17. The shipped skills in full
1088
+
1089
+ `skills/<name>/SKILL.md` is the form (this is the prose). Every shipped skill names what it
1090
+ cannot see, and `verification` stays a *measurable* step wherever one exists. v3 cut the
1091
+ playbook catalogue with its manifest: the procedures below are the ones a verifier row reads.
1092
+ (The full P1–P15 prose is on the `attic/` branch with the skills it described.)
1093
+
1094
+ ### P6 - `goblin-verify-author`
1095
+
1096
+ - **When:** a project has no live lane, or its gates drift
1097
+ - **Steps:** 1 read the repo, not the user, for entry points<br>- 2 write the gate/check set into the harness dir with the house harness shape<br>- 3 execute it once end to end<br>- 4 add the REPLAY block<br>- 5 seed the feature map and declare `feature_map:`/`source_root:` (`goblin-feature-map`)<br>- 6 hand the generated skill to P12: `verified:` does not advance until the eval record exists
1098
+ - **Verification:** a generated skill that was never executed is a draft, not a deliverable; the harness prints PASS/FAIL and exits non-zero on failure; the REPLAY shows RED pre-change; the map's index and four-H2 entry contract hold (`FM-01`), every declared entry path still resolves (`FM-02`), and the declared `verify_doctor:` exits 0 (`VA-01`)
1099
+ - **Profiles:** architect
1100
+ - **Role:** judgment
1101
+
1102
+ ### P8 - `goblin-bootstrap`
1103
+
1104
+ - **When:** adopting gobstack in a repo, or starting one
1105
+ - **Steps:** 1 classify the project<br>- 2 goblin-install --target .<br>- 3 goblin-verify GREEN<br>- 4 fix .gitignore BEFORE any git init<br>- 5 first HANDOFF, first SPEC, first check script
1106
+ - **Verification:** goblin-verify exits 0 and the created-file list matches installed.json; a repo with no gate declares one and records its first measured numbers
1107
+ - **Profiles:** architect
1108
+ - **Role:** judgment
1109
+
1110
+ ### P9 - `goblin-handoff`
1111
+
1112
+ - **When:** ending a session, or picking up another's
1113
+ - **Steps:** 1 commit uncommitted edits as one internally-consistent wip: commit<br>- 2 write intent / verified state / next steps / what is NOT verified<br>- 3 stale sentences get a dated parenthetical, never deletion<br>- 4 on pickup: verify inherited claims against the artifact
1114
+ - **Verification:** every gate number in the HANDOFF carries 'measured <date>'; the named HEAD matches git rev-parse --short HEAD; the NOT-verified section is non-empty or says 'nothing outstanding'
1115
+ - **Profiles:** any
1116
+ - **Role:** judgment
1117
+
1118
+ ## 18. Integration points
1119
+
1120
+ ### The kanban board
1121
+
1122
+ The board is the fleet's fan-out carrier and the only one with a model knob.
1123
+
1124
+ - an unattended fleet run maps to `goal_mode: true` plus a turn budget. **Corrected 2026-09-25
1125
+ (W3), measured in `hermes_cli/goals.py`:** the truth was weaker than this line claimed. The
1126
+ auxiliary judge is called as `judge_goal(goal_text, last_response)` (`:1662`) — two positional
1127
+ arguments and nothing else: **no contract, no subgoals, no quality gates** (the function takes all
1128
+ three; this call site passes none), so it is not "the predicate re-check"; what it sees is the card's
1129
+ goal text (truncated to 2000 chars) and the worker's own most recent response (truncated to
1130
+ 4000) (`:39`, `:904-905`). The judge is an auxiliary model call at `temperature=0` (`:858-863`)
1131
+ and the loop's whole state is `last_response`, `turns_used` and `nudged_to_finalize` — **there is
1132
+ no progress detector at all** (`:1636-1638`). `wait` is downgraded to `continue` in a kanban loop
1133
+ (`:1666-1667`), a judged-done worker that never finalises is nudged once and then **blocked**
1134
+ (`:1676-1685`), and the budget (`DEFAULT_MAX_TURNS = 20`) is checked before each further turn
1135
+ (`:1689-1696`). The terminal handoff gate is judged on the supplied summary
1136
+ text and **allows the handoff when the judge breaks** (`tools/kanban_tools.py:414-424`,
1137
+ `:447-477`).
1138
+ - a review maps to the board's review request and change-request verbs. The verdict's
1139
+ `{head_sha, base_sha, patch_id, lanes, verdict}` lives in the card metadata **and** in the
1140
+ committed `reviews/<slug>-<head7>.md`. The card is the routing record; the file is the artifact
1141
+ the verifier can test (`PG-01`/`PG-02`/`PG-03`).
1142
+
1143
+ **Rule:** role-pinned fan-out goes through the board, never through a bare subagent spawn.
1144
+
1145
+ ### Cron
1146
+
1147
+ Measured constraint to state plainly: a non-interactive surface inherits the skills **trust**
1148
+ decision and resolves the project root from the job's `workdir`. So **a job whose `workdir` is
1149
+ not inside a trusted repo loads none of gobstack's skills.** The installer prints the
1150
+ `hermes skills trust` step, and `goblin-verify` cannot check it (it is a fleet-runtime property).
1151
+
1152
+ The answer to a lost bootstrap is the same as the answer to compaction: the bootstrap skill is
1153
+ loadable on demand and `AGENTS.md` names it, so recovery is reading one file rather than
1154
+ depending on a hook. On this runtime `on_session_start` exists and cannot inject (its
1155
+ return is discarded — it is an observer), and `pre_llm_call` can inject into the user
1156
+ message; gobstack uses neither as its bootstrap, because recovery-by-reading-one-file
1157
+ is strictly more robust than a hook that six of the seven platforms do not have.
1158
+
1159
+ ### Skills, and the precedence that decides which copy wins
1160
+
1161
+ gobstack **ships** skills and the installer **installs them into the project** at
1162
+ `.hermes/skills/` — never into a profile.
1163
+
1164
+ Measured mechanism: the project tier is the highest precedence (`project → local → external`),
1165
+ project dirs are treated as repo-owned so autonomous skill maintenance never rewrites them, the
1166
+ code and its procedure are versioned together, and they need one `hermes skills trust` per repo.
1167
+
1168
+ Consequence a future agent must know rather than guess: **for a repo with gobstack
1169
+ installed, the copy in `.hermes/skills/` wins.** Profiles keep only skills that are genuinely
1170
+ cross-project. A shared library directory remains available in Hermes for a future shared
1171
+ library, but it is deliberately unused here: it is read-only to maintenance as well, yet it is
1172
+ *not* repo-versioned, and that is the property that matters.
1173
+
1174
+ ### The fleet's routing text — what gobstack ships and cannot fix
1175
+
1176
+ gobstack **does not edit the fleet's orchestrator constitution and cannot**: it writes
1177
+ nothing outside its target repo.
1178
+
1179
+ It ships the corrected routing text here, as an escalation, because the measured defect is
1180
+ high-cost and lives on the fleet side: the rule deciding *whether specialist work happens at
1181
+ all* is **false where the orchestrator reads it first**. A bare subagent spawn cannot reach the
1182
+ architect/coder/reviewer profiles; delegation that must land there goes through the board. The
1183
+ orchestrator's own text says the opposite in its first lines, and the word "kanban" does not
1184
+ appear there.
1185
+
1186
+ The one mechanical thing gobstack can do is lint its own artifacts: a source test that no shipped skill tells a worker to reach another profile with a bare subagent spawn.
1187
+
1188
+ ### The referenced standard
1189
+
1190
+ Referenced and hash-pinned, never moved, never superseded, never vendored. The `AGENTS.md` gob block
1191
+ carries `practice:` and `practice_sha256:`; `goblin-verify` compares. The `practice` skill's body
1192
+ is a pointer and a mandate — read the standard at the configured path before starting work; if
1193
+ the path is absent, say so and continue with the gobstack rules alone.
1194
+
1195
+ An edit to the standard that **is** intended is re-recorded with one explicit command,
1196
+ `goblin-install --target <dir> --re-pin`, which rewrites that one config line and prints the old
1197
+ and new hash; nothing re-pins automatically, because a self-updating pin would be the silent edit
1198
+ it exists to catch (`docs/GUIDE.md`, "An edited standard is not a dead end").
1199
+
1200
+ Three existing consumers of that standard have its path baked in, and gobstack is not one of
1201
+ them: it reads the path from config, so moving the standard is a one-line config change.
1202
+
1203
+ ---
1204
+
660
1205
  ## Appendix — a 45-minute first run, on one page
661
1206
 
662
1207
  # 0. get it
@@ -667,14 +1212,14 @@ deadline.
667
1212
  git init -b main
668
1213
  gob init --heuristic # the brief + schema; answer it in a proposal file
669
1214
  gob init --write .gob-init-proposal.md --yes
670
- # expect: created 23 (no skills — those are opt-in)
1215
+ # expect: created 22 (the 5-skill core tier + the categories inventory vendor; the Hermes tier is opt-in; FIX 3 drops the unchecked SPEC/reviews)
671
1216
 
672
1217
  # 2. commit and check
673
1218
  git add -A && git commit -m "chore: install gobstack"
674
1219
  .gob/bin/goblin-verify # expect: mostly PASS, some SKIP
675
1220
 
676
1221
  # 3. make it yours
677
- $EDITOR AGENTS.md # branch, owner_email, and YOUR real gate commands (the gob block)
1222
+ $EDITOR AGENTS.md # YOUR real gate commands (the gob block)
678
1223
 
679
1224
  # 4. prove a check can fail (the habit that matters) - the same block §7 runs
680
1225
  # REPLAY-BEGIN (this exact block is run by tests/t-doc-guide.sh - keep the two copies identical)