@techgoblin/gobstack 0.6.0-beta.1 → 0.6.0-beta.2
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 +14 -0
- package/README.md +2 -2
- package/VERSION +1 -1
- package/bin/goblin-bans +1 -1
- package/bin/goblin-install +1 -1
- package/bin/goblin-lib.sh +1 -1
- package/bin/goblin-verify +163 -1
- package/docs/CURATION-2026-11-07-gobigrams.md +223 -0
- package/docs/GUIDE.md +20 -17
- package/docs/LIMITS.md +26 -2
- package/manifest/enforcement.tsv +3 -0
- package/package.json +1 -1
- package/skills/goblin-bootstrap/SKILL.md +2 -2
- package/skills/goblin-handoff/SKILL.md +5 -0
- package/skills/goblin-verify-author/SKILL.md +12 -0
- package/templates/HANDOFF.md.tmpl +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -42,6 +42,20 @@ version recorded in a target's `.goblin/installed.json` and the source `VERSION`
|
|
|
42
42
|
promotes them into catalogue.tsv by PR or edit. `--write` honours only the proposal's TICKED
|
|
43
43
|
rows, through `gob extras install` itself — one allowlist, one code path.
|
|
44
44
|
|
|
45
|
+
## 0.6.0-beta.2
|
|
46
|
+
|
|
47
|
+
The three curation rows from one project, and the sentence one of them had to lose after the drill.
|
|
48
|
+
|
|
49
|
+
- **Three rows adopted from one project's curation — an instrument, a queue, an input.** `HV-02` (a number taken
|
|
50
|
+
from a live surface carries its guard: a bounding box is asserted inside the capture viewport, a number parsed
|
|
51
|
+
from a Node child-process result is asserted finite), `HP-06` (every handoff next step is owned with a date, done
|
|
52
|
+
with evidence, or cancelled with the decision — `open` is not a shape) and `HV-01` (a check that asserts a
|
|
53
|
+
user-visible outcome builds its input through the producer the user's input comes through). All three are text
|
|
54
|
+
probes of the `BN-01` class and each states in its why-cell and in `docs/LIMITS.md` what it cannot see.
|
|
55
|
+
`tests/t-hvhp-rows.sh` plants one violation per row in a throwaway repo and requires red-then-green for each;
|
|
56
|
+
the per-clause escapes (`guarded:`, `produced_by:`) are controlled in `t-verify-red.sh`. Adopted from
|
|
57
|
+
`docs/CURATION-2026-11-07-gobigrams.md` §2 C1–C3.
|
|
58
|
+
|
|
45
59
|
## 0.6.0-beta.1
|
|
46
60
|
|
|
47
61
|
The v3 release: the goblin-stack rewrite merged to main (ce203953) — one verify command,
|
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ After installing, in this order:
|
|
|
54
54
|
cd <target> && git add -A && git commit # the install is a change like any other
|
|
55
55
|
.gob/bin/goblin-verify # or gob verify, anywhere in the target
|
|
56
56
|
|
|
57
|
-
**A default install verifies green — `
|
|
57
|
+
**A default install verifies green — `20 passed, 0 failed, 0 advisory,
|
|
58
58
|
10 skipped`, exit 0 — once `HANDOFF.md` names a commit that exists. Before that edit the
|
|
59
59
|
scaffold's `0000000` placeholder is the one expected red.** Ten rows skip: `SK-01`, `SK-02` and
|
|
60
60
|
`SK-04` **run** (the core procedure tier is vendored under `.gob/skills/` on every install);
|
|
@@ -174,7 +174,7 @@ run · `3` the manifest is broken. Every run prints what it cannot see.
|
|
|
174
174
|
bash tests/run-tests.sh
|
|
175
175
|
|
|
176
176
|
Runs the source-scope rules (PR-01..PR-04) and the test scripts, including `t-verify-red.sh` —
|
|
177
|
-
one control per target-scope row (
|
|
177
|
+
one control per target-scope row (125 over 62 target rows), each required to go RED and then
|
|
178
178
|
restored. **A verifier that only ever prints GREEN is a failure**, so that file is the one that
|
|
179
179
|
matters most.
|
|
180
180
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.0-beta.
|
|
1
|
+
0.6.0-beta.2
|
package/bin/goblin-bans
CHANGED
package/bin/goblin-install
CHANGED
package/bin/goblin-lib.sh
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# - name: typecheck four-space-indented second member of a list entry
|
|
17
17
|
# cmd: npx tsc --noEmit
|
|
18
18
|
|
|
19
|
-
GOBLIN_LIB_VERSION="0.6.0-beta.
|
|
19
|
+
GOBLIN_LIB_VERSION="0.6.0-beta.2"
|
|
20
20
|
|
|
21
21
|
# ---------------------------------------------------------------- output -----
|
|
22
22
|
# g_trunc <width> <text> — fold a long detail to one line at <width> columns, keeping the
|
package/bin/goblin-verify
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
set -uo pipefail
|
|
21
21
|
|
|
22
|
-
GOBLIN_VERIFY_VERSION="0.6.0-beta.
|
|
22
|
+
GOBLIN_VERIFY_VERSION="0.6.0-beta.2"
|
|
23
23
|
SELF_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
24
24
|
# shellcheck source=goblin-lib.sh
|
|
25
25
|
. "$SELF_DIR/goblin-lib.sh"
|
|
@@ -741,6 +741,168 @@ check_hp_05() {
|
|
|
741
741
|
[ "$found" -eq 1 ]
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
+
# ---- the curation wave (CURATION-2026-11-07 §2/§6 phase 1): HV-02, HP-06, HV-01 ----------
|
|
745
|
+
# Three text probes adopted from one project's measured failures, cheapest-and-most-
|
|
746
|
+
# preventative first (§6): an instrument that convicts the product (C2 -> HV-02), a queue
|
|
747
|
+
# that lies (C3 -> HP-06), and a check whose input is not the input the user gets (C1 ->
|
|
748
|
+
# HV-01). All three are the BN-01 class - grep over text, no AST - and each carries its
|
|
749
|
+
# honest limit in its why cell and in docs/LIMITS.md.
|
|
750
|
+
|
|
751
|
+
check_hv_02() {
|
|
752
|
+
# C2: a number taken from a live surface carries its guard. Text probe over the harness dir:
|
|
753
|
+
# PRESENCE of a guard is provable, EFFECTIVENESS is not (a decorative guard passes - the
|
|
754
|
+
# limit is stated, not hidden). A `guarded: <reason>` marker comment is the escape hatch for
|
|
755
|
+
# a harness whose guard is not nameable in these tokens.
|
|
756
|
+
local d="$GOBLIN_HARNESS_DIR" f rel bad=0 n=0 nb=0 np=0
|
|
757
|
+
if [ -z "$d" ]; then
|
|
758
|
+
if [ "$GOBLIN_HARNESS_STATE" = "absent" ]; then
|
|
759
|
+
printf 'harness_dir %s is declared and scaffold_checks is yes, but the directory is absent\n' \
|
|
760
|
+
"$GOBLIN_HARNESS_REL"
|
|
761
|
+
return 1
|
|
762
|
+
fi
|
|
763
|
+
printf 'no harness dir (%s absent, scaffold_checks is no) - nothing to guard\n' \
|
|
764
|
+
"$GOBLIN_HARNESS_REL"
|
|
765
|
+
return 3
|
|
766
|
+
fi
|
|
767
|
+
for f in "$d"/*; do
|
|
768
|
+
[ -f "$f" ] || continue
|
|
769
|
+
n=$((n + 1))
|
|
770
|
+
rel="${f#"$ROOT"/}"
|
|
771
|
+
# the marker clears every clause in the file: it names the reason the guard lives elsewhere
|
|
772
|
+
grep -Eq 'guarded:[[:space:]]*[^[:space:]]' "$f" && continue
|
|
773
|
+
if grep -q 'getBoundingClientRect(' "$f"; then
|
|
774
|
+
if grep -Eq 'innerWidth|innerHeight|visualViewport' "$f"; then
|
|
775
|
+
nb=$((nb + 1))
|
|
776
|
+
else
|
|
777
|
+
printf '%s measures a bounding box (getBoundingClientRect) with no viewport guard (innerWidth/innerHeight/visualViewport) and no guarded: marker\n' "$rel"
|
|
778
|
+
bad=1
|
|
779
|
+
fi
|
|
780
|
+
fi
|
|
781
|
+
if grep -Eq 'execSync|execFileSync|spawnSync|child_process' "$f" \
|
|
782
|
+
&& grep -Eq 'parseFloat|parseInt|Number[[:space:]]*\(' "$f"; then
|
|
783
|
+
if grep -Eq 'Number[.]isFinite|isNaN|isFinite' "$f"; then
|
|
784
|
+
np=$((np + 1))
|
|
785
|
+
else
|
|
786
|
+
printf '%s parses a number out of another process stdout with no finite guard (Number.isFinite/isNaN) and no guarded: marker\n' "$rel"
|
|
787
|
+
bad=1
|
|
788
|
+
fi
|
|
789
|
+
fi
|
|
790
|
+
done
|
|
791
|
+
[ "$bad" -eq 0 ] || return 1
|
|
792
|
+
printf '%d harness file(s); %d guarded bounding-box measurement(s), %d guarded parsed-number measurement(s)\n' \
|
|
793
|
+
"$n" "$nb" "$np"
|
|
794
|
+
return 0
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
check_hp_06() {
|
|
798
|
+
# C3: cancelled is not pending. Shape, not truth: a bullet can carry a date and the word
|
|
799
|
+
# owner and still be a lie, and work MISSING from the list is invisible - the why cell and
|
|
800
|
+
# docs/LIMITS.md say so. Only the first NEXT STEPS / NEXT section is read (HP-02 alias set);
|
|
801
|
+
# bare links, sub-headings and em-dash separator bullets are skipped; a wrapped bullet is
|
|
802
|
+
# read as one item (continuation lines join the bullet that opened them).
|
|
803
|
+
if [ ! -f "$ROOT/HANDOFF.md" ]; then
|
|
804
|
+
printf 'no HANDOFF.md - HP-01 owns that failure; this row has nothing to read\n'
|
|
805
|
+
return 3
|
|
806
|
+
fi
|
|
807
|
+
local out rc n detail
|
|
808
|
+
rc=0
|
|
809
|
+
out=$(awk '
|
|
810
|
+
function levelOf(line, i) {
|
|
811
|
+
i = 0
|
|
812
|
+
while (substr(line, i + 1, 1) == "#") i++
|
|
813
|
+
return i
|
|
814
|
+
}
|
|
815
|
+
function flush() {
|
|
816
|
+
if (bullet == "") return
|
|
817
|
+
text = bullet
|
|
818
|
+
sub(/^[[:space:]]*[-*][[:space:]]+/, "", text)
|
|
819
|
+
# a bare link carries no status at all; an em-dash separator bullet is layout, not an item
|
|
820
|
+
if (text ~ /^\[[^]]*\]\([^)]*\)[[:space:]]*$/) { bullet = ""; return }
|
|
821
|
+
if (text ~ /^—/) { bullet = ""; return }
|
|
822
|
+
n++
|
|
823
|
+
ok = 1
|
|
824
|
+
if (bullet !~ /[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]/) {
|
|
825
|
+
print "HANDOFF.md: an open item carries no date: " text
|
|
826
|
+
ok = 0
|
|
827
|
+
}
|
|
828
|
+
if (tolower(bullet) !~ /owner|done|cancelled/) {
|
|
829
|
+
print "HANDOFF.md: an open item is neither owned, done nor cancelled: " text
|
|
830
|
+
ok = 0
|
|
831
|
+
}
|
|
832
|
+
if (!ok) bad = 1
|
|
833
|
+
bullet = ""
|
|
834
|
+
}
|
|
835
|
+
/^#/ {
|
|
836
|
+
lvl = levelOf($0)
|
|
837
|
+
if (!sec) {
|
|
838
|
+
if (!seen && lvl <= 3 && tolower($0) ~ /^#+[[:space:]]+[^[:alpha:]]*next([^[:alpha:]]|$)/) {
|
|
839
|
+
sec = 1; secdepth = lvl
|
|
840
|
+
}
|
|
841
|
+
} else {
|
|
842
|
+
if (lvl <= secdepth) { flush(); sec = 0; seen = 1 }
|
|
843
|
+
}
|
|
844
|
+
next
|
|
845
|
+
}
|
|
846
|
+
!sec { next }
|
|
847
|
+
/^[[:space:]]*[-*][[:space:]]+/ { flush(); bullet = $0; next }
|
|
848
|
+
/^[[:space:]]*$/ { flush(); next }
|
|
849
|
+
bullet != "" { bullet = bullet " " $0; next }
|
|
850
|
+
END { flush(); printf "#count %d\n", n + 0; exit bad }
|
|
851
|
+
' "$ROOT/HANDOFF.md") || rc=$?
|
|
852
|
+
n=$(printf '%s\n' "$out" | sed -n 's/^#count //p')
|
|
853
|
+
detail=$(printf '%s\n' "$out" | grep -v '^#count ' || true)
|
|
854
|
+
if [ "$rc" -ne 0 ]; then printf '%s\n' "$detail"; return 1; fi
|
|
855
|
+
if [ "${n:-0}" -eq 0 ]; then
|
|
856
|
+
printf '0 next-step bullet(s) - the section lists nothing pending (work missing from the list entirely is what this row cannot see)\n'
|
|
857
|
+
else
|
|
858
|
+
printf '%s next-step bullet(s), each owned with a date, done, or cancelled with a date and the decision\n' "${n:-0}"
|
|
859
|
+
fi
|
|
860
|
+
return 0
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
check_hv_01() {
|
|
864
|
+
# C1: the payload the check uses must be the payload the user gets. Text probe: it proves a
|
|
865
|
+
# producer is NAMED - a bare-package import, or a produced_by: <function> <pinned id> marker
|
|
866
|
+
# beside a hand-written doc/board/payload/fixture literal - never that the call path matches
|
|
867
|
+
# the product wiring. The stronger form needs the product to export a single factory, which is
|
|
868
|
+
# a design change, not a probe (the why cell and docs/LIMITS.md say so).
|
|
869
|
+
local d="$GOBLIN_HARNESS_DIR" f rel bad=0 n=0 nk=0
|
|
870
|
+
if [ -z "$d" ]; then
|
|
871
|
+
if [ "$GOBLIN_HARNESS_STATE" = "absent" ]; then
|
|
872
|
+
printf 'harness_dir %s is declared and scaffold_checks is yes, but the directory is absent\n' \
|
|
873
|
+
"$GOBLIN_HARNESS_REL"
|
|
874
|
+
return 1
|
|
875
|
+
fi
|
|
876
|
+
printf 'no harness dir (%s absent, scaffold_checks is no) - nothing to build\n' \
|
|
877
|
+
"$GOBLIN_HARNESS_REL"
|
|
878
|
+
return 3
|
|
879
|
+
fi
|
|
880
|
+
for f in "$d"/*; do
|
|
881
|
+
[ -f "$f" ] || continue
|
|
882
|
+
n=$((n + 1))
|
|
883
|
+
rel="${f#"$ROOT"/}"
|
|
884
|
+
# a document/board/payload/fixture literal: an object, array or JSON string assigned to a
|
|
885
|
+
# name built on those four words
|
|
886
|
+
grep -Eq '(^|[^A-Za-z0-9_])(doc|board|payload|fixture)[A-Za-z0-9_]*[[:space:]]*[:=][[:space:]]*[\[{"]' "$f" || continue
|
|
887
|
+
# cleared by an import/require of a bare package name (the producer, reachable), ...
|
|
888
|
+
if grep -Eq "from +[\"'][^./\"]" "$f" \
|
|
889
|
+
|| grep -Eq "require\\([\"'][^./']" "$f" \
|
|
890
|
+
|| grep -Eq "import\\([\"'][^./']" "$f"; then
|
|
891
|
+
nk=$((nk + 1)); continue
|
|
892
|
+
fi
|
|
893
|
+
# ...or by the marker: the producing function plus a pinned id, both required
|
|
894
|
+
if grep -Eq 'produced_by:[[:space:]]*[^[:space:]]+[[:space:]]+[^[:space:]]+' "$f"; then
|
|
895
|
+
nk=$((nk + 1)); continue
|
|
896
|
+
fi
|
|
897
|
+
printf '%s constructs a doc/board/payload/fixture literal with no package import and no produced_by: marker - the input the check asserts is not the input the user gets\n' "$rel"
|
|
898
|
+
bad=1
|
|
899
|
+
done
|
|
900
|
+
[ "$bad" -eq 0 ] || return 1
|
|
901
|
+
printf '%d harness file(s); %d constructed input(s), each through a package import or a produced_by marker\n' \
|
|
902
|
+
"$n" "$nk"
|
|
903
|
+
return 0
|
|
904
|
+
}
|
|
905
|
+
|
|
744
906
|
check_gt_01() {
|
|
745
907
|
# Every `- name:` under `gates:` is a DECLARED gate, and every declared gate must carry a
|
|
746
908
|
# `cmd:`. Counting only the name+cmd PAIRS (what this row did) let a gate lose its `cmd:` -
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# Curation — what Gobigrams taught gobstack (2026-11-07)
|
|
2
|
+
|
|
3
|
+
One project, mined for rules that are true beyond it. This file is the analysis, not the adoption: every proposal
|
|
4
|
+
below is stated so it can be argued with, priced, or refused on the record.
|
|
5
|
+
|
|
6
|
+
**Evidence base.** `diagram-studio` → Gobigrams, 2026-10-23 → 2026-11-07: ~35 rounds, four publish cycles
|
|
7
|
+
(0.4.0 → 0.4.5), one npm scope move, three adapters over one core (web app, MCP server, Obsidian plugin), one
|
|
8
|
+
renderer extracted into `@techgoblin/gobi-core`, and a launch on a public URL. Numbers quoted here were measured
|
|
9
|
+
in that repo; the commits named are the ones that carry them.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 1. The twelve candidates, ranked by leverage
|
|
14
|
+
|
|
15
|
+
| # | Lesson | Class | Mechanisable today | Verdict |
|
|
16
|
+
|---|---|---|---|---|
|
|
17
|
+
| C1 | A check's input must come from the producer the user's input comes from | verification | yes, text probe | **adopt** |
|
|
18
|
+
| C2 | A measurement must prove its own instrument first | verification | yes, text probe | **adopt** |
|
|
19
|
+
| C3 | Cancelled is not pending | handoff | yes, awk probe | **adopt** |
|
|
20
|
+
| C4 | A release claim names the artifact the user downloads + one number inside it | release | yes, gate | **adopt** |
|
|
21
|
+
| C5 | An artifact declares, inside itself, what it was built from | versioning | yes, gate | **adopt** |
|
|
22
|
+
| C6 | Instruction files change only with a recorded approval | governance | yes, hash record | **adopt** |
|
|
23
|
+
| C7 | Two agents disagreeing is settled by one written recipe, not a third opinion | process | no | advisory |
|
|
24
|
+
| C8 | An advertised capability must be reachable in N actions | product | partly | advisory |
|
|
25
|
+
| C9 | Generated state needs retention, and harnesses write only in a scratch namespace | hygiene | yes | later (needs a data-dir concept gobstack does not have) |
|
|
26
|
+
| C10 | A gate parsing a tool's output must fail with a named cause, and be proven under every version in play | gate robustness | partly | advisory |
|
|
27
|
+
| C11 | One core, N adapters, one conformance corpus that ships with the core | architecture | partly | advisory (class-shaped, not check-shaped) |
|
|
28
|
+
| C12 | Every surface that draws a thing must be proven to draw it, not just to compute it | verification | no | rejected for now — see §5 |
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 2. The five adoptions, with the failure that justifies each
|
|
33
|
+
|
|
34
|
+
### C1 — the payload the check uses must be the payload the user gets
|
|
35
|
+
|
|
36
|
+
**Failure.** `round-embed-fit` read 10/10 green while the product clipped a 6-node diagram inside an 800×450
|
|
37
|
+
iframe. The harness built its fixture with **declared node sizes**; the payload a user actually shares comes from
|
|
38
|
+
`compileGobi()` → `toBoardDoc()` and carries **none**. Two different inputs, one green light, one broken product.
|
|
39
|
+
|
|
40
|
+
**Rule (project-independent).** *A check that asserts a user-visible outcome constructs its input through the same
|
|
41
|
+
producer the user's input comes through; a fixture typed by hand is generated by that producer and pinned.*
|
|
42
|
+
|
|
43
|
+
**Mechanism.** `HV-01`, lint over the harness tree. The probe reads every file that renders, parses or compiles
|
|
44
|
+
product input and asserts it either imports the production producer or carries a `produced_by:` marker naming the
|
|
45
|
+
producer plus a pinned id. Honest limit (goes in the row's `if_not_why`): it proves the producer is *named and
|
|
46
|
+
reachable*, not that the call path matches the product's wiring — a stronger version needs the product to export a
|
|
47
|
+
single "make me the thing a user would get" factory, which is a design change, not a probe.
|
|
48
|
+
|
|
49
|
+
### C2 — a measurement proves its instrument before it accuses the product
|
|
50
|
+
|
|
51
|
+
**Failure, in three acts.** (a) The orchestrator's browser window was **780×437** while the iframe under test was
|
|
52
|
+
**802×452**; every screenshot cut the frame's bottom edge, and the vision read called that "the diagram is
|
|
53
|
+
clipped". The product was reported broken **three times**, and four coder rounds were spent chasing a defect that
|
|
54
|
+
did not exist — the final numbers were `matrix(0.427527,…)`, 6 nodes, `bbox 251,43 → 529,394`, all inside
|
|
55
|
+
780×437. (b) `Emulation.setDeviceMetricsOverride` silently did not change `innerWidth` in a fresh session, so the
|
|
56
|
+
instrument believed it had a viewport it did not have. (c) Earlier in the same project, a venv hid `fontTools`, the
|
|
57
|
+
probe printed `NaNpx`, and two harnesses convicted a layout that was fine (`ec7077b`).
|
|
58
|
+
|
|
59
|
+
**Rule.** *A number taken from a live surface carries its guard: a bounding box is asserted inside the capture
|
|
60
|
+
viewport, a measurement is asserted non-`NaN` and non-zero, and a missing dependency raises a named error instead
|
|
61
|
+
of degrading to a default.*
|
|
62
|
+
|
|
63
|
+
*Scope, measured after implementation:* the probe reads Node shapes (`execSync`/`execFileSync`/`spawnSync`/
|
|
64
|
+
`child_process` beside `parseFloat`/`parseInt`/`Number(`). A shell harness that parses a number is **not** seen —
|
|
65
|
+
the row says `Node child-process result` for that reason, and `docs/LIMITS.md` #57 names the blind spot.
|
|
66
|
+
|
|
67
|
+
**Mechanism.** `HV-02`, lint. Files calling `getBoundingClientRect()` must also reference `innerWidth`/`innerHeight`
|
|
68
|
+
(or carry `guarded:`), and files that shell out to a text-metrics tool must raise a named missing-module error.
|
|
69
|
+
Honest limit: it cannot tell a correct guard from a decorative one.
|
|
70
|
+
|
|
71
|
+
### C3 — cancelled is not pending
|
|
72
|
+
|
|
73
|
+
**Failure.** Phase 7 ("five real users") sat in the handoff as an open item for a week after Harvey had decided the
|
|
74
|
+
first release did not need strangers. The queue lied: any agent reading the handoff saw work that would never be
|
|
75
|
+
done, and every status report inherited the lie.
|
|
76
|
+
|
|
77
|
+
**Rule.** *Every item in the handoff's NEXT STEPS is one of three shapes: owned with a date, done with evidence, or
|
|
78
|
+
cancelled with a date and the decision verbatim. "Open" is not a shape.*
|
|
79
|
+
|
|
80
|
+
**Mechanism.** `FM-03`… numbered `HP-06` in the matrix (HP is the handoff family): awk over the `NEXT STEPS`
|
|
81
|
+
section, each bullet must contain a date and one of `owner`/`done`/`cancelled`. Cheap, deterministic, impossible to
|
|
82
|
+
game without writing something true.
|
|
83
|
+
|
|
84
|
+
### C4 — a release is verified at the layer the user touches, by a number
|
|
85
|
+
|
|
86
|
+
**Failure.** `sha(build) == sha(deployed)` proved the *deploy*, not the *behaviour*; the same night, a renderer
|
|
87
|
+
defect that only appeared in the downloaded SVG was found by Harvey in production (`9c3b0cc`). Symmetrically, the
|
|
88
|
+
npm publish was "done" while the registry still served the old version for ~90 s, and an install from the registry
|
|
89
|
+
was what settled it.
|
|
90
|
+
|
|
91
|
+
**Rule.** *A release record names the artifact the user downloads (URL or path), its sha256, and one assertion
|
|
92
|
+
measured **inside** that artifact — not in the tree it was built from.*
|
|
93
|
+
|
|
94
|
+
**Mechanism.** `RL-01`, gate over `.gob/release-record.tsv`:
|
|
95
|
+
`date · artifact · sha256 · assertion · command`. The gate checks the file exists, each row has all five fields,
|
|
96
|
+
the date is measured, and the sha256 column hashes the same length as the artifact. It cannot re-download the
|
|
97
|
+
artifact (that is a network act); it forces the *shape* of the claim, which is what was missing.
|
|
98
|
+
|
|
99
|
+
### C5 — an artifact says what it was built from
|
|
100
|
+
|
|
101
|
+
**Failure.** The Obsidian plugin on the store was `0.1.0` built against core `0.4.3` while the app ran `0.4.5`;
|
|
102
|
+
three renderer fixes were invisible to every plugin user and nothing in the release said so. The fix that made it
|
|
103
|
+
visible was a marker string inside the bundle: `gobi-core:0.4.5 9674bc0`, verified by downloading the release asset
|
|
104
|
+
and grepping it.
|
|
105
|
+
|
|
106
|
+
**Rule.** *Every built artifact embeds `<dependency>:<version> <source-sha>`, machine-readable, and the version gate
|
|
107
|
+
compares that marker with the declared dependency.*
|
|
108
|
+
|
|
109
|
+
**Mechanism.** `VR-01` (new versioning family), gate: for each declared artifact in the project config, grep the
|
|
110
|
+
built file for the marker pattern and compare against the lockstep table. This is the single cheapest defence
|
|
111
|
+
against "the fix is in the repo but not in the thing people installed".
|
|
112
|
+
|
|
113
|
+
### C6 — instruction files change only with a recorded approval
|
|
114
|
+
|
|
115
|
+
**Failure.** Mid-run, the coder could not write the measured placement rule into `AGENTS.md`; the confirmation
|
|
116
|
+
dialog timed out and the work stalled until Harvey pressed Allow. Good outcome, no record: nothing in the repo says
|
|
117
|
+
who approved that edit or when, and nothing would have noticed if an agent had written it silently.
|
|
118
|
+
|
|
119
|
+
**Rule.** *`AGENTS.md` (and any file the agent reads as instructions) is hashed into an approval record; an edit
|
|
120
|
+
without a matching re-approval is red.*
|
|
121
|
+
|
|
122
|
+
**Mechanism.** `AG-01`, script: `.gob/agents.approved` holds `sha256 · date · approver · one-line reason`;
|
|
123
|
+
`goblin-verify --only AG-01` recomputes. Same shape as `IN-02`, applied to the file that governs the agent.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## 3. The advisory set (no mechanism yet, and why)
|
|
128
|
+
|
|
129
|
+
- **C7 — the tie-breaker recipe.** When two agents' numbers disagree, the fix that worked was *one recipe both
|
|
130
|
+
sides run*: cross-origin host page, built dist, the payload a user produces, both numbers pasted. Writing a
|
|
131
|
+
"recipe" as a check is not possible; the honest form is a sentence in the `practice` skill plus a template.
|
|
132
|
+
- **C8 — advertised capability is reachable.** Gobigrams hit the *seventh* instance of "the capability exists and
|
|
133
|
+
nothing surfaces it" (custom colour: model accepted a hex, `resolveColorKey` returned null, `swatchRow` had an
|
|
134
|
+
unused parameter, no UI reached any of it). The reverse also bit: a help sheet advertising four capabilities that
|
|
135
|
+
the product did not need. A check would need a per-surface definition of "reachable"; keep it as a review
|
|
136
|
+
question with a number ("N actions from a cold start").
|
|
137
|
+
- **C10 — tool-output shape.** `npm pack --dry-run --json` changed from an array to an object between npm 11 and
|
|
138
|
+
12; the publish guard read `[0].files`, died, and reported **six** failures that were one failure
|
|
139
|
+
(`f36c7af`). The lesson generalises to every gate that parses another tool: accept the shapes in play, fail with
|
|
140
|
+
a named cause, and prove the gate under each version. Partly mechanisable (the named-cause half), not worth a
|
|
141
|
+
row yet.
|
|
142
|
+
- **C11 — one core, N adapters.** The pattern that held: the corpus travelled *with* the package (24 → 26
|
|
143
|
+
fixtures), and every adapter was proven byte-identical against it — app, MCP server, Obsidian plugin. A check
|
|
144
|
+
cannot decide whether a project has one core; it can only verify the corpus is versioned with it. Belongs in the
|
|
145
|
+
architect spec template, not the matrix.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## 4. Where these should live, concretely
|
|
150
|
+
|
|
151
|
+
| Proposal | Matrix row | Skill touch | Doc touch |
|
|
152
|
+
|---|---|---|---|
|
|
153
|
+
| C1 | `HV-01` (target, lint) | `goblin-verify-author`: "pick the input the user gets" | LIMITS: what the probe cannot see |
|
|
154
|
+
| C2 | `HV-02` (target, lint) | `goblin-verify-author`: "the instrument first" | LIMITS: guards can be decorative |
|
|
155
|
+
| C3 | `HP-06` (target, lint) | `goblin-handoff`: the three bullet shapes | GUIDE §8 (keeping HANDOFF honest) |
|
|
156
|
+
| C4 | `RL-01` (target, gate) | `goblin-verify-author`: release record | GUIDE §11 reference: `.gob/release-record.tsv` |
|
|
157
|
+
| C5 | `VR-01` (target, gate) | `goblin-bootstrap`: markers in built artifacts | GUIDE §4 (Step 2 — commit, then verify) |
|
|
158
|
+
| C6 | `AG-01` (target, script) | `goblin-bootstrap` | LIMITS: approval is a hash, not a signature |
|
|
159
|
+
|
|
160
|
+
Cost estimate, from the shape of the existing checks: `HP-06` and `AG-01` are an afternoon each (awk + a hash
|
|
161
|
+
file + one negative-control test each). `HV-01`/`HV-02` are text probes, same class as `BN-*`, two hours each
|
|
162
|
+
including a control. `RL-01` and `VR-01` need a small config surface (`.gob/release-record.tsv`, an `artifacts:`
|
|
163
|
+
block in the one config) — that is a design decision before it is a probe.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## 5. What this project must NOT push into gobstack
|
|
168
|
+
|
|
169
|
+
Saying no is half of curation. These are Gobigrams facts with no general form:
|
|
170
|
+
|
|
171
|
+
- The `.gobi` grammar, its closed-world rule, the shape palette, the layout constants. Product, not practice.
|
|
172
|
+
- React Flow pins, byte budgets, the `client_js_bytes` ceiling. Ratchets are per-project policy.
|
|
173
|
+
- The publish allowlist and the Forgejo→GitHub snapshot. It is one answer to "public repo from a private workshop",
|
|
174
|
+
shaped by Harvey's hosting choice.
|
|
175
|
+
- The three-surface conformance *numbers* (24/26 fixtures). The **pattern** is worth keeping (C11); the numbers are
|
|
176
|
+
not.
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## 6. Decisions taken (Harvey: "làm sao theo ý bạn")
|
|
181
|
+
|
|
182
|
+
Both open questions are answered here rather than left hanging, and the order of work is fixed.
|
|
183
|
+
|
|
184
|
+
1. **gobstack gets a release family — but opt-in.** `RL-01`/`VR-01` were the whole argument for a fifth family, and
|
|
185
|
+
the argument holds: the gap that produced the plugin-bundling-an-old-core incident is real and general. But not
|
|
186
|
+
every project ships an artifact — a library workspace has nothing to download, and a mandatory release record
|
|
187
|
+
would manufacture red for a non-problem. So the family is declared in the one config (`artifacts:` block plus
|
|
188
|
+
`.gob/release-record.tsv`); a repo without that block gets `SKIP` with the reason, exactly the way `IN-01`
|
|
189
|
+
already skips a declaration-only repo.
|
|
190
|
+
2. **C2 is a text probe now, and the limit is stated out loud.** A probe can prove a guard is *present*, not that it
|
|
191
|
+
is *effective*. That is the same honest boundary `BN-01` already draws ("text probe, not an AST"), and it is
|
|
192
|
+
enough to catch the failure that actually happened — a measurement reported with no viewport assertion at all.
|
|
193
|
+
A runtime helper becomes worth its cost only when a project already owns a shared harness library; until then,
|
|
194
|
+
shipping one would bind gobstack to a language for a benefit no check can measure.
|
|
195
|
+
|
|
196
|
+
**Order of work, cheapest and most preventative first.**
|
|
197
|
+
|
|
198
|
+
| Phase | Rules | Why this order |
|
|
199
|
+
|---|---|---|
|
|
200
|
+
| 1 (now) | `HV-02`, `HP-06`, `HV-01` | an afternoon of probes with negative controls; kills the two failure classes that cost the most (a false accusation, and a queue that lies) |
|
|
201
|
+
| 2 | `AG-01` | same shape as `IN-02`, but touches install/inspect paths — do it with fresh attention |
|
|
202
|
+
| 3 | `RL-01`, `VR-01` | needs the `artifacts:` config surface designed before the probe is written |
|
|
203
|
+
| never | C12, plus everything in §5 | project-specific or class-shaped, not check-shaped |
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## 7. What this file leaves open for the next curation
|
|
208
|
+
|
|
209
|
+
Not questions about the rules above — those are decided. These are the things one project could not settle, and the
|
|
210
|
+
next project with a different shape should test:
|
|
211
|
+
|
|
212
|
+
1. **Does a false accusation cost more than a missed defect in every domain?** `HV-02` assumes yes: it is written to
|
|
213
|
+
stop the instrument from convicting a product. In a safety domain the trade flips. Nothing in gobstack can decide
|
|
214
|
+
that per-project yet.
|
|
215
|
+
2. **What is the cheapest honest form of "reachable in N actions"?** C8 stayed advisory because "reachable" has no
|
|
216
|
+
shared definition. Gobigrams measured it as a checklist of six tasks; another product will measure it differently,
|
|
217
|
+
and the second measurement is where the definition will come from.
|
|
218
|
+
3. **Does the release family survive a project that ships ten artifacts?** `RL-01` assumes one record file with one
|
|
219
|
+
row per release. A monorepo with five packages will want a row per artifact, and the `artifacts:` config has not
|
|
220
|
+
been designed against that shape yet — design it against the second project, not this one.
|
|
221
|
+
|
|
222
|
+
The general rule this file is built on: a lesson earns a row only when its failure has been *measured* somewhere,
|
|
223
|
+
and a rule earns a mechanism only when the mechanism can be proven red on demand.
|
package/docs/GUIDE.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
A step-by-step guide for your first week. **Read this before the README.** The README tells you
|
|
4
4
|
what the pieces are; this tells you what to *do*, in order, and what you should see when it works.
|
|
5
5
|
|
|
6
|
-
Version: `0.6.0-beta.
|
|
6
|
+
Version: `0.6.0-beta.2` · Last measured: 2026-10-09 · Every command and every output below was run on a
|
|
7
7
|
real repository while writing this guide.
|
|
8
8
|
|
|
9
9
|
---
|
|
@@ -160,7 +160,7 @@ You will see one line per rule. The shape:
|
|
|
160
160
|
|
|
161
161
|
and a summary line at the bottom:
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
19 passed, 1 failed, 0 advisory, 10 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` | `
|
|
206
|
-
| 2. the first commit | `git add -A && git commit` | `
|
|
207
|
-
| 3. name a real HEAD — and **commit that too** | edit `HANDOFF.md`, then `git add -A && git commit` | `
|
|
205
|
+
| 1. the install ran | `gob init --write ... --yes` | `25 passed, 0 failed, 0 advisory, 5 skipped` | none — the installer fills `HANDOFF.md`'s HEAD from the seed commit, and the uncommitted-install / untracked-SPEC reds (`CM-03`, `SP-02`) are now library rows, off by default |
|
|
206
|
+
| 2. the first commit | `git add -A && git commit` | `25 passed, 0 failed, 0 advisory, 5 skipped` | none — green |
|
|
207
|
+
| 3. name a real HEAD — and **commit that too** | edit `HANDOFF.md`, then `git add -A && git commit` | `25 passed, 0 failed, 0 advisory, 5 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
|
|
|
@@ -408,14 +408,14 @@ A default install lands on a specific shape. The first red is
|
|
|
408
408
|
the scaffold teaching on purpose — `HP-05`, the `0000000` placeholder in `HANDOFF.md` (§4). The
|
|
409
409
|
walk in §4 measured, step by step:
|
|
410
410
|
|
|
411
|
-
|
|
412
|
-
|
|
411
|
+
19 passed, 1 failed, 0 advisory, 10 skipped # straight after the install (the HP-05 placeholder)
|
|
412
|
+
20 passed, 0 failed, 0 advisory, 10 skipped # name a real commit in HANDOFF.md, commit, and it is green
|
|
413
413
|
|
|
414
414
|
(On the older `gob init` walk the uncommitted-install and untracked-SPEC reds — `CM-03`, `SP-02`
|
|
415
415
|
— were the first two FAILs; both are library rows now, off by default.) Name a real commit in
|
|
416
416
|
`HANDOFF.md`, commit, and give the gate lines real commands (§5), and it is green:
|
|
417
417
|
|
|
418
|
-
|
|
418
|
+
20 passed, 0 failed, 0 advisory, 10 skipped (on a real project; your numbers will differ)
|
|
419
419
|
|
|
420
420
|
**Ten rows skipping is correct**, and each skip prints its reason. In plain terms: the
|
|
421
421
|
harness is telling you which of its rules have nothing to read yet. It is a checklist, not a
|
|
@@ -698,7 +698,7 @@ Output is one line per executed row, in manifest order, plus a summary line at t
|
|
|
698
698
|
|
|
699
699
|
Those three lines are one row of each marking a default run can show (no row of the shipped
|
|
700
700
|
matrix is advisory — the advisory rows live in the library). The summary line of a green default
|
|
701
|
-
run is `
|
|
701
|
+
run is `20 passed, 0 failed, 0 advisory, 10 skipped`.
|
|
702
702
|
|
|
703
703
|
**Exit codes:** `0` every executed check passed (advisories and skips do not fail the run) ·
|
|
704
704
|
`1` at least one check FAILED · `2` verify could not run (not installed, a missing dependency,
|
|
@@ -721,7 +721,7 @@ product deleted is not a blind spot a run still carries (`docs/LIMITS.md` #13/#3
|
|
|
721
721
|
#### A fresh install verifies green
|
|
722
722
|
|
|
723
723
|
Measured on a fresh DEFAULT install (skills opt-in, W6 neutral-first), committed with no
|
|
724
|
-
hand edit: **`
|
|
724
|
+
hand edit: **`20 passed, 0 failed, 0 advisory, 10 skipped`, exit 0.** The core procedure
|
|
725
725
|
tier is vendored on every install (`.gob/skills/`), so `SK-01`, `SK-02` and `SK-04` RUN and
|
|
726
726
|
pass on a fresh repo — the product no longer disables its own rows. Ten rows skip with a
|
|
727
727
|
reason: every ban self-selects by its `applies_when` — a GLOB (`BN-01`/`BN-02`/`BN-03`/`BN-05`
|
|
@@ -746,7 +746,7 @@ verifier is reporting FAILs.
|
|
|
746
746
|
the part's rows as `SKIP (opt-out)` in the summary, so the opt-out is **visible rather than
|
|
747
747
|
absent**. The same mechanism is what makes a part's off state real.
|
|
748
748
|
- **The opt-out numbers are pinned (V3-3).** A default install with the core tier vendored
|
|
749
|
-
verifies `
|
|
749
|
+
verifies `20 passed, 0 failed, 0 advisory, 10 skipped`, exit 0, and
|
|
750
750
|
`tests/t-install-off-switch.sh` asserts that line: a silent drift in the opt-out path is caught
|
|
751
751
|
rather than left as a number nobody wrote down (the `--skills no` count moved from `37/0/9/11`
|
|
752
752
|
at v0.2 as the ban and feature-map rows landed; in v3 the model/role/loop and CI rows are cut,
|
|
@@ -842,12 +842,12 @@ arrives only with `--skills yes` (W6 neutral-first). The repo's other eleven ski
|
|
|
842
842
|
Then, in order:
|
|
843
843
|
|
|
844
844
|
git add -A && git commit # the install is a change like any other
|
|
845
|
-
.gob/bin/goblin-verify #
|
|
845
|
+
.gob/bin/goblin-verify # 20 passed, 0 failed - the uncommitted-install red (CM-03) is a library row now
|
|
846
846
|
|
|
847
|
-
A default install (core tier, no agent skills) is **green** — `
|
|
847
|
+
A default install (core tier, no agent skills) is **green** — `20 passed, 0 failed, 0 advisory,
|
|
848
848
|
10 skipped`, exit 0 — once
|
|
849
849
|
`HANDOFF.md` names a commit that exists; before that edit the scaffold's `0000000` placeholder is
|
|
850
|
-
the one expected red (`
|
|
850
|
+
the one expected red (`19 passed, 1 failed`). Both numbers are measured, not assumed
|
|
851
851
|
(`docs/GUIDE.md`; step 2 of `docs/GUIDE.md`). Ten rows skip with a reason: `SK-01`, `SK-02`
|
|
852
852
|
and `SK-04` RUN (the core procedure tier is vendored under `.gob/skills/` on every install),
|
|
853
853
|
plus the not-yet rows: `BN-01`/`BN-02`/`BN-03`/`BN-05` have no `.ts`/`.js` source for their
|
|
@@ -898,7 +898,7 @@ The remedy is a reconciliation. The project's file stays the file of record; not
|
|
|
898
898
|
git add -A && git commit
|
|
899
899
|
.gob/bin/goblin-verify # HP-02, HP-03, HP-05 go green
|
|
900
900
|
|
|
901
|
-
Success is the full green path (`
|
|
901
|
+
Success is the full green path (`20 passed, 0 failed, 0 advisory, 10 skipped`, exit 0)
|
|
902
902
|
with `git status --short` empty.
|
|
903
903
|
|
|
904
904
|
The edit is additive and small — measured on the model repo (§1's exemplar, 2450 lines): three
|
|
@@ -943,7 +943,7 @@ closed and now ENFORCED (`IN-03`'s third clause, Z1-5): `script`, `lint`, `gate`
|
|
|
943
943
|
plus `test` for a source-scope row, whose check is a script under `tests/` run by
|
|
944
944
|
`tests/run-tests.sh`.
|
|
945
945
|
|
|
946
|
-
Measured shape of this table: **
|
|
946
|
+
Measured shape of this table: **34 rows** - 30 target, 4 source; advisory 0, gate 4, lint 19, script 8, test 3 (the on-by-default matrix, `.gob/manifest/enforcement.tsv`). The **library** (`library.tsv`) holds a further **32 rows**, all `scope:target`, off by default. The table below renders the **full 66-rule set** (matrix + library) so a reader sees the whole contract; the 32 library rows are the ones `gob verify --library` names.
|
|
947
947
|
|
|
948
948
|
### The rows
|
|
949
949
|
|
|
@@ -961,9 +961,12 @@ Measured shape of this table: **31 rows** - 27 target, 4 source; advisory 0, gat
|
|
|
961
961
|
| `SP-01` | target | gate | A *-SPEC.md file exists at the repo root (any round, not the current one - round-scoping arrives with the W6 staged chain). | ls ./*-SPEC.md >/dev/null 2>&1 | Skipped when `spec` is in `disabled:`. |
|
|
962
962
|
| `SP-02` | target | script | The SPEC is committed, not left untracked. | test -z "$(git ls-files --others --exclude-standard -- '*-SPEC.md')" | — |
|
|
963
963
|
| `SP-03` | target | lint | Every AC: item is checkable without a human. | awk '/^[[:space:]]*[-*][[:space:]]/ && /AC[0-9]*:/ && !/`\|==\|===\|exit\|<\|>/ {print; bad=1} END{exit bad}' ./*-SPEC.md | Partial: structural only - a checkable-looking bullet can still be unfalsifiable. The matcher is `AC[0-9]*:` because the shipped template writes `- AC1: ...`; the literal `/AC:/` only saw a bullet that spelled the label without a number. |
|
|
964
|
+
| `HP-06` | target | lint | Every item in the handoff NEXT STEPS is owned with a date, done with evidence, or cancelled with a date and the decision; open is not a shape. | goblin-verify --only HP-06 | Shape, not truth: a bullet can carry a date and the word owner and still be a lie, and work MISSING from the list entirely is invisible - a queue that lists nothing passes. Bare links, sub-headings and em-dash separator bullets are skipped by design, a wrapped bullet is read as one item, and only the first NEXT STEPS / NEXT section (the HP-02 alias set) is read. No HANDOFF.md is a SKIP with a reason, never red - HP-01 owns that failure. The measured failure it exists for is an item left open for a week after the decision to cancel it (CURATION-2026-11-07 §2 C3). |
|
|
964
965
|
| `GT-01` | target | gate | The gate set is declared, never inferred from the stack. | goblin-verify --only GT-01 | Builtin: every `gate_<name>_cmd:` key in the AGENTS.md gob block is a DECLARED gate and its declaration and command are one line - a gate cannot lose its cmd and survive the count (G8-3, the condition of G8's own score sentence). The count is of declarations, not of runnable pairs. It cannot see whether a declared command is the RIGHT gate for the project: it proves a command exists, not that it is meaningful. |
|
|
965
966
|
| `GT-02` | target | gate | Every declared gate runs and exits 0. | goblin-verify --only GT-02 | — |
|
|
966
967
|
| `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
|
+
| `HV-02` | target | lint | A number taken from a live surface carries its guard: a bounding box is asserted inside the capture viewport, and a parsed number is asserted finite before it can fail an assertion. | goblin-verify --only HV-02 | Text probe over the harness dir, the same class as BN-01 (no AST): it proves a guard is PRESENT - innerWidth/innerHeight/visualViewport beside a getBoundingClientRect call, Number.isFinite/isNaN beside a number parsed out of execSync/spawnSync stdout, or a guarded: <reason> marker - never that the guard is EFFECTIVE (a decorative one passes), and a pattern inside a string or a comment is read as code. A number parsed by any other means than parseFloat/parseInt/Number( is unseen, and it cannot see a viewport override that silently did not apply - that needs a runtime probe the dependency contract forbids (CURATION-2026-11-07 §2 C2, the measured failure being a measurement reported with no viewport assertion at all). |
|
|
969
|
+
| `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). |
|
|
967
970
|
| `GT-04` | target | gate | A ratchet is declared with a ceiling. | goblin-verify --only GT-04 | — |
|
|
968
971
|
| `GT-05` | target | gate | The ratchet has not risen. | goblin-verify --only GT-05 | — |
|
|
969
972
|
| `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. |
|
|
@@ -1015,7 +1018,7 @@ Measured shape of this table: **31 rows** - 27 target, 4 source; advisory 0, gat
|
|
|
1015
1018
|
|
|
1016
1019
|
### Advisory rows, named
|
|
1017
1020
|
|
|
1018
|
-
0 of the
|
|
1021
|
+
0 of the 30 rows are labelled `advisory`. 0 of them carry no executable check at all — the six
|
|
1019
1022
|
advisory rows (`HP-04`, `HS-03`, `CM-02`, `DOC-01`, `DOC-02`, `SC-09`) all moved to the library
|
|
1020
1023
|
(`gob verify --library`), so a default run carries no prose row (they are prose the matrix
|
|
1021
1024
|
refuses to pretend about).
|
package/docs/LIMITS.md
CHANGED
|
@@ -501,9 +501,33 @@ the Node the gates ran under.
|
|
|
501
501
|
same blind spot `.gob/installed.json` has (docs/LIMITS.md #18, one table over). What the honesty
|
|
502
502
|
gate *does* hold is mechanical and narrow on purpose: a local row that names no check the engine
|
|
503
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
|
|
505
|
-
repo cannot add a rule that *nothing* verifies. It cannot judge whether a local check tests the
|
|
504
|
+
builtin, a check that cannot execute, or a bare id with no check cell) is refused at exit 3, so
|
|
505
|
+
a repo cannot add a rule that *nothing* verifies. It cannot judge whether a local check tests the
|
|
506
506
|
right thing — no row here can.
|
|
507
|
+
57. **`HV-02` proves a guard is present, never that it is effective.** The bounding-box/
|
|
508
|
+
parsed-number probe is a text probe over the harness dir (the `BN-01` class, no AST): a
|
|
509
|
+
decorative `innerWidth` mention beside a `getBoundingClientRect()` call passes, the patterns
|
|
510
|
+
inside a string or a comment are read as code, and a number parsed by any other means than
|
|
511
|
+
`parseFloat`/`parseInt`/`Number(` over `execSync`/`spawnSync` output is unseen. The failure the
|
|
512
|
+
row was adopted from had no guard at all (CURATION-2026-11-07 §2 C2); it catches that class and
|
|
513
|
+
says so about the rest.
|
|
514
|
+
58. **`HP-06` checks the shape of a next-step bullet, never its truth.** The handoff probe proves
|
|
515
|
+
every bullet inside the first NEXT STEPS / NEXT section carries a date and one of owner /
|
|
516
|
+
done / cancelled — a bullet can carry all three tokens and still be a lie, work that is
|
|
517
|
+
missing from the list entirely is invisible (a queue that lists nothing passes), a second
|
|
518
|
+
NEXT section later in the file is unread, and the aliases `HP-02` accepts (`### NEXT`,
|
|
519
|
+
`Status`, `Pending <x> device test`) are inherited wholesale, so a heading shaped like an
|
|
520
|
+
alias is found by the same loose match. The failure it was adopted from was an item left
|
|
521
|
+
open for a week after the decision to cancel it (CURATION-2026-11-07 §2 C3).
|
|
522
|
+
59. **`HV-01` proves a producer is named, never that the call path uses it.** The input-provenance
|
|
523
|
+
probe reads assignments to `doc`/`board`/`payload`/`fixture` and requires a bare-package
|
|
524
|
+
import or a `produced_by: <function> <pinned id>` marker beside them — it cannot tell whether
|
|
525
|
+
the import is actually called to build the literal (a decorative import clears it), a literal
|
|
526
|
+
assembled by spread or copied from another file is unseen, a relative import to the product's
|
|
527
|
+
own source does not clear it (only a package name does), and the trigger is those four names,
|
|
528
|
+
so a fixture named anything else is invisible. The failure it was adopted from was a harness
|
|
529
|
+
green on declared node sizes while every shared payload carried none (CURATION-2026-11-07
|
|
530
|
+
§2 C1).
|
|
507
531
|
|
|
508
532
|
---
|
|
509
533
|
|
package/manifest/enforcement.tsv
CHANGED
|
@@ -7,9 +7,12 @@ HP-01 target HANDOFF.md exists at the root. gate HANDOFF.md test -f HANDOFF.md
|
|
|
7
7
|
HP-02 target The HANDOFF carries its five required sections. lint HANDOFF.md for h in 'START HERE' 'STATE|STATUS' 'GATES?' 'NEXT STEPS|NEXT' 'NOT VERIFIED|UNVERIFIED|NOT PROVEN|UNPROVEN|PENDING[^.]*DEVICE TEST'; do grep -qiE "^#{2,3}[[:space:]]+[^[:alpha:]]*($h)\b" HANDOFF.md || { echo "missing section: $h"; exit 1; }; done Partial: proves a heading exists whose first word names the slot, not that the section's content is complete. The slot may use the repo's own vocabulary (the model repo's `### NEXT` passes; `Status`, `Gate`, `Unverified`, `Pending <x> device test` are accepted); a heading that merely contains the word (`## BOARD STATE`) does not satisfy `State`.
|
|
8
8
|
HP-03 target Every gate number is a measurement with a date, never a copy. lint HANDOFF.md goblin-verify --only HP-03 Builtin, anchored on the gate NAMES `AGENTS.md` declares (GT-01's source of truth) rather than on a hardcoded keyword list: the shipped gates are named `commit` and `todo_ceiling`, neither of which the old list matched, so on a fresh install the only line it could see was the template's own example sentence, and a real gate line could lose its `date` and the row stayed GREEN (G8-2). A line whose text says "example of the required form" is template prose, not a gate number, and is skipped, so the template cannot satisfy the row. Partial: it proves a dated line inside the `Gates` section exists and that every gate-bearing line there carries a date - not that the number was re-measured that day, and not a gate-bearing line that names no declared gate and carries no gate-shaped keyword (so a line the config does not declare and the keyword list does not recognise is unseen). Historical gate lines outside that section are exempt by design - PROJECT-PRACTICE section 1's stale-sentence rule requires them to be kept.
|
|
9
9
|
HP-05 target The HANDOFF names the HEAD it describes. gate HANDOFF.md goblin-verify --only HP-05 Deviation from the design spec, with the reason: the spec's literal check is `grep -q "$(git rev-parse --short HEAD)" HANDOFF.md`, which can never pass - committing the HANDOFF moves HEAD, so the file can only name a commit that is now an ancestor. The mechanised form is therefore 'the HANDOFF names a commit that exists in this repo AND is an ancestor of HEAD', which still catches the defect it exists for (a review/handoff artifact that names no commit at all).
|
|
10
|
+
HP-06 target Every item in the handoff NEXT STEPS is owned with a date, done with evidence, or cancelled with a date and the decision; open is not a shape. lint HANDOFF.md goblin-verify --only HP-06 Shape, not truth: a bullet can carry a date and the word owner and still be a lie, and work MISSING from the list entirely is invisible - a queue that lists nothing passes. Bare links, sub-headings and em-dash separator bullets are skipped by design, a wrapped bullet is read as one item, and only the first NEXT STEPS / NEXT section (the HP-02 alias set) is read. No HANDOFF.md is a SKIP with a reason, never red - HP-01 owns that failure. The measured failure it exists for is an item left open for a week after the decision to cancel it (CURATION-2026-11-07 §2 C3).
|
|
10
11
|
GT-01 target The gate set is declared, never inferred from the stack. gate AGENTS.md goblin-verify --only GT-01 Builtin: every `gate_<name>_cmd:` key in the AGENTS.md gob block is a DECLARED gate and its declaration and command are one line - a gate cannot lose its cmd and survive the count (G8-3, the condition of G8's own score sentence). The count is of declarations, not of runnable pairs. It cannot see whether a declared command is the RIGHT gate for the project: it proves a command exists, not that it is meaningful.
|
|
11
12
|
GT-02 target Every declared gate runs and exits 0. gate AGENTS.md gates (gate_<name>_cmd:) goblin-verify --only GT-02 —
|
|
12
13
|
GT-03 target The round reports one line of measured numbers. script .gob/last-gate-line test -f .gob/last-gate-line && [ .gob/last-gate-line -nt "$(git rev-parse --git-dir)/logs/HEAD" ] The freshness reference is HEAD's reflog (`.git/logs/HEAD`), which every HEAD movement rewrites - a commit in an attached or a detached worktree included, and independently of whether the refs are packed. The clause it replaced read `.git/HEAD`, a file a commit never rewrites (only branch operations do), so a commit landing after the measured line left the row GREEN while the round had moved on (D2, measured: `.git/HEAD`'s mtime unchanged across a real commit, `--only GT-03` exit 0). Two limits remain, recorded rather than hidden: a repo with the reflog disabled (`core.logAllRefUpdates=false`) has no reference to compare against, and `-nt` against a missing path is true, so the clause passes vacuously and the row then proves only that a measured line EXISTS (a repo with no commit yet is the same case); and the clause reads ANY HEAD movement as staleness, so a checkout, a branch rename or a reset FAILs it until the next gate run rewrites the line. That second behaviour is what makes a full run self-freshening: `GT-02` writes the line earlier in the same pass, so the row asserts that the line in front of you came from THIS run. `tests/t-gt03-freshness.sh` is the control, in both directions.
|
|
14
|
+
HV-02 target A number taken from a live surface carries its guard: a bounding box is asserted inside the capture viewport, and a number parsed from a Node child-process result is asserted finite before it can fail an assertion. lint <harness dir> goblin-verify --only HV-02 Text probe over the harness dir, the same class as BN-01 (no AST): it proves a guard is PRESENT - innerWidth/innerHeight/visualViewport beside a getBoundingClientRect call, Number.isFinite/isNaN beside a number parsed out of execSync/spawnSync stdout, or a guarded: <reason> marker - never that the guard is EFFECTIVE (a decorative one passes), and a pattern inside a string or a comment is read as code. A number parsed by any other means than parseFloat/parseInt/Number( is unseen, and it cannot see a viewport override that silently did not apply - that needs a runtime probe the dependency contract forbids (CURATION-2026-11-07 §2 C2, the measured failure being a measurement reported with no viewport assertion at all).
|
|
15
|
+
HV-01 target 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. lint <harness dir> 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).
|
|
13
16
|
SK-01 target Every shipped skill has name + description frontmatter. lint .hermes/skills/*/SKILL.md goblin-verify --only SK-01 W1: the check is a builtin so the engine.mode=global clause can run - in global mode the procedure tier is emitted per platform (not carried in this repo) and the row SKIPs with that reason instead of passing vacuously on a repo with no skills (§2.5 names SK-01 alongside SK-02/SK-04). In vendored mode it is exactly the old loop: every SKILL.md must open with frontmatter carrying both name and description.
|
|
14
17
|
SK-02 target The skills on disk match their recorded hashes (no drift). script .hermes/skills/, installed.json goblin-verify --only SK-02 —
|
|
15
18
|
SK-03 target A rule with no mechanism is labelled advisory, and the advisory count is reported. script manifest/enforcement.tsv goblin-verify --only SK-03 —
|
package/package.json
CHANGED
|
@@ -11,9 +11,9 @@ Use when adopting goblin-stack in a repo, or starting one.
|
|
|
11
11
|
no agent skills. Vendor the Hermes project tier with `--skills yes` if you want them installed.
|
|
12
12
|
2. **`goblin-verify`** — a default install (core procedure tier vendored under `.gob/skills/`)
|
|
13
13
|
verifies green:
|
|
14
|
-
`
|
|
14
|
+
`20 passed, 0 failed, 0 advisory, 10 skipped`, exit 0, once `HANDOFF.md` names a commit that
|
|
15
15
|
exists; before that edit the
|
|
16
|
-
scaffold's `0000000` placeholder is `HP-05`'s one expected day-one red (`
|
|
16
|
+
scaffold's `0000000` placeholder is `HP-05`'s one expected day-one red (`19 passed, 1 failed`).
|
|
17
17
|
Ten rows skip with a reason, and the reason matters: `SK-01`, `SK-02` and `SK-04` **run** (the
|
|
18
18
|
core procedure tier is vendored on every install, so the product no longer disables its own
|
|
19
19
|
rows);
|
|
@@ -15,12 +15,17 @@ Use when ending a session, or picking up another's.
|
|
|
15
15
|
that it was once believed true; leaving it undated re-arms the trap.
|
|
16
16
|
4. **On pickup, verify inherited claims against the artifact.** A passing prior self-report is
|
|
17
17
|
not the proof. Re-run the gate, check the file exists, grep the vault.
|
|
18
|
+
5. **Every next-steps item is one of three shapes — open is not one of them.** Owned with a date
|
|
19
|
+
(`— owner: <name>, since <date>`), done with evidence, or cancelled with a date and the
|
|
20
|
+
decision verbatim. A bare intention bullet is work that will never be done, and every status
|
|
21
|
+
report after it inherits the lie (`HP-06`).
|
|
18
22
|
|
|
19
23
|
## Verification
|
|
20
24
|
|
|
21
25
|
- Every gate number in the HANDOFF carries `measured <date>`.
|
|
22
26
|
- The named HEAD matches `git rev-parse --short HEAD`.
|
|
23
27
|
- The NOT-verified section is non-empty, or explicitly says "nothing outstanding".
|
|
28
|
+
- Every next-steps bullet carries a date and one of owner / done / cancelled.
|
|
24
29
|
|
|
25
30
|
## What this cannot see
|
|
26
31
|
|
|
@@ -30,12 +30,24 @@ Use when a project has no live lane, or its gates have drifted from what it actu
|
|
|
30
30
|
measurement rather than a date. **`verified:` does not advance until that record exists.** The
|
|
31
31
|
row that checks a record's shape is not shipped yet, so this is a stated requirement here and
|
|
32
32
|
in `goblin-eval`, not a claim that a command enforces it.
|
|
33
|
+
7. **Measure the instrument, and build the input the user gets.** Before a harness's number may
|
|
34
|
+
accuse the product, prove the instrument it came through: a bounding box taken off a live
|
|
35
|
+
surface is asserted inside the capture viewport, a number parsed out of another process's
|
|
36
|
+
stdout is asserted finite before it can fail an assertion, and a missing dependency raises a
|
|
37
|
+
named error instead of degrading to a default. And when a check asserts a user-visible
|
|
38
|
+
outcome, build its input through the same producer the user's input comes from — a
|
|
39
|
+
hand-written fixture is generated by that producer and pinned, never typed from memory. Two
|
|
40
|
+
rows carry this (`HV-02`, `HV-01`); the escape hatch for both is a marker comment that names
|
|
41
|
+
the reason (`guarded:` and `produced_by:`), and neither row can tell a real guard from a
|
|
42
|
+
decorative one — that judgement is the human read this skill exists to add.
|
|
33
43
|
|
|
34
44
|
## Verification
|
|
35
45
|
|
|
36
46
|
- The harness prints `PASS`/`FAIL` per assertion and exits non-zero on any failure.
|
|
37
47
|
- The REPLAY shows RED pre-change, with the commit named.
|
|
38
48
|
- The gate set is declared in the `AGENTS.md` gob block, never inferred.
|
|
49
|
+
- Every measurement the harness takes carries its guard, and every constructed input names its
|
|
50
|
+
producer (`HV-02`, `HV-01`).
|
|
39
51
|
- The map's index and four-H2 entry contract hold (`FM-01`), every declared entry path still
|
|
40
52
|
resolves under `source_root:` and none changed after its `verified:` date (`FM-02`), and the
|
|
41
53
|
declared `verify_doctor:` exits 0 (`VA-01`).
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# HANDOFF — the session-boundary contract. A new worker reads this FIRST.
|
|
2
2
|
|
|
3
3
|
> Template. Written once by goblin-install and never overwritten. Update it every round:
|
|
4
|
-
> every gate number carries `measured <date>`, the State line names the current HEAD,
|
|
5
|
-
> NOT verified section is non-empty or says "nothing outstanding"
|
|
4
|
+
> every gate number carries `measured <date>`, the State line names the current HEAD, the
|
|
5
|
+
> NOT verified section is non-empty or says "nothing outstanding", and every Next-steps
|
|
6
|
+
> bullet is owned with a date, done with evidence, or cancelled with a date and the
|
|
7
|
+
> decision (HP-06).
|
|
6
8
|
|
|
7
9
|
## ▶ START HERE (new session)
|
|
8
10
|
|
|
@@ -30,10 +32,10 @@ Every number here is a measurement with a date, never a copy from a previous rou
|
|
|
30
32
|
|
|
31
33
|
## Next steps
|
|
32
34
|
|
|
33
|
-
- Replace the default gate with this project's real commands (playbook P8 step 3).
|
|
34
|
-
- Write the first round's SPEC (`*-SPEC.md`) before any code moves (playbook P3).
|
|
35
|
+
- Replace the default gate with this project's real commands (playbook P8 step 3) — owner: you, since {{DATE}}.
|
|
36
|
+
- Write the first round's SPEC (`*-SPEC.md`) before any code moves (playbook P3) — owner: you, since {{DATE}}.
|
|
35
37
|
- Write the first asserting harness in the harness dir, and pin its pre-change commit so
|
|
36
|
-
`replay.commit` can be set (playbook P6, then HS-02).
|
|
38
|
+
`replay.commit` can be set (playbook P6, then HS-02) — owner: you, since {{DATE}}.
|
|
37
39
|
|
|
38
40
|
## NOT verified
|
|
39
41
|
|