checkwright 0.29.0 → 0.30.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 (61) hide show
  1. package/README.md +18 -0
  2. package/package.json +2 -2
  3. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  4. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
  5. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  6. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  7. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  8. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  9. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
  10. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  11. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  12. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
  13. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  14. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  15. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  16. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  17. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
  18. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  19. package/payload/canon-kit/README.md +3 -1
  20. package/payload/canon-kit/checks/check-task-label-resolution.gate +4 -0
  21. package/payload/canon-kit/checks/check-task-path-claim.gate +4 -0
  22. package/payload/canon-kit/gate-tests/check-task-label-resolution/bad/expect.txt +1 -0
  23. package/payload/canon-kit/gate-tests/check-task-label-resolution/bad/scripts/canon-config.knobs +4 -0
  24. package/payload/canon-kit/gate-tests/check-task-label-resolution/bad/work/spec.md +5 -0
  25. package/payload/canon-kit/gate-tests/check-task-label-resolution/bad/work/tasks.md +4 -0
  26. package/payload/canon-kit/gate-tests/check-task-label-resolution/good/expect.txt +1 -0
  27. package/payload/canon-kit/gate-tests/check-task-label-resolution/good/scripts/canon-config.knobs +4 -0
  28. package/payload/canon-kit/gate-tests/check-task-label-resolution/good/work/spec.md +9 -0
  29. package/payload/canon-kit/gate-tests/check-task-label-resolution/good/work/tasks.md +8 -0
  30. package/payload/canon-kit/gate-tests/check-task-path-claim/bad/expect.txt +2 -0
  31. package/payload/canon-kit/gate-tests/check-task-path-claim/bad/scripts/canon-config.knobs +2 -0
  32. package/payload/canon-kit/gate-tests/check-task-path-claim/bad/work/tasks.md +4 -0
  33. package/payload/canon-kit/gate-tests/check-task-path-claim/good/expect.txt +1 -0
  34. package/payload/canon-kit/gate-tests/check-task-path-claim/good/scripts/canon-config.knobs +2 -0
  35. package/payload/canon-kit/gate-tests/check-task-path-claim/good/src/app.py +1 -0
  36. package/payload/canon-kit/gate-tests/check-task-path-claim/good/work/tasks.md +13 -0
  37. package/payload/context-kit/README.md +1 -1
  38. package/payload/delegation-kit/README.md +1 -1
  39. package/payload/doctrine-kit/README.md +1 -1
  40. package/payload/evidence-kit/README.md +1 -1
  41. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +1 -1
  42. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +2 -2
  43. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +8 -33
  44. package/payload/gate-sdk/lib/gate.sh +0 -14
  45. package/payload/guard-kit/README.md +1 -1
  46. package/payload/lifecycle-kit/README.md +1 -1
  47. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +1 -1
  48. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +14 -8
  49. package/payload/queue-kit/README.md +1 -1
  50. package/payload/site-kit/README.md +1 -1
  51. package/payload/site-kit/checks/check-docs-cname-parity.gate +1 -1
  52. package/payload/site-kit/checks/check-docs-liquid-parse.gate +2 -2
  53. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/expect.txt +1 -0
  54. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +1 -1
  55. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/scripts/site-config.knobs +3 -0
  56. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/_layouts/stale.html +4 -0
  57. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/scripts/site-config.knobs +3 -0
  58. package/recipes/openspec/canon-config.knobs +1 -0
  59. package/recipes/speckit/canon-config.knobs +3 -0
  60. /package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/{_layouts → _templates}/default.html +0 -0
  61. /package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/{_layouts → _templates}/default.html +0 -0
package/README.md CHANGED
@@ -41,6 +41,22 @@ Re-running is idempotent and non-destructive. `init` reads the per-file hash `ch
41
41
 
42
42
  `uninstall` reverses an install against the roster `init` recorded, keeping and reporting any file you edited rather than removing it — which is what lets an evaluation you decide against leave nothing of its own behind.
43
43
 
44
+ The flags each verb takes, owned by the binary as the verbs are:
45
+
46
+ | flag | verbs | means |
47
+ | --- | --- | --- |
48
+ | `--profile` | `init`, `update` | vendor this profile |
49
+ | `--recipe` | `init`, `update` | apply this payload recipe; repeats |
50
+ | `--no-recipe` | `init`, `update` | clear the recorded recipes |
51
+ | `--dry-run` | `init`, `update`, `uninstall` | print the plan, write nothing |
52
+ | `--force` | `init`, `update`, `uninstall` | overwrite what the verb would otherwise protect |
53
+ | `--no-commit` | `init`, `update`, `uninstall` | stage the change and leave the commit to you |
54
+ | `--with-kit` | `init`, `update` | add this kit to the profile; repeats |
55
+ | `--without-kit` | `init`, `update` | take this kit out of the profile; repeats |
56
+ | `--with-gate` | `init`, `update` | register this gate too; repeats |
57
+ | `--without-gate` | `init`, `update` | drop this gate from the registry; repeats |
58
+ | `--no-selection` | `init`, `update` | clear the recorded kit and gate selection |
59
+
44
60
  ## Choosing a profile
45
61
 
46
62
  `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.
@@ -52,6 +68,8 @@ Re-running is idempotent and non-destructive. `init` reads the per-file hash `ch
52
68
 
53
69
  `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.
54
70
 
71
+ `--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)).
72
+
55
73
  ## Where the design lives
56
74
 
57
75
  `installer/SPEC.md` in the repository, published at
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "checkwright-pwsh": "bin/checkwright.ps1"
5
5
  },
6
6
  "checkwright": {
7
- "commit": "92187d40d23d02a7afcf2f22612d5a010f955fb7",
7
+ "commit": "bb54aed6a64d88b97abd01320ca1a6cc50052766",
8
8
  "spec_base_url": "https://checkwright.dev"
9
9
  },
10
10
  "description": "Deterministic verification for coding-agent delivery. Checkwright is the verification layer under agent orchestration: spec drift, skipped stages, and unsupported done claims become failing checks before a merge, instead of review findings after one.",
@@ -23,5 +23,5 @@
23
23
  "type": "git",
24
24
  "url": "git+https://github.com/checkwright/checkwright.git"
25
25
  },
26
- "version": "0.29.0"
26
+ "version": "0.30.0"
27
27
  }
@@ -1 +1 @@
1
- 903c78e5786bed57cac0d41da0a73c41dd6a20c7f04250cb99ad0be586f576a2 checkwright-gates
1
+ ec7165aaf93256b3542faa030a6be4895525831158cc070cf46464284b72f9ca checkwright-gates
@@ -1 +1 @@
1
- 8c46541021a7676131ca8fc9d2d493c6963cbb193fcc4826a5a35cb46bd7d7bd *checkwright-gates.exe
1
+ ac1fd2f25c12621df67d92ff06aff5a2fcda0630e7e4933c37db615318ed9216 *checkwright-gates.exe
@@ -1 +1 @@
1
- e75eee9295ca4eca7da63d59757a1d24f2885cefa67c62d4ae875ed7bbb91b2f checkwright-gates
1
+ 19fa883a735743cbdec073c6df15e6634c4c7530af00265978c6dd1fb10de516 checkwright-gates
@@ -1 +1 @@
1
- 9de222cfba428f91e99c44c58781feefff67a38b397851ec773d5865f53e58e3 checkwright-gates
1
+ e04c64ea6f33f3fb3833d918a70be26de1be31ebce453996698f506d158f761a checkwright-gates
@@ -1 +1 @@
1
- 74d646ba9b74c3e510d047ad43aad0bdea9c84a13c89f86810f5951af7a202e1 checkwright-gates
1
+ 85ecda9349bdd6b782ededbc85f88cbf5f7d9ff432e2887478b6ba860aef2b34 checkwright-gates
@@ -1 +1 @@
1
- 86c06a964923150d0dbd684e60959091e66e3fe30f9d86e80083862d3e7b5f3d *checkwright-gates.exe
1
+ 31c881eea4739329988bf1ce6b0e4c1e62e3e15123f537e9b4d046c916d9b865 *checkwright-gates.exe
@@ -1 +1 @@
1
- 612d3f22ae719422a9b78debd25a0e93bf1fd1c14868ba83c0b7588b93741b66 checkwright-gates
1
+ 1fa31dd1291c20251814462671824ca15e9ee927fdfd4b8b308ea34adfb2261c checkwright-gates
@@ -1 +1 @@
1
- 146937588cf2d6ee5c6cdc958e4832bdff0a9243dea463ca1435480ac4e9803b checkwright-gates
1
+ 0fd932d9e9397baa415cbb854991234f1d7f3058bba5efe69cb61dd9d1400dfe checkwright-gates
@@ -38,6 +38,8 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required); the queue-facing gate
38
38
  check-manifest-temporal # no temporal narration in manifest prose
39
39
  check-provenance-seam # no publisher provenance in a kit SPEC or a declared seam surface
40
40
  check-tracking-claim # a path's tracking status in prose agrees with git
41
+ check-task-path-claim # needs task lists (a ticked task names only paths that exist)
42
+ check-task-label-resolution # needs task lists and label families (a cited label resolves beside it)
41
43
  check-prose-enum # partial enumeration of a governed set
42
44
  check-md-refs # internal markdown links resolve
43
45
  check-md-unwrapped # needs an unwrapped markdown set (no paragraph broken across lines)
@@ -50,7 +52,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required); the queue-facing gate
50
52
  check-deprecation-task # needs a deprecation-marker vocabulary
51
53
  ```
52
54
 
53
- They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and their `# graph:` manifests put the precommit-tier ones in the generated hook, which `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes.
55
+ 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. `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes that hook once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered.
54
56
 
55
57
  2. Adopt the amendment lifecycle — copy `templates/SPEC-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.
56
58
 
@@ -0,0 +1,4 @@
1
+ # graph: couples=knob:CANON_KIT_TASK_LIST_GLOBS,*.md dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # armed-by: CANON_KIT_TASK_LABEL_CITES
4
+ # spec: canon-kit/SPEC.md §check-task-label-resolution — every label a task list cites resolves to its definition in a markdown file beside the list
@@ -0,0 +1,4 @@
1
+ # graph: couples=knob:CANON_KIT_TASK_LIST_GLOBS,* dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # armed-by: CANON_KIT_TASK_LIST_GLOBS
4
+ # spec: canon-kit/SPEC.md §check-task-path-claim — every ticked task in a task list CANON_KIT_TASK_LIST_GLOBS names holds only paths that exist
@@ -0,0 +1 @@
1
+ work/tasks.md:4: family `story` cites `2`, which no markdown file beside it defines
@@ -0,0 +1,4 @@
1
+ # spec: canon-kit/SPEC.md §check-task-label-resolution — fixture consumer config: the task lists under work/ cite stories their sibling spec defines
2
+ CANON_KIT_TASK_LIST_GLOBS[] = work/tasks.md
3
+ CANON_KIT_TASK_LABEL_CITES[story] = \[US([0-9]+)\]
4
+ CANON_KIT_TASK_LABEL_DEFINES[story] = ^### User Story ([0-9]+)[ ]
@@ -0,0 +1,5 @@
1
+ # Spec
2
+
3
+ ### User Story 1 - Read (Priority: P1)
4
+
5
+ A reader reads.
@@ -0,0 +1,4 @@
1
+ # Tasks
2
+
3
+ - [ ] T001 [US1] Read the changes
4
+ - [ ] T002 [US2] Export the file
@@ -0,0 +1 @@
1
+ TASK-LABEL-RESOLUTION: clean (1 task list(s), 1 label famil(ies), 3 citation(s) resolved, 0 valved
@@ -0,0 +1,4 @@
1
+ # spec: canon-kit/SPEC.md §check-task-label-resolution — fixture consumer config: the task lists under work/ cite stories their sibling spec defines
2
+ CANON_KIT_TASK_LIST_GLOBS[] = work/tasks.md
3
+ CANON_KIT_TASK_LABEL_CITES[story] = \[US([0-9]+)\]
4
+ CANON_KIT_TASK_LABEL_DEFINES[story] = ^### User Story ([0-9]+)[ ]
@@ -0,0 +1,9 @@
1
+ # Spec
2
+
3
+ ### User Story 1 - Read (Priority: P1)
4
+
5
+ A reader reads.
6
+
7
+ ### User Story 2 - Export (Priority: P2)
8
+
9
+ A reader exports.
@@ -0,0 +1,8 @@
1
+ # Tasks
2
+
3
+ - [ ] T001 [US1] Read the changes
4
+ - [x] T002 [US1] Write the file, then [US2] exports it
5
+
6
+ ```text
7
+ - [ ] T003 [US9] An example task citing an undefined story
8
+ ```
@@ -0,0 +1,2 @@
1
+ work/tasks.md:3: `src/app.py` does not exist
2
+ work/tasks.md:4: `src/export.py` does not exist
@@ -0,0 +1,2 @@
1
+ # spec: canon-kit/SPEC.md §check-task-path-claim — fixture consumer config: every markdown file under work/ is a task list
2
+ CANON_KIT_TASK_LIST_GLOBS[] = work/*.md
@@ -0,0 +1,4 @@
1
+ # Tasks
2
+
3
+ - [x] T001 Write the entry point in src/app.py
4
+ * [X] T002 Add the exporter in src/export.py
@@ -0,0 +1 @@
1
+ TASK-PATH-CLAIM: clean (1 task list(s), 4 ticked task(s), 3 path(s), 1 valved
@@ -0,0 +1,2 @@
1
+ # spec: canon-kit/SPEC.md §check-task-path-claim — fixture consumer config: every markdown file under work/ is a task list
2
+ CANON_KIT_TASK_LIST_GLOBS[] = work/*.md
@@ -0,0 +1,13 @@
1
+ # Tasks
2
+
3
+ - [x] T001 Write the entry point in src/app.py
4
+ - [X] T002 Lay out the `src/` directory
5
+ - [ ] T003 Add the exporter in src/export.py
6
+ - [x] T004 Name each module after its role, as in src/<name>.py
7
+
8
+ <!-- task-path-exempt: the task deleted it -->
9
+ - [x] T005 Remove the old loader, src/loader.py
10
+
11
+ ```text
12
+ - [x] T006 An example task naming docs/absent.md
13
+ ```
@@ -23,7 +23,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required); the meter's default h
23
23
  ```
24
24
  <!-- gate-roster:end -->
25
25
 
26
- They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and their `# graph:` manifests put them in the generated pre-commit hook, which `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes. Three of them wait on a step of yours: `check-settings-pins` skips clean until you create `settings-pins.conf` naming the settings keys to hold, such as the auto-memory-disabling ones ([SPEC.md §check-settings-pins](https://checkwright.dev/context-kit/SPEC#check-settings-pins)); `check-footprint-fresh` is for when you publish the footprint page; and `check-surface-ratchet` arms once you commit the ceilings `--emit always-loaded --ceiling` stamps ([SPEC.md §The surface ratchet](https://checkwright.dev/context-kit/SPEC#the-surface-ratchet)).
26
+ They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and the pre-commit hook runs those their `# graph:` manifests trigger, read at commit. `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes that hook once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered. Three of them wait on a step of yours: `check-settings-pins` skips clean until you create `settings-pins.conf` naming the settings keys to hold, such as the auto-memory-disabling ones ([SPEC.md §check-settings-pins](https://checkwright.dev/context-kit/SPEC#check-settings-pins)); `check-footprint-fresh` is for when you publish the footprint page; and `check-surface-ratchet` arms once you commit the ceilings `--emit always-loaded --ceiling` stamps ([SPEC.md §The surface ratchet](https://checkwright.dev/context-kit/SPEC#the-surface-ratchet)).
27
27
 
28
28
  2. Wire the session-start hook — copy `templates/session-context.sh` into your gates dir, edit its `[EDIT ME]` sections (layout judgment, not mechanism), and merge `templates/settings-sessionstart.json` into `.claude/settings.json`.
29
29
 
@@ -20,7 +20,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
20
20
  ```
21
21
  <!-- gate-roster:end -->
22
22
 
23
- They resolve through gate-sdk's registry path and their `# graph:` manifests put them in the generated pre-commit hook, written by `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names.
23
+ They resolve through gate-sdk's registry path and the pre-commit hook runs those their `# graph:` manifests trigger, read at commit. `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes that hook once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered.
24
24
 
25
25
  2. Bind the protocol skill and add its resident pointer:
26
26
  - Create `.claude/commands/agent-execution.md` as a binding shim naming `templates/agent-execution.md` and binding its two slots — the shared-file roster and the validate battery ([SPEC.md §One template, a resident pointer](https://checkwright.dev/delegation-kit/SPEC#one-template-a-resident-pointer)).
@@ -33,7 +33,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
33
33
  ```
34
34
  <!-- gate-roster:end -->
35
35
 
36
- Regenerate the hook + graph artifacts with `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names.
36
+ The pre-commit hook runs the gates their `# graph:` manifests trigger, read at commit; `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes it once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered.
37
37
 
38
38
  3. Edit the digest — to drop a rule your project does not keep resident, declare the trim in place: `<!-- doctrine-digest-trim: <rule name> — <reason> -->` inside the digest section. The gate holds the digest in per-rule lockstep with the doctrine modulo declared trims, so a silent omission stays red; point `DOCTRINE_KIT_DIGEST_SECTION` at your heading if it is not `## Delivery doctrine`. The declaration survives the next run: the installer reads your block before it rewrites it and carries each declared marker back into the trimmed rule's position, so re-vendoring never restores a rule you removed. That is the only customization it preserves — see [SPEC.md](https://checkwright.dev/doctrine-kit/SPEC#install-doctrine) for the bound and the two findings it reports.
39
39
 
@@ -21,7 +21,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
21
21
  ```
22
22
  <!-- gate-roster:end -->
23
23
 
24
- Regenerate the hook + graph artifacts by running `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names.
24
+ The pre-commit hook runs the gates their `# graph:` manifests trigger, read at commit; `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes it once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered.
25
25
 
26
26
  2. Seed the two surfaces — `.workflow/validate-baseline.txt`:
27
27
 
@@ -7,7 +7,7 @@ dir= must be bi|one (got 'mono')
7
7
  valve= must be none|PROPOSED (got 'no-fixture')
8
8
  tier= must be precommit|align-only|commit-msg (got 'postcommit')
9
9
  mode= must be staged|whole-tree (got 'partial')
10
- gen= must be manual (got 'auto')
10
+ unknown manifest key/token 'gen=auto'
11
11
  couples= is empty
12
12
  couples token 'docs/[a].md' is not a syntactically valid glob/path
13
13
  trigger token 'docs/(x).md' is not a syntactically valid glob/path
@@ -1,7 +1,7 @@
1
1
  # SPEC-example-gate — amendment fixture (good)
2
2
 
3
3
  Every shape assertion G must accept, one per branch it can clear: the four
4
- required keys alone, the full seven-key form with every optional value legal, a
4
+ required keys alone, the full six-key form with every optional value legal, a
5
5
  `kit:<glob>` couples token, a `*` trigger, two manifests on one line, a manifest
6
6
  inside a non-`proto` fence, a `# graph:` span carrying no manifest key at all,
7
7
  and the two spans the extractor must not read as manifests in the first place.
@@ -14,7 +14,7 @@ and the two spans the extractor must not read as manifests in the first place.
14
14
  existence is not required, only glob syntax.
15
15
  - [ ] `check-two-gate.sh` (`# graph: couples=docs/two.md dir=one valve=none tier=precommit`) and `check-three-gate.sh` (`# graph: couples=docs/three.md dir=bi valve=PROPOSED tier=align-only`) land together — two manifests on one line, and the second must be validated as well as the first.
16
16
  - [ ] `check-full-gate.sh` carries every optional key at a legal value
17
- (`# graph: couples=kit:checks/*.sh,scripts/gates.list trigger=* dir=bi valve=PROPOSED tier=commit-msg mode=whole-tree gen=manual`) —
17
+ (`# graph: couples=kit:checks/*.sh,scripts/gates.list trigger=* dir=bi valve=PROPOSED tier=commit-msg mode=whole-tree`) —
18
18
  the `kit:` prefix validates on its glob part, and a `*` trigger is exempt
19
19
  from token validation because it covers every surface.
20
20
 
@@ -2,7 +2,7 @@
2
2
  # Behavioral test of check-graph's whole-registry path — assertions A (manifest
3
3
  # well-formedness), B (couples<->trigger parity), C (the cycle-valve rule),
4
4
  # D (pre-commit + commit-msg hook freshness), E (graph-artifact freshness) and
5
- # F (emitted asset hrefs resolve), and the `gen=manual` round-trip. None is
5
+ # F (emitted asset hrefs resolve), and the retired `gen=` field. None is
6
6
  # reachable from the good/bad pair: the pair's cwd is a case dir and a `good/`
7
7
  # case must exit 0, while D and E always run on the full path, so satisfying D
8
8
  # from a case dir would need a committed byte-copy of the real repo's generated
@@ -148,7 +148,7 @@ want_red c-no-leading "check-epsilon is a dir=bi bijection with no leading desig
148
148
  # --- assertion D: both generated hooks -----------------------------------------
149
149
  seed; regen || true
150
150
  printf '# hand-edited\n' >>"$repo/scripts/git-hooks/pre-commit"
151
- run; want_red d-hook-stale "scripts/git-hooks/pre-commit is stale"
151
+ run; want_red d-hook-stale "scripts/git-hooks/pre-commit is not its emitter's handoff"
152
152
 
153
153
  seed; regen || true
154
154
  rm -f "$repo/scripts/git-hooks/pre-commit"
@@ -156,7 +156,7 @@ run; want_red d-hook-absent "scripts/git-hooks/pre-commit does not exist"
156
156
 
157
157
  seed; regen || true
158
158
  printf '# hand-edited\n' >>"$repo/scripts/git-hooks/commit-msg"
159
- run; want_red d-msg-hook-stale "scripts/git-hooks/commit-msg is stale"
159
+ run; want_red d-msg-hook-stale "scripts/git-hooks/commit-msg is not its emitter's handoff"
160
160
 
161
161
  # --- assertion E: the graph artifact -------------------------------------------
162
162
  seed; regen || true
@@ -186,40 +186,15 @@ regen || true; run
186
186
  want_green f-asset-href-resolves
187
187
  unset GATE_SDK_GRAPH_THEME_DIR
188
188
 
189
- # --- gen=manual: the placeholder, the round-trip, and a region edited in place ---
190
- manual_member() {
191
- seed
192
- printf 'check-eta\n' >>"$repo/scripts/gates.list"
193
- member check-eta 'couples=docs/site.md trigger=docs/*.md dir=one valve=none tier=precommit gen=manual'
194
- }
195
- hook="$repo/scripts/git-hooks/pre-commit"
196
- todo=' # TODO: fill this manual region, then re-run --emit'
197
-
198
- manual_member; regen || true; run
199
- if ! grep -qxF -- "$todo" "$hook" || ! grep -qxF '# >>> manual: check-eta' "$hook" \
200
- || ! grep -qxF '# <<< manual: check-eta' "$hook"; then
201
- echo " FAIL [manual-placeholder]: the hook lacks the sentinels around the TODO line"; fails=$((fails + 1))
202
- fi
203
- want_green manual-placeholder
204
-
205
- manual_member; regen || true
206
- filled="$(awk -v todo="$todo" '$0 == todo { print " echo hand-filled"; print ""; print " run_gate check-eta scripts/check-eta.sh"; next } { print }' "$hook")"
207
- printf '%s\n' "$filled" >"$hook"
208
- before="$(cat "$hook")"
189
+ # --- the retired gen= field: a manifest still carrying it reds, naming the migration
190
+ seed
191
+ member check-alpha 'couples=scripts/gates.list trigger=* dir=one valve=none tier=precommit gen=bespoke'
209
192
  regen || true; run
210
- if ! grep -qxF ' echo hand-filled' "$hook" || [[ "$(cat "$hook")" != "$before" ]]; then
211
- echo " FAIL [manual-round-trip]: a second --write did not carry the filled region back byte for byte"; fails=$((fails + 1))
212
- fi
213
- want_green manual-round-trip
214
-
215
- manual_member; regen || true
216
- edited="$(awk -v todo="$todo" '$0 == todo { print " echo edited-in-place"; next } { print }' "$hook")"
217
- printf '%s\n' "$edited" >"$hook"
218
- run; want_green manual-stale-region
193
+ want_red a-gen-retired "carries gen=, which is retired"
219
194
 
220
195
  if [[ "$fails" -gt 0 ]]; then
221
196
  echo "check-graph-tree.test: $fails case(s) failed"
222
197
  exit 1
223
198
  fi
224
- echo "check-graph-tree.test: ok (constructed consumer tree: A/B/C/D/E/F, both declaration spellings, 4 parity branches, 3 cycle-valve branches, the gen=manual round-trip, 18 cases)"
199
+ echo "check-graph-tree.test: ok (constructed consumer tree: A/B/C/D/E/F, both declaration spellings, 4 parity branches, 3 cycle-valve branches, the retired gen= field, 16 cases)"
225
200
  exit 0
@@ -335,20 +335,6 @@ gate_check_dirs() {
335
335
  done <<<"$roots"
336
336
  }
337
337
 
338
- # spec: gate-sdk/SPEC.md §lib/gate.sh — the staged-path matcher the emitted pre-commit hook splices verbatim, so its body is POSIX sh: true when a line of the caller's newline-separated staged_all matches one of the given globs as a `case` pattern (`*` spans '/').
339
- # shellcheck disable=SC2154 # staged_all is the caller's newline-separated staged set
340
- gate_staged_matches() {
341
- while IFS= read -r _gsm_f; do
342
- for _gsm_pat in "$@"; do
343
- # shellcheck disable=SC2254
344
- case "$_gsm_f" in $_gsm_pat) return 0 ;; esac
345
- done
346
- done <<_CHECKWRIGHT_STAGED_
347
- $staged_all
348
- _CHECKWRIGHT_STAGED_
349
- return 1
350
- }
351
-
352
338
  # spec: gate-sdk/SPEC.md §check-commit-msg — resolve the banned-pattern file set shared by check-commit-msg and check-tree-terms: explicit positional args win; otherwise GATE_SDK_MSG_PATTERN_FILES (tracked, must exist — fail-closed) plus GATE_SDK_MSG_PATTERN_FILES_LOCAL (gitignored, skipped when absent). Both are whitespace lists split with no expansion. Emits one existing readable file path per line; returns 2 when a required tracked file is missing.
353
339
  gate_msg_pattern_files() {
354
340
  if [[ $# -gt 0 ]]; then
@@ -26,7 +26,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/), then:
26
26
  ```
27
27
  <!-- gate-roster:end -->
28
28
 
29
- It resolves through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and its `# graph:` manifest puts it in the generated pre-commit hook.
29
+ It resolves through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and the pre-commit hook runs it when its `# graph:` manifest triggers, read at commit.
30
30
 
31
31
  No guard script is copied: the shell guard, the optional wakeup-guard and escalation-guard are binary arms, wired by pointing a hook's `command` field at `bash gate-sdk/bin/run-gates.sh --hook shell-guard` (or `--hook wakeup-guard`, `--hook escalation-guard`). Where the binary is absent the front end fails open and the guard steers nothing.
32
32
 
@@ -34,7 +34,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
34
34
  ```
35
35
  <!-- gate-roster:end -->
36
36
 
37
- They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and their `# graph:` manifests put them in the generated pre-commit hook (`check-stamp-subject` and `check-dispatch-entry` in the commit-msg hook), written by `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names.
37
+ They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and the hooks run those their `# graph:` manifests trigger, read at commit (`check-stamp-subject` and `check-dispatch-entry` in the commit-msg hook). `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes the pre-commit hook once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered.
38
38
 
39
39
  2. Give the queue file its header and each evidence file its skeleton — the stage-stamp file and the lesson-disposition file (`LIFECYCLE_KIT_LESSON_EVIDENCE_FILE`, both boundary-reset to their header). The queue header line:
40
40
 
@@ -1,3 +1,3 @@
1
1
  # graph: couples=knob:GATE_SDK_WORKFLOW_DIR/*,kit:SPEC.md,knob:LIFECYCLE_KIT_CLOSE_SURFACE_GLOBS,.gitignore dir=one valve=none tier=precommit
2
2
  # install: on-surface
3
- # spec: lifecycle-kit/SPEC.md §check-close-surfaces — the derived close-surface roster is complete and moded: no undeclared capture surface, every declaration carries a mode with a well-formed forced= citation, every capture-tier declaration names a reclaim command
3
+ # spec: lifecycle-kit/SPEC.md §check-close-surfaces — the derived close-surface roster is complete and moded: no undeclared capture surface, every declaration carries a mode with a well-formed forced= citation, every capture-tier declaration names a reclaim command that rotates
@@ -1,10 +1,11 @@
1
1
  #!/usr/bin/env bash
2
2
  # Behavioral test of check-close-surfaces over real git repos — the
3
- # two assertions the good/bad pair cannot reach. A fixture case dir cannot ship
3
+ # three assertions the good/bad pair cannot reach. A fixture case dir cannot ship
4
4
  # a gitignored member: `git check-ignore` never reports a tracked path, and a
5
5
  # fixture file must be tracked to survive a clone. So the capture-tier half —
6
- # assertion A (an undeclared capture surface) and assertion C (a declared one
7
- # with no reclaim command, inside or outside the workflow dir) — is exercised in sandbox repos here, the
6
+ # assertion A (an undeclared capture surface), assertion C (a declared one
7
+ # with no reclaim command, inside or outside the workflow dir) and assertion D
8
+ # (a reclaim that truncates) — is exercised in sandbox repos here, the
8
9
  # check-merge-attrs / check-exec-bit precedent. The pair covers assertion B.
9
10
  #
10
11
  # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
@@ -52,21 +53,26 @@ noreclaim="$SANDBOX/noreclaim"
52
53
  seed_repo "$noreclaim" "close-surface: .workflow/capture.log advisory"
53
54
  check_case "capture-without-reclaim" "$noreclaim" 1 "names no reclaim= command"
54
55
 
55
- # --- both satisfied: declared, moded, reclaimed ---
56
+ # --- assertion D: the reclaim is named, but truncates rather than rotates ---
57
+ truncating="$SANDBOX/truncating"
58
+ seed_repo "$truncating" "close-surface: .workflow/capture.log advisory reclaim=: > .workflow/capture.log"
59
+ check_case "capture-reclaimed-by-truncation" "$truncating" 1 "reclaim does not rotate the log"
60
+
61
+ # --- all satisfied: declared, moded, reclaimed by rotation ---
56
62
  ok="$SANDBOX/ok"
57
- seed_repo "$ok" "close-surface: .workflow/capture.log advisory reclaim=: > .workflow/capture.log"
63
+ seed_repo "$ok" "close-surface: .workflow/capture.log advisory reclaim=run-gates.sh --emit capture-drain .workflow/capture.log"
58
64
  check_case "capture-declared-and-reclaimed" "$ok" 0 "CLOSE-SURFACES: clean"
59
65
 
60
66
  # --- assertion C reads <tracking>: a gitignored declared path outside the workflow dir, no reclaim ---
61
67
  outside="$SANDBOX/outside"
62
- seed_repo "$outside" $'close-surface: .workflow/capture.log advisory reclaim=: > .workflow/capture.log\nclose-surface: notes/scratch.log advisory'
68
+ seed_repo "$outside" $'close-surface: .workflow/capture.log advisory reclaim=run-gates.sh --emit capture-drain .workflow/capture.log\nclose-surface: notes/scratch.log advisory'
63
69
  printf 'notes/\n' >>"$outside/.gitignore"
64
70
  mkdir -p "$outside/notes"; printf 'x\n' >"$outside/notes/scratch.log"
65
71
  check_case "ignored-outside-workflow-without-reclaim" "$outside" 1 "'close-surface: notes/scratch.log' is capture-tier"
66
72
 
67
73
  # --- a declared log's drain companions fold into its row; a drain beside no declared log does not ---
68
74
  drained="$SANDBOX/drained"
69
- seed_repo "$drained" "close-surface: .workflow/capture.log advisory reclaim=: > .workflow/capture.log"
75
+ seed_repo "$drained" "close-surface: .workflow/capture.log advisory reclaim=run-gates.sh --emit capture-drain .workflow/capture.log"
70
76
  printf '.workflow/*.drain\n.workflow/*.drain.part\n' >>"$drained/.gitignore"
71
77
  printf 'a drained line\n' >"$drained/.workflow/capture.log.drain"
72
78
  printf 'a crashed line\n' >"$drained/.workflow/capture.log.drain.part"
@@ -78,5 +84,5 @@ if [[ "$fails" -gt 0 ]]; then
78
84
  echo "check-close-surfaces.test.sh: $fails case(s) failed"
79
85
  exit 1
80
86
  fi
81
- echo "check-close-surfaces.test.sh: clean (undeclared capture, declared-without-reclaim, the satisfied case, a gitignored declared path outside the workflow dir, a declared log's drain folded into its row, and a drain beside no declared log reported, 6 cases)"
87
+ echo "check-close-surfaces.test.sh: clean (undeclared capture, declared-without-reclaim, a truncating reclaim, the satisfied case, a gitignored declared path outside the workflow dir, a declared log's drain folded into its row, and a drain beside no declared log reported, 7 cases)"
82
88
  exit 0
@@ -28,7 +28,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
28
28
  ```
29
29
  <!-- gate-roster:end -->
30
30
 
31
- `check-queue-wrap` is for a queue you hard-wrap; if you keep it unwrapped, one line per paragraph as the template ships, leave it out and register canon-kit's `check-md-unwrapped` instead. They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and their `# graph:` manifests put them in the generated pre-commit hook, written by `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names.
31
+ `check-queue-wrap` is for a queue you hard-wrap; if you keep it unwrapped, one line per paragraph as the template ships, leave it out and register canon-kit's `check-md-unwrapped` instead. They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and the pre-commit hook runs those their `# graph:` manifests trigger, read at commit. `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes that hook once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered.
32
32
 
33
33
  2. Give your queue file the section skeleton — copy `templates/TASK-QUEUE.md` and fill it in (it shows one example entry per grammar shape). The default sections are `New Features` / `Technical Debt` (active), `Deferred`, `Done` — plus an optional `Icebox` tier between the last two for backlogs whose carry weight has become the problem, off by default (`QUEUE_KIT_ICEBOX_SECTION`).
34
34
 
@@ -32,7 +32,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
32
32
  ```
33
33
  <!-- gate-roster:end -->
34
34
 
35
- Regenerate the hook + graph artifacts: `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names. `check-docs-render-fidelity` needs ruby plus the kramdown-parser-gfm gem (the Pages parser), and `check-docs-liquid-parse` needs ruby with the `liquid` gem; a consumer without a published docs site simply omits both, and one whose host runs no Liquid omits the second.
35
+ The pre-commit hook runs the gates their `# graph:` manifests trigger, read at commit; `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes it once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered. `check-docs-render-fidelity` needs ruby plus the kramdown-parser-gfm gem (the Pages parser), and `check-docs-liquid-parse` needs ruby with the `liquid` gem; a consumer without a published docs site simply omits both, and one whose host runs no Liquid omits the second.
36
36
 
37
37
  2. Establish the host source of truth — a CNAME file holding exactly one host line, at the path `SITE_KIT_CNAME` names (site-kit/SPEC.md owns its fallback).
38
38
 
@@ -1,3 +1,3 @@
1
1
  # graph: couples=knob:SITE_KIT_CNAME dir=one valve=none tier=precommit trigger=*
2
2
  # install: on-surface
3
- # spec: site-kit/SPEC.md §check-docs-cname-parity — the docs/CNAME host is the single gated source of truth for the docs host; no tracked file names a configured host alias other than that host in a URL
3
+ # spec: site-kit/SPEC.md §check-docs-cname-parity — the host in the CNAME file SITE_KIT_CNAME names is the single gated source of truth for the docs host; no tracked file names a configured host alias other than that host in a URL
@@ -1,3 +1,3 @@
1
- # graph: couples=knob:SITE_KIT_DOCS_DIR/*.md,knob:SITE_KIT_DOCS_DIR/*/index.md,knob:SITE_KIT_DOCS_DIR/posts/*.md,knob:SITE_KIT_DOCS_DIR/_layouts/*,knob:SITE_KIT_DOCS_DIR/_includes/*,knob:SITE_KIT_DOCS_DIR/_posts/* dir=one valve=none tier=precommit
1
+ # graph: couples=knob:SITE_KIT_DOCS_DIR/*.md,knob:SITE_KIT_DOCS_DIR/*/index.md,knob:SITE_KIT_DOCS_DIR/posts/*.md,knob:SITE_KIT_LIQUID_TEMPLATES dir=one valve=none tier=precommit
2
2
  # install: on-surface
3
- # spec: site-kit/SPEC.md §check-docs-liquid-parse — every tracked docs file the Pages build runs Liquid over (markdown pages, front-matter files, and the _layouts, _includes and _posts templates) parses under the parser SITE_KIT_LIQUID_PARSER names; a parser that fails its probe or returns a short count refuses
3
+ # spec: site-kit/SPEC.md §check-docs-liquid-parse — every tracked docs file the Pages build runs Liquid over (markdown pages, front-matter files, and the templates SITE_KIT_LIQUID_TEMPLATES names) parses under the parser SITE_KIT_LIQUID_PARSER names; a parser that fails its probe or returns a short count refuses
@@ -1 +1,2 @@
1
1
  alias 'alt.example'
2
+ other than the tree/CNAME host:
@@ -1,2 +1,2 @@
1
1
  docs/span.md: Liquid syntax error (line 3): Variable '{{
2
- docs/_layouts/default.html: Liquid syntax error (line 5): 'if' tag was never closed
2
+ docs/_templates/default.html: Liquid syntax error (line 5): 'if' tag was never closed
@@ -0,0 +1,3 @@
1
+ SITE_KIT_LIQUID_TEMPLATES[] = docs/_templates/*
2
+ SITE_KIT_LIQUID_TEMPLATES[] = docs/_includes/*
3
+ SITE_KIT_LIQUID_TEMPLATES[] = docs/_posts/*
@@ -0,0 +1,4 @@
1
+ <html><body>
2
+ {% if page.title %}<h1>{{ page.title }}</h1>
3
+ {{ content }}
4
+ </body></html>
@@ -0,0 +1,3 @@
1
+ SITE_KIT_LIQUID_TEMPLATES[] = docs/_templates/*
2
+ SITE_KIT_LIQUID_TEMPLATES[] = docs/_includes/*
3
+ SITE_KIT_LIQUID_TEMPLATES[] = docs/_posts/*
@@ -1,3 +1,4 @@
1
1
  # spec: companion/SPEC.md §The OpenSpec recipe — composed by `init --recipe` into the consumer's scripts/canon-config.knobs
2
2
  CANON_KIT_PROSE_SURFACE_GLOBS[] = openspec/**/*.md
3
3
  CANON_KIT_TEMPORAL_EXEMPT_PATHS[] = openspec/changes/**
4
+ CANON_KIT_TASK_LIST_GLOBS[] = openspec/changes/*/tasks.md
@@ -1,3 +1,6 @@
1
1
  # spec: companion/SPEC.md §The Spec Kit recipe — composed by `init --recipe` into the consumer's scripts/canon-config.knobs
2
2
  CANON_KIT_PROSE_SURFACE_GLOBS[] = specs/**/*.md
3
3
  CANON_KIT_FENCE_PROGRAMS_EXTRA[] = Task:
4
+ CANON_KIT_TASK_LIST_GLOBS[] = specs/*/tasks.md
5
+ CANON_KIT_TASK_LABEL_CITES[story] = \[US([0-9]+)\]
6
+ CANON_KIT_TASK_LABEL_DEFINES[story] = ^### User Story ([0-9]+)[ ]