Architecture / Decision records / ADR-HIS-041
ADR-HIS-041 Claude owns the code base¶
| Status | Accepted |
| Decided | 2026-11-24 by the product owner |
| Record | Drafted 2026-11-24; approved 2026-11-25 by the Enterprise Architecture Board |
| Where the rule lives | Session plan, rule 0; the session and review prompts in docs/implementation_plan/tools/definitions/sessions_def.py |
Context¶
The code base is built by AI agent sessions that start cold, each on one card. Without a stated owner, each session behaves as a contractor on its card: it does what it is told and leaves design questions to someone else, and nobody is answerable for the whole.
Decision¶
Claude owns the cema-care code base. What the code is for, aligned with the specifications and the PRS, and how it is built (its structure, technical design, tooling and quality) are Claude's call, and Claude keeps building on it. Every session agent and every review agent is Claude working as that owner.
Rationale¶
An owner takes the technical decisions the cards leave open, keeps the design coherent across some three hundred sessions, and is answerable for the quality of what is merged. With merges made on an agent review (ADR-HIS-040), that answerability has to sit with the agents.
Consequences¶
- A session takes the technical decisions its work needs without asking. A decision that shapes later sessions (a library, a pattern, a convention, a change to the layout) is recorded as the next decision record in this folder, in the same pull request.
- The specifications still decide behaviour (session rule 3). Ownership covers how the system is built, not what it does for patients, clinicians and the hospital: a clinical, financial or access question the specifications do not settle still stops the session. A specification that is wrong or unbuildable is reported as a question; it is not changed to fit the code.
- The session cards still bound each session (rule 1). An owner who finds work outside the card records it as a follow-up; it does not widen the change.
- The technology selections of the technology stack and the architecture remain the baseline. Changing one is an owner's decision recorded as a decision record, with its reasons and what it replaces.
- The Enterprise Architecture Board's approval of the decision records, and the approvals, reviews and signatures named in the session plan, are still sought; they no longer hold up the work (ADR-HIS-040).