checkwright 0.38.0 → 0.39.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-amendment-queue.test.sh +3 -3
- package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +3 -3
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +3 -3
- package/payload/canon-kit/gate-tests/check-prose-bounds.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/TASK-QUEUE.md +4 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/widget-toolkit/SPEC.md +1 -1
- package/payload/canon-kit/gate-tests/check-todo-task-liveness.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +7 -7
- package/payload/context-kit/gate-tests/check-surface-ratchet.test.sh +7 -6
- package/payload/delegation-kit/README.md +1 -1
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +2 -2
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +2 -2
- package/payload/evidence-kit/gate-tests/pre-hook.test.sh +5 -5
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +7 -7
- package/payload/evidence-kit/gate-tests/statement-store.test.sh +5 -5
- package/payload/evidence-kit/gate-tests/verify-gate-run-strict.test.sh +5 -4
- package/payload/gate-sdk/README.md +7 -0
- package/payload/gate-sdk/bin/build-native.sh +5 -4
- package/payload/gate-sdk/bin/run-gates.ps1 +8 -7
- package/payload/gate-sdk/bin/run-gates.sh +10 -8
- package/payload/gate-sdk/checks/check-binary-strings.gate +4 -0
- package/payload/gate-sdk/checks/check-exec-write.gate +4 -0
- package/payload/gate-sdk/checks/check-migration-guard.gate +4 -0
- package/payload/gate-sdk/checks/check-path-names.gate +4 -0
- package/payload/gate-sdk/checks/check-pipefail-readers.gate +4 -0
- package/payload/gate-sdk/checks/check-script-preflight.gate +4 -0
- package/payload/gate-sdk/checks/check-site-count.gate +4 -0
- package/payload/gate-sdk/checks/check-tree-terms.gate +1 -1
- package/payload/gate-sdk/gate-tests/binary-only-recipe.test.sh +2 -2
- package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +11 -11
- package/payload/gate-sdk/gate-tests/check-binary-strings/bad/expect.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-binary-strings/bad/out/app.elf +0 -0
- package/payload/gate-sdk/gate-tests/check-binary-strings/bad/out/notes.bin +0 -0
- package/payload/gate-sdk/gate-tests/check-binary-strings/bad/scripts/gate-sdk-config.knobs +3 -0
- package/payload/gate-sdk/gate-tests/check-binary-strings/bad/shapes.list +2 -0
- package/payload/gate-sdk/gate-tests/check-binary-strings/bad/terms.list +2 -0
- package/payload/gate-sdk/gate-tests/check-binary-strings/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-binary-strings/good/out/app.elf +0 -0
- package/payload/gate-sdk/gate-tests/check-binary-strings/good/scripts/gate-sdk-config.knobs +3 -0
- package/payload/gate-sdk/gate-tests/check-binary-strings/good/shapes.list +2 -0
- package/payload/gate-sdk/gate-tests/check-binary-strings/good/terms.list +4 -0
- package/payload/gate-sdk/gate-tests/check-binary-strings.test.sh +74 -0
- package/payload/gate-sdk/gate-tests/check-exec-write/bad/expect.txt +13 -0
- package/payload/gate-sdk/gate-tests/check-exec-write/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-exec-write/bad/src/caller.rs +5 -0
- package/payload/gate-sdk/gate-tests/check-exec-write/bad/src/helper.rs +5 -0
- package/payload/gate-sdk/gate-tests/check-exec-write/bad/src/sites.rs +19 -0
- package/payload/gate-sdk/gate-tests/check-exec-write/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-write/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-exec-write/good/src/helper.rs +5 -0
- package/payload/gate-sdk/gate-tests/check-exec-write/good/src/main.rs +15 -0
- package/payload/gate-sdk/gate-tests/check-exec-write.test.sh +69 -0
- package/payload/gate-sdk/gate-tests/check-identity.test.sh +2 -2
- package/payload/gate-sdk/gate-tests/check-migration-guard/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/bad/base/0001_init.sql +1 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/bad/base/0002_orders.sql +1 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/bad/base/0003_audit.sql +1 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/bad/destructive.list +4 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/bad/expect.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/bad/migrations/0001_init.sql +1 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/bad/migrations/0002_late.sql +1 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/bad/migrations/0003_audit_log.sql +1 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/bad/migrations/0004_prune.sql +3 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/good/base/0001_init.sql +1 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/good/base/0002_legacy.sql +1 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/good/destructive.list +4 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/good/migrations/0001_init.sql +1 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/good/migrations/0002_legacy.sql +1 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/good/migrations/0003_retire_legacy.sql +6 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-migration-guard.test.sh +136 -0
- package/payload/gate-sdk/gate-tests/check-path-names/bad/expect.txt +6 -0
- package/payload/gate-sdk/gate-tests/check-path-names/bad/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names/bad/terms.list +3 -0
- package/payload/gate-sdk/gate-tests/check-path-names/bad/tree/ZePhYr.md +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names/bad/tree/foo/a.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names/bad/tree/foo/zephyr.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names/bad/tree/foo-cli.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names/bad/tree/foo.rs +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names/bad/tree/foo_x.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names/good/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names/good/terms.list +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names/good/tree/foobar.rs +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names/good/tree/food/a.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names/good/tree/xfoo.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-path-names.test.sh +66 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/bad/baseline.tsv +4 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/bad/expect.txt +17 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/bad/tree/over.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/bad/tree/readers.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/bad/tree/shared-lib.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/bad/tree/stale.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/good/baseline.tsv +2 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/good/tree/clean.sh +17 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/good/tree/lib/baselined-lib.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers/good/tree/no-pipefail.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-pipefail-readers.test.sh +114 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-script-preflight/bad/expect.txt +10 -0
- package/payload/gate-sdk/gate-tests/check-script-preflight/bad/rules.list +23 -0
- package/payload/gate-sdk/gate-tests/check-script-preflight/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-script-preflight/bad/tree/submit-job.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-script-preflight/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-script-preflight/good/rules.list +23 -0
- package/payload/gate-sdk/gate-tests/check-script-preflight/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-script-preflight/good/tree/submit-job.sh +17 -0
- package/payload/gate-sdk/gate-tests/check-script-preflight.test.sh +110 -0
- package/payload/gate-sdk/gate-tests/check-site-count/bad/expect.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-site-count/bad/rules.list +5 -0
- package/payload/gate-sdk/gate-tests/check-site-count/bad/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-site-count/bad/sites.tsv +3 -0
- package/payload/gate-sdk/gate-tests/check-site-count/bad/tree/new.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-site-count/bad/tree/over.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-site-count/bad/tree/under.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-site-count/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-site-count/good/rules.list +5 -0
- package/payload/gate-sdk/gate-tests/check-site-count/good/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-site-count/good/sites.tsv +2 -0
- package/payload/gate-sdk/gate-tests/check-site-count/good/tree/blob.bin +0 -0
- package/payload/gate-sdk/gate-tests/check-site-count/good/tree/pinned.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-site-count/good/tree/plain.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-site-count/good/tree/tests/helper.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-site-count.test.sh +90 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +11 -8
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +4 -1
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/terms.list +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/terms.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/rosters/terms.list +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/words.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +36 -16
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +5 -6
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +8 -8
- package/payload/gate-sdk/gate-tests/native-git-hooks.test.sh +7 -7
- package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +4 -4
- package/payload/gate-sdk/gate-tests/run-for-path.test.sh +3 -3
- package/payload/gate-sdk/gate-tests/run-gates-linked-worktree.test.sh +6 -6
- package/payload/gate-sdk/gate-tests/run-json.test.sh +52 -0
- package/payload/gate-sdk/gate-tests/verdict-store.test.sh +99 -0
- package/payload/gate-sdk/lib/gate.sh +12 -9
- package/payload/gate-sdk/lib/test-hermetic.sh +2 -2
- package/payload/gate-sdk/templates/check-skeleton.sh +2 -1
- package/payload/gate-sdk/templates/migration-destructive.list +10 -0
- package/payload/gate-sdk/templates/script-rules.list +39 -0
- package/payload/gate-sdk/templates/strings-shapes.list +15 -0
- package/payload/guard-kit/gate-tests/consumer-rules.test.sh +5 -5
- package/payload/guard-kit/gate-tests/door-binding-corpus.test.sh +2 -2
- package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +3 -3
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +2 -2
- package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +18 -2
- package/payload/lifecycle-kit/gate-tests/peer-channel.test.sh +35 -6
- package/payload/lifecycle-kit/gate-tests/preflight-valve.test.sh +4 -4
- package/payload/lifecycle-kit/templates/consult.md +1 -1
- package/payload/lifecycle-kit/templates/stages/scope.md +1 -1
- package/payload/queue-kit/README.md +1 -1
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +2 -2
- package/payload/queue-kit/gate-tests/check-task-conservation.test.sh +4 -4
- package/payload/site-kit/gate-tests/check-docs-liquid-parse-parser.test.sh +4 -4
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-batch.test.sh +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# spec: lifecycle-kit/SPEC.md §The peer request channel — the four arms end-to-end over a scratch channel outside any repository: a request files from a non-git directory and lists as received, every legal move lands and an illegal one is refused leaving the reply byte-identical, both bulk forms move their matches and a bulk form matching none prints nothing, the ready notice prints a later release and stays silent on an earlier one, a malformed body, a tab in the need line
|
|
2
|
+
# spec: lifecycle-kit/SPEC.md §The peer request channel — the four arms end-to-end over a scratch channel outside any repository: a request files from a non-git directory and lists as received, every legal move lands and an illegal one is refused leaving the reply byte-identical, both bulk forms move their matches and a bulk form matching none prints nothing, the ready notice prints a later release and stays silent on an earlier one, a malformed body, a tab in the need line, an edited request and a multibyte filing time are input errors at exit 3, a tab in a refused reason, a relative channel, a missing one and one inside a work tree are refused at exit 2, a same-second refiling is a collision at exit 2 with the id alone on stdout and every other refusal prints nothing there, an unset channel reads as nothing, moves nothing in bulk and refuses a filing or a targeted move, and with no repository a stray scripts/ knob file configures neither peer arm
|
|
3
3
|
set -uo pipefail
|
|
4
4
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
5
5
|
|
|
@@ -81,30 +81,59 @@ out="$(arm "$CH" --emit-peer-ready peer-c)"; rc=$?
|
|
|
81
81
|
cp "$CH/$id.md" "$SANDBOX/keep.md"
|
|
82
82
|
printf 'more\n' >>"$CH/$id.md"
|
|
83
83
|
out="$(arm "$CH" --emit-peer-list)"; rc=$?
|
|
84
|
-
[[ "$rc" -eq
|
|
84
|
+
[[ "$rc" -eq 3 && "$out" == *"$id.md"*"edited after filing"* ]] || note edited "got $rc -- $out"
|
|
85
85
|
cp "$SANDBOX/keep.md" "$CH/$id.md"
|
|
86
86
|
|
|
87
87
|
# --- a malformed body is refused naming the section, and nothing is filed ---
|
|
88
88
|
n="$(find "$CH" -name '*.md' | wc -l)"
|
|
89
89
|
out="$(printf '## need\nx\n\n## wanted\ny\n' | arm "$CH" --emit-peer-file peer-a)"; rc=$?
|
|
90
|
-
[[ "$rc" -eq
|
|
90
|
+
[[ "$rc" -eq 3 && "$out" == *"## wanted"*"## repro"* ]] || note malformed "got $rc -- $out"
|
|
91
91
|
[[ "$(find "$CH" -name '*.md' | wc -l)" -eq "$n" ]] || note malformed-write "a malformed body was filed"
|
|
92
92
|
|
|
93
93
|
# --- a tab is refused where peer-list prints it: the need line and a refused reason ---
|
|
94
94
|
TAB=$'\t'
|
|
95
95
|
out="$(printf '%s' "${BODY/the gate refuses a path/a tabbed${TAB}ask}" | arm "$CH" --emit-peer-file peer-a)"; rc=$?
|
|
96
|
-
[[ "$rc" -eq
|
|
96
|
+
[[ "$rc" -eq 3 && "$out" == *"holds a tab"* ]] || note tab-need "got $rc -- $out"
|
|
97
97
|
[[ "$(find "$CH" -name '*.md' | wc -l)" -eq "$n" ]] || note tab-need-write "a tabbed need line was filed"
|
|
98
98
|
out="$(arm "$CH" --emit-peer-reply "$id3" refused $'no\tthanks')"; rc=$?
|
|
99
99
|
[[ "$rc" -eq 2 && "$out" == *"holds a tab"* ]] || note tab-reason "got $rc -- $out"
|
|
100
100
|
|
|
101
|
-
# --- a multibyte character across the filing time's byte 10 is malformed at exit
|
|
101
|
+
# --- a multibyte character across the filing time's byte 10 is malformed at exit 3, never a panic ---
|
|
102
102
|
bad_id=r20261124-00000000
|
|
103
103
|
printf '# peer-request v1\nid: %s\nfrom: peer-a\nfiled: 2026-11-2\xc3\xa910:20:30Z\n\n%s' "$bad_id" "$BODY" >"$CH/$bad_id.md"
|
|
104
104
|
out="$(arm "$CH" --emit-peer-list)"; rc=$?
|
|
105
|
-
[[ "$rc" -eq
|
|
105
|
+
[[ "$rc" -eq 3 && "$out" == *"$bad_id.md"*"not a UTC time"* ]] || note multibyte-filed "got $rc -- $out"
|
|
106
106
|
rm -f "$CH/$bad_id.md"
|
|
107
107
|
|
|
108
|
+
# --- a collision is exit 2 with the existing id alone on stdout, the streams captured apart ---
|
|
109
|
+
# Two filings straddling a second boundary are two requests, so the pair refiles until one lands in one second.
|
|
110
|
+
split() { # $1=channel value $2..=the arm flag and its argv; stdout to $SANDBOX/out, stderr to $SANDBOX/err
|
|
111
|
+
local ch="$1"; shift
|
|
112
|
+
( cd "$FREE" && gate_env LIFECYCLE_KIT_PEER_CHANNEL="$ch" && gate_arm_run "$@" >"$SANDBOX/out" 2>"$SANDBOX/err" )
|
|
113
|
+
}
|
|
114
|
+
CC="$SANDBOX/collide"
|
|
115
|
+
landed=''
|
|
116
|
+
for _ in 1 2 3 4 5; do
|
|
117
|
+
rm -rf "$CC" && mkdir -p "$CC"
|
|
118
|
+
printf '%s' "$BODY" | split "$CC" --emit-peer-file peer-a
|
|
119
|
+
first="$(cat "$SANDBOX/out")"
|
|
120
|
+
printf '%s' "$BODY" | split "$CC" --emit-peer-file peer-a; rc=$?
|
|
121
|
+
if [[ "$rc" -ne 0 ]]; then landed=yes; break; fi
|
|
122
|
+
done
|
|
123
|
+
if [[ -z "$landed" ]]; then
|
|
124
|
+
note collision-pair "five refilings never landed in one second"
|
|
125
|
+
else
|
|
126
|
+
[[ "$rc" -eq 2 && "$(cat "$SANDBOX/out")" == "$first" && "$(wc -l <"$SANDBOX/out" | tr -d ' ')" -eq 1 ]] \
|
|
127
|
+
|| note collision "want exit 2 and the id alone on stdout, got $rc -- $(cat "$SANDBOX/out")"
|
|
128
|
+
[[ "$(cat "$SANDBOX/err")" == *"$first"* ]] || note collision-err "stderr does not name the filed ask: $(cat "$SANDBOX/err")"
|
|
129
|
+
fi
|
|
130
|
+
printf '## need\nx\n' | split "$CC" --emit-peer-file peer-a; rc=$?
|
|
131
|
+
[[ "$rc" -eq 3 && ! -s "$SANDBOX/out" ]] || note quiet-malformed "a malformed body printed to stdout or did not exit 3 ($rc)"
|
|
132
|
+
printf '%s' "$BODY" | split "" --emit-peer-file peer-a; rc=$?
|
|
133
|
+
[[ "$rc" -eq 2 && ! -s "$SANDBOX/out" ]] || note quiet-unset "an unset channel printed to stdout or did not exit 2 ($rc)"
|
|
134
|
+
printf '%s' "$BODY" | split "$CC" --emit-peer-file Peer_A; rc=$?
|
|
135
|
+
[[ "$rc" -eq 2 && ! -s "$SANDBOX/out" ]] || note quiet-peer "a peer outside its grammar printed to stdout or did not exit 2 ($rc)"
|
|
136
|
+
|
|
108
137
|
# --- a bad channel value is refused at exit 2 naming the knob ---
|
|
109
138
|
mkdir -p "$SANDBOX/repo" && git -C "$SANDBOX/repo" init -q
|
|
110
139
|
: >"$SANDBOX/a-file"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the one-shot pre-flight valve end-to-end through a sandboxed enter-stage: an armed line admits the entry past a refusing LIFECYCLE_KIT_ENTRY_PREFLIGHT command and is rewritten to used; an arming for another stage, another iteration, or one already used admits nothing; both malformed ledger shapes are exit
|
|
2
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the one-shot pre-flight valve end-to-end through a sandboxed enter-stage: an armed line admits the entry past a refusing LIFECYCLE_KIT_ENTRY_PREFLIGHT command and is rewritten to used; an arming for another stage, another iteration, or one already used admits nothing; both malformed ledger shapes are exit 3 with nothing written; a configured-but-absent path is not-armed rather than an error and the refusal names it; and --simulate reports the would-be admission leaving the ledger byte-identical.
|
|
3
3
|
set -uo pipefail
|
|
4
4
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
5
5
|
|
|
@@ -119,7 +119,7 @@ sh="$(seed short 'demo-iteration build armed
|
|
|
119
119
|
')"
|
|
120
120
|
cp "$sh/.workflow/WORKFLOW-STATE.txt" "$sh/s.before"
|
|
121
121
|
out="$(run_enter "$sh" build)"; rc=$?
|
|
122
|
-
[[ "$rc" -eq
|
|
122
|
+
[[ "$rc" -eq 3 ]] || note short-rc "a reason-less line must be exit 3, got $rc -- $out"
|
|
123
123
|
grep -qF 'fewer than the four' <<<"$out" || note short-msg "the fail-closed refusal did not name the shape: $out"
|
|
124
124
|
cmp -s "$sh/s.before" "$sh/.workflow/WORKFLOW-STATE.txt" || note short-write "a fail-closed refusal wrote the state file"
|
|
125
125
|
|
|
@@ -127,7 +127,7 @@ cmp -s "$sh/s.before" "$sh/.workflow/WORKFLOW-STATE.txt" || note short-write "a
|
|
|
127
127
|
bt="$(seed bad-token 'demo-iteration build pending a token no reader knows
|
|
128
128
|
')"
|
|
129
129
|
out="$(run_enter "$bt" build)"; rc=$?
|
|
130
|
-
[[ "$rc" -eq
|
|
130
|
+
[[ "$rc" -eq 3 ]] || note token-rc "an unknown state token must be exit 3, got $rc -- $out"
|
|
131
131
|
grep -qF 'neither armed nor used' <<<"$out" || note token-msg "the fail-closed refusal did not name the token: $out"
|
|
132
132
|
|
|
133
133
|
# --- a configured path that does not exist is NOT ARMED, not an error, and the refusal names it ---
|
|
@@ -166,5 +166,5 @@ cmp -s "$sm/v.before" "$sm/.workflow/preflight-valve.txt" || note sim-ledger "--
|
|
|
166
166
|
cmp -s "$sm/s.before" "$sm/.workflow/WORKFLOW-STATE.txt" || note sim-state "--simulate wrote the state file"
|
|
167
167
|
|
|
168
168
|
[[ "$fails" -eq 0 ]] || { echo "preflight-valve.test: $fails assertion(s) failed"; exit 1; }
|
|
169
|
-
echo "preflight-valve.test: clean (armed admits once and flips to used with the prior-use count printed; another stage, another iteration and a spent line admit nothing; both malformed shapes exit
|
|
169
|
+
echo "preflight-valve.test: clean (armed admits once and flips to used with the prior-use count printed; another stage, another iteration and a spent line admit nothing; both malformed shapes exit 3 writing nothing; an absent path refuses and is named; --simulate relays the would-be admission and writes nothing)"
|
|
170
170
|
exit 0
|
|
@@ -2,7 +2,7 @@ The `consult` skill — a session that reconsiders a ruling with the operator or
|
|
|
2
2
|
|
|
3
3
|
The write authority this skill leans on is **not** the skill's to grant: it belongs to the ruling record itself, which states who may record a ruling there and under what condition. What this skill adds on top of that authority is **obligation**. Any session that closes a ruling with the operator is permitted to record it; a consultation has not finished until it has.
|
|
4
4
|
|
|
5
|
-
**First step — verify your tier.** A consultation runs on the class `--emit knob-values LIFECYCLE_KIT_CONSULT_CLASS` names. Run `--model-verdict --expect <that class>` on the gate binary `GATE_SDK_NATIVE_BIN` names (delegation-kit/SPEC.md §model-verdict; without delegation-kit, skip this). On exit 1, stop before reading in. Say that this session is below its floor, quoting the verdict line, so it is restarted on that class: to the operator, or, dispatched, to the lead in one escalation block. On exit 2 the tier is unverified and not refused: state the verdict line in your first message and proceed.
|
|
5
|
+
**First step — verify your tier.** A consultation runs on the class `--emit knob-values LIFECYCLE_KIT_CONSULT_CLASS` names. Run `--model-verdict --expect <that class>` on the gate binary `GATE_SDK_NATIVE_BIN` names (delegation-kit/SPEC.md §model-verdict; without delegation-kit, skip this). On exit 1, stop before reading in. Say that this session is below its floor, quoting the verdict line, so it is restarted on that class: to the operator, or, dispatched, to the lead in one escalation block. On exit 2 or 3 the tier is unverified and not refused: state the verdict line in your first message and proceed.
|
|
6
6
|
|
|
7
7
|
## Session ritual
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ The `scope` stage of an iteration — the exploratory half of design. Identify a
|
|
|
14
14
|
|
|
15
15
|
**Read each promoted entry's `[observed-by: <producer>]` and take one of two branches.** The tag says the entry's completion predicate is an observation of a remote run rather than a tree state (queue-kit/SPEC.md §The tag algebra), and this stage is the `<producer>` field's only reader. If a **mid-iteration push** produces that run, the push-placement rule governs (lifecycle-kit/SPEC.md §The state machine), the observation arrives in time to be drained, and the push counts toward the set's push need (below). If **only a release run** produces it, the placement is unsatisfiable — a release run is tag-triggered, so no mid-iteration push can fire it — and the entry **splits here**: promote the produce half now and file the observe half deferred, carrying the producer name, so the next iteration's first act is reading a run that already exists. Split at promotion rather than later because this is the one moment the unit set is bounded and the one session that may write the queue.
|
|
16
16
|
|
|
17
|
-
**An entry whose remaining work runs at the drain stage or later is never promoted untagged**, since that stage's entry refuses it (lifecycle-kit/SPEC.md §check-stage-entry, assertion B). Tag it `[drain-exempt: <reason>]` where the drain stage moves it;
|
|
17
|
+
**An entry whose remaining work runs at the drain stage or later is never promoted untagged**, since that stage's entry refuses it (lifecycle-kit/SPEC.md §check-stage-entry, assertion B). Tag it `[drain-exempt: <reason>]` only where the drain stage itself moves it; work of a later stage, a release cut or a notice at close, keeps it deferred with the obligation in the set record.
|
|
18
18
|
|
|
19
19
|
**A standing directive is a theme, not a unit list.** A directive received from a lead or operator at iteration open bounds this survey — it names the theme, never the units. The intake sweep and the premise re-verification run regardless, and the proposed unit set is escalated for ruling before promotion: to the lead under the split posture, to the user directly under none — the stage's ordinary stop. The destination changes; the proposal step does not.
|
|
20
20
|
|
|
@@ -65,7 +65,7 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
|
|
|
65
65
|
"$gates" --emit queue-migrate --write TASK-QUEUE.md # once, on upgrade: bullet entries become ### headings with a tag line
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
Each `--queue` verb runs the gates coupled to the queue file after it writes, and never stages or commits: exit 0 is written and green, 1 is written
|
|
68
|
+
Each `--queue` verb runs the gates coupled to the queue file after it writes, and never stages or commits: exit 0 is written and green, 1 is written and not green, to fix before you commit, 2 is nothing written.
|
|
69
69
|
|
|
70
70
|
The roadmap projection is opt-in: it emits nothing until you set the horizon and track vocabularies and a projection page in your config (step 3 above), so an unconfigured consumer gets a clean skip rather than a kit-shaped roadmap.
|
|
71
71
|
|
|
@@ -97,7 +97,7 @@ printf '%s\n' "$queue" >"$sb/TASK-QUEUE.md"
|
|
|
97
97
|
printf '# page\n\nThe pending `old-task` work.\n' >"$sb/docs/page.md"
|
|
98
98
|
mv "$sb/.git" "$sb/.git-saved"
|
|
99
99
|
printf 'gitdir: %s/absent\n' "$sb" >"$sb/.git"
|
|
100
|
-
expect refused-repository-exits-
|
|
100
|
+
expect refused-repository-exits-3 cite.knobs 3 "marks a repository"
|
|
101
101
|
rm "$sb/.git"
|
|
102
102
|
mv "$sb/.git-saved" "$sb/.git"
|
|
103
103
|
|
|
@@ -105,5 +105,5 @@ if [[ "$fails" -gt 0 ]]; then
|
|
|
105
105
|
echo "check-queue-slug-liveness.test.sh: $fails case(s) failed"
|
|
106
106
|
exit 1
|
|
107
107
|
fi
|
|
108
|
-
echo "check-queue-slug-liveness.test.sh: clean (retired set from the scratch repo's own history: the empty knob skips, a retired citation reds, a live name and a reasoned valve clear, a reasonless valve reds, a stale status reds and accurate ones clear, a refused repository exits
|
|
108
|
+
echo "check-queue-slug-liveness.test.sh: clean (retired set from the scratch repo's own history: the empty knob skips, a retired citation reds, a live name and a reasoned valve clear, a reasonless valve reds, a stale status reds and accurate ones clear, a refused repository exits 3, 8 cases)"
|
|
109
109
|
exit 0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# spec: queue-kit/SPEC.md §check-task-conservation — the repository answer no case dir can carry: outside a repository there is no HEAD baseline and the gate is clean, while a repository git refuses, a nested one git skips included, exits
|
|
2
|
+
# spec: queue-kit/SPEC.md §check-task-conservation — the repository answer no case dir can carry: outside a repository there is no HEAD baseline and the gate is clean, while a repository git refuses, a nested one git skips included, exits 3 rather than reading as none.
|
|
3
3
|
#
|
|
4
4
|
# Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
|
|
5
5
|
set -uo pipefail
|
|
@@ -23,16 +23,16 @@ expect no-repository-clean "$SANDBOX/none" 0 "no git repository"
|
|
|
23
23
|
|
|
24
24
|
mkdir -p "$SANDBOX/refused"
|
|
25
25
|
printf 'gitdir: %s/absent\n' "$SANDBOX/refused" >"$SANDBOX/refused/.git"
|
|
26
|
-
expect refused-repository-exits-
|
|
26
|
+
expect refused-repository-exits-3 "$SANDBOX/refused" 3 "marks a repository"
|
|
27
27
|
|
|
28
28
|
git init -q "$SANDBOX/outer"
|
|
29
29
|
mkdir -p "$SANDBOX/outer/inner/.git"
|
|
30
30
|
printf 'garbage\n' >"$SANDBOX/outer/inner/.git/HEAD"
|
|
31
|
-
expect nested-skipped-exits-
|
|
31
|
+
expect nested-skipped-exits-3 "$SANDBOX/outer/inner" 3 "marks a repository beneath it"
|
|
32
32
|
|
|
33
33
|
if [[ "$fails" -gt 0 ]]; then
|
|
34
34
|
echo "check-task-conservation.test.sh: $fails case(s) failed"
|
|
35
35
|
exit 1
|
|
36
36
|
fi
|
|
37
|
-
echo "check-task-conservation.test.sh: clean (no repository clean, a refused and a nested skipped repository exit
|
|
37
|
+
echo "check-task-conservation.test.sh: clean (no repository clean, a refused and a nested skipped repository exit 3, 3 cases)"
|
|
38
38
|
exit 0
|
|
@@ -43,14 +43,14 @@ run_case() {
|
|
|
43
43
|
|
|
44
44
|
printf '%s\n' 'SITE_KIT_LIQUID_PARSER[] = bash' 'SITE_KIT_LIQUID_PARSER[] = -c' \
|
|
45
45
|
"SITE_KIT_LIQUID_PARSER[] = tr -cd '\\000'" > "$tmp/blind.knobs"
|
|
46
|
-
run_case "a parser answering every document with an empty verdict" "$tmp/blind.knobs"
|
|
46
|
+
run_case "a parser answering every document with an empty verdict" "$tmp/blind.knobs" 3 "failed its probe"
|
|
47
47
|
|
|
48
48
|
printf '%s\n' 'SITE_KIT_LIQUID_PARSER[] = bash' 'SITE_KIT_LIQUID_PARSER[] = -c' \
|
|
49
49
|
'SITE_KIT_LIQUID_PARSER[] = cat >/dev/null; printf "\000err\000"' > "$tmp/short.knobs"
|
|
50
|
-
run_case "a parser passing the probe and then returning a short count" "$tmp/short.knobs"
|
|
50
|
+
run_case "a parser passing the probe and then returning a short count" "$tmp/short.knobs" 3 "verdict(s) for 3 document(s)"
|
|
51
51
|
|
|
52
52
|
printf '%s\n' 'SITE_KIT_LIQUID_PARSER[] = site-kit-no-such-liquid-parser' > "$tmp/unresolvable.knobs"
|
|
53
|
-
run_case "an unresolvable parser command" "$tmp/unresolvable.knobs"
|
|
53
|
+
run_case "an unresolvable parser command" "$tmp/unresolvable.knobs" 3 "failed its probe"
|
|
54
54
|
|
|
55
55
|
run_case "an error below a front-matter block" "" 1 "docs/late.md: Liquid syntax error (line 8):"
|
|
56
56
|
|
|
@@ -58,5 +58,5 @@ if [[ "$fails" -gt 0 ]]; then
|
|
|
58
58
|
echo "check-docs-liquid-parse-parser.test: $fails assertion(s) failed"
|
|
59
59
|
exit 1
|
|
60
60
|
fi
|
|
61
|
-
echo "check-docs-liquid-parse-parser.test: ok (a blind parser, a short count and an unresolvable command each exit
|
|
61
|
+
echo "check-docs-liquid-parse-parser.test: ok (a blind parser, a short count and an unresolvable command each exit 3; an error below front matter reports the file's own line)"
|
|
62
62
|
exit 0
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# The pair sets no renderer knob, so the kit's batch default fills and the pair
|
|
5
5
|
# already runs the batch path — what it leaves untested is everything that needs
|
|
6
6
|
# a second configuration: the kit's two defaults agreeing, the per-document
|
|
7
|
-
# fallback, and the two exit-
|
|
7
|
+
# fallback, and the two exit-3 refusals. The fill condition itself is a unit test
|
|
8
8
|
# on the crate's site-kit knob table (site-kit/SPEC.md §Knob defaults).
|
|
9
9
|
#
|
|
10
10
|
# Five assertions:
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
# 2/3. verdicts — the batch path and the per-document fallback return the SAME
|
|
15
15
|
# verdict on the same pages, so the speedup changed no finding.
|
|
16
16
|
# 4. count — a batch renderer that passes the probe but returns the wrong
|
|
17
|
-
# document count exits
|
|
18
|
-
# 5. probe — an unresolvable batch command exits
|
|
17
|
+
# document count exits 3 (fail-closed), never 1.
|
|
18
|
+
# 5. probe — an unresolvable batch command exits 3 rather than silently
|
|
19
19
|
# falling back to a different parser.
|
|
20
20
|
# The gate enumerates tracked pages via git ls-files, so the fixture is a
|
|
21
21
|
# throwaway git repo.
|
|
@@ -118,7 +118,7 @@ for mode in batch per-document; do
|
|
|
118
118
|
|| { echo " FAIL: $mode path: faithful page expected exit 0, got $rc: $out"; fails=$((fails + 1)); }
|
|
119
119
|
done
|
|
120
120
|
|
|
121
|
-
# --- 4. count mismatch is fail-closed (exit
|
|
121
|
+
# --- 4. count mismatch is fail-closed (exit 3), not a finding -----------------
|
|
122
122
|
# The stub emits exactly two documents whatever it is fed, so it PASSES the
|
|
123
123
|
# two-document probe and only the corpus count catches it — which is the point:
|
|
124
124
|
# a stub the probe already rejected would never reach the count assertion.
|
|
@@ -128,8 +128,8 @@ printf '%s\n' 'SITE_KIT_RENDERER_BATCH[] = bash' 'SITE_KIT_RENDERER_BATCH[] = -c
|
|
|
128
128
|
git -C "$tmp" add docs/p1.md docs/p2.md docs/p3.md
|
|
129
129
|
out="$( cd "$tmp" && gate_env SITE_KIT_KNOB_FILE="$tmp/miscount.knobs" \
|
|
130
130
|
&& gate_run check-docs-render-fidelity "$CHECKS" docs 2>&1 )"; rc=$?
|
|
131
|
-
[[ "$rc" -eq
|
|
132
|
-
|| { echo " FAIL: batch count mismatch expected exit
|
|
131
|
+
[[ "$rc" -eq 3 ]] \
|
|
132
|
+
|| { echo " FAIL: batch count mismatch expected exit 3 (fail-closed), got $rc: $out"; fails=$((fails + 1)); }
|
|
133
133
|
grep -qF -- "document(s) for" <<<"$out" \
|
|
134
134
|
|| { echo " FAIL: count-mismatch refusal does not name the counts: $out"; fails=$((fails + 1)); }
|
|
135
135
|
|
|
@@ -138,8 +138,8 @@ printf '%s\n' 'SITE_KIT_RENDERER_BATCH[] = site-kit-no-such-batch-renderer' > "$
|
|
|
138
138
|
|
|
139
139
|
out="$( cd "$tmp" && gate_env SITE_KIT_KNOB_FILE="$tmp/unresolvable.knobs" \
|
|
140
140
|
&& gate_run check-docs-render-fidelity "$CHECKS" docs 2>&1 )"; rc=$?
|
|
141
|
-
[[ "$rc" -eq
|
|
142
|
-
|| { echo " FAIL: unresolvable batch renderer expected exit
|
|
141
|
+
[[ "$rc" -eq 3 ]] \
|
|
142
|
+
|| { echo " FAIL: unresolvable batch renderer expected exit 3, got $rc: $out"; fails=$((fails + 1)); }
|
|
143
143
|
grep -qF -- "failed its probe" <<<"$out" \
|
|
144
144
|
|| { echo " FAIL: batch probe refusal does not name the probe: $out"; fails=$((fails + 1)); }
|
|
145
145
|
grep -qF -- "DOCS-RENDER-FIDELITY: clean" <<<"$out" \
|
|
@@ -149,5 +149,5 @@ if [[ "$fails" -gt 0 ]]; then
|
|
|
149
149
|
echo "check-docs-render-fidelity-batch.test: $fails assertion(s) failed"
|
|
150
150
|
exit 1
|
|
151
151
|
fi
|
|
152
|
-
echo "check-docs-render-fidelity-batch.test: ok (defaults agree byte-for-byte; both paths agree on verdicts; count mismatch and probe failure both exit
|
|
152
|
+
echo "check-docs-render-fidelity-batch.test: ok (defaults agree byte-for-byte; both paths agree on verdicts; count mismatch and probe failure both exit 3)"
|
|
153
153
|
exit 0
|