checkwright 0.17.0 → 0.19.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/canon-kit/README.md +1 -0
- package/payload/canon-kit/SPEC.md +162 -16
- package/payload/canon-kit/checks/check-amendment-queue.sh +17 -16
- package/payload/canon-kit/checks/check-install-claim.sh +146 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +1 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +1 -1
- package/payload/canon-kit/gate-tests/check-install-claim/bad/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/install.md +24 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/posts/note.md +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +10 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/install-transports.sh +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/install.md +24 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/posts/note.md +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +10 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/install-transports.sh +7 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +1 -1
- package/payload/canon-kit/lib/spec.sh +32 -2
- package/payload/context-kit/SPEC.md +5 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +1 -1
- package/payload/delegation-kit/SPEC.md +12 -0
- package/payload/drift-kit/README.md +4 -4
- package/payload/drift-kit/SPEC.md +58 -5
- package/payload/drift-kit/bin/drift-report.sh +14 -11
- package/payload/drift-kit/bin/overhead-meter.sh +1 -1
- package/payload/drift-kit/kpis/kpi-deferred-age.sh +7 -5
- package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +74 -0
- package/payload/drift-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/README.md +1 -0
- package/payload/gate-sdk/SPEC.md +305 -15
- package/payload/gate-sdk/bin/upgrade-smoke.sh +35 -15
- package/payload/gate-sdk/checks/check-action-gh-repo.sh +321 -0
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/tree/workflows/publish.yml +78 -0
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/good/args +4 -0
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/good/tree/action.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/good/tree/not-actions.yml +10 -0
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/good/tree/workflows/arms.yml +93 -0
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/good/tree/workflows/root-env.yml +18 -0
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/good/tree/workflows/valves.yml +39 -0
- package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +112 -0
- package/payload/gate-sdk/lib/declaration.sh +59 -0
- package/payload/lifecycle-kit/README.md +2 -2
- package/payload/lifecycle-kit/SPEC.md +57 -34
- package/payload/lifecycle-kit/bin/enter-stage.sh +1 -1
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +1 -1
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +1 -1
- package/payload/lifecycle-kit/templates/{skills → stages}/build.md +15 -0
- package/payload/lifecycle-kit/templates/{skills → stages}/close.md +8 -8
- package/payload/lifecycle-kit/templates/{skills → stages}/scope.md +1 -1
- package/payload/queue-kit/README.md +26 -10
- package/payload/queue-kit/SPEC.md +463 -32
- package/payload/queue-kit/bin/queue-index.sh +62 -11
- package/payload/queue-kit/bin/roadmap.sh +76 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.sh +104 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +110 -0
- package/payload/queue-kit/checks/check-tag-lead-line.sh +12 -8
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +33 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +4 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +35 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +24 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/args +5 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/emit.txt +8 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/projection.txt +16 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +22 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/args +5 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/emit.txt +7 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/projection.txt +16 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +3 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +2 -1
- package/payload/queue-kit/gate-tests/queue-index.test.sh +45 -4
- package/payload/queue-kit/gate-tests/roadmap.test.sh +197 -0
- package/payload/queue-kit/lib/queue.sh +87 -1
- package/payload/queue-kit/smoke/install.sh +1 -0
- package/payload/queue-kit/templates/TASK-QUEUE.md +1 -1
- package/payload/site-kit/SPEC.md +9 -3
- /package/payload/lifecycle-kit/templates/{skills/release-sweep.md → release-sweep.md} +0 -0
- /package/payload/lifecycle-kit/templates/{skills → stages}/align.md +0 -0
- /package/payload/lifecycle-kit/templates/{skills → stages}/spec.md +0 -0
- /package/payload/lifecycle-kit/templates/{skills → stages}/validate.md +0 -0
- /package/payload/lifecycle-kit/templates/{skills/upgrade.md → upgrade.md} +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Direct unit test of gate-sdk/lib/declaration.sh — the two container arms and
|
|
3
|
+
# the resolve/refuse trichotomy (gate-sdk/SPEC.md §lib/declaration.sh).
|
|
4
|
+
#
|
|
5
|
+
# Why a direct test: the record arm has no caller fixture to ride. Its only
|
|
6
|
+
# caller is bin/upgrade-smoke.sh's untagged branch, and the smoke is a bin tool
|
|
7
|
+
# whose contract forgoes a good/bad pair — so a corpus fixture would leave the
|
|
8
|
+
# arm the standing pre-release assertion depends on entirely unexercised. The
|
|
9
|
+
# markdown arm's callers do carry fixtures; its status-2 and empty-section arms
|
|
10
|
+
# are still checked here, being unreachable from a well-formed corpus.
|
|
11
|
+
#
|
|
12
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
13
|
+
set -uo pipefail
|
|
14
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
15
|
+
|
|
16
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # gate-sdk/
|
|
17
|
+
# shellcheck source=../lib/declaration.sh
|
|
18
|
+
source "$DIR/lib/declaration.sh"
|
|
19
|
+
|
|
20
|
+
fails=0
|
|
21
|
+
tmp="$(mktemp -d)"
|
|
22
|
+
trap 'rm -rf "$tmp"' EXIT
|
|
23
|
+
|
|
24
|
+
note() { printf '%s\n' "$2" > "$tmp/$1.md"; printf '%s\n' "$tmp/$1.md"; }
|
|
25
|
+
|
|
26
|
+
# $1=label $2=want-status $3=want-stdout $4...=the call
|
|
27
|
+
expect() {
|
|
28
|
+
local label="$1" want_st="$2" want_out="$3"; shift 3
|
|
29
|
+
local out st
|
|
30
|
+
out="$("$@")"; st=$?
|
|
31
|
+
if [[ "$st" -ne "$want_st" ]]; then
|
|
32
|
+
echo " FAIL [$label]: want status $want_st, got $st -- $out"; fails=$((fails + 1)); return
|
|
33
|
+
fi
|
|
34
|
+
if [[ "$out" != "$want_out" ]]; then
|
|
35
|
+
echo " FAIL [$label]: want stdout '$want_out', got '$out'"; fails=$((fails + 1))
|
|
36
|
+
fi
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
# --- the markdown arm ------------------------------------------------------
|
|
40
|
+
|
|
41
|
+
f="$(note canonical '## Tightened gates
|
|
42
|
+
|
|
43
|
+
- `check-alpha` — tightened.
|
|
44
|
+
- `check-beta` — landed new.
|
|
45
|
+
|
|
46
|
+
## Renamed knobs
|
|
47
|
+
|
|
48
|
+
None.')"
|
|
49
|
+
expect "markdown/token-list" 0 'check-alpha
|
|
50
|
+
check-beta' decl_section_tokens "$f" "Tightened gates"
|
|
51
|
+
expect "markdown/container-keeps-bullets-only" 0 '- `check-alpha` — tightened.
|
|
52
|
+
- `check-beta` — landed new.' decl_section_bullets "$f" "Tightened gates"
|
|
53
|
+
|
|
54
|
+
f="$(note none '## Tightened gates
|
|
55
|
+
|
|
56
|
+
None. A trailing clause ruling out a near-miss rides the explicit empty set.
|
|
57
|
+
|
|
58
|
+
## Renamed knobs
|
|
59
|
+
|
|
60
|
+
None.')"
|
|
61
|
+
expect "markdown/explicit-none" 0 '' decl_section_tokens "$f" "Tightened gates"
|
|
62
|
+
|
|
63
|
+
# The two spellings the corpus actually carried: bolded, and bold-and-backticked.
|
|
64
|
+
# Neither may be silently stripped to a token — that is the whole defect.
|
|
65
|
+
f="$(note bolded '## Tightened gates
|
|
66
|
+
|
|
67
|
+
- **check-alpha** — bolded.
|
|
68
|
+
- **`check-beta`** — bold-and-backticked.')"
|
|
69
|
+
expect "markdown/bolded-refused" 1 '- **check-alpha** — bolded.
|
|
70
|
+
- **`check-beta`** — bold-and-backticked.' decl_section_tokens "$f" "Tightened gates"
|
|
71
|
+
|
|
72
|
+
# A non-`None` section holding no bullet at all is the silent-empty case: it
|
|
73
|
+
# refuses with nothing to print, rather than resolving to an empty declared set.
|
|
74
|
+
f="$(note prose-only '## Tightened gates
|
|
75
|
+
|
|
76
|
+
Several gates moved this release.')"
|
|
77
|
+
expect "markdown/prose-only-refused" 1 '' decl_section_tokens "$f" "Tightened gates"
|
|
78
|
+
|
|
79
|
+
f="$(note absent '## Renamed knobs
|
|
80
|
+
|
|
81
|
+
None.')"
|
|
82
|
+
expect "markdown/section-absent" 2 '' decl_section_tokens "$f" "Tightened gates"
|
|
83
|
+
|
|
84
|
+
# `None` is read off the section's first non-blank line, so a later line opening
|
|
85
|
+
# with the word does not turn a real declaration into an empty set.
|
|
86
|
+
f="$(note none-later '## Tightened gates
|
|
87
|
+
|
|
88
|
+
- `check-alpha` — tightened.
|
|
89
|
+
|
|
90
|
+
None of the above affects a vendored tree that shadows it.')"
|
|
91
|
+
expect "markdown/none-only-at-head" 0 'check-alpha' decl_section_tokens "$f" "Tightened gates"
|
|
92
|
+
|
|
93
|
+
# --- the record arm --------------------------------------------------------
|
|
94
|
+
|
|
95
|
+
printf '# contract: x.md §y\ncheck-alpha\ncheck-beta\n' > "$tmp/decl.txt"
|
|
96
|
+
expect "record/data-lines" 0 'check-alpha
|
|
97
|
+
check-beta' decl_record_tokens "$tmp/decl.txt"
|
|
98
|
+
|
|
99
|
+
printf '# contract: x.md §y\n' > "$tmp/header-only.txt"
|
|
100
|
+
expect "record/header-only-is-empty-set" 0 '' decl_record_tokens "$tmp/header-only.txt"
|
|
101
|
+
|
|
102
|
+
expect "record/missing-file-is-empty-set" 0 '' decl_record_tokens "$tmp/nonexistent.txt"
|
|
103
|
+
|
|
104
|
+
printf '# contract: x.md §y\n- `check-alpha` — markup\n' > "$tmp/marked-up.txt"
|
|
105
|
+
expect "record/markup-refused" 1 '- `check-alpha` — markup' decl_record_tokens "$tmp/marked-up.txt"
|
|
106
|
+
|
|
107
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
108
|
+
echo "lib-declaration.test: $fails assertion(s) failed"
|
|
109
|
+
exit 1
|
|
110
|
+
fi
|
|
111
|
+
echo "lib-declaration.test: ok (markdown arm resolves a token list and an explicit None, refuses the bolded and bold-and-backticked spellings and a bulletless non-None section, reports an absent section; None is read at the section head only; record arm resolves data lines, treats a header-only and a missing file as the empty set, and refuses a marked-up line)"
|
|
112
|
+
exit 0
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: gate-sdk/SPEC.md §lib/declaration.sh — the tightened-gates declaration grammar: two container arms over one token predicate, reporting the resolve/refuse trichotomy on the statuses named there. Sourced, never executed.
|
|
3
|
+
|
|
4
|
+
DECL_TOKEN_RE='^[A-Za-z][A-Za-z0-9-]*$'
|
|
5
|
+
|
|
6
|
+
decl_section_bullets() {
|
|
7
|
+
awk -v sec="$2" '
|
|
8
|
+
/^##[[:space:]]/ { insec = ($0 ~ "^##[[:space:]]+" sec "[[:space:]]*$"); if (insec) found = 1; next }
|
|
9
|
+
insec && /^[[:space:]]*[-*][[:space:]]+/ { print }
|
|
10
|
+
END { exit(found ? 0 : 1) }
|
|
11
|
+
' "$1"
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
decl_section_is_none() {
|
|
15
|
+
awk -v sec="$2" '
|
|
16
|
+
/^##[[:space:]]/ { insec = ($0 ~ "^##[[:space:]]+" sec "[[:space:]]*$"); if (insec) found = 1; next }
|
|
17
|
+
insec && !seen && /[^[:space:]]/ { seen = 1; none = ($0 ~ /^[[:space:]]*[Nn]one([^A-Za-z0-9]|$)/) }
|
|
18
|
+
END { exit(found && none ? 0 : 1) }
|
|
19
|
+
' "$1"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
decl_section_tokens() {
|
|
23
|
+
local file="$1" sec="$2" bullets st line tok n=0 bad=()
|
|
24
|
+
bullets="$(decl_section_bullets "$file" "$sec")"; st=$?
|
|
25
|
+
[[ "$st" -eq 0 ]] || return 2
|
|
26
|
+
decl_section_is_none "$file" "$sec" && return 0
|
|
27
|
+
while IFS= read -r line; do
|
|
28
|
+
[[ "$line" =~ [^[:space:]] ]] || continue
|
|
29
|
+
tok=""
|
|
30
|
+
[[ "$line" =~ ^[[:space:]]*[-*][[:space:]]+\`([^\`]*)\` ]] && tok="${BASH_REMATCH[1]}"
|
|
31
|
+
if [[ -n "$tok" && "$tok" =~ $DECL_TOKEN_RE ]]; then
|
|
32
|
+
printf '%s\n' "$tok"; n=$((n + 1))
|
|
33
|
+
else
|
|
34
|
+
bad+=("$line")
|
|
35
|
+
fi
|
|
36
|
+
done <<<"$bullets"
|
|
37
|
+
[[ ${#bad[@]} -eq 0 && "$n" -gt 0 ]] && return 0
|
|
38
|
+
[[ ${#bad[@]} -gt 0 ]] && printf '%s\n' "${bad[@]}"
|
|
39
|
+
return 1
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
decl_record_tokens() {
|
|
43
|
+
local file="$1" line bad=()
|
|
44
|
+
[[ -f "$file" ]] || return 0
|
|
45
|
+
while IFS= read -r line; do
|
|
46
|
+
[[ "$line" == '#'* ]] && continue
|
|
47
|
+
[[ "$line" =~ [^[:space:]] ]] || continue
|
|
48
|
+
if [[ "$line" =~ $DECL_TOKEN_RE ]]; then
|
|
49
|
+
printf '%s\n' "$line"
|
|
50
|
+
else
|
|
51
|
+
bad+=("$line")
|
|
52
|
+
fi
|
|
53
|
+
done < "$file"
|
|
54
|
+
if [[ ${#bad[@]} -gt 0 ]]; then
|
|
55
|
+
printf '%s\n' "${bad[@]}"
|
|
56
|
+
return 1
|
|
57
|
+
fi
|
|
58
|
+
return 0
|
|
59
|
+
}
|
|
@@ -65,9 +65,9 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
|
|
|
65
65
|
|
|
66
66
|
# contract: lifecycle-kit/SPEC.md §check-lesson-disposition
|
|
67
67
|
|
|
68
|
-
3. Adopt `templates/
|
|
68
|
+
3. Adopt `templates/stages/*.md` in your agent-skill directory (e.g.
|
|
69
69
|
`.claude/commands/`): by default make each skill a binding shim that
|
|
70
|
-
references the template (SPEC.md §templates/
|
|
70
|
+
references the template (SPEC.md §templates/stages/) — it tracks the kit, so
|
|
71
71
|
a re-vendor reaches it and the shim gates hold it thin. Or, as the sanctioned
|
|
72
72
|
fork, copy each in and fill its named slots (`*<slot-name: …>*`) with your
|
|
73
73
|
project's ritual — you then own the ritual prose, upgrades don't reach it,
|
|
@@ -222,10 +222,13 @@ the iteration branch) and every merged tree passed the battery post-reconcile.
|
|
|
222
222
|
The kit is vendored beside gate-sdk (conventionally at `lifecycle-kit/`); its
|
|
223
223
|
gates are registered in the consumer's `gates.list` by name and resolve
|
|
224
224
|
through gate-sdk's multi-kit path (consumer gates dir first, then each kit's
|
|
225
|
-
`checks/`).
|
|
226
|
-
|
|
225
|
+
`checks/`). The kit's markdown templates are laid out on the stage/boundary axis
|
|
226
|
+
this SPEC classifies them by: `templates/*.md` is exactly the **boundary skills**
|
|
227
|
+
(`lead.md`, `release-sweep.md`, `upgrade.md`), `templates/stages/*.md` exactly
|
|
228
|
+
the stage-class templates. Stage skills adopt `templates/stages/*.md` in one of
|
|
229
|
+
two modes — copied into the consumer's agent-skill directory with each named slot
|
|
227
230
|
overwritten, or a thin binding shim that references the template (the grammar
|
|
228
|
-
and the contract both modes satisfy are §templates/
|
|
231
|
+
and the contract both modes satisfy are §templates/stages/).
|
|
229
232
|
|
|
230
233
|
The stage machine itself is config with this repo's lifecycle as the
|
|
231
234
|
default: copy `templates/lifecycle-config.sh` into the gates dir as
|
|
@@ -322,7 +325,7 @@ declaration (the deprecation-lifecycle and upgrade-path rungs).
|
|
|
322
325
|
unset-knob consumer gets a clean wipe of an already-disposable surface.
|
|
323
326
|
Boundary-only, and paired with the scratch dir it reads (`GATE_SDK_TMP_DIR`)
|
|
324
327
|
rather than adding a directory knob of its own. **The tier split matters:** the
|
|
325
|
-
`.gitkeep` exemption is a kit invariant this knob cannot unset, and
|
|
328
|
+
`.gitkeep` exemption is a kit invariant this knob cannot unset, and this knob
|
|
326
329
|
is the consumer keep-list layered on top — a reader who takes the knob for the
|
|
327
330
|
wipe's only keep rule would reintroduce the tracked-file deletion.
|
|
328
331
|
- `LIFECYCLE_KIT_BOUNDARY_REQUIRE` — array of repo-relative files each of which
|
|
@@ -490,8 +493,8 @@ close-surface: .workflow/gap-inbox.md forced=lifecycle-kit/SPEC.md §bin/enter-s
|
|
|
490
493
|
|
|
491
494
|
**Producers and consumers.** Producer: any mid-iteration session (lead or stage)
|
|
492
495
|
via `bin/file-gap.sh` — the knob default makes the channel live everywhere the
|
|
493
|
-
kit is vendored. Consumers: the close skill's drain step (§templates/
|
|
494
|
-
dispositions every bullet — promoted to a deferred `[
|
|
496
|
+
kit is vendored. Consumers: the close skill's drain step (§templates/stages/)
|
|
497
|
+
dispositions every bullet — promoted to a deferred `[design-pending]` entry,
|
|
495
498
|
fixed inline that session, or discarded with cause in the close commit message —
|
|
496
499
|
then truncates the inbox to its header; the boundary refusal reads emptiness at
|
|
497
500
|
the next scope entry as the backstop. Each bullet's two fields have named
|
|
@@ -710,7 +713,8 @@ naming the wiped set in its report the way it already names the truncated set.
|
|
|
710
713
|
Truncate and wipe share the boundary trigger and the report line and **nothing
|
|
711
714
|
else**: truncate rewrites a *tracked* file down to its `# contract:` header, so
|
|
712
715
|
the file survives with an empty body; the wipe *deletes* untracked scratch
|
|
713
|
-
members outright. `
|
|
716
|
+
members outright. `LIFECYCLE_KIT_BOUNDARY_PRESERVE` is therefore a keep-list for
|
|
717
|
+
the delete and never a
|
|
714
718
|
truncate target. The wipe runs last — after the truncate loop and after
|
|
715
719
|
enter-stage removes its own temp files — so those temporaries are never
|
|
716
720
|
candidates, and it is **boundary-only**: an ordinary stage entry appends and
|
|
@@ -727,10 +731,11 @@ surviving (the tool `mkdir -p`s the scratch dir, and the wipe removes members,
|
|
|
727
731
|
not the dir); it is recorded with its real reason so a later reader does not
|
|
728
732
|
retire it as redundant, and it is generic-consumer mechanism rather than a fact
|
|
729
733
|
about any one checkout — a consumer that gitignores its scratch dir wholesale
|
|
730
|
-
never exercises it. Shipping the exemption as `
|
|
731
|
-
out**: a defaulted bash array is replaced, not merged, when a
|
|
732
|
-
it, so protection would decrease as configuration increases and
|
|
733
|
-
setting
|
|
734
|
+
never exercises it. Shipping the exemption as `LIFECYCLE_KIT_BOUNDARY_PRESERVE`'s
|
|
735
|
+
*default* is **ruled out**: a defaulted bash array is replaced, not merged, when a
|
|
736
|
+
consumer assigns it, so protection would decrease as configuration increases and
|
|
737
|
+
any consumer setting that knob for its own reasons would silently lose the
|
|
738
|
+
exemption. A
|
|
734
739
|
git-aware "spare any tracked file" rule is **ruled out** too — it makes
|
|
735
740
|
filesystem behavior git-dependent for one case, and it would spare any tracked
|
|
736
741
|
file parked in scratch, re-opening the accumulation the wipe exists to close.
|
|
@@ -741,7 +746,8 @@ start, age-guarded precisely so a concurrent same-checkout session's in-flight
|
|
|
741
746
|
scratch survives (context-kit/SPEC.md §The session-context hook). The boundary
|
|
742
747
|
wipe is deliberately **not** age-guarded: it fires once, at the iteration
|
|
743
748
|
transition, where the only scratch a consumer means to carry across is by
|
|
744
|
-
definition named in `
|
|
749
|
+
definition named in `LIFECYCLE_KIT_BOUNDARY_PRESERVE` — an age guard there would
|
|
750
|
+
leave the previous
|
|
745
751
|
iteration's fresh residue behind, which is the whole thing being reclaimed. Two
|
|
746
752
|
triggers, two postures, one directory; neither mechanism reads the other.
|
|
747
753
|
|
|
@@ -761,7 +767,7 @@ so a consumer wiring its release-disposition evidence here makes the close-stage
|
|
|
761
767
|
disposition a mechanical boundary precondition rather than a decorative stamp.
|
|
762
768
|
The check is **value-agnostic by construction** — it tests the first token only
|
|
763
769
|
and never parses the value field — so a disposition grammar gaining a value (as
|
|
764
|
-
it did with `deferred:<version>`, §templates/
|
|
770
|
+
it did with `deferred:<version>`, §templates/stages/) needs no
|
|
765
771
|
widening here; recorded so a future value addition does not re-derive it.
|
|
766
772
|
Fail-closed: a member that does not exist on disk is a refusal naming the path. A
|
|
767
773
|
never-named (`—`) closing iteration has nothing to disposition and skips the
|
|
@@ -1038,7 +1044,7 @@ entries by successor entry. A roster whose drain stage is terminal (zero
|
|
|
1038
1044
|
successors) is refused fail-closed at config load (§lib/stages.sh's
|
|
1039
1045
|
validator): an exemption with no reachable backstop would be permanent.
|
|
1040
1046
|
Ruled-but-unpromoted work is never exempt residue — it files as Deferred
|
|
1041
|
-
`[
|
|
1047
|
+
`[design-pending]` for a later scope's promotion (deferred-filing is the model
|
|
1042
1048
|
for designed-but-unscheduled work); and (C)
|
|
1043
1049
|
audit-trigger — an audit-entry-stage header carrying a cross-component
|
|
1044
1050
|
amendment signal but no `<iter> <audit-stage>` stamp demands either that
|
|
@@ -1058,7 +1064,7 @@ stage exactly, so a waiver is never read as an audit *stamp*).
|
|
|
1058
1064
|
|
|
1059
1065
|
Calibration: the predecessor map deliberately omits a **trigger-gated stage**
|
|
1060
1066
|
as anyone's mandatory predecessor — the audit stage, and equally a trigger-gated
|
|
1061
|
-
*authoring* stage where a roster splits one out (§templates/
|
|
1067
|
+
*authoring* stage where a roster splits one out (§templates/stages/) — because
|
|
1062
1068
|
demanding its stamp before a successor would false-fire on an iteration that
|
|
1063
1069
|
legitimately skipped it (an amendment-free iteration runs no audit; a debt-only
|
|
1064
1070
|
one runs no authoring stage); the build→align re-check when align *did* run is
|
|
@@ -1119,10 +1125,16 @@ template path may point at any kit). Template slots are the `*<slot-name: …>*`
|
|
|
1119
1125
|
tokens; a shim's bindings are the `**slot-name** —` lead lines under
|
|
1120
1126
|
`## Bindings`; the directive's template path resolves relative to the current
|
|
1121
1127
|
directory (the tree root at pre-commit). A skills dir that does not exist is
|
|
1122
|
-
fail-closed (exit 2). The `# graph:` couples the skills dir, the
|
|
1123
|
-
|
|
1124
|
-
`delegation-kit/templates/agent-execution.md`)
|
|
1125
|
-
added to a template or a binding changed in a shim
|
|
1128
|
+
fail-closed (exit 2). The `# graph:` couples the skills dir, the stage-template
|
|
1129
|
+
dir, each boundary skill (`lead.md`, `release-sweep.md`, `upgrade.md`), and each
|
|
1130
|
+
out-of-tree bound template (e.g. `delegation-kit/templates/agent-execution.md`)
|
|
1131
|
+
at `tier=precommit`, so a slot added to a template or a binding changed in a shim
|
|
1132
|
+
fires the gate. The boundary skills are coupled **by name** because this couple
|
|
1133
|
+
carries no kit-wide `templates/*.md` glob: a bindable template left off it is one
|
|
1134
|
+
whose edits fire nothing, and the gate stays green while the coupling is gone.
|
|
1135
|
+
`upgrade.md` is listed even where no consumer binds it — the entry is about the
|
|
1136
|
+
template's edits re-triggering the gate, and a consumer that does bind it
|
|
1137
|
+
inherits the manifest. The good/bad pair drives the unbound-slot case;
|
|
1126
1138
|
`gate-tests/check-skill-binding.test.sh` covers the orphan-binding,
|
|
1127
1139
|
missing-template, and skip (no-directive / no-slots) cases the one pair cannot.
|
|
1128
1140
|
|
|
@@ -1152,10 +1164,11 @@ gate and is still a defect to fix on sight (the same doctrine as
|
|
|
1152
1164
|
check-comment-tier's floor). The `# graph:` couples the skills dir, `CLAUDE.md`,
|
|
1153
1165
|
and the kit template dirs at `tier=precommit`, so editing a shim or a corpus
|
|
1154
1166
|
surface fires the gate. Because the corpus find recurses but the `kit:templates/*.md`
|
|
1155
|
-
couple does not, the one kit template *sub*directory
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1167
|
+
couple does not, the one kit template *sub*directory it misses —
|
|
1168
|
+
`lifecycle-kit/templates/stages/*.md`, the stage-skill templates each stage shim
|
|
1169
|
+
binds — is coupled explicitly beside it; a shim's own template is its likeliest
|
|
1170
|
+
collision surface, so it must re-trigger the gate. The boundary skills need no
|
|
1171
|
+
such entry: they sit at `templates/` root, already inside the plain couple. A red run names the
|
|
1159
1172
|
shim, the corpus surface, and the shared n-gram, so the fix (delete the
|
|
1160
1173
|
restatement, keep a citation) is mechanical. The good/bad pair drives the plain restatement/clean split;
|
|
1161
1174
|
`gate-tests/check-shim-restatement.test.sh` covers the no-directive skip, the
|
|
@@ -1233,7 +1246,7 @@ a reshaped `LIFECYCLE_KIT_BOUNDARY_TRUNCATE` in the consumer config is backstopp
|
|
|
1233
1246
|
by the whole-tree `run-gates.sh` battery (the `check-stage-skill-coverage`
|
|
1234
1247
|
precedent).
|
|
1235
1248
|
|
|
1236
|
-
### templates/
|
|
1249
|
+
### templates/stages/
|
|
1237
1250
|
|
|
1238
1251
|
The stage-skill templates (`scope`/`align`/`build`/`validate`/`close`) carry
|
|
1239
1252
|
the generic stage spine — the stamp first step (performed by invoking
|
|
@@ -1262,6 +1275,11 @@ canon-kit's bidirectional queue pairing — is the content `scope`'s conditional
|
|
|
1262
1275
|
authoring step points at, so a default-roster `scope` that still authors reads it
|
|
1263
1276
|
there.
|
|
1264
1277
|
|
|
1278
|
+
The directory holds the **stage-class** template set, not any one consumer's
|
|
1279
|
+
roster: it ships six templates while `LIFECYCLE_KIT_STAGES` defaults to five,
|
|
1280
|
+
because `spec.md` serves the split-authoring roster alone. Nothing derives a
|
|
1281
|
+
roster from this listing — the glob buys a legible layout, not a derivation.
|
|
1282
|
+
|
|
1265
1283
|
A consumer skill adopts a template in one of two modes; either way the executed
|
|
1266
1284
|
skill states in one line what the stamp step does and supplies every
|
|
1267
1285
|
slot's content:
|
|
@@ -1372,10 +1390,13 @@ disposition line's mechanical reader is `enter-stage.sh`'s boundary require-chec
|
|
|
1372
1390
|
(§bin/enter-stage.sh, `LIFECYCLE_KIT_BOUNDARY_REQUIRE`) when a consumer wires the
|
|
1373
1391
|
file into that knob.
|
|
1374
1392
|
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1393
|
+
### templates/release-sweep.md
|
|
1394
|
+
|
|
1395
|
+
A **boundary skill**, not a stage — which is why it sits at `templates/` root
|
|
1396
|
+
beside `lead.md` rather than among the stage templates: it invokes no
|
|
1397
|
+
`enter-stage.sh` and stamps no state, so `check-stage-skill-coverage` never reads
|
|
1398
|
+
it (it governs only the configured stage set). It is the deprecation disposition
|
|
1399
|
+
walk at a major — invoked from
|
|
1379
1400
|
close's release-disposition step when the derived bump is a major — forcing every
|
|
1380
1401
|
marker on the `CANON_KIT_DEPRECATION_MARKERS` roster to a stamped disposition —
|
|
1381
1402
|
decommission, carry-forward, or un-deprecate — the `check-lesson-disposition`
|
|
@@ -1383,14 +1404,16 @@ contract shape at a release boundary. canon-kit's `check-deprecation-task` holds
|
|
|
1383
1404
|
each marker bound to a live task between majors; this sweep forces the standing
|
|
1384
1405
|
inventory to a decision at the boundary the deprecations were promised against.
|
|
1385
1406
|
It carries **named slots** (`inventory-command`, `evidence-gate`), so like the
|
|
1386
|
-
stage skills it adopts the binding-shim grammar (§templates/
|
|
1407
|
+
stage skills it adopts the binding-shim grammar (§templates/stages/) and
|
|
1387
1408
|
`check-skill-binding` holds the slot pairing; the stamp file is operator
|
|
1388
1409
|
evidence riding the release commit — the kit wires no gate over it (a consumer
|
|
1389
1410
|
may, through `evidence-gate`).
|
|
1390
1411
|
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1412
|
+
### templates/upgrade.md
|
|
1413
|
+
|
|
1414
|
+
`upgrade.md` is a **boundary skill** too, at `templates/` root rather than among
|
|
1415
|
+
the stage templates: it invokes no `enter-stage.sh` and stamps no state, so
|
|
1416
|
+
`check-stage-skill-coverage` never reads it. It is the phase-B disposition walk a consumer runs when moving
|
|
1394
1417
|
their vendored kits from one release to the next — the judgment half of the
|
|
1395
1418
|
two-phase upgrade contract whose deterministic half (the wholesale kit-sync) and
|
|
1396
1419
|
whose executable proof both live in gate-sdk (gate-sdk/SPEC.md §upgrade-smoke),
|
|
@@ -1403,7 +1426,7 @@ cadence at which a consumer judges the ungateable third of a template-slot chang
|
|
|
1403
1426
|
— the shim fill that clears both `check-skill-binding` (slot-set drift) and
|
|
1404
1427
|
`check-shim-restatement` (verbatim copy) yet duplicates what the new slot now
|
|
1405
1428
|
means to own. It carries named slots (`gates-list`, `disposition-evidence`), so
|
|
1406
|
-
like the stage skills it adopts the binding-shim grammar (§templates/
|
|
1429
|
+
like the stage skills it adopts the binding-shim grammar (§templates/stages/) and
|
|
1407
1430
|
`check-skill-binding` holds the slot pairing when a consumer binds it. This repo
|
|
1408
1431
|
binds no command for it — the repo is the kit source, never a vendored consumer,
|
|
1409
1432
|
so it never upgrades itself; the template ships for consumers and the upgrade
|
|
@@ -1417,7 +1440,7 @@ restart-cost of a stage that would otherwise stop and surface to the user cold
|
|
|
1417
1440
|
(§The state machine). Like `release-sweep.md` it is a **boundary skill, not a
|
|
1418
1441
|
stage**: it invokes no `enter-stage.sh` and joins no stage set, so
|
|
1419
1442
|
`check-stage-skill-coverage` never reads it. Like release-sweep it carries
|
|
1420
|
-
named slots, so it adopts the binding-shim grammar (§templates/
|
|
1443
|
+
named slots, so it adopts the binding-shim grammar (§templates/stages/) — a
|
|
1421
1444
|
consumer copies-and-specializes it or binds it through a thin shim, and
|
|
1422
1445
|
`check-skill-binding` holds the slot pairing either way (this repo's
|
|
1423
1446
|
`.claude/commands/lead.md` shim).
|
|
@@ -137,7 +137,7 @@ if [[ "$first" == 1 && -f "$LIFECYCLE_KIT_GAP_INBOX_FILE" ]]; then
|
|
|
137
137
|
fi
|
|
138
138
|
echo "enter-stage: iteration-boundary entry to '$stage' refused — $LIFECYCLE_KIT_GAP_INBOX_FILE holds untriaged gap bullets; every gap is dispositioned before the next iteration begins (nothing written):" >&2
|
|
139
139
|
printf '%s\n' "$gaps" >&2
|
|
140
|
-
echo " help: if the closing stage has not run yet, run its gap-drain step — disposition each bullet (promote to a deferred [
|
|
140
|
+
echo " help: if the closing stage has not run yet, run its gap-drain step — disposition each bullet (promote to a deferred [design-pending] entry, fix inline, or discard with cause in the commit message), then truncate the inbox to its header." >&2
|
|
141
141
|
echo " help: if it has already run, these bullets were filed after the drain and no stage is coming back for them: disposition them here, in this entering session — promote each directly to the deferred queue (or fix it), truncate the inbox to its header, commit, and re-run enter-stage $stage. Deleting a bullet without a disposition is not a drain." >&2
|
|
142
142
|
exit 1
|
|
143
143
|
fi
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=.claude/commands/*.md,CLAUDE.md,kit:templates/*.md,lifecycle-kit/templates/
|
|
2
|
+
# graph: couples=.claude/commands/*.md,CLAUDE.md,kit:templates/*.md,lifecycle-kit/templates/stages/*.md dir=one valve=none tier=precommit
|
|
3
3
|
# spec: lifecycle-kit/SPEC.md §check-shim-restatement — no binding shim shares an >=N-word normalized n-gram with the dedup corpus (CLAUDE.md + every kit's templates)
|
|
4
4
|
#
|
|
5
5
|
# usage: check-shim-restatement.sh [skills-dir] [corpus-file...]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=.claude/commands/*.md,lifecycle-kit/templates/
|
|
2
|
+
# graph: couples=.claude/commands/*.md,lifecycle-kit/templates/stages/*.md,lifecycle-kit/templates/lead.md,lifecycle-kit/templates/release-sweep.md,lifecycle-kit/templates/upgrade.md,delegation-kit/templates/agent-execution.md dir=one valve=none tier=precommit
|
|
3
3
|
# spec: lifecycle-kit/SPEC.md §check-skill-binding — every binding-shim skill names an existing template and binds exactly that template's slot set
|
|
4
4
|
#
|
|
5
5
|
# usage: check-skill-binding.sh [skills-dir]
|
|
@@ -69,6 +69,21 @@ widening asserted behavior, user-facing semantics) stops and surfaces to the
|
|
|
69
69
|
user — never pick a "conservative alternative" silently. A *cross-component
|
|
70
70
|
causal gap* is not a TODO: stop, resolve it this session, update the spec.
|
|
71
71
|
|
|
72
|
+
**Declare a gate you land or tighten, in the unit that lands it.** A unit that
|
|
73
|
+
lands a new gate or makes an existing one stricter appends that gate's bare name
|
|
74
|
+
to the tightened-gates declaration surface,
|
|
75
|
+
`<workflow-dir>/tightened-gates.txt` (gate-sdk/SPEC.md §upgrade-smoke), in the
|
|
76
|
+
same commit. Build is the only stage that knows what it tightened at the moment
|
|
77
|
+
it tightens it, so the declaration is written from knowledge rather than
|
|
78
|
+
reconstructed later from a red — and an assertion that discovers its own
|
|
79
|
+
allowed-red set from the gate it was supposed to check is its own trigger. The
|
|
80
|
+
surface accumulates across the iterations batched into one release; the release
|
|
81
|
+
step composes the note's Tightened-gates section from it and drains it at the
|
|
82
|
+
tag, so nothing here loads the release runbook. Only gates a consumer's vendored
|
|
83
|
+
tree can actually run are declared: a gate living solely in your own gates
|
|
84
|
+
directory never reaches a vendored tree and is not part of any release's
|
|
85
|
+
allowed-red set.
|
|
86
|
+
|
|
72
87
|
**Run the system; don't reason about it** — when a running system is
|
|
73
88
|
reachable, reproduce first, read second. Recorded evidence rots: a static
|
|
74
89
|
trace in a task body is a dated hypothesis to re-verify, not a premise. A
|
|
@@ -19,13 +19,13 @@ write is involved. Commit the stamp on its own.
|
|
|
19
19
|
|
|
20
20
|
**Where close's own captures file.** Close never writes the active queue
|
|
21
21
|
sections — promoting a unit into them is scope's. Every finding close itself
|
|
22
|
-
captures files instead as a Deferred `[
|
|
23
|
-
promote: a lesson turned task, a drained gap, a housekeeping or triage
|
|
24
|
-
or a dispatch's "capture as debt". The active sections must be empty
|
|
25
|
-
drain boundary, so a finding mis-filed into one is caught only later as
|
|
26
|
-
`check-stage-entry` at the next iteration's entry; filing to Deferred
|
|
27
|
-
boundary clean (lifecycle-kit/SPEC.md §check-stage-entry owns the
|
|
28
|
-
model for ruled-but-unpromoted work).
|
|
22
|
+
captures files instead as a Deferred `[design-pending]` entry for a later scope
|
|
23
|
+
to promote: a lesson turned task, a drained gap, a housekeeping or triage
|
|
24
|
+
finding, or a dispatch's "capture as debt". The active sections must be empty
|
|
25
|
+
at the drain boundary, so a finding mis-filed into one is caught only later as
|
|
26
|
+
a red `check-stage-entry` at the next iteration's entry; filing to Deferred
|
|
27
|
+
keeps the boundary clean (lifecycle-kit/SPEC.md §check-stage-entry owns the
|
|
28
|
+
deferred-filing model for ruled-but-unpromoted work).
|
|
29
29
|
|
|
30
30
|
1. **Process Lessons Learned** → durable rules or debt tasks, then clear the
|
|
31
31
|
section. **Give each entry an explicit disposition before clearing, and
|
|
@@ -62,7 +62,7 @@ model for ruled-but-unpromoted work).
|
|
|
62
62
|
2. **Drain the gap inbox** (`LIFECYCLE_KIT_GAP_INBOX_FILE`,
|
|
63
63
|
§The committed gap inbox) → disposition every `- <date> — <gap>` bullet,
|
|
64
64
|
then **truncate the inbox to its `# contract:` header**. The disposition set
|
|
65
|
-
is →promote (file a deferred `[
|
|
65
|
+
is →promote (file a deferred `[design-pending]` queue entry for the gap),
|
|
66
66
|
→fix (resolve it inline this session), or →discard (state why in the close
|
|
67
67
|
commit message — the bullet's own prose is the disposition body). The date
|
|
68
68
|
feeds the staleness read (an aged bullet is a signal, not a free pass).
|
|
@@ -77,7 +77,7 @@ detailed authoring how-to — causal
|
|
|
77
77
|
completeness (every new field's producer, consumer, and named reader, surveyed
|
|
78
78
|
across the whole component set) and the bidirectional queue pairing — is
|
|
79
79
|
single-sourced in the authoring stage's template
|
|
80
|
-
(`lifecycle-kit/templates/
|
|
80
|
+
(`lifecycle-kit/templates/stages/spec.md`); a default-roster scope that authors
|
|
81
81
|
follows it here.
|
|
82
82
|
|
|
83
83
|
A premise inherited from a queued task ("clean/mechanical", "already filed",
|
|
@@ -2,18 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
A git-native, agent-readable task tracker: one Markdown file where `##`
|
|
4
4
|
sections are queues, bold kebab-case slugs are the task handles, and
|
|
5
|
-
square-bracket tags (`[blocked-by:]`, `[
|
|
6
|
-
`[drain-exempt:]`, `[precondition-ok:]`, plus the Lessons Learned
|
|
7
|
-
`[attend]` and the consumer-named harvest tags) are the state machine.
|
|
8
|
-
|
|
5
|
+
square-bracket tags (`[blocked-by:]`, `[design-pending]`, `[spec:]`,
|
|
6
|
+
`[drain-exempt:]`, `[roadmap:]`, `[precondition-ok:]`, plus the Lessons Learned
|
|
7
|
+
channel's `[attend]` and the consumer-named harvest tags) are the state machine.
|
|
8
|
+
Gates hold the grammar a coding agent selects work by, a
|
|
9
|
+
`queue-index.sh` tool renders the compact selection surface, and a `roadmap.sh`
|
|
10
|
+
tool projects the entries curated with `[roadmap:]` onto a generated public page.
|
|
9
11
|
|
|
10
12
|
Why: an agent picks work by *parsing*, not reading — so everything selection
|
|
11
13
|
trusts (section position, slugs, tags) must be grammar a gate can enforce, and
|
|
12
14
|
everything a human writes freely (task prose) must stay off the parse path.
|
|
13
15
|
Drift between what the prose says and what the parser sees is the failure mode;
|
|
14
|
-
all but
|
|
16
|
+
all but two of the gates each close one instance of it — a tag reflowed off its
|
|
15
17
|
lead line, a duplicate slug, a lost task, a forward precondition stated in
|
|
16
|
-
prose but never tagged.
|
|
18
|
+
prose but never tagged. The two exceptions hold a different axis: projection
|
|
19
|
+
freshness, and the deferred pool's per-entry budget. See [SPEC.md](SPEC.md) for
|
|
20
|
+
the full contracts.
|
|
17
21
|
|
|
18
22
|
## Install
|
|
19
23
|
|
|
@@ -26,11 +30,13 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
|
|
|
26
30
|
check-queue-hygiene
|
|
27
31
|
check-queue-sections
|
|
28
32
|
check-queue-wrap
|
|
33
|
+
check-queue-entry-budget
|
|
29
34
|
check-tag-lead-line
|
|
30
35
|
check-task-names
|
|
31
36
|
check-task-conservation
|
|
32
37
|
check-queue-prose-precondition
|
|
33
38
|
check-queue-slug-liveness
|
|
39
|
+
check-roadmap-fresh
|
|
34
40
|
```
|
|
35
41
|
<!-- gate-roster:end -->
|
|
36
42
|
|
|
@@ -41,7 +47,9 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
|
|
|
41
47
|
2. Give your queue file the section skeleton — copy
|
|
42
48
|
`templates/TASK-QUEUE.md` and fill it in (it shows one example entry per
|
|
43
49
|
grammar shape). The default sections are `New Features` / `Technical Debt`
|
|
44
|
-
(active), `Deferred`, `Done
|
|
50
|
+
(active), `Deferred`, `Done` — plus an optional `Icebox` tier between the
|
|
51
|
+
last two for backlogs whose carry weight has become the problem, off by
|
|
52
|
+
default (`QUEUE_KIT_ICEBOX_SECTION`).
|
|
45
53
|
|
|
46
54
|
3. Optional — reshape the grammar: copy `templates/queue-config.sh` into your
|
|
47
55
|
gates dir and override section names, the wrap budget, prose-lead tokens, or
|
|
@@ -50,11 +58,19 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
|
|
|
50
58
|
## Use
|
|
51
59
|
|
|
52
60
|
```bash
|
|
53
|
-
bash queue-kit/bin/queue-index.sh
|
|
54
|
-
bash queue-kit/bin/queue-index.sh --collapse-deferred
|
|
55
|
-
bash queue-kit/bin/queue-index.sh --extent <slug>
|
|
61
|
+
bash queue-kit/bin/queue-index.sh # header + active (• ready / ✗ blocked) + deferred + icebox tally
|
|
62
|
+
bash queue-kit/bin/queue-index.sh --collapse-deferred # deferred as a per-### tally
|
|
63
|
+
bash queue-kit/bin/queue-index.sh --extent <slug> # inclusive line range of one entry's subtree
|
|
64
|
+
bash queue-kit/bin/queue-index.sh --icebox-candidates # the closing stage's eviction worklist
|
|
65
|
+
bash queue-kit/bin/lesson-sink.sh <tag> # route a harvested lesson body to its configured sink
|
|
66
|
+
bash queue-kit/bin/roadmap.sh --emit # the public roadmap block, to stdout
|
|
67
|
+
bash queue-kit/bin/roadmap.sh --write # splice it into the configured projection page
|
|
56
68
|
```
|
|
57
69
|
|
|
70
|
+
The roadmap projection is opt-in: it emits nothing until you set the horizon and
|
|
71
|
+
track vocabularies and a projection page in your config (step 3 above), so an
|
|
72
|
+
unconfigured consumer gets a clean skip rather than a kit-shaped roadmap.
|
|
73
|
+
|
|
58
74
|
## Test
|
|
59
75
|
|
|
60
76
|
```bash
|