checkwright 0.50.0 → 0.52.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/package.json +2 -2
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/gate-tests/check-command-liveness/bad/docs/a.md +6 -0
- package/payload/canon-kit/gate-tests/check-command-liveness/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-command-liveness/good/docs/b.md +2 -2
- package/payload/canon-kit/gate-tests/check-command-liveness.test.sh +8 -2
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/CLAUDE.md +1 -1
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/SPEC.md +4 -4
- package/payload/delegation-kit/README.md +1 -0
- package/payload/lifecycle-kit/templates/stages/close.md +1 -1
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"checkwright-pwsh": "bin/checkwright.ps1"
|
|
5
5
|
},
|
|
6
6
|
"checkwright": {
|
|
7
|
-
"commit": "
|
|
7
|
+
"commit": "3b51ecc589904084c401b8dd6869dd8482e0baa1",
|
|
8
8
|
"spec_base_url": "https://checkwright.dev"
|
|
9
9
|
},
|
|
10
10
|
"description": "Reproducible checks that catch unsupported claims in coding-agent delivery before merge: a task marked done with no recorded test run, a skipped lifecycle stage, a spec naming a file the tree lacks. They prove the evidence a claim rests on exists, not that the code is correct.",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"type": "git",
|
|
31
31
|
"url": "git+https://github.com/checkwright/checkwright.git"
|
|
32
32
|
},
|
|
33
|
-
"version": "0.
|
|
33
|
+
"version": "0.52.0"
|
|
34
34
|
}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8d833cea10e2833f73575658a7649df1701932b5ab5497bf14baad101a8b6902 checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
553ba1ff413d2deffe18cde68310a150fcd26a5fa1dd37afd426dca6c02b33bb *checkwright-gates.exe
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
773dd7c9d21cd99e5d0589a46d215f6e6cfdaa8364681aa2ba8086e38535051a checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
49591834742693242dece8d68dadac62fadb7e35d347f3a32c9679de7e5416f0 checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
16c99656edfbea7053ca1b700d71ebc75fe80de697d7590e5868a1907aa03886 checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8c15b95ecd947b483b3479c62a00323875163306b47ef6a6c804c5e359b9a627 *checkwright-gates.exe
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1453c10bb158d60228eebe614bf04d8563b2da4a5e7db269a0c7de4e920a9a28 checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8f2ee6a1c46e69e0a844aa5510cbd9a732af987ca4fe6b69c03c3d3ea331f4f8 checkwright-gates
|
|
@@ -9,3 +9,9 @@ An unresolvable program: `checkwright-no-such-program --flag`.
|
|
|
9
9
|
|
|
10
10
|
<!-- command-liveness-exempt: -->
|
|
11
11
|
A reasonless valve exempts nothing: `tool jbo`.
|
|
12
|
+
|
|
13
|
+
> A span wrapped inside a quote: `tool
|
|
14
|
+
> jbo run`.
|
|
15
|
+
|
|
16
|
+
1) An item opening a `Quote that stays unclosed.
|
|
17
|
+
2) The next item names `tool jbo` alone.
|
|
@@ -4,3 +4,5 @@ docs/a.md:5: `tool --emit jornal`: `tool --emit` has no verb `jornal` (its verbs
|
|
|
4
4
|
docs/a.md:6: `tool item clsoe <id>`: `tool item` has no verb `clsoe` (its verbs: close)
|
|
5
5
|
docs/a.md:8: `checkwright-no-such-program --flag`: no PATH directory holds `checkwright-no-such-program`
|
|
6
6
|
docs/a.md:11: `tool jbo`: `tool` has no verb `jbo` (its verbs: --emit, item, job) (its command-liveness-exempt valve carries no reason)
|
|
7
|
+
docs/a.md:13: `tool jbo run`: `tool` has no verb `jbo` (its verbs: --emit, item, job)
|
|
8
|
+
docs/a.md:17: `tool jbo`: `tool` has no verb `jbo` (its verbs: --emit, item, job)
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# Behavioral test of the arms the one-pair good/bad harness cannot hold: the
|
|
3
|
-
# PATH arm at all, the command knob as the verb source (good,
|
|
4
|
-
# timed out, non-UTF-8 output), a
|
|
3
|
+
# PATH arm at all, the command knob as the verb source (good, an empty
|
|
4
|
+
# element passed as it stands, non-zero, timed out, non-UTF-8 output), a
|
|
5
|
+
# source declaring no path, an absent verb
|
|
5
6
|
# file, both sources set, and a corpus with no resolver.
|
|
6
7
|
#
|
|
7
8
|
# Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
|
|
@@ -23,6 +24,7 @@ EOF
|
|
|
23
24
|
printf 'tool job\n' >"$SANDBOX/verbs.txt"
|
|
24
25
|
printf '%s\n' "printf 'tool job\\n'" >"$SANDBOX/gen-good.sh"
|
|
25
26
|
printf '%s\n' "printf 'tool item\\n'" >"$SANDBOX/gen-other.sh"
|
|
27
|
+
printf '%s\n' '[ "$#" -eq 2 ] && [ -z "$1" ] || exit 5' "printf 'tool job\\n'" >"$SANDBOX/gen-argc.sh"
|
|
26
28
|
printf '%s\n' 'exit 4' >"$SANDBOX/gen-fail.sh"
|
|
27
29
|
printf '%s\n' 'sleep 30' >"$SANDBOX/gen-slow.sh"
|
|
28
30
|
printf '%s\n' "printf 'tool \\377\\n'" >"$SANDBOX/gen-bytes.sh"
|
|
@@ -71,6 +73,10 @@ knobs "$(cmd gen-other.sh)"
|
|
|
71
73
|
out="$(run)"; rc=$?
|
|
72
74
|
check_case "command-source-judges" 1 "a.md:3: \`tool job\`: \`tool\` has no verb \`job\` (its verbs: item)" "$out" "$rc"
|
|
73
75
|
|
|
76
|
+
knobs "$(cmd gen-argc.sh)" 'CANON_KIT_COMMAND_LIVENESS_VERBS_CMD[] =' 'CANON_KIT_COMMAND_LIVENESS_VERBS_CMD[] = x'
|
|
77
|
+
out="$(run)"; rc=$?
|
|
78
|
+
check_case "command-keeps-empty-element" 0 "1 span(s) read by the verb tree (command bash)" "$out" "$rc"
|
|
79
|
+
|
|
74
80
|
knobs "$(cmd gen-fail.sh)"
|
|
75
81
|
out="$(run)"; rc=$?
|
|
76
82
|
check_case "command-non-zero" 3 "exited 4" "$out" "$rc"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: This front-matter value is metadata rather than prose, so it is never read as a sentence even though it runs well past the bound of forty-five words that the gate applies to every other sentence in the governed corpus it reads.
|
|
2
|
+
description: This front-matter value is metadata rather than prose, so it is never read as a sentence even though it runs well past the bound of forty-five words that the gate applies to every other sentence in the governed corpus it reads, and it keeps going for a further dozen words to clear that bound.
|
|
3
3
|
tags:
|
|
4
4
|
- ```shown```
|
|
5
5
|
---
|
|
@@ -15,17 +15,17 @@ Every knob is read by this gate alone, which the lead-in above says once for the
|
|
|
15
15
|
<!-- prose-bound-exempt: the fixture's valved keep, one sentence deliberately left long to prove the valve suppresses it at the site -->
|
|
16
16
|
This sentence is deliberately long, because it demonstrates that a valve on the line above suppresses the sentence-length finding at this one site, and so it keeps running well past the bound of forty-five words that the gate applies to every other sentence in the governed corpus, without any finding at all.
|
|
17
17
|
|
|
18
|
-
| a table row may run as long as it likes, since tables are held out of every assertion the gate makes over its governed prose corpus, and this one proves it | x |
|
|
18
|
+
| a table row may run as long as it likes, since tables are held out of every assertion the gate makes over its governed prose corpus, and this one proves it by running well past the bound of forty-five words that the gate applies to every other sentence, for a further dozen words to clear it | x |
|
|
19
19
|
|---|---|
|
|
20
20
|
|
|
21
21
|
```text
|
|
22
|
-
A fenced block is shown grammar, so this long line is never read as a sentence even though it runs well past the bound of forty-five words that the gate applies to every other sentence in the corpus it governs.
|
|
22
|
+
A fenced block is shown grammar, so this long line is never read as a sentence even though it runs well past the bound of forty-five words that the gate applies to every other sentence in the corpus it governs, and it keeps going for a further dozen words to clear that bound.
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
~~~text
|
|
26
|
-
A tilde fence is a fenced block as well, so this long line is never read as a sentence even though it runs well past the bound of forty-five words that the gate applies to every other sentence in its corpus.
|
|
26
|
+
A tilde fence is a fenced block as well, so this long line is never read as a sentence even though it runs well past the bound of forty-five words that the gate applies to every other sentence in its corpus, and it keeps going for a further dozen words to clear that bound.
|
|
27
27
|
~~~
|
|
28
28
|
|
|
29
29
|
<!-- roster:begin -->
|
|
30
|
-
A generated region is byte-gated elsewhere, so this long line is never read as a sentence even though it runs well past the bound of forty-five words that the gate applies to every other sentence in its corpus.
|
|
30
|
+
A generated region is byte-gated elsewhere, so this long line is never read as a sentence even though it runs well past the bound of forty-five words that the gate applies to every other sentence in its corpus, and it keeps going for a further dozen words to clear that bound.
|
|
31
31
|
<!-- roster:end -->
|
|
@@ -47,6 +47,7 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
|
|
|
47
47
|
"$gates" --usage-verdict <snapshot> # verdict for an explicit usage.txt (test injection)
|
|
48
48
|
"$gates" --model-verdict --expect judgment # running-model verdict against the tier binding: exit 0 OK, 1 BELOW/UNBOUND, 2 UNKNOWN
|
|
49
49
|
"$gates" --foreign-run <adapter> <prompt-file> # one audit on a configured foreign adapter, in a scratch clone: exit 0 OK, 1 REFUSED, 2 FAILED
|
|
50
|
+
"$gates" --foreign-run <adapter> <prompt-file> --workspace <dir> # one audit in a caller-built plain directory, read-only; sent.txt lists what it sent
|
|
50
51
|
"$gates" --foreign-run <adapter> --budget # that adapter's budget verdict, spawning nothing: exit 0 OK/RESET-OK, 1 PAUSE, 2 STALE/OFF
|
|
51
52
|
"$gates" --foreign-resume <key> <prompt-file> # the next turn of a session a resumable adapter opened: exit 0 OK, 1 REFUSED, 2 FAILED; --close ends it
|
|
52
53
|
"$gates" --emit usage-trend # footprint trend over the sample log (needs DELEGATION_KIT_USAGE_HISTORY)
|
|
@@ -17,7 +17,7 @@ The `close` stage of an iteration. Harvest lessons, housekeep, optionally merge.
|
|
|
17
17
|
7. **Repair the ruling record** — read it for aged facts and fired discharge conditions, and repair what its own contract puts in this session's hands. The record grants the authority and states the boundary; this step only adds the obligation to look, so read the boundary there rather than from a restatement here. A repair is **fix-shaped by the drain's own litmus** and needs no new criterion — it adds no governed name and lands test-and-doc- complete in this session's own commit — so a two-word correction is not routed through a deferred entry. The record is a declared row on the close-surface roster (§The close-surface roster), so a consumer that configures none sees this step skip rather than fail, and the probe that reports fired conditions, undeclared ones and the citing sites is lifecycle-kit/SPEC.md §The ruling-staleness probe. It lands here, beside the staleness read, and not in the brevity pass: a repair asks *is it still true?* exactly, and running it under a pass whose licence is compression would put a correction inside a step licensed to delete. **One discharge this step records rather than repairs:** where an operator directive was discharged by **falsification** — the premise it rested on measured false rather than the work being done — that discharge is recorded on the record as a closed-ruling line, because it leaves no landed unit and no queue trace, so a later session reading only the directive re-derives the whole investigation.
|
|
18
18
|
8. **Review the audit roster**, where `LIFECYCLE_KIT_AUDIT_ROSTER_FILE` names one (lifecycle-kit/SPEC.md §The audit roster). Per class block, judge which `due:` events fired since `last:` (a `last:` naming another stage is a pre-stamp, so unreviewed), then perform each due audit, skip with notice one whose sweep runs on an executor outside this session that is unavailable or unauthorized (lifecycle-kit/SPEC.md §The audit roster), or defer it as a costed filing. Per audit: derive the corpus from `scope:` and the range it names (this iteration's range unless `scope:` names another base); the predecessor's `corpus:` is a floor; triage every hit; **replace** `last:`, `corpus:`, `hits:` and `declined:`; fold a reading that changes the next sweep into `scope:` by re-phrasing. Narration and findings go in the commit message, never on the roster.
|
|
19
19
|
9. **Runtime-artifact lifecycle check** — any gitignored/runtime artifact introduced this iteration (log, cache, scratch dir) has a named cleanup trigger: a write-path needs a paired reclaim-path. For a workflow-directory artifact the roster already answers it: the `reclaim=` field is that named trigger, and `check-close-surfaces` blocks a capture-tier declaration without one. What stays a judgment here is the artifact *outside* that directory.
|
|
20
|
-
10. **Release disposition** — run after the surface-mutating steps above and **before** the brevity pass (the disposition note is itself such a write). Every close dispositions the iteration at the release boundary: read the consumer's release policy (the `release-policy` slot below) and either execute its release procedure or stamp an explicit no-release line. Silence is not a disposition — a close that says nothing about release is incomplete. Stamp one line into the consumer-named disposition-evidence file: `<iteration> release <version|none|deferred:<version>> — <one-line basis>` (the `check-lesson-disposition` contract shape at the release boundary, the same lineage release-sweep's stamp follows) — `<version>` is the tag applied, `none` states the both-None (or consumer-equivalent) outcome, and `deferred:<version>` records criteria that were met while the release was held back, flooring the next qualifying note at that version. A consumer's release policy may make deferral the default disposition, so this third form is the common one under such a policy rather than an exception. Ordering: the tag names the stamp commit, so the procedure's tag-and-host-release half runs after it lands; the note and stamp halves ride the close commits, and what follows the tag is the consumer's. Where the procedure applied a tag, run `--emit peer-reply --shipped <tag>` once it is applied, so every landed request reads shipped in the release that carries it (lifecycle-kit/SPEC.md §The peer request channel). *<release-policy: the consumer's release procedure and criteria source by citation, the disposition-evidence path, and any boundary-only sub-procedures (e.g. a major-only deprecation sweep); or a plain "no release process — every iteration stamps none" line for a consumer without one.>*
|
|
20
|
+
10. **Release disposition** — run after the surface-mutating steps above and **before** the brevity pass (the disposition note is itself such a write). Every close dispositions the iteration at the release boundary: read the consumer's release policy (the `release-policy` slot below) and either execute its release procedure or stamp an explicit no-release line. Silence is not a disposition — a close that says nothing about release is incomplete. Stamp the iteration's one line into the consumer-named disposition-evidence file, rewriting in place one already there (lifecycle-kit/SPEC.md §templates/stages/): `<iteration> release <version|none|deferred:<version>> — <one-line basis>` (the `check-lesson-disposition` contract shape at the release boundary, the same lineage release-sweep's stamp follows) — `<version>` is the tag applied, `none` states the both-None (or consumer-equivalent) outcome, and `deferred:<version>` records criteria that were met while the release was held back, flooring the next qualifying note at that version. A consumer's release policy may make deferral the default disposition, so this third form is the common one under such a policy rather than an exception. Ordering: the tag names the stamp commit, so the procedure's tag-and-host-release half runs after it lands; the note and stamp halves ride the close commits, and what follows the tag is the consumer's. Where the procedure applied a tag, run `--emit peer-reply --shipped <tag>` once it is applied, so every landed request reads shipped in the release that carries it (lifecycle-kit/SPEC.md §The peer request channel). *<release-policy: the consumer's release procedure and criteria source by citation, the disposition-evidence path, and any boundary-only sub-procedures (e.g. a major-only deprecation sweep); or a plain "no release process — every iteration stamps none" line for a consumer without one.>*
|
|
21
21
|
11. **Brevity pass on every governed prose file** — run this **last**, after every surface-mutating step above. Scope by principle, not a fixed list: every surface injected into each agent session, and every file that grew since the last close. Staleness asks *is it still true?*; brevity asks *is each block worth its cost at every read?* — reword/delete over annotating; outdated context goes to git history. No file is exempt: an on-demand file pays at every open, and one a stage opens each iteration is always-loaded in effect.
|
|
22
22
|
12. **Optionally merge** — an iteration can close without merging if validate is incomplete or a follow-up iteration is planned.
|
|
23
23
|
13. **The push precondition — select the writing identity, immediately before each push.** Any push this stage makes runs the consumer's identity precondition first, and that holds for the *ordinary* close push and not only for a release. It is **per-push, never per-session**: a session that pushes twice runs it twice. Where the consumer keeps its account and transport mechanics outside the tree, the release procedure's pointer to that local runbook is the one to follow here too, rather than a second formulation. **No gate substitutes for this.** The closing push is counted in every push need the scope stage states, so it is spent without an ask of its own; the budget's hotfix allowance still governs a red push. *<push-budget: how many pushes this consumer's iteration may spend, how many hotfix pushes a red push earns before the operator is asked, and the remote run a push is watched to — or a plain "no remote — nothing is pushed" line.>*
|