checkwright 0.46.0 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/package.json +2 -2
  2. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  3. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
  4. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  5. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  6. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  7. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  8. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
  9. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  10. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  11. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
  12. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  13. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  14. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  15. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  16. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
  17. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  18. package/payload/canon-kit/README.md +1 -0
  19. package/payload/canon-kit/checks/check-duplicate-text.gate +4 -0
  20. package/payload/canon-kit/gate-tests/check-duplicate-text/bad/docs/a.md +11 -0
  21. package/payload/canon-kit/gate-tests/check-duplicate-text/bad/docs/b.md +8 -0
  22. package/payload/canon-kit/gate-tests/check-duplicate-text/bad/docs/c.md +6 -0
  23. package/payload/canon-kit/gate-tests/check-duplicate-text/bad/docs/d.md +7 -0
  24. package/payload/canon-kit/gate-tests/check-duplicate-text/bad/expect.txt +6 -0
  25. package/payload/canon-kit/gate-tests/check-duplicate-text/bad/scripts/canon-config.knobs +3 -0
  26. package/payload/canon-kit/gate-tests/check-duplicate-text/good/docs/a.md +26 -0
  27. package/payload/canon-kit/gate-tests/check-duplicate-text/good/docs/b.md +23 -0
  28. package/payload/canon-kit/gate-tests/check-duplicate-text/good/expect.txt +1 -0
  29. package/payload/canon-kit/gate-tests/check-duplicate-text/good/scripts/canon-config.knobs +4 -0
  30. package/payload/canon-kit/gate-tests/check-duplicate-text.test.sh +97 -0
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "checkwright-pwsh": "bin/checkwright.ps1"
5
5
  },
6
6
  "checkwright": {
7
- "commit": "1549a29532f6027b7b7e5cc9f0353039c0458973",
7
+ "commit": "6de7c949f40e12832dea80ea68cfa553bc5d6824",
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.46.0"
33
+ "version": "0.48.0"
34
34
  }
@@ -1 +1 @@
1
- 23c041ff70ac297f351d783d738132f772ffbf2cebf0953ac05ffe392476e18c checkwright-gates
1
+ 9e937f1767d59263276639f669102aff2f227c8941929ac19b68fb4e56b086d8 checkwright-gates
@@ -1 +1 @@
1
- af443d608140683817e2225b3d6fd4aa45730c77e5c39479333e30d00c8fe6c7 *checkwright-gates.exe
1
+ afa5d5bab21fe0a2d9ccfca98ea247237a19c18462d29a69d0303d9ed850fb08 *checkwright-gates.exe
@@ -1 +1 @@
1
- 86fc3c5f3768d2d8f6192b879e56c3dce8c79c3d0f80694aa92531799162d3a2 checkwright-gates
1
+ dcac8e35b6ae781a4c7ef72b587c53f3c7221041cbae79a846195984b1c02d98 checkwright-gates
@@ -1 +1 @@
1
- 0764c9915bb83a50ca92894193b01ec711f454a680e73a8547347da5a535230e checkwright-gates
1
+ 100e5dc6ef023bc3970f5197f4ec9e86e425d1f1b1a317fb83eed18e78e7cfd2 checkwright-gates
@@ -1 +1 @@
1
- ee01486d74c3e49462256466cda849ae7bc0751b27ef9dc399b6e93180f52cfe checkwright-gates
1
+ 8c3868196e06d36b8f017c1199630962757cb9dee4521fd1f742004b9b133cae checkwright-gates
@@ -1 +1 @@
1
- 9a308bda980d339ca849acd389136a51a62873af3f6225f96c1a9bd7e7dace59 *checkwright-gates.exe
1
+ 748b884394fdd245b604095f6bd4b284d7c5852cefcb1c53bbd268c8d24f557a *checkwright-gates.exe
@@ -1 +1 @@
1
- 4f3aa811ebcf06216cc8bee77fa812faaa519f509d5694d39b5367ad891b1be6 checkwright-gates
1
+ 1196cfe883275bb44c0598d501e226f49b4e76a54e357895368dd15908061e69 checkwright-gates
@@ -1 +1 @@
1
- 25acc6f998d3df20e3b5478674fdce192392d268bfa64f67f9bd2c773ba5ea72 checkwright-gates
1
+ 436c9ed91f2cd1f819a640a43b451f0d3ab9762f250ad1f7a86cafba6f1662c6 checkwright-gates
@@ -27,6 +27,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required); the queue-facing gate
27
27
  check-docs-cmd # invoked paths + kit knobs in docs resolve
28
28
  check-docs-restatement-parity # needs restating pages (their code tokens held to the README beside each)
29
29
  check-docs-page-repeat # needs declared pages (no link target or long sentence stated twice on one, or restated from the chrome)
30
+ check-duplicate-text # needs declared files (no long run of words stated in two of them)
30
31
  check-docs-page-length # needs declared pages and a bound (no page past the word bound)
31
32
  check-citation-link # needs declared pages (every section citation links its section)
32
33
  check-fence-command-head # every shell-fence command starts with a word that can run
@@ -0,0 +1,4 @@
1
+ # graph: couples=knob:CANON_KIT_DUPLICATE_TEXT_GLOBS dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # armed-by: CANON_KIT_DUPLICATE_TEXT_GLOBS
4
+ # spec: canon-kit/SPEC.md §check-duplicate-text — no run of CANON_KIT_DUPLICATE_TEXT_MIN_WORDS words or more is stated in two declared files, with the duplicate-text-exempt valve
@@ -0,0 +1,11 @@
1
+ # Alpha
2
+
3
+ Every commit runs the full battery before it lands on master.
4
+
5
+ The shared run starts here on the second line, as the wrap shows.
6
+
7
+ A reasonless valve never exempts the copy that it sits above.
8
+
9
+ Each stage session reads its own journal and stops.
10
+
11
+ Each stage session reads its own journal before the lead resumes the queue.
@@ -0,0 +1,8 @@
1
+ # Beta
2
+
3
+ Here too, every commit runs the full battery before it lands on master.
4
+
5
+ This paragraph wraps across its lines, and
6
+ the shared run starts here on the second line, as the wrap shows.
7
+
8
+ Each stage session reads its own journal before the lead resumes the queue.
@@ -0,0 +1,6 @@
1
+ # Gamma
2
+
3
+ Again: every commit runs the full battery before it lands on master.
4
+
5
+ <!-- duplicate-text-exempt: -->
6
+ A reasonless valve never exempts the copy that it sits above.
@@ -0,0 +1,7 @@
1
+ ---
2
+ summary: |
3
+ ```
4
+ ---
5
+ # Delta
6
+
7
+ Once more, every commit runs the full battery before it lands on master.
@@ -0,0 +1,6 @@
1
+ docs/b.md:3: a run of 11 words first stated at docs/a.md:3: "every commit runs the full battery …"
2
+ docs/b.md:6: a run of 13 words first stated at docs/a.md:5: "the shared run starts here on …"
3
+ docs/b.md:8: a run of 13 words first stated at docs/a.md:11: "each stage session reads its own …"
4
+ docs/c.md:3: a run of 11 words first stated at docs/a.md:3: "every commit runs the full battery …"
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
+ docs/d.md:7: a run of 11 words first stated at docs/a.md:3: "every commit runs the full battery …"
@@ -0,0 +1,3 @@
1
+ # spec: canon-kit/SPEC.md §check-duplicate-text — fixture consumer config: every page under docs/ is compared at a six-word run
2
+ CANON_KIT_DUPLICATE_TEXT_GLOBS[] = docs/*.md
3
+ CANON_KIT_DUPLICATE_TEXT_MIN_WORDS = 6
@@ -0,0 +1,26 @@
1
+ ---
2
+ title: the front matter both pages carry word for word
3
+ ---
4
+ # Alpha
5
+
6
+ Alpha opens with quick brown foxes jumping over the fence.
7
+
8
+ ```sh
9
+ bash gate-sdk/bin/run-gates.sh --only check-duplicate-text runs this same fenced command
10
+ ```
11
+
12
+ ~~~
13
+ a tilde fence holds the same words in both of these pages
14
+ ~~~
15
+
16
+ See [the owning section](https://example.com/one/two/three/four/five/six) first.
17
+
18
+ <!-- roster:begin -->
19
+ this generated block restates the same words in every file it is written into
20
+ <!-- roster:end -->
21
+
22
+ Every reader runs the battery before each commit lands on the branch.
23
+
24
+ A rule repeated in two units of one file under the default setting passes.
25
+
26
+ - A rule repeated in two units of one file under the default setting passes.
@@ -0,0 +1,23 @@
1
+ ---
2
+ title: the front matter both pages carry word for word
3
+ ---
4
+ # Beta
5
+
6
+ Beta closes on quick brown foxes jumping over a wall.
7
+
8
+ ```sh
9
+ bash gate-sdk/bin/run-gates.sh --only check-duplicate-text runs this same fenced command
10
+ ```
11
+
12
+ ~~~
13
+ a tilde fence holds the same words in both of these pages
14
+ ~~~
15
+
16
+ Read [it](https://example.com/one/two/three/four/five/six) before you start.
17
+
18
+ <!-- roster:begin -->
19
+ this generated block restates the same words in every file it is written into
20
+ <!-- roster:end -->
21
+
22
+ <!-- duplicate-text-exempt: the reader of this page needs the rule here, in full -->
23
+ Every reader runs the battery before each commit lands on the branch.
@@ -0,0 +1 @@
1
+ DUPLICATE-TEXT: clean (2 file(s), 7 unit(s); no run of 6 words or more stated in two files)
@@ -0,0 +1,4 @@
1
+ # spec: canon-kit/SPEC.md §check-duplicate-text — fixture consumer config: every page under docs/ is compared at a six-word run
2
+ CANON_KIT_DUPLICATE_TEXT_GLOBS[] = docs/*.md
3
+ CANON_KIT_DUPLICATE_TEXT_GLOBS[] = ./docs/a.md
4
+ CANON_KIT_DUPLICATE_TEXT_MIN_WORDS = 6
@@ -0,0 +1,97 @@
1
+ #!/usr/bin/env bash
2
+ # Behavioral test of the arms the one-pair good/bad harness cannot hold: the
3
+ # within-file switch turned on, the exclude knob dropping a file from the
4
+ # comparison, a symlink alias compared once, and the exit-3 refusal of an
5
+ # unreadable declared file.
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 'chmod -R u+rwx "$SANDBOX" 2>/dev/null; rm -rf "$SANDBOX"' EXIT
14
+
15
+ fails=0
16
+ covered=()
17
+ skipped=()
18
+
19
+ cat >"$SANDBOX/a.md" <<'EOF'
20
+ # A
21
+
22
+ The battery runs on every commit before it lands.
23
+
24
+ - The battery runs on every commit before it lands.
25
+ EOF
26
+ cat >"$SANDBOX/b.md" <<'EOF'
27
+ # B
28
+
29
+ A page of its own, with nothing in common.
30
+ EOF
31
+ cat >"$SANDBOX/gates.knobs" <<'EOF'
32
+ CANON_KIT_DUPLICATE_TEXT_GLOBS[] = *.md
33
+ CANON_KIT_DUPLICATE_TEXT_MIN_WORDS = 6
34
+ EOF
35
+
36
+ run() { # $1..=extra env assignments; prints output, returns rc
37
+ (cd "$SANDBOX" && gate_env CANON_KIT_KNOB_FILE="$SANDBOX/gates.knobs" "$@" \
38
+ && gate_run check-duplicate-text "$DIR/checks" 2>&1)
39
+ }
40
+
41
+ check_case() { # $1=label $2=want-rc $3=want-substring $4=output $5=rc
42
+ covered+=("$1")
43
+ if [[ "$5" -ne "$2" ]]; then
44
+ echo " FAIL [$1]: want exit $2, got $5 -- $4"; fails=$((fails + 1)); return
45
+ fi
46
+ if [[ -n "$3" ]] && ! grep -qF -- "$3" <<<"$4"; then
47
+ echo " FAIL [$1]: exit $5 OK but output lacks '$3':"; printf ' %s\n' "$4"
48
+ fails=$((fails + 1))
49
+ fi
50
+ }
51
+
52
+ out="$(run)"; rc=$?
53
+ check_case "within-file-off" 0 "no run of 6 words or more stated in two files" "$out" "$rc"
54
+
55
+ out="$(run CANON_KIT_DUPLICATE_TEXT_WITHIN_FILE=on)"; rc=$?
56
+ check_case "within-file-on" 1 "a.md:5: a run of 9 words first stated at a.md:3" "$out" "$rc"
57
+
58
+ cp "$SANDBOX/a.md" "$SANDBOX/c.md"
59
+ out="$(run)"; rc=$?
60
+ check_case "copy-compared" 1 "c.md:3: a run of 9 words first stated at a.md:3" "$out" "$rc"
61
+
62
+ printf '%s\n' 'CANON_KIT_DUPLICATE_TEXT_EXCLUDE[] = c.md' >>"$SANDBOX/gates.knobs"
63
+ out="$(run)"; rc=$?
64
+ check_case "exclude-drops-the-copy" 0 "DUPLICATE-TEXT: clean (2 file(s)" "$out" "$rc"
65
+
66
+ # A host whose ln copies rather than links proves nothing, so the alias is
67
+ # probed before it is asserted.
68
+ ln -s a.md "$SANDBOX/link.md" 2>/dev/null
69
+ if [[ ! -L "$SANDBOX/link.md" ]]; then
70
+ echo " SKIP [symlink-alias-compared-once]: this host made no symlink"
71
+ skipped+=("symlink-alias-compared-once")
72
+ else
73
+ out="$(run)"; rc=$?
74
+ check_case "symlink-alias-compared-once" 0 "DUPLICATE-TEXT: clean (2 file(s)" "$out" "$rc"
75
+ fi
76
+ rm -f "$SANDBOX/link.md"
77
+
78
+ # A tree where the sandbox owner can read what it just made unreadable proves
79
+ # nothing, so the refusal is probed before it is asserted.
80
+ chmod 000 "$SANDBOX/b.md"
81
+ if cat "$SANDBOX/b.md" >/dev/null 2>&1; then
82
+ echo " SKIP [unreadable-file-fails-closed]: this user reads a 0000 file"
83
+ skipped+=("unreadable-file-fails-closed")
84
+ else
85
+ out="$(run)"; rc=$?
86
+ check_case "unreadable-file-fails-closed" 3 "b.md" "$out" "$rc"
87
+ fi
88
+
89
+ if [[ "$fails" -gt 0 ]]; then
90
+ echo "check-duplicate-text.test.sh: $fails case(s) failed"
91
+ exit 1
92
+ fi
93
+ ran="$(printf ' + %s' "${covered[@]}")"
94
+ skip=""
95
+ [[ "${#skipped[@]}" -gt 0 ]] && skip="; skipped: $(printf '%s ' "${skipped[@]}")"
96
+ echo "check-duplicate-text.test.sh: clean (${ran# + }${skip% })"
97
+ exit 0