checkwright 0.35.0 → 0.37.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 (113) hide show
  1. package/README.md +3 -0
  2. package/package.json +2 -2
  3. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  4. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
  5. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  6. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  7. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  8. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  9. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
  10. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  11. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  12. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
  13. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  14. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  15. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  16. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  17. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
  18. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  19. package/payload/canon-kit/README.md +1 -0
  20. package/payload/canon-kit/checks/check-comment-tier.gate +1 -1
  21. package/payload/canon-kit/checks/check-rule-id-coverage.gate +4 -0
  22. package/payload/canon-kit/gate-tests/check-amendment-queue.test.sh +39 -0
  23. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
  24. package/payload/canon-kit/gate-tests/check-comment-tier/bad/lib/rules.rs +5 -0
  25. package/payload/canon-kit/gate-tests/check-comment-tier/bad/scripts/canon-config.knobs +5 -0
  26. package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
  27. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +1 -0
  28. package/payload/canon-kit/gate-tests/check-comment-tier/good/scripts/canon-config.knobs +5 -0
  29. package/payload/canon-kit/gate-tests/check-comment-tier/good/src/rules.rs +5 -0
  30. package/payload/canon-kit/gate-tests/check-rule-id-coverage/bad/expect.txt +3 -0
  31. package/payload/canon-kit/gate-tests/check-rule-id-coverage/bad/scripts/canon-config.knobs +5 -0
  32. package/payload/canon-kit/gate-tests/check-rule-id-coverage/bad/specs/access.md +7 -0
  33. package/payload/canon-kit/gate-tests/check-rule-id-coverage/bad/specs/export.md +3 -0
  34. package/payload/canon-kit/gate-tests/check-rule-id-coverage/bad/src/rules.rs +5 -0
  35. package/payload/canon-kit/gate-tests/check-rule-id-coverage/good/expect.txt +1 -0
  36. package/payload/canon-kit/gate-tests/check-rule-id-coverage/good/scripts/canon-config.knobs +7 -0
  37. package/payload/canon-kit/gate-tests/check-rule-id-coverage/good/specs/access.md +9 -0
  38. package/payload/canon-kit/gate-tests/check-rule-id-coverage/good/specs/export.md +3 -0
  39. package/payload/canon-kit/gate-tests/check-rule-id-coverage/good/src/rules.rs +7 -0
  40. package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +2 -2
  41. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +5 -0
  42. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +35 -0
  43. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -2
  44. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +26 -0
  45. package/payload/delegation-kit/README.md +1 -1
  46. package/payload/delegation-kit/usage-tests/cases.tsv +13 -0
  47. package/payload/doctrine-kit/DOCTRINE.md +1 -1
  48. package/payload/evidence-kit/README.md +8 -5
  49. package/payload/evidence-kit/checks/check-test-control.gate +4 -0
  50. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/validate-evidence.txt +2 -2
  51. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/validate-evidence.txt +2 -2
  52. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +56 -7
  53. package/payload/evidence-kit/gate-tests/check-test-control/bad/TASK-QUEUE.md +1 -0
  54. package/payload/evidence-kit/gate-tests/check-test-control/bad/WORKFLOW-STATE.txt +4 -0
  55. package/payload/evidence-kit/gate-tests/check-test-control/bad/args +5 -0
  56. package/payload/evidence-kit/gate-tests/check-test-control/bad/expect.txt +2 -0
  57. package/payload/evidence-kit/gate-tests/check-test-control/bad/scripts/evidence-config.knobs +4 -0
  58. package/payload/evidence-kit/gate-tests/check-test-control/bad/since-baseline.txt +2 -0
  59. package/payload/evidence-kit/gate-tests/check-test-control/bad/validate-baseline.txt +4 -0
  60. package/payload/evidence-kit/gate-tests/check-test-control/bad/validate-evidence.txt +3 -0
  61. package/payload/evidence-kit/gate-tests/check-test-control/good/TASK-QUEUE.md +1 -0
  62. package/payload/evidence-kit/gate-tests/check-test-control/good/WORKFLOW-STATE.txt +4 -0
  63. package/payload/evidence-kit/gate-tests/check-test-control/good/args +5 -0
  64. package/payload/evidence-kit/gate-tests/check-test-control/good/expect.txt +1 -0
  65. package/payload/evidence-kit/gate-tests/check-test-control/good/scripts/evidence-config.knobs +4 -0
  66. package/payload/evidence-kit/gate-tests/check-test-control/good/since-baseline.txt +2 -0
  67. package/payload/evidence-kit/gate-tests/check-test-control/good/validate-baseline.txt +3 -0
  68. package/payload/evidence-kit/gate-tests/check-test-control/good/validate-evidence.txt +3 -0
  69. package/payload/evidence-kit/gate-tests/check-test-control.test.sh +121 -0
  70. package/payload/evidence-kit/gate-tests/pre-hook.test.sh +18 -2
  71. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +1 -1
  72. package/payload/evidence-kit/gate-tests/run-member-door.test.sh +1 -1
  73. package/payload/evidence-kit/gate-tests/statement-store.test.sh +64 -0
  74. package/payload/evidence-kit/gate-tests/test-control-run.test.sh +91 -0
  75. package/payload/evidence-kit/gate-tests/verify-gate-run-strict.test.sh +121 -0
  76. package/payload/evidence-kit/templates/evidence-config.knobs +7 -0
  77. package/payload/gate-sdk/README.md +1 -0
  78. package/payload/gate-sdk/checks/check-hook-knobs-fresh.gate +5 -0
  79. package/payload/gate-sdk/gate-tests/binary-only-recipe.test.sh +125 -0
  80. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/enforcement.md +1 -0
  81. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/args +2 -0
  82. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/expect.txt +5 -0
  83. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/hooks/not-a-hook.md +4 -0
  84. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/hooks/shell-guard.md +3 -0
  85. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/bad/hooks/subagent-stop-liveness.md +12 -0
  86. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/good/args +2 -0
  87. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/good/expect.txt +1 -0
  88. package/payload/gate-sdk/gate-tests/check-hook-knobs-fresh/good/hooks/subagent-stop-liveness.md +16 -0
  89. package/payload/gate-sdk/gate-tests/lib-test-hermetic.test.sh +19 -1
  90. package/payload/gate-sdk/gate-tests/run-for-path.test.sh +16 -1
  91. package/payload/gate-sdk/lib/test-hermetic.sh +6 -1
  92. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +11 -1
  93. package/payload/lifecycle-kit/README.md +4 -0
  94. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +1 -1
  95. package/payload/lifecycle-kit/gate-tests/peer-channel.test.sh +150 -0
  96. package/payload/lifecycle-kit/templates/stages/close.md +2 -2
  97. package/payload/lifecycle-kit/templates/stages/scope.md +2 -0
  98. package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
  99. package/payload/queue-kit/gate-tests/roadmap.test.sh +1 -1
  100. package/payload/site-kit/README.md +3 -0
  101. package/payload/site-kit/checks/check-docs-since.gate +4 -0
  102. package/payload/site-kit/gate-tests/check-docs-since/bad/expect.txt +6 -0
  103. package/payload/site-kit/gate-tests/check-docs-since/bad/notes/2026-01-01-v99-1-0.md +7 -0
  104. package/payload/site-kit/gate-tests/check-docs-since/bad/scripts/site-config.knobs +3 -0
  105. package/payload/site-kit/gate-tests/check-docs-since/bad/site/bare.md +7 -0
  106. package/payload/site-kit/gate-tests/check-docs-since/bad/site/odd.md +8 -0
  107. package/payload/site-kit/gate-tests/check-docs-since/bad/site/open.md +8 -0
  108. package/payload/site-kit/gate-tests/check-docs-since/bad/site/twice.md +9 -0
  109. package/payload/site-kit/gate-tests/check-docs-since/good/expect.txt +1 -0
  110. package/payload/site-kit/gate-tests/check-docs-since/good/notes/announce.md +3 -0
  111. package/payload/site-kit/gate-tests/check-docs-since/good/scripts/site-config.knobs +3 -0
  112. package/payload/site-kit/gate-tests/check-docs-since/good/site/done.md +8 -0
  113. package/payload/site-kit/gate-tests/check-docs-since/good/site/open.md +8 -0
@@ -0,0 +1,150 @@
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 or a refused reason, a multibyte filing time, a relative channel, a missing one and one inside a work tree are refused at exit 2, 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
+ set -uo pipefail
4
+ source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
5
+
6
+ SANDBOX="$(mktemp -d)"
7
+ trap 'rm -rf "$SANDBOX"' EXIT
8
+
9
+ fails=0
10
+ note() { echo " FAIL [$1]: $2"; fails=$((fails + 1)); }
11
+
12
+ CH="$SANDBOX/channel"
13
+ FREE="$SANDBOX/free"
14
+ mkdir -p "$CH" "$FREE"
15
+
16
+ arm() { # $1=channel value $2..=the arm flag and its argv; stdin is the caller's; runs in the non-git dir
17
+ local ch="$1"; shift
18
+ ( cd "$FREE" && gate_env LIFECYCLE_KIT_PEER_CHANNEL="$ch" && gate_arm_run "$@" 2>&1 )
19
+ }
20
+
21
+ BODY=$'## need\nthe gate refuses a path\n\n## repro\n```\n## a heading in a fence\n```\n\n## wanted\nadmit it\n\n## evidence\nthe log\n'
22
+
23
+ # --- a request files from a non-git directory, and lists as received ---
24
+ id="$(printf '%s' "$BODY" | arm "$CH" --emit-peer-file peer-a)"; rc=$?
25
+ [[ "$rc" -eq 0 && "$id" =~ ^r[0-9]{8}-[0-9a-f]{8}$ ]] || note file "want exit 0 and an id, got $rc -- $id"
26
+ [[ "$(head -n 1 "$CH/$id.md" 2>/dev/null)" == "# peer-request v1" ]] || note file-head "the request has no header line"
27
+ [[ -z "$(find "$CH" -name '*.tmp')" ]] || note file-tmp "the temporary file was left behind"
28
+ row="$(arm "$CH" --emit-peer-list)"; rc=$?
29
+ day="${id:1:4}-${id:5:2}-${id:7:2}"
30
+ [[ "$rc" -eq 0 && "$row" == "$id"$'\tpeer-a\t'"$day"$'\treceived\tthe gate refuses a path' ]] \
31
+ || note list-received "the row is not the received request (exit $rc): $row"
32
+
33
+ # --- an illegal move is refused, naming the request, and the reply is untouched ---
34
+ out="$(arm "$CH" --emit-peer-reply "$id" landed)"; rc=$?
35
+ [[ "$rc" -eq 2 && "$out" == *"$id"*"received"*"landed"* ]] || note illegal "want exit 2 naming the request, its state and the move, got $rc -- $out"
36
+ [[ -e "$CH/$id.reply" ]] && note illegal-write "a refused move wrote a reply"
37
+
38
+ # --- the legal walk: filed, re-filed, landed by the bulk form, shipped by the bulk form ---
39
+ out="$(arm "$CH" --emit-peer-reply "$id" filed first-slug)"; rc=$?
40
+ [[ "$rc" -eq 0 && "$out" == "$id filed first-slug" ]] || note filed "got $rc -- $out"
41
+ out="$(arm "$CH" --emit-peer-reply "$id" filed second-slug)"; rc=$?
42
+ [[ "$rc" -eq 0 && "$out" == "$id filed second-slug" ]] || note refiled "got $rc -- $out"
43
+ out="$(arm "$CH" --emit-peer-reply --landed first-slug)"; rc=$?
44
+ [[ "$rc" -eq 0 && -z "$out" ]] || note bulk-none "a bulk form matching none printed or failed ($rc): $out"
45
+ out="$(arm "$CH" --emit-peer-reply --landed second-slug)"; rc=$?
46
+ [[ "$rc" -eq 0 && "$out" == "$id landed" ]] || note bulk-landed "got $rc -- $out"
47
+ out="$(arm "$CH" --emit-peer-reply --shipped v999.0.0)"; rc=$?
48
+ [[ "$rc" -eq 0 && "$out" == "$id shipped v999.0.0" ]] || note bulk-shipped "got $rc -- $out"
49
+ before="$(cat "$CH/$id.reply")"
50
+ out="$(arm "$CH" --emit-peer-reply "$id" refused "too late")"; rc=$?
51
+ [[ "$rc" -eq 2 ]] || note final "a move off shipped was admitted ($rc): $out"
52
+ [[ "$(cat "$CH/$id.reply")" == "$before" ]] || note final-write "a refused move changed the reply"
53
+ [[ "$(head -n 1 "$CH/$id.reply")" == "# peer-reply v1" && "$(wc -l <"$CH/$id.reply" | tr -d ' ')" -eq 5 ]] \
54
+ || note reply-shape "the reply is not a header and four moves: $before"
55
+ row="$(arm "$CH" --emit-peer-list)"
56
+ [[ "$row" == *$'\tshipped v999.0.0\t'* ]] || note list-shipped "the row does not read shipped: $row"
57
+
58
+ # --- refused is final, from received ---
59
+ id2="$(printf '%s' "${BODY/the gate refuses a path/a second ask}" | arm "$CH" --emit-peer-file peer-b)"
60
+ out="$(arm "$CH" --emit-peer-reply "$id2" refused "out of scope")"; rc=$?
61
+ [[ "$rc" -eq 0 && "$out" == "$id2 refused out of scope" ]] || note refused "got $rc -- $out"
62
+ out="$(arm "$CH" --emit-peer-reply "$id2" filed late)"; rc=$?
63
+ [[ "$rc" -eq 2 ]] || note refused-final "a move off refused was admitted ($rc): $out"
64
+
65
+ # --- the ready notice: a later release prints, the peer's own requests only ---
66
+ out="$(arm "$CH" --emit-peer-ready peer-a)"; rc=$?
67
+ [[ "$rc" -eq 0 && "$out" == "peer request $id shipped in v999.0.0, not in this binary ("*"): the gate refuses a path" ]] \
68
+ || note ready "got $rc -- $out"
69
+ out="$(arm "$CH" --emit-peer-ready peer-b)"; rc=$?
70
+ [[ "$rc" -eq 0 && -z "$out" ]] || note ready-other "another peer's request printed ($rc): $out"
71
+
72
+ # --- an earlier release is silent unless this binary carries no stamp it can compare ---
73
+ id3="$(printf '%s' "${BODY/the gate refuses a path/an old ask}" | arm "$CH" --emit-peer-file peer-c)"
74
+ arm "$CH" --emit-peer-reply "$id3" filed old >/dev/null
75
+ arm "$CH" --emit-peer-reply --landed old >/dev/null
76
+ printf '%s\n' "$(date -u +%Y-%m-%d) shipped v0.0.1" >>"$CH/$id3.reply"
77
+ out="$(arm "$CH" --emit-peer-ready peer-c)"; rc=$?
78
+ [[ "$rc" -eq 0 && ( -z "$out" || "$out" == *"(unknown)"* ) ]] || note ready-earlier "an adopted release printed ($rc): $out"
79
+
80
+ # --- an edited request is refused by every reader, naming the file ---
81
+ cp "$CH/$id.md" "$SANDBOX/keep.md"
82
+ printf 'more\n' >>"$CH/$id.md"
83
+ out="$(arm "$CH" --emit-peer-list)"; rc=$?
84
+ [[ "$rc" -eq 2 && "$out" == *"$id.md"*"edited after filing"* ]] || note edited "got $rc -- $out"
85
+ cp "$SANDBOX/keep.md" "$CH/$id.md"
86
+
87
+ # --- a malformed body is refused naming the section, and nothing is filed ---
88
+ n="$(find "$CH" -name '*.md' | wc -l)"
89
+ out="$(printf '## need\nx\n\n## wanted\ny\n' | arm "$CH" --emit-peer-file peer-a)"; rc=$?
90
+ [[ "$rc" -eq 2 && "$out" == *"## wanted"*"## repro"* ]] || note malformed "got $rc -- $out"
91
+ [[ "$(find "$CH" -name '*.md' | wc -l)" -eq "$n" ]] || note malformed-write "a malformed body was filed"
92
+
93
+ # --- a tab is refused where peer-list prints it: the need line and a refused reason ---
94
+ TAB=$'\t'
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 2 && "$out" == *"holds a tab"* ]] || note tab-need "got $rc -- $out"
97
+ [[ "$(find "$CH" -name '*.md' | wc -l)" -eq "$n" ]] || note tab-need-write "a tabbed need line was filed"
98
+ out="$(arm "$CH" --emit-peer-reply "$id3" refused $'no\tthanks')"; rc=$?
99
+ [[ "$rc" -eq 2 && "$out" == *"holds a tab"* ]] || note tab-reason "got $rc -- $out"
100
+
101
+ # --- a multibyte character across the filing time's byte 10 is malformed at exit 2, never a panic ---
102
+ bad_id=r20261124-00000000
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
+ out="$(arm "$CH" --emit-peer-list)"; rc=$?
105
+ [[ "$rc" -eq 2 && "$out" == *"$bad_id.md"*"not a UTC time"* ]] || note multibyte-filed "got $rc -- $out"
106
+ rm -f "$CH/$bad_id.md"
107
+
108
+ # --- a bad channel value is refused at exit 2 naming the knob ---
109
+ mkdir -p "$SANDBOX/repo" && git -C "$SANDBOX/repo" init -q
110
+ : >"$SANDBOX/a-file"
111
+ for bad in relative/channel "$SANDBOX/missing" "$SANDBOX/a-file" "$SANDBOX/repo"; do
112
+ out="$(arm "$bad" --emit-peer-list)"; rc=$?
113
+ [[ "$rc" -eq 2 && "$out" == *"LIFECYCLE_KIT_PEER_CHANNEL is '$bad'"* ]] || note "bad-channel $bad" "got $rc -- $out"
114
+ done
115
+
116
+ # --- unset: the readers and the bulk moves print nothing, the targeted writers refuse ---
117
+ out="$(arm "" --emit-peer-list)"; rc=$?
118
+ [[ "$rc" -eq 0 && -z "$out" ]] || note unset-list "got $rc -- $out"
119
+ out="$(arm "" --emit-peer-ready peer-a)"; rc=$?
120
+ [[ "$rc" -eq 0 && -z "$out" ]] || note unset-ready "got $rc -- $out"
121
+ out="$(arm "" --emit-peer-reply --landed a-slug)"; rc=$?
122
+ [[ "$rc" -eq 0 && -z "$out" ]] || note unset-bulk-landed "got $rc -- $out"
123
+ out="$(arm "" --emit-peer-reply --shipped v1.0.0)"; rc=$?
124
+ [[ "$rc" -eq 0 && -z "$out" ]] || note unset-bulk-shipped "got $rc -- $out"
125
+ out="$(printf '%s' "$BODY" | arm "" --emit-peer-file peer-a)"; rc=$?
126
+ [[ "$rc" -eq 2 && "$out" == *"is unset"* ]] || note unset-file "got $rc -- $out"
127
+ for move in "filed a-slug" "refused no" "landed"; do
128
+ read -ra mv <<<"$move"
129
+ out="$(arm "" --emit-peer-reply "$id" "${mv[@]}")"; rc=$?
130
+ [[ "$rc" -eq 2 && "$out" == *"is unset"* ]] || note "unset-reply $move" "got $rc -- $out"
131
+ done
132
+
133
+ # --- with no repository a stray scripts/ knob file configures neither peer arm ---
134
+ mkdir -p "$FREE/scripts"
135
+ printf 'LIFECYCLE_KIT_PEER_CHANNEL = %s\n' "$CH" >"$FREE/scripts/lifecycle-config.knobs"
136
+ stray() { ( cd "$FREE" && unset LIFECYCLE_KIT_KNOB_FILE LIFECYCLE_KIT_LOCAL_KNOB_FILE && gate_arm_run "$@" 2>&1 ); }
137
+ n="$(find "$CH" -name '*.md' | wc -l)"
138
+ out="$(printf '%s' "$BODY" | stray --emit-peer-file peer-a)"; rc=$?
139
+ [[ "$rc" -eq 2 && "$out" == *"is unset"* ]] || note stray-file "the stray knob file configured peer-file ($rc): $out"
140
+ [[ "$(find "$CH" -name '*.md' | wc -l)" -eq "$n" ]] || note stray-write "a request was filed through the stray knob file"
141
+ out="$(stray --emit-peer-ready peer-a)"; rc=$?
142
+ [[ "$rc" -eq 0 && -z "$out" ]] || note stray-ready "the stray knob file configured peer-ready ($rc): $out"
143
+ out="$( ( cd "$FREE" && gate_env LIFECYCLE_KIT_KNOB_FILE=scripts/lifecycle-config.knobs && gate_arm_run --emit-peer-ready peer-a 2>&1 ) )"; rc=$?
144
+ [[ "$rc" -eq 2 && "$out" == *"LIFECYCLE_KIT_KNOB_FILE is 'scripts/lifecycle-config.knobs'"* ]] \
145
+ || note relative-locator "a relative locator was not refused by name ($rc): $out"
146
+ out="$( ( cd "$FREE" && gate_env LIFECYCLE_KIT_KNOB_FILE="$FREE/scripts/lifecycle-config.knobs" && gate_arm_run --emit-peer-ready peer-a 2>&1 ) )"; rc=$?
147
+ [[ "$rc" -eq 0 && "$out" == *"peer request $id shipped"* ]] || note absolute-locator "an absolute locator was not honored ($rc): $out"
148
+
149
+ if [[ "$fails" -eq 0 ]]; then echo "peer-channel: all cases passed"; exit 0; fi
150
+ echo "peer-channel: $fails case(s) failed"; exit 1
@@ -12,12 +12,12 @@ The `close` stage of an iteration. Harvest lessons, housekeep, optionally merge.
12
12
  2. **Drain the gap inbox** (`LIFECYCLE_KIT_GAP_INBOX_FILE`, §The committed gap inbox) → disposition every `- <date> — <gap>` bullet, then **truncate the inbox to its `# contract:` header**. **Read the drain's inputs first.** Before the first bullet, run `--emit close-surfaces` on the gate binary `GATE_SDK_NATIVE_BIN` names and read each surface the slot below names whose row is not `empty` or `absent`. A fact there bearing on a bullet's claim is that bullet's re-verification input. The surface's own disposition and reclaim stay at step 4. Name the surfaces read in the drain's commit message. *<drain-inputs: the capture surfaces holding facts a gap bullet's re-verification may need (a knowledge-friction capture, say) — never a raw machine log.>* The disposition set, **tried in this order** (§The committed gap inbox owns the order and why): →fix (resolve it inline this session — the default for a debt-shaped bullet), →forward (a bullet of a consult class, a ruling to reconsider or a question the operator asked to have advised on: re-file it with `--emit file-consult`, carrying its prose and its date; a bullet asking the operator for a direction no stage may give is asked instead, through the lead where one is live and directly where the operator runs this session, and one the operator defers is re-filed with `--emit file-gap` after this step's truncation, for the next intake), →promote (file a deferred queue entry carrying its `[cost:]` and `[surface:]` tags, queue-kit/SPEC.md §The tag algebra, and a `Filed` line naming the date and the filer and no route, queue-kit/SPEC.md §The queue format — only what →fix does not take), or →discard (state why in the close commit message — the bullet's own prose is the disposition body — and append its record to `LIFECYCLE_KIT_DISPOSED_FILE`, or cite the record it matched whose ground still holds). The icebox is not a disposition here: it takes deferred entries that aged without recurring, at this stage's eviction step, never a bullet drained today (queue-kit/SPEC.md §The icebox tier). A →promote states in the commit message why →fix and →forward failed; the commit message also states drift-kit's `qnet` figure for the iteration, so the pool's net motion is read at every close rather than discovered at a consult. The date feeds the staleness read (an aged bullet is a signal, not a free pass). Draining is not deleting: a bullet naming a concrete unfixed gap must become a task or a fix, not evaporate — the same clearing-is-not-processing rule as Lessons. **Re-verify before dispositioning.** A bullet's prose is the filer's claim, not an established fact: capture is deliberately frictionless, so nothing upstream checked it and a bullet can assert a mechanism its filer inferred rather than ran. Per bullet, name the claim the disposition turns on and the command that establishes it, run that command, and disposition against what it returned. Record the outcome in the close commit message beside the bullet's disposition — which bullets were re-verified and what fell — so a corrected premise is visible rather than silently absorbed. A bullet matching a disposed-findings record re-verifies that record's ground; a ground that fell takes the bullet through the ordinary dispositions and deletes the record in this commit. A claim no cheap command settles is dispositioned *as a claim*: say so, and carry it on the promoted entry as the inferred marker (§templates/stages/; §The committed gap inbox rules why this sits at the drain and not at filing time). The next iteration's first-stage entry refuses a non-empty inbox **when this stage was skipped** (§bin/enter-stage.sh), so an undrained gap blocks the boundary rather than crossing it silently. **A finding your own later steps generate postdates this drain, and it routes to the inbox like any other.** File it (`--emit file-gap`) and let it be carried: the next first-stage entry admits it and takes it as that session's intake (§The committed gap inbox). Do **not** back-date it into a drain that has already run. **Read the queue's retired citations here too, and this is a command you run rather than a file you already have open.** The drain works from `LIFECYCLE_KIT_GAP_INBOX_FILE`, so nothing in this step has touched the queue yet: invoke queue-kit's inbound-citation arm over the queue file (queue-kit/SPEC.md §The queue-edges arm) and read its **retired** block. Each entry there cites a slug that was once live and is not now — a directional pointer at work that has been disposed of, indistinguishable from a live pointer to any reader who did not run this. It is a finding, never a violation: the correction is inline on the citing entry, in this session, the way every attested instance was fixed. A row the arm marks `name live at <path>` is **not** in that set: its citations point at mechanism the tree still carries. Skip it, and spend the step on the rows left. This is the corrective transition for the class; scope's ranking survey is the other reader, and it reads the same block to a different end. **Judge the recurrence, in addition to the disposition — you are the judge, and nothing upstream ruled.** That framing is the **general** contract rather than this stage's local one — every session that judges a recurrence is obliged to stamp it, and this drain is only its mechanized instance (§The committed gap inbox owns the rule and what a stamp outside a drain owes instead). Your obligation here is undiminished by that reach. A slug appearing in a bullet is an *input*, never a verdict; the question is whether the finding **re-occurred** or is merely being cited, corrected, or argued against, and the bullet's prose is your grounds (the filer was asked at capture to write the claim there). State the call in the close commit message beside the bullet's disposition — a **declined** match stated as explicitly as a stamped one, since an unstated decline is indistinguishable from an unread bullet. On a judged recurrence, stamp it with `--queue recur <slug> <bullet-date>`, **in this same queue-writing commit** — never *instead of* the bullet's own disposition. That same-commit rule is load-bearing rather than housekeeping: the declaration is no longer re-derivable, so this commit *is* the audit artifact, carrying the judgment beside the prose it was made from. It is idempotent per (slug, date): a slug already carrying today's date gains nothing. A slug that resolves only in the done section is not a recurrence — the finding recurred after its fix landed, which is a new defect, and it files as one.
13
13
  3. **Disposition the pre-flight valve ledger** — every line of the closing iteration, in this session. A `used` line means an entry of this iteration was admitted past a refusing pre-flight: **file the blocking task its reason names and land the baseline row that names that task**, carrying the reason's `reproduces-at=<rev>` commit onto that row where evidence-kit/SPEC.md §check-evidence-baseline's flip assertion binds it, so the next iteration's pre-flight passes without a valve. Inline the finding into the filed task rather than pointing it at the ledger — the ledger dies at the next boundary, so a pointer would resolve to nothing. A residual `armed` line is dispositioned with the same weight: a session expected a refusal that never came, or armed the wrong stage, and either is worth one stated line rather than a quiet truncation. A header-only ledger is a clean disposition and says so in one line. The valve's own contract, including why a second reach in one iteration is the failure: lifecycle-kit/SPEC.md §bin/enter-stage.sh.
14
14
  4. **Sweep the inbound triage surfaces** — run `--emit close-surfaces` on the gate binary `GATE_SDK_NATIVE_BIN` names and disposition every row (§The close-surface roster). The roster is derived, not enumerated here or in the binding below: a `forced=` row has a structural forcing function and cannot be skipped silently; an `advisory` row may be skipped, but the skip is a judgment to state, not an omission to leave invisible. An `(undeclared)` row is a capture surface nobody declared: file the missing declaration. A row's state is read too: `empty` is a clean read to state, and `absent` is a finding — nothing ever wrote the surface or its writer is gone, so confirm the writer or file the gap. A row whose `<tracking>` is not `tracked` is read by you, never by an isolated agent, which sees only committed state (delegation-kit/templates/agent-execution.md, isolation cost 3). *<housekeeping: your housekeeping sweeps beyond the roster: deprecation scan, gate-runtime budget check, backlog-aging / premise-rot review, and the per-surface triage procedures the roster's rows route to.>*
15
- 5. **Retire what this iteration's landings mooted, then clear Done.** The inputs are the done section's slugs and the iteration's commit range. The range runs from the head recorded on the first-stage stamp (the first data line of `.workflow/WORKFLOW-STATE.txt`) to HEAD. Derive the candidates rather than recalling them: (a) the live entries citing a done slug, which are the retired-block rows for those slugs in the inbound-citation output step 2 already produced; (b) the live entries naming a path the range deleted (`git diff --name-only --diff-filter=D`); (c) the live entries citing a markdown heading the range removed from a file it kept (`git diff --diff-filter=M` over `*.md`, its removed heading lines). Read each candidate against the landing it cites. An entry whose question the landing answered, or whose referent it removed, moves with `--queue done <slug>` in this stage's queue commit, and that commit's message names, per moved slug, the landing that mooted it. A `[roadmap:]` entry is outside every exit (queue-kit/SPEC.md §The icebox tier) and stays. **Then read the roadmap's motion.** Run `--emit roadmap` over the queue file as it stood at the range's start (`git show <start>:<queue-file>` into the scratch dir, passed as the arm's operand) and over the queue file now. Where the arm exits 2 for want of a configured horizon, skip the read. Ask the operator, as step 2 asks a direction question, about every slug the first output lists and the second does not, and about a first configured horizon holding no bullet now, unless step 2 already asked it. Then run `--emit roadmap-lag` over the queue file (queue-kit/SPEC.md §The roadmap-lag arm). Each row is an entry outside the first configured horizon, or untagged, under which a split slice landed this iteration. Read each `[roadmap:]` entry's recorded horizon condition, the arm's rows first, and re-tag one the range met in this stage's queue commit, regenerating the projection and naming the condition and the landing that met it. A row no recorded condition settles is one more finding of the motion read, routed with its others. Re-tag nothing else: the operator sets new direction. A candidate still open stays too, with any stale pointer in it corrected inline, the way step 2's retired-citation read corrects one. Before moving an entry, relocate anything in its body worth more than the entry to the surface that owns it, because the done line keeps only the slug. Run the battery before committing. A red naming a moved slug is a pointer the move stranded, and it is corrected in that same commit. Then clear Done with `--queue clear-done`. Why the sweep sits here and not in build, and the moots its candidates cannot reach: lifecycle-kit/SPEC.md §templates/stages/.
15
+ 5. **Retire what this iteration's landings mooted, then clear Done.** The inputs are the done section's slugs and the iteration's commit range. The range runs from the head recorded on the first-stage stamp (the first data line of `.workflow/WORKFLOW-STATE.txt`) to HEAD. Derive the candidates rather than recalling them: (a) the live entries citing a done slug, which are the retired-block rows for those slugs in the inbound-citation output step 2 already produced; (b) the live entries naming a path the range deleted (`git diff --name-only --diff-filter=D`); (c) the live entries citing a markdown heading the range removed from a file it kept (`git diff --diff-filter=M` over `*.md`, its removed heading lines). Read each candidate against the landing it cites. An entry whose question the landing answered, or whose referent it removed, moves with `--queue done <slug>` in this stage's queue commit, and that commit's message names, per moved slug, the landing that mooted it. A `[roadmap:]` entry is outside every exit (queue-kit/SPEC.md §The icebox tier) and stays. **Then read the roadmap's motion.** Run `--emit roadmap` over the queue file as it stood at the range's start (`git show <start>:<queue-file>` into the scratch dir, passed as the arm's operand) and over the queue file now. Where the arm exits 2 for want of a configured horizon, skip the read. Ask the operator, as step 2 asks a direction question, about every slug the first output lists and the second does not, and about a first configured horizon holding no bullet now, unless step 2 already asked it. Then run `--emit roadmap-lag` over the queue file (queue-kit/SPEC.md §The roadmap-lag arm). Each row is an entry outside the first configured horizon, or untagged, under which a split slice landed this iteration. Read each `[roadmap:]` entry's recorded horizon condition, the arm's rows first, and re-tag one the range met in this stage's queue commit, regenerating the projection and naming the condition and the landing that met it. A row no recorded condition settles is one more finding of the motion read, routed with its others. Re-tag nothing else: the operator sets new direction. A candidate still open stays too, with any stale pointer in it corrected inline, the way step 2's retired-citation read corrects one. Before moving an entry, relocate anything in its body worth more than the entry to the surface that owns it, because the done line keeps only the slug. Run the battery before committing. A red naming a moved slug is a pointer the move stranded, and it is corrected in that same commit. Before clearing it, run `--emit peer-reply --landed <slug>` once per slug in the done section, so every request filed under a landed entry reads landed (lifecycle-kit/SPEC.md §The peer request channel). Then clear Done with `--queue clear-done`. Why the sweep sits here and not in build, and the moots its candidates cannot reach: lifecycle-kit/SPEC.md §templates/stages/.
16
16
  6. Review top-level docs for staleness (*is it still true?*). Same gap-generalization obligation as step 1, per staleness actually found: name the check class that should have caught it, and file the missing check as a deferred task or state in one line why no scanner is buildable — a silent fix forfeits the check.
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. *<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 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.>*
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.>*
@@ -4,6 +4,8 @@ The `scope` stage of an iteration — the exploratory half of design. Identify a
4
4
 
5
5
  **Second step — take the carried gap bullets, if the entry reported any.** The entry admits a boundary whose gap inbox holds bullets the closing stage could not have drained, and prints them as an advisory naming them this session's intake (lifecycle-kit/SPEC.md §The committed gap inbox owns why it admits rather than refuses). Each carried bullet gets **exactly one** disposition — promoted to a queue entry after the owner lookup (lifecycle-kit/SPEC.md §The committed gap inbox), fixed inline this session, forwarded to the consult inbox (`--emit file-consult`) when it is of a consult class, asked in this session's escalation when it asks the operator for a direction and re-filed with `--emit file-gap` if the operator defers it again, or discarded with cause in the commit message, its record appended to the disposed-findings record or the matching record cited (lifecycle-kit/SPEC.md §The committed gap inbox) — after which this session truncates the inbox to its `# contract:` header **in the same commit**. That is the drain's own disposition set, run by the stage that can now legally run it; no linked-and-skipped middle state, per the gap-disposition rule, and deleting a bullet without a disposition is not a drain. Two properties are obliged rather than suggested. The disposition happens **after the stamp**, in-stage — that is the whole point of admitting the entry, since a pre-stamp queue write is attributed to a stage that has not started. And a promoted entry's provenance sentence carries the **bullet's own date** and names the iteration whose close generated it, because the finding's disposition lands in this iteration's ledger while the finding belongs to the last one; a record that is late and says so is what that trade buys.
6
6
 
7
+ **Third step — take the peer requests, if the consumer binds a channel.** Run `--emit peer-list` on the gate binary `GATE_SDK_NATIVE_BIN` names. Every **received** row gets exactly one disposition. One the set takes up, or one that joins a live entry, is **filed**: the entry's prose cites `peer request <id>`, and `--emit peer-reply <id> filed <slug>` records it after the queue commit lands. One declined with cause is **refused** with `--emit peer-reply <id> refused <reason>`. A request that asks the operator for a direction rides this session's escalation, and stays received until the operator answers. The request body never enters a tracked surface: the entry restates the ask in its own words. An empty channel, or none bound, is a step with nothing to do (lifecycle-kit/SPEC.md §The peer request channel).
8
+
7
9
  ## Session ritual
8
10
 
9
11
  *<ritual: your scope ritual: index the governing docs before reading them whole; update design-ahead projections (diagrams, models) in scope itself behind a gate-safe PROPOSED marker so review happens a stage before the code; ask clarifying questions about scope before proposing; name the grammar owner of each governed surface this stage writes — queue-entry tags, amendment refs — so a session reads the owner instead of re-deriving the grammar from a gate's source.>*
@@ -12,7 +12,7 @@ When filing a finding, place it by kind: nameable deliverable + done-state ⇒ q
12
12
 
13
13
  **Excavation that spans a corpus is a survey, not a triage.** When a red sends you across a whole corpus rather than into one failure, check the survey record before dispatching that sweep and file its finding afterwards — the next iteration's stages read it, and the record is discarded at the boundary anyway (lifecycle-kit/SPEC.md §The survey record). Keep it distinct from the evidence manifest below: that one records what your suites did, this one what a sweep found.
14
14
 
15
- **Record the evidence.** Append one line per suite to your per-iteration evidence manifest (suite, log digest, verdict, date) and commit it at validate completion — the evidence does not exist at the entry stamp, so it rides a later commit, not the entry stamp. An iteration with a validate stamp but no evidence line is the recorded-nothing gap the manifest closes. If your kit provides a codified validate spine — a `run-validate` tool that runs each suite, diffs the held-constant baseline, and appends the evidence line — invoke it here rather than hand-running the suites and hand-writing the manifest.
15
+ **Record the evidence.** Append one line per suite to your per-iteration evidence manifest, in its contract's fields, and commit it at validate completion — the evidence does not exist at the entry stamp, so it rides a later commit, not the entry stamp. An iteration with a validate stamp but no evidence line is the recorded-nothing gap the manifest closes. If your kit provides a codified validate spine — a `run-validate` tool that runs each suite, diffs the held-constant baseline, and appends the evidence line — invoke it here rather than hand-running the suites and hand-writing the manifest.
16
16
 
17
17
  Do not declare validate complete until the baseline diff is clean: no item that passed at the iteration start is held red without a recorded reproduction outside the iteration, every held-constant red still carries a live blocking slug, and any recovered item has been promoted to pass.
18
18
 
@@ -195,7 +195,7 @@ QUEUE_KIT_TRACKS[] = beta
195
195
  EOF
196
196
  out="$( cd "$SANDBOX" && QUEUE_KIT_KNOB_FILE="$SANDBOX/noroadmap.knobs" gate_run check-roadmap-fresh "$CHECKS" 2>&1 )"
197
197
  code "skip-exit" "$?" 0
198
- want "skip" "$out" "this consumer publishes no roadmap"
198
+ want "skip" "$out" "clean (not applicable: QUEUE_KIT_ROADMAP_FILE empty — this consumer publishes no roadmap"
199
199
 
200
200
  # A half-configured vocabulary is malformed config, not a lenient default.
201
201
  cat >"$SANDBOX/halfconfig.knobs" <<'EOF'
@@ -12,6 +12,8 @@ Deployment-truth governance for a docs site served from the repo (GitHub Pages a
12
12
 
13
13
  `check-docs-highlight-coverage` holds a layout that restyles code highlighting to the theme it restyles: every token class a tracked snapshot says the theme colours must have an override rule, or it keeps the theme's colour — black on a dark code background, for one. It is disarmed until `SITE_KIT_HIGHLIGHT_TOKENS` names the snapshot.
14
14
 
15
+ `check-docs-since` holds the pages you declare to a `since:` front-matter key, `unreleased` or the first release that carries what the page says, so a reader can tell a page about master from one about a release. While a release note is untagged it reds every page still saying `unreleased`, and `--emit docs-since --write` writes the note's version in the note's commit. It is disarmed until `SITE_KIT_SINCE_PAGES` names pages, and its note rule is off until `SITE_KIT_RELEASE_NOTES_DIR` names your notes.
16
+
15
17
  The template — `templates/site-health.yml` — is a scheduled probe of the live site (apex/www/http HTTPS, redirects, certificate expiry, release-body note pointers, and theme highlight-class drift against that snapshot). It verifies a *deployment*, not a tree, so it ships as a workflow a consumer copies, never a gate: the line is where the asserted object lives, and none of what it asserts is in any checkout. See [SPEC.md](https://checkwright.dev/site-kit/SPEC#the-monitor-boundary) for why that boundary is load-bearing.
16
18
 
17
19
  This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://checkwright.dev/gate-sdk/SPEC#consumer-payload).
@@ -29,6 +31,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
29
31
  check-docs-render-fidelity
30
32
  check-docs-collapsible
31
33
  check-docs-liquid-parse
34
+ check-docs-since
32
35
  ```
33
36
  <!-- gate-roster:end -->
34
37
 
@@ -0,0 +1,4 @@
1
+ # graph: couples=knob:SITE_KIT_SINCE_PAGES,knob:SITE_KIT_RELEASE_NOTES_DIR/*.md dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # armed-by: SITE_KIT_SINCE_PAGES
4
+ # spec: site-kit/SPEC.md §check-docs-since — every page SITE_KIT_SINCE_PAGES declares carries a since: key, unreleased or vX.Y.Z, and none says unreleased while the release notes dir holds an untagged note
@@ -0,0 +1,6 @@
1
+ check-docs-since: site/open.md:3: says since: unreleased while the v99.1.0 note notes/2026-01-01-v99-1-0.md is untagged
2
+ check-docs-since: site/bare.md: no since: key in its front matter
3
+ check-docs-since: site/odd.md:3: since: '1.2' is neither unreleased nor vX.Y.Z
4
+ check-docs-since: site/twice.md:4: a second since: key beside line 3; a YAML renderer keeps the last, so keep one
5
+ help: give the page since: unreleased, or since: vX.Y.Z naming the first release that carries what it says
6
+ help: rewrite in the note-authoring commit —
@@ -0,0 +1,7 @@
1
+ ---
2
+ release: v99.1.0
3
+ ---
4
+
5
+ # Fixture v99.1.0
6
+
7
+ A release note no tag names, so it is the one in flight.
@@ -0,0 +1,3 @@
1
+ # spec: site-kit/SPEC.md §check-docs-since — fixture consumer config: the pages under site/ are governed, and notes/ holds one untagged note
2
+ SITE_KIT_SINCE_PAGES[] = site/*.md
3
+ SITE_KIT_RELEASE_NOTES_DIR = notes
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: Bare
3
+ ---
4
+
5
+ # Bare
6
+
7
+ A governed page with no `since:` key.
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Odd
3
+ since: 1.2
4
+ ---
5
+
6
+ # Odd
7
+
8
+ A governed page whose `since:` value is neither form.
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Open
3
+ since: unreleased
4
+ ---
5
+
6
+ # Open
7
+
8
+ A page still saying unreleased while the release note is untagged.
@@ -0,0 +1,9 @@
1
+ ---
2
+ title: Twice
3
+ since: v0.1.0
4
+ since: unreleased
5
+ ---
6
+
7
+ # Twice
8
+
9
+ A governed page carrying a second `since:` key, which a YAML renderer reads as the last.
@@ -0,0 +1 @@
1
+ DOCS-SINCE: clean (2 page(s) carry since:; no untagged release note under notes)
@@ -0,0 +1,3 @@
1
+ # Announcement
2
+
3
+ A post with no front matter, and so no `release:` key: not a release note.
@@ -0,0 +1,3 @@
1
+ # spec: site-kit/SPEC.md §check-docs-since — fixture consumer config: the pages under site/ are governed, and notes/ holds no untagged note
2
+ SITE_KIT_SINCE_PAGES[] = site/*.md
3
+ SITE_KIT_RELEASE_NOTES_DIR = notes
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Done
3
+ since: v0.1.0
4
+ ---
5
+
6
+ # Done
7
+
8
+ A page naming the first release that carries what it says.
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Open
3
+ since: unreleased
4
+ ---
5
+
6
+ # Open
7
+
8
+ A page describing behavior no release carries yet, beside no untagged note.