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