checkwright 0.33.0 → 0.35.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 +1 -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/gate-sdk/checks/check-graph.gate +1 -1
- package/payload/gate-sdk/gate-tests/native-git-hooks.test.sh +37 -4
- package/payload/lifecycle-kit/templates/lead.md +3 -3
- 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/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
|
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"checkwright-pwsh": "bin/checkwright.ps1"
|
|
5
5
|
},
|
|
6
6
|
"checkwright": {
|
|
7
|
-
"commit": "
|
|
7
|
+
"commit": "fee297c7f1bb0d842ddf25a805e6076c9fed056b",
|
|
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.35.0"
|
|
34
34
|
}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
16c839da40775f5278a5e78679eda5b578009527ee31c26054049e9ed0d1737c checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ca651cc4e7b8d1cf113b8543c46ebeb335a789f82cf50a5df9567360c8a78506 *checkwright-gates.exe
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
111a9f9ff77dc6b744d0befb4fec9c2c1e4234e13582554339f130a1faa89b4d checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b2382b209c73664e47c8bc095aa30895a4c80e65c28ff8e6f57f4920b9d2b817 checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f651ef866003c62fc600b3c94d2cf450d67e6ce2a47ae05508a4b89c64e03832 checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
dc73a1009cbf6f34c287c51353d5c8baaeeb94064c66bba0370cf5a365d0af14 *checkwright-gates.exe
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
0646cadcd8e79d1a08c3035284619afcac64143d41dd00554473262f615bd14c checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
81ed97656247fdf2093a26eb7191d1d7acf363038cfe2c24bc58efa480c4f432 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
|
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# spec: gate-sdk/SPEC.md §git-hook — the binary under a served hook's name is that hook's launcher: git starts it with no interpreter, a clean commit lands on the summary line, a red member refuses the commit by gate name, a registry with no commit-msg member leaves that hook silent, a binary that cannot be started refuses naming the path and both remedies, a knob naming a hook's own name is refused at 2, a knob-file line naming any other knob is skipped unread while one setting the launcher's own knob as no scalar is refused at 2,
|
|
3
|
-
# spec: gate-sdk/SPEC.md §install-hooks — the arm places both hooks untracked in gate-hooks under the common git directory with an absolute core.hooksPath, so a linked worktree runs them; a re-run replaces both; an absent binary refuses at 2 and places nothing; a failed core.hooksPath write refuses at 2 ahead of the receipt; a failed blame.ignoreRevsFile write is reported with the status unmoved; a hook left behind by a replaced binary starts the binary now installed; --refresh re-places both hooks of an opted-in clone from a replaced binary with no config write, and places nothing off the work-tree top or in a clone not opted in
|
|
2
|
+
# spec: gate-sdk/SPEC.md §git-hook — the binary under a served hook's name is that hook's launcher: git starts it with no interpreter, a clean commit lands on the summary line, a red member refuses the commit by gate name, a registry with no commit-msg member leaves that hook silent, a binary that cannot be started refuses naming the path and both remedies, a knob naming a hook's own name is refused at 2, a knob-file line naming any other knob is skipped unread while one setting the launcher's own knob as no scalar is refused at 2, a registered member whose declaration resolves and cannot be read refuses either hook at 2, and beside the chain record a placed hook runs the prior hook of its name first, a failing one ending the hook with the gates unrun, while a forwarding hook runs the prior hook of its own name
|
|
3
|
+
# spec: gate-sdk/SPEC.md §install-hooks — the arm places both hooks untracked in gate-hooks under the common git directory with an absolute core.hooksPath, so a linked worktree runs them; a re-run replaces both; an absent binary refuses at 2 and places nothing; a failed core.hooksPath write refuses at 2 ahead of the receipt; a failed blame.ignoreRevsFile write is reported with the status unmoved; a hook left behind by a replaced binary starts the binary now installed; --refresh re-places both hooks of an opted-in clone from a replaced binary with no config write, and places nothing off the work-tree top or in a clone not opted in; a clone already running hooks is chained, its live prior hooks named on stdout
|
|
4
4
|
set -uo pipefail
|
|
5
5
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
6
6
|
|
|
@@ -152,7 +152,7 @@ out="$( cd "$repo" && "./$bin_rel" --install-hooks 2>&1 )"; rc=$?
|
|
|
152
152
|
for h in pre-commit commit-msg; do
|
|
153
153
|
cmp -s "$hooks/$h$sfx" "$repo/$bin_rel" || note "rerun-$h" "a re-run did not replace $h$sfx with the binary"
|
|
154
154
|
done
|
|
155
|
-
[[ "$(find "$hooks" -type f | wc -l | tr -d ' ')" -eq 2 ]] || note rerun-count "a re-run left other than the two hooks: $(ls "$hooks")"
|
|
155
|
+
[[ "$(find "$hooks" -type f ! -name chain | wc -l | tr -d ' ')" -eq 2 ]] || note rerun-count "a re-run left other than the two hooks beside the chain record: $(ls "$hooks")"
|
|
156
156
|
|
|
157
157
|
# 11. a failed core.hooksPath write refuses the opt-in at 2, ahead of the receipt
|
|
158
158
|
: >"$repo/.git/config.lock"
|
|
@@ -256,6 +256,39 @@ out="$( cd "$repo" && "./$bin_rel" --install-hooks --refresh 2>&1 )"; rc=$?
|
|
|
256
256
|
out="$( cd "$repo" && "./$bin_rel" --install-hooks --refresh extra 2>&1 )"; rc=$?
|
|
257
257
|
[[ "$rc" -eq 2 ]] || note refresh-operand "want exit 2 from --refresh with an operand, got $rc -- $out"
|
|
258
258
|
|
|
259
|
+
# 17. a clone already running hooks keeps them, each ahead of the gates where they share a hook, and a failing prior hook refuses the commit with the gates unrun; its hooks are sh scripts, so a host with an executable suffix skips it
|
|
260
|
+
if [[ -z "$sfx" ]]; then
|
|
261
|
+
chained="$SANDBOX/chained"
|
|
262
|
+
mkdir -p "$chained/gate-sdk" "$chained/scripts" "$chained/${bin_rel%/*}"
|
|
263
|
+
cp -R "$HERE/gate-sdk/bin" "$HERE/gate-sdk/lib" "$chained/gate-sdk/"
|
|
264
|
+
cp "$PINNED" "$chained/$bin_rel"
|
|
265
|
+
printf 'native/target/\n' >"$chained/.gitignore"
|
|
266
|
+
printf 'check-probe-word\n' >"$chained/scripts/gates.list"
|
|
267
|
+
cp "$repo/scripts/check-probe-word.sh" "$chained/scripts/"
|
|
268
|
+
git -C "$chained" init -q -b main
|
|
269
|
+
for h in pre-commit post-commit; do
|
|
270
|
+
printf '#!/bin/sh\necho %s >>"$(git rev-parse --git-dir)/chain-runs"\n' "$h" >"$chained/.git/hooks/$h"
|
|
271
|
+
chmod +x "$chained/.git/hooks/$h"
|
|
272
|
+
done
|
|
273
|
+
gc() { git -C "$chained" -c user.email=t@example.invalid -c user.name=t "$@"; }
|
|
274
|
+
out="$( cd "$chained" && "./$bin_rel" --install-hooks 2>/dev/null )"; rc=$?
|
|
275
|
+
[[ "$rc" -eq 0 ]] || note chain-install-status "want exit 0 from --install-hooks over live prior hooks, got $rc -- $out"
|
|
276
|
+
grep -qE '^install-hooks: this clone ran hooks from .* \(post-commit, pre-commit\); each now runs from ' <<<"$out" || note chain-line "the opt-in's stdout does not name the chained hooks: $out"
|
|
277
|
+
printf 'a note\n' >"$chained/a.txt"
|
|
278
|
+
gc add -A
|
|
279
|
+
out="$(gc commit -m 'docs: through the chain' 2>&1)"; rc=$?
|
|
280
|
+
[[ "$rc" -eq 0 ]] || note chain-clean-status "a clean commit through the chain was refused ($rc): $out"
|
|
281
|
+
grep -qF 'pre-commit: 1 gate(s) passed.' <<<"$out" || note chain-clean-summary "the gates did not run after the chained pre-commit: $out"
|
|
282
|
+
[[ "$(cat "$chained/.git/chain-runs" 2>/dev/null)" == $'pre-commit\npost-commit' ]] || note chain-runs "want the prior pre-commit then post-commit to run, got: $(cat "$chained/.git/chain-runs" 2>/dev/null)"
|
|
283
|
+
printf '#!/bin/sh\nexit 1\n' >"$chained/.git/hooks/pre-commit"
|
|
284
|
+
printf 'another note\n' >"$chained/b.txt"
|
|
285
|
+
gc add b.txt
|
|
286
|
+
out="$(gc commit -m 'docs: past a failing prior hook' 2>&1)"; rc=$?
|
|
287
|
+
[[ "$rc" -ne 0 ]] || note chain-red-status "a commit landed past a failing prior pre-commit: $out"
|
|
288
|
+
{ grep -qF 'the chained hook' <<<"$out" && grep -qF 'the gates did not run' <<<"$out"; } || note chain-red-text "the refusal does not name the chained hook: $out"
|
|
289
|
+
grep -qF 'gate(s) passed.' <<<"$out" && note chain-red-gates "the gates ran past a failing prior hook: $out"
|
|
290
|
+
fi
|
|
291
|
+
|
|
259
292
|
[[ "$fails" -eq 0 ]] || { echo "native-git-hooks.test: $fails assertion(s) failed"; exit 1; }
|
|
260
|
-
echo "native-git-hooks.test: clean (--install-hooks places both hooks untracked under the common git directory, absolute in core.hooksPath, refusing with nothing placed when the binary is absent; git starts the placed binary as each hook with no interpreter: a clean commit lands on the summary line, a red member refuses by gate name from the main checkout and from a linked worktree, the commit-msg hook is silent until a member registers at its tier and reaches one with no re-install; a hook outliving a replaced binary starts the installed one, an unstartable binary refuses naming the path and both remedies, a knob naming a hook is refused at 2, a re-run replaces both, a knob-file line naming a knob the launcher does not know is left to the installed build, --refresh re-places an opted-in clone's hooks and nothing else, a failed core.hooksPath write refuses at 2 with no receipt, a failed blame.ignoreRevsFile write is reported at exit 0,
|
|
293
|
+
echo "native-git-hooks.test: clean (--install-hooks places both hooks untracked under the common git directory, absolute in core.hooksPath, refusing with nothing placed when the binary is absent; git starts the placed binary as each hook with no interpreter: a clean commit lands on the summary line, a red member refuses by gate name from the main checkout and from a linked worktree, the commit-msg hook is silent until a member registers at its tier and reaches one with no re-install; a hook outliving a replaced binary starts the installed one, an unstartable binary refuses naming the path and both remedies, a knob naming a hook is refused at 2, a re-run replaces both, a knob-file line naming a knob the launcher does not know is left to the installed build, --refresh re-places an opted-in clone's hooks and nothing else, a failed core.hooksPath write refuses at 2 with no receipt, a failed blame.ignoreRevsFile write is reported at exit 0, an unreadable resolved member refuses either hook at 2, and a clone already running hooks keeps them, a prior pre-commit ahead of the gates and a prior post-commit through its forwarding hook, a failing prior hook refusing the commit with the gates unrun)"
|
|
261
294
|
exit 0
|
|
@@ -21,9 +21,9 @@ 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
|
-
**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
|
|
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
|
|
|
28
28
|
**The reverse case is inspected, never waited out: a session that reported and ended its journal with `DONE` yet still reads as active.** A background child of its own is holding it (a producerless waiter, say). Read the process table first, then its shells and worktrees, and report the holder. Two events owe that read: a completion notification saying background work is still running, and any answer to an operator asking whether something is stuck.
|
|
29
29
|
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
File without changes
|