checkwright 0.26.0 → 0.27.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 +7 -7
- package/bin/checkwright.ps1 +59 -40
- package/bin/checkwright.sh +53 -53
- package/package.json +3 -3
- 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 -0
- package/payload/artifact/targets.list +29 -16
- 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 -0
- package/payload/canon-kit/README.md +3 -1
- package/payload/canon-kit/checks/check-citation-link.gate +4 -0
- package/payload/canon-kit/checks/check-comment-tier.gate +1 -1
- package/payload/canon-kit/checks/check-deprecation-task.gate +1 -1
- package/payload/canon-kit/checks/check-docs-page-repeat.gate +4 -0
- package/payload/canon-kit/checks/check-spec-pointer.gate +1 -1
- package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
- package/payload/canon-kit/gate-tests/check-citation-link/bad/expect.txt +6 -0
- package/payload/canon-kit/gate-tests/check-citation-link/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-citation-link/bad/site/page.md +13 -0
- package/payload/canon-kit/gate-tests/check-citation-link/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-citation-link/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-citation-link/good/site/page.md +28 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/.github/workflows/ci.yml +15 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/.github/workflows/ci.yml +23 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/config.yml +2 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/page.md +8 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/page.md +24 -0
- package/payload/context-kit/README.md +2 -2
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +2 -0
- package/payload/context-kit/templates/session-context.sh +1 -1
- package/payload/delegation-kit/README.md +6 -6
- package/payload/doctrine-kit/README.md +1 -1
- package/payload/drift-kit/README.md +9 -9
- package/payload/evidence-kit/README.md +8 -4
- package/payload/gate-sdk/README.md +4 -4
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/enforcement.md +2 -2
- package/payload/gate-sdk/templates/gates-workflow.yml +6 -35
- package/payload/guard-kit/README.md +4 -4
- package/payload/guard-kit/gate-tests/scratch-run.test.sh +3 -2
- package/payload/lifecycle-kit/README.md +10 -8
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +6 -4
- package/payload/lifecycle-kit/gate-tests/capture-linked-worktree.test.sh +53 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +23 -20
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +11 -4
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -1
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +11 -4
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +25 -17
- package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +13 -2
- package/payload/lifecycle-kit/templates/lead.md +6 -2
- package/payload/queue-kit/README.md +2 -2
- package/payload/site-kit/README.md +5 -2
- package/payload/site-kit/checks/check-docs-collapsible.gate +3 -0
- package/payload/site-kit/gate-tests/check-docs-collapsible/bad/docs/regions.md +23 -0
- package/payload/site-kit/gate-tests/check-docs-collapsible/bad/expect.txt +4 -0
- package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/plain.md +3 -0
- package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/regions.md +26 -0
- package/payload/site-kit/gate-tests/check-docs-collapsible/good/expect.txt +1 -0
- package/payload/site-kit/templates/site-health.yml +10 -101
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: kit/SPEC.md §Front matter is not prose
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# A page whose citations are links
|
|
6
|
+
|
|
7
|
+
The floor is [`kit/SPEC.md` §Requirements](kit/SPEC.md#requirements), and later mentions of `kit/SPEC.md` §Requirements stay plain text.
|
|
8
|
+
|
|
9
|
+
The rules live in [`CLAUDE.md` §Housekeeping](https://example.invalid/owner/repo/blob/master/CLAUDE.md#housekeeping).
|
|
10
|
+
|
|
11
|
+
The state machine is [kit/SPEC.md §The state machine](kit/SPEC.md#the-state-machine--stamps-and-the-cursor), cited by its lead clause.
|
|
12
|
+
|
|
13
|
+
See [Choosing a profile](#choosing-a-profile) on this page.
|
|
14
|
+
|
|
15
|
+
A citation grammar names `<path> §<heading>`, a §<heading> placeholder, and `CANON §X` quoted in a code span.
|
|
16
|
+
|
|
17
|
+
<!-- kit/SPEC.md §A commented citation -->
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
kit/SPEC.md §A fenced citation
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
<!-- citation-link-exempt: a quoted directive line the fixture shows as prose -->
|
|
24
|
+
contract: kit/SPEC.md §Valved
|
|
25
|
+
|
|
26
|
+
## Choosing a profile
|
|
27
|
+
|
|
28
|
+
Here kit/SPEC.md §Requirements, then kit/SPEC.md §Requirements again.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: fixture
|
|
2
|
+
on: push
|
|
3
|
+
|
|
4
|
+
# this workflow comment narrates the job below and carries no directive
|
|
5
|
+
jobs:
|
|
6
|
+
j:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- name: body
|
|
10
|
+
run: |
|
|
11
|
+
cat <<'EOF'
|
|
12
|
+
# a heredoc body line, which is not a comment
|
|
13
|
+
EOF
|
|
14
|
+
# this shell comment after an indented heredoc terminator is prose
|
|
15
|
+
echo done
|
|
@@ -4,3 +4,5 @@ bad.gate:4: this descriptor comment cites no owning section and carries no direc
|
|
|
4
4
|
bad.rs:3: this crate comment restates the line below it and cites no owning section
|
|
5
5
|
templates/bad-tmpl.sh:2: this templates stub comment paraphrases its own body and carries no directive
|
|
6
6
|
.workflow/fixture-state.txt:3: this workflow-tier comment is prose the txt surface never blesses
|
|
7
|
+
.github/workflows/ci.yml:4: this workflow comment narrates the job below and carries no directive
|
|
8
|
+
.github/workflows/ci.yml:14: this shell comment after an indented heredoc terminator is prose
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# spec: some/SPEC.md §workflow — an actions-shaped workflow's comments are directives
|
|
2
|
+
name: fixture
|
|
3
|
+
on: push
|
|
4
|
+
|
|
5
|
+
# enforce: class=monitor fixture surface — the monitor marker is blessed by name
|
|
6
|
+
jobs:
|
|
7
|
+
j:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
# action-permissions-exempt: the workflow valve is blessed by name
|
|
10
|
+
steps:
|
|
11
|
+
# spec: some/SPEC.md §step — a pointer sits on the line above the step it binds
|
|
12
|
+
- name: body
|
|
13
|
+
env:
|
|
14
|
+
# gh-repo-exempt: the second workflow valve is blessed by name
|
|
15
|
+
GH_TOKEN: fixture
|
|
16
|
+
run: |
|
|
17
|
+
# shellcheck disable=SC2034
|
|
18
|
+
unused=1
|
|
19
|
+
cat <<'EOF'
|
|
20
|
+
# this hash sits inside an indented heredoc body and is not a comment
|
|
21
|
+
EOF
|
|
22
|
+
# comment-tier-exempt: a genuinely local note read after the indented terminator
|
|
23
|
+
echo done
|
|
@@ -1 +1 @@
|
|
|
1
|
-
COMMENT-TIER: clean (
|
|
1
|
+
COMMENT-TIER: clean (6 governed source(s)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DOCS-PAGE-REPEAT: clean (1 page(s), 2 link(s), 3 sentence(s)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Fixture
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# A page that states each thing once
|
|
6
|
+
|
|
7
|
+
The [install section](guide.md#install) and the [upgrade section](guide.md#upgrade) are two targets of one page.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
# a fence may repeat: see [install](guide.md#install)
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
| Row | Link |
|
|
14
|
+
|---|---|
|
|
15
|
+
| one | [install](guide.md#install) |
|
|
16
|
+
|
|
17
|
+
<!-- a comment may repeat: [install](guide.md#install) -->
|
|
18
|
+
|
|
19
|
+
Run the gate before every single commit you make here.
|
|
20
|
+
|
|
21
|
+
<!-- page-repeat-exempt: the fixture's deliberate keep -->
|
|
22
|
+
Run the gate before every single commit you make here.
|
|
23
|
+
|
|
24
|
+
This sentence has exactly seven words here. This sentence has exactly seven words here.
|
|
@@ -4,7 +4,7 @@ Token-economics-aware context management for stateless agent sessions: an index-
|
|
|
4
4
|
|
|
5
5
|
Why: a stateless session pays for context twice. The *on-demand* cost is opening a whole SPEC or source file when one section was needed — the index tools cut that ("index, then read the one you need"). The *standing* cost is the always-loaded surface (the instructions file, the session-start hook output) where every added line is a recurring per-session tax that grows silently, because no single session sees the trend — the meter, the gate, and the close-stage pass make that growth visible and actionable. See [SPEC.md](https://checkwright.dev/context-kit/SPEC) for the full contracts.
|
|
6
6
|
|
|
7
|
-
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is gate-sdk/SPEC.md §Consumer payload.
|
|
7
|
+
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#consumer-payload).
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -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); `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).
|
|
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)).
|
|
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
|
|
|
@@ -24,6 +24,8 @@ The figures are kit-share only — what a kit itself ships. A consumer's own bin
|
|
|
24
24
|
|
|
25
25
|
## Per-kit footprint
|
|
26
26
|
|
|
27
|
+
Every top-level directory carrying a `SPEC.md` takes a row, kit or not, and one that ships nothing into context shows an empty tier in both columns.
|
|
28
|
+
|
|
27
29
|
| kit | always-loaded | load-triggered |
|
|
28
30
|
| --- | --- | --- |
|
|
29
31
|
| demo-kit | 59cp · ~15t | 64cp · ~16t |
|
|
@@ -105,7 +105,7 @@ done
|
|
|
105
105
|
# spec: context-kit/SPEC.md §The session-context hook — step 6 scratch sweep
|
|
106
106
|
TMP_DIR="${GATE_SDK_TMP_DIR:-.tmp}"
|
|
107
107
|
if [[ -d "$TMP_DIR" ]]; then
|
|
108
|
-
swept="$(find "$TMP_DIR" -mindepth 1 ! -name .gitkeep -mmin +1440 -depth -print -delete 2>/dev/null | wc -l | tr -d ' ')"
|
|
108
|
+
swept="$(find "$TMP_DIR" -mindepth 1 ! -name .gitkeep ! -name .gitignore -mmin +1440 -depth -print -delete 2>/dev/null | wc -l | tr -d ' ')"
|
|
109
109
|
if [[ "${swept:-0}" -gt 0 ]]; then
|
|
110
110
|
echo "Tidied $swept stale scratch path(s) from $TMP_DIR/."
|
|
111
111
|
echo
|
|
@@ -4,7 +4,7 @@ Safe delegated-`Agent` execution for budget-bounded sessions. A supervisor dispa
|
|
|
4
4
|
|
|
5
5
|
Why: three failure surfaces dominate delegation. **Shared mutable state** — two committing agents race the git index and one sweeps the other's staged files under the wrong message (the index and HEAD are shared for *every* committing agent, disjoint source files notwithstanding). **Interrupted long units** — a usage-window wall fires mid-flight and the uncommitted investigation dies with the session. **Untrustworthy self-reports** — a sub-agent's "passed" claim, or a gate quietly weakened to make its commit pass. The protocol closes all three, and those pieces are its mechanical floors. See [SPEC.md](https://checkwright.dev/delegation-kit/SPEC) for the full contracts.
|
|
6
6
|
|
|
7
|
-
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is gate-sdk/SPEC.md §Consumer payload.
|
|
7
|
+
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#consumer-payload).
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -23,14 +23,14 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
|
|
|
23
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.
|
|
24
24
|
|
|
25
25
|
2. Bind the protocol skill and add its resident pointer:
|
|
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 §One template, a resident pointer).
|
|
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)).
|
|
27
27
|
- Add a `### Agent execution` block to your `CLAUDE.md`: your delegation pre-authorization sentence plus the `/agent-execution` pointer. The protocol loads behind that trigger, so the block stays a pointer, never a digest.
|
|
28
28
|
|
|
29
|
-
3. Wire a `usage.txt` producer so `usage-verdict` has a snapshot to read — point your harness `statusLine` at `bash gate-sdk/bin/run-gates.sh --statusline`, point `DELEGATION_KIT_REFRESH_CMD` at the gate binary `GATE_SDK_NATIVE_BIN` names with its `--usage-poll` arm so every verdict call refreshes the snapshot on demand (or wire the same poller under a timer), keeping it fresh while a supervising session sits static, or have any producer honour the snapshot contract (SPEC §The usage.txt contract). The statusline producer also renders a status bar, whose field set is SPEC §The statusline arm's; the three mandatory snapshot lines are the floor, and supplying the optional weekly keys arms the second (7-day) pause axis.
|
|
29
|
+
3. Wire a `usage.txt` producer so `usage-verdict` has a snapshot to read — point your harness `statusLine` at `bash gate-sdk/bin/run-gates.sh --statusline`, point `DELEGATION_KIT_REFRESH_CMD` at the gate binary `GATE_SDK_NATIVE_BIN` names with its `--usage-poll` arm so every verdict call refreshes the snapshot on demand (or wire the same poller under a timer), keeping it fresh while a supervising session sits static, or have any producer honour the snapshot contract ([SPEC.md §The usage.txt contract](https://checkwright.dev/delegation-kit/SPEC#the-usagetxt-contract)). The statusline producer also renders a status bar, whose field set is [SPEC.md §The statusline arm](https://checkwright.dev/delegation-kit/SPEC#the-statusline-arm)'s; the three mandatory snapshot lines are the floor, and supplying the optional weekly keys arms the second (7-day) pause axis.
|
|
30
30
|
|
|
31
|
-
4. Optional — wire the Agent budget guard: register `bash gate-sdk/bin/run-gates.sh --hook agent-budget-guard` under `PreToolUse` matcher `Agent` in `.claude/settings.json`. There is nothing to copy: the guard is a binary arm, and the `command` field names it directly. It fires `usage-verdict` at every dispatch, blocking on a PAUSE verdict and advising otherwise (SPEC §The delegation model). Unwired, it is inert.
|
|
31
|
+
4. Optional — wire the Agent budget guard: register `bash gate-sdk/bin/run-gates.sh --hook agent-budget-guard` under `PreToolUse` matcher `Agent` in `.claude/settings.json`. There is nothing to copy: the guard is a binary arm, and the `command` field names it directly. It fires `usage-verdict` at every dispatch, blocking on a PAUSE verdict and advising otherwise ([SPEC.md §The delegation model](https://checkwright.dev/delegation-kit/SPEC#the-delegation-model)). Unwired, it is inert.
|
|
32
32
|
|
|
33
|
-
5. Optional — wire the turn-end liveness hook: register `bash gate-sdk/bin/run-gates.sh --hook subagent-stop-liveness` under `SubagentStop` in `.claude/settings.json` (that event takes no matcher). It logs one line per subagent turn end saying whether any launch record named a live producer, and **refuses the turn end** — exit 2, its stderr the blocking reason — when that reading is a refusal verdict, or while the payload's `background_tasks` shows a running `shell` task of its own; it emits no hook JSON on either path, except a `systemMessage` warning when a knob it reads cannot resolve and the turn end went unguarded (SPEC §The turn-end liveness hook). There is no knob: unwiring is the valve. Unwired, it is inert; wiring it is a permission-surface change, so it is yours to make.
|
|
33
|
+
5. Optional — wire the turn-end liveness hook: register `bash gate-sdk/bin/run-gates.sh --hook subagent-stop-liveness` under `SubagentStop` in `.claude/settings.json` (that event takes no matcher). It logs one line per subagent turn end saying whether any launch record named a live producer, and **refuses the turn end** — exit 2, its stderr the blocking reason — when that reading is a refusal verdict, or while the payload's `background_tasks` shows a running `shell` task of its own; it emits no hook JSON on either path, except a `systemMessage` warning when a knob it reads cannot resolve and the turn end went unguarded ([SPEC.md §The turn-end liveness hook](https://checkwright.dev/delegation-kit/SPEC#the-turn-end-liveness-hook)). There is no knob: unwiring is the valve. Unwired, it is inert; wiring it is a permission-surface change, so it is yours to make.
|
|
34
34
|
|
|
35
35
|
6. Optional — retune: copy `templates/delegation-config.knobs` into your gates dir and override the budget thresholds, the gate-file globs, or the meta-layer prefixes. Defaults are this repo's single-operator layout.
|
|
36
36
|
|
|
@@ -61,4 +61,4 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
|
|
|
61
61
|
"$gates" --run-gate-tests delegation-kit/gate-tests delegation-kit/checks # every gate's fixture pair
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
The `usage-verdict` decision table and the `usage-trend` assertions are not shell runners: they live in the gate binary's crate test lane, where they read the same `usage-tests/` fixtures off disk and reach both subjects **in process** — no shell subject remains on either (SPEC §Testing).
|
|
64
|
+
The `usage-verdict` decision table and the `usage-trend` assertions are not shell runners: they live in the gate binary's crate test lane, where they read the same `usage-tests/` fixtures off disk and reach both subjects **in process** — no shell subject remains on either ([SPEC.md §Testing](https://checkwright.dev/delegation-kit/SPEC#testing)).
|
|
@@ -4,7 +4,7 @@ The experience-packaging rung: the cross-kit delivery doctrine the other kits en
|
|
|
4
4
|
|
|
5
5
|
The deliverable — [`DOCTRINE.md`](DOCTRINE.md) — carries each rule as its statement, why it holds under coding-agent work, and a pointer to the kit mechanism that enforces it. It is referenced in place, never copy-installed: a consumer's always-loaded agent file gains a one-line-per-rule digest and a markdown link to the vendored doctrine, and re-vendoring the kit *is* the doctrine upgrade. See [SPEC.md](https://checkwright.dev/doctrine-kit/SPEC#the-doctrine-deliverable) for why that reference-not-copy boundary is the mechanism.
|
|
6
6
|
|
|
7
|
-
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is gate-sdk/SPEC.md §Consumer payload.
|
|
7
|
+
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#consumer-payload).
|
|
8
8
|
|
|
9
9
|
The installer — the gate binary's `--install-doctrine` arm — inserts or replaces the reference block between fixed markers, idempotently. It does not carry the digest: each bullet is derived from the summary its rule states in a `*Digest:*` trailer, so the digest names every methodology rule by construction and a rule cannot land in the doctrine but miss the block every consumer installs. The gate — `check-doctrine-registration` — holds the block honest: it asserts the always-loaded file carries the markdown link *and* keeps its methodology-rule digest in per-rule lockstep with the doctrine (each rule digested or declared trimmed, no digest bullet orphaned), and that each rule carries its one well-formed per-rule trailer — `*Stages:*` routing on the craft register, `*Digest:*` on the methodology register — fail-closed when a scanned file or heading is missing.
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ Drift reporting for coding-agent sessions. Gates block what a single diff makes
|
|
|
4
4
|
|
|
5
5
|
Advisory by construction: the report exits 0, never fails a session, and reads **trend, not level** — a KPI's absolute value is noise; its direction across sessions is the signal. See [SPEC.md](https://checkwright.dev/drift-kit/SPEC) for the report frame, the plugin contract, the bundled KPI set, and the knowledge-friction loop.
|
|
6
6
|
|
|
7
|
-
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is gate-sdk/SPEC.md §Consumer payload.
|
|
7
|
+
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#consumer-payload).
|
|
8
8
|
|
|
9
9
|
drift-kit registers **no gates**: its surface is a set of advisory `--emit` arms and a KPI registry, so nothing joins `gates.list`. It follows gate-sdk's resolution and smoke conventions without depending on its registry.
|
|
10
10
|
|
|
@@ -23,11 +23,11 @@ Vendor the kit beside [gate-sdk](../gate-sdk/), then:
|
|
|
23
23
|
|
|
24
24
|
2. Wire the trend line — point context-kit's session-context hook at the report by setting `CONTEXT_KIT_DRIFT_REPORT` to the arm name `drift-report` (or the `DRIFT_ARM` default in your hook copy). The hook runs the arm with `--trend` and prints one line; absent the variable, the line is silently skipped.
|
|
25
25
|
|
|
26
|
-
Configuration follows the established kit pattern — override any knob in `drift-config.knobs` (registry path, extra KPI dirs, the queue/log/timings surfaces, the metric dir holding the persistent trend logs, the Done/Deferred section headings); defaults are this repo's layout. Keep the metric dir (`DRIFT_KIT_METRIC_DIR`; drift-kit/SPEC.md §Layout and configuration owns the default) gitignored — its trend samples carry account and session identifiers.
|
|
26
|
+
Configuration follows the established kit pattern — override any knob in `drift-config.knobs` (registry path, extra KPI dirs, the queue/log/timings surfaces, the metric dir holding the persistent trend logs, the Done/Deferred section headings); defaults are this repo's layout. Keep the metric dir (`DRIFT_KIT_METRIC_DIR`; [drift-kit/SPEC.md §Layout and configuration](https://checkwright.dev/drift-kit/SPEC#layout-and-configuration) owns the default) gitignored — its trend samples carry account and session identifiers.
|
|
27
27
|
|
|
28
28
|
### The knowledge-friction loop (optional)
|
|
29
29
|
|
|
30
|
-
`kpi-knowledge-friction` measures re-derivations a session had to make because no doc owned the fact (drift-kit/SPEC.md §The knowledge-friction loop). It shows `n/a` until you install the capture half:
|
|
30
|
+
`kpi-knowledge-friction` measures re-derivations a session had to make because no doc owned the fact ([drift-kit/SPEC.md §The knowledge-friction loop](https://checkwright.dev/drift-kit/SPEC#the-knowledge-friction-loop)). It shows `n/a` until you install the capture half:
|
|
31
31
|
|
|
32
32
|
1. Add one bullet to your always-loaded instructions file: *the moment you catch yourself re-deriving a fact off a non-owning surface, append* `<date> <fact> ← <surface>` *to `.workflow/knowledge-friction.log`.* That bullet is the loop's only hook — earn its cost by the log actually filling. The `--emit kfric [--] "<fact>" "<surface>"` arm on the gate binary `GATE_SDK_NATIVE_BIN` names is the shipped affordance that stamps that grammar prompt-free — both fields required non-empty in that order, `--` files one beginning with a dash, and a refusal, `--help` included, prints the usage at exit 2. Raw append stays legal (drift-kit/SPEC.md §The knowledge-friction loop).
|
|
33
33
|
2. Gitignore the log (per-iteration scratch) and its drain companions (`.workflow/*.drain`, `.workflow/*.drain.part`), and splice `templates/close-knowledge.md` into your close skill so each entry is re-verified, becomes the tiering edit or the correction that outcome selects, and the drained log is removed — its reclaim path.
|
|
@@ -48,17 +48,17 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
|
|
|
48
48
|
"$gates" --emit install-evidence # the aggregate-only projection over that record, for a consumer to pin behind a freshness gate
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
`--emit overhead-meter` is the overhead meter (drift-kit/SPEC.md §The overhead meter): a byte-proxy over a session transcript that reports what fraction of the volume was governance versus task work, logging one line per session for `kpi-overhead` — the methodology's own cost, measured so efficiency claims cut both ways. Advisory and content-free: it emits counts only, never transcript text.
|
|
51
|
+
`--emit overhead-meter` is the overhead meter ([drift-kit/SPEC.md §The overhead meter](https://checkwright.dev/drift-kit/SPEC#the-overhead-meter)): a byte-proxy over a session transcript that reports what fraction of the volume was governance versus task work, logging one line per session for `kpi-overhead` — the methodology's own cost, measured so efficiency claims cut both ways. Advisory and content-free: it emits counts only, never transcript text.
|
|
52
52
|
|
|
53
|
-
The `trajectory` emit arm is the published-evidence extractor (drift-kit/SPEC.md §The published-evidence extractor): a pure function of committed git history that emits one row per closed iteration — stages run, commit shape, amendment latency, validate attestations, gate-roster growth — for a consumer to pin behind a freshness gate.
|
|
53
|
+
The `trajectory` emit arm is the published-evidence extractor ([drift-kit/SPEC.md §The published-evidence extractor](https://checkwright.dev/drift-kit/SPEC#the-published-evidence-extractor)): a pure function of committed git history that emits one row per closed iteration — stages run, commit shape, amendment latency, validate attestations, gate-roster growth — for a consumer to pin behind a freshness gate.
|
|
54
54
|
|
|
55
|
-
`--emit queue-flow` is the queue-flow arm (drift-kit/SPEC.md §The queue-flow arm): `kpi-queue-net-delta`'s filed and drained counts over each of the trailing closed iterations, and their mean inflow, the figure a scope session weighs a unit set against.
|
|
55
|
+
`--emit queue-flow` is the queue-flow arm ([drift-kit/SPEC.md §The queue-flow arm](https://checkwright.dev/drift-kit/SPEC#the-queue-flow-arm)): `kpi-queue-net-delta`'s filed and drained counts over each of the trailing closed iterations, and their mean inflow, the figure a scope session weighs a unit set against.
|
|
56
56
|
|
|
57
|
-
`--emit stage-economics` is the stage-economics meter (drift-kit/SPEC.md §The stage-economics meter): it prices real spend by lifecycle stage × model × iteration by joining WORKFLOW-STATE stamps to their session transcripts to a consumer-supplied price table, keeping the cache-read burn lever visible close-over-close. Copy `templates/price-table.tsv` beside your gates dir and fill your model roster (the roster is consumer config, never a kit literal — the provenance seam); absent it, cost degrades to `n/a` and tokens still report. The `/economics` skill (`templates/economics.md`, materialized as `.claude/commands/economics.md`) chains overhead-meter → stage-economics into one post-iteration cost narrative — a reporting ritual the close skill may invoke, not a lifecycle stage and not a gate. If your decisions read the log, run the meter at your terminal stage — its rows are dated by their stamps, so a re-run at every close re-dates nothing — and `kpi-stage-economics-lag` shows how many closes have gone unpriced when that feed is skipped.
|
|
57
|
+
`--emit stage-economics` is the stage-economics meter ([drift-kit/SPEC.md §The stage-economics meter](https://checkwright.dev/drift-kit/SPEC#the-stage-economics-meter)): it prices real spend by lifecycle stage × model × iteration by joining WORKFLOW-STATE stamps to their session transcripts to a consumer-supplied price table, keeping the cache-read burn lever visible close-over-close. Copy `templates/price-table.tsv` beside your gates dir and fill your model roster (the roster is consumer config, never a kit literal — the provenance seam); absent it, cost degrades to `n/a` and tokens still report. The `/economics` skill (`templates/economics.md`, materialized as `.claude/commands/economics.md`) chains overhead-meter → stage-economics into one post-iteration cost narrative — a reporting ritual the close skill may invoke, not a lifecycle stage and not a gate. If your decisions read the log, run the meter at your terminal stage — its rows are dated by their stamps, so a re-run at every close re-dates nothing — and `kpi-stage-economics-lag` shows how many closes have gone unpriced when that feed is skipped.
|
|
58
58
|
|
|
59
|
-
`--emit file-install` and `--emit install-evidence` are the two halves of the install-observation channel (drift-kit/SPEC.md §The install-observation record and §The install-evidence projection): the first appends one dated line per install, per red a non-author hit, and per retention check-in to a private, gitignored record under your metric dir; the second emits an aggregate-only markdown table set over it — every figure with its denominator, no row keyed to a single install, and `<id>`, `<profile>` and `<floor>` never published. The field set is fixed before the first observation on purpose: a red nobody wrote down was never observed, so the evidence cannot be collected retrospectively. Closed-set fields are enforced at capture, so the arm's refusals are the whole observation protocol.
|
|
59
|
+
`--emit file-install` and `--emit install-evidence` are the two halves of the install-observation channel ([drift-kit/SPEC.md §The install-observation record](https://checkwright.dev/drift-kit/SPEC#the-install-observation-record) and [§The install-evidence projection](https://checkwright.dev/drift-kit/SPEC#the-install-evidence-projection)): the first appends one dated line per install, per red a non-author hit, and per retention check-in to a private, gitignored record under your metric dir; the second emits an aggregate-only markdown table set over it — every figure with its denominator, no row keyed to a single install, and `<id>`, `<profile>` and `<floor>` never published. The field set is fixed before the first observation on purpose: a red nobody wrote down was never observed, so the evidence cannot be collected retrospectively. Closed-set fields are enforced at capture, so the arm's refusals are the whole observation protocol.
|
|
60
60
|
|
|
61
|
-
A KPI plugin is `kpi-<name>.sh`, resolved through `kpis.list` against your KPI dirs, then each vendored kit's `kpis/`, then the binary's built-in members — three tiers, consumer-first. Add your own by dropping a plugin in your gates dir and naming it in the registry; shadow a bundled one with a same-named file. Your plugin is executed directly and reads the exported `DRIFT_KIT_*` environment, both unchanged by the bundled set moving in-crate. The bundled set (drift-kit/SPEC.md §Bundled KPIs) carries, as lead KPIs, `kpi-task-split`, `kpi-queue-net-delta`, `kpi-gate-backlog`, `kpi-amendment-age`, `kpi-deferred-age`, `kpi-prompt-friction`, `kpi-always-loaded`, `kpi-settings-local`, `kpi-gate-runtime`, `kpi-overhead`, `kpi-price-table-age` and `kpi-stage-economics-lag`; and as lag KPIs, `kpi-knowledge-friction` (fed by the loop below) and `kpi-incident-recurrence` (fed by the queue's `[recurrence:]` tags).
|
|
61
|
+
A KPI plugin is `kpi-<name>.sh`, resolved through `kpis.list` against your KPI dirs, then each vendored kit's `kpis/`, then the binary's built-in members — three tiers, consumer-first. Add your own by dropping a plugin in your gates dir and naming it in the registry; shadow a bundled one with a same-named file. Your plugin is executed directly and reads the exported `DRIFT_KIT_*` environment, both unchanged by the bundled set moving in-crate. The bundled set ([drift-kit/SPEC.md §Bundled KPIs](https://checkwright.dev/drift-kit/SPEC#bundled-kpis)) carries, as lead KPIs, `kpi-task-split`, `kpi-queue-net-delta`, `kpi-gate-backlog`, `kpi-amendment-age`, `kpi-deferred-age`, `kpi-prompt-friction`, `kpi-always-loaded`, `kpi-settings-local`, `kpi-gate-runtime`, `kpi-overhead`, `kpi-price-table-age` and `kpi-stage-economics-lag`; and as lag KPIs, `kpi-knowledge-friction` (fed by the loop below) and `kpi-incident-recurrence` (fed by the queue's `[recurrence:]` tags).
|
|
62
62
|
|
|
63
63
|
## Test
|
|
64
64
|
|
|
@@ -4,7 +4,7 @@ A held-constant test baseline and a committed per-run evidence manifest for the
|
|
|
4
4
|
|
|
5
5
|
The gates: `check-evidence-baseline` (baseline grammar, blocking-slug liveness, scenario coverage, flip causation), `check-evidence-manifest` (manifest grammar and, where lifecycle drives the tree, close-entry green block + validate-stamp coupling), `check-battery-roster` (the runner doc's battery block against the suite roster) and `check-producer-liveness` (no stage entry while the producer is still running). The tools that drive it are both non-gate arms of the gate binary, reached through gate-sdk's front end: `--run-validate` (the codified spine that runs the suites and records evidence) and `--diff-baseline` (the situational runtime diff). See [SPEC.md](https://checkwright.dev/evidence-kit/SPEC) for the full contracts.
|
|
6
6
|
|
|
7
|
-
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is gate-sdk/SPEC.md §Consumer payload.
|
|
7
|
+
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#consumer-payload).
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -25,11 +25,15 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
|
|
|
25
25
|
|
|
26
26
|
2. Seed the two surfaces — `.workflow/validate-baseline.txt`:
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
```text
|
|
29
|
+
# contract: evidence-kit/SPEC.md §Baseline manifest — held-constant validate baseline: <suite> <scenario> <status> [<slug> [reproduces-at=<rev>]]
|
|
30
|
+
```
|
|
29
31
|
|
|
30
32
|
and `.workflow/validate-evidence.txt`:
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
```text
|
|
35
|
+
# contract: evidence-manifest v1
|
|
36
|
+
```
|
|
33
37
|
|
|
34
38
|
(override the paths with `EVIDENCE_KIT_BASELINE_FILE` / `EVIDENCE_KIT_MANIFEST_FILE`).
|
|
35
39
|
|
|
@@ -39,7 +43,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
|
|
|
39
43
|
|
|
40
44
|
5. Optional lifecycle integration — set `LIFECYCLE_KIT_BOUNDARY_TRUNCATE` to the evidence manifest so a new iteration starts from the contract header, and the manifest gate's close-entry and stamp-coupling assertions arm automatically.
|
|
41
45
|
|
|
42
|
-
6. Wire `check-producer-liveness` on `LIFECYCLE_KIT_ENTRY_PREFLIGHT` rather than in `gates.list`, its command naming the lock file through a name-resolving front end rather than a path (`<stage>=<front end> check-producer-liveness <lock-file>`; SPEC.md §check-evidence-manifest owns why a preflight entry names the gate), at whichever stage entries must not begin while `--run-validate` is still running. It asks whether a producer is in flight, not whether the tree is consistent, so a battery that `--run-validate` itself invokes would red every run against that run's own lock. See SPEC.md §check-producer-liveness.
|
|
46
|
+
6. Wire `check-producer-liveness` on `LIFECYCLE_KIT_ENTRY_PREFLIGHT` rather than in `gates.list`, its command naming the lock file through a name-resolving front end rather than a path (`<stage>=<front end> check-producer-liveness <lock-file>`; [SPEC.md §check-evidence-manifest](https://checkwright.dev/evidence-kit/SPEC#check-evidence-manifest) owns why a preflight entry names the gate), at whichever stage entries must not begin while `--run-validate` is still running. It asks whether a producer is in flight, not whether the tree is consistent, so a battery that `--run-validate` itself invokes would red every run against that run's own lock. See [SPEC.md §check-producer-liveness](https://checkwright.dev/evidence-kit/SPEC#check-producer-liveness).
|
|
43
47
|
|
|
44
48
|
## Test
|
|
45
49
|
|
|
@@ -8,16 +8,16 @@ A **gate** is a small program checking one invariant across one or more governed
|
|
|
8
8
|
- `bin/run-gates.sh` — the aggregate battery: every gate in your `gates.list`, one shot, per-gate timings. Two selectors narrow it without losing the knob files or the output contract: `--only <name>...` runs the gates you name (in registry order; an unregistered name is a refusal), and `--for <path>...` runs the gates coupling to the paths you name, exactly as the generated hook would. On a native-Windows host with no bash on `PATH`, its PowerShell twin `bin/run-gates.ps1` takes the same arguments.
|
|
9
9
|
- the `--run-gate-tests` arm — the golden-fixture runner: every gate proves it accepts a `good/` case and rejects a `bad/` case with the right error text.
|
|
10
10
|
- the `--run-consumer-smoke` arm — the end-to-end check no fixture makes: builds a fresh scratch consumer, runs each vendored kit's `smoke/` installer, and asserts the battery is green under zero config (then red on each kit's crafted violation). Each kit ships a `smoke/` directory to join the party.
|
|
11
|
-
- the `--emit git-hooks` and `--install-hooks` arms — the `pre-commit` and `commit-msg` hooks *generated* from per-gate `# graph:` coupling manifests (`tier=precommit` vs `tier=commit-msg`); adding a gate to a hook is manifest-only, so hook membership cannot drift. A manifest's trigger reach is read with `--for`, never off the field ([SPEC.md](https://checkwright.dev/gate-sdk/SPEC
|
|
11
|
+
- the `--emit git-hooks` and `--install-hooks` arms — the `pre-commit` and `commit-msg` hooks *generated* from per-gate `# graph:` coupling manifests (`tier=precommit` vs `tier=commit-msg`); adding a gate to a hook is manifest-only, so hook membership cannot drift. A manifest's trigger reach is read with `--for`, never off the field ([SPEC.md §Reading a `couples=` field's reach](https://checkwright.dev/gate-sdk/SPEC#reading-a-couples-fields-reach)).
|
|
12
12
|
- `bin/build-native.sh` — the one spelling of the crate build for the binary substrate: resolves the crate from `GATE_SDK_NATIVE_CRATE`, passes trailing arguments to cargo (so a per-target build reuses it), and returns cargo's own exit code. Every reader of that command cites this script rather than copying it.
|
|
13
13
|
- `checks/` — the meta-gates that hold the family to its own standard: ShellCheck self-lint, the output contract, the fail-closed contract, fixture coverage, SPEC↔code assertion coupling, exemption-list hygiene, and manifest / hook / graph-artifact freshness (`check-graph`).
|
|
14
14
|
- `templates/check-skeleton.sh` — the copy-paste skeleton a new gate starts from; `templates/gates-workflow.yml` — the CI workflow a consumer copies to `.github/workflows/gates.yml`.
|
|
15
15
|
|
|
16
|
-
Enforcement runs in three concentric tiers, each an outer backstop for the one inside it: the generated `pre-commit` hook, the local and bypassable inner tier; `run-gates.sh`'s pre-push full battery, whole-tree before the work leaves the machine; and the CI workflow, the server-side backstop that catches a `--no-verify` or a clone that never opted in. Only CI is a guarantee — see SPEC.md §Enforcement tiers for the full definition, including the deferred hosted-attestation rung beyond these three (so CI cannot be edited away in the same change) that is out of scope here.
|
|
16
|
+
Enforcement runs in three concentric tiers, each an outer backstop for the one inside it: the generated `pre-commit` hook, the local and bypassable inner tier; `run-gates.sh`'s pre-push full battery, whole-tree before the work leaves the machine; and the CI workflow, the server-side backstop that catches a `--no-verify` or a clone that never opted in. Only CI is a guarantee — see [SPEC.md §Enforcement tiers](https://checkwright.dev/gate-sdk/SPEC#enforcement-tiers) for the full definition, including the deferred hosted-attestation rung beyond these three (so CI cannot be edited away in the same change) that is out of scope here.
|
|
17
17
|
|
|
18
18
|
The design contracts, the manifest grammar, and each component's full contract live in [SPEC.md](https://checkwright.dev/gate-sdk/SPEC).
|
|
19
19
|
|
|
20
|
-
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is SPEC.md §Consumer payload.
|
|
20
|
+
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [SPEC.md §Consumer payload](https://checkwright.dev/gate-sdk/SPEC#consumer-payload).
|
|
21
21
|
|
|
22
22
|
## Quick start
|
|
23
23
|
|
|
@@ -111,7 +111,7 @@ check-template-registry-parity
|
|
|
111
111
|
|
|
112
112
|
## Requirements
|
|
113
113
|
|
|
114
|
-
The toolchain contract
|
|
114
|
+
The toolchain contract is the table in [`docs/install.md` §Requirements](https://github.com/checkwright/checkwright/blob/master/docs/install.md#requirements), with the contributor's rows in `CONTRIBUTING.md`: the roster and each pinned floor. The constructs that force each floor are [installer/SPEC.md §Requirements](https://github.com/checkwright/checkwright/blob/master/installer/SPEC.md#requirements)'. `check-install-toolchain` holds both tables to `native/src/toolfloor.rs`, the roster's owner, so the requirement has one statement and no copy.
|
|
115
115
|
|
|
116
116
|
## License
|
|
117
117
|
|
|
@@ -8,7 +8,7 @@ nav_child_order: 1
|
|
|
8
8
|
|
|
9
9
|
_Generated by `bash gate-sdk/bin/run-gates.sh --emit enforcement-map`; do not hand-edit — `check-enforcement-fresh` byte-compares this page against the emitter._
|
|
10
10
|
|
|
11
|
-
Every governed surface in this
|
|
11
|
+
Every governed surface in the repository this map is generated from is held by one enforcement class, ordered here from hardest to softest:
|
|
12
12
|
|
|
13
13
|
- A **blocking gate** fails the commit (or, at the `align-only` tier, the consistency audit) — the pre-commit hook is its local reach, the CI workflow its server-side backstop. Owner: `gate-sdk/SPEC.md` §Enforcement tiers.
|
|
14
14
|
- An **advisory KPI** never blocks; it reports a drift trend into the session-context line. Owner: `drift-kit/SPEC.md` §The KPI plugin contract.
|
|
@@ -17,7 +17,7 @@ Every governed surface in this repo is held by one enforcement class, ordered he
|
|
|
17
17
|
- A **validate suite** holds a test baseline that a per-run evidence manifest attests. Owner: `evidence-kit/SPEC.md` §Baseline manifest.
|
|
18
18
|
- A **monitor** watches deployment truth rather than tree truth, so it reds a scheduled run, never a merge. Owner: `site-kit/SPEC.md` §The monitor boundary.
|
|
19
19
|
|
|
20
|
-
The rows below derive from the class registries — the gate registry, the KPI registry, the harness settings hooks, the evidence-suite config, and the `# enforce:` markers a non-gate surface declares itself with — so this map cannot drift from what actually runs. A registry a consumer has not adopted leaves its section absent.
|
|
20
|
+
The rows below derive from the class registries — the gate registry, the KPI registry, the harness settings hooks, the evidence-suite config, and the `# enforce:` markers a non-gate surface declares itself with — so this map cannot drift from what actually runs. A registry a consumer has not adopted leaves its section absent. A surface that lives under no kit directory, the repository's own rather than a kit's, is grouped as `(consumer)`.
|
|
21
21
|
|
|
22
22
|
## Blocking gates
|
|
23
23
|
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
# gate-sdk
|
|
2
|
-
# §Enforcement tiers). The local pre-commit hook is opt-in and bypassable by
|
|
3
|
-
# design (`git commit --no-verify`, or a clone that never ran --install-hooks);
|
|
4
|
-
# this workflow is the authoritative outer backstop that closes both gaps on
|
|
5
|
-
# every push and pull request.
|
|
6
|
-
#
|
|
7
|
-
# Scope boundary: consumer-owned CI stops *bypass* — it cannot stop an agent
|
|
8
|
-
# editing this workflow itself in the same change. A tamper-proof verifier
|
|
9
|
-
# (verifier neutrality) is a hosted service's job, out of scope here rather
|
|
10
|
-
# than overclaimed.
|
|
11
|
-
#
|
|
12
|
-
# Copied out like every gate-sdk template. Checkout + bash only: no caching, no
|
|
13
|
-
# matrix, no third-party actions, so the surface an agent could tamper with
|
|
14
|
-
# stays minimal and reviewable. A tree `init` installed already carries a
|
|
15
|
-
# workflow; to adopt this one instead, copy it to .github/workflows/gates.yml,
|
|
16
|
-
# set your default-branch name below, add a step per non-gate-tests runner
|
|
17
|
-
# (guard tests, a language test suite) after the derived fixture step, and
|
|
18
|
-
# require this workflow's status check before merge (branch-protection recipe:
|
|
19
|
-
# the install-page docs). The fixture suites need no hand-list — they derive
|
|
20
|
-
# from your gate-tests dirs (the `--emit fixture-suites` arm). A filled example is this
|
|
21
|
-
# repo's own .github/workflows/gates.yml.
|
|
1
|
+
# spec: gate-sdk/SPEC.md §templates/gates-workflow.yml — copy-out, fill-ins and scope boundary
|
|
22
2
|
name: gates
|
|
23
3
|
|
|
24
4
|
on:
|
|
@@ -30,28 +10,22 @@ on:
|
|
|
30
10
|
jobs:
|
|
31
11
|
gates:
|
|
32
12
|
runs-on: ubuntu-latest
|
|
33
|
-
#
|
|
34
|
-
# out and does nothing else against the API, so `contents: read` is exact
|
|
35
|
-
# (gate-sdk/SPEC.md §check-action-permissions).
|
|
13
|
+
# spec: gate-sdk/SPEC.md §check-action-permissions
|
|
36
14
|
permissions:
|
|
37
15
|
contents: read
|
|
38
16
|
steps:
|
|
39
|
-
#
|
|
40
|
-
# extractor) need the full commit graph, not a shallow checkout.
|
|
17
|
+
# spec: gate-sdk/SPEC.md §templates/gates-workflow.yml — the full history
|
|
41
18
|
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
|
|
42
19
|
with:
|
|
43
20
|
fetch-depth: 0
|
|
44
|
-
#
|
|
45
|
-
# and no install, so it reads that knob through gate-sdk's own library and
|
|
46
|
-
# carries the result to the later steps rather than naming a path itself.
|
|
21
|
+
# spec: gate-sdk/SPEC.md §lib/gate.sh — gate_native_bin_spelled spells the door
|
|
47
22
|
- name: resolve the gate binary
|
|
48
23
|
run: |
|
|
49
24
|
. gate-sdk/lib/gate.sh
|
|
50
25
|
echo "GATES=$(gate_native_bin_spelled)" >> "$GITHUB_ENV"
|
|
51
26
|
- name: full battery
|
|
52
27
|
run: "$GATES"
|
|
53
|
-
#
|
|
54
|
-
# hand-list to drift as kits are added or renamed.
|
|
28
|
+
# spec: gate-sdk/SPEC.md §templates/gates-workflow.yml — suites derived, never hand-listed
|
|
55
29
|
- name: fixture suites (derived from */gate-tests)
|
|
56
30
|
run: |
|
|
57
31
|
suites="$("$GATES" --emit fixture-suites)" || exit 2
|
|
@@ -62,7 +36,4 @@ jobs:
|
|
|
62
36
|
"$GATES" --run-gate-tests "$tests" $checks || rc=1
|
|
63
37
|
done <<<"$suites"
|
|
64
38
|
exit $rc
|
|
65
|
-
#
|
|
66
|
-
# names (a guard-test runner, a language test suite), e.g.
|
|
67
|
-
# - name: guard-kit decision table
|
|
68
|
-
# run: "$GATES" --run-guard-tests
|
|
39
|
+
# spec: gate-sdk/SPEC.md §templates/gates-workflow.yml — add one step here per further runner
|
|
@@ -4,7 +4,7 @@ Permission-friction reduction for coding-agent sessions. A `PreToolUse` guard de
|
|
|
4
4
|
|
|
5
5
|
Why: a command no allowlist entry matches is decided **out of band** — by interrupting a human, or by a model asked to judge the call — and that decision is invisible to the agent either way, so it cannot notice, count, or fix the friction it causes. The cost is paid per call, out of the operator's attention or out of latency and tokens, and compounds as the command surface grows. The kit closes the loop by making the fall-through set — exactly the commands nothing granted — the one thing that *is* recorded. See [SPEC.md](https://checkwright.dev/guard-kit/SPEC) for the framework, the generic ruleset, what the steering buys, and the triage criterion.
|
|
6
6
|
|
|
7
|
-
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is gate-sdk/SPEC.md §Consumer payload.
|
|
7
|
+
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#consumer-payload).
|
|
8
8
|
|
|
9
9
|
Most of what guard-kit ships is not a gate: its surfaces are hook members of the gate binary and templates. It registers exactly one, which holds the door binding its own steer messages and its settings templates depend on — and, over the surfaces `GUARD_KIT_DOOR_ROOTS` names, holds a door on your own pages to a declared audience.
|
|
10
10
|
|
|
@@ -30,17 +30,17 @@ Vendor the kit beside [gate-sdk](../gate-sdk/), then:
|
|
|
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
|
|
|
33
|
-
Your project's own block/steer/allow rules are a command you write, named by `GUARD_KIT_CONSUMER_RULES_CMD` in `guard-config.knobs`: the shell guard runs it before the generic ruleset, on the harness's own hook protocol, and `--guard-json` on the gate binary is its toolkit (guard-kit/SPEC.md §Consumer rules).
|
|
33
|
+
Your project's own block/steer/allow rules are a command you write, named by `GUARD_KIT_CONSUMER_RULES_CMD` in `guard-config.knobs`: the shell guard runs it before the generic ruleset, on the harness's own hook protocol, and `--guard-json` on the gate binary is its toolkit ([guard-kit/SPEC.md §Consumer rules](https://checkwright.dev/guard-kit/SPEC#consumer-rules)).
|
|
34
34
|
|
|
35
35
|
2. Wire the hooks — merge `templates/settings-hooks.json` into `.claude/settings.json` (the `shell-guard` on `PreToolUse(Bash|PowerShell)`; the optional `wakeup-guard` on `ScheduleWakeup|CronCreate`; and an optional third block showing the path-shaped shape a consumer kit's own guard registers under — lifecycle-kit's `workflow-state-guard` is the shipped instance).
|
|
36
36
|
|
|
37
|
-
Then review `templates/settings-allow.json` against guard-kit/SPEC.md §The recommended allowlist, and union the entries you accept into `.claude/settings.json`'s `permissions.allow`.
|
|
37
|
+
Then review `templates/settings-allow.json` against [guard-kit/SPEC.md §The recommended allowlist](https://checkwright.dev/guard-kit/SPEC#the-recommended-allowlist), and union the entries you accept into `.claude/settings.json`'s `permissions.allow`.
|
|
38
38
|
|
|
39
39
|
3. Gitignore the two scratch logs (`.workflow/prompt-friction.log`, `.workflow/wakeup-attempts.log`) and their drain companions (`.workflow/*.drain`, `.workflow/*.drain.part`) — both logs are per-iteration, drained at close.
|
|
40
40
|
|
|
41
41
|
4. Splice `templates/close-triage.md` into your close-stage skill (it fills lifecycle-kit's `housekeeping` slot, close step 4).
|
|
42
42
|
|
|
43
|
-
Configuration is a knob file — override any knob in `guard-config.knobs`, one `NAME = value`, `NAME[] = element` or `NAME[key] = value` line each (gate-sdk/SPEC.md §The knob file). `--emit knob-roster` on the gate binary `GATE_SDK_NATIVE_BIN` names prints every default, and guard-kit/SPEC.md §Layout and configuration owns each. Defaults are this repo's layout; a knob whose contents are your project's vocabulary defaults to empty. Drop a tool from `GUARD_KIT_SEARCH_TOOLS` when your harness build does not carry it, so the `find` and `git grep` steers never name a tool that is not there. A member you add to `GUARD_KIT_RO_BINS` also takes a `GUARD_KIT_RO_FORMS` declaration of its write and execute forms (guard-kit/SPEC.md §The generic ruleset, rule `ro_pipeline`), or the read-only pipeline grant withholds it.
|
|
43
|
+
Configuration is a knob file — override any knob in `guard-config.knobs`, one `NAME = value`, `NAME[] = element` or `NAME[key] = value` line each ([gate-sdk/SPEC.md §The knob file](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#the-knob-file)). `--emit knob-roster` on the gate binary `GATE_SDK_NATIVE_BIN` names prints every default, and [guard-kit/SPEC.md §Layout and configuration](https://checkwright.dev/guard-kit/SPEC#layout-and-configuration) owns each. Defaults are this repo's layout; a knob whose contents are your project's vocabulary defaults to empty. Drop a tool from `GUARD_KIT_SEARCH_TOOLS` when your harness build does not carry it, so the `find` and `git grep` steers never name a tool that is not there. A member you add to `GUARD_KIT_RO_BINS` also takes a `GUARD_KIT_RO_FORMS` declaration of its write and execute forms ([guard-kit/SPEC.md §The generic ruleset](https://checkwright.dev/guard-kit/SPEC#the-generic-ruleset), rule `ro_pipeline`), or the read-only pipeline grant withholds it.
|
|
44
44
|
|
|
45
45
|
## Use
|
|
46
46
|
|
|
@@ -18,9 +18,10 @@ fails=0
|
|
|
18
18
|
assert_has() { grep -qF -- "$2" <<<"$3" || { echo "FAIL [$1]: expected present: $2"; fails=$((fails + 1)); }; }
|
|
19
19
|
assert_absent() { grep -qF -- "$2" <<<"$3" && { echo "FAIL [$1]: expected absent: $2"; fails=$((fails + 1)); }; return 0; }
|
|
20
20
|
assert_rc() { [[ "$2" -eq "$3" ]] || { echo "FAIL [$1]: expected exit $3, got $2"; fails=$((fails + 1)); }; }
|
|
21
|
-
# A run leaves no snapshot behind: nothing dot-led in the scratch dir but what the case put there
|
|
21
|
+
# A run leaves no snapshot behind: nothing dot-led in the scratch dir but what the case put there
|
|
22
|
+
# and the directory's self-ignore (gate-sdk/SPEC.md §Layout and configuration).
|
|
22
23
|
assert_no_snapshot() {
|
|
23
|
-
local left; left="$(find "$scratch" -maxdepth 1 -name '.*' ! -name '.' 2>/dev/null)"
|
|
24
|
+
local left; left="$(find "$scratch" -maxdepth 1 -name '.*' ! -name '.' ! -name .gitignore 2>/dev/null)"
|
|
24
25
|
[[ -z "$left" ]] || { echo "FAIL [$1]: a snapshot remains: $left"; fails=$((fails + 1)); }
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# lifecycle-kit
|
|
2
2
|
|
|
3
|
-
The iteration stage state machine for coding-agent-assisted delivery: stage skills, an evidence file of stamps whose **last stamp is the current stage**, and gates that fail the commit when a stage is skipped or claimed without running its skill. The stamp grammar, the queue's iteration header and the configurable stage roster are [SPEC.md](https://checkwright.dev/lifecycle-kit/SPEC
|
|
3
|
+
The iteration stage state machine for coding-agent-assisted delivery: stage skills, an evidence file of stamps whose **last stamp is the current stage**, and gates that fail the commit when a stage is skipped or claimed without running its skill. The stamp grammar, the queue's iteration header and the configurable stage roster are [SPEC.md §The state machine](https://checkwright.dev/lifecycle-kit/SPEC#the-state-machine)'s.
|
|
4
4
|
|
|
5
5
|
Why: a stateless agent session doesn't reliably re-read process prose. So the process state lives in two files a gate can read, and every stage skill stamps its invocation as its first step (mechanized by the `--enter-stage <stage>` arm on the gate binary `GATE_SDK_NATIVE_BIN` names, so the misformat-prone hand ritual is one command). That stamp *is* the stage transition — there is no second copy of the cursor to keep in sync, and stage motion writes no queue at all. `check-stage-evidence` verifies the stamp file's grammar and that every stamp belongs to the header's iteration; `check-stage-entry` verifies the predecessor stamp, the drained queue at validate entry, and, at build entry, the cross-component audit trigger and no unrun inferred-claim marker. See [SPEC.md](https://checkwright.dev/lifecycle-kit/SPEC) for the full contracts.
|
|
6
6
|
|
|
7
|
-
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is gate-sdk/SPEC.md §Consumer payload.
|
|
7
|
+
This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#consumer-payload).
|
|
8
8
|
|
|
9
|
-
The linear stage walk is the default; the gate-legal ways to leave it — abandon, split, reopen — compose existing mechanism with no new tooling ([SPEC.md](https://checkwright.dev/lifecycle-kit/SPEC
|
|
9
|
+
The linear stage walk is the default; the gate-legal ways to leave it — abandon, split, reopen — compose existing mechanism with no new tooling ([SPEC.md §Deviation transitions](https://checkwright.dev/lifecycle-kit/SPEC#deviation-transitions)).
|
|
10
10
|
|
|
11
11
|
## Install
|
|
12
12
|
|
|
@@ -42,19 +42,21 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
|
|
|
42
42
|
|
|
43
43
|
The stage-stamp skeleton:
|
|
44
44
|
|
|
45
|
+
<!-- citation-link-exempt: a skeleton file's contract header, shown as code -->
|
|
45
46
|
# contract: lifecycle-kit/SPEC.md §check-stage-evidence
|
|
46
47
|
|
|
47
48
|
---
|
|
48
49
|
|
|
49
50
|
The lesson-disposition skeleton:
|
|
50
51
|
|
|
52
|
+
<!-- citation-link-exempt: a skeleton file's contract header, shown as code -->
|
|
51
53
|
# contract: lifecycle-kit/SPEC.md §check-lesson-disposition
|
|
52
54
|
|
|
53
|
-
3. Adopt `templates/stages/*.md` in your agent-skill directory (e.g. `.claude/commands/`): by default make each skill a binding shim that references the template (SPEC.md §templates/stages/) — it tracks the kit, so a re-vendor reaches it and the shim gates hold it thin. Or, as the sanctioned fork, copy each in and fill its named slots (`*<slot-name: …>*`) with your project's ritual — you then own the ritual prose, upgrades don't reach it, and the shim gates don't cover it (kept for legitimate structural divergence).
|
|
55
|
+
3. Adopt `templates/stages/*.md` in your agent-skill directory (e.g. `.claude/commands/`): by default make each skill a binding shim that references the template ([SPEC.md §templates/stages/](https://checkwright.dev/lifecycle-kit/SPEC#templatesstages)) — it tracks the kit, so a re-vendor reaches it and the shim gates hold it thin. Or, as the sanctioned fork, copy each in and fill its named slots (`*<slot-name: …>*`) with your project's ritual — you then own the ritual prose, upgrades don't reach it, and the shim gates don't cover it (kept for legitimate structural divergence).
|
|
54
56
|
|
|
55
|
-
4. Point your always-loaded agent file at the machine — run `--install-lifecycle` on the gate binary `GATE_SDK_NATIVE_BIN` names. It writes a marker-bounded registration block (the state machine, the stage roster as skill invocations, the SPEC link) into the file `LIFECYCLE_KIT_AGENT_FILE` names, the roster derived from your config so a reshape (step 5) flows in on a re-run. `check-lifecycle-registration` (step 1) holds the block in lockstep. The same run also writes the merge-attribute block into `.gitattributes` — a `merge=iteration-scoped` line per per-iteration state surface (these resolve to the arriving branch at a merge — SPEC.md §Multi-operator semantics) and a `merge=union` line for the committed gap inbox (its append-only bullets must survive a concurrent merge — SPEC.md §The committed gap inbox) — and registers the keep-ours driver in your clone's git config (per-clone, the `--install-hooks` opt-in class; the git-native union driver needs no such step). `check-merge-attrs` (step 1) holds the block in parity with the derived supersede and union sets.
|
|
57
|
+
4. Point your always-loaded agent file at the machine — run `--install-lifecycle` on the gate binary `GATE_SDK_NATIVE_BIN` names. It writes a marker-bounded registration block (the state machine, the stage roster as skill invocations, the SPEC link) into the file `LIFECYCLE_KIT_AGENT_FILE` names, the roster derived from your config so a reshape (step 5) flows in on a re-run. `check-lifecycle-registration` (step 1) holds the block in lockstep. The same run also writes the merge-attribute block into `.gitattributes` — a `merge=iteration-scoped` line per per-iteration state surface (these resolve to the arriving branch at a merge — [SPEC.md §Multi-operator semantics](https://checkwright.dev/lifecycle-kit/SPEC#multi-operator-semantics)) and a `merge=union` line for the committed gap inbox (its append-only bullets must survive a concurrent merge — [SPEC.md §The committed gap inbox](https://checkwright.dev/lifecycle-kit/SPEC#the-committed-gap-inbox)) — and registers the keep-ours driver in your clone's git config (per-clone, the `--install-hooks` opt-in class; the git-native union driver needs no such step). `check-merge-attrs` (step 1) holds the block in parity with the derived supersede and union sets.
|
|
56
58
|
|
|
57
|
-
5. Optional — narrow the hand-edit window: register `bash gate-sdk/bin/run-gates.sh --hook workflow-state-guard` as a `PreToolUse(Write|Edit)` hook (guard-kit's `templates/settings-hooks.json` carries the block). It refuses an agent write to the stage-stamp file, whose only sanctioned writer is the `--enter-stage` arm — the gates that would catch a hand-stamp all fire at commit, and an uncommitted one moves the cursor for a whole session (SPEC.md §check-stage-evidence). With `LIFECYCLE_KIT_STAGE_SESSION_TYPES` set, it also refuses a dispatched stage session's write before that session's stamp. Requires guard-kit vendored.
|
|
59
|
+
5. Optional — narrow the hand-edit window: register `bash gate-sdk/bin/run-gates.sh --hook workflow-state-guard` as a `PreToolUse(Write|Edit)` hook (guard-kit's `templates/settings-hooks.json` carries the block). It refuses an agent write to the stage-stamp file, whose only sanctioned writer is the `--enter-stage` arm — the gates that would catch a hand-stamp all fire at commit, and an uncommitted one moves the cursor for a whole session ([SPEC.md §check-stage-evidence](https://checkwright.dev/lifecycle-kit/SPEC#check-stage-evidence)). With `LIFECYCLE_KIT_STAGE_SESSION_TYPES` set, it also refuses a dispatched stage session's write before that session's stamp, and its write outside the scratch dir once the cursor has left its stage. Requires guard-kit vendored.
|
|
58
60
|
|
|
59
61
|
6. Optional — reshape the machine: copy `templates/lifecycle-config.knobs` into your gates dir and set stages, predecessors, drain/audit stages, section names, or file paths, one `NAME = value` or `NAME[] = element` line each. Defaults are this repo's own lifecycle; `--emit knob-roster` on the gate binary `GATE_SDK_NATIVE_BIN` names prints them.
|
|
60
62
|
|
|
@@ -75,9 +77,9 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
|
|
|
75
77
|
"$gates" --emit ruling-staleness ["<ruling name>"…] # fired conditions, undeclared ones, citing sites
|
|
76
78
|
```
|
|
77
79
|
|
|
78
|
-
`--emit session-id` is [SPEC.md](https://checkwright.dev/lifecycle-kit/SPEC)
|
|
80
|
+
`--emit session-id` is [SPEC.md §bin/session-id.sh](https://checkwright.dev/lifecycle-kit/SPEC#binsession-idsh)'s derivation order, which `--enter-stage` reads for you: reach for it directly only where a session writes an id itself, as `templates/lead.md`'s session-role marker step does. It takes no argument and resolves no knob. **The front-end route reads the cwd `bin/run-gates.sh` cds to** — the git toplevel — so a caller standing elsewhere whose sessions dir is the cwd-slugged default invokes the binary's `--emit-session-id` arm directly instead, which is what `--enter-stage` does.
|
|
79
81
|
|
|
80
|
-
The two survey arms are the capture and citation affordances of [SPEC.md](https://checkwright.dev/lifecycle-kit/SPEC
|
|
82
|
+
The two survey arms are the capture and citation affordances of [SPEC.md §The survey record](https://checkwright.dev/lifecycle-kit/SPEC#the-survey-record). `--` ends option processing for either, and a positional beginning with `-` without it, `--help` included, is a refusal that prints the arm's usage at exit 2 ([gate-sdk/SPEC.md §The bin/-tool contract](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#the-bin-tool-contract)).
|
|
81
83
|
|
|
82
84
|
## Test
|
|
83
85
|
|