plan-dossier
Installation
SKILL.md
plan-dossier — Living Plan Package & Lifecycle Custodian
Operating Invariants
- Scratch Exclusivity & DB SSOT: Mutate plan artifacts inside
.agents/scratch/plans/<slug>/; never modify production source code or permanentdocs/directly (delegate durable promotion to/ssot). In repositories governed byzenfd(ZenForge Daemon), persist the living plan withplans(action=create, project_slug=...)and either embed the whole task DAG astasks[]in that call or add tasks withtasks(action=create, plan_slug=...). - Authorization Gate on Init: Stage the planned dossier structure and halt for affirmative human authorization before creating files on disk; honor prior explicit approval.
- Evidence-Backed Verification: Transition phase status to
VERIFIEDstrictly when supported by concrete proof (automated test command exit code 0 and git commit SHA); never accept unverified verbal claims of completion. - Drift Breaker: Transition phase status to
DRIFTEDand halt implementation immediately upon detecting architectural divergence between code reality and staged contracts; require caller re-planning before amending the plan. - Prompt-Embedded Handshake: When authoring task specifications and prompts for ephemeral subagent workers, embed the explicit handshake directly in the task prompt (
claim_task→ execute →transition_taskorreview(action=request)). Reservereview(action=resolve)for the main orchestrator agent, which relays the human decision; workers request review and exit. - Active Plan Preservation: Preserve plan directories containing active phases (
PLANNED,CLAIMED,IN_PROGRESS,DRIFTED); mark initiativeCOMPLETEDonly when all phases areVERIFIED.
Domain Rubric
1. Operations
init <slug>: Bootstrap.agents/scratch/plans/<slug>/withREADME.md(Master State Dashboard) and embed supplied artifacts (01-contracts.md,02-seam-strategy.md,03-changeset.md).claim <slug> <phase-id>: Check in worker, assign branch or worktree, and transition phase toCLAIMED.verify <slug> <phase-id>: Record verification command output and commit SHA, transitioning phase toVERIFIED.drift <slug> <phase-id>: Log divergence evidence, halt downstream mutations, and transition phase toDRIFTED.amend <slug>: Update contracts, seams, or phase topologies to revisionv1.Nafter caller re-planning.