checkwright 0.32.1 → 0.34.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 (27) hide show
  1. package/README.md +5 -3
  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/gate-sdk/gate-tests/native-git-hooks.test.sh +37 -4
  20. package/payload/lifecycle-kit/templates/lead.md +1 -1
  21. package/payload/lifecycle-kit/templates/stages/align.md +1 -1
  22. package/payload/lifecycle-kit/templates/stages/build.md +1 -1
  23. package/payload/lifecycle-kit/templates/stages/close.md +1 -1
  24. package/payload/lifecycle-kit/templates/stages/scope.md +1 -1
  25. package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
  26. package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
  27. package/profiles.list +22 -10
package/README.md CHANGED
@@ -52,6 +52,7 @@ The flags each verb takes, owned by the binary as the verbs are:
52
52
  | `--dry-run` | `init`, `update`, `uninstall` | print the plan, write nothing |
53
53
  | `--force` | `init`, `update`, `uninstall` | overwrite what the verb would otherwise protect |
54
54
  | `--no-commit` | `init`, `update`, `uninstall` | stage the change and leave the commit to you |
55
+ | `--personal` | `init`, `update` | install untracked, for this clone alone, committing nothing |
55
56
  | `--with-kit` | `init`, `update` | add this kit to the profile; repeats |
56
57
  | `--without-kit` | `init`, `update` | take this kit out of the profile; repeats |
57
58
  | `--with-gate` | `init`, `update` | register this gate too; repeats |
@@ -60,14 +61,15 @@ The flags each verb takes, owned by the binary as the verbs are:
60
61
 
61
62
  ## Choosing a profile
62
63
 
63
- `starter`, `delegation`, `prose`, `full`. Not four rungs on one ladder: the profiles are ordered by kit-set containment, so moving to one that contains yours only ever adds, and two that contain neither the other — `delegation` and `prose` — are alternatives rather than steps.
64
+ `starter`, `workflow`, `delegation`, `prose`, `full`. Not rungs on one ladder: the profiles are ordered by kit-set containment, so moving to one that contains yours only ever adds, and two that contain neither the other — `prose` and either of `workflow` and `delegation` — are alternatives rather than steps.
64
65
 
65
66
  - **`starter`** — the gate SDK on its own: a battery, a pre-commit hook, and gates that red on real defects in your tree with no configuration outside your gates directory.
66
- - **`delegation`** — adds every kit whose subject is the agent session itself.
67
+ - **`workflow`** — `starter` plus the stage machine and the recorded test runs, the least on which `prove` catches a done claim; it keeps `starter`'s gates.
68
+ - **`delegation`** — adds to `workflow` the rest of the kits whose subject is the agent session itself.
67
69
  - **`prose`** — adds canon-kit instead, for a repository whose artifacts are documents rather than code.
68
70
  - **`full`** — everything in the payload.
69
71
 
70
- `starter`, `delegation` and `prose` are rosters in `profiles.list`, each membership recorded beside the criterion behind it; `full` is derived from the payload at run time rather than listed. `--recipe <name>` applies a recipe the package carries, for a tree another tool lays out, such as a spec toolkit's.
72
+ `starter`, `workflow`, `delegation` and `prose` are rosters in `profiles.list`, each membership recorded beside the criterion behind it; `full` is derived from the payload at run time rather than listed. `--recipe <name>` applies a recipe the package carries, for a tree another tool lays out, such as a spec toolkit's.
71
73
 
72
74
  `--with-kit`, `--without-kit`, `--with-gate` and `--without-gate` adjust a profile per install, and a gate file of your own under a kit gate's name, in your gates directory, replaces it ([SPEC.md §Selecting kits and gates](SPEC.md#selecting-kits-and-gates)).
73
75
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "checkwright-pwsh": "bin/checkwright.ps1"
5
5
  },
6
6
  "checkwright": {
7
- "commit": "febc24b2f5e78b488b8664f40576b7447024db71",
7
+ "commit": "c3550419d1a42a5615b01205254de06dd6e02465",
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.32.1"
33
+ "version": "0.34.0"
34
34
  }
@@ -1 +1 @@
1
- 09f825f165c39242f66c0bb8a0eb5e30cf62baddaef60e83cae262845b2c824d checkwright-gates
1
+ f00242a92d6b2ecd0c7211e3c2455f84b191eb6d3c5b5a2e24c3382082d332db checkwright-gates
@@ -1 +1 @@
1
- b494c5d094553c0baca9b213adeba54beadf671327ec2a5a7c81f63b787a3207 *checkwright-gates.exe
1
+ 2aeefffd753bdfdaccfe6a0adbd8ab87f626a898353fb74beacca23244d50220 *checkwright-gates.exe
@@ -1 +1 @@
1
- 28af8e0bc7d849ed2ed22a156c03ca99fdd11882cb99d26dfa96ff3c8f35c78a checkwright-gates
1
+ ac512d08d768d36605a2d549780c5ebb7102a1c9be75d852e03a775df7923e91 checkwright-gates
@@ -1 +1 @@
1
- 407d2efd2b2422e898fd29c909ae52e2efe69ca41221b2c83b0697a379e7d410 checkwright-gates
1
+ 176e3a2bb98532b4d25fa346d743b338955233e5a199db9b73fbf483e649cc2e checkwright-gates
@@ -1 +1 @@
1
- dcd246944a87738754693a97b6a33a4f3d674a345beccac7683520c8e927929d checkwright-gates
1
+ ec23522797098b55d4f5bdd5cc025bab10f86143c3eb291951cf9f608eee81e9 checkwright-gates
@@ -1 +1 @@
1
- 0a4d9df949fd68760851d033ea949cec18f5127a7ee9bced4ec2bf586bb83a6b *checkwright-gates.exe
1
+ 2112ea1f1850527f5c78b07e64fa65c4c5cb92d28e1017a22bed2a430ce53b61 *checkwright-gates.exe
@@ -1 +1 @@
1
- 3df482d3ded92eb5010ad8ca13e8ae3eca225d8c274cd98e7a8d16fd12af9115 checkwright-gates
1
+ eae5bbc4463e228e6a520a41225e850e6bfbddd90ed431f4c8fe9362daaa8248 checkwright-gates
@@ -1 +1 @@
1
- 70360f1b429c4c5d634e5efb28f9add1d4b3bc3e8fa23cba577e4b551336fe91 checkwright-gates
1
+ 1aab17f5978496aa238c3e957b819b98220668243ef7c2f6fce43dd17fc23838 checkwright-gates
@@ -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, and a registered member whose declaration resolves and cannot be read refuses either hook 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, and an unreadable resolved member refuses either hook at 2)"
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
@@ -23,7 +23,7 @@ Dispatch mechanics are delegation-kit's, unchanged: dispatch in the background w
23
23
 
24
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, so a notification queued during the turn is delivered inside it (lifecycle-kit/SPEC.md §The stamp protocol, the honest limit on the lead's dispatch precondition).
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**: an out-of-order append silently invalidates it and leaves the marker visible.
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
 
@@ -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 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 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 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 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 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 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.
package/profiles.list CHANGED
@@ -5,7 +5,7 @@
5
5
  # derived at run time. A hand-maintained "all the kits" roster is drift the day
6
6
  # a kit lands.
7
7
  #
8
- # The rows below are the two rosters that are not derivable, each a judgment
8
+ # The rows below are the rosters that are not derivable, each a judgment
9
9
  # recorded with the criterion that produced it. That split is the whole contract
10
10
  # of this file: **membership is hand-authored and shape is derived.** A row here
11
11
  # says which kits a profile carries; nothing here says how the profiles relate,
@@ -17,8 +17,8 @@
17
17
  # steps. The consumer smoke derives that order from these rows and the payload
18
18
  # and asserts it — every named kit resolves, the bounds are unique, the maximum
19
19
  # is the payload-derived profile, and moving up a comparable pair only ever adds
20
- # to the gate roster. A fourth profile is admitted exactly when it fits; there is
21
- # no count to raise here.
20
+ # to the gate roster. A further profile is admitted exactly when it fits; there
21
+ # is no count to raise here.
22
22
 
23
23
  # starter — the smallest set that reaches a green battery with a working
24
24
  # pre-commit hook and at least one gate that reds on a real consumer defect
@@ -32,18 +32,30 @@
32
32
  # list.
33
33
  starter gate-sdk
34
34
 
35
- # delegation — starter plus every kit whose subject is the agent session
36
- # itself: the stage machine a session runs, the queue it selects work from, the
37
- # evidence a stage must produce before it can close, the protocol it follows
38
- # when it spawns a sub-session, the context budget it runs inside, the
39
- # permission surface it acts through, and the delivery doctrine it follows.
35
+ # workflow — starter, the substrate and starting gates every profile carries,
36
+ # plus the smallest set of workflow kits on which `prove` holds: lifecycle-kit,
37
+ # the stage machine whose stamps make a done claim, and evidence-kit, whose
38
+ # manifest gate catches one made with no recorded test run. starter's gates
39
+ # come with it, gate-sdk's checks over the adopter's own shell among them,
40
+ # since no profile sits below starter; a selection drops them per install.
41
+ # queue-kit is left out: the claim is caught without it, the queue skeleton
42
+ # init seeds for lifecycle-kit carries the sections the claim is staged in,
43
+ # and delegation adds the kit.
44
+ workflow gate-sdk
45
+ workflow lifecycle-kit
46
+ workflow evidence-kit
47
+
48
+ # delegation — workflow plus the rest of the kits whose subject is the agent
49
+ # session itself: the queue it selects work from, the protocol it follows when
50
+ # it spawns a sub-session, the context budget it runs inside, the permission
51
+ # surface it acts through, and the delivery doctrine it follows.
40
52
  #
41
53
  # The honest consequence of the starting-subset rule, stated where the roster is
42
54
  # read rather than only on the install page: lifecycle-kit registers **no gate**
43
55
  # at install, because none of its gates is `zero-config` — for reasons that
44
56
  # differ across the roster rather than one reason covering it
45
- # (installer/SPEC.md §What init seeds). So an adopter who picks this profile
46
- # *for* lifecycle governance gets the stage machinery vendored and nothing
57
+ # (installer/SPEC.md §What init seeds). So an adopter who picks this profile,
58
+ # or `workflow`, *for* lifecycle governance gets the stage machinery vendored and nothing
47
59
  # enforcing it until the surface each gate reads exists — a stage stamp for
48
60
  # most, the kit's own installer for two. Vendored is not yet enforced.
49
61
  delegation gate-sdk