checkwright 0.34.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.
- package/README.md +4 -1
- package/package.json +2 -2
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/README.md +1 -1
- package/payload/canon-kit/checks/check-amendment-queue.gate +1 -1
- package/payload/canon-kit/checks/check-amendment-retired-spelling.gate +1 -1
- package/payload/canon-kit/checks/check-amendment-update-target.gate +1 -1
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
- package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +5 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +35 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -2
- package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +26 -0
- package/payload/delegation-kit/README.md +1 -1
- package/payload/delegation-kit/usage-tests/cases.tsv +13 -0
- package/payload/gate-sdk/README.md +1 -0
- package/payload/gate-sdk/checks/check-graph.gate +1 -1
- package/payload/gate-sdk/checks/check-hook-knobs-fresh.gate +5 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/enforcement.md +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/hooks/not-a-hook.md +4 -0
- package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/hooks/shell-guard.md +3 -0
- package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/hooks/subagent-stop-liveness.md +12 -0
- package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/good/hooks/subagent-stop-liveness.md +16 -0
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +11 -1
- package/payload/lifecycle-kit/templates/lead.md +2 -2
- package/payload/lifecycle-kit/templates/stages/align.md +2 -2
- package/payload/lifecycle-kit/templates/stages/build.md +1 -1
- package/payload/lifecycle-kit/templates/stages/close.md +1 -1
- package/payload/lifecycle-kit/templates/stages/scope.md +1 -1
- package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
- package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
- package/payload/site-kit/README.md +3 -0
- package/payload/site-kit/checks/check-docs-since.gate +4 -0
- package/payload/site-kit/gate-tests/check-docs-since/bad/expect.txt +5 -0
- package/payload/site-kit/gate-tests/check-docs-since/bad/notes/2026-01-01-v99-1-0.md +7 -0
- package/payload/site-kit/gate-tests/check-docs-since/bad/scripts/site-config.knobs +3 -0
- package/payload/site-kit/gate-tests/check-docs-since/bad/site/bare.md +7 -0
- package/payload/site-kit/gate-tests/check-docs-since/bad/site/odd.md +8 -0
- package/payload/site-kit/gate-tests/check-docs-since/bad/site/open.md +8 -0
- package/payload/site-kit/gate-tests/check-docs-since/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-since/good/notes/announce.md +3 -0
- package/payload/site-kit/gate-tests/check-docs-since/good/scripts/site-config.knobs +3 -0
- package/payload/site-kit/gate-tests/check-docs-since/good/site/done.md +8 -0
- package/payload/site-kit/gate-tests/check-docs-since/good/site/open.md +8 -0
- /package/payload/canon-kit/templates/{SPEC-amendment.md → amendment.md} +0 -0
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ From your repository's root, in a new project or an existing one with every chan
|
|
|
20
20
|
|
|
21
21
|
With Node already present the same install is one command, `npx checkwright init` — same payload, same `init`, same `checkwright.lock`; only the fetch differs, and on Windows the [`PATH` block](https://checkwright.dev/install.html#windows) runs first. `npx checkwright init --profile prose` picks a profile ([Choosing a profile](#choosing-a-profile) below), and `npx checkwright demo` shows the adoption arc in a scratch repository first, without touching yours ([what it runs](https://checkwright.dev/install.html#install)).
|
|
22
22
|
|
|
23
|
-
`init` vendors the selected profile's kit directories, writes a `gates.list` seeded with each kit's starting gates alongside the config seam those kits need and a CI workflow, and makes **one commit** naming the install and the version. It ends by printing the commands that finish the setup, each with its reason — deliberately not copied here, because what `init` prints is `init`'s to say ([`installer/SPEC.md` §init](SPEC.md#init)).
|
|
23
|
+
`init` vendors the selected profile's kit directories, writes a `gates.list` seeded with each kit's starting gates alongside the config seam those kits need and a CI workflow, and makes **one commit** naming the install and the version. That commit runs the clone's own hooks, and if one refuses it the files stay staged and the setup commands still print. It ends by printing the commands that finish the setup, each with its reason — deliberately not copied here, because what `init` prints is `init`'s to say ([`installer/SPEC.md` §init](SPEC.md#init)).
|
|
24
24
|
|
|
25
25
|
Re-running is idempotent and non-destructive. `init` reads the per-file hash `checkwright.lock` recorded: a file still at its recorded hash is rewritten, and one you have changed since is **reported rather than overwritten** unless you pass `--force`. `--dry-run` prints the file plan and the manifest and writes nothing.
|
|
26
26
|
|
|
@@ -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": "
|
|
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.
|
|
33
|
+
"version": "0.36.0"
|
|
34
34
|
}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2fb7ef0dd6b19fb3fedc95530d161084b29abbc596da7f1b0fb50a18870de0bc checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
32f709e0435628ef3f10176fb00973dfd8bb8988014f5d1949e98898be6a92a8 *checkwright-gates.exe
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
587bb0c812adc769e5fc43bf9c3d890737020be232ceebebd1032bdab3077a81 checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d6bca511369d7d7838dfe1dad0801e034cfe4476f45ce76fefd3c80c6ffb38ad checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1abb74faaacf5872c91c343ac8f84694e527cbfaa02741e86abb88aef182cf72 checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ff5174fbc2df3fdeeb8a5ecd3ebafa34598e0b9a92ccc79068090861a3777d46 *checkwright-gates.exe
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
16b01e72fe59d4cb0532246427040279a022fac05e55e3abe7ccc0563a4d49e2 checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
64f01bdf2de280b8cdaaeb5fabf503465c4b5684ea05ee5ae91be94d3c16b355 checkwright-gates
|
|
@@ -58,7 +58,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required); the queue-facing gate
|
|
|
58
58
|
|
|
59
59
|
They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and the pre-commit hook runs the precommit-tier ones their `# graph:` manifests trigger, read at commit. `--install-hooks` on the gate binary `GATE_SDK_NATIVE_BIN` names places both hooks in a clone once, and a gate registered later is reached with no re-install.
|
|
60
60
|
|
|
61
|
-
2. Adopt the amendment lifecycle — copy `templates/
|
|
61
|
+
2. Adopt the amendment lifecycle — copy `templates/amendment.md` when a designed-but-unimplemented change needs a home. Name it after the feature (`SPEC-<feature>.md`), place it in the owning component's directory (a governance ruling with no component lives at the repo root), and pair it with a queue entry tagged `[spec: SPEC-<feature>.md]`. Merge it into the canonical spec and delete it when the work completes.
|
|
62
62
|
|
|
63
63
|
3. Optional — reshape the config: copy `templates/canon-config.knobs` into your gates dir and override the manifest set, the spec/amendment names, section set, the Definition-of-Done mode (`exactly-one` / `at-most-one`), the banned-heading set and density budget, the embedded-source language map, or the glossary surface list. Defaults are this repo's layout.
|
|
64
64
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# graph: couples=knob:CANON_KIT_QUEUE_FILE,knob:CANON_KIT_AMENDMENT_GLOB,*/SPEC-*.md,kit:templates/
|
|
1
|
+
# graph: couples=knob:CANON_KIT_QUEUE_FILE,knob:CANON_KIT_AMENDMENT_GLOB,*/SPEC-*.md,kit:templates/amendment.md dir=bi valve=none tier=precommit
|
|
2
2
|
# install: on-surface
|
|
3
3
|
# spec: canon-kit/SPEC.md §check-amendment-queue — the Task↔amendment bidirectional rule, spec-readiness, and the amendment-citation arm
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# graph: couples=knob:CANON_KIT_AMENDMENT_GLOB,*/SPEC-*.md,kit:templates/
|
|
1
|
+
# graph: couples=knob:CANON_KIT_AMENDMENT_GLOB,*/SPEC-*.md,kit:templates/amendment.md dir=one valve=none tier=precommit trigger=*
|
|
2
2
|
# install: zero-config
|
|
3
3
|
# spec: canon-kit/SPEC.md §check-amendment-retired-spelling — every amendment carries a mandatory `## Retired spellings` block, and each spelling it declares survives only at a path its `## Existing sections updated` roster names, so a roster short by a surface reds at the gate rather than being found by a grep nobody is obliged to run
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# graph: couples=knob:CANON_KIT_AMENDMENT_GLOB,*/SPEC-*.md,kit:templates/
|
|
1
|
+
# graph: couples=knob:CANON_KIT_AMENDMENT_GLOB,*/SPEC-*.md,kit:templates/amendment.md dir=one valve=none tier=precommit
|
|
2
2
|
# install: zero-config
|
|
3
3
|
# spec: canon-kit/SPEC.md §check-amendment-update-target — every entry under an amendment's `## Existing sections updated` cites at least one delta and every cited delta is defined under `## What changes` in the same amendment, so an update target no delta claims stops at the gate rather than reaching build as an orphan a batch adopts on its own authority
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# graph: couples=*SPEC*.md,kit:SPEC.md,kit:SPEC-*.md,kit:templates/
|
|
1
|
+
# graph: couples=*SPEC*.md,kit:SPEC.md,kit:SPEC-*.md,kit:templates/amendment.md,knob:CANON_KIT_SPEC_NAME,knob:CANON_KIT_AMENDMENT_GLOB,knob:CANON_KIT_EMBED_LANGS.file-globs dir=one valve=none tier=precommit
|
|
2
2
|
# install: on-surface
|
|
3
3
|
# spec: canon-kit/SPEC.md §check-spec-embedded-source — a canonical spec's fenced block must not verbatim-copy a tracked source file
|
|
@@ -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
|
|
2
|
-
|
|
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).
|
|
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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# graph: couples=knob:GATE_SDK_GATES_DIR/gates.list,knob:GATE_SDK_GATES_DIR/*.sh,kit:*.sh,knob:GATE_SDK_GRAPH_ARTIFACT,knob:GATE_SDK_GRAPH_THEME_DIR/*,knob:GATE_SDK_GATES_DIR/*-config.knobs,*SPEC-*.md,kit:templates/
|
|
1
|
+
# graph: couples=knob:GATE_SDK_GATES_DIR/gates.list,knob:GATE_SDK_GATES_DIR/*.sh,kit:*.sh,knob:GATE_SDK_GRAPH_ARTIFACT,knob:GATE_SDK_GRAPH_THEME_DIR/*,knob:GATE_SDK_GATES_DIR/*-config.knobs,*SPEC-*.md,kit:templates/amendment.md,knob:GATE_SDK_GRAPH_VOCAB dir=one valve=none tier=precommit
|
|
2
2
|
# projection: knob:GATE_SDK_GRAPH_ARTIFACT
|
|
3
3
|
# install: zero-config
|
|
4
4
|
# spec: gate-sdk/SPEC.md §check-graph — manifest well-formedness, trigger parity, cycle valves, artifact drift, and amendment-body manifest validation (assertion G); the emitter is native/src/emit/graph.rs, reached in process rather than spawned
|
|
@@ -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,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` |
|
package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/hooks/subagent-stop-liveness.md
ADDED
|
@@ -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 @@
|
|
|
1
|
+
HOOK-KNOBS-FRESH: clean (1 page(s) under hooks carry the tables their members' knobs derive)
|
package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/good/hooks/subagent-stop-liveness.md
ADDED
|
@@ -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
|
|
@@ -21,7 +21,7 @@ Dispatch mechanics are delegation-kit's, unchanged: dispatch in the background w
|
|
|
21
21
|
|
|
22
22
|
**When the dispatched stage is the evidence-producing stage, the lead's verify is a read of the committed evidence — never a re-run of the producer.** This is the lifecycle instance of delegation-kit's no-producer-re-run rule (delegation-kit/SPEC.md §Verify after every agent commit, which owns the generic rule and the harm each misroute does). Read the manifest the stage committed and judge it.
|
|
23
23
|
|
|
24
|
-
**Stage N+1 is dispatched on stage N's agent completion notification — never on its hand-back report, commit, stamp, a clean tree, a green battery, or a cleared `--simulate`.** Completion is a fact about a *session*, and none of those others distinguishes "finished" from "still writing". **Make one tool call before any turn you end to await that notification**, a read-only one serving
|
|
24
|
+
**Stage N+1 is dispatched on stage N's agent completion notification — never on its hand-back report, commit, stamp, a clean tree, a green battery, or a cleared `--simulate`.** Completion is a fact about a *session*, and none of those others distinguishes "finished" from "still writing". **Make one tool call before any turn you end to await that notification**, a read-only one serving: a belt, its ground the delivery limit under lifecycle-kit/SPEC.md §The stamp protocol.
|
|
25
25
|
|
|
26
26
|
**When the notification does not arrive, no single read distinguishes a finished-but-unreported session from a live one.** Delivery can fail, and the rule above has no fallback, while the artifact reads a lead reaches for next are the same ones it just refused. What recovers it is two signals and a question: the session's absence from the harness's running-agent roster, a `DONE` marker in its journal, and — decisive whenever either is ambiguous — asking the session itself, which §A running session is asked, never instructed already sanctions as a question rather than a command. The `DONE` check is valid only as the journal's **last line**, which a resumed session's turn writes again (each stage template's last step), so it answers for the newest turn, the intent oracle's included. An out-of-order append silently invalidates it and leaves the marker visible.
|
|
27
27
|
|
|
@@ -85,7 +85,7 @@ When the iteration's final stage completes, the lead **stops and reports what it
|
|
|
85
85
|
|
|
86
86
|
Reporting is the lead's whole remaining act there — the state of the queue as the closing stage left it, whatever was filed for the next intake, and what the lead would recommend doing about it, offered as information for a decision and never as a decision taken.
|
|
87
87
|
|
|
88
|
-
**Dispose of your journal before you report.** Every finding in it that must outlive the iteration goes to the committed channel that owns it — a gap bullet, a survey block — and a ruling goes to its governed surface; then append `DISPOSED` as the file's last line
|
|
88
|
+
**Dispose of your journal before you report.** Every finding in it that must outlive the iteration goes to the committed channel that owns it — a gap bullet, a survey block — and a ruling goes to its governed surface; then append `DISPOSED` as the file's last line with `--emit journal --lead DISPOSED`. **The knowledge-friction log is not on that list, and the omission is the instruction.** A fact you re-derived is stamped when you re-derive it; a line written here instead is the deferred capture that channel counts as none (drift-kit/SPEC.md §The knowledge-friction loop). The journal survives the boundary reset (§Economics), so this is what separates *preserved* from *drained*: an unread journal loses a finding exactly as a deleted one does, and the boundary entry announces an undisposed journal to the entering session rather than refusing it (lifecycle-kit/SPEC.md §bin/enter-stage.sh) — which is a prompt, not a substitute for doing this.
|
|
89
89
|
|
|
90
90
|
## The escalation protocol
|
|
91
91
|
|
|
@@ -16,7 +16,7 @@ Trigger 3 is mechanized at build entry: `check-stage-entry` assertion C blocks t
|
|
|
16
16
|
|
|
17
17
|
**Where your dispatch names a foreign adapter**, this stage's reading runs there and every write stays yours: follow lifecycle-kit/templates/host-protocol.md (lifecycle-kit/SPEC.md §The host protocol).
|
|
18
18
|
|
|
19
|
-
**Audit the amendment against itself before auditing it against the tree.** Two defects are visible on the amendment alone and both survive a green battery. An author-stated count ("three things and no fourth") is an assertion about the deliverable, so check it against what the deltas actually mandate rather than against the sentence it heads. And every `## Existing sections updated` entry must name the delta that owns it (canon-kit/templates/
|
|
19
|
+
**Audit the amendment against itself before auditing it against the tree.** Two defects are visible on the amendment alone and both survive a green battery. An author-stated count ("three things and no fourth") is an assertion about the deliverable, so check it against what the deltas actually mandate rather than against the sentence it heads. And every `## Existing sections updated` entry must name the delta that owns it (canon-kit/templates/amendment.md).
|
|
20
20
|
|
|
21
21
|
**Read every delta for what a user meets.** A delta changing it carries the authoring stage's `{user-facing: …}` mark naming the direction that settles it (lifecycle-kit/templates/stages/spec.md). An unmarked one, or one whose direction does not settle the choice it makes, is an envelope question for the lead or the operator, never one to reword away.
|
|
22
22
|
|
|
@@ -28,4 +28,4 @@ Trigger 3 is mechanized at build entry: `check-stage-entry` assertion C blocks t
|
|
|
28
28
|
|
|
29
29
|
**Then read your successor's entry.** After your last commit, run `--enter-stage --simulate <stage>` for the build stage. It writes nothing (lifecycle-kit/SPEC.md §bin/enter-stage.sh). An exit of 1 relays a refusal: fix one your own work caused and run the read again, and carry any other into your report verbatim.
|
|
30
30
|
|
|
31
|
-
**Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line before you report, and again before the report of any later turn that appends to the file, as a resumed session answering a routed question does.
|
|
31
|
+
**Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line with `--emit journal DONE` before you report, and again before the report of any later turn that appends to the file, as a resumed session answering a routed question does.
|
|
@@ -32,4 +32,4 @@ Build-time question triage — who rules, and where the ruling lives: a question
|
|
|
32
32
|
|
|
33
33
|
**Then read your successor's entry.** After your last commit, run `--enter-stage --simulate <stage>` for the drain stage, when your batch's Done moves emptied the active sections — a batch that leaves work active skips the read, since that entry refuses on active work by design and the next batch re-enters this stage. It writes nothing (lifecycle-kit/SPEC.md §bin/enter-stage.sh). An exit of 1 relays a refusal: fix one your own work caused and run the read again, and carry any other into your report verbatim.
|
|
34
34
|
|
|
35
|
-
**Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line before you report, and again before the report of any later turn that appends to the file, as a resumed session answering a routed question does.
|
|
35
|
+
**Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line with `--emit journal DONE` before you report, and again before the report of any later turn that appends to the file, as a resumed session answering a routed question does.
|
|
@@ -26,4 +26,4 @@ The `close` stage of an iteration. Harvest lessons, housekeep, optionally merge.
|
|
|
26
26
|
|
|
27
27
|
**Then read your successor's entry.** After your last commit, run `--enter-stage --simulate <stage>` for the roster's first stage, whose iteration-boundary checks read what this close leaves. It writes nothing (lifecycle-kit/SPEC.md §bin/enter-stage.sh). An exit of 1 relays a refusal: fix one your own work caused and run the read again, and carry any other into your report verbatim.
|
|
28
28
|
|
|
29
|
-
**Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line before you report, and again before the report of any later turn that appends to the file, as a resumed session answering a routed question does.
|
|
29
|
+
**Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line with `--emit journal DONE` before you report, and again before the report of any later turn that appends to the file, as a resumed session answering a routed question does.
|
|
@@ -46,4 +46,4 @@ With this stage's promotion commit landed (debt, plus the features only where sc
|
|
|
46
46
|
|
|
47
47
|
**Then read your successor's entry.** After your last commit, run `--enter-stage --simulate <stage>` for the stage you recommended. It writes nothing (lifecycle-kit/SPEC.md §bin/enter-stage.sh). An exit of 1 relays a refusal: fix one your own work caused and run the read again, and carry any other into your report verbatim.
|
|
48
48
|
|
|
49
|
-
**Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line before you report, and again before the report of any later turn that appends to the file, as a resumed session answering a routed question does.
|
|
49
|
+
**Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line with `--emit journal DONE` before you report, and again before the report of any later turn that appends to the file, as a resumed session answering a routed question does.
|
|
@@ -38,4 +38,4 @@ Close by **recommending the next stage**: the trigger-gated audit stage when one
|
|
|
38
38
|
|
|
39
39
|
**Then read your successor's entry.** After your last commit, run `--enter-stage --simulate <stage>` for the stage you recommended. It writes nothing (lifecycle-kit/SPEC.md §bin/enter-stage.sh). An exit of 1 relays a refusal: fix one your own work caused and run the read again, and carry any other into your report verbatim.
|
|
40
40
|
|
|
41
|
-
**Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line before you report, and again before the report of any later turn that appends to the file, as a resumed session answering a routed question does.
|
|
41
|
+
**Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line with `--emit journal DONE` before you report, and again before the report of any later turn that appends to the file, as a resumed session answering a routed question does.
|
|
@@ -24,4 +24,4 @@ Do not declare validate complete until the baseline diff is clean: no item that
|
|
|
24
24
|
|
|
25
25
|
**Then read your successor's entry.** After your last commit, run `--enter-stage --simulate <stage>` for the close stage. It writes nothing (lifecycle-kit/SPEC.md §bin/enter-stage.sh). An exit of 1 relays a refusal: fix one your own work caused and run the read again, and carry any other into your report verbatim.
|
|
26
26
|
|
|
27
|
-
**Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line before you report, and again before the report of any later turn that appends to the file, as a resumed session answering a routed question does.
|
|
27
|
+
**Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line with `--emit journal DONE` before you report, and again before the report of any later turn that appends to the file, as a resumed session answering a routed question does.
|
|
@@ -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 @@
|
|
|
1
|
+
DOCS-SINCE: clean (2 page(s) carry since:; no untagged release note under notes)
|
|
File without changes
|