How to use this book
The intent specs own product intent: principles, product specs and owner decisions. Linear tracks scope, work and acceptance. This book documents Rust owners, setup and proof. Code establishes what is implemented; it does not turn an old implementation into an approved product decision. The project owner’s latest explicit decisions take precedence. When an outcome and implementation disagree, Linear tracks the gap, and the responsible owner changes as the work lands.
| Question | Canonical owner |
|---|---|
| What are we building and why? | Intent specs: principles, then the physician, Duet, connected-care and harness specs; Linear tracks the work against them |
| How should Duet look and read? | Design language |
| Where is it implemented? | Crate map, then the owning source file and tests |
| How do I work here? | AGENTS.md and README setup |
| What has been proved? | The scoped test/run evidence linked by each outcome; verification owns formal-design workflow; release and GCP own operational procedures |
Find the implementation
| Area | Navigation |
|---|---|
| Accounts, evidence, the doctor workspace and saved care | Duet backend, security boundaries, privacy recovery |
| Patient screens and design references | Duet UI |
| Invitations, consent and practice connections | Accounts and practice connection |
| Physician client, sign-in and execution | Physician site |
| The physician clinical skill catalog | skills/, read by agent-skills for harness; skills in physician chat |
| Public marketing site | Public site |
| Coda’s Chrome extension and its EHR reads, Hint first | Chrome extension |
| Gym cases, promotion and runs | coda-gym AGENTS.md |
| Shared execution and product boundaries | Harness spec, crate map |
| Feature models and their checks | Verification |
| Captured Hint and FHIR adapter proof | Recorded adapters |
| Synthetic patients for running Coda | Synthetic patients |
| Builds, deployment and diagnostics | Release, GCP, observability |
| Dev container setup, ports and storage | Dev container |
| Dev shell on an Apple silicon Mac without Nix | Apple container |
Keep ticket references, lists, status and acceptance tracking in Linear. This book describes maintained source owners, implemented behavior and operating procedures; it does not mirror the backlog. Product and runtime changes follow the agreed design and verification workflow.
Read the physician product as one workflow
Start with what the physician should experience, then follow that promise through the app and its runtime. These documents answer different questions:
| Read in order | What it establishes |
|---|---|
| Physician spec and its decisions | The agreed behavior: Today, the patient page, conversations, readings, work and communication, including capabilities not built yet. |
| Harness spec and physician site | The guarantees left to execution, then the Rust owners and execution paths that implement parts of them. Recovery and scaling support the experience; they do not establish coverage of every product workflow. |
| Verification and the physician verification recipe | The boundary between graph/model checks, implementation checks and running-app readback. The current physician recipe exercises chat across a local scale stack with a fixed provider. |
| GCP staging and release | Deployment. A deployed revision is not itself an accepted physician journey. |
For the next implementation slice, use Linear’s current outcome and the physician spec together: choose a complete physician journey, identify missing server data and runtime guarantees, then verify the result through the app. Do not infer the next product priority from the latest infrastructure merge.
Connected-care behavior belongs to the connected-care spec. It does not merge the physician’s and Duet’s accounts, clinical state or runtime owners.
Retiring a surface
Fixtures, generated API contracts, published legal text and active verification work are not obsolete merely because product scope changed. Remove a runtime surface through its outcome with consumer and authority checks, not through a documentation cleanup.