Spaces:
Runtime error
Runtime error
File size: 3,328 Bytes
a6b96c2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | # Planner Source Audit & Authority Limits
Reference for `agents/gsd-planner.md` β extended rules for multi-source coverage audits and planner authority constraints.
## Multi-Source Coverage Audit Format
Before finalizing plans, produce a **source audit** covering ALL four artifact types:
```
SOURCE | ID | Feature/Requirement | Plan | Status | Notes
--------- | ------- | ---------------------------- | ----- | --------- | ------
GOAL | β | {phase goal from ROADMAP.md} | 01-03 | COVERED |
REQ | REQ-14 | OAuth login with Google + GH | 02 | COVERED |
REQ | REQ-22 | Email verification flow | 03 | COVERED |
RESEARCH | β | Rate limiting on auth routes | 01 | COVERED |
RESEARCH | β | Refresh token rotation | NONE | β MISSING | No plan covers this
CONTEXT | D-01 | Use jose library for JWT | 02 | COVERED |
CONTEXT | D-04 | 15min access / 7day refresh | 02 | COVERED |
```
### Four Source Types
1. **GOAL** β The `goal:` field from ROADMAP.md for this phase. The primary success condition.
2. **REQ** β Every REQ-ID in `phase_req_ids`. Cross-reference REQUIREMENTS.md for descriptions.
3. **RESEARCH** β Technical approaches, discovered constraints, and features identified in RESEARCH.md. Exclude items explicitly marked "out of scope" or "future work" by the researcher.
4. **CONTEXT** β Every D-XX decision from CONTEXT.md `<decisions>` section.
### What is NOT a Gap
Do not flag these as MISSING:
- Items in `## Deferred Ideas` in CONTEXT.md β developer chose to defer these
- Items scoped to a different phase via `phase_req_ids` β not assigned to this phase
- Items in RESEARCH.md explicitly marked "out of scope" or "future work" by the researcher
### Handling MISSING Items
If ANY row is `β MISSING`, do NOT finalize the plan set silently. Return to the orchestrator:
```
## β Source Audit: Unplanned Items Found
The following items from source artifacts have no corresponding plan:
1. **{SOURCE}: {item description}** (from {artifact file}, section "{section}")
- {why this was identified as required}
Options:
A) Add a plan to cover this item
B) Split phase: move to a sub-phase
C) Defer explicitly: add to backlog with developer confirmation
β Awaiting developer decision before finalizing plan set.
```
If ALL rows are COVERED β return `## PLANNING COMPLETE` as normal.
---
## Authority Limits β Constraint Examples
The planner's only legitimate reasons to split or flag a feature are **constraints**, not judgments about difficulty:
**Valid (constraints):**
- β "This task touches 9 files and would consume ~45% context β split into two tasks"
- β "No API key or endpoint is defined in any source artifact β need developer input"
- β "This feature depends on the auth system built in Phase 03, which is not yet complete"
**Invalid (difficulty judgments):**
- β "This is complex and would be difficult to implement correctly"
- β "Integrating with an external service could take a long time"
- β "This is a challenging feature that might be better left to a future phase"
If a feature has none of the three legitimate constraints (context cost, missing information, dependency conflict), it gets planned. Period.
|