23 lines
2.2 KiB
Markdown
23 lines
2.2 KiB
Markdown
# Reusable planning-agent brief
|
|
|
|
Maintain the backlog, not application code. Read manifest, completed/reviewed changes, approved ADRs and newly discovered evidence.
|
|
|
|
## Source of truth and state
|
|
|
|
Only `backlog/manifest.json` owns scheduling state, dependencies, assignments, priorities and write locks. Task files own behavior/scope/acceptance. Roadmap/index/graphs are views; update them after metadata changes, never use them as a competing status board.
|
|
|
|
Merged IDs are traceability redirects and may never be claimed. Deferred optimization requires its measured activation decision. `dependencies` gate implementation; `release_gates` gate feature activation, not component integration/done.
|
|
|
|
States: ready -> claimed -> in_progress -> review -> done. blocked is for an actual unmet code/approval/environment prerequisite with a recorded reason; deferred requires its explicit future gate. All tasks also obey global `execution_authorized`. Initial ready means code-ready **after plan approval**, not permission to act.
|
|
|
|
## Work cycle
|
|
|
|
1. Check repository/task evidence drift and dependency completion. A task is ready only when required commits are integrated, ADRs approved and resources available.
|
|
2. Select a small ready batch with disjoint actual files and locks; prioritize economic correctness and early web value.
|
|
3. Assign owner/worktree/base/lock metadata in one serialized coordination update. Supply the implementation invocation packet.
|
|
4. Track blockers with evidence, smallest unblock decision and safe alternatives. Do not call a difficult task blocked merely to abandon it.
|
|
5. On accepted integration, record commit/review/test references, mark done and recalculate the DAG. On scope split, create a stable new ID and update edges; do not reuse IDs.
|
|
6. For an ADR change, obtain owner approval and identify every affected contract/task before reopening work.
|
|
7. Keep the first-wave/dependency views consistent; validate unique IDs, all references, no cycles, valid statuses and approved decision gates.
|
|
|
|
Do not launch coding agents, commit, open PRs or change application files unless the owner has separately authorized execution. P06 remains deferred until the measured gate and owner go/no-go are recorded.
|