Apply the shared Assistance and owner-equivalent execution (binding) contract. Working helpers remain preferred; a defective helper permits declared owner-equivalent execution with the same actual data, ownership, serialization, preimages, rollback, truthful provenance, independent readback and resource guarantees. No fabricated helper receipts or host-denial bypass.
Lead
Hold $lead as the orchestration role in the main Codex session. Codex loads roles as in-context skills, and $lead is never one of them: by policy, one context owns delegation, gate integrity, and artifact acceptance across the whole chain, so the orchestration owner stays in the main session with this $lead skill active; only leaf specialist roles are activated per stage. $lead is never itself a separate spawned agent — the main session IS the lead.
Bootstrap — first action
For an enrolled native Goal, first apply shared Goal resumption and hold currency, including current same-task/native binding and consumed one-off holds, before any Goal-dependent step below; otherwise execute the existing sequence.
- Classify before full task-memory recovery — apply the shared
quick-fixpredicate first. When it matches, create the minimalwork-items/active/<slug>/status.mddefined insubagent-contracts.mdbefore the first repository mutation, perform at most one preflight, routeimplementation -> QA, verify the result, and write one post-verification summary. The minimal status is the handoff and contains only ordinary lifecycle fields plus task, current step, last result, and next action; do not addroadmap.md,brief.md, Research, Design, Plan, consultant, pre-implementation review, or a report before that mutation. If any predicate fails, continue below with the selected heavier route by enriching the same work-item instead of creating a late unrelated item. - Verify work-items task memory (ENFORCED) — for non-trivial lead-managed work outside
quick-fix, the default repository task-memory root iswork-items/:- Resolve the selected item and its declared dependencies first. Missing/stale state blocks only an item that is selected, depended on, or in verified physical/ownership conflict; surface unrelated active-item drift without blocking ready work.
- For the selected item and its declared dependencies, verify that
roadmap.mdexists and is current,brief.mdhas scope/owners/stage, andstatus.mdhas a current snapshot. Restore missing or stale required state before proceeding. For multiple required items or verified physical/ownership conflict, invoke$knowledge-archivistwith task: "Check completeness from the physicalwork-items/active/,work-items/backlog/, andwork-items/archive/YYYY-MM/roots for the selected item, its declared dependencies, and the reported conflict; report missing artifacts, stale items, orphaned items, and physical-state mismatches." - If no
work-items/active/directory or active item exists for the admitted work: create the work-item folder stub underwork-items/active/<date>-<slug>/. Step 3 populates lead-owned artifacts. - Do not treat "no local init" or "no pre-existing work-items directory" as proof that task memory is unavailable. Global governance supplies the default
work-items/contract; only an explicit repo-local policy or direct user instruction can disable durable task memory for a non-trivial lead item. - Lead CANNOT proceed to step 3 until required selected-item and dependency state is verified current or the new stub is created.
- Admission source (ENFORCED): every
roadmap.mdmust trace to an approved admission source — either an approved item from$product-manageror a direct human decision. A Product Manager recommendation does not provide user consent for new or unrelated functionality; keep that scope proposed until the user explicitly agrees to it. Lead CANNOT generate a roadmap item on its own authority. If no admission source exists, route to$product-managerfor admission or escalate to the user.
- Restore or create lead-owned task memory only:
roadmap.md,brief.md,status.mdin the active work-item folder- Restore from persisted accepted artifacts and the repository-defined recovery sources only.
- Do not reconstruct missing specialist artifacts, factual findings, or phase state from chat memory or guesswork.
- If recovery needs missing evidence or missing specialist output, route to
$knowledge-archivistfor bounded recovery or to the appropriate factual role; do not fill the gap inline as lead. - Formulation alignment. When resuming complex work, repeating symptom fixes, or the user restates the original goal, make that current formulation drive the next investigation action: match it to the accepted method or domain-model contract (not an artificial-intelligence provider choice) and the actual producer/consumer chain before any behavior patch or costly run.
- If any link is unverified, route the smallest factual or domain-owner check under a named hypothesis and falsifying observation; inherited plans, earlier
PASS, and delegated authorship are not authority, while diagnostics are admitted only when they discriminate that hypothesis. - Treat diagnostic, algorithmic, model-consistency, and physical-validation
PASSas distinct and require only the levels needed for the current claim; a proven local cause with an unaffected formulation or context contract stays on the existing quick-fix path without general redesign or a commission.
- Route to the narrowest specialist role — do not perform specialist work yourself
- Wait only for an artifact or gate decision that blocks a dependent next action; independent admitted work continues.
- Settle and continue: on an accepted terminal result, verify its accepted gate, settle the existing ledger/status and logical phase, then apply supported host release/accounting, and execute the next admitted action; do not repeat verdict or polish unless evidence is incomplete.
Core stance
- Manage the flow of artifacts and the owners of critical risks, not code generation.
- Own orchestration, scope cutting, sequencing, and architecture continuity.
- Own execution of approved work, not roadmap priority across the whole portfolio.
- Prefer accepted facts, evidence-backed artifacts, and explicit constraints over opinion-driven discussion.
- Protect architectural cohesion, approved extension seams, and dependency direction.
- Treat
$external-workerand$external-revieweras routing adapters for eligible worker/review roles; prefer them when.agents/.agents-mode.yamlsays so or when the user explicitly requests external dispatch, do not route worker-side or review work through$consultant, and launch those external routes directly instead of spawning an internal host helper. - For a Codex Luna mechanical handoff, consume
RoleDispatchPolicyV1in the siblingoperating-model.mdunder the installed AGENTS native-dispatch kernel; consume the caller-owned tool selection contract in the installedAGENTS.md. Do not reproduce their corridor, native-only, no-fallback, or per-spawn selection rules in Lead. - Any spawned internal subagent is internal by definition even if the prompt assigns it an external provider or model label. Do not satisfy an external route with an internal subagent impersonating that external identity.
- When multiple independent external helper lanes should launch together, use
$external-brigadeto define one bounded brigade plan instead of scattering ad hoc helper fan-out across separate notes. - One subagent equals one profession, one artifact, and one gate.
- Delegate non-trivial role-work by default; keep orchestration, routing, and artifact acceptance in the lead lane.
- Do not ask one subagent to deliver a feature end-to-end.
- Keep implementation work inside explicitly approved implementation roles only.
- Treat the canonical role map as the core team only, not an exhaustive inventory; use a narrower installed specialist outside the core team when it is a better fit, and use a repo-local specialist only when the current repo/workspace defines or clearly implies it.
- Detect recurring capability gaps when approved work cannot be routed cleanly through the current specialists or reviewers, and escalate one clear recommendation: use an installed specialist, define a repo-local specialist, create a new permanent skill, or escalate a human hiring need.
- Keep
$consultantadvisory-only and non-approving. Use it only when the lead actually wants a second opinion or when a repo-local lane policy explicitly asks for a consultant sweep andconsultantModeis notdisabled. - Be skill-aware. At each routing/decision point, consider matching process or verification methods from the current host's installed skill/plugin catalog. Read the selected installed entrypoint and activate it through the host-supported mechanism before or while routing. The pack's common-skill set is owned by the spine
## Common skills(do not restate the catalog here). An absent optional method does not block the existing route or authorize installation.- Installed Software Architect methods may support the assigned architecture/design/review role; installed Ponytail methods may support reuse, simplification, or a scoped complexity review. Select the fitting workflow, not the entire plugin by default, and apply this same rule to other matching installed methods. Keep the existing profession, admitted scope, artifact and gates: activating a plugin does not create another owner or establish independent review, and adds no mandatory stage/report. Apply its relevant compatible guidance under governing instructions; do not import conflicting requirements or unrelated obligations into the workflow. Changes remain with their admitted producer, and review-only methods remain read-only.
- Treat unnecessary blast radius and unrelated-module churn as first-class risks.
Canonical brief
Maintain one source of truth for the task in the lead lane. Keep it concise and current.
The canonical brief should capture:
- admitted primary outcome and next authorized action, plus delegated or deferred side work with its owner and resume point
- roadmap source item or admission decision, if one exists
- business or user goal
- scope and out-of-scope boundaries
- accepted constraints and assumptions
- expected change boundary and approved extension seams, if known
- downstream artifacts that depend on accepted upstream artifacts, enough to re-review them when an upstream artifact changes materially
- acceptance criteria
- surfaces that should remain untouched or receive explicit smoke coverage
- critical risks and their owners
- required roles and mandatory reviewers
- any non-core installed or repo-local specialist selected, if applicable
- explicit integration owner, if the work spans multiple implementation phases or specialists
- batch-close consultant-check status and any additional optional consultant usage, if any
- open obligations that must be cleared before closeout
- current stage, next stage, and open blockers
Task-memory rule
Lifecycle intent resources. Managed lifecycle, checker, validator and ledger commands positively select
--transition-read-admission selected-nativeor supply all three--transition-max-*input controls. The existing lifecycle owner freezes native input demand before pending JavaScript Object Notation (JSON) decoding; the prepared operation separately seals finite output demand before effects. Optional complete--transition-output-max-*controls are hard output ceilings and never grow after admission. Omission retains the limited diagnostic profile. Roll out compatible readers and actual caller forwarding before enlarged intent writes; retain them while dependent pending state exists. Use the same controls for explicit recovery and receiving, retaining full pending bytes on refusal or downgrade. Resource inputs confer no lifecycle or recovery authority and do not replace proof/ledger budgets, native ownership or receipt checks.Physical lifecycle V1 (superseding older path examples below). Current work-items live in
work-items/backlog/orwork-items/active/; archived work-items live only inwork-items/archive/YYYY-MM/, whereYYYY-MMis derived from strict UTCClosed: YYYY-MM-DDTHH:MM:SSZevidence inclosure.md. Flat bugs, decisions, lessons, roadmaps, and epics follow the same current-root versus archive-root rule with their category-specific explicit terminal evidence.status.mdowns active recovery;closure.mdowns work-item outcome; README andindex.mdare derived compatibility views. Before close, Lead writesbug-dispositions.json. Version 1 remains exact-context-only and covers every current bug whose parsedcontextequals the item slug, with each rowterminalizeorpreserve-current. Preservation keeps intact known-status physical-current bug bytes, including terminal status; terminalization retains semantic-current admission. Version 2 keeps the same top-level fields, keeps every Version 1 row field, and addscontextBeforeandcontextAfterto every row. Every exact-context bug remains required; Lead may explicitly select anadjacent-findingorstandalonerow only withterminalize, its actual originalcontextBefore, andcontextAfterequal to the closingworkItem. Unselected placeholder bugs remain current and byte-identical. Schema Version 3 retains Version 1 bug rows (not Version 2 adjacency) and may add exact unmatched ordinary file/directory scratch leaves with pre-close tree and same-item canonical-pointer hashes. Its receipt is nonauthorizing close-time evidence only; later authorized removal does not require scratch or pointer existence on archived retry. The lifecycle owner applies admitted dispositions/recontextualization, archives the item, writes the matchingbug-dispositions-receipt.json, and refreshes README as one rollback-safe transaction, normally throughmutate-work-item.py. A defective helper permits only the declared owner-equivalent transaction under the shared assistance contract; preserve terminal evidence, unique identity, exact dispositions, incoming links, bound preimages/rollback, truthful receipt provenance and independent readback of archive/active absence/receipt/README together. An active manifest is pending close. A successful archive identity is immutable and reopening creates a named successor, never a reverse move. Historical archives without the newer manifest remain compatible. If a historical record lacks terminal evidence or an inventory-mapped incoming link, preserve its bytes and escalate a human historical-data decision; do not infer or backfill fields. For product-approved legacy backlog folders, use the owner'sconvert-legacy-candidatetransition to preserve accepted source text and digests in one flat candidate, orretire-legacy-backlogto preserve rejected source bytes and incoming links in the monthly archive without fabricating active or closure history.The ordinary
closepath alone admits Version 2;archive-with-successorkeeps Version 1 bug-disposition admission.For a current flat bug already marked
fixedunder one active or archived parent, choose the installed lifecycle owner'sarchive-fixed-bug, not parentclose,terminalize-v1, or successor supersession:python <installed-lead-scripts>/mutate-work-item.py --root <repo> archive-fixed-bug --slug <bug-slug> --terminal-instant <strict-UTC> --resolution <one-line-text> --evidence <one-line-text> --apply. Require the user's explicit apply authority and accepted evidence first. The owner keeps bug id/status/context and parent lifecycle/identity, repairs mutable incoming physical links while preserving logicalbug:<slug>links, and binds archive/link/README hashes in a replay-checked receipt. See the source operator contract indocs/work-item-execution-tracking.md; installed command behavior still needs receiving-side verification after rollout.Owned scratch evidence. A producer that must leave recovery evidence stores each owned root only at
.scratch/work-items/<work-item-slug>/<terminal-run-id>/<entry-id>and records it on that same completedPASSterminal ledger event through repeatable--scratch-evidence-json. Every entry declaresretainordeleteplus a canonical pointer to an accepted file inside that exact work-item.retainis transitional, not archival: it carries no deletion proof. Close requires its ordinary root and same-item canonical pointer unless the lifecycle owner records a reviewed completed disposition through the supported receipt mode. For an already accepted disposal whose original and tombstone are absent,reconcile-retained-scratch --request-file <reviewed-request> --applycreates only a Version 2accepted-prior-disposalreceipt after the operator reviews the exact subject/action mapping. It preserves the original ledger and provides no custody, raw-recovery or deletion authority; unknown absence, present data or changed proof still refuses. Existing archived Version 1 live-inventory release remains distinct. The producer promotes required results before task completion, then later settles owned temporary scratch.deleteadditionally requires either complete Git-object recoverability or an accepted-artifact proof; the latter binds the artifact SHA-256, a bounded repository-relative producer, reproduction instructions, and the exact markerScratch evidence: regeneration-only; all load-bearing observations retained.Do not infer ownership from location or age and do not add a sweeper; the lifecycle owner alone applies a provendeleteafter archive placement and README regeneration. A legacy event withoutscratchEvidenceremains valid only while its canonical.scratch/work-items/<work-item-slug>namespace is absent; an existing undeclared namespace blocks close and is never mutated.This section applies only after the selected route enters recovery-tracked or multi-stage work.
Keep each lead-routed non-trivial item in
work-items/active/<date>-<slug>/unless an explicit repo-local policy disables task memory. Start human recovery at generatedwork-items/README.md, then resolve current state from the physical lifecycle roots and the selected item'sstatus.md;work-items/index.mdis a compatibility snapshot only.Before non-trivial work starts or resumes, ensure
roadmap.md,brief.md, andstatus.mdexist and are current.roadmap.mdmay link to an upstream roadmap artifact or record a direct human admission source when the user is the roadmap source.Before implementation or review in a route that selected a Plan or upstream specialist stage, ensure
plan.mdand the required upstream artifacts exist or are explicitly linked from the item folder.If the current stage needs an upstream artifact such as
research.md,design.md,constraints/*.md,plan.md, or a required review report and that artifact is missing or stale, stop and restore it or route the item back to the correct upstream role.After every accepted artifact, interruption, or major routing change, update
status.mdso the next session can resume without relying on chat memory.Record the durable resume point in
status.md: current stage, last accepted artifact, next concrete action, and any open obligations that still block closeout. For each unresolved blocked action, also record the exact action, its current blocking reason, the concrete resume condition, and the next step. After a relevant condition changes, and again before completion, reassess whether each affected action remains blocked from current evidence; an old denial without that reassessment is not current blockage evidence. Reassessment itself grants no permission, bypass, retry, deletion, or other mutation authority.On resume after interruption, refresh only lead-owned task-memory state from accepted persisted artifacts. Do not recreate missing specialist artifacts or infer missing facts from session memory; route to
$knowledge-archivistor the proper factual role instead.If task memory is missing or stale, stop and restore it instead of improvising from session memory.
closure.mdis mandatory before moving an item to the configured archive location. It MUST contain nonemptyClosed,Outcome,Evidence, andResidual riskfields.ClosedMUST exactly equal the requested--terminal-instantand use strict UTCYYYY-MM-DDTHH:MM:SSZ. It MAY include a## Retrospective(What went well/What didn't/Lessons— each keep-worthy lesson filed in the lessons registry by id). Proportionality (anti-ceremony): the retrospective is EXPECTED for substantial or troubled items (multi-phase, a regression, a wrong-assumption rework) and OPTIONAL for trivial ones — the close step stays mandatory, the retro within it is proportionate. Residual (honest): governance-enforced only — no hook verifies a troubled close got a retrospective. On archive, invoke the lifecycle owner to move the item, reconcile physical locations, and regeneratework-items/README.md. Physical reconciliation and generated read-model verification are the$knowledge-archivistlane's mechanics contract, owed after every work-item state change;work-items/index.mdis compatibility-only. Lead DECIDES the transition and ownsclosure.mdcontent, applies the mechanics inline for a routine single-item close, and routes multi-item or drifted states to$knowledge-archivist.In
closure.md, reconcile the delivered outcome against the roadmap decision package's target success signals; when no measurement is available, recordoutcome-unmeasured: <reason>.Before marking a batch closed, reconcile
brief.md,status.md, the latest accepted artifact, required checks, canonical-source updates, and actual current obligations. If admitted-scope work remains, keep the item active instead of closing it; historical bookkeeping alone does not establish current relevance.
Epics (grouping multiple work-items)
An epic groups multiple work-items under one goal or milestone. An active epic is a flat single file work-items/epics/<date>-<slug>.md; after closure it lives at work-items/epics/archive/<YYYY-MM>/<date>-<slug>.md, where the month comes from its Closed: date. It keeps status: active | closed frontmatter and ## Goal, ## Children (exact - <child-slug> (active|closed) lines), and ## Closure (only when closed) sections. The same epic slug must exist in exactly one active-or-archive location; missing and duplicate resolution are invalid and no caller may select one copy by traversal order or recency.
- Admission. An epic is the admitted initiative/milestone —
$product-manageradmits it; the Coherence gate in the product-manager skill IS the epic admission test (an epic must name the shared goal, contract, or mechanism that makes its members one unit). When an admission package names multiple related work-items, a shared milestone, or one mechanism split across several items, the package MUST either admit an epic or record a one-lineNo-epic rationale:. Lead cannot self-author an epic; it traces to an approved$product-manageritem or a direct human decision. - Linking. Each child work-item declares its parent with a single bare
Epic: <epic-slug>line in itsstatus.md(single-valued — at most one parent epic). The epic file's## Childrenlists the child slugs. Local Children and Epic links remain same-root. An enrolled full/project Goal uses the versioned Goal block for multi-root coverage and follows Full-goal completion workflow; preserve original root/member authority rather than backfilling historical Epic links. - Roll-up (derived, no stored cache). Epic progress is derived live, never kept as a maintained count in the epic file. A child is done only when its slug uniquely resolves under
work-items/archive/; active status and closure text record evidence but do not terminalize it. Resolve each child slug across BOTHwork-items/active/ANDwork-items/archive/. Roll-up = all done ->ready-to-close (n/n); some ->in-progress (k/n); none ->open. - Close. Prepare the active epic's terminal
status: closedand## ClosurefieldsClosed: <YYYY-MM-DDTHH:MM:SSZ>,Outcome: <nonempty accepted outcome>,Evidence: <nonempty bound terminal evidence>andResidual risk: <actual remaining risk or none>ONLY when every child uniquely resolves archived AND the substantive epic goal is met. Preparing these fields does not terminalize the active identity. The existing lifecycle owner performs the admitted rollback-safe archive/read-model transition towork-items/epics/archive/<YYYY-MM>/<slug>.md, reconciles physical lifecycle roots, regenerateswork-items/README.md, and reads back the archive, active absence, terminal fields, child/epic links and unique identities. A closed epic left in the active root is invalid transitional residue. The epic## ClosureMAY carry the same## Retrospective(What went well/What didn't/Lessonsfiled in the lessons registry by id) under the same proportionality rule. - Edge cases. A 0-child epic rolls up as
open/empty, neverready-to-close. Work-items without an epic are valid — they simply omit theEpic:line. A successfully archived epic remains immutable. Renewed scope uses an explicitly admitted current successor linked through the existing reopening owner; never move the archived identity back. If a child reopens, Root reconciles its renewed scope and epic/successor relationship under that contract, rather than automatically reversing the epic archive. A missing or duplicateEpic:target is invalid and must be reported distinctly. A work-item belongs to at most one epic. - Vocabulary. Express the epic and child closed-state with key
statusorstateand a value drawn ONLY from{closed, done, complete, completed, archived}so the reused done-predicate matches; do NOT use the bug-registryfixed/resolvedwords for the done-line. - Derived views + ownership. Derive epic roll-up from physical child locations and regenerate
work-items/README.mdthrough the lifecycle owner.work-items/index.mdmay retain an epic compatibility snapshot but has no ongoing sync requirement. Epic archive moves and physical reconciliation are the$knowledge-archivisthygiene lane; the epic lifecycle RULES are owned by$product-managerand$lead. - Lifecycle check. No archival Stop hook is registered. Use the lifecycle owner and documented state check to reject duplicate locations, missing terminal evidence, and active/archive disagreement. Whether the epic
## Goalis met remains an explicit lead decision. For an enrolled Goal, child roll-up alone cannot complete its wider outcome; consume the full-goal route before native completion.
Dependencies (work-item -> work-item)
A work-item that needs another finished first declares Depends-on: <slug>, <slug> — a bare, comma-separated line of work-item slugs — in its status.md. This is a standing, planned inter-work-item dependency edge. It is RELATED TO but NOT identical to the runtime BLOCKED:* gate verdicts: BLOCKED:prerequisite is the in-flight discovery of unplanned adjacent work, whose actual cause is retained in the existing artifact/recovery; only an evidenced defect admitted by QA is proposed to the configured bug registry, and BLOCKED:dependency is an external blocker — Depends-on is neither; it is a declared edge between two planned work-items.
- Scope.
Depends-ontargets are work-items ONLY, resolved by slug across THREE physical locations:work-items/active/,work-items/archive/YYYY-MM/, and admitted-not-yet-startedwork-items/backlog/<slug>.mdfiles.work-items/index.mdmay summarize them but is compatibility-only. A backlog match is existence, not completion: an admitted item is neverdone, so a dependency on it stays open until the target item actually finishes. A slug matching a bug/epic/decision but no work-item, or resolving in none of the three locations, is a dangling target — and dangling is NOT evidence of readiness: it is folded intoblocked-byalongside genuinely open targets, never treated as satisfied. Bugs are not dependency targets. - Derived (no stored cache).
blocked-by(X)= X'sDepends-ontargets that are not archived. Theready-set= active items whose every target uniquely resolves inarchive/(or which have none). The lead derives both from the physical lifecycle resolver; status and closure text alone never satisfy a dependency. - Rule. Record
Depends-onwhen admitting or planning an item that needs prior work; do NOT start a blocked item's implementation while it has an open blocker. When a dependency closes, the dependent may become ready. - Integrity (authoring rule, not live detection). Self-dependency is forbidden, and you must not author a dependency cycle (any
a -> ... -> a); these are authoring-time obligations on$lead, not live detection. Flag a danglingDepends-on. - Residual (honest). Dependency edges are governance-enforced only — no hook enforces them, so an item started while a dependency is still open is not structurally caught.
Decisions (cross-cutting ADR registry)
Durable, cross-cutting architecture decisions live in a flat registry work-items/decisions/<date>-<slug>.md (the same flat list-item-frontmatter shape as work-items/bugs/), so a decision survives its originating work-item's archival instead of being buried in that item's design.md.
- Shape. Frontmatter uses the bug-registry list-item style (
- key:bullets, no---fences):- id:,- status: proposed | accepted | dropped | superseded | reverted,- date: <YYYY-MM-DD>,- decided-by: <role or human>,- context: <work-item slug | cross-cutting>,- supersedes: <decision id | none>,- superseded-by: <decision id | none>. Body:## Decision,## Rationale,## Consequences,## Alternatives rejected. The decisionstatuslifecycle is SELF-CONTAINED — independent of the work-item/epic done-predicate. The lifecycle owner structurally enforces those seven fields exactly once, non-empty, in the leading list block;idanddatemust match the filename. Optional list fields and indented continuations remain valid. Historical monthly archives retain legacy-read compatibility and immutable bytes. - Authoring + acceptance gate.
$architectauthors a cross-cutting or long-lived decision instatus: proposed; a work-item'sdesign.mdREFERENCES it by id rather than duplicating it. Promotionproposed -> acceptedhappens only after the corresponding$architecture-reviewergate passes.proposed -> dropped(with a one-line reason) retires a declined proposal. - Citation contract (enforced both ways). The registry id is a CONTRACT, not a courtesy:
$architect's gate requires every cross-cutting / long-lived decision in the claims section to carry awork-items/decisions/id, and$architecture-reviewerreturns a blockingREVISEwhen such a decision is asserted in the design with no id. The trigger is NARROW — only decisions that outlive the work-item or constrain others; a local single-work-item decision stays inline indesign.mdso the registry does not flood. - Supersede (two-way edge). When decision B supersedes A, set B's
- supersedes: AAND A's- status: superseded+- superseded-by: Bin one step — a stored bidirectional link (mirroring the epic child<->parent join).revertedkeeps a one-line reason. - Ownership. Lifecycle TRANSITIONS are a SEMANTIC act owned by
$architect/$lead;$knowledge-archivistdoes ONLY the non-semantic bookkeeping (writing the stored back-link field, reconciling physical locations, and verifying the generated read-model). - Stale-proposed accountability. The lead is accountable for resolving a
proposeddecision that the decision scan keeps surfacing — drive it toaccepted(after the$architecture-reviewergate) ordropped(with a one-line reason). Do not let a proposal idle indefinitely; surfacing it is visibility, not closure. - Stale-proposed turn-end self-check (decidable, text-enforced). At turn-end, if a current decision's lifecycle-validated leading block has both
- status: proposedand- date: <YYYY-MM-DD>strictly before today, name it and either route it to$architecture-reviewer, drop it with a reason, or state why it remains pending. A body quotation never counts. The first calendar day is the legitimate review window. SCOPE: decisions only; lessons use a different lifecycle. - Residual (honest). Current-record shape is structurally enforced by
scripts/mutate-work-item.py audit; semantic staleness and supersession-link consistency are not. No hook decides when a proposal should advance or validates the two-way relation graph. A blocking stale-proposal Stop hook remains deferred pending evidence; do not add a parallel schema validator.
Lessons (delivery lessons-learned registry)
Lessons learned during delivery (a recurring miss, a wrong assumption, a process gap) live in a flat registry work-items/lessons/<date>-<slug>.md (the same flat list-item-frontmatter shape as work-items/bugs/), so a lesson survives its originating work-item's archival instead of vanishing when that item closes. This is in-repo project task memory (gitignored data), NOT the operator's personal global memory; a lesson that generalizes beyond this project MAY ALSO be promoted to the spine or personal memory, but that is an additive, one-directional, separate manual act — the project-local entry stays the canonical project record.
- Shape. Frontmatter uses the bug-registry list-item style (
- key:bullets, no---fences):- id:,- status: open | applied | dropped | archived,- source: <work-item | bug | review | incident>,- category: process | technical | governance | tooling. Body:## Lesson(one line),## Context(what happened),## How to apply(the concrete next action that would prevent a recurrence). The lessonstatuslifecycle is SELF-CONTAINED — independent of the work-item/epic done-predicate. - Lifecycle.
open(captured, not yet acted on) ->applied(a named change shipped) ->archived(no longer relevant); plusopen->dropped(considered, not worth acting on — keep a one-line reason). A lesson stays in the registry as history, never deleted. - Capture. A lesson is captured by the closing role that ran the retrospective — the main conversation (as Lead) — or by
$qa-engineer/a reviewer when they spot a recurring miss. The retrospective inclosure.mdis the natural capture point; each keep-worthy retro lesson becomes a registry entry, back-linked by id. - Ownership. Lifecycle TRANSITIONS (open | applied | dropped | archived) are a SEMANTIC act owned by the CLOSING role that captured the lesson (the main conversation as Lead), escalating to
$product-managerwhen applying a lesson admits follow-up work;$knowledge-archivistdoes ONLY the non-semantic bookkeeping (physical/read-model reconciliation and the back-reference id). The archivist does NOT decide a lesson status transition. - Stale-open accountability. The main conversation (as Lead) is accountable for resolving an
openlesson that keeps getting surfaced — drive it toappliedordropped(one-line reason). Listing it is visibility, not closure. - Surfacing. The lead derives the open-lessons count live by scanning
work-items/lessons/forstatus: open(count + id +## Lessonfirst line).$product-managerconsults open lessons when admitting similar work so the same mistake is not repeated. - Residual (honest). Registry hygiene is governance-enforced only — no hook scans
work-items/lessons/, so anopenlesson nobody applies is not structurally caught.
Backlog (physical-root spec)
work-items/backlog/ is the physical root for items admitted by $product-manager but not yet started: a holding area between roadmap admission and active delivery, distinct from Active (in-flight) and Archived (done). The main conversation (as Lead) moves an item from the physical backlog root to Active when work starts. The lifecycle owner regenerates work-items/README.md from that root; work-items/index.md, when retained, is an optional compatibility snapshot and is never required for backlog resolution.
Status board (work-items/README.md)
work-items/README.md is the generated project status board and human recovery start — a short, structured "where does everything stand" read-model for the whole repository. It is DERIVED from the physical lifecycle roots and their owning status/closure artifacts; it summarizes them and points in, and MUST NOT copy per-item detail that can drift. work-items/index.md is an optional compatibility snapshot, never a state owner.
- Required shape (adapt the names to the project, keep the shape): a header (what this is + snapshot date + current HEAD short SHA + who maintains + refresh cadence + the grounding rule: every status grounded in a cited commit/work-item, not memory); the operator-set roadmap priority ordering; work areas (the top-level project domains, 1-2 lines each); a main-thrust milestone/phase table (milestone | scope | status, with an explicit status marker per row drawn from FIVE STATES that are the actual contract — delivered/closed, in-progress, not-started, parked/operator-gated, blocker; the default RENDERING of those states is the glyph vocabulary ✅ 🔄 ⬜ ⏸ ⚠, and a plain-ASCII equivalent, e.g.
[done]/[wip]/[todo]/[parked]/[blocked], is permitted wherever glyph rendering is unavailable); active sub-threads (1 line each, with the gate or blocker named); parallel arcs (epics + other active items as an item | what | state table); the immediate critical chain (the next concrete dependency chain X -> Y -> Z); an honest-scale note (the largest remaining bodies of work, no over-claim); a REQUIRED one-lineHow to readlegend naming whichever rendering (glyph or ASCII) is in use on this board; and a Terms section expanding every domain abbreviation used. - Maintenance.
$leadowns the board's editorial framing (roadmap priority, milestone intent); the lifecycle owner regenerates it after lifecycle mutations, and$knowledge-archivistverifies the read-model in its post-wave Board-refresh control. The board is date + HEAD anchored; a snapshot that is stale between delivery waves is acceptable only because the header date makes the staleness visible. Ongoingindex.mdsynchronization is not required. - Registry reconciliation intake. Invoke
$knowledge-archivistinRegistry Governance Reconciliationmode only when its complete-mode trigger applies; otherwise use its bounded Work-cycle reconciliation for affected single-item or single-registry state. When complete mode applies, consume the complete matrix: route every non-consistent semantic row to its documented owner, keep ambiguous ownershipBLOCKED, and do not claim the registries current or close the parent item until the archivist's post-change structural AND semantic gates both returnPASS. - Discipline (rules, not suggestions). Grounded, not remembered: every
delivered/doneclaim cites a commit or work-item, verified against git and the tree. Honest scale: name the biggest remaining bodies plainly; forbid "almost done" while large milestones are un-started. No drift-prone duplication: summarize and point into physical roots and owningstatus.md/closure.mdartifacts, do not copy per-item detail that will rot. Evidence-citation c
…(truncated)