@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
@@ -8,10 +8,9 @@ the docs name it by what it changed and point here.
8
8
  | code | revision | in one line |
9
9
  |---|---|---|
10
10
  | W1 | engine mode | the rule table can live in a shared engine (`engine_dir:`), not only per-repo; declared-but-unusable is exit 2 with no fallback |
11
- | W3 | `gob upgrade` | the 8-step migration of a repo to the global engine, two commits, refusal on every unsafe tree |
12
11
  | W4 | class + ci-gate | the five domain classes replaced the A–E letters (read-time aliases kept), and `ci-gate` became a declared part with its own workflow |
13
12
  | W5 | report width | the verify report learned columns: payloads fold at the report width, multi-line payloads print whole, `--verbose` prints everything |
14
- | W6 | neutral-first | a default install ships no agent skills (`gob sync --platform <p>` is the opt-in), the desktop class merged into software, and the wizard got its health-check screen |
13
+ | W6 | neutral-first | a default install ships no agent skills, the desktop class merged into software, and the wizard got its health-check screen |
15
14
  | G8 | audit finding 8 | the verify-UX audit's surface classes: refusals that print nothing, rows that pass vacuously, `--only` selections that run nothing |
16
15
  | G8-2 | stdout discipline | the engine banner moved to stderr; stdout carries verdict lines and the run's own annotations only |
17
16
  | X1 | exit-code audit | every refusal and every silent path got a distinct exit code and a stated reason (0 green, 1 red, 2 refusal/config, 3 skip-by-design) |
package/manifest/bans.tsv CHANGED
@@ -1,9 +1,9 @@
1
- id ban globs detect replacement escape reviewer source
2
- BN-01 No `any` in application TypeScript. src bash .gob/bans/grep-ban.sh -e ':[[:space:]]*any\b' -e '<any>' -e '<any,' -e ',any>' -e 'any\[\]' src Use the real type, or narrow an `unknown` at the boundary `// BAN-OK(BN-01): <reason>` on the offending line (a non-empty reason is required), or list the path under bans_exempt: architecture R2 section A12 (Dune rule 2); R1 section 3
3
- BN-02 No `@ts-ignore` / `@ts-expect-error` suppressions. src bash .gob/bans/grep-ban.sh -e '@ts-(ignore|expect-error|nocheck)' src Fix the type, or narrow with `unknown` at the boundary `// BAN-OK(BN-02): <reason>` architecture R1 section 6 (suppressions are stink)
4
- BN-03 No direct network call from a component. src/components app bash .gob/bans/grep-ban.sh -e '\bfetch[[:space:]]*\(' src/components app Put the call in the data layer (src/data/*) `// BAN-OK(BN-03): <the endpoint, and when it migrates>` architecture R2 section A12; E1 (overreach)
5
- BN-05 No import across a declared layer boundary. src bash .gob/bans/layer-check.sh Move the code, or import through the declared accessor declare the pair under layers:, or move the file architecture R2 section A12 (Dune's dependency-graph check)
6
- BN-06 No renderer with Node access (`nodeIntegration: true`). src app electron bash .gob/bans/grep-ban.sh -e 'nodeIntegration[[:space:]]*:[[:space:]]*true' src app electron Pass data over IPC through a preload script (contextBridge); leave nodeIntegration false `// BAN-OK(BN-06): <why the renderer needs a Node primitive>` architecture G6 section B.2 item 1 (Electron security S13/S14)
7
- BN-07 No renderer with context isolation or the process sandbox turned off. src app electron bash .gob/bans/grep-ban.sh -e 'contextIsolation[[:space:]]*:[[:space:]]*false' -e 'sandbox[[:space:]]*:[[:space:]]*false' src app electron Keep `contextIsolation: true` and `sandbox: true`; expose a narrow API from the preload script `// BAN-OK(BN-07): <why isolation is off, and what replaces it>` architecture G6 section B.2 item 2 (Electron security S14)
8
- BN-08 No dangerous webPreferences. src app electron bash .gob/bans/grep-ban.sh -e 'webSecurity[[:space:]]*:[[:space:]]*false' -e 'allowRunningInsecureContent[[:space:]]*:[[:space:]]*true' -e 'enableBlinkFeatures' -e 'allowpopups' src app electron Fix the origin or the CSP; a disabled web security model is not a workaround `// BAN-OK(BN-08): <the check, and when it goes>` architecture G6 section B.2 item 9 (Electron security S14 checklist items 6, 8, 10, 11)
9
- BN-09 No synchronous IPC and no `@electron/remote`. src app electron bash .gob/bans/grep-ban.sh -e 'sendSync[[:space:]]*\(' -e '@electron/remote' src app electron Use `ipcRenderer.invoke` / `ipcMain.handle` (async), and a preload-exposed API instead of @electron/remote `// BAN-OK(BN-09): <why a blocking call is the only option here>` architecture G6 section B.2 item 11 (Electron performance S13)
1
+ id ban globs detect replacement escape reviewer source applies_when
2
+ BN-01 No `any` in application TypeScript. src bash .gob/bans/grep-ban.sh -e ':[[:space:]]*any\b' -e '<any>' -e '<any,' -e ',any>' -e 'any\[\]' src Use the real type, or narrow an `unknown` at the boundary `// BAN-OK(BN-01): <reason>` on the offending line (a non-empty reason is required), or list the path under bans_exempt: architecture R2 section A12 (Dune rule 2); R1 section 3 **/*.ts **/*.tsx
3
+ BN-02 No `@ts-ignore` / `@ts-expect-error` suppressions. src bash .gob/bans/grep-ban.sh -e '@ts-(ignore|expect-error|nocheck)' src Fix the type, or narrow with `unknown` at the boundary `// BAN-OK(BN-02): <reason>` architecture R1 section 6 (suppressions are stink) **/*.ts **/*.tsx
4
+ BN-03 No direct network call from a component. src/components app bash .gob/bans/grep-ban.sh -e '\bfetch[[:space:]]*\(' src/components app Put the call in the data layer (src/data/*) `// BAN-OK(BN-03): <the endpoint, and when it migrates>` architecture R2 section A12; E1 (overreach) **/*.ts **/*.tsx **/*.js **/*.jsx
5
+ BN-05 No import across a declared layer boundary. src bash .gob/bans/layer-check.sh Move the code, or import through the declared accessor declare the pair under layers:, or move the file architecture R2 section A12 (Dune's dependency-graph check) **/*.ts **/*.tsx **/*.js **/*.jsx
6
+ BN-06 No renderer with Node access (`nodeIntegration: true`). src app electron bash .gob/bans/grep-ban.sh -e 'nodeIntegration[[:space:]]*:[[:space:]]*true' src app electron Pass data over IPC through a preload script (contextBridge); leave nodeIntegration false `// BAN-OK(BN-06): <why the renderer needs a Node primitive>` architecture G6 section B.2 item 1 (Electron security S13/S14) dep:electron
7
+ BN-07 No renderer with context isolation or the process sandbox turned off. src app electron bash .gob/bans/grep-ban.sh -e 'contextIsolation[[:space:]]*:[[:space:]]*false' -e 'sandbox[[:space:]]*:[[:space:]]*false' src app electron Keep `contextIsolation: true` and `sandbox: true`; expose a narrow API from the preload script `// BAN-OK(BN-07): <why isolation is off, and what replaces it>` architecture G6 section B.2 item 2 (Electron security S14) dep:electron
8
+ BN-08 No dangerous webPreferences. src app electron bash .gob/bans/grep-ban.sh -e 'webSecurity[[:space:]]*:[[:space:]]*false' -e 'allowRunningInsecureContent[[:space:]]*:[[:space:]]*true' -e 'enableBlinkFeatures' -e 'allowpopups' src app electron Fix the origin or the CSP; a disabled web security model is not a workaround `// BAN-OK(BN-08): <the check, and when it goes>` architecture G6 section B.2 item 9 (Electron security S14 checklist items 6, 8, 10, 11) dep:electron
9
+ BN-09 No synchronous IPC and no `@electron/remote`. src app electron bash .gob/bans/grep-ban.sh -e 'sendSync[[:space:]]*\(' -e '@electron/remote' src app electron Use `ipcRenderer.invoke` / `ipcMain.handle` (async), and a preload-exposed API instead of @electron/remote `// BAN-OK(BN-09): <why a blocking call is the only option here>` architecture G6 section B.2 item 11 (Electron performance S13) dep:electron
@@ -0,0 +1,18 @@
1
+ # manifest/categories.tsv — the auxiliary category inventory (DATA, never code).
2
+ # The reader is the AGENT following the init brief's "external categories" section; no
3
+ # gobstack executable line reads this file. init vendors it to .gob/engine/categories.tsv
4
+ # (hash-pinned in installed.json like every other engine file), so the target's copy is
5
+ # pinned to this repo of origin.
6
+ # Columns:
7
+ # category the composition category (a stable name the brief and decisions cite)
8
+ # pack the external pack name
9
+ # source the upstream repository (the URL `added_by` records on install)
10
+ # license the upstream license (a row with a pending/unknown license must not be listed)
11
+ # provides what the pack would add, as skills/docs/checklists — never pre-built payloads
12
+ # fits_when the predicate the AGENT evaluates against THIS repo (data, not code: the
13
+ # agent is the adjudicator because it can read the repo; gobstack's code cannot)
14
+ # Rows are appended only with a verified upstream license and a real fetchable source.
15
+ category pack source license provides fits_when
16
+ process-skills superpowers https://github.com/obra/superpowers MIT TDD, systematic-debugging, brainstorming, writing-plans loops; all as SKILL.md packs repo does feature/bugfix work and wants battle-tested process skills
17
+ spec-first spec-kit https://github.com/github/spec-kit MIT spec.md/plan.md/tasks.md checklists + SDD flow; pairs with an LX-* row that checks spec-before-change repo is spec-driven or multi-session feature work dominates
18
+ roles-workflows BMAD-METHOD https://github.com/bmad-code-org/BMAD-METHOD MIT role/workflow docs (PM/architect/dev loops) for repo-level planning ceremony repo is greenfield/product-shaped with planning phases
@@ -1,88 +1,32 @@
1
1
  id scope rule enforced_by artifact check if_not_why
2
2
  IN-01 target The install exists and records its version + every file's hash. script .gob/installed.json 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)
3
3
  IN-02 target Every installed file still matches its recorded hash. script .gob/installed.json 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)
4
- IN-03 target The verifier's own manifest is complete: every rule has a check or is advisory. script manifest/enforcement.tsv 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/ENFORCEMENT.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)
5
- IN-04 target No file goblin-stack did not create has been overwritten. script .gob/installed.json 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.
4
+ IN-03 target The verifier's own manifest is complete: every rule has a check or is advisory. script manifest/enforcement.tsv 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)
5
+ IN-04 target No file gobstack did not create has been overwritten. script .gob/installed.json 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.
6
6
  HP-01 target HANDOFF.md exists at the root. gate HANDOFF.md test -f HANDOFF.md —
7
7
  HP-02 target The HANDOFF carries its five required sections. lint HANDOFF.md 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`.
8
8
  HP-03 target Every gate number is a measurement with a date, never a copy. lint HANDOFF.md 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.
9
- HP-04 target A stale sentence is corrected in place with a dated parenthetical, never deleted. advisory HANDOFF.md 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.
10
9
  HP-05 target The HANDOFF names the HEAD it describes. gate HANDOFF.md 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).
11
- SP-01 target A *-SPEC.md file exists at the repo root (any round, not the current one - round-scoping arrives with the W6 staged chain). gate *-SPEC.md ls ./*-SPEC.md >/dev/null 2>&1 Skipped when class: D and disabled: [spec].
12
- SP-02 target The SPEC is committed, not left untracked. script git ls-files test -z "$(git ls-files --others --exclude-standard -- '*-SPEC.md')" —
13
- SP-03 target Every AC: item is checkable without a human. lint *-SPEC.md 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.
14
- GT-01 target The gate set is declared, never inferred from the stack. gate AGENTS.md 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 9/10 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.
10
+ GT-01 target The gate set is declared, never inferred from the stack. gate AGENTS.md 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.
15
11
  GT-02 target Every declared gate runs and exits 0. gate AGENTS.md gates (gate_<name>_cmd:) goblin-verify --only GT-02 —
16
12
  GT-03 target The round reports one line of measured numbers. script .gob/last-gate-line 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.
17
- GT-04 target A ratchet is declared with a ceiling. gate AGENTS.md ratchet.*: goblin-verify --only GT-04 —
18
- GT-05 target The ratchet has not risen. gate ratchet.cmd goblin-verify --only GT-05 —
19
- HS-01 target Asserting harnesses follow the house shape. lint harness_dir/* goblin-verify --only HS-01 A declared harness_dir that is absent FAILS when the class scaffolds one (config `scaffold_checks: yes`, classes A and C); a class that ships no harness dir (B/D/E) 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.
20
- HS-02 target A check green on both trees proves nothing - the REPLAY must show RED pre-change. gate harness_dir/*, replay.env, replay.cmd 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.
21
- HS-03 target Source probes read text with comments blanked first. advisory harness_dir/* 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.
22
- CM-01 target Commits carry the owner identity, not an ambient one. Current scope: this gates the identity of HEAD (the last commit) at the moment of the run - earlier commits by other authors are not scanned. gate git log test "$(git log -1 --format='%ae')" = "$(grep '^owner_email:' AGENTS.md | cut -d' ' -f2)" note: this repo records a different owner (you are probably new here) — commit with git -c user.email=<owner_email> --author=<owner_email>, or update owner_email: in AGENTS.md
23
- CM-02 target The commit message was written to a file, not passed with -m. advisory git log 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.
24
- CM-03 target Commit-as-you-go: the working tree is not carrying a dead run's work. script git status --porcelain goblin-verify --only CM-03 —
25
- MD-01 target No model name is hardcoded in any reusable rule. lint skills/ manifest/ bin/ templates/ presets/ .gob/ .hermes/ for d in skills manifest bin templates presets .gob .hermes; do [ -d "$d" ] || continue; grep -rniE '(d[e]epseek|cl[a]ude|g[p]t-[0-9]|gr[o]k|g[e]mini|g[l]m-[0-9]|k[i]mi)[a-z0-9.:_-]*' "$d" && exit 1; done; exit 0 — (the pattern is written with character classes so this row cannot match itself; tests/t-verify-red.sh proves it still catches a real model name. SCOPE, stated so a repo-wide grep is not re-reported as a hole (G8-10): this row reads the seven directories an install writes rules into - skills/ manifest/ bin/ templates/ presets/ .gob/ .hermes/. It does NOT read tests/, docs/, or the source automations/ directory; tests/ is where a control must be free to WRITE the thing it guards, and the source directories are covered by MD-01's own body in tests/run-tests.sh, which scans skills manifest bin templates presets automations. Both control strings are assembled at run time, so a repo-wide grep over the whole tree is 0 and the row's own scope is 0 by construction.)
26
- MD-02 target The review lane is a different model family from the code lane. advisory roles.yaml + mapping file goblin-verify --only MD-02 goblin-stack cannot choose the fleet's models; today's map resolves both roles to the same family. Reported as ADV, never gated. W5-6: the JUDGE lane's resolved model is compared with the code lane's too, because `JG-02` proves only that the declared profile NAMES are disjoint; it is still ADV, never gated, and the measured state of this box is recorded in `docs/LIMITS.md` #38.
27
- MD-03 target Role-pinned fan-out goes through kanban, not a model-less subagent spawn. advisory skills/* advisory It is a fleet-runtime property: no repo-local file can observe which tool created a worker. Enforced at board level, described in docs/INTEGRATION.md.
28
- PG-01 target The reviewed artifact is named by SHA, and that SHA exists. gate reviews/*.md goblin-verify --only PG-01 —
29
- PG-02 target The gate is chosen by the change, not the repo, and the tier's evidence exists. script reviews/*.md goblin-verify --only PG-02 —
30
- PG-03 target A new head voids the verdict. gate reviews/*.md + git goblin-verify --only PG-03 —
31
- PG-04 target Never bypass what the forge enforces. advisory — advisory Needs the forge: GitHub's restrictions do not apply to admins, and a sole-admin repo has nobody the gate binds. Not observable from the repo.
32
- PG-05 target No required check that self-skips. lint .github/workflows/* goblin-verify --only PG-05 Text, not a YAML parser. Three clauses per job: the job declares at least one `run:`/`uses:` step (else the check runs nothing); the JOB carries no `if:` (else the whole required check self-skips); and no STEP carries an `if:` (else that step - possibly the gate step - self-skips). The old body flagged only 'every step guarded', which PASSED the real shape: in the estate's one existing workflow a deliberately UNGUARDED credential step decides whether the guarded compile step runs, so `guarded < steps` and the row reported PASS on the workflow it exists to catch (G8 section 3, re-measured V3-4). Deliberately strict, and the strictness is the point: GitHub reports a SKIPPED job as Success even when it is a required check (docs S1/S2), so a conditional step is a step that can green-light a commit whose gate never ran. False positives it cannot avoid: a `#` inside a quoted string is read as a comment, a flow-style (`jobs: {...}`) mapping is refused rather than parsed, and a conditional step that is genuinely safe is indistinguishable from the trap - the remedy is to move the condition into the declared command, or into a second job that is not the required check. It cannot see branch-protection state, the required-check list, or whether the workflow ever ran (`PG-04`), and a repo with no workflow passes with the count printed on the line.
33
- PG-06 target The gate CI runs is the gate the project declares. gate .github/workflows/* + AGENTS.md gates (gate_<name>_cmd:) goblin-verify --only PG-06 The declared set comes from `g_yaml_gates`, the reader `GT-01` uses, so a gate cannot vanish from the comparison in silence (G8-3). A workflow passes when the whole declared set is RUN: the verifier with no `--only` (a full run executes every declared gate through `GT-02`), or each declared gate command verbatim. It reads TEXT with comments blanked first, and only `run:` payloads and block-scalar bodies count - a command sitting in a `name:`, `env:` or `with:` value is dropped, which is what stops a comment or a label from satisfying the row. What it cannot see: that the forge marks that job a REQUIRED check, that the job is the one the forge waits on, or that the workflow can fail at all (`PG-05`). A repo with no workflow reports SKIP with that reason instead of a vacuous pass. The lane's own enforcement is the TARGET repo's, not goblin-stack's (`docs/LIMITS.md` #34): goblin-stack can prove the file invokes the gate and cannot make the forge run it, so this row is a text reading of the target's CI and never a claim that CI gated the SHA.
34
- DS-01 target Runtime data is not test fixture: a gate run must not write it. script AGENTS.md runtime_data: goblin-verify --only DS-01 —
35
- DS-02 target Snapshot before, verify after. gate same as DS-01 goblin-verify --only DS-02 —
36
- DOC-01 target A significant change updates the docs that teach it. advisory README.md, docs/ advisory 'Significant' is a judgement; a diff-size heuristic fails on the cases that matter.
37
- DOC-02 target System-level changes are recorded wherever the project's standard says they live. advisory — advisory Where the recording lives may be owned by a stricter external rule than goblin-stack may add; the repo can only state it.
38
13
  SK-01 target Every shipped skill has name + description frontmatter. lint .hermes/skills/*/SKILL.md 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.
39
- SK-02 target The installed skills match their recorded hashes (no drift). script .hermes/skills/, installed.json goblin-verify --only SK-02 —
14
+ SK-02 target The skills on disk match their recorded hashes (no drift). script .hermes/skills/, installed.json goblin-verify --only SK-02 —
40
15
  SK-03 target A rule with no mechanism is labelled advisory, and the advisory count is reported. script manifest/enforcement.tsv goblin-verify --only SK-03 —
41
16
  SK-04 target Every shipped skill says what it cannot see. lint .hermes/skills/*/SKILL.md 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.
42
- PT-01 target No tenant-specific string inside a reusable rule. lint skills/ manifest/ bin/ templates/ presets/ .gob/ .hermes/ for d in skills manifest bin templates presets .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 same directory list MD-01 uses: the rules an install actually writes live in `.gob/` and `.hermes/`, not in the source layout. Two documented exceptions: `AGENTS.md`, which holds `models_file:`/`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.)
43
- PT-02 target The default branch is declared, not assumed. gate AGENTS.md branch: goblin-verify --only PT-02 —
44
- CL-01 target Every part the class requires is present, and every part it forbids is absent. script AGENTS.md class: + manifest/classes.tsv goblin-verify --only CL-01 —
45
- CL-02 target An archive: true project verifies GREEN without a HANDOFF or gates. script AGENTS.md archive: 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.
46
17
  SC-01 target No secret file is tracked. lint repo 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.
47
- SC-02 target The ignore rules cover the whole secret family. gate .gitignore + git check-ignore 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`.
48
- SC-03 target No client-visible name is secret-shaped, and no build output carries a secret literal. lint repo + security's build_output 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.
49
- SC-04 target Every cookie write carries its flags. lint repo 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.
50
- SC-05 target Every write route validates its input, or is waived. gate security's write_routes 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.
51
- SC-06 target A lockfile exists, and the repo tracks it. gate package.json + lockfile 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`.
52
- SC-07 target The dependency audit record is present, dated, fresh, and clean-or-waived. gate .gob/audit.tsv, .gob/audit-waiver.tsv goblin-verify --only SC-07 Builtin, OFFLINE by construction: it reads the record and never the network. The record comes from `.gob/bin/goblin-audit`, run once, deliberately; the waiver count is printed on the gate line so the debt is loud even when the row passes. It cannot see an advisory the registry did not know on the day the record was taken. SKIPs with a reason when no record exists yet.
53
- SC-08 target No dependency runs an install-time script that is not on the allowlist. gate package-lock.json + .gob/install-hooks.allowlist goblin-verify --only SC-08 Builtin over `package-lock.json`'s `hasInstallScript`: a pnpm/yarn lockfile has no such field, so those repos get a SKIP with that reason rather than a vacuous pass, and a MINIFIED (one-line) lockfile is read like a pretty-printed one - the text is normalised into the pretty shape before the line-anchored reader sees it, so a hook inside a one-line lock FAILs instead of being reported as `0 install hook(s)` (Z2-2: before that, a one-line lock PASSED vacuously). A `lockfileVersion` 1 lock records its hooks under `dependencies`, not under `node_modules/` keys, so the line-anchored reader enumerates nothing there either and prints the same `0 install hook(s), 0 allowlisted` PASS over a surface it did not read (measured at 0.4.2; npm <= 6 records no `hasInstallScript` at all, so for a genuine v1 lock this is blindness rather than a wrong answer). Lowest-value row of the ten - regression detection - and the first to cut if the matrix gets heavy.
54
- SC-09 target Auth is applied consistently across sibling routes. advisory — advisory Prose on purpose: "consistently" is a semantic judgement about a private surface no repo here has yet. Counted (9 of ceiling 10) so the matrix cannot quietly grow prose.
55
- PF-01 target The perf baseline names the commit it measured. lint AGENTS.md perf: + ratchet: 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 the class declares no metric, or none has been recorded yet.
56
- AU-01 target An automation's producer is deterministic and network-free. lint automations/*.sh goblin-verify --only AU-01 Partial: proves that no line of a producer begins with a network or forge verb, not that the script is otherwise deterministic. W1: in global mode the first producer glob resolves under the engine dir (the resolution chain); the repo-local globs stay. New clause: a repo with NO producer anywhere (repo or engine) SKIPs with `no automation producer found (repo or engine)` instead of FAILing — the old FAIL was a born-RED artifact of the glob; a repo that declares its own automations but has no producer still FAILs.
57
- AU-02 target A report's dedup key is a function of content only - no date, no run id. script reports/*/report.yaml goblin-verify --only AU-02 Builtin: it recomputes the key from the report's own `repo` and `symptom` and requires the recorded `dedup_key` to equal it, then refuses a key carrying a date. Skipped with a reason when the repo holds no report - nothing to dedup. It cannot see whether two reports should have been one: a normalisation that merges two genuinely different symptoms is a duplicate card, not a lost report.
58
- AU-03 target A reporter run leaves the tree and the harness untouched. gate git status, harness_dir goblin-verify --only AU-03 Builtin: asserts a clean working tree, and - when HEAD is a reporter commit - that no path under the declared harness_dir appears in it. Skipped with a reason when the repo holds no reports/ - no reporter has run here. It cannot see a reporter that edited the tree and committed the edit as part of the report.
59
- AU-04 target An automation's skill declares its own write surface. lint .hermes/skills/goblin-bugreporter, .hermes/skills/goblin-drift-audit goblin-verify --only AU-04 Partial: proves every installed automation skill carries a `## Write surface` section. 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.
60
18
  BN-00 target Every ban has an enforcement row, every ban row names a replacement, and the ban table is not empty. script .gob/manifest/bans.tsv + .gob/manifest/enforcement.tsv 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)
61
- BN-01 target No `any` in application TypeScript. lint .gob/manifest/bans.tsv + .gob/bans/ 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/CONTRACTS.md) forbids (docs/LIMITS.md #27). SKIPs when the ban is not in `bans:` or its globs match no file.
62
- BN-02 target No `@ts-ignore` / `@ts-expect-error` suppressions. lint .gob/manifest/bans.tsv + .gob/bans/ 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 the ban is not in `bans:` or its globs match no file.
63
- BN-03 target No direct network call from a component. lint .gob/manifest/bans.tsv + .gob/bans/ 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 the ban is not in `bans:` or its globs match no file.
19
+ BN-01 target No `any` in application TypeScript. lint .gob/manifest/bans.tsv + .gob/bans/ 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.
20
+ BN-02 target No `@ts-ignore` / `@ts-expect-error` suppressions. lint .gob/manifest/bans.tsv + .gob/bans/ 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.
21
+ BN-03 target No direct network call from a component. lint .gob/manifest/bans.tsv + .gob/bans/ 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.
64
22
  BN-05 target No import across a declared layer boundary. lint .gob/manifest/bans.tsv + .gob/bans/ 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.
65
- BN-06 target No renderer with Node access (`nodeIntegration: true`). lint .gob/manifest/bans.tsv + .gob/bans/ 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/CONTRACTS.md) does not allow a shipped rule to launch: it is the project's host gate (docs/LIMITS.md #34). SKIPs when the ban is not in `bans:` or its globs match no file.
66
- BN-07 target No renderer with context isolation or the process sandbox turned off. lint .gob/manifest/bans.tsv + .gob/bans/ 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 the ban is not in `bans:` or its globs match no file.
67
- BN-08 target No dangerous webPreferences. lint .gob/manifest/bans.tsv + .gob/bans/ 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 the ban is not in `bans:` or its globs match no file.
68
- BN-09 target No synchronous IPC and no `@electron/remote`. lint .gob/manifest/bans.tsv + .gob/bans/ 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 the class exists 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 the ban is not in `bans:` or its globs match no file.
23
+ BN-06 target No renderer with Node access (`nodeIntegration: true`). lint .gob/manifest/bans.tsv + .gob/bans/ 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).
24
+ BN-07 target No renderer with context isolation or the process sandbox turned off. lint .gob/manifest/bans.tsv + .gob/bans/ 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).
25
+ BN-08 target No dangerous webPreferences. lint .gob/manifest/bans.tsv + .gob/bans/ 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).
26
+ BN-09 target No synchronous IPC and no `@electron/remote`. lint .gob/manifest/bans.tsv + .gob/bans/ 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).
69
27
  FM-01 target 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. lint <feature_map dir> 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.
70
28
  FM-02 target Every entry point a feature declares still resolves in source, and no entry path changed after the map was verified. lint <feature_map dir> + git 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.
71
- VA-01 target The generated verification skill's doctor command runs and exits 0. gate AGENTS.md verify_doctor: 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.
72
- JG-01 target A judge verdict is recorded as a row whose evidence resolves. script .gob/loop/decisions.tsv goblin-verify --only JG-01 Builtin: it proves the named handle EXISTS - a commit `git rev-list --all` knows, a path under the root, or a `sha256:` matching a file under `.gob/loop/` - never that the handle SUPPORTS the verdict beside it: a judge may cite a real commit that has nothing to do with the claim. It also cannot see whether the verdict was reached by the declared judge lane. A row with fewer columns than the header is a FAIL, not a silent skip. SKIPs (exit 3) when there is no loop record: nothing to check is reported as a reason, never as a pass.
73
- JG-02 target The judge lane is disjoint from the author lane. gate roles.yaml + the mapping file goblin-verify --only JG-02 Builtin: it proves the DECLARED lane sets are disjoint (profile names), not that a judge ran on one - no repo-local file observes which profile ran (the blindness `MD-03` records), and family equality is not this row's business (`MD-02` owns it). An unresolved lane is an ADV carrying the one-line remedy, never a FAIL: a box with no mapping file must not be failed for the fleet's routing. Both sentinels count as unresolved - `?` (the installed path) and `unknown` (the checkout path) - because a check that greps for one passes on the other.
74
- JG-03 target A judge lane that has never returned a non-`done` verdict is escalated. advisory .gob/loop/decisions.tsv advisory A lane that has returned two verdicts cannot be called always-yes, and a repo sees only its own rows; the history that would show a bad lane lives across cards and repos. The counter-measure is policy - one known-red control verdict per wave, recorded in docs/LOOP.md - and it is counted, not enforced.
75
- LP-01 target The exit predicate is a command, and it ran before iteration 1. script .gob/loop/predicate, .gob/loop/first-run goblin-verify --only LP-01 Builtin: it proves the predicate is exactly ONE command and that a recorded first run exists whose timestamp is at or before the first log row - not that the command was actually run, and not that the `exit=` value was measured rather than typed (`HP-03`'s defect, one artifact over). It deliberately does NOT re-run the predicate: a stop condition is legitimately red before the loop finishes, so re-running it would fail a repo whose loop is working, and PROJECT-PRACTICE section 7 forbids a probe that writes. Timestamps compare on their `YYYY-MM-DDThh:mm:ss` prefix, so records written in different UTC offsets compare as text.
76
- LP-02 target The predicate is pinned at loop start and is never relaxed. script .gob/loop/predicate.sha256 goblin-verify --only LP-02 Builtin: it proves the predicate file on disk still hashes to the recorded pin - never that the predicate is the RIGHT one, and never who edited it. The digest covers the predicate file alone: a loop that quietly relaxes a predicate living somewhere else is not seen. The remedy is printed with the failure and is never automatic, the `IN-02` `--re-pin` shape. W5-7: a close-and-reopen is auditable - every `closed-<date>/` archive must hold its predicate AND the pin it was closed under, and the live pin must name the archived digest on a `previous:` line - which catches a SILENT relaxation, never a WEAKER one (nothing in bash judges that: `docs/LIMITS.md` #39).
77
- LP-03 target The loop declares a budget, and the record never exceeds it. gate .gob/loop/budget, .gob/loop/decisions.tsv goblin-verify --only LP-03 Builtin: it proves the declared budget is a positive integer at or under the configured `loop_max_turns_ceiling`, and that the record holds no more verdict rows than the budget - not that the budget is affordable. Cost is not a field the record carries: a turn budget bounds turns, and the auxiliary judge call per turn is unpriced (`docs/LIMITS.md` #32). A worker cannot edit its own card body, so a CARD predicate is already protected; this row is the file-predicate half.
78
- LP-04 target A loop making no progress stops instead of thrashing. gate .gob/loop/decisions.tsv goblin-verify --only LP-04 Builtin: it measures a CHANGED EVIDENCE POINTER, which is a proxy for progress, not progress. Three consecutive verdict rows with an identical non-empty pointer and a non-`predicate:green` result is a FAIL that names the row numbers. A loop that edits a file each turn to keep the pointer moving is not caught, which is why LP-05 and the budget sit beside it. Nothing in the Hermes kanban goal loop detects a lack of progress at all - `run_kanban_goal_loop` carries no progress state.
79
- LP-05 target A loop that ended without its predicate green carries a written-up reason. script .gob/loop/stuck.md, .gob/loop/decisions.tsv goblin-verify --only LP-05 Builtin: the three-non-blank-line threshold is arbitrary and stated as such - it proves a write-up EXISTS, the way `SP-03` proves a bullet LOOKS checkable. Nothing can make the write-up true, and the row cannot see whether it names the right dead end or whether the loop stopped too early. A loop whose last row IS `predicate:green` needs no write-up and the row passes without reading one.
80
- RC-01 target No file in the shipping tree matches a reference-corpus hash. gate reference-manifest.json + security: build_output: 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`.
81
- RC-02 target The reference manifest is shaped so `RC-01` cannot pass vacuously. lint reference-manifest.json 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).
82
- RC-03 target A lab repo tracks no extracted byte: scripts, notes, manifests, docs only. script manifests/*.sha256 + git ls-files 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.
83
- RC-04 target The acquisition record exists, and the manifest names the target and its source. lint manifests/*.sha256 header 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; the `JG-01` shape). It is the first to cut if the matrix gets heavy.
84
29
  PR-01 source The installer never writes outside its target. test tests/t-install-* tests/run-tests.sh —
85
30
  PR-02 source A second install is a no-op, and an upgrade reports created/updated/unchanged. test tests/t-install-idempotent.sh tests/run-tests.sh —
86
31
  PR-03 source Every target-scope check goes RED under its own violation. test tests/t-verify-red.sh tests/run-tests.sh — (the negative control the verifier re-runs)
87
32
  PR-04 source The repo is portable: no personal path in any reusable rule. lint repo tests/run-tests.sh (the PT-01 body over the source tree, plus tests/) —
88
- PR-05 source The automation producer is silent when there is nothing to report. test tests/t-automation-silent.sh tests/run-tests.sh — (the mutation is the control: the same producer, on the same fixture, with one installed file edited, must go from an empty stdout to a record and exit 1. A producer that stays quiet after the mutation is not silent, it is broken.)
@@ -1,10 +1,8 @@
1
1
  term definition source
2
- playbook A named, ordered procedure with a measurable verification step. goblin-stack ships 15. R6 sec.3
2
+ playbook A named, ordered procedure with a measurable verification step. The catalogue is cut (v3): the payload ships 5 gate-coupled skills. R6 sec.3
3
3
  skill A Hermes SKILL.md directory. goblin-stack installs its skills into the target repo at .hermes/skills/ (project tier), never into a profile. R6 sec.0.1 / sec.7.3
4
4
  profile A worker identity in the Hermes fleet (architect, coder, reviewer, ...). Owns memory and skills. R4
5
- role What the work needs: code | judgment | review-panel | synthesis | investigate | judge. A role maps to a profile; it never names a model. R6 sec.4.1
6
- class A project category A-E that selects which parts are required, optional or off. See manifest/classes.tsv. R7 sec.4
7
- part One installable unit a class requires or forbids: handoff, spec, gate, replay, ratchet, pr-gate, review-panel, playbooks, tokens. R7 sec.5
5
+ part One installable unit: handoff, spec, gate, replay, ratchet, pr-gate, review-panel, skills, tokens. R7 sec.5
8
6
  gate A declared command that must exit 0. Declared per project, never inferred from the stack. PP sec.4
9
7
  ratchet A count that must not rise, with a declared ceiling; a rise is allowed only when re-anchored with the arithmetic (old + N new = new). PP sec.4
10
8
  HANDOFF The session-boundary contract at the repo root: START HERE / State / Gates / Next steps / NOT verified. PP sec.1
@@ -15,19 +13,15 @@ stakes The S0-S4 ladder that chooses the review gate strength by the change, not
15
13
  patch-id git patch-id --stable of base..head. A new head voids a verdict; a matching commit message does not restore it. R1 sec.10
16
14
  advisory A rule with no executable check. Counted in the verify summary and capped by advisory_ceiling; never a silent pass. R6 sec.5
17
15
  opt-out A part recorded in disabled: so its required checks report SKIP (opt-out) instead of failing. R6 sec.6.3
18
- archive A class-D flag: verify requires no HANDOFF and no gates, and the summary says so. R7 sec.2.4
16
+ archive An opt-in flag: verify requires no HANDOFF and no gates, and the summary says so. R7 sec.2.4
19
17
  sweep P11: the same change or question across many projects, enumerated by glob, one card each. R6 sec.3
20
- overnight P10: an unattended run over a checkable predicate written before iteration 1. R6 sec.3
18
+ overnight P10: an unattended run over a fixed goal, stopped by an escape hatch. R6 sec.3
21
19
  review-panel N independent verdict lanes, each its own card with its own resolved model. Only at stakes S3+. R6 sec.4.3
22
- judge A role that decides whether a PROCESS met its own predicate, from a command's output and a pointer it can resolve - never from a report. One lane per verdict; never the author's lane. docs/LOOP.md
23
- predicate One shell command that exits 0 when the loop is finished. Written before iteration 1 and run once before it, so its first state is known to be red. A duration is not a predicate. docs/LOOP.md + pstack guide/07
24
- loop One unattended run over a predicate, recorded in the committed .gob/loop/ (predicate, pin, first-run, budget, one decisions.tsv row per iteration). docs/LOOP.md
25
- never-relax The predicate's digest is recorded at loop start and never updates itself; relaxing it is closing this loop and opening another, with the old predicate archived under .gob/loop/closed-<date>/. docs/LOOP.md
26
20
  round One full pass of the work cycle: plan, implement, gate, replay, hand off. The unit a wave code counts. UX-review-2026-10-06
27
21
  vendored Copied into the repo rather than read from the package, so it survives offline and is hashed by IN-02 like any installed file. UX-review-2026-10-06
28
- forge The hosting platform a repo pushes to (GitHub, GitLab, ...). PG-05 and PG-06 read the workflow text but can never see what the forge itself enforces. UX-review-2026-10-06
22
+ forge The hosting platform a repo pushes to (GitHub, GitLab, ...). What the forge itself enforces - the required-check list, the bypass switch, the push identity - is not observable from inside a repo. UX-review-2026-10-06
29
23
  drift A file whose current bytes no longer match the hash recorded at install time. IN-02 reports it; the remedy column says how to recover. UX-review-2026-10-06
30
24
  preimage The input that produces a known hash. The hash checks here prove non-drift, not preimage resistance - they are tamper-evidence, not signatures (docs/LIMITS.md #18). UX-review-2026-10-06
31
- lane A family of rules that share a mechanism and a blind spot: the ban lane, the judge/loop lane, the CI lane, the reference lane. The cannot-see footer reports per lane. UX-review-2026-10-06
25
+ lane A family of rules that share a mechanism and a blind spot: the ban lane, the CI lane, the reference lane. The cannot-see footer reports per lane. UX-review-2026-10-06
32
26
  foreman The orchestrating agent that delegates work to the fleet; the role that reads HANDOFF.md first and writes it last. UX-review-2026-10-06
33
27
  engine The bash programs plus the manifest a verify run actually resolved: per-repo (.gob/bin) or global (engine_dir:). Named in every run's footer. UX-review-2026-10-06
@@ -0,0 +1,33 @@
1
+ id scope rule enforced_by artifact check if_not_why enable
2
+ HP-04 target A stale sentence is corrected in place with a dated parenthetical, never deleted. advisory HANDOFF.md 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. HP-04
3
+ SP-01 target A *-SPEC.md file exists at the repo root (any round, not the current one - round-scoping arrives with the W6 staged chain). gate *-SPEC.md ls ./*-SPEC.md >/dev/null 2>&1 Skipped when `spec` is in `disabled:`. SP-01
4
+ SP-02 target The SPEC is committed, not left untracked. script git ls-files test -z "$(git ls-files --others --exclude-standard -- '*-SPEC.md')" — SP-02
5
+ SP-03 target Every AC: item is checkable without a human. lint *-SPEC.md 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. SP-03
6
+ GT-04 target A ratchet is declared with a ceiling. gate AGENTS.md ratchet.*: goblin-verify --only GT-04 — GT-04
7
+ GT-05 target The ratchet has not risen. gate ratchet.cmd goblin-verify --only GT-05 — GT-05
8
+ HS-01 target Asserting harnesses follow the house shape. lint harness_dir/* 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. HS-01
9
+ HS-02 target A check green on both trees proves nothing - the REPLAY must show RED pre-change. gate harness_dir/*, replay.env, replay.cmd 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. HS-02
10
+ HS-03 target Source probes read text with comments blanked first. advisory harness_dir/* 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. HS-03
11
+ CM-02 target The commit message was written to a file, not passed with -m. advisory git log 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. CM-02
12
+ CM-03 target Commit-as-you-go: the working tree is not carrying a dead run's work. script git status --porcelain goblin-verify --only CM-03 — CM-03
13
+ PG-01 target The reviewed artifact is named by SHA, and that SHA exists. gate reviews/*.md goblin-verify --only PG-01 — PG-01
14
+ PG-02 target The gate is chosen by the change, not the repo, and the tier's evidence exists. script reviews/*.md goblin-verify --only PG-02 — PG-02
15
+ PG-03 target A new head voids the verdict. gate reviews/*.md + git goblin-verify --only PG-03 — PG-03
16
+ DS-01 target Runtime data is not test fixture: a gate run must not write it. script AGENTS.md runtime_data: goblin-verify --only DS-01 — DS-01
17
+ DS-02 target Snapshot before, verify after. gate same as DS-01 goblin-verify --only DS-02 — DS-02
18
+ DOC-01 target A significant change updates the docs that teach it. advisory README.md, docs/ advisory 'Significant' is a judgement; a diff-size heuristic fails on the cases that matter. DOC-01
19
+ DOC-02 target System-level changes are recorded wherever the project's standard says they live. advisory — advisory Where the recording lives may be owned by a stricter external rule than gobstack may add; the repo can only state it. DOC-02
20
+ PT-01 target No tenant-specific string inside a reusable rule. lint skills/ manifest/ bin/ templates/ .gob/ .hermes/ 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.) PT-01
21
+ CL-02 target An archive: true project verifies GREEN without a HANDOFF or gates. script AGENTS.md archive: 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. CL-02
22
+ SC-02 target The ignore rules cover the whole secret family. gate .gitignore + git check-ignore 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`. SC-02
23
+ SC-03 target No client-visible name is secret-shaped, and no build output carries a secret literal. lint repo + security's build_output 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. SC-03
24
+ SC-04 target Every cookie write carries its flags. lint repo 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. SC-04
25
+ SC-05 target Every write route validates its input, or is waived. gate security's write_routes 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. SC-05
26
+ SC-06 target A lockfile exists, and the repo tracks it. gate package.json + lockfile 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`. SC-06
27
+ SC-09 target Auth is applied consistently across sibling routes. advisory — advisory Prose on purpose: "consistently" is a semantic judgement about a private surface no repo here has yet. Counted (6 of ceiling 10) so the matrix cannot quietly grow prose. SC-09
28
+ PF-01 target The perf baseline names the commit it measured. lint AGENTS.md perf: + ratchet: 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. PF-01
29
+ VA-01 target The generated verification skill's doctor command runs and exits 0. gate AGENTS.md verify_doctor: 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. VA-01
30
+ RC-01 target No file in the shipping tree matches a reference-corpus hash. gate reference-manifest.json + security: build_output: 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`. RC-01
31
+ RC-02 target The reference manifest is shaped so `RC-01` cannot pass vacuously. lint reference-manifest.json 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). RC-02
32
+ RC-03 target A lab repo tracks no extracted byte: scripts, notes, manifests, docs only. script manifests/*.sha256 + git ls-files 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. RC-03
33
+ RC-04 target The acquisition record exists, and the manifest names the target and its source. lint manifests/*.sha256 header 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. RC-04
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techgoblin/gobstack",
3
- "version": "0.6.0-alpha.4",
3
+ "version": "0.6.0-beta.1",
4
4
  "description": "Agent-discipline toolkit: one verify command, an enforcement matrix, and LIMITS. bash engine, npm shim.",
5
5
  "bin": {
6
6
  "goblin": "bin/goblin.js",
@@ -15,7 +15,6 @@
15
15
  "license": "MIT",
16
16
  "files": [
17
17
  "bin/",
18
- "adapters/",
19
18
  "manifest/",
20
19
  "presets/",
21
20
  "templates/",
@@ -23,8 +22,6 @@
23
22
  "automations/",
24
23
  "bans/",
25
24
  "docs/",
26
- "extras-catalogue/catalogue.tsv",
27
- "extras-catalogue/payload/",
28
25
  "roles.yaml",
29
26
  "VERSION",
30
27
  "CHANGELOG.md"
@@ -1,41 +1,29 @@
1
1
  ---
2
2
  name: goblin-bootstrap
3
- description: P8: adopt goblin-stack in a repo - classify, install, verify, then the first round.
3
+ description: P8: adopt goblin-stack in a repo - install, verify, then the first round.
4
4
  ---
5
5
 
6
6
  # goblin-bootstrap (P8)
7
7
 
8
8
  Use when adopting goblin-stack in a repo, or starting one.
9
9
 
10
- 1. **Classify the project into one of five classes.** `software`, `service`, `game`, `research` or
11
- `fleet` — the class selects which parts are required, optional or off; it is not a stringency
12
- level. `software` also carries the electron opt-in (`--electron`): an Electron app is `software`
13
- with the electron bans and a host gate, not a sixth class. The letters `A`-`E` and the older
14
- names are read-time aliases.
15
- 2. **`goblin-install --target <dir> --class <x>`** — the default install is a NEUTRAL harness:
16
- no agent skills. Opt in per catalogue row afterwards with `gob extras install <id>` (or vendor the
17
- Hermes project tier with `--skills yes`).
18
- 3. **`goblin-verify`** — a default software-class install (no agent skills) verifies green:
19
- `37 passed, 0 failed, 11 advisory, 34 skipped`, exit 0, once `HANDOFF.md` names a commit that
10
+ 1. **`goblin-install --target <dir>`** — the default install is a NEUTRAL harness:
11
+ no agent skills. Vendor the Hermes project tier with `--skills yes` if you want them installed.
12
+ 2. **`goblin-verify`** — a default install (core procedure tier vendored under `.gob/skills/`)
13
+ verifies green:
14
+ `17 passed, 0 failed, 0 advisory, 10 skipped`, exit 0, once `HANDOFF.md` names a commit that
20
15
  exists; before that edit the
21
- scaffold's `0000000` placeholder is `HP-05`'s one expected day-one red (`37 passed, 1 failed`).
22
- Thirty-four rows skip with a reason, and the reason matters: the five skill rows
23
- (`SK-01`..`SK-04`, `AU-04`) skip on the `playbooks` opt-out a skills-free install records,
24
- then `HS-02`
25
- (no pinned pre-change commit yet, so the REPLAY is not provable), `AU-02`/`AU-03` (no report
26
- has been filed in this repo), `SC-06`/`SC-07`/`SC-08` (no dependency manifest, no lockfile, no
27
- audit record), `PF-01` (no perf baseline measured yet), `BN-01`/`BN-02`/`BN-05` (the ban table is
28
- installed but this fresh repo has no `src/` for a ban to read) and `BN-03` with the four electron
29
- bans `BN-06`..`BN-09` (not in this class's `bans: [BN-01, BN-02, BN-05]`, so they skip as
30
- *not enabled* rather than as *unread*),
31
- `FM-01`/`FM-02`/`VA-01` (no feature map and no declared `verify_doctor:` yet), `RC-01`..`RC-04`
32
- (no reference corpus declared: `reference_manifest:` ships empty and there is no lab
33
- `manifests/`), and `JG-01` with
34
- `LP-01`..`LP-05` (no `.goblin/loop/` record, because no loop has run in this repo yet). Each is
35
- a *not yet*, not a pass.
36
- The class's required parts
37
- that only a round can produce (a first review, a real gate) pass *vacuously*, and that list
38
- is the repo's first-step list, not a defect.
16
+ scaffold's `0000000` placeholder is `HP-05`'s one expected day-one red (`16 passed, 1 failed`).
17
+ Ten rows skip with a reason, and the reason matters: `SK-01`, `SK-02` and `SK-04` **run** (the
18
+ core procedure tier is vendored on every install, so the product no longer disables its own
19
+ rows);
20
+ `BN-01`/`BN-02`/`BN-03`/`BN-05` (this fresh repo has no `.ts` file for a ban's `applies_when`
21
+ glob, so each reports *not applicable*) and the four electron bans `BN-06`..`BN-09` (selected by
22
+ the `dep:electron` predicate, so with no `package.json` they too report *not applicable*);
23
+ and `FM-01`/`FM-02` (no feature map yet). Each is a *not yet*, not a pass. The other 32 target
24
+ rows are held in the **library** (`gob verify --library`), off by default — the rows that are
25
+ not right for every repo. The round-shaped rows (a first review, a real gate) are library rows
26
+ now; the first-step list is a list of work, not a defect.
39
27
  4. **Fix `.gitignore` BEFORE any `git init`.** A credentials file already in the tree is
40
28
  committed by the first `git add -A` and is then in history forever.
41
29
  5. **First HANDOFF, first SPEC, first check script** — in that order, each independently
@@ -47,7 +35,7 @@ Use when adopting goblin-stack in a repo, or starting one.
47
35
 
48
36
  ## Verification
49
37
 
50
- - `goblin-verify` exit 0, and the created-file list matches `.goblin/installed.json`.
38
+ - `goblin-verify` exit 0, and the created-file list matches `.gob/installed.json`.
51
39
  - A repo with no gate declares one and records its first measured numbers.
52
40
  - `.gitignore` is verified before the first commit, not after.
53
41
  - The perf baseline exists, and it names a commit that exists (`PF-01`), rather than the ratchet
@@ -55,5 +43,5 @@ Use when adopting goblin-stack in a repo, or starting one.
55
43
 
56
44
  ## What this cannot see
57
45
 
58
- Whether the class you chose matches how the project actually ships. Re-classify when it does
59
- not; the installer records the class and `CL-01` checks the parts against it.
46
+ Whether the parts you left on match how the project actually ships. Switch a part off with
47
+ `--opt-out <part>` when it does not; the installer records it in `disabled:`.
@@ -15,7 +15,7 @@ behave *as described*; it proves nothing about whether the app is correct.
15
15
 
16
16
  ## Where it lives, and who declares it
17
17
 
18
- The map's location is **declared, never inferred**: `.goblin/goblin.yaml` holds
18
+ The map's location is **declared, never inferred**: the `AGENTS.md` gob block holds
19
19
 
20
20
  ```
21
21
  feature_map: <path to the map README, relative to the repo> # empty -> FM-01/FM-02 SKIP
@@ -21,7 +21,7 @@ Use when a project has no live lane, or its gates have drifted from what it actu
21
21
  5. **Seed the feature map.** The harness needs a list of what there is to drive, and the map is
22
22
  that list (`goblin-feature-map`): one file per user-facing feature, each with its entry points
23
23
  and the exact command that drives it. Declare `feature_map:` and `source_root:` in
24
- `.goblin/goblin.yaml`. An **empty `feature_map:` is the honest state of a project with no map
24
+ the `AGENTS.md` gob block. An **empty `feature_map:` is the honest state of a project with no map
25
25
  yet** (`FM-01`/`FM-02` then skip with that reason); a declared path that names no map is a hole
26
26
  and is reported as one.
27
27
  6. **Hand the generated skill to P12 before calling it verified.** goblin-stack installs
@@ -35,7 +35,7 @@ Use when a project has no live lane, or its gates have drifted from what it actu
35
35
 
36
36
  - The harness prints `PASS`/`FAIL` per assertion and exits non-zero on any failure.
37
37
  - The REPLAY shows RED pre-change, with the commit named.
38
- - The gate set is declared in `.goblin/goblin.yaml`, never inferred.
38
+ - The gate set is declared in the `AGENTS.md` gob block, never inferred.
39
39
  - The map's index and four-H2 entry contract hold (`FM-01`), every declared entry path still
40
40
  resolves under `source_root:` and none changed after its `verified:` date (`FM-02`), and the
41
41
  declared `verify_doctor:` exits 0 (`VA-01`).
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: practice
3
- description: The composition hook: read the referenced standard at the path pinned in .goblin/goblin.yaml.
3
+ description: The composition hook: read the referenced standard at the path pinned in the AGENTS.md gob block.
4
4
  ---
5
5
 
6
6
  # practice
7
7
 
8
8
  goblin-stack owns the **mechanism**: which rule is enforced by what, how it is installed, how
9
- it is verified, which class a project is, which flow applies, which role runs it.
9
+ it is verified, which flow applies, which role runs it.
10
10
 
11
11
  The **house style** — the HANDOFF shape and the stale-sentence rule, the SPEC lifecycle, the
12
12
  harness house style and the pinned-commit REPLAY, the gate vocabulary, commit discipline, the
@@ -15,13 +15,13 @@ standard this repo references. goblin-stack carries **no copy of it**.
15
15
 
16
16
  ## Mandate
17
17
 
18
- 1. Read `.goblin/goblin.yaml` and take `practice:`.
18
+ 1. Read the `AGENTS.md` gob block and take `practice:`.
19
19
  2. If that path exists, **read the standard before starting work** in this repo. Its hash is
20
20
  pinned in `practice_sha256:`; `goblin-verify` re-checks it, so a silently edited standard
21
21
  is visible rather than assumed. If the standard has been edited **deliberately**, re-record
22
22
  the pin deliberately: `goblin-install --target <repo> --re-pin` rewrites that one line and
23
23
  prints the old and new hash. Nothing re-pins on its own — not `goblin-verify`, not
24
- `--upgrade` (`docs/CONTRACTS.md`).
24
+ `--upgrade` (`docs/GUIDE.md`).
25
25
  3. If the path is absent or unset, **say so** and continue with the goblin-stack rules alone.
26
26
  Absent is not an error: goblin-stack is portable, and another machine has no such file.
27
27
 
@@ -1,6 +1,6 @@
1
1
  # AGENTS.md
2
2
 
3
- This repository uses **gobstack** (class `{{CLASS}}`, installed {{DATE}}). It is a pointer,
3
+ This repository uses **gobstack** (installed {{DATE}}). It is a pointer,
4
4
  not a rule dump — the rules live in one executable place, and facts beat requirements.
5
5
 
6
6
  - **Harness entry point:** `.gob/bin/goblin-verify` — exit 0 pass, 1 a check failed,
@@ -8,16 +8,16 @@ not a rule dump — the rules live in one executable place, and facts beat requi
8
8
  same run.
9
9
  - **Rules and their checks:** `.gob/manifest/enforcement.tsv` (one row per rule; every row
10
10
  carries a runnable check or the literal `advisory`).
11
- - **Forbidden code (the ban list):** `.gob/bin/goblin-bans` runs the bans named by `bans:` in
12
- this file's gob block; each ban's mechanism lives in `.gob/manifest/bans.tsv`. Run it before
11
+ - **Forbidden code (the ban list):** `.gob/bin/goblin-bans` runs the bans whose `applies_when`
12
+ glob matches a real file in this tree; each ban's mechanism lives in `.gob/manifest/bans.tsv`.
13
+ To turn one off, name it in `bans_disabled:` in this file's gob block. Run it before
13
14
  you write the line, not after — a ban is a gate, and `goblin-verify` only reports it once the
14
15
  code exists.
15
16
  - **Session state:** `HANDOFF.md` at the repo root. Read it before touching anything.
16
17
  - **Project config:** the `<!-- gob:begin --> … <!-- gob:end -->` block in this file
17
- (class, branch, gates, ratchet, runtime data, replay, opt-outs). Edit it in place; the
18
+ (gates, ratchet, runtime data, replay, opt-outs). Edit it in place; the
18
19
  installer never rewrites the block after the first install and never touches the prose.
19
20
  - **The referenced standard**, if configured, is named by `practice:` in the gob block.
20
21
  Read it before starting work; this repo carries no copy of it.
21
22
 
22
- Two things this repo does not do: it does not choose models (a role resolves through the
23
- mapping file named by `models_file:`), and it does not write outside its own tree.
23
+ One thing this repo does not do: it does not write outside its own tree.
@@ -14,7 +14,7 @@
14
14
 
15
15
  ## State
16
16
 
17
- - Branch: `{{BRANCH}}` · class: `{{CLASS}}` · goblin-stack installed {{DATE}}.
17
+ - goblin-stack installed {{DATE}}.
18
18
  - HEAD when this file was written: `{{HEAD}}`
19
19
  - In flight: nothing yet.
20
20
  - Done: the harness is installed.
@@ -1,10 +1,10 @@
1
1
  # ROUND-000-SPEC — <one line: what this round changes>
2
2
 
3
- > Template. Written once by goblin-install for classes that require a SPEC, then never
3
+ > Template. Written once by goblin-install for a project that requires a SPEC, then never
4
4
  > overwritten. Write one per round BEFORE implementation, and commit it with — or before —
5
5
  > the code it describes: an untracked `*-SPEC.md` is lost by a run that dies.
6
6
 
7
- Class: {{CLASS}} · written {{DATE}}
7
+ Written {{DATE}}
8
8
 
9
9
  ## Measured root cause
10
10