ADR 0001: Documentation and Instruction Consolidation¶
Status: Superseded — AGENTS.md replaced CODING_AGENT_CONTEXT.md as the
canonical agent entry point, and the themed files in docs/agent-instructions/
replaced the single-document model. The docs/adr/ and docs/ consolidation
below remains live. docs/DASHBOARD.md was never created — dashboard guidance
is in ORPHEUS_UI.md.
Date: 2025-12-24
Deciders: Development Team
Context¶
The Orpheus project had documentation and agent instructions scattered across multiple locations:
- Root-level architectural documents (
ARCHITECTURE.md,AGENTS.md) - Agent-specific instructions in
.github/instructions/ - Copilot instructions in
.github/copilot-instructions.md - Various documentation files in
docs/
This fragmentation led to:
- Duplication: Same information repeated in multiple files
- Inconsistency: Updates made to one file but not others
- Discovery issues: New contributors and AI agents struggled to find the right information
- Maintenance burden: Changes required updating multiple files
AI coding agents (Claude, Copilot, Cursor, etc.) needed a clear, single entry point for understanding project conventions, architecture, and development workflows.
Decision¶
We will consolidate all documentation and agent instructions into a clear, maintainable structure:
1. Single Source of Truth for Agents¶
Create CODING_AGENT_CONTEXT.md at the repository root as the primary reference for all AI coding agents. This file will contain:
- Project overview and tech stack
- References to architectural documentation
- Code standards and conventions
- Development workflow (testing, linting, pre-commit requirements)
- File organization and naming conventions
- Links to component-specific instructions
2. Centralized Documentation in docs/¶
Move all architectural and design documentation to docs/:
ARCHITECTURE.md→docs/ARCHITECTURE.mdAGENTS.md→docs/AGENTS.md- Consolidate testing guidance →
docs/TESTING.md - Consolidate dashboard guidance →
docs/DASHBOARD.md
3. Architectural Decision Records¶
Use docs/adr/ for all architectural decisions following the ADR pattern:
- One ADR per decision
- Immutable records (new ADRs supersede old ones, don't edit)
- Standard format: Context, Decision, Consequences
4. Component-Specific Instructions¶
Move component-specific implementation details from .github/instructions/ to docs/copilot-workspace-instructions/:
- Each file references
CODING_AGENT_CONTEXT.mdfor core guidelines - Contains only implementation details specific to that component
- Removes duplication with main documentation
5. Agent-Specific Files as Thin Wrappers¶
Agent-specific files (CLAUDE.md, .github/copilot-instructions.md) become thin wrappers that:
- Reference
CODING_AGENT_CONTEXT.mdas the primary source - Contain only agent-specific tool usage or workflow notes
- Do NOT duplicate information from CODING_AGENT_CONTEXT.md
Rationale¶
Single Source of Truth¶
Having one authoritative document (CODING_AGENT_CONTEXT.md) reduces confusion and ensures consistency. AI agents always know where to start.
Human + Agent Readable¶
All documentation is written in clear markdown, accessible to both human developers and AI coding assistants.
Separation of Concerns¶
- Core guidelines:
CODING_AGENT_CONTEXT.md - Architecture/design:
docs/ - Architectural decisions:
docs/adr/ - Component implementation:
docs/copilot-workspace-instructions/ - Agent-specific workflows:
CLAUDE.md,.github/copilot-instructions.md
Maintainability¶
When conventions change, update one place (CODING_AGENT_CONTEXT.md or the relevant doc in docs/), not five different files.
Discoverability¶
New contributors and AI agents can quickly find what they need by following a clear hierarchy:
- Start with
CODING_AGENT_CONTEXT.md - Consult
docs/for architecture/design details - Check
docs/adr/for architectural decisions - Review
docs/copilot-workspace-instructions/for component-specific guidance
Consequences¶
Negative¶
- Migration effort to move and update existing files
- References must be updated when files move
- Discipline required to maintain the structure (don't duplicate information)
Neutral¶
- All agent-specific files must reference
CODING_AGENT_CONTEXT.md - Component-specific instructions must link to core docs, not duplicate them
- New architectural decisions require an ADR in
docs/adr/
Implementation Notes¶
- Create
CODING_AGENT_CONTEXT.mdwith comprehensive agent guidelines - Move architectural docs to
docs/directory - Create consolidated
docs/TESTING.mdanddocs/DASHBOARD.md - Create/update agent-specific files to reference SSOT
- Move and update component instructions to
docs/copilot-workspace-instructions/ - Create
docs/README.mdas a documentation index
Related¶
CODING_AGENT_CONTEXT.md- The single source of truth for agentsdocs/README.md- Documentation indexdocs/copilot-workspace-instructions/- Component-specific implementation details