checkwright 0.48.0 → 0.50.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/README.md +1 -0
- package/payload/canon-kit/checks/check-command-liveness.gate +4 -0
- package/payload/canon-kit/gate-tests/check-command-liveness/bad/docs/a.md +11 -0
- package/payload/canon-kit/gate-tests/check-command-liveness/bad/expect.txt +6 -0
- package/payload/canon-kit/gate-tests/check-command-liveness/bad/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-command-liveness/bad/scripts/verbs.txt +6 -0
- package/payload/canon-kit/gate-tests/check-command-liveness/good/docs/a.md +19 -0
- package/payload/canon-kit/gate-tests/check-command-liveness/good/docs/b.md +22 -0
- package/payload/canon-kit/gate-tests/check-command-liveness/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-command-liveness/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-command-liveness/good/scripts/verbs.txt +6 -0
- package/payload/canon-kit/gate-tests/check-command-liveness.test.sh +108 -0
- package/payload/canon-kit/gate-tests/check-duplicate-text/bad/docs/e.md +5 -0
- package/payload/canon-kit/gate-tests/check-duplicate-text/bad/docs/f.md +3 -0
- package/payload/canon-kit/gate-tests/check-duplicate-text/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-duplicate-text.test.sh +20 -2
- package/payload/canon-kit/gate-tests/check-knob-citation/bad/README.md +10 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/good/SPEC.md +6 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/README.md +16 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +14 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/CLAUDE.md +6 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/README.md +10 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/SPEC.md +6 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +10 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/expect.txt +9 -8
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/widget-toolkit/SPEC.md +7 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/widget-toolkit/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/front.md +10 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +6 -0
- package/payload/delegation-kit/templates/delegation-config.knobs +4 -0
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"checkwright-pwsh": "bin/checkwright.ps1"
|
|
5
5
|
},
|
|
6
6
|
"checkwright": {
|
|
7
|
-
"commit": "
|
|
7
|
+
"commit": "d285c42e5e3a3718356840584997d3ed9b733e0e",
|
|
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.50.0"
|
|
34
34
|
}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d7a307ca86a959663a90719950ae3f4de85e2ceb1fa962113e3226ef6e242aff checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ee86f836177b814a1a4e94b5baae3749f2a20490ada572f0abb1dc356133c890 *checkwright-gates.exe
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
904d326ecfa7713793e672b7eaafef1d9e7b4bcec015e197855e8e23f7fc18bf checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
45f4d168b818a78ec5a76957e8d2b29459e359fc0b637124cb9fb167fdebb8ac checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d1642a451e58f69df04f32ce936cb626945924ea65426dd5d068be40d493b838 checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
db3c8527bd766b9faab9f0f7c0982240146ecef5340c26fed0830304949f4260 *checkwright-gates.exe
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
5f3a2814d0105799e443f5208b681410d0a1810346c4ec4b27c236485393dce2 checkwright-gates
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a02ba17c2a11c0f924b6f4a3bae2a0b52cbb49a5c6e9ce5e1f6dde7112414f8e checkwright-gates
|
|
@@ -25,6 +25,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required); the queue-facing gate
|
|
|
25
25
|
check-spec-pointer # resolves spec:/contract: pointer targets
|
|
26
26
|
check-todo-task-liveness # resolves TODO(task:) slugs against the queue
|
|
27
27
|
check-docs-cmd # invoked paths + kit knobs in docs resolve
|
|
28
|
+
check-command-liveness # needs declared files and a resolver (a command a span names still resolves)
|
|
28
29
|
check-docs-restatement-parity # needs restating pages (their code tokens held to the README beside each)
|
|
29
30
|
check-docs-page-repeat # needs declared pages (no link target or long sentence stated twice on one, or restated from the chrome)
|
|
30
31
|
check-duplicate-text # needs declared files (no long run of words stated in two of them)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# graph: couples=knob:CANON_KIT_COMMAND_LIVENESS_GLOBS,knob:CANON_KIT_COMMAND_LIVENESS_VERBS_FILE dir=one valve=none tier=precommit
|
|
2
|
+
# install: zero-config
|
|
3
|
+
# armed-by: CANON_KIT_COMMAND_LIVENESS_GLOBS
|
|
4
|
+
# spec: canon-kit/SPEC.md §check-command-liveness — a command named in an inline code span of the declared prose still resolves against the verb tree and the PATH arm, with the command-liveness-exempt valve
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Drifted commands
|
|
2
|
+
|
|
3
|
+
An unknown verb at a root: `tool jbo run`.
|
|
4
|
+
One at depth: `tool job pol`.
|
|
5
|
+
One after a list-spelled flag: `tool --emit jornal`.
|
|
6
|
+
A span wrapped across two lines: `tool item
|
|
7
|
+
clsoe <id>`.
|
|
8
|
+
An unresolvable program: `checkwright-no-such-program --flag`.
|
|
9
|
+
|
|
10
|
+
<!-- command-liveness-exempt: -->
|
|
11
|
+
A reasonless valve exempts nothing: `tool jbo`.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
docs/a.md:3: `tool jbo run`: `tool` has no verb `jbo` (its verbs: --emit, item, job)
|
|
2
|
+
docs/a.md:4: `tool job pol`: `tool job` has no verb `pol` (its verbs: pool)
|
|
3
|
+
docs/a.md:5: `tool --emit jornal`: `tool --emit` has no verb `jornal` (its verbs: journal)
|
|
4
|
+
docs/a.md:6: `tool item clsoe <id>`: `tool item` has no verb `clsoe` (its verbs: close)
|
|
5
|
+
docs/a.md:8: `checkwright-no-such-program --flag`: no PATH directory holds `checkwright-no-such-program`
|
|
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)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# spec: canon-kit/SPEC.md §check-command-liveness — fixture consumer config: every page under docs/ is read against a list file, with the PATH arm at multi
|
|
2
|
+
CANON_KIT_COMMAND_LIVENESS_GLOBS[] = docs/*.md
|
|
3
|
+
CANON_KIT_COMMAND_LIVENESS_VERBS_FILE = scripts/verbs.txt
|
|
4
|
+
CANON_KIT_COMMAND_LIVENESS_PATH = multi
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: a front-matter `tool jbo` is never read
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Guide
|
|
6
|
+
|
|
7
|
+
Run `tool job pool run` to start a pool, or `tool job --dry-run` to rehearse it.
|
|
8
|
+
Close one with `tool item close <id> --force`, and `make all install` builds everything.
|
|
9
|
+
Journal a finding with `tool --emit journal "a finding"`, or close with `FOO=1 tool item close 42`.
|
|
10
|
+
The builtin `cd somewhere` resolves, as `git status` does on any host.
|
|
11
|
+
|
|
12
|
+
## The `tool job` heading is read
|
|
13
|
+
|
|
14
|
+
| Command | Use |
|
|
15
|
+
|---|---|
|
|
16
|
+
| `tool item close` | close an item |
|
|
17
|
+
|
|
18
|
+
- a list item naming `tool job pool`
|
|
19
|
+
- a second item naming `tool item`
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Unread shapes
|
|
2
|
+
|
|
3
|
+
Never read: `--emit file-gap`, `./tool jbo`, `docs/a.md x`, `CANON_KIT_SPEC_NAME y`, `$ tool jbo`,
|
|
4
|
+
`spec::walk x`, `run_bounded() x`, `Program x` and `GIT_DIR=x`. A one-token `nosuchprog`
|
|
5
|
+
is unread under multi.
|
|
6
|
+
|
|
7
|
+
<!-- gen:begin -->
|
|
8
|
+
A generated `tool jbo run` is held out.
|
|
9
|
+
<!-- gen:end -->
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
tool jbo run
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
~~~
|
|
16
|
+
tool jbo
|
|
17
|
+
~~~
|
|
18
|
+
|
|
19
|
+
An inline comment <!-- `tool jbo` --> holds its span out.
|
|
20
|
+
|
|
21
|
+
<!-- command-liveness-exempt: a deliberately broken example -->
|
|
22
|
+
A valved example: `tool jbo run`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
COMMAND-LIVENESS: clean (2 file(s); 10 span(s) read by the verb tree (list scripts/verbs.txt), 2 by the PATH arm (multi))
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# spec: canon-kit/SPEC.md §check-command-liveness — fixture consumer config: every page under docs/ is read against a list file, with the PATH arm at multi
|
|
2
|
+
CANON_KIT_COMMAND_LIVENESS_GLOBS[] = docs/*.md
|
|
3
|
+
CANON_KIT_COMMAND_LIVENESS_VERBS_FILE = scripts/verbs.txt
|
|
4
|
+
CANON_KIT_COMMAND_LIVENESS_PATH = multi
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
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, non-zero,
|
|
4
|
+
# timed out, non-UTF-8 output), a source declaring no path, an absent verb
|
|
5
|
+
# file, both sources set, and a corpus with no resolver.
|
|
6
|
+
#
|
|
7
|
+
# Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
|
|
8
|
+
set -uo pipefail
|
|
9
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
10
|
+
|
|
11
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # canon-kit/
|
|
12
|
+
SANDBOX="$(mktemp -d)"
|
|
13
|
+
trap 'rm -rf "$SANDBOX"' EXIT
|
|
14
|
+
|
|
15
|
+
fails=0
|
|
16
|
+
covered=()
|
|
17
|
+
|
|
18
|
+
cat >"$SANDBOX/a.md" <<'EOF'
|
|
19
|
+
# A
|
|
20
|
+
|
|
21
|
+
Run `tool job` here, and `git` alone.
|
|
22
|
+
EOF
|
|
23
|
+
printf 'tool job\n' >"$SANDBOX/verbs.txt"
|
|
24
|
+
printf '%s\n' "printf 'tool job\\n'" >"$SANDBOX/gen-good.sh"
|
|
25
|
+
printf '%s\n' "printf 'tool item\\n'" >"$SANDBOX/gen-other.sh"
|
|
26
|
+
printf '%s\n' 'exit 4' >"$SANDBOX/gen-fail.sh"
|
|
27
|
+
printf '%s\n' 'sleep 30' >"$SANDBOX/gen-slow.sh"
|
|
28
|
+
printf '%s\n' "printf 'tool \\377\\n'" >"$SANDBOX/gen-bytes.sh"
|
|
29
|
+
printf '%s\n' "printf '# nothing\\n'" >"$SANDBOX/gen-empty.sh"
|
|
30
|
+
|
|
31
|
+
knobs() { # $@ = knob-file lines after the corpus line
|
|
32
|
+
{ printf '%s\n' 'CANON_KIT_COMMAND_LIVENESS_GLOBS[] = *.md'; printf '%s\n' "$@"; } >"$SANDBOX/gates.knobs"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
cmd() { # $1 = generator script; the knob lines spawning it through bash
|
|
36
|
+
printf '%s\n' 'CANON_KIT_COMMAND_LIVENESS_VERBS_CMD[] = bash' "CANON_KIT_COMMAND_LIVENESS_VERBS_CMD[] = $1"
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
run() { # $1..=extra env assignments; prints output, returns rc
|
|
40
|
+
(cd "$SANDBOX" && gate_env CANON_KIT_KNOB_FILE="$SANDBOX/gates.knobs" "$@" \
|
|
41
|
+
&& gate_run check-command-liveness "$DIR/checks" 2>&1)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
check_case() { # $1=label $2=want-rc $3=want-substring $4=output $5=rc
|
|
45
|
+
covered+=("$1")
|
|
46
|
+
if [[ "$5" -ne "$2" ]]; then
|
|
47
|
+
echo " FAIL [$1]: want exit $2, got $5 -- $4"; fails=$((fails + 1)); return
|
|
48
|
+
fi
|
|
49
|
+
if [[ -n "$3" ]] && ! grep -qF -- "$3" <<<"$4"; then
|
|
50
|
+
echo " FAIL [$1]: exit $5 OK but output lacks '$3':"; printf ' %s\n' "$4"
|
|
51
|
+
fails=$((fails + 1))
|
|
52
|
+
fi
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
knobs 'CANON_KIT_COMMAND_LIVENESS_VERBS_FILE = verbs.txt' 'CANON_KIT_COMMAND_LIVENESS_PATH = multi'
|
|
56
|
+
out="$(run)"; rc=$?
|
|
57
|
+
check_case "multi-skips-one-token" 0 "1 span(s) read by the verb tree (list verbs.txt), 0 by the PATH arm (multi)" "$out" "$rc"
|
|
58
|
+
|
|
59
|
+
out="$(run CANON_KIT_COMMAND_LIVENESS_PATH=all)"; rc=$?
|
|
60
|
+
check_case "all-reads-one-token" 0 "1 by the PATH arm (all)" "$out" "$rc"
|
|
61
|
+
|
|
62
|
+
printf '\nA one-token `checkwright-no-such-program` names no installed program.\n' >>"$SANDBOX/a.md"
|
|
63
|
+
out="$(run CANON_KIT_COMMAND_LIVENESS_PATH=all)"; rc=$?
|
|
64
|
+
check_case "all-reds-one-token" 1 "a.md:5: \`checkwright-no-such-program\`: no PATH directory holds \`checkwright-no-such-program\`" "$out" "$rc"
|
|
65
|
+
|
|
66
|
+
knobs "$(cmd gen-good.sh)"
|
|
67
|
+
out="$(run)"; rc=$?
|
|
68
|
+
check_case "command-source-good" 0 "1 span(s) read by the verb tree (command bash), 0 by the PATH arm (off)" "$out" "$rc"
|
|
69
|
+
|
|
70
|
+
knobs "$(cmd gen-other.sh)"
|
|
71
|
+
out="$(run)"; rc=$?
|
|
72
|
+
check_case "command-source-judges" 1 "a.md:3: \`tool job\`: \`tool\` has no verb \`job\` (its verbs: item)" "$out" "$rc"
|
|
73
|
+
|
|
74
|
+
knobs "$(cmd gen-fail.sh)"
|
|
75
|
+
out="$(run)"; rc=$?
|
|
76
|
+
check_case "command-non-zero" 3 "exited 4" "$out" "$rc"
|
|
77
|
+
|
|
78
|
+
knobs "$(cmd gen-slow.sh)" 'CANON_KIT_COMMAND_LIVENESS_VERBS_TIMEOUT = 1'
|
|
79
|
+
out="$(run)"; rc=$?
|
|
80
|
+
check_case "command-timed-out" 3 "outlived its 1-second bound" "$out" "$rc"
|
|
81
|
+
|
|
82
|
+
knobs "$(cmd gen-bytes.sh)"
|
|
83
|
+
out="$(run)"; rc=$?
|
|
84
|
+
check_case "command-non-utf8" 3 "printed output that is not UTF-8" "$out" "$rc"
|
|
85
|
+
|
|
86
|
+
knobs "$(cmd gen-empty.sh)"
|
|
87
|
+
out="$(run)"; rc=$?
|
|
88
|
+
check_case "empty-verb-source" 3 "declares no verb path" "$out" "$rc"
|
|
89
|
+
|
|
90
|
+
knobs 'CANON_KIT_COMMAND_LIVENESS_VERBS_FILE = missing.txt'
|
|
91
|
+
out="$(run)"; rc=$?
|
|
92
|
+
check_case "absent-verb-file" 3 "missing.txt" "$out" "$rc"
|
|
93
|
+
|
|
94
|
+
knobs 'CANON_KIT_COMMAND_LIVENESS_VERBS_FILE = verbs.txt' "$(cmd gen-good.sh)"
|
|
95
|
+
out="$(run)"; rc=$?
|
|
96
|
+
check_case "both-sources-refused" 2 "both set" "$out" "$rc"
|
|
97
|
+
|
|
98
|
+
knobs
|
|
99
|
+
out="$(run)"; rc=$?
|
|
100
|
+
check_case "no-resolver-refused" 2 "nothing would judge" "$out" "$rc"
|
|
101
|
+
|
|
102
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
103
|
+
echo "check-command-liveness.test.sh: $fails case(s) failed"
|
|
104
|
+
exit 1
|
|
105
|
+
fi
|
|
106
|
+
ran="$(printf ' + %s' "${covered[@]}")"
|
|
107
|
+
echo "check-command-liveness.test.sh: clean (${ran# + })"
|
|
108
|
+
exit 0
|
|
@@ -4,3 +4,5 @@ docs/b.md:8: a run of 13 words first stated at docs/a.md:11: "each stage session
|
|
|
4
4
|
docs/c.md:3: a run of 11 words first stated at docs/a.md:3: "every commit runs the full battery …"
|
|
5
5
|
docs/c.md:6: a run of 11 words first stated at docs/a.md:7: "a reasonless valve never exempts the …" (its duplicate-text-exempt valve carries no reason)
|
|
6
6
|
docs/d.md:7: a run of 11 words first stated at docs/a.md:3: "every commit runs the full battery …"
|
|
7
|
+
docs/f.md:3: a run of 8 words first stated at docs/e.md:3: "alpha bravo charlie delta echo foxtrot …"
|
|
8
|
+
docs/f.md:3: a run of 10 words first stated at docs/e.md:5: "charlie delta echo foxtrot golf hotel …"
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# Behavioral test of the arms the one-pair good/bad harness cannot hold: the
|
|
3
3
|
# within-file switch turned on, the exclude knob dropping a file from the
|
|
4
|
-
# comparison, a symlink alias compared once,
|
|
5
|
-
#
|
|
4
|
+
# comparison, a symlink alias compared once, two links to distinct non-UTF-8
|
|
5
|
+
# targets compared as two files, and the exit-3 refusal of an unreadable
|
|
6
|
+
# declared file.
|
|
6
7
|
#
|
|
7
8
|
# Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
|
|
8
9
|
set -uo pipefail
|
|
@@ -75,6 +76,23 @@ else
|
|
|
75
76
|
fi
|
|
76
77
|
rm -f "$SANDBOX/link.md"
|
|
77
78
|
|
|
79
|
+
# Two links aimed at distinct targets whose names are not UTF-8 are two files.
|
|
80
|
+
# A host that refuses such a name, or makes no symlink, proves nothing, so both
|
|
81
|
+
# are probed before the case is asserted.
|
|
82
|
+
odd_a=$'\xff.txt' odd_b=$'\xfe.txt'
|
|
83
|
+
printf '# Odd\n\nA target behind a name that is not text keeps its own identity.\n' \
|
|
84
|
+
>"$SANDBOX/$odd_a" 2>/dev/null && cp "$SANDBOX/$odd_a" "$SANDBOX/$odd_b" 2>/dev/null
|
|
85
|
+
ln -s "$odd_a" "$SANDBOX/odd-a.md" 2>/dev/null
|
|
86
|
+
ln -s "$odd_b" "$SANDBOX/odd-b.md" 2>/dev/null
|
|
87
|
+
if [[ ! -f "$SANDBOX/$odd_b" || ! -L "$SANDBOX/odd-a.md" || ! -L "$SANDBOX/odd-b.md" ]]; then
|
|
88
|
+
echo " SKIP [non-utf8-targets-are-two-files]: this host made no non-UTF-8 name or no symlink"
|
|
89
|
+
skipped+=("non-utf8-targets-are-two-files")
|
|
90
|
+
else
|
|
91
|
+
out="$(run)"; rc=$?
|
|
92
|
+
check_case "non-utf8-targets-are-two-files" 1 "odd-b.md:3: a run of 13 words first stated at odd-a.md:3" "$out" "$rc"
|
|
93
|
+
fi
|
|
94
|
+
rm -f "$SANDBOX/odd-a.md" "$SANDBOX/odd-b.md" "$SANDBOX/$odd_a" "$SANDBOX/$odd_b"
|
|
95
|
+
|
|
78
96
|
# A tree where the sandbox owner can read what it just made unreadable proves
|
|
79
97
|
# nothing, so the refusal is probed before it is asserted.
|
|
80
98
|
chmod 000 "$SANDBOX/b.md"
|
|
@@ -17,3 +17,9 @@ the registry lists 42 rows.
|
|
|
17
17
|
|
|
18
18
|
<!-- knob-citation-exempt: a genuine local restatement rides the valve -->
|
|
19
19
|
`GATE_SDK_STAGES_FILE` defaults to `stages.list` in this vendored snapshot.
|
|
20
|
+
|
|
21
|
+
A tilde fence is a fenced block, so a restated value shown in one is a specimen:
|
|
22
|
+
|
|
23
|
+
~~~sh
|
|
24
|
+
GATE_SDK_STAGES_FILE=stages.list bash run.sh
|
|
25
|
+
~~~
|
|
@@ -76,3 +76,17 @@ Two of the three cases:
|
|
|
76
76
|
- the first case
|
|
77
77
|
- the second case
|
|
78
78
|
- the third case
|
|
79
|
+
|
|
80
|
+
A tilde fence holds a shown total:
|
|
81
|
+
|
|
82
|
+
~~~
|
|
83
|
+
This kit ships six gates today.
|
|
84
|
+
~~~
|
|
85
|
+
|
|
86
|
+
~~~
|
|
87
|
+
The two arms:
|
|
88
|
+
|
|
89
|
+
- the first arm
|
|
90
|
+
- the second arm
|
|
91
|
+
- a third arm
|
|
92
|
+
~~~
|
|
@@ -1,3 +1,9 @@
|
|
|
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.
|
|
3
|
+
tags:
|
|
4
|
+
- ```shown```
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
# CLAUDE.md — a bounded agent file
|
|
2
8
|
|
|
3
9
|
## Conventions
|
|
@@ -22,6 +22,10 @@ This sentence is deliberately long, because it demonstrates that a valve on the
|
|
|
22
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.
|
|
23
23
|
```
|
|
24
24
|
|
|
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.
|
|
27
|
+
~~~
|
|
28
|
+
|
|
25
29
|
<!-- roster:begin -->
|
|
26
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.
|
|
27
31
|
<!-- roster:end -->
|
|
@@ -14,3 +14,9 @@ A partitive names a selection, not the set: any of alpha, beta may fire first.
|
|
|
14
14
|
|
|
15
15
|
<!-- prose-enum-exempt: alpha and beta are the fast pair; gamma is the slow fallback, not a dropped member -->
|
|
16
16
|
The fast pair alpha/beta short-circuits before gamma is ever consulted.
|
|
17
|
+
|
|
18
|
+
A tilde fence holds a shown list:
|
|
19
|
+
|
|
20
|
+
~~~
|
|
21
|
+
The signals alpha, beta are the pair.
|
|
22
|
+
~~~
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: It's worth noting that this front-matter value — metadata — never prose — stays clean.
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
# Guide Title
|
|
2
6
|
|
|
3
7
|
## Overview
|
|
@@ -31,3 +35,9 @@ A tell quoted in a list-item fence is a specimen:
|
|
|
31
35
|
- ```
|
|
32
36
|
It is worth noting that the pipeline runs green — every time — without fail — really.
|
|
33
37
|
```
|
|
38
|
+
|
|
39
|
+
A tell in a tilde fence is a specimen too:
|
|
40
|
+
|
|
41
|
+
~~~
|
|
42
|
+
It is worth noting that the pipeline runs green — every time — without fail — really.
|
|
43
|
+
~~~
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
widget-toolkit/SPEC.md:3
|
|
2
|
-
widget-toolkit/SPEC.md:
|
|
3
|
-
widget-toolkit/SPEC.md:
|
|
4
|
-
widget-toolkit/SPEC.md:
|
|
5
|
-
widget-toolkit/SPEC.md:
|
|
6
|
-
widget-toolkit/SPEC.md:
|
|
7
|
-
widget-toolkit/SPEC.md:
|
|
8
|
-
widget-toolkit/SPEC.md:
|
|
1
|
+
widget-toolkit/SPEC.md:3 hex-reference: 4f2a9c1e
|
|
2
|
+
widget-toolkit/SPEC.md:10 dated-attribution: 2026-08-12
|
|
3
|
+
widget-toolkit/SPEC.md:13 agent-file-pointer: CLAUDE.md (section citation)
|
|
4
|
+
widget-toolkit/SPEC.md:14 agent-file-pointer: CLAUDE.md (possessive)
|
|
5
|
+
widget-toolkit/SPEC.md:16 private-surface: LEDGER.md
|
|
6
|
+
widget-toolkit/SPEC.md:18 queue-slug: sprocket-rework-unit
|
|
7
|
+
widget-toolkit/SPEC.md:20 consumer-roster: LIFECYCLE_KIT_PREDECESSOR `align=spec`, `spec=scope`
|
|
8
|
+
widget-toolkit/SPEC.md:23 hex-reference: 4f2a9c1e
|
|
9
|
+
widget-toolkit/SPEC.md:25 dated: 2026-08-30
|
|
@@ -2,3 +2,5 @@ SPEC.md:3 falls in claim class 'engine-substrate'
|
|
|
2
2
|
SPEC.md:7 falls in claim class 'engine-substrate'
|
|
3
3
|
SPEC.md:10 falls in claim class 'engine-substrate'
|
|
4
4
|
SPEC.md:13 falls in claim class 'engine-substrate'
|
|
5
|
+
front.md:3 falls in claim class 'engine-substrate'
|
|
6
|
+
front.md:10 falls in claim class 'engine-substrate'
|
|
@@ -34,6 +34,10 @@
|
|
|
34
34
|
# spec: delegation-kit/SPEC.md §The keyed verdict — a word carrying `@FAILED_RUN@` also runs that argv after a spawned turn ending FAILED, with the turn's run directory in the word
|
|
35
35
|
# DELEGATION_KIT_FOREIGN_USAGE_CMD[] = <adapter>=@FAILED_RUN@
|
|
36
36
|
|
|
37
|
+
# spec: delegation-kit/SPEC.md §The foreign-vendor run — the argv that prints a turn's tokens_in= tokens_out= tokens_cached= tokens_cache_write= cost=, one `<adapter>=<word>` element per word, `@RUN_DIR@` the run directory; the kit ships none (each reads a vendor's output); default empty (every field `-`)
|
|
38
|
+
# DELEGATION_KIT_FOREIGN_SPEND_CMD[] = <adapter>=<program>
|
|
39
|
+
# DELEGATION_KIT_FOREIGN_SPEND_CMD[] = <adapter>=@RUN_DIR@
|
|
40
|
+
|
|
37
41
|
# spec: delegation-kit/SPEC.md §The keyed verdict — the keyed pause thresholds, short window and long; each defaults to the account-keyed knob it derives from
|
|
38
42
|
# DELEGATION_KIT_FOREIGN_PAUSE_PCT = <percent>
|
|
39
43
|
# DELEGATION_KIT_FOREIGN_PAUSE_PCT_LONG = <percent>
|