checkwright 0.35.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +3 -0
  2. package/package.json +2 -2
  3. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  4. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
  5. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  6. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  7. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  8. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  9. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
  10. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  11. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  12. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
  13. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  14. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  15. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  16. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  17. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
  18. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  19. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +5 -0
  20. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +35 -0
  21. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -2
  22. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +26 -0
  23. package/payload/delegation-kit/README.md +1 -1
  24. package/payload/delegation-kit/usage-tests/cases.tsv +13 -0
  25. package/payload/gate-sdk/README.md +1 -0
  26. package/payload/gate-sdk/checks/check-hook-knobs-fresh.gate +5 -0
  27. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/enforcement.md +1 -0
  28. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/args +2 -0
  29. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/expect.txt +5 -0
  30. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/hooks/not-a-hook.md +4 -0
  31. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/hooks/shell-guard.md +3 -0
  32. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/hooks/subagent-stop-liveness.md +12 -0
  33. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/good/args +2 -0
  34. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/good/expect.txt +1 -0
  35. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/good/hooks/subagent-stop-liveness.md +16 -0
  36. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +11 -1
  37. package/payload/site-kit/README.md +3 -0
  38. package/payload/site-kit/checks/check-docs-since.gate +4 -0
  39. package/payload/site-kit/gate-tests/check-docs-since/bad/expect.txt +5 -0
  40. package/payload/site-kit/gate-tests/check-docs-since/bad/notes/2026-01-01-v99-1-0.md +7 -0
  41. package/payload/site-kit/gate-tests/check-docs-since/bad/scripts/site-config.knobs +3 -0
  42. package/payload/site-kit/gate-tests/check-docs-since/bad/site/bare.md +7 -0
  43. package/payload/site-kit/gate-tests/check-docs-since/bad/site/odd.md +8 -0
  44. package/payload/site-kit/gate-tests/check-docs-since/bad/site/open.md +8 -0
  45. package/payload/site-kit/gate-tests/check-docs-since/good/expect.txt +1 -0
  46. package/payload/site-kit/gate-tests/check-docs-since/good/notes/announce.md +3 -0
  47. package/payload/site-kit/gate-tests/check-docs-since/good/scripts/site-config.knobs +3 -0
  48. package/payload/site-kit/gate-tests/check-docs-since/good/site/done.md +8 -0
  49. package/payload/site-kit/gate-tests/check-docs-since/good/site/open.md +8 -0
package/README.md CHANGED
@@ -58,6 +58,9 @@ The flags each verb takes, owned by the binary as the verbs are:
58
58
  | `--with-gate` | `init`, `update` | register this gate too; repeats |
59
59
  | `--without-gate` | `init`, `update` | drop this gate from the registry; repeats |
60
60
  | `--no-selection` | `init`, `update` | clear the recorded kit and gate selection |
61
+ | `--user` | `init`, `update`, `uninstall` | manage one session-hook arm installed for you, not for a repository |
62
+
63
+ `init --user <arm>` installs one session-hook arm with no repository at all: the gate binary and the arm's knob file go in your per-user data dir (`~/.local/share/checkwright`, or `%LOCALAPPDATA%\checkwright`), the arm's scratch and log in your per-user state dir, and the harness settings entry for the arm is printed for you to merge, never written. `update --user` re-places every arm it recorded, and `uninstall --user` removes them, keeping the state dir and any knob file you edited ([`installer/SPEC.md` §The user install](SPEC.md#the-user-install)).
61
64
 
62
65
  ## Choosing a profile
63
66
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "checkwright-pwsh": "bin/checkwright.ps1"
5
5
  },
6
6
  "checkwright": {
7
- "commit": "fee297c7f1bb0d842ddf25a805e6076c9fed056b",
7
+ "commit": "9f3480b6d0c86836064e6230d101b5bc6528dabc",
8
8
  "spec_base_url": "https://checkwright.dev"
9
9
  },
10
10
  "description": "Reproducible checks that catch unsupported claims in coding-agent delivery before merge: a task marked done with no recorded test run, a skipped lifecycle stage, a spec naming a file the tree lacks. They prove the evidence a claim rests on exists, not that the code is correct.",
@@ -30,5 +30,5 @@
30
30
  "type": "git",
31
31
  "url": "git+https://github.com/checkwright/checkwright.git"
32
32
  },
33
- "version": "0.35.0"
33
+ "version": "0.36.0"
34
34
  }
@@ -1 +1 @@
1
- 16c839da40775f5278a5e78679eda5b578009527ee31c26054049e9ed0d1737c checkwright-gates
1
+ 2fb7ef0dd6b19fb3fedc95530d161084b29abbc596da7f1b0fb50a18870de0bc checkwright-gates
@@ -1 +1 @@
1
- ca651cc4e7b8d1cf113b8543c46ebeb335a789f82cf50a5df9567360c8a78506 *checkwright-gates.exe
1
+ 32f709e0435628ef3f10176fb00973dfd8bb8988014f5d1949e98898be6a92a8 *checkwright-gates.exe
@@ -1 +1 @@
1
- 111a9f9ff77dc6b744d0befb4fec9c2c1e4234e13582554339f130a1faa89b4d checkwright-gates
1
+ 587bb0c812adc769e5fc43bf9c3d890737020be232ceebebd1032bdab3077a81 checkwright-gates
@@ -1 +1 @@
1
- b2382b209c73664e47c8bc095aa30895a4c80e65c28ff8e6f57f4920b9d2b817 checkwright-gates
1
+ d6bca511369d7d7838dfe1dad0801e034cfe4476f45ce76fefd3c80c6ffb38ad checkwright-gates
@@ -1 +1 @@
1
- f651ef866003c62fc600b3c94d2cf450d67e6ce2a47ae05508a4b89c64e03832 checkwright-gates
1
+ 1abb74faaacf5872c91c343ac8f84694e527cbfaa02741e86abb88aef182cf72 checkwright-gates
@@ -1 +1 @@
1
- dc73a1009cbf6f34c287c51353d5c8baaeeb94064c66bba0370cf5a365d0af14 *checkwright-gates.exe
1
+ ff5174fbc2df3fdeeb8a5ecd3ebafa34598e0b9a92ccc79068090861a3777d46 *checkwright-gates.exe
@@ -1 +1 @@
1
- 0646cadcd8e79d1a08c3035284619afcac64143d41dd00554473262f615bd14c checkwright-gates
1
+ 16b01e72fe59d4cb0532246427040279a022fac05e55e3abe7ccc0563a4d49e2 checkwright-gates
@@ -1 +1 @@
1
- 81ed97656247fdf2093a26eb7191d1d7acf363038cfe2c24bc58efa480c4f432 checkwright-gates
1
+ 64f01bdf2de280b8cdaaeb5fabf503465c4b5684ea05ee5ae91be94d3c16b355 checkwright-gates
@@ -5,4 +5,9 @@ hooks.PreToolUse[0].hooks[1]: bash tools/removed-hook.sh — no such file: tools
5
5
  hooks.PreToolUse[0].hooks[2]: bash tools/run-gates.sh --hook no-such-guard — no such hook member: no-such-guard
6
6
  hooks.PreToolUse[0].hooks[3]: ${CLAUDE_PROJECT_DIR}/@GATE_SDK_NATIVE_BIN@ --hook shell-guard — unresolved placeholder: @GATE_SDK_NATIVE_BIN@
7
7
  hooks.PreToolUse[0].hooks[4]: ${CLAUDE_PROJECT_DIR}/tools/checkwright-gates --hook no-such-exec-guard — no such hook member: no-such-exec-guard
8
+ hooks.PreToolUse[0].hooks[5]: ${CLAUDE_PROJECT_DIR}/tools/checkwright-gates --hook shell-guard --obsrve — hook registration outside the --hook grammar: --obsrve
9
+ hooks.PreToolUse[0].hooks[6]: ${CLAUDE_PROJECT_DIR}/tools/checkwright-gates --hook shell-guard --knobs /opt/checkwright/knobs/shell-guard.knobs — hook registration outside the --hook grammar: --knobs
10
+ hooks.SubagentStop[0].hooks[0]: ${CLAUDE_PROJECT_DIR}/tools/checkwright-gates --hook subagent-stop-liveness --knobs knobs/subagent-stop-liveness.knobs — --knobs names a relative path: knobs/subagent-stop-liveness.knobs
11
+ help: the grammar: --hook <member> [--observe] [--binding <name>] [--knobs <absolute file>]
12
+ help: write --knobs <absolute file>; the arm reads no repository to resolve a relative one against
8
13
  help: a hook merged from a kit template skipped its placeholder step — replace @GATE_SDK_NATIVE_BIN@
@@ -41,6 +41,41 @@
41
41
  "--hook",
42
42
  "no-such-exec-guard"
43
43
  ]
44
+ },
45
+ {
46
+ "type": "command",
47
+ "command": "${CLAUDE_PROJECT_DIR}/tools/checkwright-gates",
48
+ "args": [
49
+ "--hook",
50
+ "shell-guard",
51
+ "--obsrve"
52
+ ]
53
+ },
54
+ {
55
+ "type": "command",
56
+ "command": "${CLAUDE_PROJECT_DIR}/tools/checkwright-gates",
57
+ "args": [
58
+ "--hook",
59
+ "shell-guard",
60
+ "--knobs",
61
+ "/opt/checkwright/knobs/shell-guard.knobs"
62
+ ]
63
+ }
64
+ ]
65
+ }
66
+ ],
67
+ "SubagentStop": [
68
+ {
69
+ "hooks": [
70
+ {
71
+ "type": "command",
72
+ "command": "${CLAUDE_PROJECT_DIR}/tools/checkwright-gates",
73
+ "args": [
74
+ "--hook",
75
+ "subagent-stop-liveness",
76
+ "--knobs",
77
+ "knobs/subagent-stop-liveness.knobs"
78
+ ]
44
79
  }
45
80
  ]
46
81
  }
@@ -1,2 +1,2 @@
1
- SETTINGS-PATHS: clean (4 literal .sh grant(s) and 6 hook path(s)
2
- 2 hook(s) skipped for a `$` root or an absolute path
1
+ SETTINGS-PATHS: clean (4 literal .sh grant(s) and 7 hook path(s)
2
+ 3 hook(s) skipped for a `$` root or an absolute path
@@ -57,6 +57,32 @@
57
57
  "--hook",
58
58
  "wakeup-guard"
59
59
  ]
60
+ },
61
+ {
62
+ "type": "command",
63
+ "command": "${CLAUDE_PROJECT_DIR}/tools/checkwright-gates",
64
+ "args": [
65
+ "--hook",
66
+ "shell-guard",
67
+ "--observe"
68
+ ]
69
+ }
70
+ ]
71
+ }
72
+ ],
73
+ "SubagentStop": [
74
+ {
75
+ "hooks": [
76
+ {
77
+ "type": "command",
78
+ "command": "/opt/checkwright/bin/checkwright-gates",
79
+ "args": [
80
+ "--hook",
81
+ "subagent-stop-liveness",
82
+ "--observe",
83
+ "--knobs",
84
+ "/opt/checkwright/knobs/subagent-stop-liveness.knobs"
85
+ ]
60
86
  }
61
87
  ]
62
88
  }
@@ -32,7 +32,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
32
32
 
33
33
  5. Optional — bind your tiers: set one `DELEGATION_KIT_TIER_MODEL[] = <class>=<model>[,<effort>]` element per class in your delegation config, an alias to follow the newest model or an exact model id to pin one, the classes being `judgment`, `routing` and `mechanical` unless `DELEGATION_KIT_TIER_CLASSES` names your own; declare each agent definition's `tier:` in its frontmatter, then run the gate binary `GATE_SDK_NATIVE_BIN` names with `--emit agent-tiers --write` to generate its `model:`, and its `effort:` where the class binds one ([SPEC.md §The tier binding](https://checkwright.dev/delegation-kit/SPEC#the-tier-binding)).
34
34
 
35
- 6. Optional — wire the turn-end liveness hook: register the same binary as a hook's `command` under `SubagentStop` in your harness settings file (that event takes no matcher), with `--hook subagent-stop-liveness` as its `args`. It logs one line per subagent turn end saying whether any launch record named a live producer, and **refuses the turn end** — exit 2, its stderr the blocking reason — when that reading is a refusal verdict, or while the payload's live tasks show a running `shell` task of its own; it emits no hook JSON on either path, except an operator-notice warning when a knob it reads cannot resolve and the turn end went unguarded ([SPEC.md §The turn-end liveness hook](https://checkwright.dev/delegation-kit/SPEC#the-turn-end-liveness-hook); the roles are [gate-sdk/SPEC.md §The hook contract](https://checkwright.dev/gate-sdk/SPEC#the-hook-contract)'s). There is no knob: unwiring is the valve. Unwired, it is inert; wiring it is a permission-surface change, so it is yours to make. <!-- harness-binding: a wiring instruction an adopter pastes -->
35
+ 6. Optional — wire the turn-end liveness hook: register the same binary as a hook's `command` under `SubagentStop` in your harness settings file (that event takes no matcher), with `--hook subagent-stop-liveness` as its `args`. It logs one line per subagent turn end saying whether any launch record named a live producer, and **refuses the turn end** — exit 2, its stderr the blocking reason — when that reading is a refusal verdict, or while the payload's live tasks show a running `shell` task of its own; it emits no hook JSON on either path, except an operator-notice warning when a knob it reads cannot resolve and the turn end went unguarded ([SPEC.md §The turn-end liveness hook](https://checkwright.dev/delegation-kit/SPEC#the-turn-end-liveness-hook); the roles are [gate-sdk/SPEC.md §The hook contract](https://checkwright.dev/gate-sdk/SPEC#the-hook-contract)'s). No knob turns the refusal off and none overrides it per dispatch: `DELEGATION_KIT_STOP_WAIT` picks the waiting policy, one member of which suits a harness that resumes a session when its own background task completes ([SPEC.md §Layout and configuration](https://checkwright.dev/delegation-kit/SPEC#layout-and-configuration) owns the set). To trial it first, add `--observe` after the member in `args`: it then logs each refusal it would have issued to `GATE_SDK_HOOK_OBSERVE_LOG` and allows every turn end, until you remove the flag. Unwiring is the valve. Where your sessions run outside any repository, set `GATE_SDK_TMP_DIR` and `DELEGATION_KIT_STOP_LOG` to absolute paths, or it declines with that notice. Unwired, it is inert; wiring it is a permission-surface change, so it is yours to make. <!-- harness-binding: a wiring instruction an adopter pastes -->
36
36
 
37
37
  7. Optional — retune: copy `templates/delegation-config.knobs` into your gates dir and override the budget thresholds, the gate-file globs, or the meta-layer prefixes. Defaults are this repo's single-operator layout.
38
38
 
@@ -2,6 +2,8 @@
2
2
  # verdict exit pct age_off reset_off cred_age pct_7d reset7d_off account live append axis desc
3
3
  # Offsets are seconds from *now* (static fixtures would age into permanent STALE).
4
4
  # pct_7d '-' omits the seven_day keys (a three-line snapshot — today's behavior).
5
+ # pct 'empty' writes the five_hour pair present and empty (a source with no five-hour window;
6
+ # reset_off is then unread) and 'absent' omits both five_hour keys.
5
7
  # account is the snapshot's account key and live the oauthAccount.accountUuid the case
6
8
  # writes into a fixture account config; '-' omits each.
7
9
  # append is the sample-line count the run must leave in the history log (0 or 1);
@@ -52,3 +54,14 @@ PAUSE 1 95 0 3600 60 - 0 acctA acctB 1 5h mismatched account at or over threshol
52
54
  OK 0 40 0 3600 300 - 0 acctA acctA 1 - matched account past the settle floor inside the old window -> OK: the settle floor replaces the blanket window
53
55
  STALE 2 40 0 3600 60 - 0 acctA acctA 1 - matched account within the settle floor -> STALE: the server-fed pct may still lag the login
54
56
  STALE 2 40 0 3600 300 - 0 - acctA 1 - snapshot without account keeps the blanket window -> STALE inside LOGIN_WINDOW
57
+
58
+ # No five-hour window — the five_hour pair written empty is judged on the weekly axis alone
59
+ OK 0 empty 0 0 - 56 500000 - - 1 - empty 5h pair, weekly under its threshold -> OK on the weekly axis alone
60
+ OK 0 empty 0 0 - 94.999 500000 - - 1 - empty 5h pair, weekly just under its threshold -> the at-or-over boundary's non-firing side
61
+ PAUSE 1 empty 0 0 - 95 500000 - - 1 7d empty 5h pair, weekly exactly at its threshold -> PAUSE names the 7-day axis
62
+ PAUSE 1 empty 0 0 - 99 500000 - - 1 7d empty 5h pair, weekly over its threshold -> PAUSE names the 7-day axis
63
+ RESET-OK 0 empty 0 0 - 99 -100 - - 1 - empty 5h pair, dead weekly window -> RESET-OK on the weekly clock
64
+ STALE 2 empty 1200 0 - 56 500000 - - 1 - empty 5h pair, reading older than STALE_AGE -> STALE, parsed so it still logs
65
+ STALE 2 empty 0 0 60 56 500000 - - 1 - empty 5h pair, weekly under with a fresh login -> the reroute still suppresses the OK
66
+ STALE 2 empty 0 0 - - 0 - - 0 - both axes empty -> STALE (no pause axis to judge) and appends nothing
67
+ STALE 2 absent 0 0 - 56 500000 - - 0 - five_hour keys absent -> STALE (missing keys, never read as no window) and appends nothing
@@ -80,6 +80,7 @@ check-gate-exemption-tasks
80
80
  check-graph
81
81
  check-reads-couples
82
82
  check-enforcement-fresh
83
+ check-hook-knobs-fresh
83
84
  check-kit-enum
84
85
  check-kit-registration
85
86
  check-readme-roster
@@ -0,0 +1,5 @@
1
+ # graph: couples=knob:GATE_SDK_HOOK_PAGES_DIR/*.md,native/src/hook/mod.rs,native/src/emit/hook_knobs.rs,native/src/knobs/*.rs dir=one valve=none tier=precommit
2
+ # projection: knob:GATE_SDK_HOOK_PAGES_DIR/*.md
3
+ # install: zero-config
4
+ # armed-by: GATE_SDK_HOOK_PAGES_DIR
5
+ # spec: gate-sdk/SPEC.md §check-hook-knobs-fresh — each hook page's hook-knobs block is the byte-fresh table of its member's knob slice, every page names a member, and every tree-free member has a page
@@ -16,6 +16,7 @@ Every governed surface in the repository this map is generated from is held by o
16
16
  - A **session warning** surfaces context when a session opens. Owner: `context-kit/SPEC.md` §The session-context hook.
17
17
  - A **validate suite** holds a test baseline that a per-run evidence manifest attests. Owner: `evidence-kit/SPEC.md` §Baseline manifest.
18
18
  - A **monitor** watches deployment truth rather than tree truth, so it reds a scheduled run, never a merge. Owner: `site-kit/SPEC.md` §The monitor boundary.
19
+ - An **observed hook** is a registered hook run under `--observe`, which logs the decision it would have made and refuses nothing. Owner: `gate-sdk/SPEC.md` §The harness-integration arm.
19
20
 
20
21
  The rows below derive from the class registries — the gate registry, the KPI registry, the harness settings hooks, the evidence-suite config, and the `# enforce:` markers a non-gate surface declares itself with — so this map cannot drift from what actually runs. A registry a consumer has not adopted leaves its section absent. A surface that lives under no kit directory, the repository's own rather than a kit's, is grouped as `(consumer)`.
21
22
 
@@ -0,0 +1,2 @@
1
+ # A stale default cell, a page naming no member, and a member page with no marker pair.
2
+ hooks
@@ -0,0 +1,5 @@
1
+ check-hook-knobs-fresh: hooks/not-a-hook.md names no hook member
2
+ check-hook-knobs-fresh: hooks/shell-guard.md: needs exactly one <!-- hook-knobs:begin --> … <!-- hook-knobs:end --> pair, in order (0 begin, 0 end)
3
+ check-hook-knobs-fresh: stale block — hooks/subagent-stop-liveness.md:3 differs from the table subagent-stop-liveness's knobs derive:
4
+ < | `DELEGATION_KIT_STOP_WAIT` | delegation-kit | scalar | `wait` |
5
+ > | `DELEGATION_KIT_STOP_WAIT` | delegation-kit | scalar | `refuse` |
@@ -0,0 +1,4 @@
1
+ # Not a hook
2
+
3
+ <!-- hook-knobs:begin -->
4
+ <!-- hook-knobs:end -->
@@ -0,0 +1,3 @@
1
+ # Shell guard
2
+
3
+ A page for a member, with no marker pair.
@@ -0,0 +1,12 @@
1
+ # Subagent stop liveness
2
+
3
+ <!-- hook-knobs:begin -->
4
+
5
+ | Knob | Kit | Shape | Default |
6
+ | --- | --- | --- | --- |
7
+ | `DELEGATION_KIT_STOP_LOG` | delegation-kit | scalar | `.workflow/subagent-stop-liveness.log` |
8
+ | `DELEGATION_KIT_STOP_WAIT` | delegation-kit | scalar | `wait` |
9
+ | `DELEGATION_KIT_LIVENESS_CMD` | delegation-kit | indexed | (empty) |
10
+ | `GATE_SDK_TMP_DIR` | gate-sdk | scalar | `.tmp` |
11
+
12
+ <!-- hook-knobs:end -->
@@ -0,0 +1,2 @@
1
+ # A fresh block on the one tree-free member; prose outside the markers is never read.
2
+ hooks
@@ -0,0 +1 @@
1
+ HOOK-KNOBS-FRESH: clean (1 page(s) under hooks carry the tables their members' knobs derive)
@@ -0,0 +1,16 @@
1
+ # Subagent stop liveness
2
+
3
+ Prose the gate never reads.
4
+
5
+ <!-- hook-knobs:begin -->
6
+
7
+ | Knob | Kit | Shape | Default |
8
+ | --- | --- | --- | --- |
9
+ | `DELEGATION_KIT_STOP_LOG` | delegation-kit | scalar | `.workflow/subagent-stop-liveness.log` |
10
+ | `DELEGATION_KIT_STOP_WAIT` | delegation-kit | scalar | `refuse` |
11
+ | `DELEGATION_KIT_LIVENESS_CMD` | delegation-kit | indexed | (empty) |
12
+ | `GATE_SDK_TMP_DIR` | gate-sdk | scalar | `.tmp` |
13
+
14
+ <!-- hook-knobs:end -->
15
+
16
+ Trailing prose.
@@ -103,6 +103,16 @@ if ! grep -qF "validate-batch" "$tmp/err" || ! grep -qF "$live" "$tmp/err"; then
103
103
  fails=$((fails + 1))
104
104
  fi
105
105
 
106
+ # --- a live record carrying the optional `handoff=` field is the same live producer: it parses
107
+ # through the one grammar, so the guard blocks on it rather than skipping it
108
+ rm -f "$tmp/scratch/validate-batch.run"
109
+ printf 'pid=%s run=handoff-batch handoff=%s/handoff\n' "$live" "$tmp" >"$tmp/scratch/handoff-batch.run"
110
+ want "handoff-record-commit" "git commit -m done" 2
111
+ checks=$((checks + 1))
112
+ grep -qF "handoff-batch" "$tmp/err" || { echo " FAIL [handoff-names-the-run]: $(cat "$tmp/err")"; fails=$((fails + 1)); }
113
+ rm -f "$tmp/scratch/handoff-batch.run"
114
+ printf 'pid=%s run=validate-batch\n' "$live" >"$tmp/scratch/validate-batch.run"
115
+
106
116
  # --- a PowerShell call meets the rule too: git's argv and the record are the same
107
117
  # under both tools, and its expansion decline is the PowerShell reader's any `$`
108
118
  want "powershell-commit" "git commit -m done" 2 "" PowerShell
@@ -188,5 +198,5 @@ if [[ "$fails" -gt 0 ]]; then
188
198
  echo "git-mutation-under-producer.test: $fails of $checks assertion(s) failed"
189
199
  exit 1
190
200
  fi
191
- echo "git-mutation-under-producer.test: ok ($checks assertions; the write set blocks under a live record on a Bash or a PowerShell call however git and its subcommand are spelled, read-only git and every conservative direction decline, rule \`bounded_write\` withholds a removal of a live record, and rule \`wait_no_producer\` blocks a backgrounded file-test wait, bare or behind a banner, until a record names a live pid)"
201
+ echo "git-mutation-under-producer.test: ok ($checks assertions; the write set blocks under a live record, a handoff-bearing one included, on a Bash or a PowerShell call however git and its subcommand are spelled, read-only git and every conservative direction decline, rule \`bounded_write\` withholds a removal of a live record, and rule \`wait_no_producer\` blocks a backgrounded file-test wait, bare or behind a banner, until a record names a live pid)"
192
202
  exit 0
@@ -12,6 +12,8 @@ Deployment-truth governance for a docs site served from the repo (GitHub Pages a
12
12
 
13
13
  `check-docs-highlight-coverage` holds a layout that restyles code highlighting to the theme it restyles: every token class a tracked snapshot says the theme colours must have an override rule, or it keeps the theme's colour — black on a dark code background, for one. It is disarmed until `SITE_KIT_HIGHLIGHT_TOKENS` names the snapshot.
14
14
 
15
+ `check-docs-since` holds the pages you declare to a `since:` front-matter key, `unreleased` or the first release that carries what the page says, so a reader can tell a page about master from one about a release. While a release note is untagged it reds every page still saying `unreleased`, and `--emit docs-since --write` writes the note's version in the note's commit. It is disarmed until `SITE_KIT_SINCE_PAGES` names pages, and its note rule is off until `SITE_KIT_RELEASE_NOTES_DIR` names your notes.
16
+
15
17
  The template — `templates/site-health.yml` — is a scheduled probe of the live site (apex/www/http HTTPS, redirects, certificate expiry, release-body note pointers, and theme highlight-class drift against that snapshot). It verifies a *deployment*, not a tree, so it ships as a workflow a consumer copies, never a gate: the line is where the asserted object lives, and none of what it asserts is in any checkout. See [SPEC.md](https://checkwright.dev/site-kit/SPEC#the-monitor-boundary) for why that boundary is load-bearing.
16
18
 
17
19
  This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://checkwright.dev/gate-sdk/SPEC#consumer-payload).
@@ -29,6 +31,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
29
31
  check-docs-render-fidelity
30
32
  check-docs-collapsible
31
33
  check-docs-liquid-parse
34
+ check-docs-since
32
35
  ```
33
36
  <!-- gate-roster:end -->
34
37
 
@@ -0,0 +1,4 @@
1
+ # graph: couples=knob:SITE_KIT_SINCE_PAGES,knob:SITE_KIT_RELEASE_NOTES_DIR/*.md dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # armed-by: SITE_KIT_SINCE_PAGES
4
+ # spec: site-kit/SPEC.md §check-docs-since — every page SITE_KIT_SINCE_PAGES declares carries a since: key, unreleased or vX.Y.Z, and none says unreleased while the release notes dir holds an untagged note
@@ -0,0 +1,5 @@
1
+ check-docs-since: site/open.md:3: says since: unreleased while the v99.1.0 note notes/2026-01-01-v99-1-0.md is untagged
2
+ check-docs-since: site/bare.md: no since: key in its front matter
3
+ check-docs-since: site/odd.md:3: since: '1.2' is neither unreleased nor vX.Y.Z
4
+ help: give the page since: unreleased, or since: vX.Y.Z naming the first release that carries what it says
5
+ help: rewrite in the note-authoring commit —
@@ -0,0 +1,7 @@
1
+ ---
2
+ release: v99.1.0
3
+ ---
4
+
5
+ # Fixture v99.1.0
6
+
7
+ A release note no tag names, so it is the one in flight.
@@ -0,0 +1,3 @@
1
+ # spec: site-kit/SPEC.md §check-docs-since — fixture consumer config: the pages under site/ are governed, and notes/ holds one untagged note
2
+ SITE_KIT_SINCE_PAGES[] = site/*.md
3
+ SITE_KIT_RELEASE_NOTES_DIR = notes
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: Bare
3
+ ---
4
+
5
+ # Bare
6
+
7
+ A governed page with no `since:` key.
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Odd
3
+ since: 1.2
4
+ ---
5
+
6
+ # Odd
7
+
8
+ A governed page whose `since:` value is neither form.
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Open
3
+ since: unreleased
4
+ ---
5
+
6
+ # Open
7
+
8
+ A page still saying unreleased while the release note is untagged.
@@ -0,0 +1 @@
1
+ DOCS-SINCE: clean (2 page(s) carry since:; no untagged release note under notes)
@@ -0,0 +1,3 @@
1
+ # Announcement
2
+
3
+ A post with no front matter, and so no `release:` key: not a release note.
@@ -0,0 +1,3 @@
1
+ # spec: site-kit/SPEC.md §check-docs-since — fixture consumer config: the pages under site/ are governed, and notes/ holds no untagged note
2
+ SITE_KIT_SINCE_PAGES[] = site/*.md
3
+ SITE_KIT_RELEASE_NOTES_DIR = notes
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Done
3
+ since: v0.1.0
4
+ ---
5
+
6
+ # Done
7
+
8
+ A page naming the first release that carries what it says.
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Open
3
+ since: unreleased
4
+ ---
5
+
6
+ # Open
7
+
8
+ A page describing behavior no release carries yet, beside no untagged note.