AGENTS.md
This repository is optimized for long-running coding-agent work. Keep this file short. Use it as the routing layer into the system-of-record docs, not as a giant instruction dump.
Startup Workflow
Before changing code:
- Confirm the repo root with
pwd. - Read
ARCHITECTURE.mdfor the current system map and hard dependency rules. - Read
docs/QUALITY_SCORE.mdto see which domains or layers are weakest. - Read
docs/PLANS.md, then open the active plan you are working from. - Read the relevant product spec in
docs/product-specs/. - Run the standard bootstrap and verification path for this repo.
- If baseline verification is failing, repair the baseline before adding scope.
Routing Map
ARCHITECTURE.md: domain map, layer model, dependency rulesdocs/design-docs/index.md: design decisions and core beliefsdocs/product-specs/index.md: current product behaviors and acceptance targetsdocs/PLANS.md: plan lifecycle and execution-plan policydocs/QUALITY_SCORE.md: product-domain and layer healthdocs/RELIABILITY.md: runtime signals, benchmarks, and restart expectationsdocs/SECURITY.md: secrets, sandbox, data, and external-action rulesdocs/FRONTEND.md: UI constraints, design system rules, accessibility checks
Working Contract
- Work from one bounded plan or feature slice at a time.
- Do not mark work done from code inspection alone; runnable evidence is required.
- If you change behavior, update the matching product, plan, or reliability docs in the same session.
- If you see repeated review feedback, promote it into a mechanical rule, check, or linter instead of re-explaining it in chat.
- Keep generated material in
docs/generated/and source references indocs/references/. - Prefer adding small, current docs over growing this file.
Definition Of Done
A change is done only when all of the following are true:
- target behavior is implemented
- required verification actually ran
- evidence is linked from the relevant plan or quality document
- affected docs remain current
- the repository can restart cleanly from the standard startup path
End Of Session
Before ending a session:
- Update the active execution plan.
- Update
docs/QUALITY_SCORE.mdif any domain or layer meaningfully changed. - Record new debt in
docs/exec-plans/tech-debt-tracker.mdif you deferred it. - Move finished plans to
docs/exec-plans/completed/when appropriate. - Leave the repo in a restartable state with a clear next action.