checkwright 0.27.0 → 0.29.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/LICENSE +202 -0
- package/README.md +4 -2
- package/package.json +6 -4
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/LICENSE +202 -0
- package/payload/canon-kit/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +9 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-family.md +10 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-only.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +4 -2
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-family.md +10 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +2 -0
- package/payload/context-kit/LICENSE +202 -0
- package/payload/context-kit/README.md +4 -0
- package/payload/delegation-kit/LICENSE +202 -0
- package/payload/delegation-kit/README.md +4 -0
- package/payload/doctrine-kit/LICENSE +202 -0
- package/payload/doctrine-kit/README.md +4 -0
- package/payload/drift-kit/LICENSE +202 -0
- package/payload/drift-kit/README.md +4 -0
- package/payload/evidence-kit/LICENSE +202 -0
- package/payload/evidence-kit/README.md +4 -0
- package/payload/gate-sdk/LICENSE +202 -0
- package/payload/gate-sdk/README.md +1 -1
- package/payload/guard-kit/LICENSE +202 -0
- package/payload/guard-kit/README.md +4 -0
- package/payload/lifecycle-kit/LICENSE +202 -0
- package/payload/lifecycle-kit/README.md +6 -1
- package/payload/lifecycle-kit/checks/check-merge-attrs.gate +1 -1
- package/payload/lifecycle-kit/gate-tests/capture-linked-worktree.test.sh +14 -5
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry.test.sh +8 -2
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -1
- package/payload/lifecycle-kit/templates/consult.md +9 -7
- package/payload/lifecycle-kit/templates/lead.md +7 -3
- package/payload/lifecycle-kit/templates/stages/build.md +1 -1
- package/payload/lifecycle-kit/templates/stages/close.md +2 -2
- package/payload/lifecycle-kit/templates/stages/scope.md +2 -2
- package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
- package/payload/queue-kit/LICENSE +202 -0
- package/payload/queue-kit/README.md +15 -0
- package/payload/queue-kit/checks/check-queue-hygiene.gate +1 -1
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +6 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/queue-verbs.test.sh +183 -0
- package/payload/site-kit/LICENSE +202 -0
- package/payload/site-kit/README.md +4 -0
- package/recipes/openspec/canon-config.knobs +3 -0
- package/recipes/openspec/unregister.list +1 -0
- package/recipes/openspec-lifecycle/lifecycle-config.knobs +4 -0
- package/recipes/openspec-lifecycle/unregister.list +1 -0
- package/recipes/speckit/canon-config.knobs +3 -0
- package/recipes/speckit/gate-sdk-config.knobs +2 -0
- package/recipes/speckit/unregister.list +1 -0
|
@@ -110,7 +110,11 @@ Under the split posture the lead **routes** an escalation before answering it. A
|
|
|
110
110
|
|
|
111
111
|
**A split ask arrives with its own test already applied.** A session the queue's per-entry cap blocks may ask to split the entry, and that ask carries the session's statement of which side of `queue-kit/SPEC.md` §check-queue-entry-budget's split test its entry falls on. The lead rules against that test rather than re-deriving one; the authorization stays the lead's, on that section's own ground — a new entry is a new unit competing for the scope attention that ranks both.
|
|
112
112
|
|
|
113
|
-
**One class the lead never rules, under either posture.** Reversing, demoting or re-scoping a **recorded operator ruling** or a stated objective is operator-class: the lead relays it, however well-grounded the escalating session's finding and however urgent the fix. Nor does it decline a threshold-proposed entry that scope's escalation marks operator-routed. That entry has been declined twice, and it is relayed.
|
|
113
|
+
**One class the lead never rules, under either posture.** Reversing, demoting or re-scoping a **recorded operator ruling** or a stated objective is operator-class: the lead relays it, however well-grounded the escalating session's finding and however urgent the fix. Where the operator defers it, file it with `--emit file-consult` so it reaches the next consultation rather than your transcript. Nor does it decline a threshold-proposed entry that scope's escalation marks operator-routed. That entry has been declined twice, and it is relayed.
|
|
114
|
+
|
|
115
|
+
**Dispatch a consultation for the consult inbox only while no stage session is live.** At a point where no dispatched stage session is live and the inbox (`LIFECYCLE_KIT_CONSULT_INBOX_FILE`) meets the slot's threshold, dispatch the consult skill as the agent type the slot names, its prompt naming the inbox items and nothing else. It escalates to you as a stage session does. Relay each ruling-class escalation to the operator and relay the answer back, stating its class. Dispatch no stage session while it is live.
|
|
116
|
+
|
|
117
|
+
*<consult-dispatch: the agent type a lead dispatches a consultation as — never a stage-session type — and the batching threshold on the consult inbox: an item count, an oldest-item age, or off, which dispatches at the first quiet point after any item lands. Or the statement that this consumer's lead dispatches no consultation.>*
|
|
114
118
|
|
|
115
119
|
## Channel design
|
|
116
120
|
|
|
@@ -154,9 +158,9 @@ The lead writes **no** lifecycle state — no WORKFLOW-STATE stamps, no queue wr
|
|
|
154
158
|
|
|
155
159
|
**A recurrence you judge is still yours to record, and your discharge differs.** The no-queue-write rule above leaves you no way to stamp one, so you **file the judgment and its grounds into a gap bullet** (`--emit file-gap`) and the session that may write the queue stamps from your prose — at the boundary as safely as mid-iteration (lifecycle-kit/SPEC.md §The committed gap inbox). What you must not do is leave the judgment unrecorded on the ground that you cannot stamp it.
|
|
156
160
|
|
|
157
|
-
**While a dispatched stage session is live, write nothing into the checkout.** A stage session is live from its dispatch until its completion notification. While one is, write nothing into the checkout or any linked worktree: no file, no directory, no worktree added or removed, no `git` write, gitignored scratch included. Three writes stay yours: your resume journal, your session-role marker, and what the arms you run write for you (`--dispatch`, `--dispatch-withdraw`, `--open-lead-journal`, a budget verdict). A capture you make, a gap bullet or a survey block, goes to your journal. A probe that must write runs after the stage completes, or in a clone outside the checkout.
|
|
161
|
+
**While a dispatched stage session is live, write nothing into the checkout.** A stage session is live from its dispatch until its completion notification. While one is, write nothing into the checkout or any linked worktree: no file, no directory, no worktree added or removed, no `git` write, gitignored scratch included. Three writes stay yours: your resume journal, your session-role marker, and what the arms you run write for you (`--dispatch`, `--dispatch-withdraw`, `--open-lead-journal`, a budget verdict). A capture you make, a gap bullet, a consult item or a survey block, goes to your journal. A probe that must write runs after the stage completes, or in a clone outside the checkout.
|
|
158
162
|
|
|
159
|
-
**File and commit your captures between dispatches.** At the first moment no dispatched stage session is live, file each held capture to its channel (`--emit file-gap`, `--emit file-survey`) and commit it on its own. A capture commit is none of the lifecycle state the invariant above enumerates, so it is yours to make.
|
|
163
|
+
**File and commit your captures between dispatches.** At the first moment no dispatched stage session is live, file each held capture to its channel (`--emit file-gap`, `--emit file-consult`, `--emit file-survey`) and commit it on its own. A capture commit is none of the lifecycle state the invariant above enumerates, so it is yours to make. No capture arm makes a `git` call: judging when the tree is free is the filing session's (lifecycle-kit/SPEC.md §The committed gap inbox).
|
|
160
164
|
|
|
161
165
|
An answer that amounts to a design ruling is landed **by the stage session**, in the governed surface it belongs to (the amendment, the queue entry), *before* the session acts on it — and a ruling whose acting session is **not imminent** is filed to a durable governed surface (a queue entry, an amendment) in the moment it is made, because "the stage session lands it" holds only when that session exists. So is an answer that nothing changes: relay it as an answer to be landed, naming the surface that recorded the question, never as a close of the matter (lifecycle-kit/SPEC.md §The stamp protocol). The message thread is transport, never a store — so a lead crash or a lost transcript costs nothing the tracked surfaces do not already hold.
|
|
162
166
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The `build` (implementation) stage of an iteration. Implement the queued work in queue order. Exit condition: task queue empty for this iteration.
|
|
2
2
|
|
|
3
|
-
Build is **mandatory every iteration** and processes **both feature and debt units**: it merges a promoted feature's amendment into the canonical spec and makes a debt unit's direct edits (a debt unit skips the authoring stage entirely), and it **owns the task-completion Done move** for either kind. The authoring stage authors amendments only — it makes no direct spec/code edit and moves nothing to Done.
|
|
3
|
+
Build is **mandatory every iteration** and processes **both feature and debt units**: it merges a promoted feature's amendment into the canonical spec and makes a debt unit's direct edits (a debt unit skips the authoring stage entirely), and it **owns the task-completion Done move** for either kind: `--queue done`, or `--queue demote` for an entry that outlives its amendment. The authoring stage authors amendments only — it makes no direct spec/code edit and moves nothing to Done.
|
|
4
4
|
|
|
5
5
|
**Step 0 — audit-readiness recheck (before the stamp).** The entry stamp re-fires the state-coupled gates but **not** your spec-consistency battery (it couples the spec corpus, not the evidence file), so a build session can enter on an unverified align corpus. Close that hop: **iff** an `align` stamp for the current iteration exists in `.workflow/WORKFLOW-STATE.txt`, run *<consistency-gate: your aggregate consistency gate>* and refuse to stamp if it is red — fix the drift first (or return to `align`). Absent an align stamp, align did not run this iteration; build's prior stage is scope, whose exit the entry already re-fires — **except** when `check-stage-entry` assertion C fires: a cross-component amendment signal with no align stamp blocks the entry until the iteration carries either an align stamp or an explicit `<iter> align-waived <session> <date> <head>` waiver line, declared by the dispatcher **only on the user's explicit ruling** with `--enter-stage --dispatch <stage> --waive <the ruling>` and recorded by the entry that consumes it — never self-issued by this entering session.
|
|
6
6
|
|
|
@@ -9,10 +9,10 @@ The `close` stage of an iteration. Harvest lessons, housekeep, optionally merge.
|
|
|
9
9
|
**The survey record is not a close surface.** It carries no disposition obligation and blocks no boundary — the next first-stage entry truncates it, and that is the whole reclaim (lifecycle-kit/SPEC.md §The survey record). Close owes it exactly one thing: a survey close *buys* while triaging is filed like any other, so a finding worth an iteration's carry does not die with this session.
|
|
10
10
|
|
|
11
11
|
1. **Process Lessons Learned** → durable rules or debt tasks, then clear the section. **Give each entry an explicit disposition before clearing, and stamp it** — one line per entry into `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE` (`<iteration> lesson <kind> <ref> — <lead-line prefix>`), the record `check-lesson-disposition` reads when the entry leaves the queue (the stamp, not the commit body, is the mechanically-decidable evidence — the pre-commit battery has no commit message yet). The disposition set is →rule (name the file + section; prefer a stage-local skill file over an always-loaded doc for a stage-local procedure), →task (name the new slug), →harvest (a lesson carrying a configured harvest tag on its lead line — route its *body* to the sink this skill names for that tag, below), or →discard (state why it needs no durable home — a lesson that is private rule content discards to the consumer's local-only private brief, if one exists, rather than any tracked surface). Clearing is not processing: a lesson naming a concrete *unfixed gap* must become a task, not evaporate. When a lesson claims it was "already filed under <slug>", verify the target task's **body** actually carries the specific finding before dispositioning →task — the slug merely existing is not enough. Gap generalization, per lesson recording drift no check caught: name the check class that should have caught it, then either file the missing check as a deferred task or state in one line why no scanner is buildable — the disposition is not complete without one of the two; read the rule body first (doctrine-kit/DOCTRINE.md, Enforcement-first). Lesson-vs-task litmus (holds at filing time in any stage, not just here): if the deliverable and its done-state are nameable now, it is a task — file it in the deferred section directly, never stage it in Lessons where it waits a stage and risks →discard; Lessons is for observations about how the work should be done, whose durable home (rule vs task vs nothing) genuinely needs this stage's call. *<harvest-routing: harvest routing table: each `QUEUE_KIT_LESSON_TAGS` tag → the sink file its body appends to, plus the sink's reclaim path (a gitignored sink needs a named trigger that empties it — the runtime-artifact lifecycle rule).>*
|
|
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), →promote (file a deferred queue entry carrying its `[cost:]` and `[surface:]` tags, queue-kit/SPEC.md §The tag algebra — only what →fix does not take), or →discard (state why in the close commit message — the bullet's own prose is the disposition body). 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 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 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.** The audits, the lesson disposition, the staleness read and the release disposition all run after this step, so what they turn up has no drainer left in this iteration. 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 — a second pass over an inbox your own later steps keep refilling is the loop that shape was rejected for. **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,
|
|
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 only the operator can settle — a ruling, or a direction no stage may give: re-file it with `--emit file-consult`, carrying its prose and its date), →promote (file a deferred queue entry carrying its `[cost:]` and `[surface:]` tags, queue-kit/SPEC.md §The tag algebra — only what →fix does not take), or →discard (state why in the close commit message — the bullet's own prose is the disposition body). 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 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.** The audits, the lesson disposition, the staleness read and the release disposition all run after this step, so what they turn up has no drainer left in this iteration. 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 — a second pass over an inbox your own later steps keep refilling is the loop that shape was rejected for. **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
|
|
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. File one consult-owed item with `--emit file-consult` naming every slug the first output lists and the second does not, and one when the first configured horizon holds no bullet now, unless an item already in the consult inbox names it. Re-tag nothing: a consultation sets the 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/.
|
|
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 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.
|
|
@@ -2,7 +2,7 @@ The `scope` stage of an iteration — the exploratory half of design. Identify a
|
|
|
2
2
|
|
|
3
3
|
**First step — reset + stamp evidence.** Run the lifecycle arm `--enter-stage scope` on the gate binary `GATE_SDK_NATIVE_BIN` names. `scope` is the iteration boundary, so the tool *resets* the evidence file: it truncates `.workflow/WORKFLOW-STATE.txt` back to its header (dropping the prior iteration's stamps — git history is the permanent audit trail; the gates only ever read the current iteration), stamps `— scope <session-id> <date> <head>` under the unnamed-iteration sentinel, and sets the queue header to `## Iteration: —`. It reads `<session-id>` from the `--emit-session-id` arm itself (the newest transcript — never hand-picked), uses `date +%F`, and refuses (writing nothing) if `check-stage-entry` is red. On a refusal, **do not force the entry** — escalate to the lead (where one exists and this is not a standalone session) and stop; a refused entry is a gate verdict to resolve at its source, never to override. *<evidence-reset: reset any per-iteration evidence file your validate stage writes that the tool does not already truncate — the tool truncates WORKFLOW-STATE, the lesson-evidence file, and every `LIFECYCLE_KIT_BOUNDARY_TRUNCATE` member, in the same commit as this stamp.>* A new iteration stays `—` until this skill names it (below); only `scope` resets, later stages append. Honest limit: the stamp proves the skill was *invoked*, not that the work was done faithfully — it forces deliberate invocation and an audit trail, nothing more.
|
|
4
4
|
|
|
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, or discarded with cause in the commit message — 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.
|
|
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`), or discarded with cause in the commit message — 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
7
|
## Session ritual
|
|
8
8
|
|
|
@@ -24,7 +24,7 @@ A **deferred** entry whose recurrence count has reached `LIFECYCLE_KIT_RECURRENC
|
|
|
24
24
|
|
|
25
25
|
**Scope's censuses are the ones later stages most often re-buy, so record them.** A roster built by applying a criterion set to a corpus dies with this session's context unless it is written down, and the stage that needs it next has no artifact to read. File it, and read the record before dispatching a survey of your own: lifecycle-kit/SPEC.md §The survey record owns the block grammar, the two-command witness, and the rule that a carried survey is cited only while that witness holds.
|
|
26
26
|
|
|
27
|
-
**Authoring the promoted features' amendments is scope's — unless the roster splits out a dedicated authoring stage.** Where it does, that stage authors the amendment(s) and pairs the feature entries into the queue, and scope keeps only the exploratory half: survey, propose, name, and debt promotion — ending at the boundary so the survey context drops before authoring begins (that drop is the split's whole economics). Feature promotion is not a separable step that could fall to either stage: writing the amendment *is* promoting the entry (canon-kit/SPEC.md §The amendment lifecycle, the bidirectional rule), so the stage that authors is necessarily the stage that promotes. Either way the detailed authoring how-to — causal completeness (canon-kit's checklist, surveyed across the whole component set) and the bidirectional queue pairing — is single-sourced in the authoring stage's template (`lifecycle-kit/templates/stages/spec.md`); a default-roster scope that authors follows it here.
|
|
27
|
+
**Authoring the promoted features' amendments is scope's — unless the roster splits out a dedicated authoring stage.** Where it does, that stage authors the amendment(s) and pairs the feature entries into the queue, and scope keeps only the exploratory half: survey, propose, name, and debt promotion with `--queue promote <slug> <section>` — ending at the boundary so the survey context drops before authoring begins (that drop is the split's whole economics). Feature promotion is not a separable step that could fall to either stage: writing the amendment *is* promoting the entry (canon-kit/SPEC.md §The amendment lifecycle, the bidirectional rule), so the stage that authors is necessarily the stage that promotes. Either way the detailed authoring how-to — causal completeness (canon-kit's checklist, surveyed across the whole component set) and the bidirectional queue pairing — is single-sourced in the authoring stage's template (`lifecycle-kit/templates/stages/spec.md`); a default-roster scope that authors follows it here.
|
|
28
28
|
|
|
29
29
|
A premise inherited from a queued task ("clean/mechanical", "already filed", "dead code") is a dated hypothesis — re-verify it against the current tree before building on it, whether or not this stage goes on to author. On each entry you promote as debt, run every `**Inferred, not run:**` marker's command, correct the entry and delete the marker, or rewrite it to the cannot-run form.
|
|
30
30
|
|
|
@@ -24,7 +24,7 @@ Because this is a **fresh session** — a fresh prompt cache, on the tier the le
|
|
|
24
24
|
|
|
25
25
|
**Label every delta with its work class.** In the amendment's §What changes, every delta carries a **work-class** tag — either **mechanical** or **design-bearing** — written **inline, at the end of the delta's own lead sentence**, never collected into a separate roster at the section's head or foot. A delta is **mechanical** when executing it demands only oracle-running — running a fixed verification battery, a rename/merge sweep, a mechanical pin — with low generative judgment. It is **design-bearing** when executing it demands generative or verificational judgment — authoring a contract, a cross-spec audit, a non-obvious implementation. The label records what the delta *demands*, never a model name. The two values apply delegation-kit's unit-shape distinction (`templates/agent-execution.md`, "Match the dispatched model and effort to the unit's shape" — a read-heavy or mechanical unit rides a cheaper model class; a unit carrying design judgment stays on the supervisor's class) at authoring time. The label's one reader is the lead's per-batch tier decision (`lead.md` §Economics), which reads the labels of a batch's deltas at batch-cut time.
|
|
26
26
|
|
|
27
|
-
**Writing the amendment *is* promoting the deferred entry.**
|
|
27
|
+
**Writing the amendment *is* promoting the deferred entry.** Promote the feature entry with `--queue promote <slug> <section> --spec <ref>`, which lands its `[spec: <ref>]` ref, and commit it with the amendment file itself in **one commit**, satisfying canon-kit's bidirectional rule — without the pairing, design rationale and ruled-out alternatives get re-derived under build pressure. scope has already run the feature/debt litmus at filing and bounded the unit set; this stage authors, it does not re-triage.
|
|
28
28
|
|
|
29
29
|
**A Definition-of-Done item that moves the entry names a stage that can move it.** An entry's Done move or demotion lands before the drain stage (`LIFECYCLE_KIT_DRAIN_STAGE`), or at it only for a `[drain-exempt:]` entry — never at a stage after it (lifecycle-kit/SPEC.md §check-stage-entry, assertion B). Name that stage by its relation to the drain stage, never by a literal stage name. An entry whose oracle is a remote run moves when build's remote-oracle rule says (build.md, *Run the system*), never in its merge commit.
|
|
30
30
|
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -49,12 +49,23 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
|
|
|
49
49
|
"$gates" --emit queue-edges # every live slug with inbound citations, then retired targets, each marked where its name is still a tracked file's stem
|
|
50
50
|
"$gates" --emit queue-edges --inbound <slug> # one slug's inbound set, each edge with its citing line verbatim
|
|
51
51
|
"$gates" --emit entry-history <slug> # commits where one entry's counted extent fell — live or departed slug; advisory, no verdict
|
|
52
|
+
"$gates" --emit queue-history <slug> # one entry's section transitions, oldest first: date, commit, from -> to, subject
|
|
53
|
+
"$gates" --queue promote <slug> <section> [--spec <file>] # a deferred entry into an active section, its board tags dropped
|
|
54
|
+
"$gates" --queue done <slug> # an entry to the done section, every link to it retired
|
|
55
|
+
"$gates" --queue clear-done # every bullet under the done section removed
|
|
56
|
+
"$gates" --queue icebox <slug> <sentence> # a deferred entry into the icebox as one sentence
|
|
57
|
+
"$gates" --queue recur <slug> [<date>] # a date appended to the entry's [recurrence:] array
|
|
58
|
+
"$gates" --queue demote <slug> [--cost <class>] [--surface <entry>] # an active entry back to its deferred place and tags
|
|
59
|
+
"$gates" --queue thaw <slug> [--date <date>] # an icebox entry back with its body restored, a recurrence stamped
|
|
60
|
+
"$gates" --queue split <parent> <child> <parent-sentence> < child.md # the mechanical half of an authorized split
|
|
52
61
|
"$gates" --lesson-sink <tag> # route a lesson body on stdin to its configured sink
|
|
53
62
|
"$gates" --emit roadmap # the public roadmap block, to stdout
|
|
54
63
|
"$gates" --emit roadmap --write # splice it into the configured projection page
|
|
55
64
|
"$gates" --emit queue-migrate --write TASK-QUEUE.md # once, on upgrade: bullet entries become ### headings with a tag line
|
|
56
65
|
```
|
|
57
66
|
|
|
67
|
+
Each `--queue` verb runs the gates coupled to the queue file after it writes, and never stages or commits: exit 0 is written and green, 1 is written with a red to fix before you commit, 2 is nothing written.
|
|
68
|
+
|
|
58
69
|
The roadmap projection is opt-in: it emits nothing until you set the horizon and track vocabularies and a projection page in your config (step 3 above), so an unconfigured consumer gets a clean skip rather than a kit-shaped roadmap.
|
|
59
70
|
|
|
60
71
|
## Test
|
|
@@ -66,3 +77,7 @@ Run this arm the same way:
|
|
|
66
77
|
gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
|
|
67
78
|
"$gates" --run-gate-tests queue-kit/gate-tests queue-kit/checks
|
|
68
79
|
```
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
Apache-2.0. The license text is `LICENSE`, beside this file in an installed copy and at the repository root in the source tree.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# graph: couples=knob:QUEUE_KIT_QUEUE_FILE dir=one valve=none tier=precommit
|
|
2
2
|
# install: zero-config
|
|
3
|
-
# spec: queue-kit/SPEC.md §check-queue-hygiene — the queue holds only tasks, tags, and structure: no HTML comments, no duplicate lines, no column-0 prose outside an entry, no line-number cites, no -S pickaxe on the queue
|
|
3
|
+
# spec: queue-kit/SPEC.md §check-queue-hygiene — the queue holds only tasks, tags, and structure: no HTML comments, no duplicate lines, no column-0 prose outside an entry, no line-number cites, no -S pickaxe on the queue, no malformed recurrence date
|
|
@@ -18,6 +18,12 @@ recovery walkthrough at some-module.rs:42 needs a look.
|
|
|
18
18
|
|
|
19
19
|
recovery is `git log -p -S'cite-line-bug' -- TASK-QUEUE.md`.
|
|
20
20
|
|
|
21
|
+
### recur-typo
|
|
22
|
+
|
|
23
|
+
[recurrence: 2026-09-27 2026-09-28]
|
|
24
|
+
|
|
25
|
+
a recurrence stamp written space-separated, which the counting readers drop.
|
|
26
|
+
|
|
21
27
|
## Technical Debt
|
|
22
28
|
|
|
23
29
|
## Deferred
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: queue-kit/SPEC.md §The queue verbs — the verbs over a seeded history, the properties a crate
|
|
3
|
+
# unit test cannot reach because they are properties of a git history and of a spawned post-check:
|
|
4
|
+
# (1) `promote` and `icebox` build the history a later `demote` and `thaw` read back, restoring the
|
|
5
|
+
# position, the board tags and the body; (2) `--emit queue-history` prints the same history's rows,
|
|
6
|
+
# oldest first; (3) the exit contract — 1 on a planted post-check red with the move written, 2 on a
|
|
7
|
+
# refusal with the file byte-for-byte unchanged.
|
|
8
|
+
#
|
|
9
|
+
# Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
|
|
10
|
+
set -uo pipefail
|
|
11
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
12
|
+
|
|
13
|
+
SANDBOX="$(mktemp -d)"
|
|
14
|
+
trap 'rm -rf "$SANDBOX"' EXIT
|
|
15
|
+
|
|
16
|
+
fails=0
|
|
17
|
+
checks=0
|
|
18
|
+
note() { echo " FAIL [$1]: $2"; fails=$((fails + 1)); }
|
|
19
|
+
|
|
20
|
+
git -C "$SANDBOX" init -q
|
|
21
|
+
git -C "$SANDBOX" config user.email seed@example.invalid
|
|
22
|
+
git -C "$SANDBOX" config user.name Seed
|
|
23
|
+
|
|
24
|
+
# The post-check's registry: one stub gate coupled to the queue file, red while a marker exists.
|
|
25
|
+
mkdir -p "$SANDBOX/gates"
|
|
26
|
+
{
|
|
27
|
+
printf '#!/usr/bin/env bash\n'
|
|
28
|
+
printf '# graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit\n'
|
|
29
|
+
printf '[[ -e "%s/RED" ]] && { echo "g_queue: planted red"; exit 1; }\n' "$SANDBOX"
|
|
30
|
+
printf 'echo "G-QUEUE: clean"\n'
|
|
31
|
+
} >"$SANDBOX/gates/g_queue.sh"
|
|
32
|
+
chmod +x "$SANDBOX/gates/g_queue.sh"
|
|
33
|
+
echo g_queue >"$SANDBOX/gates/gates.list"
|
|
34
|
+
|
|
35
|
+
cat >"$SANDBOX/TASK-QUEUE.md" <<'EOF'
|
|
36
|
+
# TASK-QUEUE.md
|
|
37
|
+
|
|
38
|
+
## Iteration: seeded
|
|
39
|
+
|
|
40
|
+
## New Features
|
|
41
|
+
|
|
42
|
+
## Technical Debt
|
|
43
|
+
|
|
44
|
+
## Deferred
|
|
45
|
+
|
|
46
|
+
### def-a
|
|
47
|
+
|
|
48
|
+
[cost: event/low] [surface: gates]
|
|
49
|
+
|
|
50
|
+
the first entry.
|
|
51
|
+
|
|
52
|
+
### def-b
|
|
53
|
+
|
|
54
|
+
[cost: iteration/high] [surface: gates]
|
|
55
|
+
|
|
56
|
+
the promoted entry.
|
|
57
|
+
|
|
58
|
+
### def-c
|
|
59
|
+
|
|
60
|
+
[cost: once/low] [surface: gates]
|
|
61
|
+
|
|
62
|
+
the evicted entry, with a body the icebox drops.
|
|
63
|
+
|
|
64
|
+
a second paragraph.
|
|
65
|
+
|
|
66
|
+
### def-d
|
|
67
|
+
|
|
68
|
+
[cost: event/low] [surface: gates]
|
|
69
|
+
|
|
70
|
+
the last entry.
|
|
71
|
+
|
|
72
|
+
## Icebox
|
|
73
|
+
|
|
74
|
+
## Done
|
|
75
|
+
|
|
76
|
+
## Lessons Learned
|
|
77
|
+
EOF
|
|
78
|
+
|
|
79
|
+
commit() {
|
|
80
|
+
git -C "$SANDBOX" add TASK-QUEUE.md
|
|
81
|
+
GIT_AUTHOR_DATE="$2T12:00:00" GIT_COMMITTER_DATE="$2T12:00:00" git -C "$SANDBOX" commit -q -m "$1"
|
|
82
|
+
}
|
|
83
|
+
sha() { git -C "$SANDBOX" rev-parse --short=8 "$1"; }
|
|
84
|
+
|
|
85
|
+
verb() {
|
|
86
|
+
( cd "$SANDBOX" && gate_env GATE_SDK_GATES_DIR="$SANDBOX/gates" GATE_SDK_KIT_DIRS="$SANDBOX/gates" \
|
|
87
|
+
GATE_SDK_TMP_DIR="$SANDBOX/.tmp" QUEUE_KIT_ICEBOX_SECTION=Icebox && gate_arm_run --queue "$@" 2>&1 )
|
|
88
|
+
}
|
|
89
|
+
history() {
|
|
90
|
+
( cd "$SANDBOX" && gate_env QUEUE_KIT_ICEBOX_SECTION=Icebox && gate_arm_run --emit-queue-history "$@" 2>&1 )
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
# --- the seeded history, built by the verbs themselves ----------------------------------
|
|
94
|
+
commit "file four entries" 2026-01-01
|
|
95
|
+
FILED="$(sha HEAD)"
|
|
96
|
+
|
|
97
|
+
checks=$((checks + 1))
|
|
98
|
+
out="$(verb promote def-b "New Features" --spec SPEC-b.md)"; rc=$?
|
|
99
|
+
[[ "$rc" -eq 0 ]] || note promote-exit "promote did not exit 0 under a green post-check (exit $rc): $out"
|
|
100
|
+
grep -qF 'promote def-b: Deferred -> New Features; dropped [cost: iteration/high] [surface: gates]; added [spec: SPEC-b.md]' <<<"$out" \
|
|
101
|
+
|| note promote-act "the act line is not the one the move made: $out"
|
|
102
|
+
grep -qF 'G-QUEUE: clean' <<<"$out" || grep -qF 'All 1 gates passed' <<<"$out" \
|
|
103
|
+
|| note promote-postcheck "the post-check's output is absent: $out"
|
|
104
|
+
commit "promote def-b" 2026-02-01
|
|
105
|
+
PROMOTED="$(sha HEAD)"
|
|
106
|
+
|
|
107
|
+
checks=$((checks + 1))
|
|
108
|
+
out="$(verb icebox def-c "dormant c.")"; rc=$?
|
|
109
|
+
[[ "$rc" -eq 0 ]] || note icebox-exit "icebox did not exit 0 (exit $rc): $out"
|
|
110
|
+
grep -qF 'a second paragraph.' "$SANDBOX/TASK-QUEUE.md" && note icebox-body "the evicted body is still in the file"
|
|
111
|
+
commit "evict def-c" 2026-03-01
|
|
112
|
+
EVICTED="$(sha HEAD)"
|
|
113
|
+
|
|
114
|
+
# --- queue-history prints the same history, oldest first ---------------------------------
|
|
115
|
+
checks=$((checks + 1))
|
|
116
|
+
h="$(history def-b)"; rc=$?
|
|
117
|
+
[[ "$rc" -eq 0 ]] || note history-exit "queue-history did not exit 0 (exit $rc): $h"
|
|
118
|
+
want="def-b
|
|
119
|
+
2026-01-01 $FILED (absent) -> Deferred file four entries
|
|
120
|
+
2026-02-01 $PROMOTED Deferred -> New Features promote def-b"
|
|
121
|
+
[[ "$h" == "$want" ]] || note history-rows "the rows are not the seeded history's:
|
|
122
|
+
$h"
|
|
123
|
+
checks=$((checks + 1))
|
|
124
|
+
h="$(history def-c)"
|
|
125
|
+
grep -qF " 2026-03-01 $EVICTED Deferred -> Icebox evict def-c" <<<"$h" \
|
|
126
|
+
|| note history-evict "the eviction row is absent: $h"
|
|
127
|
+
none="$(history no-such-slug)"; rc=$?
|
|
128
|
+
[[ "$rc" -eq 2 ]] || note history-refusal "a slug in no set exited $rc rather than 2: $none"
|
|
129
|
+
|
|
130
|
+
# --- demote restores the board tags and the place after its old predecessor ---------------
|
|
131
|
+
checks=$((checks + 1))
|
|
132
|
+
out="$(verb demote def-b)"; rc=$?
|
|
133
|
+
[[ "$rc" -eq 0 ]] || note demote-exit "demote did not exit 0 (exit $rc): $out"
|
|
134
|
+
grep -qF 'the first entry.
|
|
135
|
+
|
|
136
|
+
### def-b
|
|
137
|
+
|
|
138
|
+
[cost: iteration/high] [surface: gates]
|
|
139
|
+
|
|
140
|
+
the promoted entry.' "$SANDBOX/TASK-QUEUE.md" \
|
|
141
|
+
|| note demote-restore "def-b is not back after def-a with its board tags: $(cat "$SANDBOX/TASK-QUEUE.md")"
|
|
142
|
+
|
|
143
|
+
# --- thaw restores the whole body at its place and stamps the recurrence ------------------
|
|
144
|
+
checks=$((checks + 1))
|
|
145
|
+
out="$(verb thaw def-c --date 2026-04-01)"; rc=$?
|
|
146
|
+
[[ "$rc" -eq 0 ]] || note thaw-exit "thaw did not exit 0 (exit $rc): $out"
|
|
147
|
+
grep -qF 'the first entry.
|
|
148
|
+
|
|
149
|
+
### def-c
|
|
150
|
+
|
|
151
|
+
[cost: once/low] [surface: gates] [recurrence: 2026-04-01]
|
|
152
|
+
|
|
153
|
+
the evicted entry, with a body the icebox drops.
|
|
154
|
+
|
|
155
|
+
a second paragraph.' "$SANDBOX/TASK-QUEUE.md" \
|
|
156
|
+
|| note thaw-restore "def-c's body is not restored after def-a: $(cat "$SANDBOX/TASK-QUEUE.md")"
|
|
157
|
+
grep -qF 'dormant c.' "$SANDBOX/TASK-QUEUE.md" && note thaw-sentence "the icebox sentence survived the thaw"
|
|
158
|
+
|
|
159
|
+
# --- the exit contract: 1 written under a planted red, 2 with the file unchanged ----------
|
|
160
|
+
checks=$((checks + 1))
|
|
161
|
+
touch "$SANDBOX/RED"
|
|
162
|
+
cp "$SANDBOX/TASK-QUEUE.md" "$SANDBOX/before.md"
|
|
163
|
+
out="$(verb recur def-d 2026-05-01)"; rc=$?
|
|
164
|
+
[[ "$rc" -eq 1 ]] || note red-exit "a planted post-check red exited $rc rather than 1: $out"
|
|
165
|
+
grep -qF 'g_queue: planted red' <<<"$out" || note red-findings "the post-check's findings are not printed: $out"
|
|
166
|
+
cmp -s "$SANDBOX/before.md" "$SANDBOX/TASK-QUEUE.md" && note red-written "the move was not written under the red post-check"
|
|
167
|
+
rm -f "$SANDBOX/RED"
|
|
168
|
+
|
|
169
|
+
checks=$((checks + 1))
|
|
170
|
+
cp "$SANDBOX/TASK-QUEUE.md" "$SANDBOX/before.md"
|
|
171
|
+
for refusal in "promote no-such-slug New Features" "recur def-d 2026-04-30" "icebox def-a" "done"; do
|
|
172
|
+
# shellcheck disable=SC2086 # each refusal is a word list on purpose
|
|
173
|
+
out="$(verb $refusal)"; rc=$?
|
|
174
|
+
[[ "$rc" -eq 2 ]] || note refusal-exit "'$refusal' exited $rc rather than 2: $out"
|
|
175
|
+
cmp -s "$SANDBOX/before.md" "$SANDBOX/TASK-QUEUE.md" || note refusal-unchanged "'$refusal' changed the file"
|
|
176
|
+
done
|
|
177
|
+
|
|
178
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
179
|
+
echo "queue-verbs.test.sh: $fails case(s) failed"
|
|
180
|
+
exit 1
|
|
181
|
+
fi
|
|
182
|
+
echo "queue-verbs.test.sh: clean (promote and icebox build a history that demote and thaw read back — position, board tags and body restored — queue-history prints its rows oldest first and refuses a slug in no set, a planted post-check red exits 1 with the move written, and a refusal exits 2 with the file unchanged; $checks checks)"
|
|
183
|
+
exit 0
|