You are an AI coding agent working in this repository.
Read and follow oak/constitution.md. It is the authoritative specification for architecture, conventions, golden paths, and quality gates.
- If anything conflicts with
oak/constitution.md,oak/constitution.mdwins. - If you are unsure how to apply a rule, stop and ask rather than guessing.
- The canonical Anchor Index lives in
oak/constitution.md.
- Read
oak/constitution.md(especially the golden paths + hard rules + DoD). - Search first: find the closest existing implementation and mirror it (use the Top Anchors below).
- Implement the change following the constitution.
- Run the quality gate:
make check(must pass). - Update docs to prevent drift:
- Review/update
READMEif behavior/workflows changed. - Update the relevant feature docs (or create them) when touching feature behavior.
- Review/update
- If a better pattern is needed:
- Record the decision (RFC for formal, doc for informal) and update rules/docs so the new pattern becomes standard.
- No magic strings or numbers anywhere (including tests).
- Prefer proper engineering over shortcuts; fix root causes, not symptoms.
- Commands should be idempotent by default.
- Templates shipped by OAK are managed by OAK and overwritten on upgrade (no user overrides).
- Narrow lanes for deviation; when unclear, ask.
MUST NOT run uv tool install or uv pip install without the -e flag. Always use make setup or make sync instead of ad-hoc install commands. See §7.3 of oak/constitution.md for the full rule, rationale, and verification command.
These are the first places to look. The full Anchor Index is in oak/constitution.md.
src/open_agent_kit/features/strategic_planning/manifest.yamlsrc/open_agent_kit/features/strategic_planning/rfc.pysrc/open_agent_kit/features/strategic_planning/commands/src/open_agent_kit/features/strategic_planning/templates/
src/open_agent_kit/agents/gemini/manifest.yamlsrc/open_agent_kit/services/agent_service.pysrc/open_agent_kit/constants.py
src/open_agent_kit/cli.pysrc/open_agent_kit/commands/skill_cmd.py
src/open_agent_kit/services/template_service.pysrc/open_agent_kit/features/rules_management/templates/base_constitution.md
src/open_agent_kit/commands/upgrade_cmd.pysrc/open_agent_kit/services/upgrade_service.pysrc/open_agent_kit/services/migrations.py
Makefile(must pass:make check)pyproject.tomloak/constitution.md(DoD + canonical Anchor Index)
| Resource | Path |
|---|---|
| SQLite (source of truth) | .oak/ci/activities.db |
| ChromaDB (vector search) | .oak/ci/chroma/ |
| Daemon logs | .oak/ci/daemon.log |
| User backups (git-tracked) | oak/history/ |
| Agent configs (git-tracked) | oak/agents/ |
| Shared port (git-tracked) | oak/daemon.port |
| Analysis reports (git-tracked) | oak/insights/ |
| Agent-generated docs (git-tracked) | oak/docs/ |