multilingual-absa / .opencode /gsd-core /references /planner-source-audit.md
Aryan Mishra
feat: initial commit - Multilingual ABSA project setup with 6 phases, 36 requirements
a6b96c2
|
Raw
History Blame Contribute Delete
3.33 kB
# 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.