@techgoblin/gobstack 0.7.3 → 0.7.4
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 +32 -0
- package/README.md +8 -6
- 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 +148 -1
- package/docs/GUIDE.md +32 -25
- package/docs/LIMITS.md +35 -3
- package/manifest/enforcement.tsv +2 -0
- package/manifest/library.tsv +1 -0
- package/package.json +1 -1
- package/skills/goblin-bootstrap/SKILL.md +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -54,6 +54,38 @@ version recorded in a target's `.goblin/installed.json` and the source `VERSION`
|
|
|
54
54
|
promotes them into catalogue.tsv by PR or edit. `--write` honours only the proposal's TICKED
|
|
55
55
|
rows, through `gob extras install` itself — one allowlist, one code path.
|
|
56
56
|
|
|
57
|
+
## 0.7.4 (rows: language, focus, and copy)
|
|
58
|
+
|
|
59
|
+
Three rows, and the engine corners they exposed.
|
|
60
|
+
|
|
61
|
+
- **`A11Y-01`: every shipped HTML document declares its language** (`script`, `target`, on by
|
|
62
|
+
default). A tracked `*.html`/`*.htm` with an `<html` tag must carry a non-empty `lang` on it;
|
|
63
|
+
`lang=""` fails, and `xml:lang` alone does not satisfy the rule. A file with no `<html` tag is
|
|
64
|
+
counted *not a document* — never a pass — and zero tracked HTML skips with the stated reason
|
|
65
|
+
instead of reporting an empty set as green. The probe reads the whole opening tag (up to 8 lines
|
|
66
|
+
/ 500 chars), so a prettier-formatted multi-line `<html lang="en">` passes.
|
|
67
|
+
- **`UI-01`: nothing hides the focus outline without replacing it** (`script`, `target`, on by
|
|
68
|
+
default). A stylesheet that sets `outline: none`/`0` must carry a `:focus`, `:focus-visible` or
|
|
69
|
+
`:focus-within` rule in the same file. Two text-probe corners, closed in both directions: `//`
|
|
70
|
+
line comments are stripped only in the SCSS flavours, so a `url(//cdn…)` on the same line no
|
|
71
|
+
longer blanks a real disable; and the matcher requires the exact property and value, so
|
|
72
|
+
`$outline: none`, `--outline: none` and `outline: 0.5px solid` stop failing. `outline: none
|
|
73
|
+
!important` is still a disable.
|
|
74
|
+
- **`CW-01`: public copy is written, not generated** (`library`, opt-in, read by a human).
|
|
75
|
+
Fabricated proof, decorative status claims and sentences that restate the thing are the failure;
|
|
76
|
+
clean grammar, mixed registers, dry prose and curly quotes are not evidence of a machine, and a
|
|
77
|
+
secondhand quotation or an era-bound reference is left alone. The row states its own limit: no
|
|
78
|
+
checker reaches copy, and grepping for em dashes or "AI words" produces false reds on prose that
|
|
79
|
+
is simply correct.
|
|
80
|
+
- Matrix: **32 enforcement + 35 library rows, 152 checks over 63 control ids.**
|
|
81
|
+
- `tests/t-doc-sync.sh` now pins the spelled-out skip count in the docs to the live matrix, so the
|
|
82
|
+
prose can no longer drift behind a row the way it did in the previous census.
|
|
83
|
+
|
|
84
|
+
If you maintain an existing install: A11Y-01 and UI-01 are on by default and run against
|
|
85
|
+
*target* repos, so a project whose HTML lacks `lang`, or whose stylesheet disables the outline,
|
|
86
|
+
will go red on the next `gobl verify`. That is the row working, not a regression — both rows name
|
|
87
|
+
the file and the line, and `docs/LIMITS.md` #71/#72 states what each probe cannot see.
|
|
88
|
+
|
|
57
89
|
## 0.7.3 (categories: the anti-slop filter is inventoried)
|
|
58
90
|
|
|
59
91
|
- **`manifest/categories.tsv` gains a fourth external pack: `anti-slop`.** MIT, v3.2.33,
|
package/README.md
CHANGED
|
@@ -83,21 +83,23 @@ After installing, in this order:
|
|
|
83
83
|
.gob/bin/goblin-verify # or gob verify, anywhere in the target
|
|
84
84
|
|
|
85
85
|
**A default install verifies green — `19 passed, 0 failed, 0 advisory,
|
|
86
|
-
|
|
87
|
-
scaffold's `0000000` placeholder is the one expected red.**
|
|
86
|
+
9 skipped`, exit 0 — once `HANDOFF.md` names a commit that exists. Before that edit the
|
|
87
|
+
scaffold's `0000000` placeholder is the one expected red.** Nine rows skip: `AG-01` has no
|
|
88
88
|
approval record yet (a plain install writes none; `gob approve-agents "<reason>"` records the
|
|
89
89
|
first, and `gob init --write` writes it for you); `SK-01`, `SK-02` and
|
|
90
90
|
`SK-04` **run** (the core procedure tier is vendored under `.gob/skills/` on every install);
|
|
91
91
|
`BN-01`/`BN-02`/`BN-03`/`BN-05` match only `.ts`/`.tsx`/`.js`/`.jsx` and have no such source, so
|
|
92
92
|
each reports itself *not applicable*;
|
|
93
|
-
and `FM-01`/`FM-02` have no feature map yet
|
|
93
|
+
and `FM-01`/`FM-02` have no feature map yet; and `A11Y-01`/`UI-01` have no tracked HTML / no
|
|
94
|
+
tracked stylesheet yet. **Thirty-five further rows are OFF by default** —
|
|
94
95
|
they are not skipped, they are held in the **library** (`gob verify --library`), the discovery
|
|
95
96
|
surface for the extend mechanism: the spec/round rows (`SP-01`..`SP-03`), the ratchet rows
|
|
96
97
|
(`GT-04`/`GT-05`), the replay rows (`HS-01`..`HS-03`), commit hygiene (`CM-02`/`CM-03`),
|
|
97
98
|
the PR-gate rows (`PG-01`..`PG-03`), the runtime-data rows (`DS-01`/`DS-02`), the doc rows
|
|
98
99
|
(`DOC-01`/`DOC-02`), the security rows (`SC-02`..`SC-06`), the perf baseline (`PF-01`),
|
|
99
100
|
the reference corpus (`RC-01`..`RC-04`), the archive switch (`CL-02`), the portability row
|
|
100
|
-
(`PT-01`) and the doctor row (`VA-01`)
|
|
101
|
+
(`PT-01`) and the doctor row (`VA-01`); the anti-slop copy row (`CW-01`) reads public copy
|
|
102
|
+
against the What-NOT-to-flag list. A default run states the library count in its summary, so
|
|
101
103
|
a green run is never the whole story. Full inventory: `gob verify --library`. Turn one on by
|
|
102
104
|
pasting the line `--library` prints into `.gob/manifest/enforcement.local.tsv` (repo-local,
|
|
103
105
|
committed with the repo); the run then names it `enabled-locally` in its summary. The file is
|
|
@@ -204,7 +206,7 @@ yet, not red). Every run prints what it cannot see.
|
|
|
204
206
|
bash tests/run-tests.sh
|
|
205
207
|
|
|
206
208
|
Runs the source-scope rules (PR-01..PR-04) and the test scripts, including `t-verify-red.sh` —
|
|
207
|
-
one control per target-scope row (
|
|
209
|
+
one control per target-scope row (152 over 63 target rows), each required to go RED and then
|
|
208
210
|
restored. **A verifier that only ever prints GREEN is a failure**, so that file is the one that
|
|
209
211
|
matters most.
|
|
210
212
|
|
|
@@ -299,7 +301,7 @@ bounded panel, a pinned-SHA verdict. What does not transfer is cut, with the rea
|
|
|
299
301
|
#### D1 — the enforcement matrix is an executable artifact, not a document
|
|
300
302
|
|
|
301
303
|
`manifest/enforcement.tsv` has one row per rule. The `check` column holds a real command, the
|
|
302
|
-
literal `advisory`, prose that names its reader (the library's `GT-06`/`EX-01` rows end in
|
|
304
|
+
literal `advisory`, prose that names its reader (the library's `GT-06`/`EX-01`/`CW-01` rows end in
|
|
303
305
|
", read by a human" and the engine advisories them), or the marker `goblin-verify --only <ID>` for
|
|
304
306
|
a check that needs more than
|
|
305
307
|
one shell line. A self-check row (IN-03) fails the manifest when a row has neither, and SK-03
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.7.
|
|
1
|
+
0.7.4
|
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.7.
|
|
19
|
+
GOBLIN_LIB_VERSION="0.7.4"
|
|
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.7.
|
|
22
|
+
GOBLIN_VERIFY_VERSION="0.7.4"
|
|
23
23
|
SELF_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
24
24
|
# shellcheck source=goblin-lib.sh
|
|
25
25
|
. "$SELF_DIR/goblin-lib.sh"
|
|
@@ -2792,6 +2792,153 @@ rc_hdr_field() {
|
|
|
2792
2792
|
'
|
|
2793
2793
|
}
|
|
2794
2794
|
|
|
2795
|
+
# ---- A11Y-01 / UI-01: the accessibility and focus-visibility rows (2026-11-29) ---
|
|
2796
|
+
# Both are TEXT probes over the tracked tree. House rules from the engine bug-classes:
|
|
2797
|
+
# they never quantify over an empty set (zero tracked files -> SKIP exit 3 with a reason,
|
|
2798
|
+
# never a green count over nothing), a file that cannot be parsed as the artifact is
|
|
2799
|
+
# counted "not a document" / "not a stylesheet" rather than passed by implication, and
|
|
2800
|
+
# the verdict line always states how many files were inspected so a reader can see the
|
|
2801
|
+
# set was non-empty.
|
|
2802
|
+
|
|
2803
|
+
# g_html_lang <file> — the <html> tag's language state, one line:
|
|
2804
|
+
# NODOC no `<html` tag anywhere in the file -> not an HTML document
|
|
2805
|
+
# NOLANG<TAB>line an `<html` tag exists but carries no non-empty lang attribute
|
|
2806
|
+
# LANG<TAB>line<TAB>value
|
|
2807
|
+
# Case-insensitive tag match; `xml:lang` is stripped before the search so it can never
|
|
2808
|
+
# read as `lang` (the rule names the html element's lang attribute, not its XML twin).
|
|
2809
|
+
# Prettier and friends may break the opening tag across lines — the slice read is the
|
|
2810
|
+
# WHOLE tag, not just the line that matched `<html`: from the match the reader walks
|
|
2811
|
+
# forward until the closing `>`, bounded (8 lines or 500 chars, whichever comes first),
|
|
2812
|
+
# so an unterminated tag cannot run away and still lands fail-closed on NOLANG.
|
|
2813
|
+
g_html_lang() {
|
|
2814
|
+
awk '
|
|
2815
|
+
!found && tolower($0) ~ /<html/ {
|
|
2816
|
+
found = 1; ln = NR; tag = tolower($0)
|
|
2817
|
+
for (i = 1; i <= 7 && tag !~ />/; i++) {
|
|
2818
|
+
if ((getline nxt) <= 0) break
|
|
2819
|
+
tag = tag " " tolower(nxt)
|
|
2820
|
+
if (length(tag) >= 500) break
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
END {
|
|
2824
|
+
if (!found) { print "NODOC"; exit }
|
|
2825
|
+
gsub(/xml:lang[ \t]*=[ \t]*("[^"]*"|[^ \t>]+)/, "", tag)
|
|
2826
|
+
if (match(tag, /(^|[ \t])lang[ \t]*=[ \t]*("[^"]*"|[^ \t>]+)/)) {
|
|
2827
|
+
v = substr(tag, RSTART, RLENGTH)
|
|
2828
|
+
sub(/^.*lang[ \t]*=[ \t]*/, "", v)
|
|
2829
|
+
print "LANG\t" ln "\t" v
|
|
2830
|
+
exit
|
|
2831
|
+
}
|
|
2832
|
+
print "NOLANG\t" ln
|
|
2833
|
+
}
|
|
2834
|
+
' "$1"
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
check_a11y_01() {
|
|
2838
|
+
local files f n=0 ndoc=0 nodoc=0 bad=0 tagline kind ln v
|
|
2839
|
+
files=$( cd "$ROOT" && git ls-files '*.html' '*.htm' 2>/dev/null \
|
|
2840
|
+
| grep -vE '(^|/)(node_modules|dist|build|out|\.next|coverage)/' || true )
|
|
2841
|
+
if [ -z "$files" ]; then
|
|
2842
|
+
printf 'no tracked HTML document — nothing declares a language\n'
|
|
2843
|
+
return 3
|
|
2844
|
+
fi
|
|
2845
|
+
while IFS= read -r f; do
|
|
2846
|
+
[ -n "$f" ] || continue
|
|
2847
|
+
n=$((n + 1))
|
|
2848
|
+
tagline=$(g_html_lang "$ROOT/$f")
|
|
2849
|
+
kind=${tagline%%$'\t'*}
|
|
2850
|
+
if [ "$kind" = "NODOC" ]; then nodoc=$((nodoc + 1)); continue; fi
|
|
2851
|
+
ndoc=$((ndoc + 1))
|
|
2852
|
+
ln=$(printf '%s' "$tagline" | cut -f2)
|
|
2853
|
+
v=$(printf '%s' "$tagline" | cut -f3)
|
|
2854
|
+
v=$(printf '%s' "$v" | sed -e 's/^["'\'']//' -e 's/["'\'']$//')
|
|
2855
|
+
if [ -z "$v" ]; then
|
|
2856
|
+
bad=1
|
|
2857
|
+
printf '%s:%s — no non-empty lang attribute on the <html> element\n' "$f" "$ln"
|
|
2858
|
+
fi
|
|
2859
|
+
done <<EOF
|
|
2860
|
+
$files
|
|
2861
|
+
EOF
|
|
2862
|
+
if [ "$ndoc" -eq 0 ]; then
|
|
2863
|
+
printf '%d tracked HTML file(s) inspected, none is a document (no <html> tag) — nothing declares a language\n' "$n"
|
|
2864
|
+
return 3
|
|
2865
|
+
fi
|
|
2866
|
+
printf '%d tracked HTML file(s) inspected: %d document(s), %d not a document (no <html> tag)\n' "$n" "$ndoc" "$nodoc"
|
|
2867
|
+
[ "$bad" -eq 0 ] || return 1
|
|
2868
|
+
printf 'every HTML document declares its language\n'
|
|
2869
|
+
return 0
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
# g_css_strip_comments — comment-stripped CSS with line numbers preserved: /* ... */
|
|
2873
|
+
# (including across lines) is blanked for every flavour, and // to end of line is blanked
|
|
2874
|
+
# ONLY for the flavours whose line comment is // (.scss/.sass/.less) — a .css file has no
|
|
2875
|
+
# // comment, and stripping one there blanked everything from any `url(//cdn...)` to the
|
|
2876
|
+
# end of the line, so a real `outline: none` behind it on the same line passed unseen.
|
|
2877
|
+
# Every other byte kept, exactly one output line per input line. Where // IS stripped,
|
|
2878
|
+
# a `//` preceded by `:` is a URL scheme, not a comment, and is left alone.
|
|
2879
|
+
g_css_strip_comments() {
|
|
2880
|
+
local strip_line=0
|
|
2881
|
+
case "$1" in
|
|
2882
|
+
*.scss|*.sass|*.less) strip_line=1 ;;
|
|
2883
|
+
esac
|
|
2884
|
+
awk -v sl="$strip_line" '
|
|
2885
|
+
BEGIN { inc = 0 }
|
|
2886
|
+
{
|
|
2887
|
+
out = ""; rest = $0
|
|
2888
|
+
while (length(rest) > 0) {
|
|
2889
|
+
if (inc) {
|
|
2890
|
+
e = index(rest, "*/")
|
|
2891
|
+
if (e == 0) { rest = "" }
|
|
2892
|
+
else { rest = substr(rest, e + 2); inc = 0 }
|
|
2893
|
+
} else {
|
|
2894
|
+
s = index(rest, "/*")
|
|
2895
|
+
h = 0
|
|
2896
|
+
if (sl) {
|
|
2897
|
+
h = index(rest, "//")
|
|
2898
|
+
while (h > 1 && substr(rest, h - 1, 1) == ":") {
|
|
2899
|
+
hn = index(substr(rest, h + 2), "//")
|
|
2900
|
+
h = (hn == 0) ? 0 : h + 1 + hn
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
if (s == 0 && h == 0) { out = out rest; rest = "" }
|
|
2904
|
+
else if (h > 0 && (s == 0 || h < s)) { out = out substr(rest, 1, h - 1); rest = "" }
|
|
2905
|
+
else { out = out substr(rest, 1, s - 1); rest = substr(rest, s + 2); inc = 1 }
|
|
2906
|
+
}
|
|
2907
|
+
}
|
|
2908
|
+
print out
|
|
2909
|
+
}
|
|
2910
|
+
' "$1"
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
check_ui_01() {
|
|
2914
|
+
local files f n=0 bad=0 stripped hits first
|
|
2915
|
+
files=$( cd "$ROOT" && git ls-files '*.css' '*.scss' '*.sass' '*.less' 2>/dev/null \
|
|
2916
|
+
| grep -vE '(^|/)(node_modules|dist|build|out|\.next|coverage)/' || true )
|
|
2917
|
+
if [ -z "$files" ]; then
|
|
2918
|
+
printf 'no tracked stylesheet — nothing hides a focus ring\n'
|
|
2919
|
+
return 3
|
|
2920
|
+
fi
|
|
2921
|
+
while IFS= read -r f; do
|
|
2922
|
+
[ -n "$f" ] || continue
|
|
2923
|
+
n=$((n + 1))
|
|
2924
|
+
stripped=$(g_css_strip_comments "$ROOT/$f")
|
|
2925
|
+
hits=$(printf '%s\n' "$stripped" | grep -niE '(^|[^A-Za-z0-9_$-])[[:space:]]*outline[[:space:]]*:[[:space:]]*(none|0)([[:space:]]*!important)?[[:space:]]*(;|\}|$)' || true)
|
|
2926
|
+
[ -n "$hits" ] || continue
|
|
2927
|
+
if printf '%s\n' "$stripped" | grep -qiE ':(focus|focus-visible|focus-within)([^[:alnum:]_-]|$)'; then
|
|
2928
|
+
continue
|
|
2929
|
+
fi
|
|
2930
|
+
bad=1
|
|
2931
|
+
first=$(printf '%s\n' "$hits" | head -1 | cut -d: -f1)
|
|
2932
|
+
printf '%s:%s — outline:none/0 with no :focus, :focus-visible or :focus-within rule in the same file\n' "$f" "$first"
|
|
2933
|
+
done <<EOF
|
|
2934
|
+
$files
|
|
2935
|
+
EOF
|
|
2936
|
+
printf '%d tracked stylesheet(s) inspected\n' "$n"
|
|
2937
|
+
[ "$bad" -eq 0 ] || return 1
|
|
2938
|
+
printf 'every outline:none/0 sits beside a focus rule\n'
|
|
2939
|
+
return 0
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2795
2942
|
# ---- the day-one framing (review 1, scope 3) ----------------------------------
|
|
2796
2943
|
# One shape is an undeserved red for a person who just cloned a repo: the repo looks freshly
|
|
2797
2944
|
# cloned (.gob committed, but fewer than 3 commits) -> one banner line after the verdict.
|
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.7.
|
|
6
|
+
Version: `0.7.4` · Last measured: 2026-11-29 · 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
|
-
18 passed, 1 failed, 0 advisory,
|
|
163
|
+
18 passed, 1 failed, 0 advisory, 9 skipped # the HP-05 placeholder, before you name a real commit
|
|
164
164
|
|
|
165
165
|
### How to read that output
|
|
166
166
|
|
|
@@ -172,7 +172,7 @@ and a summary line at the bottom:
|
|
|
172
172
|
| `ADV` | advisory — a rule with no runnable check, **counted** | nothing, but know it is not enforced |
|
|
173
173
|
|
|
174
174
|
**`SKIP` is not success and not failure.** It is the harness telling you the truth: "this rule has
|
|
175
|
-
nothing to read yet." On a brand-new install,
|
|
175
|
+
nothing to read yet." On a brand-new install, nine rows skip — because there is no `src/` for a
|
|
176
176
|
ban to scan, no feature map, no pinned pre-change commit. That is correct on day
|
|
177
177
|
one. The list of what is still skipping *is* your onboarding checklist.
|
|
178
178
|
|
|
@@ -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, 3 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, 3 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, 3 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
|
|
|
@@ -417,23 +417,23 @@ A default install lands on a specific shape. The first red is
|
|
|
417
417
|
the scaffold teaching on purpose — `HP-05`, the `0000000` placeholder in `HANDOFF.md` (§4). The
|
|
418
418
|
walk in §4 measured, step by step:
|
|
419
419
|
|
|
420
|
-
18 passed, 1 failed, 0 advisory,
|
|
421
|
-
19 passed, 0 failed, 0 advisory,
|
|
420
|
+
18 passed, 1 failed, 0 advisory, 9 skipped # straight after the install (the HP-05 placeholder)
|
|
421
|
+
19 passed, 0 failed, 0 advisory, 9 skipped # name a real commit in HANDOFF.md, commit, and it is green
|
|
422
422
|
|
|
423
423
|
(On the older `gob init` walk the uncommitted-install and untracked-SPEC reds — `CM-03`, `SP-02`
|
|
424
424
|
— were the first two FAILs; both are library rows now, off by default.) Name a real commit in
|
|
425
425
|
`HANDOFF.md`, commit, and give the gate lines real commands (§5), and it is green:
|
|
426
426
|
|
|
427
|
-
19 passed, 0 failed, 0 advisory,
|
|
427
|
+
19 passed, 0 failed, 0 advisory, 9 skipped (on a real project; your numbers will differ)
|
|
428
428
|
|
|
429
|
-
**
|
|
429
|
+
**Nine rows skipping is correct**, and each skip prints its reason. In plain terms: the
|
|
430
430
|
harness is telling you which of its rules have nothing to read yet. It is a checklist, not a
|
|
431
431
|
scolding.
|
|
432
432
|
|
|
433
433
|
Two readings that are easy to get wrong:
|
|
434
434
|
|
|
435
435
|
- **Advisory rows are not passes.** No row of the shipped matrix is labelled `advisory` — the
|
|
436
|
-
|
|
436
|
+
eight advisory rows moved to the library (`gob verify --library`), so a default install sits at
|
|
437
437
|
0 of 10 on `advisory_ceiling: 10`. Enabling one from the library spends a slot: adding
|
|
438
438
|
unenforceable rules eventually fails verify until one is removed. That is intentional.
|
|
439
439
|
- **Vacuously-passing rows are not proven.** A rule about "the first review note" passes when there
|
|
@@ -708,7 +708,7 @@ Output is one line per executed row, in manifest order, plus a summary line at t
|
|
|
708
708
|
|
|
709
709
|
Those three lines are one row of each marking a default run can show (no row of the shipped
|
|
710
710
|
matrix is advisory — the advisory rows live in the library). The summary line of a green default
|
|
711
|
-
run is `19 passed, 0 failed, 0 advisory,
|
|
711
|
+
run is `19 passed, 0 failed, 0 advisory, 9 skipped` (the first skip is `AG-01` — a plain `goblin-install` writes no approval record; `gob init --write` writes the first one).
|
|
712
712
|
|
|
713
713
|
**Exit codes:** `0` every executed check passed (advisories and skips do not fail the run) ·
|
|
714
714
|
`1` at least one check FAILED · `2` verify could not run (not installed, a missing dependency,
|
|
@@ -732,14 +732,15 @@ product deleted is not a blind spot a run still carries (`docs/LIMITS.md` #13/#3
|
|
|
732
732
|
#### A fresh install verifies green
|
|
733
733
|
|
|
734
734
|
Measured on a fresh DEFAULT install (skills opt-in, W6 neutral-first), committed with no
|
|
735
|
-
hand edit: **`19 passed, 0 failed, 0 advisory,
|
|
735
|
+
hand edit: **`19 passed, 0 failed, 0 advisory, 9 skipped`, exit 0.** The core procedure
|
|
736
736
|
tier is vendored on every install (`.gob/skills/`), so `SK-01`, `SK-02` and `SK-04` RUN and
|
|
737
|
-
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. Nine rows skip with a
|
|
738
738
|
reason: every ban self-selects by its `applies_when` — a GLOB (`BN-01`/`BN-02`/`BN-03`/`BN-05`
|
|
739
739
|
match only `.ts`/`.tsx`/`.js`/`.jsx`, so with no such source each reports itself *not
|
|
740
740
|
applicable*) — and `FM-01`/`FM-02`, which
|
|
741
741
|
have no feature map yet (`feature_map:` ships empty on purpose: a fresh install must not be
|
|
742
|
-
born RED — G1, `docs/LIMITS.md` #30)
|
|
742
|
+
born RED — G1, `docs/LIMITS.md` #30); and `A11Y-01`/`UI-01` (no tracked HTML / no tracked
|
|
743
|
+
stylesheet yet). Thirty-five further rows are **not skipped but OFF** —
|
|
743
744
|
they live in the library (`gob verify --library`), the rows that are not right for every repo.
|
|
744
745
|
Every skip above is a *not yet*, not a pass.
|
|
745
746
|
|
|
@@ -755,7 +756,7 @@ verifier is reporting FAILs.
|
|
|
755
756
|
the part's rows as `SKIP (opt-out)` in the summary, so the opt-out is **visible rather than
|
|
756
757
|
absent**. The same mechanism is what makes a part's off state real.
|
|
757
758
|
- **The opt-out numbers are pinned (V3-3).** A default install with the core tier vendored
|
|
758
|
-
verifies `19 passed, 0 failed, 0 advisory,
|
|
759
|
+
verifies `19 passed, 0 failed, 0 advisory, 9 skipped`, exit 0, and
|
|
759
760
|
`tests/t-install-off-switch.sh` asserts that line: a silent drift in the opt-out path is caught
|
|
760
761
|
rather than left as a number nobody wrote down (the `--skills no` count moved from `37/0/9/11`
|
|
761
762
|
at v0.2 as the ban and feature-map rows landed; in v3 the model/role/loop and CI rows are cut,
|
|
@@ -854,16 +855,17 @@ Then, in order:
|
|
|
854
855
|
.gob/bin/goblin-verify # 19 passed, 0 failed - the uncommitted-install red (CM-03) is a library row now
|
|
855
856
|
|
|
856
857
|
A default install (core tier, no agent skills) is **green** — `19 passed, 0 failed, 0 advisory,
|
|
857
|
-
|
|
858
|
+
9 skipped`, exit 0 — once
|
|
858
859
|
`HANDOFF.md` names a commit that exists; before that edit the scaffold's `0000000` placeholder is
|
|
859
860
|
the one expected red (`18 passed, 1 failed`). Both numbers are measured, not assumed
|
|
860
|
-
(`docs/GUIDE.md`; step 2 of `docs/GUIDE.md`).
|
|
861
|
+
(`docs/GUIDE.md`; step 2 of `docs/GUIDE.md`). Nine rows skip with a reason: `AG-01` has no approval record yet (a plain install writes
|
|
861
862
|
none — `gob approve-agents "<reason>"` records the first, and `gob init --write` writes it for
|
|
862
863
|
you); `SK-01`, `SK-02`
|
|
863
864
|
and `SK-04` RUN (the core procedure tier is vendored under `.gob/skills/` on every install),
|
|
864
865
|
plus the not-yet rows: `BN-01`/`BN-02`/`BN-03`/`BN-05` have no `.ts`/`.js` source for their
|
|
865
866
|
`applies_when` glob and each reports itself *not applicable* — and `FM-01`/`FM-02`
|
|
866
|
-
(no feature map yet)
|
|
867
|
+
(no feature map yet); and `A11Y-01`/`UI-01` (no tracked HTML / no tracked stylesheet yet).
|
|
868
|
+
Thirty-five further rows are held in the **library** (`gob verify
|
|
867
869
|
--library`) — off by default, each with the line that turns it on. The round-shaped rows
|
|
868
870
|
(`PG-*`) and the corpus rows (`RC-*`) are library rows now, so the first-step list is a list of
|
|
869
871
|
work, not a list of FAILs.
|
|
@@ -906,7 +908,7 @@ The remedy is a reconciliation. The project's file stays the file of record; not
|
|
|
906
908
|
git add -A && git commit
|
|
907
909
|
.gob/bin/goblin-verify # HP-02, HP-03, HP-05 go green
|
|
908
910
|
|
|
909
|
-
Success is the full green path (`19 passed, 0 failed, 0 advisory,
|
|
911
|
+
Success is the full green path (`19 passed, 0 failed, 0 advisory, 9 skipped`, exit 0)
|
|
910
912
|
with `git status --short` empty.
|
|
911
913
|
|
|
912
914
|
The edit is additive and small — measured on the model repo (§1's exemplar, 2450 lines): three
|
|
@@ -951,7 +953,7 @@ closed and now ENFORCED (`IN-03`'s third clause, Z1-5): `script`, `lint`, `gate`
|
|
|
951
953
|
plus `test` for a source-scope row, whose check is a script under `tests/` run by
|
|
952
954
|
`tests/run-tests.sh`.
|
|
953
955
|
|
|
954
|
-
Measured shape of this table: **
|
|
956
|
+
Measured shape of this table: **32 rows** - 28 target, 4 source; advisory 0, gate 4, lint 14, script 11, test 3 (the on-by-default matrix, `.gob/manifest/enforcement.tsv`). The **library** (`library.tsv`) holds a further **35 rows**, all `scope:target`, off by default. The table below renders the **full 67-rule set** (matrix + library) so a reader sees the whole contract; the 35 library rows are the ones `gob verify --library` names.
|
|
955
957
|
|
|
956
958
|
### The rows
|
|
957
959
|
|
|
@@ -1016,6 +1018,9 @@ Measured shape of this table: **30 rows** - 26 target, 4 source; advisory 0, gat
|
|
|
1016
1018
|
| `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. |
|
|
1017
1019
|
| `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
1020
|
| `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. |
|
|
1021
|
+
| `CW-01` | target | advisory | Public-facing copy avoids the generic-AI-output failures: no fabricated proof, no decorative status claims, no uniform sentence rhythm, no sentence that restates the thing it names; quotations, titles, proper names and era-bound references are left alone. | copy prose, read by a human | Nothing machine-checks copy - a checker that greps for em dashes or "AI words" produces false REDs on legitimate prose (a quotation, a title, a dry sentence). The reading standard is the anti-slop What-NOT-to-flag list: clean grammar, mixed registers, dry prose, a single transition word and curly quotes are not evidence of a machine. Provenance: miqdadbadjuber/anti-slop (MIT); the pack is not vendored, the row points at the practice. |
|
|
1022
|
+
| `A11Y-01` | target | script | Every shipped HTML document declares its language with a non-empty lang attribute on the html element. | goblin-verify --only A11Y-01 | A text probe over the tracked bytes (node_modules, dist, build, out, .next, coverage excluded): zero tracked HTML files skips with `no tracked HTML document — nothing declares a language`, and a file with no `<html` tag is counted not-a-document, never passed. A lang the bundler injects into a built file, a language declared on a wrapper element instead of <html>, and a missing lang on a JS-rendered shell are invisible to it (docs/LIMITS.md #71). |
|
|
1023
|
+
| `UI-01` | target | script | No stylesheet disables the focus outline (outline: none / 0) unless the same file also carries a :focus, :focus-visible or :focus-within rule. | goblin-verify --only UI-01 | A comment-stripped text probe over the tracked bytes (node_modules, dist, build, out, .next, coverage excluded): zero tracked stylesheets skips with `no tracked stylesheet — nothing hides a focus ring`. The :focus rule need not actually restore a visible ring, so the row catches removal, not a poor replacement, and Tailwind/inline utility classes are invisible to it (docs/LIMITS.md #72). |
|
|
1019
1024
|
| `PR-01` | source | test | The installer never writes outside its target. | tests/run-tests.sh | — |
|
|
1020
1025
|
| `PR-02` | source | test | A second install is a no-op, and an upgrade reports created/updated/unchanged. | tests/run-tests.sh | — |
|
|
1021
1026
|
| `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) |
|
|
@@ -1023,7 +1028,7 @@ Measured shape of this table: **30 rows** - 26 target, 4 source; advisory 0, gat
|
|
|
1023
1028
|
|
|
1024
1029
|
### Advisory rows, named
|
|
1025
1030
|
|
|
1026
|
-
0 of the
|
|
1031
|
+
0 of the 28 rows are labelled `advisory`. 0 of them carry no executable check at all — the five
|
|
1027
1032
|
advisory rows (`HP-04`, `HS-03`, `CM-02`, `DOC-01`, `DOC-02`) all moved to the library
|
|
1028
1033
|
(`gob verify --library`), so a default run carries no prose row (they are prose the matrix
|
|
1029
1034
|
refuses to pretend about).
|
|
@@ -1035,17 +1040,19 @@ refuses to pretend about).
|
|
|
1035
1040
|
- **DOC-02** (no check at all) - System-level changes are recorded wherever the project's standard says they live.
|
|
1036
1041
|
- **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
1042
|
- **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.
|
|
1043
|
+
- **CW-01** (a reader, not a command) - The public copy is read by a human against the What-NOT-to-flag list: a quotation, a title, a dry sentence and a curly quote stay; fabricated proof and decorative status claims go. Provenance: miqdadbadjuber/anti-slop (MIT).
|
|
1038
1044
|
|
|
1039
1045
|
`advisory_ceiling` (default 10) caps that count: **SK-03 fails the run when the advisory
|
|
1040
1046
|
count exceeds it.** The number of unenforceable rules is itself a gate. Measured (v3):
|
|
1041
1047
|
`advisory 5 of ceiling 10`; measured 2026-11-27 (GT-06 and EX-01 joined the library):
|
|
1042
|
-
`advisory 7 of ceiling 10
|
|
1048
|
+
`advisory 7 of ceiling 10`; measured 2026-11-29 (CW-01 joined the library):
|
|
1049
|
+
`advisory 8 of ceiling 10`.
|
|
1043
1050
|
|
|
1044
1051
|
**The budget, stated so the next rule author does not have to work it out (V1/G8-5).** The
|
|
1045
|
-
count is
|
|
1052
|
+
count is 8 of a ceiling of 10, so **two advisory slots are free**: a tenth advisory row is
|
|
1046
1053
|
available, but the one after the ceiling FAILs `SK-03` unless the ceiling is raised in the same
|
|
1047
1054
|
change, with the reason written down. `SK-03` prints the arithmetic on every run
|
|
1048
|
-
(`advisory
|
|
1055
|
+
(`advisory 8 of ceiling 10 (2 free slots)`), and a ceiling that is not a number is a FAIL rather
|
|
1049
1056
|
than a silent ADVISORY. The v3 cuts returned the slots the model/role/loop, dependency-audit and
|
|
1050
1057
|
CI rows had spent.
|
|
1051
1058
|
|
package/docs/LIMITS.md
CHANGED
|
@@ -38,10 +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. **
|
|
41
|
+
9. **Eight rows are labelled `advisory`, and all eight are prose a reader, not a command,**
|
|
42
42
|
**checks:** `HP-04`, `HS-03`, `CM-02`, `DOC-01` and `DOC-02` (`SC-09` was withdrawn on
|
|
43
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
|
|
44
|
+
by `GT-06` and `EX-01` (see #68 and #69), and on 2026-11-29 by `CW-01` (see #70). Each is counted and capped, but a
|
|
45
45
|
counted rule is still not an enforced one, and **the cap is a policy, not a proof.**
|
|
46
46
|
10. **It does not reduce the profile-skill surface.** It only stops that surface from growing
|
|
47
47
|
with project procedures; the existing divergence is a separate cleanup.
|
|
@@ -669,6 +669,38 @@ the Node the gates ran under.
|
|
|
669
669
|
another's). Not yet an engine check because the engine cannot see the emitter's output - it
|
|
670
670
|
would have to build the thing first. Fragments assembled at runtime from a string the repo
|
|
671
671
|
never writes stay outside any check.
|
|
672
|
+
70. **`CW-01` — anti-slop copy, advisory (added 2026-11-29).** Public-facing copy (README,
|
|
673
|
+
marketing, UI strings, release notes) is read against the anti-slop discipline: no fabricated
|
|
674
|
+
proof, no decorative status claims, no uniform sentence rhythm, no sentence that restates the
|
|
675
|
+
thing it names. The over-edit guard matters as much as the filter: clean grammar, mixed
|
|
676
|
+
registers, dry prose, a single transition word and curly quotes are NOT evidence of a machine,
|
|
677
|
+
and quotations, titles, proper names and era-bound references are left alone. Not an engine
|
|
678
|
+
check because nothing machine-checks copy - a grep for em dashes or "AI words" reds legitimate
|
|
679
|
+
prose. Provenance: miqdadbadjuber/anti-slop (MIT), the copywriting pack's "What NOT to flag"
|
|
680
|
+
list and R-31 dialect doctrine; the pack is not vendored, the row points at the practice. The
|
|
681
|
+
row's control site is this repo's own public copy - `README.md` and `docs/*.md` are written
|
|
682
|
+
under the discipline they name.
|
|
683
|
+
71. **`A11Y-01` — the language attribute (added 2026-11-29).** Every tracked `*.html`/`*.htm`
|
|
684
|
+
file that carries an `<html` tag must carry a non-empty `lang` attribute on it (`xml:lang`
|
|
685
|
+
does not count, a bare `lang=` with an empty value fails, and the file is named with its
|
|
686
|
+
line). Zero tracked HTML files skips with `no tracked HTML document — nothing declares a
|
|
687
|
+
language`, and a file with no `<html` tag is counted *not a document*, never passed — a
|
|
688
|
+
text probe must not quantify over an empty set and call it green. The probe reads the
|
|
689
|
+
tracked bytes only: a lang the bundler injects into a built file, a language declared on
|
|
690
|
+
a wrapper element instead of `<html>`, and a missing lang on a JS-rendered shell are
|
|
691
|
+
invisible to it, and the generated trees (`node_modules`, `dist`, `build`, `out`,
|
|
692
|
+
`.next`, `coverage`) are excluded, so a document that lives only there is never seen.
|
|
693
|
+
72. **`UI-01` — the focus outline (added 2026-11-29).** A tracked `*.css`/`*.scss`/`*.sass`/
|
|
694
|
+
`*.less` file that disables the focus outline (`outline: none` / `outline: 0`, any
|
|
695
|
+
spacing, case-insensitive) must carry a `:focus`, `:focus-visible` or `:focus-within`
|
|
696
|
+
rule in the SAME file, and the offending declaration is named with its line. Comments
|
|
697
|
+
are stripped first (`/* ... */` and `// ...`), so a commented-out `outline: none` never
|
|
698
|
+
fails the file, and zero tracked stylesheets skips with `no tracked stylesheet —
|
|
699
|
+
nothing hides a focus ring` rather than passing over an empty set. The probe reads the
|
|
700
|
+
tracked bytes only: the `:focus` rule need not actually restore a visible ring, so the
|
|
701
|
+
row catches removal, not a poor replacement, and Tailwind/inline utility classes are
|
|
702
|
+
invisible to it. The generated trees (`node_modules`, `dist`, `build`, `out`, `.next`,
|
|
703
|
+
`coverage`) are excluded, so a stylesheet that lives only there is never seen.
|
|
672
704
|
|
|
673
705
|
---
|
|
674
706
|
|
|
@@ -690,7 +722,7 @@ rung below must be *demonstrably unable* to see it - the reason is recorded in t
|
|
|
690
722
|
1. **No network at verify time.** `README.md` K4: a network call at verify time breaks the
|
|
691
723
|
offline dependency contract. A row that needs the network is not a verify-time row.
|
|
692
724
|
2. **`enforced_by` is a closed enum** (`script`, `lint`, `gate`, `advisory`) and `check` is one of:
|
|
693
|
-
a real command, the literal `advisory`, prose that names its reader (the library's `GT-06`/`EX-01`
|
|
725
|
+
a real command, the literal `advisory`, prose that names its reader (the library's `GT-06`/`EX-01`/`CW-01`
|
|
694
726
|
rows end in ", read by a human" — the engine advisories them instead of executing the prose as a
|
|
695
727
|
shell command), or `goblin-verify --only <ID>` for a multi-line body.
|
|
696
728
|
Every row here obeys that, and `IN-03` fails the manifest otherwise.
|
package/manifest/enforcement.tsv
CHANGED
|
@@ -25,6 +25,8 @@ BN-03 target No direct network call from a component. lint .gob/manifest/bans.ts
|
|
|
25
25
|
BN-05 target No import across a declared layer boundary. lint .gob/manifest/bans.tsv + .gob/bans/ ecosystem:typescript 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.
|
|
26
26
|
FM-01 target Every feature file is indexed from the map README, declares its slug and at least one entry path, and carries the four-H2 entry contract. lint <feature_map dir> goblin-verify --only FM-01 SKIPs (exit 3) when feature_map: is empty - a fresh install has no map and must not be born RED (the D8 shape). When a map IS declared: the README must exist, every features/*.md must be linked from it in the (./<slug>.md) form and every relative .md link must resolve, each feature file's `feature:` must equal its filename stem, it must declare >=1 `entry_paths:`, and its H2s must be exactly Sub-features / How to get to it (user POV) / Driving it with <harness> / Gotchas, in that order. Partial: the README's own H2s are prose this row does not read, and 'the map lists every user-facing feature' is not mechanically checkable - that is docs/LIMITS.md #30, not a row.
|
|
27
27
|
FM-02 target Every entry point a feature declares still resolves in source, and no entry path changed after the map was verified. lint <feature_map dir> + git goblin-verify --only FM-02 SKIPs (exit 3) when feature_map: is empty. A tripwire, not a proof. The token is searched under source_root with occurrences under the map's own directory excluded - without that exclusion the map's own entry-path list satisfies the search and the row could never go RED. Freshness is `git log -1 --format=%cs` on the resolved file against the feature's `verified:` date, and git sees a FILE change, not a behaviour change: the row can be RED-when-stale and never GREEN-means-fresh. A token that also occurs in a vendored copy or a build artifact is read as resolved, and a `verified:` date is itself a claim the row cannot test (docs/LIMITS.md #30). W5-4: the search skips the harness's own directories (`.gob/`, `.hermes/`, the declared `harness_dir`) and the map's own directory, so a stub map whose token occurs only in the install no longer resolves; a token that occurs only in the target's own `docs/`, `tests/` or build output still does (docs/LIMITS.md #37). Z1-6: the resolved file must be TRACKED (`git ls-files --error-unmatch`) before its date is compared - an untracked file used to make the freshness clause skip in silence, so a map could claim `verified: 2020-01-01` over source that was never committed.
|
|
28
|
+
A11Y-01 target Every shipped HTML document declares its language with a non-empty lang attribute on the html element. script <tracked *.html, *.htm> goblin-verify --only A11Y-01 A text probe over the tracked bytes (node_modules, dist, build, out, .next, coverage excluded): zero tracked HTML files skips with `no tracked HTML document — nothing declares a language`, and a file with no `<html` tag is counted not-a-document, never passed. A lang the bundler injects into a built file, a language declared on a wrapper element instead of <html>, and a missing lang on a JS-rendered shell are invisible to it (docs/LIMITS.md #71).
|
|
29
|
+
UI-01 target No stylesheet disables the focus outline (outline: none / 0) unless the same file also carries a :focus, :focus-visible or :focus-within rule. script <tracked *.css, *.scss, *.sass, *.less> goblin-verify --only UI-01 A comment-stripped text probe over the tracked bytes (node_modules, dist, build, out, .next, coverage excluded): zero tracked stylesheets skips with `no tracked stylesheet — nothing hides a focus ring`. The :focus rule need not actually restore a visible ring, so the row catches removal, not a poor replacement, and Tailwind/inline utility classes are invisible to it (docs/LIMITS.md #72).
|
|
28
30
|
PR-01 source The installer never writes outside its target. test tests/t-install-* tests/run-tests.sh —
|
|
29
31
|
PR-02 source A second install is a no-op, and an upgrade reports created/updated/unchanged. test tests/t-install-idempotent.sh tests/run-tests.sh —
|
|
30
32
|
PR-03 source Every target-scope check goes RED under its own violation. test tests/t-verify-red.sh tests/run-tests.sh — (the negative control the verifier re-runs)
|
package/manifest/library.tsv
CHANGED
|
@@ -33,3 +33,4 @@ RC-04 target The acquisition record exists, and the manifest names the target an
|
|
|
33
33
|
PV-01 target A surface that exists to be reviewed renders the same shell the published route renders. lint route-tree preview/draft/staging dirs + their layout.* goblin-verify --only PV-01 An import proves reachability, never that the render is identical: a shell imported and then overridden by a local wrapper passes. The intersection counts project-resolvable modules only - an installed package or builtin is never evidence - so an unresolvable alias (or a runtime-built specifier) is a false RED that a layout carrying preview_differs: <list> declares and clears. PV-01
|
|
34
34
|
GT-06 target Every gate threshold compares an artifact measured in the same run; a gate holding two literals it typed itself can never fail. advisory checks/*.mjs 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. GT-06
|
|
35
35
|
EX-01 target 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. advisory generated fragments holding a <style> block (SVG, HTML embeds) 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. EX-01
|
|
36
|
+
CW-01 target Public-facing copy avoids the generic-AI-output failures: no fabricated proof, no decorative status claims, no uniform sentence rhythm, no sentence that restates the thing it names; quotations, titles, proper names and era-bound references are left alone. advisory public-facing copy: README.md, docs/*.md, release notes, UI strings copy prose, read by a human Nothing machine-checks copy - a checker that greps for em dashes or "AI words" produces false REDs on legitimate prose (a quotation, a title, a dry sentence). The reading standard is the anti-slop What-NOT-to-flag list: clean grammar, mixed registers, dry prose, a single transition word and curly quotes are not evidence of a machine. Provenance: miqdadbadjuber/anti-slop (MIT); the pack is not vendored, the row points at the practice. CW-01
|
package/package.json
CHANGED
|
@@ -11,16 +11,17 @@ 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
|
-
`19 passed, 0 failed, 0 advisory,
|
|
14
|
+
`19 passed, 0 failed, 0 advisory, 9 skipped`, exit 0, once `HANDOFF.md` names a commit that
|
|
15
15
|
exists (a target that already has a commit gets it filled in by the install; a repo with no
|
|
16
16
|
commit yet keeps the scaffold's `0000000` placeholder, and that is the day-one red:
|
|
17
17
|
`17 passed, 2 failed` - `HP-05` and `GT-02`).
|
|
18
|
-
|
|
18
|
+
Nine rows skip with a reason, and the reason matters: `SK-01`, `SK-02` and `SK-04` **run** (the
|
|
19
19
|
core procedure tier is vendored on every install, so the product no longer disables its own
|
|
20
20
|
rows);
|
|
21
21
|
`BN-01`/`BN-02`/`BN-03`/`BN-05` (this fresh repo has no `.ts` file for a ban's `applies_when`
|
|
22
22
|
glob, so each reports *not applicable*);
|
|
23
|
-
and `FM-01`/`FM-02` (no feature map yet)
|
|
23
|
+
and `FM-01`/`FM-02` (no feature map yet); and `A11Y-01`/`UI-01` (no tracked HTML / no tracked
|
|
24
|
+
stylesheet yet). Each is a *not yet*, not a pass. The other 35 target
|
|
24
25
|
rows are held in the **library** (`gob verify --library`), off by default — the rows that are
|
|
25
26
|
not right for every repo. The round-shaped rows (a first review, a real gate) are library rows
|
|
26
27
|
now; the first-step list is a list of work, not a defect.
|