Required Resources
Always load before editing:
- •
references/input_resolution.md - •
references/drift_mapping.md - •
references/decision_log.md - •
references/definition_of_done.md - •
references/validation.md - •
assets/templates/decision_entry_template.md - •Optional calibration example:
assets/examples/decision_entry_example.md
Workflow
- •Resolve scope from provided feature slug(s), changed files, or branch diff using
references/input_resolution.md. - •Identify affected feature packs and collect evidence of drift from changed code, migrations, APIs, tests, and behavior changes.
- •Update affected docs:
- •
prd.mdfor acceptance/scope changes. - •
fdd.mdfor interface, data model, migration, and operational changes. - •
plan.mdfor phase mapping/status changes caused by implementation reality.
- •
- •For every material doc change, append a short decision entry using
references/decision_log.md. - •Run
.agents/scripts/spec_validate.sh --slug <feature_slug> --check allfor each affected feature slug. - •Hard gate: if validation fails, fix docs and re-run until green for every affected slug.
- •Report the synchronized docs, key decisions, and validation results.
Validation Gate
- •Mandatory command per slug:
- •
.agents/scripts/spec_validate.sh --slug <feature_slug> --check all
- •
- •This is a hard gate. Do not mark completion while any slug is failing.
- •Execute commands directly when environment access allows; do not merely suggest them.
Output Contract
- •Update PRD/FDD/plan files in-place for each affected feature pack.
- •Include at least one decision entry for each materially changed spec file.
- •Final response must include:
- •Affected slugs.
- •Files updated.
- •Decision summary.
- •Validation pass/fail per slug.