@techgoblin/gobstack 0.6.1 → 0.7.3
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 +126 -0
- package/README.md +17 -14
- package/VERSION +1 -1
- package/bin/goblin-approve +93 -0
- package/bin/goblin-bans +1 -1
- package/bin/goblin-init +13 -0
- package/bin/goblin-install +123 -5
- package/bin/goblin-lib.sh +9 -6
- package/bin/goblin-verify +806 -61
- package/bin/goblin.js +3 -1
- package/docs/AUDIT-2026-11-25-framework-agnostic.md +163 -0
- package/docs/CURATION-2026-11-25-preview-surfaces.md +170 -0
- package/docs/GUIDE.md +57 -50
- package/docs/LIMITS.md +148 -5
- package/manifest/bans.tsv +0 -4
- package/manifest/categories.tsv +1 -0
- package/manifest/enforcement.tsv +6 -10
- package/manifest/library.tsv +7 -5
- package/package.json +1 -1
- package/skills/goblin-bootstrap/SKILL.md +6 -6
package/docs/GUIDE.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
A step-by-step guide for your first week. **Read this before the README.** The README tells you
|
|
4
4
|
what the pieces are; this tells you what to *do*, in order, and what you should see when it works.
|
|
5
5
|
|
|
6
|
-
Version: `0.
|
|
6
|
+
Version: `0.7.3` · Last measured: 2026-11-28 · Every command and every output below was run on a
|
|
7
7
|
real repository while writing this guide.
|
|
8
8
|
|
|
9
9
|
---
|
|
@@ -127,7 +127,7 @@ then install it:
|
|
|
127
127
|
|
|
128
128
|
Expected output (this is a real transcript, trimmed):
|
|
129
129
|
|
|
130
|
-
created
|
|
130
|
+
created 23 · updated 0 · unchanged 0 · skipped 0
|
|
131
131
|
|
|
132
132
|
next:
|
|
133
133
|
1. cd /tmp/gs-try && git add -A && git commit # the install is uncommitted by design
|
|
@@ -135,7 +135,7 @@ Expected output (this is a real transcript, trimmed):
|
|
|
135
135
|
3. the gate is the one you declared and gob init measured (test: bash tests/run-tests.sh); edit AGENTS.md's gate_ keys when it changes
|
|
136
136
|
4. the core goblin tier ships under .gob/skills/ by default; the .hermes/ project tier is opt-in: re-run with --skills yes
|
|
137
137
|
|
|
138
|
-
**`created
|
|
138
|
+
**`created 23`** is the installer's count of the files it **tracks**. It writes **24**: the 24th
|
|
139
139
|
is `.gob/installed.json`, the record it keeps for itself, which it writes but does not count. It
|
|
140
140
|
has written nothing outside this directory — and nothing under `.github/`: **v2 installs no
|
|
141
141
|
CI, ever.** The default install ships **no agent skills** — the harness is neutral.
|
|
@@ -156,11 +156,11 @@ You will see one line per rule. The shape:
|
|
|
156
156
|
PASS IN-02 20 installed files hashed
|
|
157
157
|
FAIL HP-05 HANDOFF.md names no commit that exists in this repo
|
|
158
158
|
SKIP FM-01 feature_map: is empty - this state is UNREACHABLE ...
|
|
159
|
-
SKIP BN-
|
|
159
|
+
SKIP BN-01 No `any` in application TypeScript. (not applicable: no file matches applies_when: **/*.ts **/*.tsx ...)
|
|
160
160
|
|
|
161
161
|
and a summary line at the bottom:
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
18 passed, 1 failed, 0 advisory, 7 skipped # the HP-05 placeholder, before you name a real commit
|
|
164
164
|
|
|
165
165
|
### How to read that output
|
|
166
166
|
|
|
@@ -202,9 +202,9 @@ section.
|
|
|
202
202
|
|
|
203
203
|
| Step | Command | Verify prints | The FAILs |
|
|
204
204
|
|---|---|---|---|
|
|
205
|
-
| 1. the install ran | `gob init --write ... --yes` | `25 passed, 0 failed, 0 advisory,
|
|
206
|
-
| 2. the first commit | `git add -A && git commit` | `25 passed, 0 failed, 0 advisory,
|
|
207
|
-
| 3. name a real HEAD — and **commit that too** | edit `HANDOFF.md`, then `git add -A && git commit` | `25 passed, 0 failed, 0 advisory,
|
|
205
|
+
| 1. the install ran | `gob init --write ... --yes` | `25 passed, 0 failed, 0 advisory, 1 skipped` | none — the installer fills `HANDOFF.md`'s HEAD from the seed commit, and the uncommitted-install / untracked-SPEC reds (`CM-03`, `SP-02`) are now library rows, off by default |
|
|
206
|
+
| 2. the first commit | `git add -A && git commit` | `25 passed, 0 failed, 0 advisory, 1 skipped` | none — green |
|
|
207
|
+
| 3. name a real HEAD — and **commit that too** | edit `HANDOFF.md`, then `git add -A && git commit` | `25 passed, 0 failed, 0 advisory, 1 skipped` | none — `CM-03` is a library row, so a dirty tree no longer re-reds by default |
|
|
208
208
|
|
|
209
209
|
One of those deserves its name spelled out:
|
|
210
210
|
|
|
@@ -254,6 +254,15 @@ Why it matters: from then on, `goblin-verify` runs *your* definition of healthy,
|
|
|
254
254
|
without you remembering to. And the gate numbers are recorded with a date, so a number in
|
|
255
255
|
`HANDOFF.md` can never quietly go stale.
|
|
256
256
|
|
|
257
|
+
Because that edit changes `AGENTS.md`, row `AG-01` goes red the moment you save it — that is the
|
|
258
|
+
row keeping the gate file itself honest. Make the edit, then record the approval:
|
|
259
|
+
|
|
260
|
+
gob approve-agents "replaced the gate with tsc --noEmit + npm test"
|
|
261
|
+
|
|
262
|
+
One row is appended to `.gob/agents.approved` (date, the file's sha256, your git `user.name`,
|
|
263
|
+
the reason — append-only, latest row wins), and the row is green again. An edit with no
|
|
264
|
+
approval is a red that names both hashes and the fix command.
|
|
265
|
+
|
|
257
266
|
### The `practice:` key — the part that makes it yours
|
|
258
267
|
|
|
259
268
|
If you already have a house standard — a `CONTRIBUTING.md`, a `PROJECT-PRACTICE.md`, anything
|
|
@@ -327,7 +336,7 @@ honest entry, and the harness treats it as one.
|
|
|
327
336
|
> **Prove it was broken first.**
|
|
328
337
|
|
|
329
338
|
Before you trust a check, break the thing it checks and watch it go red — then put it back and watch
|
|
330
|
-
it go green. Break it on a row this walkthrough can actually break: `IN-02` hashes the
|
|
339
|
+
it go green. Break it on a row this walkthrough can actually break: `IN-02` hashes the 19 files it
|
|
331
340
|
tracks — not the ones it `owns` (including `AGENTS.md`, whose gob block §5 has you editing) and not
|
|
332
341
|
`.gob/installed.json`; edit one of the tracked — the exercise below uses `.gob/bans/README.md`.
|
|
333
342
|
|
|
@@ -408,14 +417,14 @@ A default install lands on a specific shape. The first red is
|
|
|
408
417
|
the scaffold teaching on purpose — `HP-05`, the `0000000` placeholder in `HANDOFF.md` (§4). The
|
|
409
418
|
walk in §4 measured, step by step:
|
|
410
419
|
|
|
411
|
-
|
|
412
|
-
|
|
420
|
+
18 passed, 1 failed, 0 advisory, 7 skipped # straight after the install (the HP-05 placeholder)
|
|
421
|
+
19 passed, 0 failed, 0 advisory, 7 skipped # name a real commit in HANDOFF.md, commit, and it is green
|
|
413
422
|
|
|
414
423
|
(On the older `gob init` walk the uncommitted-install and untracked-SPEC reds — `CM-03`, `SP-02`
|
|
415
424
|
— were the first two FAILs; both are library rows now, off by default.) Name a real commit in
|
|
416
425
|
`HANDOFF.md`, commit, and give the gate lines real commands (§5), and it is green:
|
|
417
426
|
|
|
418
|
-
|
|
427
|
+
19 passed, 0 failed, 0 advisory, 7 skipped (on a real project; your numbers will differ)
|
|
419
428
|
|
|
420
429
|
**Ten rows skipping is correct**, and each skip prints its reason. In plain terms: the
|
|
421
430
|
harness is telling you which of its rules have nothing to read yet. It is a checklist, not a
|
|
@@ -424,7 +433,7 @@ scolding.
|
|
|
424
433
|
Two readings that are easy to get wrong:
|
|
425
434
|
|
|
426
435
|
- **Advisory rows are not passes.** No row of the shipped matrix is labelled `advisory` — the
|
|
427
|
-
|
|
436
|
+
seven advisory rows moved to the library (`gob verify --library`), so a default install sits at
|
|
428
437
|
0 of 10 on `advisory_ceiling: 10`. Enabling one from the library spends a slot: adding
|
|
429
438
|
unenforceable rules eventually fails verify until one is removed. That is intentional.
|
|
430
439
|
- **Vacuously-passing rows are not proven.** A rule about "the first review note" passes when there
|
|
@@ -464,7 +473,7 @@ same commands are available outside any repo through the npm CLI: `gob init` /
|
|
|
464
473
|
| Command | Exit codes |
|
|
465
474
|
|---|---|
|
|
466
475
|
| `goblin-install` | `0` ok · `1` a refusal (with the path and the fix) · `2` bad input |
|
|
467
|
-
| `goblin-verify` | `0` all checks passed · `1` a check failed · `2` could not run · `3` the manifest
|
|
476
|
+
| `goblin-verify` | `0` all checks passed · `1` a check failed · `2` could not run · `3` the manifest is broken (or `--only AG-01` with no approval record: not policed yet, not red) |
|
|
468
477
|
| `gob` (npm CLI) | propagates the subcommand's codes verbatim; a verb outside the surface (`audit`/`install`) is refused with exit 2 and the usage |
|
|
469
478
|
|
|
470
479
|
`3` is the one to notice: it means gobstack's own rule table is malformed, not your project.
|
|
@@ -478,6 +487,7 @@ same commands are available outside any repo through the npm CLI: `gob init` /
|
|
|
478
487
|
gob init [--heuristic] [--write <proposal>] [--target <dir>] [--dry-run] [--yes]
|
|
479
488
|
gob mcp # the MCP stdio server (three tools, local only)
|
|
480
489
|
|
|
490
|
+
gob approve-agents "<reason>" [--approver <name>] # record who approved AGENTS.md (AG-01)
|
|
481
491
|
.gob/bin/goblin-verify [--only <id[,id...]>] [--json] [--list]
|
|
482
492
|
.gob/bin/goblin-bans # run the ban list
|
|
483
493
|
gob uninstall --target <dir> # the uninstall job
|
|
@@ -694,16 +704,17 @@ Output is one line per executed row, in manifest order, plus a summary line at t
|
|
|
694
704
|
PASS HP-01 (test -f HANDOFF.md)
|
|
695
705
|
FAIL GT-02 gate commit: false -> exit 1
|
|
696
706
|
SKIP FM-01 feature_map: is empty - this state is UNREACHABLE ...
|
|
697
|
-
SKIP BN-
|
|
707
|
+
SKIP BN-01 No `any` in application TypeScript. (not applicable: no file matches applies_when: **/*.ts **/*.tsx ...)
|
|
698
708
|
|
|
699
709
|
Those three lines are one row of each marking a default run can show (no row of the shipped
|
|
700
710
|
matrix is advisory — the advisory rows live in the library). The summary line of a green default
|
|
701
|
-
run is `
|
|
711
|
+
run is `19 passed, 0 failed, 0 advisory, 7 skipped` (the first skip is `AG-01` — a plain `goblin-install` writes no approval record; `gob init --write` writes the first one).
|
|
702
712
|
|
|
703
713
|
**Exit codes:** `0` every executed check passed (advisories and skips do not fail the run) ·
|
|
704
714
|
`1` at least one check FAILED · `2` verify could not run (not installed, a missing dependency,
|
|
705
715
|
an unparseable config) · `3` the manifest itself is broken (a row with no check and no
|
|
706
|
-
`advisory` label, or a duplicate id)
|
|
716
|
+
`advisory` label, or a duplicate id) — and `3` for `--only AG-01` alone when no approval record
|
|
717
|
+
exists: not policed yet, not red (an install never turns red by upgrading).
|
|
707
718
|
|
|
708
719
|
**What verify asserts, in one sentence:** that the files it installed are the files on disk,
|
|
709
720
|
that every rule in the manifest with a command still passes, and that the untestable remainder
|
|
@@ -721,16 +732,14 @@ product deleted is not a blind spot a run still carries (`docs/LIMITS.md` #13/#3
|
|
|
721
732
|
#### A fresh install verifies green
|
|
722
733
|
|
|
723
734
|
Measured on a fresh DEFAULT install (skills opt-in, W6 neutral-first), committed with no
|
|
724
|
-
hand edit: **`
|
|
735
|
+
hand edit: **`19 passed, 0 failed, 0 advisory, 7 skipped`, exit 0.** The core procedure
|
|
725
736
|
tier is vendored on every install (`.gob/skills/`), so `SK-01`, `SK-02` and `SK-04` RUN and
|
|
726
|
-
pass on a fresh repo — the product no longer disables its own rows.
|
|
737
|
+
pass on a fresh repo — the product no longer disables its own rows. Seven rows skip with a
|
|
727
738
|
reason: every ban self-selects by its `applies_when` — a GLOB (`BN-01`/`BN-02`/`BN-03`/`BN-05`
|
|
728
739
|
match only `.ts`/`.tsx`/`.js`/`.jsx`, so with no such source each reports itself *not
|
|
729
|
-
applicable*)
|
|
730
|
-
when `package.json` names electron, so with none they too report *not applicable* — never running
|
|
731
|
-
vacuously off the harness's own `checks/*.mjs`) — and `FM-01`/`FM-02`, which
|
|
740
|
+
applicable*) — and `FM-01`/`FM-02`, which
|
|
732
741
|
have no feature map yet (`feature_map:` ships empty on purpose: a fresh install must not be
|
|
733
|
-
born RED — G1, `docs/LIMITS.md` #30). Thirty-
|
|
742
|
+
born RED — G1, `docs/LIMITS.md` #30). Thirty-four further rows are **not skipped but OFF** —
|
|
734
743
|
they live in the library (`gob verify --library`), the rows that are not right for every repo.
|
|
735
744
|
Every skip above is a *not yet*, not a pass.
|
|
736
745
|
|
|
@@ -746,7 +755,7 @@ verifier is reporting FAILs.
|
|
|
746
755
|
the part's rows as `SKIP (opt-out)` in the summary, so the opt-out is **visible rather than
|
|
747
756
|
absent**. The same mechanism is what makes a part's off state real.
|
|
748
757
|
- **The opt-out numbers are pinned (V3-3).** A default install with the core tier vendored
|
|
749
|
-
verifies `
|
|
758
|
+
verifies `19 passed, 0 failed, 0 advisory, 7 skipped`, exit 0, and
|
|
750
759
|
`tests/t-install-off-switch.sh` asserts that line: a silent drift in the opt-out path is caught
|
|
751
760
|
rather than left as a number nobody wrote down (the `--skills no` count moved from `37/0/9/11`
|
|
752
761
|
at v0.2 as the ban and feature-map rows landed; in v3 the model/role/loop and CI rows are cut,
|
|
@@ -842,20 +851,19 @@ arrives only with `--skills yes` (W6 neutral-first). The repo's other eleven ski
|
|
|
842
851
|
Then, in order:
|
|
843
852
|
|
|
844
853
|
git add -A && git commit # the install is a change like any other
|
|
845
|
-
.gob/bin/goblin-verify #
|
|
854
|
+
.gob/bin/goblin-verify # 19 passed, 0 failed - the uncommitted-install red (CM-03) is a library row now
|
|
846
855
|
|
|
847
|
-
A default install (core tier, no agent skills) is **green** — `
|
|
848
|
-
|
|
856
|
+
A default install (core tier, no agent skills) is **green** — `19 passed, 0 failed, 0 advisory,
|
|
857
|
+
7 skipped`, exit 0 — once
|
|
849
858
|
`HANDOFF.md` names a commit that exists; before that edit the scaffold's `0000000` placeholder is
|
|
850
|
-
the one expected red (`
|
|
851
|
-
(`docs/GUIDE.md`; step 2 of `docs/GUIDE.md`).
|
|
859
|
+
the one expected red (`18 passed, 1 failed`). Both numbers are measured, not assumed
|
|
860
|
+
(`docs/GUIDE.md`; step 2 of `docs/GUIDE.md`). Seven rows skip with a reason: `AG-01` has no approval record yet (a plain install writes
|
|
861
|
+
none — `gob approve-agents "<reason>"` records the first, and `gob init --write` writes it for
|
|
862
|
+
you); `SK-01`, `SK-02`
|
|
852
863
|
and `SK-04` RUN (the core procedure tier is vendored under `.gob/skills/` on every install),
|
|
853
864
|
plus the not-yet rows: `BN-01`/`BN-02`/`BN-03`/`BN-05` have no `.ts`/`.js` source for their
|
|
854
|
-
`applies_when` glob and each reports itself *not applicable
|
|
855
|
-
|
|
856
|
-
`package.json`** they too report *not applicable* — never passing vacuously off the harness's own
|
|
857
|
-
`checks/*.mjs` — and `FM-01`/`FM-02`
|
|
858
|
-
(no feature map yet). Thirty-two further rows are held in the **library** (`gob verify
|
|
865
|
+
`applies_when` glob and each reports itself *not applicable* — and `FM-01`/`FM-02`
|
|
866
|
+
(no feature map yet). Thirty-four further rows are held in the **library** (`gob verify
|
|
859
867
|
--library`) — off by default, each with the line that turns it on. The round-shaped rows
|
|
860
868
|
(`PG-*`) and the corpus rows (`RC-*`) are library rows now, so the first-step list is a list of
|
|
861
869
|
work, not a list of FAILs.
|
|
@@ -898,7 +906,7 @@ The remedy is a reconciliation. The project's file stays the file of record; not
|
|
|
898
906
|
git add -A && git commit
|
|
899
907
|
.gob/bin/goblin-verify # HP-02, HP-03, HP-05 go green
|
|
900
908
|
|
|
901
|
-
Success is the full green path (`
|
|
909
|
+
Success is the full green path (`19 passed, 0 failed, 0 advisory, 7 skipped`, exit 0)
|
|
902
910
|
with `git status --short` empty.
|
|
903
911
|
|
|
904
912
|
The edit is additive and small — measured on the model repo (§1's exemplar, 2450 lines): three
|
|
@@ -943,7 +951,7 @@ closed and now ENFORCED (`IN-03`'s third clause, Z1-5): `script`, `lint`, `gate`
|
|
|
943
951
|
plus `test` for a source-scope row, whose check is a script under `tests/` run by
|
|
944
952
|
`tests/run-tests.sh`.
|
|
945
953
|
|
|
946
|
-
Measured shape of this table: **
|
|
954
|
+
Measured shape of this table: **30 rows** - 26 target, 4 source; advisory 0, gate 4, lint 14, script 9, test 3 (the on-by-default matrix, `.gob/manifest/enforcement.tsv`). The **library** (`library.tsv`) holds a further **34 rows**, all `scope:target`, off by default. The table below renders the **full 64-rule set** (matrix + library) so a reader sees the whole contract; the 34 library rows are the ones `gob verify --library` names.
|
|
947
955
|
|
|
948
956
|
### The rows
|
|
949
957
|
|
|
@@ -965,10 +973,11 @@ Measured shape of this table: **34 rows** - 30 target, 4 source; advisory 0, gat
|
|
|
965
973
|
| `GT-01` | target | gate | The gate set is declared, never inferred from the stack. | goblin-verify --only GT-01 | Builtin: every `gate_<name>_cmd:` key in the AGENTS.md gob block is a DECLARED gate and its declaration and command are one line - a gate cannot lose its cmd and survive the count (G8-3, the condition of G8's own score sentence). The count is of declarations, not of runnable pairs. It cannot see whether a declared command is the RIGHT gate for the project: it proves a command exists, not that it is meaningful. |
|
|
966
974
|
| `GT-02` | target | gate | Every declared gate runs and exits 0. | goblin-verify --only GT-02 | — |
|
|
967
975
|
| `GT-03` | target | script | The round reports one line of measured numbers. | test -f .gob/last-gate-line && [ .gob/last-gate-line -nt "$(git rev-parse --git-dir)/logs/HEAD" ] | The freshness reference is HEAD's reflog (`.git/logs/HEAD`), which every HEAD movement rewrites - a commit in an attached or a detached worktree included, and independently of whether the refs are packed. The clause it replaced read `.git/HEAD`, a file a commit never rewrites (only branch operations do), so a commit landing after the measured line left the row GREEN while the round had moved on (D2, measured: `.git/HEAD`'s mtime unchanged across a real commit, `--only GT-03` exit 0). Two limits remain, recorded rather than hidden: a repo with the reflog disabled (`core.logAllRefUpdates=false`) has no reference to compare against, and `-nt` against a missing path is true, so the clause passes vacuously and the row then proves only that a measured line EXISTS (a repo with no commit yet is the same case); and the clause reads ANY HEAD movement as staleness, so a checkout, a branch rename or a reset FAILs it until the next gate run rewrites the line. That second behaviour is what makes a full run self-freshening: `GT-02` writes the line earlier in the same pass, so the row asserts that the line in front of you came from THIS run. `tests/t-gt03-freshness.sh` is the control, in both directions. |
|
|
968
|
-
| `
|
|
976
|
+
| `AG-01` | target | script | An instruction file changes only with a recorded approval: AGENTS.md hashes to the value in .gob/agents.approved, which carries the date, the approver and the one-line reason. | goblin-verify --only AG-01 | The record proves the file matches an approval, never that the approver read the diff: the row hashes AGENTS.md and compares it with the LAST row of the append-only .gob/agents.approved (latest row wins, and a row carries no file name — only the hash is coverage, so a reason naming some other file clears nothing; the control in tests/t-verify-red.sh pins that). A worker able to write both files can forge a record — the hash is a witness, not a signature — and a change that also rewrites the record is invisible to this row (git history is the backstop; LIMITS #60). No record at all is a SKIP, never a red: an existing install must not turn red just by upgrading to an engine that ships this row (CURATION-2026-11-07 §2 C6). |
|
|
969
977
|
| `HV-01` | target | lint | A check that asserts a user-visible outcome builds its input through the same producer the users input comes through; a hand-written fixture is generated by that producer and pinned. | goblin-verify --only HV-01 | Text probe: it proves a producer is NAMED - a bare-package import/require/dynamic import, or a produced_by: <function> <pinned id> marker beside a doc/board/payload/fixture literal - never that the call path matches the product wiring. A relative import (./ or ../) does not clear it, a literal built by spread or copy from another file is unseen, and a name other than doc/board/payload/fixture is invisible. The stronger form needs the product to export a single make-me-the-thing-the-user-gets factory, which is a design change, not a probe (CURATION-2026-11-07 §2 C1, the failure being a harness green on declared node sizes while the shared payload carried none). |
|
|
970
978
|
| `GT-04` | target | gate | A ratchet is declared with a ceiling. | goblin-verify --only GT-04 | — |
|
|
971
979
|
| `GT-05` | target | gate | The ratchet has not risen. | goblin-verify --only GT-05 | — |
|
|
980
|
+
| `GT-06` | target | advisory | Every gate threshold compares an artifact measured in the same run; a gate holding two literals it typed itself can never fail. | assertion bodies, read by a human | Detecting "this assertion compares two typed constants" from text is a heuristic, not a proof: a legitimate gate also compares a measurement against a recorded ceiling, and only the diff history tells a recorded number from an invented one. Advisory on purpose - it costs the reviewer one question (what would make this line red?) where a text lint would cost every harness a false positive. |
|
|
972
981
|
| `HS-01` | target | lint | Asserting harnesses follow the house shape. | goblin-verify --only HS-01 | A declared harness_dir that is absent FAILS when `scaffold_checks: yes`; when it is `no`, the row SKIPs with a reason. Keying the skip off the path alone let one config line switch this row and HS-02 off. A report utility in the same dir is counted and reported separately rather than failing the run. |
|
|
973
982
|
| `HS-02` | target | gate | A check green on both trees proves nothing - the REPLAY must show RED pre-change. | goblin-verify --only HS-02 | The declared `replay.cmd` is EXECUTED with `{name}` replaced by each harness's name, in the pre-change worktree, with `replay.env=<commit>` set (Z1-4). Two clauses that used to be unheard: a command that interpolates no `{name}` FAILs (it cannot be running the harness it names, so nothing was replayed), and a command that cannot be executed at all - exit 126 or 127 - FAILs rather than counting as a RED harness. The harness's name is substituted SHELL-QUOTED (`printf %q`), because the name is part of the command text the shell parses; unquoted, a name carrying `;` or `#` reached the shell as syntax (Z2-3, the G8-1 surface class), and the control for it carries a metacharacter-bearing file name. What it cannot see: a command that runs *something else* under the harness's name and exits non-zero, and whether the harness tests the right path rather than merely failing on this tree. |
|
|
974
983
|
| `HS-03` | target | advisory | Source probes read text with comments blanked first. | advisory | Recognising 'this probe reads source text' is semantic; a grep for the blanking helper produces false FAILs on harnesses that do not probe source. |
|
|
@@ -993,17 +1002,12 @@ Measured shape of this table: **34 rows** - 30 target, 4 source; advisory 0, gat
|
|
|
993
1002
|
| `SC-04` | target | lint | Every cookie write carries its flags. | goblin-verify --only SC-04 | Builtin, same-statement only: a write spread over three lines is not seen, and the row says so. It REPORTS that a JS-written cookie is readable by any script rather than failing on it - that is a design fact, not a bug - so the pass is about the flags, never about the choice. |
|
|
994
1003
|
| `SC-05` | target | gate | Every write route validates its input, or is waived. | goblin-verify --only SC-05 | Builtin: it proves a validator is CALLED (`safeParse\|zod\|valibot\|yup\|ajv\|superstruct\|validate(`), never that the schema is right - a schema that accepts everything passes. `.gob/boundary-waivers` is the escape hatch, and the waived count is printed, so a silent pile-up is visible. |
|
|
995
1004
|
| `SC-06` | target | gate | A lockfile exists, and the repo tracks it. | goblin-verify --only SC-06 | Builtin: presence, then `git ls-files --error-unmatch`. It cannot see that the lockfile is STALE relative to `package.json` - resolving that needs the package manager, which is a deliberate network-shaped step, not a check. SKIPs with a reason when there is no `package.json`. |
|
|
996
|
-
| `SC-09` | target | advisory | Auth is applied consistently across sibling routes. | advisory | Prose on purpose: "consistently" is a semantic judgement about a private surface no repo here has yet. Counted (advisory; the library holds it now) so the matrix cannot quietly grow prose. |
|
|
997
1005
|
| `PF-01` | target | lint | The perf baseline names the commit it measured. | goblin-verify --only PF-01 | Builtin: the metric must equal `ratchet.name` so the budget and the measurement cannot silently disagree, the value must be numeric, the date must exist, the baseline commit must exist AND be an ancestor of HEAD (`HP-05`'s mechanic, reused rather than re-derived), and `ratchet.ceiling` must equal `perf.baseline_value` - otherwise a one-line ceiling raise passes while the row prints the contradiction, which is `I raised the budget and never measured again` (G8-6b). It cannot see whether the metric is the right one for the product, and it never re-measures: re-anchoring is a deliberate operator action. SKIPs with a reason when no perf metric is declared, or none has been recorded yet. |
|
|
998
1006
|
| `BN-00` | target | script | Every ban has an enforcement row, every ban row names a replacement, and the ban table is not empty. | goblin-verify --only BN-00 | — (this row is the reason the ban list cannot decay into prose: IN-03's shape applied to bans.tsv, and it agrees in both directions) |
|
|
999
1007
|
| `BN-01` | target | lint | No `any` in application TypeScript. | goblin-verify --only BN-01 | Text probe, not an AST: a `: any` inside a string or a comment is reported, and `Record<string, any>` (no leading colon) is missed. The AST form needs a parser the no-npm contract (docs/GUIDE.md) forbids (docs/LIMITS.md #27). SKIPs when an explicit `bans_disabled:` names it, or its globs match no file. |
|
|
1000
1008
|
| `BN-02` | target | lint | No `@ts-ignore` / `@ts-expect-error` suppressions. | goblin-verify --only BN-02 | Text probe: it sees the directive wherever it appears, including inside a string, and cannot tell a suppression hiding a real error from one on a line that would compile anyway. SKIPs when an explicit `bans_disabled:` names it, or its globs match no file. |
|
|
1001
1009
|
| `BN-03` | target | lint | No direct network call from a component. | goblin-verify --only BN-03 | Text probe over the declared component globs: it stops the call and cannot tell whether a data layer was written or the call merely moved into a helper. SKIPs when an explicit `bans_disabled:` names it, or its globs match no file. |
|
|
1002
1010
|
| `BN-05` | target | lint | No import across a declared layer boundary. | goblin-verify --only BN-05 | Reads the `layers:` list; an empty list SKIPs with a reason, never a vacuous pass. It matches an import path naming the target directory's last segment - module aliases and dynamic imports are not seen. SKIPs when no file matches its globs. |
|
|
1003
|
-
| `BN-06` | target | lint | No renderer with Node access (`nodeIntegration: true`). | goblin-verify --only BN-06 | Text probe over the ban table's globs, the same mechanism as BN-01..BN-05: it sees `nodeIntegration: true` wherever it appears, including inside a string, and cannot see a webPreferences object built at run time or spread in from another module. The STRONGER form is a runtime measurement - the renderer prints `process.contextIsolated` and `process.sandboxed` and the check requires true/true - and that needs a real Electron process, which the dependency contract (docs/GUIDE.md) does not allow a shipped rule to launch: it is the project's host gate (docs/LIMITS.md #34). SKIPs when an explicit `bans_disabled:` names it, or `package.json` does not name electron (the `dep:electron` predicate). |
|
|
1004
|
-
| `BN-07` | target | lint | No renderer with context isolation or the process sandbox turned off. | goblin-verify --only BN-07 | One probe for two properties because Electron's own documentation makes them one: disabling `contextIsolation` "also disables process sandboxing", so a repo that has turned either off has lost both. Text probe, with the same false-positive set as BN-06. SKIPs when an explicit `bans_disabled:` names it, or `package.json` does not name electron (the `dep:electron` predicate). |
|
|
1005
|
-
| `BN-08` | target | lint | No dangerous webPreferences. | goblin-verify --only BN-08 | Four one-line patterns from Electron's own security checklist (`webSecurity: false`, `allowRunningInsecureContent: true`, `enableBlinkFeatures`, `<webview allowpopups>`). Text probe: `enableBlinkFeatures` is banned by name rather than by value, so the string is reported even in a comment. SKIPs when an explicit `bans_disabled:` names it, or `package.json` does not name electron (the `dep:electron` predicate). |
|
|
1006
|
-
| `BN-09` | target | lint | No synchronous IPC and no `@electron/remote`. | goblin-verify --only BN-09 | The banned-list shape the wave's note 9 asks for, applied to Electron: `sendSync(` and `@electron/remote` block the renderer's own thread, which is the freeze these bans exist to prevent. Text probe - it sees the call site, not the call graph, so a wrapper around `sendSync` in a file the globs do not match is missed. SKIPs when an explicit `bans_disabled:` names it, or `package.json` does not name electron (the `dep:electron` predicate). |
|
|
1007
1011
|
| `FM-01` | target | lint | Every feature file is indexed from the map README, declares its slug and at least one entry path, and carries the four-H2 entry contract. | goblin-verify --only FM-01 | SKIPs (exit 3) when feature_map: is empty - a fresh install has no map and must not be born RED (the D8 shape). When a map IS declared: the README must exist, every features/*.md must be linked from it in the (./<slug>.md) form and every relative .md link must resolve, each feature file's `feature:` must equal its filename stem, it must declare >=1 `entry_paths:`, and its H2s must be exactly Sub-features / How to get to it (user POV) / Driving it with <harness> / Gotchas, in that order. Partial: the README's own H2s are prose this row does not read, and 'the map lists every user-facing feature' is not mechanically checkable - that is docs/LIMITS.md #30, not a row. |
|
|
1008
1012
|
| `FM-02` | target | lint | Every entry point a feature declares still resolves in source, and no entry path changed after the map was verified. | goblin-verify --only FM-02 | SKIPs (exit 3) when feature_map: is empty. A tripwire, not a proof. The token is searched under source_root with occurrences under the map's own directory excluded - without that exclusion the map's own entry-path list satisfies the search and the row could never go RED. Freshness is `git log -1 --format=%cs` on the resolved file against the feature's `verified:` date, and git sees a FILE change, not a behaviour change: the row can be RED-when-stale and never GREEN-means-fresh. A token that also occurs in a vendored copy or a build artifact is read as resolved, and a `verified:` date is itself a claim the row cannot test (docs/LIMITS.md #30). W5-4: the search skips the harness's own directories (`.gob/`, `.hermes/`, the declared `harness_dir`) and the map's own directory, so a stub map whose token occurs only in the install no longer resolves; a token that occurs only in the target's own `docs/`, `tests/` or build output still does (docs/LIMITS.md #37). Z1-6: the resolved file must be TRACKED (`git ls-files --error-unmatch`) before its date is compared - an untracked file used to make the freshness clause skip in silence, so a map could claim `verified: 2020-01-01` over source that was never committed. |
|
|
1009
1013
|
| `VA-01` | target | gate | The generated verification skill's doctor command runs and exits 0. | goblin-verify --only VA-01 | SKIPs (exit 3) when verify_doctor: is empty (the replay.commit: "" shape). Runs the DECLARED command exactly as GT-02 runs a declared gate, and never a string read out of file content (the v0.2 blocker). Closes P6's stated-but-unenforced clause 'a generated skill that was never executed is a draft': the doctor is the smallest executable proof that the skill's own instructions still run - and it proves only that, never that the doctor tests the right path. |
|
|
@@ -1011,6 +1015,7 @@ Measured shape of this table: **34 rows** - 30 target, 4 source; advisory 0, gat
|
|
|
1011
1015
|
| `RC-02` | target | lint | The reference manifest is shaped so `RC-01` cannot pass vacuously. | goblin-verify --only RC-02 | Schema `reference-manifest/1`; `generated_from` non-empty; `reference_app.package`/`.version`/`apk_sha256` (64 hex); `entries` non-empty; every entry carries `path`, 64-hex `sha256`, numeric `bytes`; `entry_count` equals `len(entries)`. SKIPs with `RC-01`'s reason when the key is empty. Exists because `RC-01` alone carries the `bans.tsv` weakness: a weakened input passes the check it feeds (`LIMITS.md` #28). It cannot see whether the entries are the *right* hashes - that is as strong as tamper hashing, and `installed.json` is unsigned (`LIMITS.md` #18). |
|
|
1012
1016
|
| `RC-03` | target | script | A lab repo tracks no extracted byte: scripts, notes, manifests, docs only. | goblin-verify --only RC-03 | Two clauses: every tracked path falls under a declared allowlist (`scripts/`, `notes/`, `manifests/`, root docs - the harness's own `.gob/` and `.hermes/` files and the `.gitignore` block it appends are the install, not the lab's content, and are excluded the way `FM-02` excludes them); and no tracked file's sha256 equals any hash in a `manifests/*.sha256`. The manifest itself lists paths and hashes, which the lab repo's own README explicitly permits - the check is about *bytes*, and it must not read the manifest as a violation. SKIPs with a reason when no `manifests/` exists. Cannot see a payload renamed and re-encoded - which is why the allowlist is a second, independent trap. |
|
|
1013
1017
|
| `RC-04` | target | lint | The acquisition record exists, and the manifest names the target and its source. | goblin-verify --only RC-04 | The header block must name a target slug + version, a source store, and a checksum (md5 or sha256 hex); the manifest must hold a `*.apk` row, the header's named apk must be that row, and a 64-hex token in the header, if present, must equal the row's sha256 (a header carrying only the md5 passes - the comparison is conditional in the engine). Weakest of the four: it proves a record EXISTS, not that the number came from the store (`HP-03`'s defect). It is the first to cut if the matrix gets heavy. |
|
|
1018
|
+
| `EX-01` | target | advisory | A fragment that carries its own style block anchors every rule to that fragment's own identity; two instances on one page must not share a selector. | fragment emitters, read by a human | A generated fragment's <style> is a document-wide stylesheet: N instances collide on bare element and class selectors, and the failure is silent and per-instance (one instance's hover rule wins over another's). Not yet an engine check because the engine cannot see the emitter's output - it would have to build the thing first. Fragments assembled at runtime from a string the repo never writes stay outside any check. |
|
|
1014
1019
|
| `PR-01` | source | test | The installer never writes outside its target. | tests/run-tests.sh | — |
|
|
1015
1020
|
| `PR-02` | source | test | A second install is a no-op, and an upgrade reports created/updated/unchanged. | tests/run-tests.sh | — |
|
|
1016
1021
|
| `PR-03` | source | test | Every target-scope check goes RED under its own violation. | tests/run-tests.sh | — (the negative control the verifier re-runs) |
|
|
@@ -1018,8 +1023,8 @@ Measured shape of this table: **34 rows** - 30 target, 4 source; advisory 0, gat
|
|
|
1018
1023
|
|
|
1019
1024
|
### Advisory rows, named
|
|
1020
1025
|
|
|
1021
|
-
0 of the
|
|
1022
|
-
advisory rows (`HP-04`, `HS-03`, `CM-02`, `DOC-01`, `DOC-02
|
|
1026
|
+
0 of the 26 rows are labelled `advisory`. 0 of them carry no executable check at all — the five
|
|
1027
|
+
advisory rows (`HP-04`, `HS-03`, `CM-02`, `DOC-01`, `DOC-02`) all moved to the library
|
|
1023
1028
|
(`gob verify --library`), so a default run carries no prose row (they are prose the matrix
|
|
1024
1029
|
refuses to pretend about).
|
|
1025
1030
|
|
|
@@ -1028,17 +1033,19 @@ refuses to pretend about).
|
|
|
1028
1033
|
- **CM-02** (no check at all) - The commit message was written to a file, not passed with -m.
|
|
1029
1034
|
- **DOC-01** (no check at all) - A significant change updates the docs that teach it.
|
|
1030
1035
|
- **DOC-02** (no check at all) - System-level changes are recorded wherever the project's standard says they live.
|
|
1031
|
-
- **
|
|
1036
|
+
- **GT-06** (a reader, not a command) - The assertion bodies are read by a human: a gate holding two literals it typed itself can never fail.
|
|
1037
|
+
- **EX-01** (a reader, not a command) - The fragment emitters are read by a human: two instances on one page must not share a selector.
|
|
1032
1038
|
|
|
1033
1039
|
`advisory_ceiling` (default 10) caps that count: **SK-03 fails the run when the advisory
|
|
1034
1040
|
count exceeds it.** The number of unenforceable rules is itself a gate. Measured (v3):
|
|
1035
|
-
`advisory
|
|
1041
|
+
`advisory 5 of ceiling 10`; measured 2026-11-27 (GT-06 and EX-01 joined the library):
|
|
1042
|
+
`advisory 7 of ceiling 10`.
|
|
1036
1043
|
|
|
1037
1044
|
**The budget, stated so the next rule author does not have to work it out (V1/G8-5).** The
|
|
1038
|
-
count is
|
|
1045
|
+
count is 7 of a ceiling of 10, so **three advisory slots are free**: a tenth advisory row is
|
|
1039
1046
|
available, but the one after the ceiling FAILs `SK-03` unless the ceiling is raised in the same
|
|
1040
1047
|
change, with the reason written down. `SK-03` prints the arithmetic on every run
|
|
1041
|
-
(`advisory
|
|
1048
|
+
(`advisory 7 of ceiling 10 (3 free slots)`), and a ceiling that is not a number is a FAIL rather
|
|
1042
1049
|
than a silent ADVISORY. The v3 cuts returned the slots the model/role/loop, dependency-audit and
|
|
1043
1050
|
CI rows had spent.
|
|
1044
1051
|
|
|
@@ -1047,7 +1054,7 @@ OR its `enforced_by` cell does.
|
|
|
1047
1054
|
|
|
1048
1055
|
### The ban list (G5)
|
|
1049
1056
|
|
|
1050
|
-
`BN-00`..`BN-
|
|
1057
|
+
`BN-00`..`BN-05` are not ordinary rows: they read `.gob/manifest/bans.tsv`, a table whose
|
|
1051
1058
|
every row carries a real command. A ban with no mechanism is a wish, so `.gob/manifest/bans.tsv`
|
|
1052
1059
|
holds `id`, the ban, the globs, the `applies_when` glob, the `detect` command, the replacement
|
|
1053
1060
|
code, the escape hatch, the reviewer and the source — and `BN-00` fails the whole list if any ban has no enforcement
|
|
@@ -1215,7 +1222,7 @@ them: it reads the path from config, so moving the standard is a one-line config
|
|
|
1215
1222
|
git init -b main
|
|
1216
1223
|
gob init --heuristic # the brief + schema; answer it in a proposal file
|
|
1217
1224
|
gob init --write .gob-init-proposal.md --yes
|
|
1218
|
-
# expect: created
|
|
1225
|
+
# expect: created 23 (the 5-skill core tier + the categories inventory vendor; the Hermes tier is opt-in; FIX 3 drops the unchecked SPEC/reviews)
|
|
1219
1226
|
|
|
1220
1227
|
# 2. commit and check
|
|
1221
1228
|
git add -A && git commit -m "chore: install gobstack"
|
package/docs/LIMITS.md
CHANGED
|
@@ -38,8 +38,10 @@ the rest — in its dated parentheticals; `docs/RECORD-NOTES.md` is the legend.)
|
|
|
38
38
|
8. **A new surface to maintain.** Per-repo vendored `.gob/` plus `.hermes/skills/` means
|
|
39
39
|
upgrade debt in every adopted repo, plus one more command pair to learn. The counter is that
|
|
40
40
|
the alternative — profile copies — already failed.
|
|
41
|
-
9. **
|
|
42
|
-
`HP-04`, `HS-03`, `CM-02`, `DOC-01
|
|
41
|
+
9. **Seven rows are labelled `advisory`, and all seven are prose a reader, not a command,**
|
|
42
|
+
**checks:** `HP-04`, `HS-03`, `CM-02`, `DOC-01` and `DOC-02` (`SC-09` was withdrawn on
|
|
43
|
+
2026-11-25 — see #67 and docs/AUDIT-2026-11-25-framework-agnostic.md), joined on 2026-11-27
|
|
44
|
+
by `GT-06` and `EX-01` (see #68 and #69). Each is counted and capped, but a
|
|
43
45
|
counted rule is still not an enforced one, and **the cap is a policy, not a proof.**
|
|
44
46
|
10. **It does not reduce the profile-skill surface.** It only stops that surface from growing
|
|
45
47
|
with project procedures; the existing divergence is a separate cleanup.
|
|
@@ -126,7 +128,7 @@ the rest — in its dated parentheticals; `docs/RECORD-NOTES.md` is the legend.)
|
|
|
126
128
|
25. **`SC-04` reads one statement, not one program.** A cookie write spread over three lines (or
|
|
127
129
|
assembled through a helper) is not seen, and the row says so in its own cell.
|
|
128
130
|
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
|
|
131
|
+
default matrix at a ceiling of 10 (all five moved to the library), so `SK-03` reports
|
|
130
132
|
`advisory 0 of ceiling 10 (10 free slots)`. A row is advisory
|
|
131
133
|
if its `check` cell says so OR its `enforced_by` cell does; the cap is a count — 10 advisory
|
|
132
134
|
rows at a ceiling of 10 **pass**, and the 11th FAILs (10 at a ceiling of 9 FAILs). The v3 cuts
|
|
@@ -528,13 +530,152 @@ the Node the gates ran under.
|
|
|
528
530
|
so a fixture named anything else is invisible. The failure it was adopted from was a harness
|
|
529
531
|
green on declared node sizes while every shared payload carried none (CURATION-2026-11-07
|
|
530
532
|
§2 C1).
|
|
533
|
+
60. **`AG-01` proves the file matches an approval, not that an approval happened.** The row
|
|
534
|
+
hashes `AGENTS.md` and compares it with the last row of `.gob/agents.approved` — the record
|
|
535
|
+
says a named person approved a file with that hash on that date, and nothing more. It cannot
|
|
536
|
+
see whether the approver read the diff (a rubber stamp records as cleanly as a review); a
|
|
537
|
+
worker able to write both files can forge a record, because the hash is a witness, not a
|
|
538
|
+
signature — nothing checks the approver's identity beyond the git `user.name` the command
|
|
539
|
+
happened to find; and a change that also rewrites or appends to the record is invisible to
|
|
540
|
+
the row itself (git history is the backstop: the record is a committed file, so a rewritten
|
|
541
|
+
history shows in `git log -p .gob/agents.approved`). A re-run of `gob init --write` over a
|
|
542
|
+
repo that already has a record deliberately does NOT re-approve: its own block rewrite then
|
|
543
|
+
leaves `AG-01` red until a human runs `gob approve-agents`, which is the honest direction
|
|
544
|
+
to fail in. The failure it was adopted from was a mid-run `AGENTS.md` edit that needed a
|
|
545
|
+
human Allow and left no trace of who approved it (CURATION-2026-11-07 §2 C6).
|
|
546
|
+
|
|
547
|
+
61. **`PV-01` compares project-resolvable modules, and an import still proves reachability, not an identical render.**
|
|
548
|
+
The check collects the module specifiers a review surface's `layout.*` imports and compares
|
|
549
|
+
them with the public layout at the equivalent position — but the intersection counts
|
|
550
|
+
PROJECT-RESOLVABLE modules only: both sides are reduced to ONE canonical key space —
|
|
551
|
+
ROOT-relative module paths with the probed extension and a trailing `/index` stripped —
|
|
552
|
+
so the surface and its public layout may name the same module in different styles (one
|
|
553
|
+
relative, the other through a resolvable alias) and still intersect (2026-11-25
|
|
554
|
+
preview-surfaces round 4: the keys used to come from two different spaces and never
|
|
555
|
+
intersect — a guaranteed false RED in any repo with tsconfig `paths`). A relative
|
|
556
|
+
specifier counts once normalised, while a bare specifier counts only when it resolves to
|
|
557
|
+
a file that exists inside
|
|
558
|
+
the repo (tsconfig.json/jsconfig.json `baseUrl`+`paths` first — read as strict JSON, so a
|
|
559
|
+
commented JSONC leaves its aliases unresolvable — then `<ROOT>/<spec>` with the usual
|
|
560
|
+
extension and index probing). The route layout itself is chosen by EXACT basename with a
|
|
561
|
+
code extension (`layout.tsx`, `layout.ts`, `layout.jsx`, `layout.js`, `layout.mts`,
|
|
562
|
+
`layout.mjs`, `layout.cts`, `layout.cjs`, in that precedence order), never by globbing
|
|
563
|
+
`layout.*`: a stylesheet, a type declaration or a test beside a layout (`layout.css`,
|
|
564
|
+
`layout.module.css`, `layout.scss`, `layout.d.ts`, `layout.test.tsx`, `layout.spec.tsx`)
|
|
565
|
+
is a different basename and is never a candidate, and when two code layouts sit side by
|
|
566
|
+
side the tsx one wins deterministically. A directory whose only `layout.*` files are such
|
|
567
|
+
siblings fails as `no layout file was found`, not as an import mismatch — the reader is
|
|
568
|
+
never told to compare a stylesheet against code (2026-11-25 preview-surfaces round 6:
|
|
569
|
+
before the exact-name list, `ls layout.* | head -1` picked whichever sibling sorted first
|
|
570
|
+
— `layout.css`, `layout.d.ts` and `layout.test.tsx` all sort before `layout.tsx` — so all
|
|
571
|
+
six sibling shapes were false REDs, each accusing the sibling by name). An installed package, a `node:` builtin or anything else the
|
|
572
|
+
probe cannot resolve is NEVER evidence that a surface pulls in the published shell: two
|
|
573
|
+
layouts both importing `react` or `next/link` are RED (PR #2 review round 2 — both used to
|
|
574
|
+
be a false GREEN, the worse direction). A specifier that resolves nowhere — including a
|
|
575
|
+
relative one that climbs out of the project root, which names a module outside the repo —
|
|
576
|
+
is dropped from
|
|
577
|
+
the intersection and the RED message says so, so the reader knows an unresolvable alias may
|
|
578
|
+
be the cause and that `preview_differs: <list>` is the escape hatch. When NO ancestor layout
|
|
579
|
+
exists inside the route tree, the public layout is searched among SIBLING route groups of the
|
|
580
|
+
same tree instead (2026-11-25 preview-surfaces round 5: the rule's own real-world instance had
|
|
581
|
+
the public shell in `app/(frontend)/[locale]/layout.tsx` beside a review surface
|
|
582
|
+
`app/(preview)/preview/layout.tsx`, so the ancestor-only walk found nothing, printed
|
|
583
|
+
`not judged` and still returned PASS — a green that judged nothing, and a row whose only
|
|
584
|
+
real-world instance is `not judged` does not earn its place). A grouped sibling contributes
|
|
585
|
+
every `layout.*` under it becomes a candidate only through the same exact-name list, a plain sibling its depth-1 layout only; a depth-1 sibling that
|
|
586
|
+
itself looks like a review surface is not a candidate — a sibling review surface is not
|
|
587
|
+
published furniture, and comparing two surfaces proves nothing. The fallback passes if ANY
|
|
588
|
+
sibling group shares at least one project-resolvable module, and the PASS names the group and
|
|
589
|
+
the shared modules (max 3, then +N more); when candidates exist but none shares a module, the
|
|
590
|
+
row is RED, naming the candidates tried and the specifiers dropped as unresolvable. What a
|
|
591
|
+
sibling match MEANS stays honest: a shared module is reachability of the same furniture, not
|
|
592
|
+
proof of an identical render, and because any matching sibling passes, a sibling group that
|
|
593
|
+
shares only a trivial util clears the surface too; an unresolvable alias or a runtime-built
|
|
594
|
+
specifier is still a false RED the `preview_differs:` hatch clears. The comparison cannot
|
|
595
|
+
see past the import: a shell imported and then overridden by a local wrapper (its own
|
|
596
|
+
headers, its own routing context, an extra provider) passes, because reachability is all a
|
|
597
|
+
text probe has, and a surface whose layout shares no module with the public layout passes
|
|
598
|
+
too if the file carries `preview_differs: <list>` — the marker is a declared difference,
|
|
599
|
+
and the check cannot tell whether the declaration is honest (CURATION-2026-11-25 §2 P1).
|
|
600
|
+
The extractor reads whole-file text (a prettier-wrapped brace list, a dynamic `import(`, a
|
|
601
|
+
`require(` are all seen), and what it still cannot see after that fix, in the two directions
|
|
602
|
+
it admits honestly: an alias the bundler resolves but this text probe cannot (a JSONC
|
|
603
|
+
tsconfig, a non-file target), or a specifier built at runtime (`import(someVar)` has no
|
|
604
|
+
literal to read) — the surface reads as if it imports nothing, a false RED. A
|
|
605
|
+
specifier-shaped string literal no longer over-matches either (PR #2 review round 3: an
|
|
606
|
+
off-by-one in the scan's dynamic-`import(` guard made every keyword-bearing segment read as
|
|
607
|
+
static, so an in-string `from '<spec>'` was vouched by a string that merely mentioned
|
|
608
|
+
`import`): the from-clause keyword scan now masks quoted runs in the segment it inspects,
|
|
609
|
+
so an in-string from-specifier no longer vouches. What remains is a MASK — a text rule,
|
|
610
|
+
not a lexer — that an escaped quote inside a string or an apostrophe in JSX text can break
|
|
611
|
+
by resynchronising at the wrong quote; the truncated segment loses keywords, so the
|
|
612
|
+
resulting error is a false RED (fewer specifiers vouched), never a false GREEN. The
|
|
613
|
+
literal scans (side-effect `import '...'`, dynamic `import(`, `require(`) still read any
|
|
614
|
+
quoted run, so a string shaped exactly like one of those can still be extracted — the
|
|
615
|
+
text-probe floor this row sits on. A module reached only through a re-export barrel
|
|
616
|
+
(`index.ts`) whose own specifiers live in another file is not followed, so a barrel pass
|
|
617
|
+
proves nothing about what the barrel re-exports; and the scan is TEXT, so a
|
|
618
|
+
`from '<spec>'` in a comment is stripped first (comments cannot vouch for an import) and,
|
|
619
|
+
since round 3, a contrived string no longer can either (PR #2 review).
|
|
620
|
+
|
|
621
|
+
62. **`PV-02` was withdrawn (2026-11-25, after review): framework-specific.** The row read Next.js
|
|
622
|
+
App Router conventions (`loading.*` boundaries, `notFound()`) that exist in no other framework —
|
|
623
|
+
a lesson lifted into gobstack must be true regardless of framework (CURATION-2026-11-25 §0),
|
|
624
|
+
and a mechanism may probe per-framework conventions only where a repo without them gets
|
|
625
|
+
SKIP-with-a-reason, never a RED. The defect class stays advisory (CURATION-2026-11-25 §3 P2).
|
|
626
|
+
63. **`SC-03` still cannot read the secrets it never scans.** The fixed gate (2026-11-25) refuses
|
|
627
|
+
to PASS on zero inspection: with no JS-family source and no declared build output the row now
|
|
628
|
+
SKIPs with the reason instead of printing `0 client-visible secret-shaped name(s)`. The
|
|
629
|
+
JS-family set that decides "examined anything" also excludes the kit's own harness scaffold
|
|
630
|
+
(`AGENTS.md` `harness_dir:`, the installer's default `checks/`): a repo whose only JS-family
|
|
631
|
+
file is the scaffold the kit itself installed (e.g. `checks/assert.mjs`) is told so — SKIP
|
|
632
|
+
with the zero-inspection reason — never a green `0 ... name(s)` graded over the kit's own
|
|
633
|
+
file. What it still cannot see: secret-shaped names in non-JS sources (it skips, naming
|
|
634
|
+
that), and clause 2 still reads only the build output `security.build_output` declares — an
|
|
635
|
+
undeclared artifact directory is invisible, not clean.
|
|
636
|
+
64. **`SC-04` still cannot see a cookie write it did not parse.** The fixed gate SKIPs when zero
|
|
637
|
+
cookie writes were examined (`no cookie write found in N examined file(s)`), so a non-JS
|
|
638
|
+
repo (a Python `response.set_cookie`) can no longer PASS vacuously. What it still cannot
|
|
639
|
+
see: a write assembled through a helper or split across lines (see #25), and writes in the
|
|
640
|
+
languages the read set excludes — those get the named skip, never a green.
|
|
641
|
+
65. **`SC-05` still trusts the declaration it is given.** The fixed gate SKIPs when
|
|
642
|
+
`security.write_routes` is undeclared (`there is no route surface to check`) and when the
|
|
643
|
+
declaration matched zero handlers (naming the declaration and the 0 matches) instead of
|
|
644
|
+
passing `0 write handler(s)`. What it still cannot see: a write handler that matches none of
|
|
645
|
+
the declared route patterns, and writes made outside any declared route (middleware, raw
|
|
646
|
+
server code) — the declaration bounds the check, and nothing verifies the declaration is
|
|
647
|
+
complete.
|
|
648
|
+
66. **`HS-02` proves RED only for the replay set it ran.** The fixed gate counts the harnesses
|
|
649
|
+
actually replayed: zero → SKIP (`no harness in <dir> matched the replay set`); the PASS now
|
|
650
|
+
names the count, the pinned commit and the extension set, and files present that the replay
|
|
651
|
+
set does not run are listed in a `not replayed:` tail instead of being silently outside the
|
|
652
|
+
proof. What it still cannot see: it cannot replay a harness in another extension — it names
|
|
653
|
+
the excluded extensions, it does not grade them.
|
|
654
|
+
67. **Six rows were withdrawn on 2026-11-25: framework-bound statements.** `BN-06`..`BN-09`
|
|
655
|
+
(Electron), `HV-02` (browser bounding-box + Node child-process) and `SC-09` ("sibling
|
|
656
|
+
routes", web routing) state mechanics no repo in the fleet has; on every other shape they
|
|
657
|
+
graded nothing and went green. The rule text survives in
|
|
658
|
+
docs/AUDIT-2026-11-25-framework-agnostic.md under "withdrawn — where it went", with the
|
|
659
|
+
resurrection recipe; `--only <id>` on a removed row reports it is in neither the manifest,
|
|
660
|
+
the library nor the local override.
|
|
661
|
+
68. **`GT-06` — gate-integrity, advisory (added 2026-11-27).** Detecting "this assertion compares
|
|
662
|
+
two typed constants" from text is a heuristic, not a proof: a legitimate gate also compares a
|
|
663
|
+
measurement against a recorded ceiling, and only the diff history tells a recorded number from
|
|
664
|
+
an invented one. Advisory on purpose - it costs the reviewer one question (what would make this
|
|
665
|
+
line red?) where a text lint would cost every harness a false positive.
|
|
666
|
+
69. **`EX-01` — fragment-scoped CSS, advisory (added 2026-11-27).** A generated fragment's
|
|
667
|
+
`<style>` block is a document-wide stylesheet: N instances collide on bare element and class
|
|
668
|
+
selectors, and the failure is silent and per-instance (one instance's hover rule wins over
|
|
669
|
+
another's). Not yet an engine check because the engine cannot see the emitter's output - it
|
|
670
|
+
would have to build the thing first. Fragments assembled at runtime from a string the repo
|
|
671
|
+
never writes stay outside any check.
|
|
531
672
|
|
|
532
673
|
---
|
|
533
674
|
|
|
534
675
|
## The guard rails — the security and perf rows
|
|
535
676
|
|
|
536
677
|
`manifest/enforcement.tsv` is the machine-readable form; this is the prose for the ten rows it
|
|
537
|
-
gained in v0.2 (`SC-01`..`SC-
|
|
678
|
+
gained in v0.2 (`SC-01`..`SC-08`, `PF-01` — `SC-09` withdrawn 2026-11-25, see #67). Every one of them is **declared** in
|
|
538
679
|
the `AGENTS.md` gob block under `security:` and `perf:` - a stack-specific rule guessed from the
|
|
539
680
|
files on disk is how a matrix starts lying, so nothing here infers a stack.
|
|
540
681
|
|
|
@@ -549,7 +690,9 @@ rung below must be *demonstrably unable* to see it - the reason is recorded in t
|
|
|
549
690
|
1. **No network at verify time.** `README.md` K4: a network call at verify time breaks the
|
|
550
691
|
offline dependency contract. A row that needs the network is not a verify-time row.
|
|
551
692
|
2. **`enforced_by` is a closed enum** (`script`, `lint`, `gate`, `advisory`) and `check` is one of:
|
|
552
|
-
a real command, the literal `advisory`,
|
|
693
|
+
a real command, the literal `advisory`, prose that names its reader (the library's `GT-06`/`EX-01`
|
|
694
|
+
rows end in ", read by a human" — the engine advisories them instead of executing the prose as a
|
|
695
|
+
shell command), or `goblin-verify --only <ID>` for a multi-line body.
|
|
553
696
|
Every row here obeys that, and `IN-03` fails the manifest otherwise.
|
|
554
697
|
3. **`advisory_ceiling` is 10 and the labelled count is 0.** The matrix labels no row
|
|
555
698
|
`advisory`, and the ceiling caps that count at **0 of 10** — every advisory row moved to the
|
package/manifest/bans.tsv
CHANGED
|
@@ -3,7 +3,3 @@ BN-01 No `any` in application TypeScript. src bash .gob/bans/grep-ban.sh -e ':[[
|
|
|
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) **/*.ts **/*.tsx
|
|
4
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
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
|
package/manifest/categories.tsv
CHANGED
|
@@ -16,3 +16,4 @@ category pack source license provides fits_when
|
|
|
16
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
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
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
|
|
19
|
+
anti-slop antislop https://github.com/miqdadbadjuber/anti-slop MIT 6 SKILL.md packs at v3.2.33: core filter (40 tiered rules + 4-block delivery gate with evidence per PASS), ui, copywriting, human/a11y, layoutmobile, code-comment hygiene target ships a web/UI surface or user-facing copy AND the owner wants a written-purpose gate on visual, copy and comment slop rather than only mechanical checks
|