# Balm contract

Target edition: 17 October 2026. Balm is the practice management system and EHR a US outpatient physical, occupational or speech therapy practice buys instead of WebPT, SimplePractice, Jane or Cliniko, with the rehab-specific billing and AI depth buyers now look for in SPRY, Prompt Health and splose. It runs the whole clinic: scheduling, intake and the patient portal, discipline-specific documentation, reminders and two-way messaging, and cash-pay and insurance billing through to money in the bank. Prices, fees and balances are in USD; dates, phone numbers, time zones, tax IDs and payer rules follow US practice.

This is a target contract, not a release verdict. It describes the product Balm is being built towards, and the [Status](#status) section marks how close the current code is. Every named clause states the behavior a buyer gets and the acceptance evidence that proves it through a public door. Difficulty (clearinghouse enrollment, payer rules, HIPAA business associate agreements, native apps, card payments) is engineering work recorded as a clause, never a reason to narrow the product. The released guarantees, which the earlier contract carried under `BALM-001`, its paragraphs, `BALM-002`, `BALM-003` and `BALM-004`, are kept below with their behavior unchanged; this documentation round changes no homepage, interface or runtime behavior.

## Product target

| | |
| --- | --- |
| Category | Practice management and EHR for therapy / allied-health clinics |
| Incumbents a buyer switches from | WebPT, SimplePractice, Jane, Cliniko, SPRY, Prompt Health, splose |
| First buyer | The owner of a US outpatient physical, occupational or speech therapy practice with 1 to 10 clinicians, billing Medicare, commercial payers and cash-pay patients in USD |

WebPT, SimplePractice, Jane and Cliniko are the incumbents; SPRY, Prompt Health and splose are the up-and-comers Balm must also beat. A practice switches when every daily job has a Balm equivalent, its records arrive with balances that reconcile, and its payers, card processor, books and phones plug in:

- **Schedule.** Practitioner, room and equipment calendars, recurring visits that follow the plan of care, waitlists that fill cancellations by text, patient self-booking and rescheduling, and attendance history (`SCHED-*`).
- **Welcome the patient.** Intake packets, signed consents and insurance cards collected before the first visit, and a portal for appointments, home exercises, messages, statements and payments (`INTAKE-*`, `PORTAL-*`).
- **Document.** PT, OT and SLP evaluations, daily notes, progress reports, re-evaluations and discharge summaries; plans of care certified by the referring physician by link or returned fax, with unsigned and late plans tracked; objective measures and outcome scores; sign, lock, amend and co-sign; an ambient scribe that drafts for the clinician to sign (`BALM-004`, `CHART-*`).
- **Coordinate care.** Referrals and referring providers, faxes in and out, and direct-access limits (`REF-*`).
- **Stay in touch.** Delivered email and two-way SMS reminders, confirmations, follow-ups and recalls, recorded on the patient's file (`COMM-*`, `REMIND-001`), and video visits from the same calendar (`TELE-001`).
- **Get paid by patients.** Cards on file through Stripe, copays at check-in, text-to-pay links, statements, superbills, Good Faith Estimates, packages and payment plans (`BILL-001`, `BALM-003`, `PAY-*`).
- **Get paid by payers.** Payers and fee schedules, eligibility, authorizations, clean claims through Claim.MD or Availity, ERA posting, denials and A/R follow-up, and Medicare's 8-minute rule, KX threshold, ABN and assistant modifiers (`INS-*`).
- **Run the business.** Daily close, operational, financial and outcome reports, and QuickBooks Online or Xero handoff (`REPORT-*`, `ACCT-001`).
- **Stay safe.** Live roles, two-step sign-in, an append-only access audit, HIPAA deployment readiness, retention, disclosure accounting, backups, erasure and complete export (`BALM-001`, `SEC-*`, `AUDIT-001`, `HIPAA-*`, `ERASE-001`, `PORT-001`).
- **Move in.** Real migrations from rehabilitation EHRs, clinic management systems, therapy practice systems and allied-health practice systems with reconciled patients, appointments, documents, balances and open authorizations (`MOVE-*`).
- **Anywhere.** A tablet-first clinician web app and native iOS and Android apps for clinicians and patients (`MOBILE-*`), a public API, webhooks and FHIR export (`INTEG-*`).
- **Push further.** A case agent that follows each referral from authorization to paid claim, plus agents for scheduling continuity, documentation defensibility, denials, month-end reconciliation, outcomes, the front-desk inbox and migration, each under human control (`AGENT-*`).

### Neighboring products stay separate

Balm is one product. Where the market sells a neighboring product separately, Balm connects to it and does not rebuild it; when the neighbor is a Run Edit Run sibling, Balm links to that sibling first and to the US incumbent second.

| Job | Owned by | How Balm meets it |
| --- | --- | --- |
| Bookkeeping, bank feeds and tax filing | [Pantry](https://github.com/just-every/run-pantry) (or QuickBooks Online, Xero) | Charges, payments, refunds, fees and deposits handed off to the books (`ACCT-001`) |
| Appointment booking for non-clinical businesses | [Dial](https://github.com/just-every/run-dial) | Balm keeps its own clinical scheduler, which shares Dial's availability engine code but not its product (`SCHED-*`) |
| Staff HR records, onboarding and benefits | [Willow](https://github.com/just-every/run-willow) (or BambooHR, Gusto) | Balm keeps only the clinician license, NPI, taxonomy and payer enrollment facts billing needs (`INS-001`) |
| Staff shift scheduling and time clocks | [Lanyard](https://github.com/just-every/run-lanyard) (or Homebase) | Practitioner treatment hours stay in Balm (`SETUP-001`) |
| Payroll and 1099/W-2 filing | [Envelope](https://github.com/just-every/run-envelope) (or Gusto, ADP RUN) | Visit and productivity exports for per-visit pay (`REPORT-001`) |
| Marketing email campaigns | [Mango](https://github.com/just-every/run-mango) (or Mailchimp) | Opt-in, non-clinical contact sync only (`INTEG-002`) |
| Contracts and general e-signature | [Inkwell](https://github.com/just-every/run-inkwell) (or DocuSign) | Clinical signatures, consents and plan-of-care certification stay in Balm (`INTAKE-003`, `CHART-003`, `CHART-004`) |
| General forms and surveys | [Pencil](https://github.com/just-every/run-pencil) (or Typeform) | Intake forms and outcome questionnaires stay in Balm (`INTAKE-002`) |
| Cash-pay studio memberships and classes | [Strap](https://github.com/just-every/run-strap) (or Mindbody) | Clinical packages and wellness plans stay in Balm (`PAY-008`) |
| Clinic website | [Pane](https://github.com/just-every/run-pane) (or Squarespace) | An embeddable booking page (`SCHED-006`) |
| Staff sign-in through a company identity provider | [Auth](https://github.com/just-every/run-auth) (or Okta, Google Workspace) | Optional OIDC/SAML sign-in for staff (`SEC-001`) |
| Security compliance programs (SOC 2) | [Evidence](https://github.com/just-every/run-evidence) (or Vanta) | Balm exposes its access audit and BAA register for Evidence to read (`HIPAA-001`, `AUDIT-001`) |
| Business phone system and call recording | No seed (RingCentral, Dialpad) | Balm sends and receives SMS and logs calls a person records; it is not a phone system (`COMM-002`, `COMM-003`) |

### How to read this contract

- **Published clauses** are the behavior the released contract already promised: `BALM-001`, `BALM-002`, `BALM-003` and `BALM-004` keep their IDs, and the guarantees that contract stated in its paragraphs and in `ACCEPTANCE.md` are named here (`SETUP-001`, `SCHED-001`, `INTAKE-001`, `CHART-001`, `BILL-001`, `PAY-001`, `REMIND-001`, `AUDIT-001`, `ERASE-001`, `PORT-001`, `MOVE-001`). Public-door integration coverage is in `tests/balm.test.mjs`, `tests/schedule.test.mjs`, `tests/payments.test.mjs` (Stripe and Twilio faked only at their HTTP edge) and `tests/charting.test.mjs` (the scribe's model faked only at its HTTP edge); CLI archive coverage is in `tests/archive.test.mjs`. Stripe is the only payment provider today, and the scribe calls only the AI provider whose key the owner entered.
- **Target clauses** are binding product requirements not yet promised by a release. A build round that starts one registers it in `seed.json → capabilities` in the same change. IDs never change.
- **Push-further clauses** (`AGENT-*`) are agent work beyond today's up-and-comers. Every agent acts through `BALM-001`'s prepare-and-approve fence: it reads only what its key's scope allows, prepares, and a named person approves; clinicians confirm every clinical assertion and people decide every financial exception.
- **Status** is `done`, `partial` or `missing`, judged in the [Status](#status) section from the code and tests at the commit it names. `done` means the behavior ships and a cited test exercises it; `partial` means some of it ships; `missing` means there is no implementation. Status is a build-planning judgment, not acceptance; [ACCEPTANCE.md](ACCEPTANCE.md) lists each clause's acceptance evidence.

## Scope coverage

The owner-approved scope (16 October 2026) names what Balm was missing against the category. Each item is covered by these clauses:

| Scope item | Clauses |
| --- | --- |
| US insurance billing: eligibility, authorization and visit tracking, CPT/ICD-10 coding, 837 claims through a clearinghouse (Claim.MD, Availity), ERA/remittance and denial management, Medicare 8-minute rule and therapy-cap/KX tracking | `INS-001` to `INS-013`, `CODE-001`, `CHART-006`, `CHART-007` |
| Card-on-file and payment links via Stripe, superbills and patient statements | `BALM-003`, `PAY-002` to `PAY-007`, `PAY-009` |
| Recurring appointments, waitlists, patient self-booking and delivered two-way SMS/email reminders | `BALM-002`, `SCHED-003`, `SCHED-005`, `SCHED-006`, `SCHED-010`, `COMM-001`, `COMM-002`, `COMM-004` |
| Patient portal with intake, consent, home-exercise programs and secure messaging | `PORTAL-001` to `PORTAL-007`, `INTAKE-002` to `INTAKE-004` |
| PT/OT/SLP documentation templates (initial eval, daily notes, progress and discharge, plan of care with physician signature) and AI scribe | `BALM-004`, `CHART-002` to `CHART-013`, `REF-002`, `REPORT-004` |
| HIPAA readiness (BAA-backed hosting, audit, retention) plus telehealth and real clinic management, rehabilitation EHR and allied-health practice system migration | `HIPAA-001` to `HIPAA-005`, `AUDIT-001`, `TELE-001`, `MOVE-002` to `MOVE-007` |
| Push further: a case agent that follows each referral through authorization, documented visits and paid claims | `AGENT-001`, with `AGENT-002` to `AGENT-008` |
| accepting a series' replacement visits leaves bookings and remaining authorization in agreement (no authorized visits remain beyond the reviewed count) | `AGENT-009` (split from `AGENT-002`, ct, 29 October 2026) |
| plan-derived replacement proposals for concurrent PT and OT treatment stay feasible (continuity counts both disciplines) | `AGENT-010` (split from `AGENT-002`, ct, 29 October 2026) |

## Existing guarantees

- **BALM-001 — Live roles and server-side authority.** Every `/app` page and `/api/balm` handler resolves the live actor from a native session (or, at `/api/balm/agent/*`, an owner-bound agent key) and enforces its role in the handler; every write re-checks that authority inside the same D1 batch. Roles: the owner; practitioners, who see only clients they are booked with; reception, who see every file but never intake answers or treatment notes; and agent keys, which only prepare work for a person. Balances, copays and card details are visible to the owner and reception by default. The owner can grant balance visibility to a named active practitioner and revoke it; each grant and revocation is audited and takes effect on the next request. The grant adds only balances for patients already within that practitioner’s scope, not copay or card details or payment powers. A person approves every preparation, and the approval keeps the SHA-256 of the exact approved content. Deactivating staff or revoking a key takes effect on the next request. **Acceptance evidence:** Call every page and handler signed out, as each role, with a deactivated staff member and with a revoked or foreign agent key; each is refused or scoped by role, and an agent-prepared item is approved only by a signed-in person whose approval records the digest.

- **BALM-002 — Calendar, recurring series and waitlist offers.** The schedule is a calendar by day or week and by practitioner or room in the clinic time zone. Staff book, move (the edit form or a drag) and cancel visits; every booking, move, recurring series and waitlist acceptance re-checks in the same D1 batch that no other live visit of that practitioner or that room overlaps, and staff placements stay inside the practitioner's hours. A recurring series is checked date by date before anything is saved: a conflicting date is shown and saves only once a person moved or skipped it, the whole series books in one batch, and skipped dates are recorded. One visit or the rest of a series can be moved or canceled; moving the rest changes none if any would conflict. The waitlist holds clients per practitioner (or any) and service in a date window. A canceled visit at least two hours ahead is offered by email to every fitting entry through a private `/offer/<token>` link (only its hash is stored); the first acceptance books the visit and closes the offer in one batch, later ones are refused, and the others are emailed that it is taken. Offers close one hour before the visit. Text-message waitlist offers remain unimplemented; the SMS adapter currently supports reminders and pay links (`COMM-002`). The practitioner's concurrent-patient capacity (`SCHED-010`) defaults to one, which is this overlap rule. **Acceptance evidence:** Book a recurring series whose date overlaps an existing visit, see that date shown before saving, move or skip it and book the series in one step; move one visit, then move and cancel the rest of the series; cancel a visit at least two hours ahead, see it offered by email to every fitting waitlist entry, accept as one, see the visit booked, a second acceptance refused and the others emailed that it is taken.

- **BALM-003 — Patient payments through the clinic's own Stripe account.** Patients pay through the clinic's own Stripe account; card numbers never reach Balm. The owner connects a Stripe secret key in Clinic (checked with Stripe, sealed with the session secret, never shown again, never exported); on a public https install Balm creates the webhook. A patient saves one card on file from their private `/pay/<token>` link (30 days, only its hash stored, never exported) after accepting the clinic's authorization, whose exact text and time are kept with the card (Stripe Checkout setup mode, a SetupIntent for off-session use). The desk checks a patient in on the day of the visit and, in the same action, charges the patient's copay to the card off session, once per visit; a refusal is recorded and the visit stays checked in. The desk charges an approved invoice's open amount to the card, or sends the patient a pay link by email (by text through the SMS adapter once the clinic's US A2P registration and Twilio settings exist); the patient pays any amount up to their balance in Stripe Checkout. Every outcome is read back from Stripe (on return, by signed webhook) and a payment posts once: one receipt number, and one `bm_payments` row per invoice with the reference `stripe:<intent>:<invoice>`, never above the invoice; a copay waits on its visit and the rest of any payment is credit, both applied when the next invoice is approved. The patient's link shows a statement across visits (charges, payments, running balance) and gives the statement, receipts and per-visit superbills as PDFs; a superbill carries the clinic's tax ID, the practitioner's NPI, the ICD-10 diagnoses and CPT codes with modifiers and units (the signed note's billed units when present) and is refused until all are present. Every check-in, saved or removed card, charge, link, opening and download is audited for the patient. On RER Managed hosting, which has no egress relay yet, connecting Stripe is refused and every payment surface says in one line that online payment is not available yet. `PAY-002` to `PAY-005` carry the rest of each job. **Acceptance evidence:** On a self-hosted install with Stripe faked at its HTTP edge, save a card from the patient's link with the authorization, check the patient in and charge the copay in one action with a receipt, send a pay link by email and pay the balance, and see each payment posted to its invoice once, on the statement and on the superbill; replay the Stripe webhook and see nothing posted twice; on RER Managed see the one line.

- **BALM-004 — Templates, signed notes, plan-of-care link and scribe drafts.** Treatment notes start from the template set on the visit's service: PT, OT and speech-language initial evaluation, daily note, progress report and discharge summary, each with subjective, objective measures, assessment, goals and plan sections. A note is a draft, saved as revisions, until its author signs the exact latest revision with their typed name and credentials; signing records the time and the SHA-256 of what was signed, is refused while a required section is empty, and locks the note, which the database enforces; later changes are addenda signed when written. Each note records CPT codes with minutes; billed units follow the CMS 8-minute rule (timed codes on their total minutes, whole units first and the rest to the most minutes left over; untimed codes one unit), and an invoice carries the units of its visit's signed notes. The schedule shows each visit's note as signed, not signed or missing and lists attended visits without a signed note. A plan of care (diagnoses, goals, frequency, duration, interventions) is signed by its therapist and sent to the referring physician through a private `/plan/<token>` link (only its hash is stored, expiring in 30 days); the physician signs once without an account, the plan's content never changes once sent, and the case shows signed or not with the date. The scribe drafts a note in the visit's template from the practitioner's dictation or bullet points with the install's own AI key, which the owner enters on the Clinic page and Balm keeps sealed; it sends no patient name or birth date, says "Add a key to use the scribe." without a key, never signs, and on RER Managed hosting says it is not available yet. `CHART-002` to `CHART-006` and `CHART-012` carry the rest of each job. **Acceptance evidence:** Write a PT daily note from the visit's template, try to sign with a required section empty and be refused, sign it and see it locked with an addendum allowed; record 38 minutes across two timed codes and see 3 billed units on the note and its invoice; send a plan of care by link, sign it as the physician and see it signed with the date on the case and the schedule; draft a note with the scribe from dictation with a faked model and see an unsigned draft, and without a key see the one line.

- **SETUP-001 — Clinic, services, practitioners and hours.** The owner sets the clinic name, address, tax ID and time zone, services with length and price, practitioners with their discipline and weekly hours, and invites practitioners and reception by email; a first-run checklist shows what is left. The time zone starts from the owner's browser time zone and can change later: booked visits keep their exact moment, weekly hours keep their clock times, and the owner confirms the change when visits are booked. **Acceptance evidence:** From a fresh install, complete the checklist through the app, invite a practitioner and a receptionist, and see the public booking page offer only the practitioner's hours.

- **SCHED-001 — Online booking from real open times.** New patients book at `/book` from a practitioner's real open times in 15-minute steps, at least 2 hours and at most 60 days ahead, get the intake link by email, and a taken or invalid slot is refused in the same D1 batch that inserts the appointment, even when two people race for it. **Acceptance evidence:** Book online for a new patient, see the slot disappear and the intake email sent, book a taken or off-grid slot and be refused, and race two bookings for one slot and see exactly one succeed.

- **INTAKE-001 — One-use intake bound to its form version.** A booking emails a private intake link through the clinic's mail only when the visit is in the future and the patient has neither a submitted intake for the clinic's current published form version nor an open, unexpired intake link. For request reuse, an open link belongs to an unfinished booked visit whose scheduled end has not passed, with a stored token hash and no submitted response for that visit. The link remains usable after the scheduled start (including in the waiting room) and refuses at the scheduled end, on completion (attended), or on cancellation, whichever happens first. An unanswered link shows the current published form; publication during completion refuses the stale submission and asks the patient to reload. Reuse that link, never duplicate it. A booking entered for a past date never emails anything. After the clinic publishes a new form version, the next booking for a patient whose intake answered an older version emails a fresh link for the current one. Each link accepts answers once, binds them to the exact form version answered, never echoes clinical answers back, and lets only the treating practitioner and the owner read them. **Acceptance evidence:** Book online, open the emailed link, submit the intake, replay the submission and be refused; reopen the link and see no clinical answers echoed back; read the answers as the treating practitioner and owner and be refused as reception and as another practitioner. A returning patient with a submitted intake for the current form version books and receives no new intake link. A patient with an open, unexpired link books again and the same link stands, without a duplicate. Enter a past-dated booking and see no email sent. After the clinic publishes a new form version, book a patient whose submitted intake answered the older version and see a fresh link emailed for the current version; the earlier answers stay bound to the exact version answered.

- **CHART-001 — Private revisioned treatment notes.** Treatment notes are readable only by their author and the owner (and, under `CHART-013`, the care team the practice grants), and amendments add revisions that keep every earlier text. **Acceptance evidence:** Write and amend a note as a practitioner; read every revision as the author and the owner, and be refused as reception and another practitioner.

- **REMIND-001 — Reminder content a person approves.** Reminder text is prepared from the appointment (by staff or an agent key), a person approves the exact text, and the approval keeps its digest; the approved text can be exported unchanged. Delivery is `COMM-001` and `COMM-002`. **Acceptance evidence:** Prepare a reminder with an agent key, approve it as a person, and export the exact approved text with the approval digest recorded.

- **BILL-001 — Approved, numbered invoices with fixed bytes.** An invoice is prepared from an attended visit, a person approves it, and only then is it numbered and its downloadable bytes fixed; approval is refused if any frozen fact changed; voiding keeps the number. **Acceptance evidence:** Prepare, change the visit, see approval refused, re-prepare and approve; download the invoice twice and get identical bytes.

- **PAY-001 — Payments recorded once per reference.** Payments received outside Balm are recorded with a unique external reference, never above the invoice, and leave the outstanding balance. **Acceptance evidence:** Record a check payment, record the same reference again and be refused, and try to exceed the invoice and be refused.

- **AUDIT-001 — Append-only access audit.** `bm_audit` is append-only. Opening a patient file, reading intake answers or notes, every change, every invoice or reminder download and every agent read of patient names add rows for that patient; audit rows carry no patient personal details; only the owner reads them. **Acceptance evidence:** Open a file, read intake and notes, download an invoice and read names with an agent key; the file's audit lists each, and an attempt to update or delete an audit row is refused.

- **ERASE-001 — Erasure fenced against old backups.** The owner erases a patient or staff member who has no health records; the erasure is journaled so a restore or import cannot bring them back, and a patient with health records is retained under `HIPAA-002`. **Acceptance evidence:** Erase an unused patient and staff member, restore an older archive and re-import the patient, and see both refused; try to erase a treated patient and be refused.

- **PORT-001 — Whole-clinic export and restore.** `rer export` writes the whole clinic as an archive; `rer import` restores it into an empty destination and refuses damaged archives and populated stores. **Acceptance evidence:** Export, damage a copy and see it refused, import into a populated store and see it refused, import into an empty one and see the clinic intact.

- **MOVE-001 — Reviewed patient import with undo.** The owner imports patients from an allied-health practice system patient CSV: preview every row with diagnostics and conflicts, apply exactly the reviewed preview, read the journal with the original file, and undo without losing patients who have since been booked or edited. **Acceptance evidence:** Preview, apply and undo a synthetic allied-health practice system file in which one patient was booked after import; the booked patient is kept and the journal says why.

## Target clauses

### Clinic setup, roles and security

- **ROLE-002 — Billing, assistant, student and supervisor roles.** Beyond owner, practitioner and reception, the practice assigns biller (claims, payments and A/R, no note text beyond what a claim needs), PTA/COTA/SLPA assistants (document under a supervising therapist), students and clinical fellows (draft only, co-signature required), and location managers (one location's schedule and reports). The biller sees `REPORT-002`'s financial reports, which the owner alone sees until then. Each permission is enforced server-side as `BALM-001` does today. **ct-approved baseline (22 October 2026):** the owner assigns the job and named active licensed supervisor; billers have billing-only access, students and fellows save and submit their own drafts but never sign independently; assistants do the same unless an explicit CHART-008 state/payer daily-signing rule permits their own final daily signature, and location managers have schedule and visit-count access to their one location (rooms must be assigned before use). The exact current matrix is `docs/ACCESS-MATRIX.md`; every new command defaults to refusal for these narrower jobs. Assistants never author an evaluation, re-evaluation, progress report, discharge summary or plan of care, or charge an evaluation code; students and clinical fellows draft them for co-signature. A location manager books, reschedules, cancels and checks in visits in their location's rooms only; each write rechecks the assigned location in its transaction. The manager books existing patients already scheduled at that location; the owner books a new patient’s first visit there. Check-in never charges a card. Billers prepare the signed notes for selected visits against a recorded payer policy and a records-request or appeal reference; the owner reviews and approves the exact original PDF before biller download, which expires after seven days or immediate owner revocation. No outbound send is performed. **Acceptance evidence:** Sign in as each new role and attempt every read and write in the access matrix; allowed actions succeed, others are refused with no write, and each refusal is audited.

- **SEC-001 — Two-step sign-in and session control.** Staff sign in with an email link plus a second step (passkey or authenticator code), required for every role that can read PHI; an owner can require it clinic-wide, sees active sessions and devices, signs any of them out, and sets an idle timeout (default 15 minutes on shared workstations). Balm requires an independent authenticator code for the owner, administrators and every active clinic staff job before opening patient information, including location schedules. The first verified setup is bound to that signed-in identity and device; the encrypted seed never travels in archives. Enrollment and regeneration each show ten one-use recovery codes once; there is no email-only reset or owner bypass. A used authenticator time step or recovery code cannot be replayed. Native sessions expire on their next request after the owner-set idle period (1–120 minutes, default 15), and owner device revocation takes effect on the next request. ct-approved enrollment and recovery (22 October 2026): all PHI-reading jobs require this independent second step. Recovery codes are stored only as salted hashes; generating a new set with a fresh authenticator code invalidates every previous code. Each use is audited and shown on the private Staff security page at the next sign-in, with no email or SMS notice. Factors, recovery credentials and session proofs are excluded from archives, and restored users enroll again. Losing the authenticator and every recovery code leaves the user without PHI access until re-enrolled; no reset or owner bypass is implemented. Optional OIDC or SAML sign-in through the practice's identity provider (Auth, Google Workspace, Okta) maps to Balm roles without widening them. **Acceptance evidence:** Enforce two-step sign-in, sign in with and without the second step, let a session idle past the timeout, and sign out a device remotely; the next request from each refused session is denied.

- **SEC-002 — Public doors that refuse abuse.** `/book`, `/intake/<token>`, portal sign-in and payment links check request origin, rate-limit by address and by patient email, cap pending online bookings per email, never echo clinical answers, and treat every link token as a one-use or expiring bearer credential stored only as a hash. Exact semantics (ct, 20 October 2026): aligned 15-minute windows keep secret-salted hashed counters, separate by door and address/patient. Owner-visible defaults are booking 30 requests/address and 10/normalized submitted email; intake and payment 120/address and 60/server-resolved patient email, including page, action and document requests; portal sign-in 20/address and 5/email, and confirmation 30/address and 5/server-resolved email. A patient without email uses the same patient quota keyed by a secret-salted opaque client ID; invalid or unresolved tokens take only the address quota. Counters are atomic and contain no raw address, email or client ID. CF-Connecting-IP is trusted only with Cloudflare request metadata and outside local mode; otherwise requests share one hashed installation bucket and forwarded headers cannot choose another. Origin rules remain unchanged; signed provider webhooks are excluded. A denied request causes no domain or provider effect: portal sign-in keeps its generic notice, and other doors return 429 without patient details or clinical answers. The three-future-online-bookings-per-email cap is checked in the booking transaction, including concurrent requests. Future public capabilities under `SCHED-007`, `TELE-001`, `PAY-002`/`PAY-003`, `PORTAL-001` and `MOVE-*` inherit these obligations before shipping. **Acceptance evidence:** Post to each public door cross-origin, replay a used intake link, exceed the booking cap and the rate limit, and inspect storage; each is refused and no raw token is stored.

- **US-001 — US clinic defaults.** A new clinic starts in USD with en-US dates, a US time zone chosen at setup, +1 phone numbers, US states and ZIP codes, an EIN or SSN tax ID with the practice NPI, and US imports reading MM/DD/YYYY dates. **Acceptance evidence:** Set up a clinic in America/Chicago, book, invoice and import a patient file with US dates; every screen, file and message shows USD, en-US dates, +1 numbers and the practice's EIN and NPI.

- **OWN-001 — Owned, open-source and free.** Balm is MIT licensed and charges nothing. The practice runs it on its own computer (`rer install`, `rer setup`, `rer dev`) or its own Cloudflare account, its database is its own, and no license check, telemetry or kill switch exists. Real patient data runs only on a deployment `HIPAA-005` names, with its hosting BAA (or practice-owned hardware) recorded; any other install stays in demo mode with synthetic patients. **Acceptance evidence:** Install from a clean checkout with the documented commands, run the clinic loop, and observe no outbound request other than the declared integrations the owner enabled. With no hosting record, attempt real-patient creation through the app, `/book`, intake, import and migration and see each refused; complete and remove the hosting record and verify the audited real-patient switch and renewed refusal required by `HIPAA-005`. Acceptance depends on both no undeclared outbound requests and `HIPAA-005` real-patient gating; a no-outbound test alone cannot complete `OWN-001`.

### Scheduling

- **SCHED-002 — Practitioner, room and equipment calendar.** Staff work from a day and week calendar across practitioners, treatment rooms, gyms and equipment (for example a pool or an AlterG), drag to move a visit, see intake, authorization and balance flags on each visit, and print or export the day sheet. A visit can require a room or equipment and is refused when it is taken. Visits a practitioner carries at the same time under their capacity (`SCHED-010`) show side by side in that practitioner's day and week column, each with its own patient, status and flags. Exact semantics: a visit names at most one room and at most one equipment item, and each holds one booked or attended visit at any instant; staff booking and single moves choose them, series moves and patient moves (portal and reminder links) keep them, and patient doors neither offer nor take a time when the visit's room or equipment is held. Drag moves follow the edit form's authority: the owner and reception move any booked visit to any practitioner, room or equipment; a practitioner moves only booked visits in their own diary and only within it. The intake flag reads received (for this visit), on file (an earlier answer) or due; the authorization flag is the authorization covering the visit's clinic-local date, its remaining visits being authorized minus attended minus booked as in `INS-003`; the balance flag is what the patient owes on approved invoices with no claim pending, shown under `BALM-001` to the owner, reception and practitioners with the owner’s balance grant. The day sheet is one clinic-local day of the calendar the actor may see, with the same practitioner, room or equipment filter, as a printable page and a CSV; agent keys get neither. Each future visit-placing door (`SCHED-007` locations, `TELE-001` video visits, `MOVE-*` imported visits) inherits the room and equipment refusal before it ships. **Acceptance evidence:** Book two practitioners into one room at the same time and see the second refused; book the AlterG over a visit that already holds it and see that refused; move a visit by drag and see its history; read the week view for three practitioners with each visit's flags; book two patients at 9:00 for a PT whose capacity is 2 and see both side by side in the PT's column; print and export the day sheet and see the same visits and flags.

- **SCHED-003 — Recurring visit series.** A practitioner books a series (for example twice weekly for 6 weeks) from the plan of care's frequency and duration; Balm names every conflict before booking, books the rest, and lets staff edit or cancel one visit, this and following, or the whole series. **Acceptance evidence:** Book a 12-visit series that collides with a holiday and an existing visit; see the conflicts named, resolve them, and cancel "this and following" from visit 8 with earlier visits untouched. The plan-derived pattern starts on the plan’s start-of-care date, lasts its duration in whole weeks and requires exactly its frequency of selected weekdays; reviewed exceptions may move a date or skip it explicitly. Clinic holidays are named full local dates; a time-zone change recalculates their boundaries in the new clinic zone. Existing visits are retained for staff to resolve. One, this-and-following and whole-series actions operate on booked visits, retaining completed visits and the recorded skipped dates.

- **SCHED-004 — Reschedule, cancel and no-show policy.** Staff and patients reschedule a visit without losing its history, intake or authorization link; cancellations record who and why; the clinic sets a late-cancel window and a late-cancel or no-show fee that is charged to the card on file only after a person confirms. The owner configures notice in elapsed hours and whole-cent USD fees (zero disables a fee). A cancellation is late only when time until its start is strictly less than the notice window; equality is outside it. Private visit-link patients choose real quarter-hour slots with the same practitioner and service, inside the notice, availability and authorization rules; successful moves revoke the old bearer and email a fresh link, while the visit ID, intake and authorization reservation remain. Cancellation requires a reason for single and series commands and records the acting person; no-show attendance records its actor too. Owner or reception separately records explicit patient authorization for the particular fee and confirms the frozen proposal before charging its saved card, once under replay or racing confirmation. Old card-saving consent is never broadened. Without authorization nothing is charged and cancellation still succeeds. **Acceptance evidence:** Reschedule a visit and see one appointment with its history; cancel inside the late window and see the fee proposed, approved and charged once; mark a no-show and see it in attendance reports.

- **SCHED-005 — Waitlist that fills openings.** Patients join a waitlist with practitioner, days, times and earliest date; when a visit is canceled, Balm offers the opening by text and email to matching patients in order, holds it for a set time, books the first patient who accepts and tells the others it is gone. **Acceptance evidence:** Put three patients on the waitlist, cancel a matching visit, accept from the second patient's text reply after the first lets the hold lapse, and see one booking and a "slot taken" message to the third.

- **SCHED-006 — Patient self-service scheduling.** Existing patients book, reschedule and cancel follow-up visits from the portal, a reminder reply or `/book` (where an exact name, birth date and email match continues their file) within clinic rules: which services they may self-book, notice, and whether an active plan of care or authorization is required. Self-booking offers only times when the practitioner has no live visit, unless the practice allows online double-booking for that service under `SCHED-010`. The booking page embeds on the clinic's website. The portal books, moves and cancels the session patient’s own visits and offers the same published active practitioners and services as `/book`; a reminder link moves or cancels only its own visit. The owner configures each service’s self-booking flag, minimum notice (elapsed minutes, at least 120), and optional certified-plan and authorization requirements. A required plan must belong to that patient and practitioner and cover the visit’s clinic-local date, including its start and end dates; an authorization must cover that date and practitioner with an unreserved visit, and an existing expired or exhausted authorization is refused even when authorizations are optional. Moves release their own prior reservation. Moves also obey `SCHED-004`’s elapsed-hour notice at both the old and new time; cancellations obey it at the original time, and patients cannot override fees. Cancellation remains available outside notice if new self-booking is disabled. Authority, identity, clinic rules, clinical eligibility and capacity are rechecked in the same write batch. Ambiguous exact returning identities ask the patient to contact the clinic; concurrent first bookings cannot create duplicate matching patient files. The owner explicitly allowlists HTTPS website origins (HTTP loopback only in local development); only `/book` may be framed, the host cannot read its form, and final submission leaves the frame before a private destination. `/book` still requires the exact Balm Origin, including ancestor-tainted framed requests; every other Origin rule stays unchanged. `SCHED-010` inherits these patient-door capacity and Medicare obligations before online double-booking ships. **Acceptance evidence:** As a returning patient, book at `/book` and land in the same file; as a portal patient, book a follow-up, reschedule it inside the rules, and be refused outside notice or past the authorized visit count; book through the page embedded on a test website.

- **SCHED-007 — Service types, locations and availability rules.** Services carry their own length, price, CPT defaults and bookable practitioners (an evaluation at 60 minutes, a follow-up at 45); a practice runs several locations with their own hours, rooms and time zone; holidays, time off and one-day overrides change availability; buffers separate visits. Before locations ship, `REPORT-001` reports filter by location. Current semantics: the owner sets each service’s practitioner and location lists (empty lists retain unrestricted legacy services), up to six suggested CPT codes and 0–120-minute before/after buffers. A selected room identifies its location; explicitly configured locations intersect their hours with the practitioner’s weekly clock times in that location’s zone. Older report-only locations retain clinic hours until configured. Public and portal booking show location-local times; the staff calendar, staff entry, series patterns and reports retain clinic-local dates and times. Named date rules close or replace a location’s, practitioner’s or combined scope’s hours; every applicable scope must permit the visit and clinic holidays still win. Adjacent visits reserve the sum of their services’ buffers, even across locations; buffers disallow overlapping visits when either service reserves them. Rule changes retain existing visits; every new booking or move rechecks current rules and a same-batch rule revision and buffer guard. CPT suggestions only prefill a clinician-reviewed draft and record no treatment. Existing original-record imports retain their source times; `MOVE-002` through `MOVE-005` inherit service/location mapping and conflict review before expanding their scheduling doors. **Acceptance evidence:** Create two locations, an evaluation and a follow-up service and a day off; online booking offers each service only where and when its rules allow.

- **SCHED-008 — Check-in, attendance and change history.** Each visit moves through booked, checked in, attended, no-show or canceled, and every change is recorded with who and when. Marking a visit attended atomically opens a blank draft note for the treating practitioner (retaining an existing note) and an unnumbered, unapproved invoice draft at the service price, or the payer fee schedule when signed CPT units already exist. It records no treatment and takes no payment. The practitioner saves and signs the note; the billing desk reviews, refreshes from the signed note when needed, and approves the exact invoice under `BALM-001`, `BALM-003`, `CHART-004` and `CHART-006`. Repeated or concurrent status changes cannot start duplicate work. Visit details show the complete appointment change history with actor and clinic-local time, including changes made to the rest of a series. **Acceptance evidence:** Book, check in and mark attended, then mark another visit no-show and another canceled; each visit's history lists every change and its actor.

- **SCHED-009 — Calendar subscription.** Each practitioner subscribes their own schedule in Google Calendar, Outlook or Apple Calendar through a private, revocable iCalendar feed carrying times and initials only, never a diagnosis or full name. **Acceptance evidence:** Subscribe to the feed, book and cancel a visit, see the feed follow; revoke the feed and see the old address refused.

- **SCHED-010 — Practitioner capacity and double-booking.** Each practitioner has a concurrent-patient capacity, and a service can set its own lower one (for example 2 for a PT follow-up where an aide supervises the patient finishing exercises, 1 for an evaluation); both default to 1, which keeps `BALM-002`'s overlap refusal as published. Staff (owner, reception and the practitioner in their own calendar) book up to the lower of the two at overlapping times; the booking that would go past it is refused in the same D1 batch that inserts it, so two people racing for the last place get exactly one booking. Moves, recurring series (`SCHED-003`) and waitlist offers (`SCHED-005`) count capacity the same way, and a room or equipment a visit needs is still refused when taken. Online and portal booking (`SCHED-001`, `SCHED-006`) offer only times when the practitioner has no live visit, unless the practice turns on online double-booking for a service, in which case they offer times with capacity left. When a booking or move would overlap two Medicare Part B patients for one practitioner, Balm warns before saving that one-on-one timed codes cannot be billed for both patients over the same minutes (overlapping Medicare treatment bills as group therapy, 97150), and the person who books anyway is recorded on both visits. Migrated appointments (`MOVE-002` to `MOVE-005`) land as the source booked them, overlaps included, and any overlap beyond the configured capacity is named in the reconciliation (`MOVE-006`) rather than refused. **Exact rule:** at every instant inside a visit, the practitioner's booked or attended visits there, plus the new one, may not exceed the lowest of the practitioner's capacity and the capacity of every one of those visits' services (each 1 to 10, set by the owner); a visit is checked at its own start and at each later start of an overlapping visit, in code before saving and again in the D1 batch that writes it. A patient is a Medicare patient for a visit when their primary policy's payer is marked Medicare and its coverage includes the visit's clinic-local date. The Medicare warning applies to staff bookings, recurring series and moves (single and series); booking anyway records the acknowledging person and time on both visits and in both patients' access audits. Doors with no staff decision (online and portal booking, patient moves and waitlist acceptance) never place a Medicare patient over another Medicare patient's minutes. A migration names each visit that would exceed the mapped practitioner's and service's capacity, with both source rows. **Acceptance evidence:** Set one PT's capacity to 2; as reception book two patients at 9:00 and see both succeed and show side by side; book a third at 9:00 and be refused; race two staff bookings for the last place and see exactly one succeed; open `/book` and the portal for that PT and see 9:00 not offered; book two Medicare patients at 10:00 for the PT and see the warning before saving and the override recorded on both visits; import a rehabilitation EHR scheduler fixture with an overlapping pair for a practitioner whose capacity is 1 and see both visits land and the pair named in the reconciliation.

### Intake and patient portal

- **INTAKE-002 — Intake packets and outcome questionnaires.** The practice builds versioned forms and packets per service and discipline (PT, OT, SLP, pediatric), including standard outcome questionnaires (LEFS, Oswestry, Neck Disability Index, QuickDASH, PSFS) scored automatically into the chart. A new version never changes past answers. A service packet takes priority over a discipline packet, then the clinic default; pediatric services have an explicit intake discipline. The practice supplies its authorized standard questionnaire item wording in standard order. Balm stores the instrument, item order, scoring version and computed score with the immutable response: LEFS sum (0–80), Oswestry/NDI percentage of the answered maximum, QuickDASH mean adjusted to 0–100 (at least 10 of 11 items), and PSFS mean (0–10). Scores use the existing treating-clinician/owner intake access and audit. **Acceptance evidence:** Publish a PT packet with the LEFS, answer it as a patient, see the score in the chart, publish a new version and see earlier answers still bound to the old one.

- **INTAKE-003 — Signed consents and policies.** Patients sign consent to treat, the HIPAA Notice of Privacy Practices acknowledgment, the financial and cancellation policy, telehealth consent and SMS consent, each with a drawn or typed signature, the time, the signer (patient, parent or guardian) and the exact document version, stored as a fixed PDF in the chart. **Acceptance evidence:** Sign each consent as a parent for a minor, download the fixed PDF, change the policy and see the patient asked to re-sign the new version only.

- **INTAKE-004 — Insurance and identity capture.** Before the first visit the patient adds primary and secondary insurance (payer, member ID, group, subscriber and relationship) and photos of the card front and back and a photo ID; Balm validates required claim fields and starts an eligibility check (`INS-002`). **Acceptance evidence:** Complete intake with two policies and card photos; see the policies on the file, missing subscriber fields refused, and an eligibility request created.

- **PORTAL-001 — Patient portal.** Patients sign in by email link or SMS code to see upcoming and past visits, forms to complete, their home program, messages, statements, receipts and superbills, and to update contact, insurance and card details. A parent or guardian manages a minor's portal. **Acceptance evidence:** Sign in as a patient and as a guardian of two children, see only their own records, complete a form, and update insurance with the change audited.

- **PORTAL-002 — Home exercise programs.** Clinicians build a home program from Balm's shipped exercise library (`PORTAL-007`) or their own exercises, each with images or video, sets, reps, hold and frequency, assign it from the note, and patients follow it in the portal or as a printable PDF and log completion and pain; adherence shows in the chart. **Acceptance evidence:** On a fresh install with no practice-made exercises, assign a 5-exercise program from the shipped library in a daily note, open it as the patient, log three sessions, and see adherence in the next note.

- **PORTAL-007 — Shipped exercise library.** Every install ships an exercise library under an open license (CC BY 4.0 or CC0), produced for the project or drawn from openly licensed sources, with each exercise's license and source recorded and shown. Each exercise carries a title, patient-readable instructions in English and Spanish (`PORTAL-005`), at least one illustration, an optional video, discipline, body region, position, equipment and default dosage. The library holds at least 1,500 exercises: at least 900 for PT across the cervical, thoracic and lumbar spine, shoulder, elbow, wrist and hand, hip, knee, ankle and foot, balance and vestibular, and pelvic floor; at least 350 for OT across hand and upper-extremity, fine motor, ADL and IADL training and energy conservation; and at least 250 for SLP across oral motor, swallowing, voice, articulation and cognitive-communication. Clinicians search by words, discipline, body region and equipment, and the practice adds its own exercises or imports them from a CSV with media files. **Acceptance evidence:** On a fresh install, count the library by discipline and region and see every minimum met; search "resistance band" filtered to shoulder and see only matching shoulder exercises; open any exercise and read its license; import three practice exercises from a CSV and find them in search.

- **PORTAL-003 — Secure messaging.** Patients and the clinic exchange secure messages and attachments in the portal; notification texts and emails carry no clinical content; messages route to the practitioner or front desk, are kept on the patient's file, and an auto-reply tells patients the inbox is not for emergencies and to call 911. **Acceptance evidence:** Send a message with a photo as a patient, see an alert with no clinical text, reply as the practitioner, and find the thread in the file and the audit.

- **PORTAL-004 — Statements, receipts and superbills in the portal.** Patients see their balance, every statement, receipt and superbill, and pay from the portal (`PAY-003`). This applies to every billing document and payment capability available today; `PAY-009` must expose every fixed issued statement in the portal before statement runs ship, and `PAY-002` to `PAY-008` must expose any new patient receipts, superbills or payment capabilities there before they ship. **Acceptance evidence:** After a paid visit and an unpaid one, open the portal and download the receipt and superbill, then pay the balance and see it at zero.

- **PORTAL-005 — Accessible, English and Spanish patient pages.** Booking, intake, consents, the portal, reminders and statements meet WCAG 2.2 AA and are offered in English and Spanish, chosen by the patient and remembered on the file. Conformance is checked two fixed ways: axe-core run with its WCAG 2.0, 2.1 and 2.2 A and AA rules against every patient page in both languages, and a written manual checklist per page (keyboard-only completion, visible focus, screen-reader names and announcements with VoiceOver and NVDA, 200% zoom and 320-pixel reflow, error identification and suggestions, no timing that cannot be extended), whose result is recorded with the date. **Acceptance evidence:** Complete booking and intake in Spanish with a screen reader and keyboard only; axe-core reports zero serious or critical violations on each patient page in English and Spanish; the manual checklist passes for each page and its record is kept.

- **PORTAL-006 — Patient access to their record.** A patient requests their record from the portal; the practice fulfills it within the HIPAA 30-day limit as a readable PDF and a machine-readable export (FHIR R4 US Core, `INTEG-001`), and the request, its due date and the delivery are tracked. **Acceptance evidence:** Request the record as a patient, see the due date on the staff work queue, release it, and download both formats from the portal.

### Clinical documentation

- **CHART-002 — PT, OT and SLP templates.** Discipline templates cover the initial evaluation, daily note, progress report, re-evaluation and discharge summary for physical, occupational and speech therapy, with body-region and diagnosis variants, pick lists and practice-customized versions that never change signed notes. Each note type has required elements, and signing is refused while one is empty, naming it. The evaluation requires history (presenting condition, onset and mechanism, prior level of function, medical history, medications), systems review, tests and measures for the discipline (PT: range of motion, strength, special tests, gait and balance; OT: ADL and IADL performance, upper-extremity and fine motor function, cognition screen; SLP: standardized speech, language, swallowing or voice assessment), assessment with diagnoses and prognosis, measurable short- and long-term goals, a plan with frequency, duration and interventions, and the evaluation complexity code (97161–97163, 97165–97167, or the SLP evaluation code). The daily note requires subjective report, each intervention with its CPT code, minutes and parameters, the patient's response, assessment and plan for the next visit, and total timed and treatment minutes. The progress report and re-evaluation require objective measures compared with the evaluation (`CHART-005`), each goal's status (met, partly met, not met), the justification for continued skilled care and the updated plan. The discharge summary requires final measures, each goal's status, the reason for discharge and the home program. Every new note in an episode carries forward from the last signed one the diagnoses, goals and their status, precautions (`CHART-010`), the flowsheet's last values (`CHART-005`) and the plan, and never the subjective or assessment text. **Acceptance evidence:** Run the same journey for PT, OT and SLP: sign an evaluation, three daily notes, a progress report and a discharge summary in that discipline's templates. Each daily note opens with the diagnoses, goals, precautions and flowsheet carried forward and the subjective blank; signing a daily note with an intervention missing its minutes, and an evaluation without goals, is refused with the element named; the progress report and discharge show each goal's status; changing a template leaves every signed note byte-identical.

- **CHART-003 — Plan of care and physician certification.** The evaluation produces a plan of care with ICD-10 diagnoses, short- and long-term goals, frequency, duration and interventions, signed by the treating therapist. Balm sends it to the referring physician or non-physician practitioner by a private e-signature link, by fax through `REF-002`, or both, and records each send with its channel, recipient, date and, for a fax, the delivery confirmation. **Locked once sent:** from its first send, by fax or link, a plan's content and digest never change, which the database enforces. A change after sending makes a new version of the plan, linked to the version it replaces and marked as superseding it, which must be signed by the therapist and sent again; the earlier version keeps its sends and signature state, and its open link stops working. **Certification returns two ways:** the physician signs through the link, or a person files a returned signed copy, either an incoming fax (`REF-002`) or an uploaded signed scan, as the certification of a named plan version. Filing records the signing physician (name, credentials and NPI when shown), the signature date written on the copy, the certification date, and who filed it and when; it keeps the signed image in the chart as a signed plan of care document against that plan version and its episode (`CHART-009`); it is audited; and a copy filed to a version already signed is refused. **Signature state:** each plan version is **not sent**, **sent, pending**, **signed** or **late**. Late means not yet signed (not sent or pending) once a practice-set number of days has passed since the episode's first treatment visit, defaulting to Medicare's 30 days; a plan signed after that keeps its signature date and shows how late it was. **Work list:** a *Plans of care to sign* list shows every plan not sent, pending or late, with its physician, last send and age, and re-sends by link or fax in one action, which `AGENT-001` can prepare for a person to approve; the daily close (`REPORT-004`) lists pending and late plans, and `CHART-007` warns before a note is signed for a visit under a late or uncertified plan. Balm records the certification period (from the start of care for the plan's duration, at most 90 days), tracks the 90-day recertification due date, flags visits past it, and applies any state direct-access limit. Its goals, with their status, carry into each progress report and the discharge summary (`CHART-002`). Before returned-plan certification ships, file each signed fax/scan as an immutable CHART-009 original against its named plan version and episode, find it in chart history, and retain that linkage through export/restore. **Acceptance evidence:** Sign an evaluation and its plan of care, send it by fax, and see it locked and marked pending with the fax confirmation. Edit it and see a new version that must be sent again, the sent version unchanged. Receive the physician's signed fax, file it to that plan version, and see the plan signed with the signer, the signature date, the certification date and the signed image attached in the chart; file a second copy to it and be refused. Send another plan by link and sign it as the physician. Leave a third plan unsigned 30 days past its first treatment and see it marked late on the work list and the daily close; set the practice's threshold to 21 days and see a plan 22 days past its first treatment marked late. Let a certified plan pass its recertification date and see the next visit flagged. Every added plan version, fax-send and returned-certification door must update the owner’s audited REPORT-004 daily close before it ships; pending, late and expired plan work must appear and clear from its recorded outcome. Find each newly added document in chart history, filter it by its episode when episodes exist, and reopen its original bytes as an entitled clinician.

- **CHART-004 — Draft, sign, lock and amend.** Notes are drafts until the clinician signs; signing locks the note with the signer, time and credentials; changes after signing are addenda or amendments that keep the signed original visible; unsigned notes past the practice's deadline appear on the daily close. **Acceptance evidence:** Sign a note, try to edit it and be offered an addendum, add one, and read both the original and the addendum; an unsigned note past 24 hours appears on the daily close.

- **CHART-005 — Objective measures and flowsheets.** Clinicians record range of motion, manual muscle tests, girth, balance and gait tests, standardized scores and exercise flowsheets in structured fields, compare them with the evaluation and graph them over the episode. Before measures ship, care-team grants and break glass (`CHART-013`) read them as they read notes, with the same audit. A measure is recorded in a treatment note by that note's author while it is a draft and locks with the note's signature; whoever reads the note reads its measures under the note's read audit, and reception and agents read none. Each kind has fixed units and bounds (range of motion in degrees; manual muscle test grades 0–5 with + or −, stored in quarter steps; girth in cm or in; balance and gait tests in seconds, points, m/s, meters or feet; standardized scores in points or percent; flowsheet load in lb, kg or bodyweight with sets and reps), and values keep at most two decimals. A series is one measure name (ignoring case), side and unit in visit order; its evaluation value is the earliest entry recorded in an evaluation note, or its first entry when no evaluation recorded it, and the change is the later value minus that one. Progress and discharge notes show each series' evaluation value, the value at that visit and the change. A series is kept per episode of care (`REF-003`): its evaluation value, change and graph use only entries from visits in the same episode, and entries not assigned to an episode form their own series. **Acceptance evidence:** Record knee flexion and LEFS at evaluation and three later visits; the progress report shows the change and the graph matches the entries.

- **CHART-006 — Billing captured from the note.** The note records each CPT code with timed and untimed minutes; Balm calculates billable units by the timed-unit method of the payer the charge bills to (`INS-001`): CMS total-time (the Medicare 8-minute rule), AMA/CPT per-service substantial portion, or the practice's fixed per-unit threshold for that payer. Under CMS total-time, units come from the pooled timed minutes and are distributed by CMS's rule: each code first takes its whole 15-minute units, then the remaining units go to the codes with the most remaining minutes, and on a tie the clinician chooses which code takes the unit, with the choice recorded. Where an equal-remainder group straddles the last available units, the clinician selects exactly as many codes in that group as there are units left; new signatures refuse an unresolved choice. The selection is part of the immutable revision and its signed digest, and only breaks equal remainders; AMA and fixed methods ignore it. Under AMA/CPT each timed code is counted on its own, with a unit for each full 15 minutes and one more when the remainder is 8 minutes or more. Under a fixed threshold each code bills a unit only for each full threshold of minutes. The charge records the method and the payer setting it used. When the balance moves to a secondary or tertiary payer (`INS-013`) whose method differs, Balm re-applies that payer's method to the note's minutes for its claim, keeps the primary's line adjudication per code, and shows both unit counts on the charge. Balm applies GP, GO or GN, 59 or X{EPSU}, KX, CQ or CO modifiers where they apply, links ICD-10 pointers, and sends the signed charge to billing. A clinician can select up to four recorded visit ICD-10 codes per CPT in the note; the immutable revision stores code identities, not list positions. Saving and signing refuse selections absent from that visit. Signed charges for the same CPT combine their distinct selected codes; a claim refuses more than four or a code since removed, and reordering visit diagnoses recomputes pointers without retargeting the signed selections. Issued invoice snapshots retain the selected codes and diagnosis list for per-visit and period superbills. An omitted selection retains the existing default (first visit diagnosis for a claim, all visit diagnoses for a superbill). **Acceptance evidence:** Document 38 minutes across 97110 and 97140 and one untimed 97161 for a Medicare patient; the charge shows 3 timed units distributed by the rule, the right modifiers and diagnosis pointers. Sign the same note with 8 minutes of 97110 and 8 minutes of 97140 for a CMS-method payer and an AMA-method payer: the first charge bills 1 unit, to the code the clinician picks on the tie, and the second bills 2 units, one per code. With 10 minutes of 97110 and 8 of 97140, the CMS charge bills its 1 unit to 97110. Under a fixed 15-minute threshold the 8-and-8 note bills no timed unit and the scrubber names both codes. A charge whose primary uses the CMS method and whose secondary uses the AMA method sends the secondary claim with 2 units and the primary with 1.

- **CHART-007 — Documentation compliance alerts.** Before signing, Balm warns when a progress report is due (Medicare: by the 10th treatment day), the plan of care is late, uncertified or expired (`CHART-003`), the KX threshold is near, an assistant's visit needs supervision, or a required element for the payer is missing. **Acceptance evidence:** Reach the 10th visit without a progress report, an expired certification and a KX-threshold patient; each warning appears before signing and on the daily close. Configure a payer that requires total treatment minutes on every daily note, leave them out, and see signing blocked with the element and the payer named.

- **CHART-008 — Supervision and co-signature.** Students, clinical fellows and assistants document under a named supervisor; their notes wait in the supervisor's co-sign queue, are billed under the supervisor where payer rules require, and show both signatures. Co-signed notes keep `CHART-013` care-team and break-glass read access and audit. **ct-approved baseline (22 October 2026):** an author signature freezes the exact revision and measures until the named active licensed supervisor returns it with an immutable reason or co-signs; a return requires a new author revision and signature. Submission alone gives the supervisor only that note, not the wider chart. The payer’s owner-recorded rendering rule defaults to the supervisor, and conflicting supervisors on one visit refuse billing. An assistant may finalize only a daily treatment note under an explicit owner-recorded rule naming that assistant, the applicable state, current payer (or cash), covered care dates and both permission sources; there is no permission by default, and revocation closes future signing. Their signature stays immutable and claiming still waits for a separate immutable, signed statement of actual supervision from the named therapist; payer billability/minimum/rendering rules still apply. Students and fellows always require co-signature. The named supervisor is an active licensed therapist of the author's discipline; at co-signature the supervisor records the supervision given (in the room, on site or general), and each payer's owner-recorded rule decides whether that visit is billable and under whom. Medicare student care requires the therapist in the room; Medicare students and assistants bill under the supervisor. Unrecorded discipline, supervision or payer rules refuse claiming. `ROLE-002` and `AGENT-003` inherit these authority and signature constraints. **Acceptance evidence:** Document as a student, co-sign as the supervisor, and see the note locked with both signatures and the claim under the supervisor.

- **CHART-009 — Attachments and searchable history.** Referrals, imaging reports, physician orders, signed plans of care returned by fax or scan (`CHART-003`) and photos attach to the chart; clinicians search the patient's history by text, date, document type and episode. Uploaded JPEG, PNG, WebP and PDF originals (up to 1 MB each), their title, type, document date and entered searchable description are immutable. The owner reads and uploads for every patient; a treating practitioner (one with a visit for that patient) uploads as themselves and reads/searches all of that patient’s uploaded chart documents, whoever filed them. Unrelated practitioners are refused; reception and agents receive no chart-document metadata or content. Uploads, searches, returned records and original downloads are audited, health-record erasure guards retain documents, and originals travel through export/restore. Search covers the currently visible clinical notes and revisions, intake, plans, signed consents, insurance/ID images, historical notes and secure conversations/attachments under their existing access rules, plus chart uploads. Text uses case-insensitive substring matching; scans/photos use their title, filename and entered description, with no OCR or provider verification claimed. Date bounds include both selected clinic-local dates; an imported record with no known date remains searchable without a date bound and is omitted when a date range is selected. Today’s records belong to the single patient chart. Every history record carries its episode (`REF-003`) and history filters by episode or by not assigned; before fax/certification ships, `REF-002` and `CHART-003` must file and find their originals against the named plan/episode; `CHART-011` and `MOVE-002` to `MOVE-005` must include their new letters/imported documents in this searchable history before shipping. **Acceptance evidence:** Attach a faxed MRI report and two photos, search the chart for "MRI", and open the result; reception without clinical rights is refused.

- **CHART-010 — Alerts and precautions.** Medical alerts, precautions and important notes (falls risk, weight-bearing limits, latex allergy) show on the chart header, the calendar and check-in. **Acceptance evidence:** Add a weight-bearing precaution and see it on the calendar visit, check-in and the next note.

- **CHART-011 — Clinical letters and exports.** Clinicians send progress letters, plan-of-care summaries and discharge summaries to referring providers, payers and patients by fax, secure link or print, from templates filled from the chart, with each send recorded. Before clinical letters ship, their fixed originals and patient/episode references join CHART-009 searchable history under its clinical access and audit rules, including `CHART-013` break-glass reads with their reason. **Acceptance evidence:** Send a progress letter to the referring physician by fax and to the patient by portal; both sends appear on the file with their content fixed. Find each newly added document in chart history, filter it by its episode when episodes exist, and reopen its original bytes as an entitled clinician.

- **CHART-012 — Ambient scribe.** With the patient's recorded consent, the clinician records the visit on a phone or tablet and Balm drafts the note sections, objective measures and billed minutes into the discipline template; the clinician edits and signs, and nothing is signed or billed from a draft. Audio is deleted after the draft unless the practice chooses to keep it, and the scribe model runs only under the deployment's BAA. Notes drafted in a connected scribe (for example Heidi) import as drafts the same way. **Acceptance evidence:** Record a consented visit, review the draft, change one statement and sign; the signed note shows the clinician as author, the audio is gone, and a visit without consent offers no recording. Inherits HIPAA-001: model configuration and every model request require the active recorded BAA covering that provider and endpoint.

- **CHART-013 — Care team access with audited emergency access.** The practice grants co-treating and covering clinicians access to a patient's notes; any clinician can open a chart outside their grant only by giving a reason ("break glass"), which notifies the owner and is audited. Until an admin role exists the owner alone grants and revokes; reception and agents never hold or use a grant or break glass. A grant is read-only access to every note of that patient (signed notes, drafts' revisions and addenda); writing, signing, amending and addenda stay with each note's author, and a grantee with no visit sees nothing else of the file. Any active practitioner breaks glass by typing a reason of 10 to 500 characters; it opens that patient's notes and `CHART-009` uploaded documents (never uploads) for exactly 12 hours from that moment, then closes on its own, and the owner may end it early. Each grant, revoke, break glass, early end and acknowledgment is an audit row on the client, and every note read or document download under break glass is audited with its reason. The owner's notice is shown in Balm on the schedule until acknowledged, labeled as notified in Balm (no email is claimed) and carrying names, the reason and times, never clinical text. The owner always reads every note. This clause is done when every chart record that exists today conforms; `CHART-005`, `CHART-008` and `CHART-011` give their new clinical records the same grant and break-glass access and audit before they ship. **Acceptance evidence:** Grant a covering clinician access, read as them, revoke and be refused; break glass as another clinician and see the owner's notice and the audit row.

### Referrals and care coordination

- **REF-001 — Referrals and referring providers.** Each episode starts from a referral or direct-access entry with its source, referring provider (looked up by NPI from the NPPES registry), diagnosis, order and documents; staff track each referral from received to scheduled, evaluated, discharged or lost, and see conversion by source. Before referrals ship, `REPORT-001`'s operational reports show referral conversion with the same date and practitioner filters and CSV export. **Referral rules:** the owner and reception record referrals (patient, received date, source — physician, other provider, self, insurer, employer, attorney, website or other — referring provider, diagnosis, what was ordered) and may start the referral's episode at once; any person who opens an episode (`REF-003`) starts it from one of the patient's received referrals or records a direct-access entry, so every episode has exactly one start, and a referral starts at most one episode. The NPPES lookup is a declared integration (`OWN-001`) that is off until the owner turns it on in Clinic settings; when on, Balm sends only the typed NPI to the NPPES NPI Registry API (version 2.1), keeps the registry's name, credential, primary taxonomy, location address, phone and fax with the retrieval time, and uses the registry's name for the referring provider; an NPI the registry does not know is refused. With the lookup off, or the registry unreachable and the person choosing to, the NPI is recorded by hand only when it passes the NPI check digit (Luhn with the 80840 prefix, checked in Balm with no request) and is always labelled "entered by hand, not checked with NPPES", never shown as verified. A referral's stage is derived from its episode's records and cannot drift: received (no booked or attended visit filed to its episode), scheduled (one exists), evaluated (a signed initial evaluation on one of those visits), discharged (the episode closed); lost is recorded by the owner or reception, with an optional reason, only while no booked or attended visit is filed to its episode, and is final. Each stage shows the clinic-local date it was reached. Referral conversion counts referrals received in the inclusive clinic-local date range, by source and by referring provider: received, scheduled and evaluated (each counting every referral that reached it, whatever happened after), discharged, lost, not yet scheduled, and the scheduled share (scheduled out of received, a percentage rounded to one decimal); a practitioner filter keeps referrals whose first booked or attended visit is with that practitioner. A `HIPAA-002` purge keeps each referral's anonymous facts (date, source, provider label, stage reached, practitioner) so these figures stay. Fax intake is `REF-002`. **Acceptance evidence:** Enter three referrals with NPI lookup, schedule two and mark one lost; the referral report shows conversion by provider and source, and `REPORT-001`'s referral conversion matches it in its CSV.

- **REF-002 — Fax in and out.** Balm receives faxes on the practice's number through a HIPAA-eligible fax provider under a BAA, files each one to a patient and referral, or as the signed return of a named plan of care version (`CHART-003`), after a person confirms the match, and sends plans of care, letters and records by fax with delivery confirmation. Filing a signed plan of care completes its certification as `CHART-003` states. Before fax filing ships, incoming referral, imaging, order and signed-plan originals join CHART-009 searchable chart history against their patient and, where applicable, named plan version and episode, retaining clinical access, audit and original bytes. **Acceptance evidence:** Receive a referral fax, file it to a new referral, send a plan of care by fax and see the confirmation on the file; receive the physician's signed plan of care by fax, file it to that plan and see the plan signed with the fax kept in the chart. Find each newly added document in chart history, filter it by its episode when episodes exist, and reopen its original bytes as an entitled clinician. Inherits HIPAA-001: future fax connections and sends must enforce the recorded active fax BAA before provider use.

- **REF-003 — Episodes of care.** A patient can have several episodes (left knee, then low back), each with its own referral, plan of care, authorization, outcome scores, visits and discharge, so billing, limits and reports count by episode. Before episodes ship, every existing and new CHART-009 document/history record is assigned to its episode and searchable by that episode, with separate episode counts and the existing clinical access rules retained. Before episodes ship, `CHART-005` measure series, evaluation baselines and graphs are split by episode. Before episodes ship, `REPORT-001`'s plan-of-care completion counts visits per episode and drop-off by episode instead of by plan of care. **Episode rules (ct 19 Oct):** an episode belongs to one patient for good; its id, patient, title and opening never change, which the database enforces. The owner, reception and a practitioner treating the patient open and close episodes; each episode starts from one of the patient's referrals or a direct-access entry (`REF-001`). A visit, note without a visit, plan of care, authorization, chart upload, secure message or imported historical note is filed to one episode: the episode a person chooses (it must be open and the patient's own), else for a plan written from a visit's note that visit's open episode, else the patient's only open episode. When a person books a visit, writes a plan of care, saves a new authorization or uploads a chart document with several episodes open and no choice, Balm refuses it and asks them to choose; any other record created in that situation (a patient's online booking or message, a clinic message, a note without a visit, an import), and any record created while no episode is open, stays in a labelled "Not assigned to an episode" bucket. Balm never assigns by date. A visit's notes and their measures, and its intake with its consents, insurance cards and ID, follow the visit's episode. Records filed before episodes stay not assigned until a person assigns them; the owner assigns any record, reception assigns visits and authorizations, and a treating practitioner assigns their own visits, notes and plans and the patient's documents, messages and historical notes; every assignment is audited with its previous and new episode. An episode with a booked visit cannot close; closing records who and why, leaves every signed note and plan unchanged, and freezes the episode: it takes no new records and none of its records move. Episodes add no read rights: every record keeps its existing clinical access and audit. An authorization counts only visits filed to its own episode (records not assigned share one bucket); measure series, evaluation baselines and graphs are kept per episode; chart history filters by episode or by not assigned. **Acceptance evidence:** Open two episodes for one patient, document in both, and see visit counts, authorization use and outcomes kept apart. Find each newly added document in chart history, filter it by its episode when episodes exist, and reopen its original bytes as an entitled clinician.

### Reminders and patient communication

- **COMM-001 — Delivered email confirmations and reminders.** Balm sends booking confirmations, intake links, reminders (for example 48 and 24 hours before) and changes by email through the clinic's mail provider, records each delivery state, and keeps clinical detail out of the message. Provider acceptance is recorded separately from receiving-mail-server delivery. Resend and SendGrid callbacks authenticate the original bounded bytes and match the exact stored attempt and every recipient; missing callback keys disable intake, unknown or racing attempts are refused retryably, and duplicate or older events cannot overwrite newer terminal facts. Unknown submissions are retained for follow-up and never automatically resent. Moving one visit or a series sends its new times immediately with private confirmation links; another move or cancellation invalidates the old links. Local and demo suppression is recorded as not sent. Any future mail provider must supply the same recorded, authenticated delivery states before it ships. **Acceptance evidence:** Book a visit and see the confirmation and intake email delivered; advance the clock and see the reminders sent once each with delivery recorded; a failed delivery shows on the file. Inherits HIPAA-001: patient mail attempts require an active recorded BAA for the configured mail account and covered plan; removing it blocks later sends.

- **COMM-002 — Two-way text messages.** Balm sends reminders and confirmations by SMS through Twilio (or the clinic's own Twilio account) from a registered 10DLC number, only to patients who consented, honors STOP and HELP, respects quiet hours in the patient's time zone, and reads replies: C confirms, R asks for a new time, anything else goes to the front-desk inbox. **Acceptance evidence:** Send a reminder by SMS, reply C and see the visit confirmed, reply R and see a reschedule request, reply STOP and see no further texts; a patient without consent gets none. Inherits HIPAA-001: SMS enablement and each later send require an active recorded BAA covering the configured account and plan.

- **COMM-003 — Communication history on the file.** Every email, text, portal message, fax and logged call, sent or received, with delivery state, is kept on the patient's file and searchable by staff with access. **Acceptance evidence:** Exchange an email, a text, a portal message and a fax with one patient and log a call; the file lists all five with their states.

- **COMM-004 — Follow-ups and recalls.** The clinic configures sequences: post-evaluation welcome, missed-visit outreach, "no next visit booked" while a plan of care is open, discharge survey and review request, and recall at a set interval; each stops when its goal is met, respects consent and contact limits, and shows on the file. Owner and reception enroll only after recording the patient's explicit opt-in for that kind, and can stop or withdraw it at any time; practitioners read only their own patients' sequence history and agents are refused. Signed evaluations trigger welcome, no-shows trigger missed outreach, a nonexpired plan with no future booked visit triggers continuity outreach, signed discharge triggers the survey and review request, and the last attended visit anchors recall. The owner supplies public HTTPS survey/review addresses with no patient identifiers added. Delays and repeats use elapsed 24-hour days. All sequence kinds share the configured per-patient rolling 24-hour attempt cap, including failures or unknown outcomes. Welcome and discharge attempt once; accepted requests complete their goal, and failed/unknown outcomes stop for review without an automatic resend. Missed, no-next and recall stop on a future booking; no-next also stops on discharge or plan expiry, and each enrollment has a maximum attempt count. Emails are generic and link to portal sign-in; provider acceptance is labeled separately from delivery. **Acceptance evidence:** Leave a patient with an open plan of care and no next visit, see the outreach sent, book a visit and see the sequence stop.

### Telehealth

- **TELE-001 — Video visits from the calendar.** A visit can be a video visit: the patient joins from the reminder or portal without an account, the clinician from the calendar, through built-in video or a connected provider that signs a BAA (for example Zoom for Healthcare); the visit records the consent, location and start and end times, and the claim carries the telehealth place of service and modifier the payer requires. **Acceptance evidence:** Book a video visit, join as patient and clinician, document and sign; the claim shows POS 10 and modifier 95 for a commercial payer that requires them. Inherits HIPAA-001: future video connections must enforce the recorded active video BAA before provider use.

### Patient billing and payments

- **PAY-002 — Cards on file and payments at check-in.** Through the clinic's Stripe account, patients save a card or HSA/FSA card from intake or the portal and staff charge copays, coinsurance and balances at check-in, by saved card or Stripe Terminal, with Balm never holding card numbers; refunds need a person's approval. Owner or reception records the patient's explicit authorization for the fixed cent amount, number of months, first date and saved card, with evidence, authorizing patient and date. Monthly dates use the clinic's local calendar and the original day of month, clamped to that month's last day. Each installment is capped at current patient responsibility after posted payments, credits and outstanding charge reservations, and uses a durable payment ID. A decline, missing card, balance under Stripe's minimum or unknown provider response goes to human review; unknown sends are never charged again automatically. Reminder emails require recorded opt-in, carry only the clinic name and portal sign-in link, and follow clinic-local dates at a chosen day interval without bursts for missed dates. The owner sets the review age in elapsed days from the oldest unpaid invoice; owner and reception see the review list. Before any new patient receipt, superbill or payment capability ships, it is available through the signed-in patient portal under `PORTAL-004`. **Acceptance evidence:** Save a card in intake, charge a $30 copay at check-in, refund it with approval, and see the Stripe charge and refund mirrored on the patient's ledger. Open the portal as that patient and exercise each new receipt, superbill and payment door this clause adds.

- **PAY-003 — Payment links and online prepayment.** Staff text or email a payment link for a balance; cash-pay services can require a deposit or full prepayment at online booking; paid links post to the ledger automatically and expire. Before any new patient receipt, superbill or payment capability ships, it is available through the signed-in patient portal under `PORTAL-004`. **Acceptance evidence:** Text a link for a $120 balance, pay it, and see the balance at zero; book a prepaid service online and see the payment on the visit. Open the portal as that patient and exercise each new receipt, superbill and payment door this clause adds.

- **PAY-004 — Statements, receipts, adjustments and refunds.** Each patient has a ledger across visits; Balm produces receipts and periodic statements (delivered by email, portal and mail under `PAY-009`), records adjustments, write-offs and credits with a reason and approver, and applies credits to later visits. Before manual adjustments and refunds ship, they appear in `REPORT-002`'s adjustments, A/R and deposit reconciliation. Reception and the owner prepare immutable proposals; until `ROLE-002` adds a biller, the owner alone approves the exact SHA-256 once. Adjustments and write-offs reduce only an approved patient-responsibility invoice, never below zero. A credit records money actually received outside Balm and is allocated oldest invoice first, with unused credit applied to later approved visits. An external refund records money actually returned outside Balm, only from the named receipt’s unused credit; it sends no money and never claims a Stripe refund (`PAY-002` carries Stripe refunds). Every entry keeps its reason, unique reference, actual transaction date, preparer and approver; financial reports count its posting date, while receipts show the actual transaction date. Receipts keep fixed original bytes. The patient may opt in to email statements every 1–365 clinic-calendar days; one due notice issues a fixed PDF in the portal, skips missed cycles without a burst, records provider outcome, never resends an uncertain notice automatically, and stops when paid or explicitly stopped. Email notices contain no clinical detail. `PAY-009` carries clinic-wide monthly runs, age-based wording, preferences, holds, minimums, mailed batches and vendor files; it also inherits these immutable originals and portal access. `ROLE-002` must carry the biller’s prepare/approve/read obligations before adding that role. Before any new patient receipt, superbill or payment capability ships, it is available through the signed-in patient portal under `PORTAL-004`. **Acceptance evidence:** Bill three visits, pay one, write off part of another with approval, and send a statement that matches the ledger. Open the portal as that patient and exercise each new receipt, superbill and payment door this clause adds.

- **PAY-005 — Superbills.** For out-of-network patients Balm produces a superbill per visit or period with the practice and rendering NPIs, tax ID, CPT codes and units, ICD-10 codes, fees and payments. A period includes both selected clinic-local dates, selects approved invoices by visit date, preserves each invoice’s frozen practice/patient identity, and totals posted payments and insurance adjustments. One incomplete visit refuses the entire period document with the missing fields named. The desk, private pay link and patient portal all offer the period download under their existing access rules. Signed-note billed units frozen on the invoice take precedence over visit-entered CPT codes. Before any new patient receipt, superbill or payment capability ships, it is available through the signed-in patient portal under `PORTAL-004`. **Acceptance evidence:** Produce a superbill for a month of visits and check every required field against the signed notes and ledger. Open the portal as that patient and exercise each new receipt, superbill and payment door this clause adds.

- **PAY-006 — Payment plans and balance reminders.** Staff set up payment plans charged automatically to the card on file, and Balm sends balance reminders on a schedule until paid or a person stops them; accounts past a set age go to a human review list, never automatically to collections. Before any new patient receipt, superbill or payment capability ships, it is available through the signed-in patient portal under `PORTAL-004`. **Acceptance evidence:** Create a 3-month plan and see each charge post; leave a balance unpaid and see the reminder sequence and the review-list entry. Open the portal as that patient and exercise each new receipt, superbill and payment door this clause adds.

- **PAY-007 — Good Faith Estimates.** For uninsured and self-pay patients Balm produces a No Surprises Act Good Faith Estimate from the plan of care and fee schedule within the required timelines, keeps it on the file, and flags billed totals that exceed it by $400 or more. **ct-approved baseline (22 October 2026):** the owner records the patient’s explicit uninsured/self-pay choice; unknown coverage is never automatically classified. Expected quantities come from the recorded plan of care (or an owner-confirmed anticipated course before a plan exists) and the current cash service fee schedule. The owner reviews and issues the exact digest by the patient’s recorded choice of portal or paper; paper is printed from the original and its handoff or mailing is explicitly recorded, with no automatic outbound action. The original is also retained in the signed-in patient portal. Reception and billers can record requests and prepare coded drafts; only the owner issues. A changed-care request explicitly links the prior original and records the reason; its replacement is issued at least one federal business day before the next booked visit. Both originals stay available in the portal, and HIPAA-002 destruction cannot remove an estimate for six years after issuance. The original PDF never changes. Federal business days exclude weekends and observed US federal holidays; office closures do not extend the deadline. Requested and issued dates on the original use the clinic’s calendar, matching the deadline. Scheduling by staff or `/book` asks whether the patient is insured and will submit a claim; an uninsured or self-pay answer opens a request with its federal due date, shown on the owner’s schedule until issued. Each estimate lists service and diagnosis codes and is delivered in writing by the method the patient asked for, which is recorded. Issuance refuses missing service codes or diagnosis codes from the selected plan or referral. `ROLE-002` and future `PAY-009` estimate delivery inherit the exact-original and consent obligations. Before any new patient receipt, superbill or payment capability ships, it is available through the signed-in patient portal under `PORTAL-004`. Co-provider estimates, payer AEOBs and notice of GFE availability are carried by PAY-010. **Acceptance evidence:** Book a self-pay evaluation 4 business days ahead and see the estimate issued within 1 business day; book another 12 business days ahead and see it issued within 3 business days; request an estimate without booking and see it issued within 3 business days; each estimate is kept on the file, and billing above one by $400 raises the flag. Open the portal as that patient and exercise each new receipt, superbill and payment door this clause adds.

- **PAY-008 — Packages, memberships, products and gift cards.** Cash-pay practices sell visit packages and wellness memberships that draw down per visit, products (braces, tape) with state sales tax, and gift cards, all on the patient ledger. Before they ship, their sales and redemptions appear in `REPORT-002`'s charges, payments and deposits. Before any new patient receipt, superbill or payment capability ships, it is available through the signed-in patient portal under `PORTAL-004`. **Acceptance evidence:** Sell a 5-visit package, attend two visits and see three left; sell a brace with sales tax and redeem a gift card. Open the portal as that patient and exercise each new receipt, superbill and payment door this clause adds.

- **PAY-009 — Statement runs by mail, email and portal.** On the practice's cycle (monthly by default) Balm runs patient statements for every balance left after insurance has adjudicated (`INS-013`), above a set minimum and not on hold, with dunning messages by age (for example 30, 60 and 90 days) and a pay link (`PAY-003`). Each patient gets the statement by their recorded preference: an email or text notice carrying no clinical detail that opens the statement in the portal (`PORTAL-004`), or mail, sent either as one print-ready PDF batch laid out for double-window envelopes or as a statement file to a print-and-mail vendor or the clearinghouse's statement service under a BAA. The front desk also prints one patient's statement from the file. Each statement's bytes are fixed when issued, its delivery (channel, date, batch) is recorded on the ledger, a second run in the same cycle never duplicates a statement, and returned mail flags the address. Before statement runs ship, the portal (`PORTAL-004`) must list every issued statement and download its fixed original bytes, including older cycles after later charges or payments. **Acceptance evidence:** Run a cycle with one email-preference patient and one mail-preference patient; see one emailed notice opening the portal statement and one statement in the mailed PDF batch and the vendor file, the batch's per-patient amounts and total matching the ledger, both deliveries on the ledger, and a second run producing nothing new; run a later cycle after another payment, then open both issued statements in the portal and verify each keeps its original bytes and amount.

- **PAY-010 — Co-provider estimates, payer AEOBs and GFE availability.** **Manual boundary approved by ct (22 October 2026):** staff manually record each contributing provider’s written quote, identifiers, coded services, quantities, amounts and provenance with an attestation. The owner issues one fixed aggregate PDF with a separate subtotal for every responsible provider; the clinic’s billed comparison uses only its own subtotal. No provider requests or patient details are sent. An owner may also import a payer-authored AEOB PDF, explicitly match its patient and policy, review the exact original and record the patient’s request before publishing a fixed portal copy. It performs no payer adjudication, submission, polling or automatic delivery. These source originals and their approvals follow the six-year estimate retention floor. Balm displays notice of GFE availability on the booking page, patient portal and staff scheduling. No automatic provider coordination, insured-GFE submission or AEOB polling exists. No selected payer AEOB endpoint/account is held; live payer interoperability is unproved. **Acceptance evidence:** Manually record two provider quotes, issue the aggregate with per-provider subtotals and see the clinic’s billed-over-estimate comparison use only its own subtotal; import a payer AEOB, review it and see it in the portal.

### Insurance billing

- **INS-001 — Payers, plans, fee schedules and providers.** The practice records payers with their clearinghouse IDs, plans, contracted and standard fee schedules by CPT, each rendering provider's NPI, taxonomy, license and payer enrollment, and each patient's policies with coordination of benefits order. Each payer, and each plan whose contract differs from its payer's, holds its timed-unit method from a named set used by `CHART-006`: **CMS total-time** (the Medicare 8-minute rule, minutes pooled across timed codes), **AMA/CPT per-service substantial portion** (the 8-minute threshold applied to each timed code separately), or a **fixed per-unit threshold** in minutes the practice sets. Medicare, Medicare Advantage plans and any payer the practice marks as following Medicare default to CMS total-time; every other payer's method is chosen when it is set up, and the scrubber (`INS-005`) holds a timed charge to a payer with no method, naming the payer. Method changes are dated, and a charge uses the method in force on its date of service. Dated complete revisions use the exact policy plan name (blank means all plans); a plan revision takes priority over the payer baseline. Within each scope, contracted schedules take priority over standard, then the latest effective date applies. Existing payer setup remains the baseline until a dated revision covers the service. License facts are recorded by the owner with their state, number, valid dates and source, labelled unverified. Every current billing and grounded-review door inherits service-date resolution; issued originals keep their frozen basis. **Acceptance evidence:** Set up Medicare, a commercial payer and a fee schedule, enroll two providers, and see a charge priced from the right schedule. See Medicare default to CMS total-time, set the commercial payer to AMA/CPT per-service, and bill one note with 8 minutes each of 97110 and 97140 to each: Medicare's charge has 1 timed unit and the commercial payer's has 2. Add a payer with no method and see its timed charge held by the scrubber with the payer named.

- **INS-002 — Eligibility and benefits checks.** Balm runs real-time eligibility (X12 270/271) through Claim.MD or Availity at intake and before each episode, records active coverage, therapy benefits, copay, coinsurance, deductible remaining and visit limits, and shows Medicare therapy amounts used so far this year. It also re-checks in batches: every policy on the next business day's schedule, and every active policy on the first business day of each month. A response showing coverage ended, a change of plan (for example to a Medicare Advantage or Medicaid managed-care plan) or a visit limit used up flags the policy and each affected upcoming visit on the calendar and the daily close (`REPORT-004`). **Acceptance evidence:** Run eligibility for a test patient through the clearinghouse sandbox and see benefits, copay and remaining deductible stored on the policy. Run the next-day batch with one policy the sandbox returns as inactive and one moved to a Medicare Advantage plan, and see both visits flagged before the day starts.

- **INS-003 — Authorization and visit tracking.** Authorizations record payer, number, visits or units, CPT scope and date range; attended visits decrement them; Balm warns at a set remainder, warns or blocks booking past the limit or date, and shows "8 of 12 visits left" on the visit. Exact semantics: each visit selects the latest-starting authorization for its policy, episode, practitioner and clinic-local date (inclusive start/end; equal starts use descending record ID). An empty CPT scope means all codes. If any known billable CPT falls outside that selected scope, the whole visit is flagged as not covered by the current authorization and debits or reserves nothing. Visit allowances count attended visits and reserve booked visits. Unit allowances require an authorized total and positive units to reserve per visit; booked and attended-unsigned visits reserve that amount, while signed attended visits use their whole-visit billed units under the payer’s configured method (CMS pooled-time, AMA per-service or fixed per-code whole-minute thresholds), without filtering minutes before allocation. Remaining allowance is the total minus used and reserved, shown no lower than zero; the same visit’s reservation is released before a move. The per-authorization low remainder defaults to 2. Staff may acknowledge a warning but cannot override a block; returning public/portal bookings never override expired or insufficient allowance. Calendar cards, the visit panel, day sheet and file label the count as visits or units. Simultaneous accounting against several disjoint CPT-scope authorizations is not required today; `INS-004` (or its successor adding payer-specific authorization support) inherits that obligation by name when a payer needs it. New payer unit methods under `INS-001`/`CHART-006` inherit this accounting and daily-close obligation before shipping. **Acceptance evidence:** Add a 12-visit authorization, attend 8, see "4 left", try to book past the end date and be warned or blocked per setting. Unit-based and CPT-scoped authorizations must feed their remaining allowance and expiry into the owner’s audited REPORT-004 daily close before they ship, including booked reservations, and renewed coverage must clear its warning.

- **INS-004 — Prior authorization requests.** Staff prepare authorization requests with the signed plan of care, evaluation and outcome scores, submit them through Availity or the payer's portal, and track status and the decision on the referral. Exact semantics: an owner or biller freezes the signed evaluation, its therapist-signed plan of care and its recorded outcome scores as one immutable packet. Using the existing ROLE-002 clinical boundary, the owner reads the packet directly and a biller reads it only under the reviewed exact-digest release; the owner or a biller records an attested external Availity or payer-portal submission with its date and reference, then a dated approval or denial and its source. Balm neither submits this packet nor retrieves a payer decision. An approved decision creates exactly one INS-003 authorization, with the recorded payer allowance, dates, scope and booking rule, in the same transaction; it keeps the referral’s policy and episode. Duplicate or competing decisions cannot create another allowance. The request and its fixed originals, submission, decision and audit travel in PORT-001 archives and follow HIPAA-002 custody. INS-006 and AGENT-001 inherit these clinical authority and explicit external-work boundaries before adding transport or automation. If a payer requires simultaneous accounting across several disjoint CPT-scope authorizations, this clause (or its successor adding that payer support) must add it before that support ships; today INS-003 selects one latest matching authorization per policy and episode. CT ruling, 26 October 2026: the recorded-request default is approved with riders; no completion is accepted. Approved: one immutable exact-digest packet of the signed evaluation, its therapist-signed plan of care and its recorded outcome scores; no outbound action from this door; an external Availity or payer-portal submission recorded with its channel, date, reference and attestation, then a dated approval or denial with its source; exactly one INS-003 authorization from an approval in the same transaction and none from a denial; PORT-001 archive custody and HIPAA-002 reviewed destruction. Riders: staff prepare requests, so a biller may prepare one against the insured referral, and the owner reviews and approves release of that exact packet digest before the biller downloads it, with the same seven-day, revocable, audited access ROLE-002 gives payer records-request and appeal releases; the owner may still prepare directly, and reception, practitioners and agents stay refused. A submission may be recorded only by someone who received that exact packet through Balm, the owner after an audited download or a biller holding an approved release of that digest, and it names who performed the external submission. The created authorization carries the decision's recorded dates, CPT scope and booking rule, and concurrent approve and deny decisions leave at most one decision and one allowance. AGENT-001 and INS-006 inherit this clinical authority and exact-digest custody before they prepare, attach or transmit a prior authorization packet. **Acceptance evidence:** Prepare a request from a signed evaluation, record its submission and approval, and see the authorization created from the decision.

- **INS-005 — Claim creation and scrubbing.** Signed charges become professional claims (837P / CMS-1500) with rendering, billing and referring providers, place of service, diagnosis pointers, units and modifiers; a scrubber checks payer rules, the NCCI procedure-to-procedure edits and MUEs in force on the date of service (`CODE-001`), billable ICD-10-CM specificity, missing authorization or certification, and timely-filing dates before anything is sent. Owner-recorded payer requirements carry the actual contract/manual source; authorization and physician certification are enforced where required. Certification must cover the service date, treating practitioner and explicitly filed episode. Initial and correction deadlines use the dated payer instruction, calendar days and clinic-local date; an adjudication-based deadline needs the payer’s recorded decision date. Every prepared export and configured-adapter submission rechecks these requirements; no rule or filing extension is inferred from a payer name. **Acceptance evidence:** Create a claim from a signed visit with a missing referring NPI and a 97140 and 97530 pair that the loaded NCCI table edits; the scrubber names both with the table version, and the fixed claim, with the clinician's distinct-service attestation and modifier 59, passes.

- **INS-006 — Claim submission and acknowledgments.** Balm submits claims through Claim.MD (first) or Availity, records the 999 and 277CA acknowledgments, shows rejections with their reasons for correction, follows status (276/277), and prints CMS-1500 forms for payers outside the clearinghouse. Secondary and tertiary claims follow `INS-013`. Before any claim channel carries a prior authorization packet or other clinical attachment, it inherits INS-004's clinical authority and exact-digest custody. **Acceptance evidence:** Submit a batch in the clearinghouse sandbox, receive acceptance for one and a rejection for another, correct and resubmit, and print a CMS-1500 for a paper payer. Every added submission channel must feed the owner’s audited REPORT-004 daily close before it ships; a file export remains unsent, and only its actual recorded submission clears the item. Inherits HIPAA-001: every clearinghouse submission requires an active recorded BAA covering the configured gateway and enrollment.

- **INS-007 — ERA posting.** Balm imports electronic remittances (835) and posts payments, contractual adjustments and patient responsibility to each claim line with CARC and RARC codes, moves patient balances to statements once the last payer has adjudicated (`INS-013`), and matches the EFT deposit total. Lines for claims Balm did not send post against migrated claims under `MOVE-007` or wait in the unmatched-remittance queue; no line is dropped. Paper EOBs and payer checks post under `INS-012`. **Acceptance evidence:** Import a sandbox 835 covering paid, partly paid and denied lines; each line posts correctly and the deposit total matches the remittance.

- **INS-008 — Denials and A/R work queue.** Denied and unpaid claims form a work queue by payer, age and reason with the fix suggested from the CARC/RARC, corrected claims (frequency code 7), appeal letters from templates, and timely-filing deadlines; every action is recorded on the claim. **Acceptance evidence:** Receive a denial for a missing KX modifier, see it queued with the fix, send the corrected claim and see it paid.

- **INS-009 — Medicare therapy rules.** For Medicare beneficiaries Balm tracks the year's spending against the KX threshold (combined PT and SLP, separate OT) including amounts from other providers, applies the KX modifier when documentation supports it, flags the targeted medical review threshold, captures an ABN (CMS-R-131) for non-covered services, applies CQ/CO for assistant services, and holds each year's CMS amounts as dated settings. **Acceptance evidence:** Bill a beneficiary across the threshold and see KX applied with the documentation check; record an ABN for a maintenance visit and see the claim modifier.

- **INS-010 — Workers' comp, auto and injury cases.** Cases for workers' compensation, auto no-fault and personal-injury liens hold the claim number, adjuster, employer or attorney, and their own billing, authorizations and report requirements; the claim carries the PWK attachment indicator and Balm sends the required notes and reports to the carrier as the claim's attachments. **Acceptance evidence:** Open a workers' comp case, bill a visit to the carrier with the claim number and a PWK-referenced progress note, and send the required progress report to the adjuster.

- **INS-011 — Institutional claims for rehab agencies.** Practices enrolled as rehabilitation agencies bill on the institutional claim (837I / UB-04) with revenue codes, occurrence codes and the plan-of-care dates their payers require. **Acceptance evidence:** Configure a rehab-agency practice, bill a Medicare visit, and see an accepted 837I in the clearinghouse sandbox.

- **INS-012 — Manual payer payment posting.** Paper EOBs and payer checks (workers' comp, auto, small commercial payers, corrected remits) post in a batch: the biller enters the payer, check or EFT number, deposit date and check total, then posts each claim line with allowed amount, paid amount, CARC group and reason adjustments, patient responsibility (deductible, coinsurance, copay) and RARC remarks. One batch covers a standard single-claim payment, a group payment across many patients and claims, and multiple entries for one claim. Interest posts as its own line, and a recoupment or offset is applied against the claim it takes back from (a different claim from those the check pays), reopening that claim's balance. The batch closes only when posted lines plus interest minus recoupments equal the check total; the scanned EOB attaches to the batch; posting has the same effects as an ERA (`INS-007`): patient responsibility moves to statements and denials enter the work queue (`INS-008`). **Acceptance evidence:** Post a workers' comp check covering two claims (one with a CARC 45 contractual adjustment, one with deductible), with interest and a recoupment against a third claim; see the batch refuse to close while it is unbalanced and close once it balances to the check, each line show its CARC codes, the recouped claim reopen with its balance, and the deposit report match the check, in `REPORT-002`'s deposit reconciliation.

- **INS-013 — Secondary, tertiary and crossover claims.** After the primary payer adjudicates, Balm follows the patient's coordination-of-benefits order. When the primary 835 shows the claim was forwarded to another payer (claim status 19, 20 or 21 with the crossover carrier named), Balm records it as crossed over to that payer, sends no secondary claim of its own and waits for that payer's 835. Otherwise it builds the secondary 837P carrying the primary's adjudication: the other-subscriber and other-payer loops (2320, 2330) with the payer paid amount, and line adjudication (2430) with each line's paid amount, CAS adjustments and adjudication date; a tertiary claim carries both earlier adjudications. Payers outside the clearinghouse get a printed CMS-1500 with the primary EOB attached. Each payer's 835 posts to its own claim, and the patient balance moves to a statement only after the last payer has adjudicated, or after a set wait when a person decides to bill the patient. **Acceptance evidence:** A Medicare-primary claim for a patient with a Medigap plan returns a primary 835 forwarded to that plan; no secondary claim is created and the Medigap 835 posts. A commercial-primary claim with a commercial secondary sends a secondary 837P whose 2320 and 2430 loops carry the primary's paid amounts and adjustments and that validates as X12 5010 837P; the secondary posts from its own 835, and a tertiary claim follows the same way. The patient statement appears only after the last payer posts. Secondary and tertiary claims must appear in the owner’s audited REPORT-004 daily close before they ship, with each unsent payer claim remaining until its actual submission is recorded.

- **CODE-001 — Versioned code sets and edit tables.** Balm loads the code sets billing depends on, each versioned by effective date: ICD-10-CM from CMS's annual release (effective 1 October, plus any April update), searched by code, words and synonyms in the plan-of-care and note pickers, where only billable codes at full specificity can be pointed on a claim and a header code is refused with its billable children offered; HCPCS Level II from CMS's quarterly file; the CPT codes therapy bills, with descriptors loaded from a CPT data file the deployment licenses from the AMA (Balm ships no CPT descriptor text); and the NCCI practitioner procedure-to-procedure edits and medically unlikely edits from CMS's quarterly releases (1 January, April, July and October), each row with its effective and deletion dates and modifier indicator. The scrubber (`INS-005`) uses the table in force on the date of service; a pair whose modifier indicator allows it proposes modifier 59 or X{EPSU} only when the clinician attests in the note that the services were distinct, and a pair that allows no modifier is refused. A documented update command fetches each release, checks it against CMS's published file, records the version and reports what changed; re-running it is a no-op, and the daily close warns when a code set is past its next scheduled release. **Acceptance evidence:** Load two quarterly NCCI releases where a pair's edit starts in the later quarter, and scrub one claim dated before and one after; only the later is flagged, naming the table version. Point a header ICD-10-CM code and be refused with its billable children; see modifier 59 proposed only after the attestation; run the update command twice and see the second change nothing.

### Reporting and accounting

- **REPORT-001 — Operational reports.** Owners see visits, arrivals, cancellations and no-shows, plan-of-care completion (visits per episode, drop-off), new evaluations, practitioner utilization and productivity, referral conversion and visit counts for payroll, filtered by date, location and practitioner, and export every report as CSV. Only the owner sees these reports; every figure is an aggregate per practitioner with an all-practitioner total, never naming patients. Current location attribution follows the visit’s room for visits/evaluations, owner-assigned weekly hours for availability, the source note’s visit for a plan (latest plan for an episode), and the first episode visit for referral conversion. Unknown locations are explicitly Unassigned, including older anonymous facts; plan completion still counts the whole course, and these opaque location dimensions survive approved destruction. A date range is whole clinic-local dates in the clinic's time zone, inclusive at both ends, and a visit counts on the local date it starts. Visits count every visit by its current status (still booked, arrived, canceled, no-show); the no-show rate is no-shows out of arrivals plus no-shows. An episode of care (`REF-003`) with a plan of care counts once, in the range its first plan starts in: its planned visits (frequency times weeks) come from its latest-starting plan (ties: the higher plan id), whose therapist the row belongs to, and it counts every attended visit filed to the episode. A plan not assigned to an episode is one episode by itself: it counts attended visits with its own therapist, outside any episode, from its start date through the last day of its planned weeks. Either is completed once attended visits reach its planned visits, and dropped off when fewer were attended and no visit of that episode (or, for an unassigned plan, with that therapist) is booked after now. New evaluations are signed initial-evaluation notes, dated by their visit (or by signing when no visit is linked). Available time is each practitioner's current weekly hours on every date in the range except clinic holidays, in wall-clock minutes; utilization is booked, attended and no-show minutes out of available minutes, productivity is attended minutes out of available minutes, and rates are percentages rounded to one decimal. Visit counts for payroll are attended visits and their booked minutes by practitioner and service. This clause is done when every capability that exists today conforms; `ROLE-002` carries the current room-location filter before its location manager ships; `SCHED-007` inherits it for future location/availability doors; referral conversion is done under `REF-001` and episode counting under `REF-003`. **Acceptance evidence:** Run a month of synthetic visits and see each figure match a hand count; export each report and reopen it.

- **REPORT-002 — Financial reports.** Charges, payments, adjustments, A/R aging by payer and patient, collections per visit, days in A/R and deposit reconciliation, exported as CSV. Until `ROLE-002`'s biller exists the owner alone sees these reports, and each patient named on the aging list is audited on that file. A period is whole clinic-local dates in the clinic's time zone, inclusive at both ends. Charges are approved invoices by date of service; payments (insurance by ERA, card, desk) and ERA adjustments count on the day they were posted; collections per visit is payments posted in the period divided by attended visits in the period, rounded to the cent; A/R is what invoices served by the end of the period still owe after payments and adjustments posted by then, aged in days from the date of service to the last day (0-30, 31-60, 61-90, 91-120, over 120) and owed by the payer while the invoice's claim is open there, otherwise by the patient, exactly as each patient's ledger divides it; days in A/R is that A/R divided by average daily charges over the period, to one decimal. Balm reads no bank account and no Stripe payouts, so deposit reconciliation lists the money Balm recorded as it reaches the bank (each ERA check or EFT with its trace number and amount, card payments by the day Stripe took them before fees and payout timing, desk payments by day) with what was posted to invoices, held as patient credit or left unposted, for the owner to compare with statements; it never claims a bank match. This clause is done when every money record that exists today conforms; `INS-012` (paper EOB batches, interest and recoupments), `PAY-004` (manual adjustments and refunds) and `PAY-008` (packages, products and gift cards) add their records to these reports and deposits before they ship, and `ROLE-002` gives the biller these reports. **Acceptance evidence:** Bill, post an ERA and card payments for a month, and see the A/R aging and deposit report match the ledger.

- **REPORT-003 — Outcomes and MIPS quality reporting.** Outcome scores aggregate by diagnosis, practitioner and payer. For MIPS, the practice picks its quality measures from the measures CMS lists for PT, OT and SLP clinicians for the performance year (for example #155 Falls: Plan of Care, #182 Functional Outcome Assessment and #217 to #222 Functional Status Change), held as dated settings per performance year; each signed note of an eligible encounter records the measure's denominator, numerator or exclusion from the note's own fields, and each clinician sees their performance rates during the year. Balm submits through two named paths: for practices that may report Medicare Part B claims measures, the quality data codes go on the eligible claim lines Balm sends (`INS-006`); and for every practice, Balm produces the year's measurement sets as a CMS QPP Submissions API JSON file, which the practice uploads to qpp.cms.gov or hands to a QCDR such as APTA's Physical Therapy Outcomes Registry. **Acceptance evidence:** Record outcome measures across 20 episodes and see the change by practitioner; sign notes for eligible Medicare encounters and see the quality data codes on each claim line pass the scrubber; export the year's measurement sets and see the file accepted by the QPP Submissions API sandbox, with each performance rate matching a hand count.

- **REPORT-004 — Daily close.** One screen lists what stands between today and getting paid: unsigned notes, plans of care pending or late (`CHART-003`), visits without charges, uncollected copays, claims not sent, intakes not returned and authorizations running out, with one click to each. The owner’s aggregate lists current outstanding work through today in the clinic’s time zone, including backlog, with no note text and an access audit for every named patient; existing practitioner-scoped documentation views remain. It includes every unsigned draft and attended visit lacking a signed note; the latest pending, late, missing or expired plan for each patient and clinician; attended visits without a non-void charge (an attendance-created draft is a charge awaiting review); attended or checked-in visits whose copay exceeds successful visit copays plus patient payments posted to its invoices, counting posted copays once and excluding payer payments or unallocated credit; unsent claims, including exports not sent by Balm, and insured approved invoices without a claim; patients seen or booked through today without the current published intake; and active authorizations with at most two unreserved visits or expired authorizations leaving future visits uncovered. Reservations include future booked visits. Completed work disappears on the next read. Future plan/certification doors (`CHART-003`), unit authorizations (`INS-003`), submission channels (`INS-006`) and secondary claims (`INS-013`) inherit this daily-close obligation before they ship. **Acceptance evidence:** End a day with one unsigned note, one late plan of care, one uncollected copay and one unsent claim; the daily close lists all four, and clearing each empties the list.

- **ACCT-001 — Accounting handoff.** Balm syncs charges, payments, refunds, processor fees and deposits to QuickBooks Online or Xero (or Pantry), by day and by payment method, with mappings the owner reviews and every sync recorded and repeatable without duplicates. The current QuickBooks door requires a native owner session, explicit connection consent, reviewed USD control accounts and approval of the exact frozen journal. Days use the clinic time zone: charges enter on approval, other money on its recorded posting date, and owner-recorded allocated payouts supply deposits and fees without claiming bank verification. Source reservations, saved request identities and independent provider readback prevent duplicate posting and hold changed or uncertain books for reconciliation. No patient identity or clinical fields leave the clinic; archives preserve journal facts and require a fresh company connection. `AGENT-005` retains its own execution authority and recipient consent obligations: an accounting handoff never authorizes an ERA request, refund or allocation correction. **Acceptance evidence:** Connect a QuickBooks Online sandbox, sync a day with card, ERA and cash payments, run it again, and see the books match without duplicates.

### HIPAA, audit, retention and portability

- **HIPAA-001 — HIPAA deployment readiness.** Before real patient data is entered, Balm walks the owner through a readiness check: the hosting account and every enabled subprocessor (mail, SMS, fax, clearinghouse, video, scribe model, backups) listed with whether a signed BAA is on file, encryption at rest and in transit, the HIPAA security risk analysis worksheet, and the named privacy and security officers; integrations that need a BAA stay off until one is recorded. Each listed subprocessor names the plan or edition its BAA requires (for example Twilio signs a BAA only on its Security or Enterprise edition), and the hosting BAA itself is `HIPAA-005`. **Acceptance evidence:** Enable SMS without a recorded BAA and be refused; record the BAAs and the risk analysis, and see the readiness check pass and its record exportable. Integration readiness records are native-owner-only, audited owner-entered facts, not legal verification or a compliance claim. Each BAA records the provider and account, covered plan, signed date and original reference; revocation keeps its history and blocks later attempts. Every existing patient-mail, SMS, scribe-model, clearinghouse and backup edge checks its recorded BAA; staff authentication remains available for remediation. Fax and video remain unconnected. Hosting eligibility, real-patient creation gates and live backup receipts remain HIPAA-005; a passed integration checklist cannot satisfy those duties.

- **HIPAA-002 — Retention and destruction.** Health records are kept for the retention period the practice's state requires (with minors kept until majority plus the state's period). Balm ships a dated table of each US state's adult and minor retention periods with its source, sets the practice's periods from its state, and lets the owner choose longer ones; the longest of the state period, any payer requirement the practice records and the practice's own choice applies. Deletion is refused inside it, and records past it are destroyed only after the owner approves a destruction list that is itself kept. Legal holds block destruction. The later of the adult deadline and majority plus the applicable minor period applies; later clinical entries extend retention, and leap-day anniversaries use March 1. Unresolved state rules fail closed: an ambiguous sourced rule needs the owner’s documented longer rule, and an unresearched rule cannot authorize destruction. Every row of the table is reviewed against its primary statute or regulation (never a secondary summary alone) and names its section and retrieval date; a row is verified only when that source gives complete adult and minor periods for the whole PT/OT/SLP practice, and otherwise it is ambiguous, including when the source is silent on duration. A period stated without a starting point (Indiana’s seven years) is counted from the last treatment. A preview expires after 15 minutes and its digest binds the exact inventory, policy and record version. Approved destruction removes clinical content, patient identifiers and private tokens, scrubs patient free text from audit details only, and keeps anonymous dated business facts, immutable audit sequence/action/time/actor/opaque references and a destruction receipt. ERASE-001’s latest-journal/destination-known restore fence applies; a fresh destination without later erasure evidence cannot know later destruction. There is no universal seven-year HIPAA retention period. **Acceptance evidence:** Choose the practice's state and see its adult and minor periods applied from the shipped table with the source named; set a 7-year retention, try to erase a treated patient and be refused, advance past retention, approve destruction and see the destruction record.

- **HIPAA-003 — Disclosure accounting and access reports.** The owner or an authorized staff member records a completed release made outside Balm to anyone other than the patient (payers excepted as HIPAA allows), including recipient, actual release date, purpose or legal basis, and records released. The form is labeled "Record a completed disclosure" and never implies Balm sent anything. Entries are immutable: corrections are new entries linked to the original, which remains unchanged. The owner can produce a patient's access report and accounting of disclosures for any date range, listing every disclosure for that patient in the range and individual recorded accesses. Sending records through clinical exchange or by fax stays in `CHART-011` (Clinical letters and exports) and `REF-002` (Fax in and out). **Acceptance evidence:** After releasing records outside Balm to an attorney and a referring provider, use "Record a completed disclosure" as the owner or authorized staff to record each recipient, actual release date, purpose or legal basis, and records released. Verify the form says it records a completed release and never implies it sent records. Refuse edits and deletion of either entry; correct one by adding a new entry linked to its original, keeping both unchanged. Produce the patient's accounting of disclosures and access report for an inclusive clinic-local date range; every disclosure in that range, including the linked correction, appears, individual accesses are listed, other patients and out-of-range events are excluded, and CSV downloads and archive restore preserve the entries and links. Clinical sends and fax delivery are accepted under `CHART-011` and `REF-002`.

- **HIPAA-004 — Backups and recovery.** The clinic is backed up automatically to storage the owner controls, encrypted, with a restore drill the owner can run to a separate place and a recovery point shown on the dashboard. **Acceptance evidence:** Enable automatic backups, change data, restore the last backup to a scratch deployment and see the change present. Inherits HIPAA-001: backup configuration, resumption and every storage attempt require an active recorded storage BAA, even for encrypted archives.

- **HIPAA-005 — BAA-covered hosting and real-patient mode.** Balm documents and supports deployments where a 1 to 10 clinician practice can get every service that holds its PHI (the app, database, files, backups and logs) under a business associate agreement, and refuses real patient data on any deployment whose hosting is not recorded as covered. The supported deployments are: (1) **AWS**, whose BAA any account accepts self-service in AWS Artifact: Balm's documented AWS stack runs the same Worker code under workerd in a container on Amazon ECS, with the database on an encrypted Amazon EBS volume, files and backups in Amazon S3 with SSE-KMS and logs in Amazon CloudWatch Logs, every one of them on AWS's HIPAA-eligible services list; (2) **Cloudflare under a signed Cloudflare BAA** (offered through Cloudflare sales, reported to require an Enterprise plan), where the readiness check lists each Cloudflare product the deployment uses (Workers, D1, R2, Queues, Logpush) and blocks until the owner records that the signed BAA covers each one; (3) **practice-owned hardware** in the practice's own office, with no hosting business associate, where the owner records full-disk encryption and the off-site backup target's BAA (`HIPAA-004`). Until the hosting record is complete, the deployment runs in demo mode: creating a patient through the app, `/book`, intake, an import or a migration is refused with a pointer to the readiness check, and only synthetic demo patients exist. Completing the record turns on real-patient mode, which is itself audited, and removing it returns new-patient creation to refused. **Acceptance evidence:** On a deployment with no hosting BAA recorded, try to create a patient in the app, book at `/book` and import a patient CSV outside demo mode, and see each refused with no patient written; record a Cloudflare BAA that omits R2 on a deployment using R2 and still be refused; deploy the documented AWS stack, see the readiness check list each AWS service it uses as HIPAA-eligible, record the AWS BAA, and create a patient; read the audit row for the switch to real-patient mode. Inherits HIPAA-001: real-patient mode must require the owner-recorded integration readiness check as well as this clause's hosting eligibility and live receipts; recording a hosting BAA in the integration register alone never enables real-patient mode.

### Moving in

- **MOVE-002 — Rehabilitation EHR migration.** Balm migrates a rehabilitation EHR practice from three named sources, each read in its documented layout. (1) **the rehabilitation EHR EMR Data Export package:** patient demographics become patients; cases become episodes of care (`REF-003`) with their referring physician, payer and the case's visit and authorization fields as authorizations (`INS-003`); payers become payers (`INS-001`); referring physicians become referring providers (`REF-001`); users map to staff and roles; finalized patient documents, eDocs and facility documents attach as PDFs to their patient and episode (`CHART-009`). (2) **Scheduler appointment report** (CSV or Excel export): future and recent appointments land on the calendar with their practitioner (mapped from the the rehabilitation EHR user), service (mapped from the appointment type), location and the episode's authorization. (3) **the rehabilitation EHR Billing accounts receivable aging and patient balance reports**, or the practice's billing vendor's accounts receivable export: open claims with their payer, dates of service, billed and balance amounts and payer claim control numbers (`MOVE-007`), and each patient's opening balance. The data export does not carry the scheduler, payment history or reports, so Balm states in the reconciliation that payment history arrives as opening balances, not line history. The owner reviews the mapping before apply, and the import has an undo. Before additional chart-document migration ships, imported originals and their patient and episode references join CHART-009 searchable history under its clinical access and audit rules. **Acceptance evidence:** Import fixtures built from each documented layout (a Data Export package, a scheduler report and an accounts receivable aging and balance report) and reconcile counts and balances under `MOVE-006`; see future appointments on the calendar with the right practitioner, service and authorization link, an overlapping pair for one practitioner landing as booked (`SCHED-010`), and an unmappable practitioner named in the report; open a migrated chart PDF in its episode; book and attend against a migrated authorization and see its remaining visits drop. Find each newly added document in chart history, filter it by its episode when episodes exist, and reopen its original bytes as an entitled clinician.

- **MOVE-003 — Clinic management migration.** Balm migrates a clinic management system clinic from five named sources, each read in its documented layout. The clinic management system has no single full export: the reports need a clinic management system user with Full Access, and the chart export goes only to the Account Owner, so Balm's move-in checklist names who must run each one. (1) **Patient list CSV** (Reports): patients with demographics, contact details, primary practitioner and referral source. (2) **Appointments CSV** (Reports): past and future appointments with practitioner (mapped to staff), treatment (mapped to a service), location, time and state (booked, arrived, no-show, canceled); future ones land on the calendar in the clinic time zone. (3) **Batch chart export**, the bundle of PDFs the clinic management system support prepares on request and sends to the Account Owner: each patient's chart entries attach as PDFs to that patient's chart (`CHART-009`), matched on the patient name and birth date printed in each file, and a file matching no patient or more than one is held for a person to file. (4) **Per-patient intake form exports**, which the batch export leaves out: each exported intake PDF attaches to its patient the same way. (5) **Invoice and accounts receivable reports**: each patient's opening balance, and each open insurer invoice as a migrated claim (`MOVE-007`). The reconciliation states what does not arrive: chart entries arrive as PDF documents, not structured notes, measures or goals; intake forms arrive only for the patients whose forms were exported; payment history arrives as opening balances, not line history; saved cards stay with the clinic management system Payments, so patients save a card again (`PAY-002`); and online booking rules and shifts are set up again (`SETUP-001`). The owner reviews the mapping before apply, and the import has an undo. Before additional chart-document migration ships, imported originals and their patient and episode references join CHART-009 searchable history under its clinical access and audit rules. **Acceptance evidence:** Import fixtures built from each documented layout (a patient CSV, an appointments CSV, a batch chart export, two per-patient intake PDFs, and the invoice and accounts receivable reports). See future appointments on the calendar with the right practitioner and service, and each chart PDF on the right patient, with a PDF that matches nobody held for filing. Reconcile patient, appointment, document and balance totals under `MOVE-006`, with the patients whose intake was not exported and the opening-balance treatment named in the report. Find each newly added document in chart history, filter it by its episode when episodes exist, and reopen its original bytes as an entitled clinician.

- **MOVE-004 — Therapy practice migration.** Balm migrates a therapy practice system practice from three named sources, each read in its documented layout and run by the Account Owner or a practice manager the therapy practice system permits. (1) **Client data export for all clients** (not the per-client or per-clinician export, which Balm names as partial if given): per client, demographics and contacts become the patient; diagnoses become the diagnoses of an episode (`REF-003`); notes and documents attach as PDFs to the chart (`CHART-009`); billing documents (invoices, statements, superbills, claims) attach to the ledger; secure messages join the communication history (`COMM-003`). An export run with **Include separated data** unchecked leaves out restricted clients' diagnoses, billing documents and messages; Balm records whether separated data was included (from the export where it says so, otherwise from the owner's answer at upload) and, when it was not, names the export incomplete and lists the affected clients in the reconciliation. (2) **Analytics report CSVs**: the appointments report (past and future appointments with clinician, service, location and attendance status), whose future visits land on the calendar with the right practitioner and service, and the client details report (insurance policies with payer, member ID and subscriber), whose policies land under `INTAKE-004` and `INS-001`. (3) **Billing and insurance reports**: client balances become opening balances, and unpaid insurance claims become migrated claims (`MOVE-007`). The reconciliation states what does not arrive: notes arrive as PDF documents, not structured notes or measures; payment history arrives as opening balances; saved cards stay with the therapy practice system's processor, so patients save a card again (`PAY-002`); separated data is absent unless it was included. The owner reviews the mapping before apply, and the import has an undo. Before additional chart-document migration ships, imported originals and their patient and episode references join CHART-009 searchable history under its clinical access and audit rules. **Acceptance evidence:** Import fixtures built from each documented layout (an all-clients data export, the appointments and client details report CSVs, and the billing and insurance reports). See future appointments with the right practitioner and service, and each client's notes and documents on the right patient. Reconcile counts and balances under `MOVE-006`. Import a second export made with separated data excluded and see the reconciliation name it incomplete and list the affected clients. Find each newly added document in chart history, filter it by its episode when episodes exist, and reopen its original bytes as an entitled clinician.

- **MOVE-005 — Full allied-health practice migration.** Beyond patients, Balm moves an allied-health practice system account with the practice's API key through the allied-health practice system's documented REST API: `patients`, `practitioners` (mapped to staff), `appointment_types` (mapped to services), `businesses` (mapped to locations), `individual_appointments` and `group_appointments` (to the calendar), `treatment_notes` (as read-only historical notes keeping their template sections, attached to their patient), `patient_attachments` (to the chart, `CHART-009`) and `invoices` (opening balances and open invoices). Without an API key it reads the allied-health practice system's CSV exports of patients, appointments and invoices instead, and names in the reconciliation that treatment notes and attachments then do not arrive. It reads US date formats. Before additional chart-document migration ships, imported originals and their patient and episode references join CHART-009 searchable history under its clinical access and audit rules. **Acceptance evidence:** Import an allied-health practice system account with US dates through each named endpoint, from a fixture built from the allied-health practice system's public API documentation, and reconcile it under `MOVE-006`; import the same account using CSV exports and see the missing notes and attachments named. Find each newly added document in chart history, filter it by its episode when episodes exist, and reopen its original bytes as an entitled clinician.

- **MOVE-006 — Reconciled cutover.** Every migration ends with a reconciliation report: patient, appointment, document and invoice counts and balance totals in the source and in Balm, every unmapped record explained, and open A/R and authorizations carried, with run-out of the carried A/R under `MOVE-007`; the owner approves the cutover. **Acceptance evidence:** Run a migration with one unmappable record and one balance difference; the report names both and cutover waits for the owner's approval.

- **MOVE-007 — Pre-cutover A/R run-out.** Open claims carried from the old system keep their source claim number, patient control number, payer claim control number, dates of service, billed amount and balance. For the months after cutover, Balm matches every remittance line (835 under `INS-007` or paper under `INS-012`) first to its own claims, then to migrated claims by patient control number or payer claim control number, then by patient, date of service and billed amount; a matched line posts against the migrated balance, and a line that matches nothing goes to a named unmatched-remittance queue with its payment held in suspense, so the deposit still balances and no line is dropped. A denied or rejected migrated claim can be completed with its charge lines and corrected or resubmitted from Balm (frequency code 7 with the original payer claim control number). A run-out report shows migrated A/R remaining by age and payer until the owner closes the run-out. **Acceptance evidence:** Import an 835 mixing one migrated claim, one Balm claim and one line matching neither; the first two post to their claims, the third waits in the unmatched queue, the deposit balances, and the migrated balance reconciles to the imported A/R aging. Correct a denied migrated claim and see it resubmitted as frequency 7 with its original payer claim control number.

### Mobile and integrations

- **MOBILE-001 — Tablet-first clinician web app.** Clinicians run the schedule, check-in, notes, home programs and payments on a tablet or phone browser at the treatment table, under `BALM-001`’s existing role limits: practitioners check in, document and assign exercises; the owner or reception handles payments. A clinician-owner can complete the entire visit. A draft note survives a dropped connection in the same open tab: Save queues one immutable request, reconnect retries that same request and creates at most one saved revision, and later edits remain visible until separately saved. Clinical draft text stays in tab memory only, with no local/session storage, IndexedDB, service worker or disk cache. Closing or reloading warns before discarding unsaved work. A 401/403 stops automatic retries until sign-in as the original author and an explicit Save; a changed/signed revision refuses overwrite and keeps the unsaved text for comparison. Signing and scribe requests are never replayed offline. Future scheduling (`SCHED-002`–`SCHED-010`), charting (`CHART-002`–`CHART-013`), home program (`PORTAL-002`, `PORTAL-007`) and payment (`PAY-002`–`PAY-009`) capabilities inherit tablet/phone usability before shipping, and new note editors inherit this guarded draft behavior. **Acceptance evidence:** Complete a visit end to end on a tablet viewport, drop the network mid-note and see the draft kept and saved on reconnect.

- **MOBILE-002 — Native clinician and patient apps.** iOS and Android apps give clinicians the schedule, notes, scribe recording and secure push alerts without PHI on the lock screen, and give patients their portal, home program, messages and payments. **Acceptance evidence:** Install both apps from TestFlight and an Android test track, record a scribe visit, sign the note and see a push alert with no clinical text.

- **INTEG-001 — API, webhooks, agent keys and FHIR export.** Owner-bound, scoped API keys (today's agent keys) and webhooks expose scheduling, patients, charges and payments to the practice's own tools; a patient's record exports as FHIR R4 US Core resources. Every key acts within `BALM-001`'s roles and is audited. **Acceptance evidence:** Create a scoped key, read appointments and prepare an invoice through the documented commands, receive a webhook for a booking, and export a patient as FHIR that validates against US Core.

- **INTEG-002 — Opt-in marketing contact sync.** Patients who opted in to marketing sync their name and email (never clinical data) to Mango or Mailchimp, and opting out in either place stops the sync. **Acceptance evidence:** Opt one patient in and one out, sync, and see only the opted-in contact with no clinical fields.

### Agent surface (Base-delivered)

#### BASE-AGENT-001 — One MCP door per seed

*Tier:* Agent surface

**Requirement.** Every seed, hosted or self-hosted, serves one remote MCP endpoint at `/mcp` over Streamable HTTP. It speaks the current revision (2026-07-28) and accepts 2025-11-25 clients through the twelve-month deprecation window. It implements `server / discover`, tools, resources and prompts. Lists are deterministic and carry `ttlMs` and `cacheScope: "private"`. Roots, Sampling and Logging are not served.

**Acceptance.**
1. `server / discover` returns the supported versions, capabilities, `serverInfo` and instructions.
2. A 2026-07-28 request works with no handshake, and a 2025-11-25 client completes `initialize` and lists the same tools.
3. An unsupported version returns `UnsupportedProtocolVersion`.
4. Two `tools / list` calls return the same order, with cache fields.
5. A foreign Origin returns 403, and a header and body method mismatch returns `HeaderMismatch`.
6. An oversized body returns 413 with no effect.

#### BASE-AGENT-002 — The seed's jobs are tools, through the UI's own actions

*Tier:* Agent surface

**Requirement.** Each Core job a person does in the product is a tool. Where one is not, the Agent surface says why: it runs on a device, it is a person's interactive screen, it belongs to a connector or the import door, or it is an installation fact. Risk is never the reason: a risky job is a tool with its class (BASE-AGENT-006). Tools are named `<seed>.<area>.<verb>` and declare input and output schemas and truthful annotations. Each calls the same server action as the UI, so validation and authorization are written once, and the seed's embedded agents use the same registry. A business refusal returns `isError` with the seed's stable error code.

**Acceptance.**
1. The Core clause ids in each tool's `_meta`, with the not-a-tool reasons that `server / discover` serves, cover every Core clause in the contract, and no reason is risk; the harness and `rer check` fail on a gap.
2. Each tool's fixture result validates against its `outputSchema`.
3. Read tools declare `readOnlyHint`; tools that can carry destructive declare `destructiveHint`, and tools that can carry external declare `openWorldHint`.
4. A refusal returns the same error code the UI gets for the same action.
5. The UI action and its tool, on the same fixture, give the same record state and the same audit event type.
6. The seed's embedded agents appear in the audit as calls to the same tools.

#### BASE-AGENT-003 — Records are resources

*Tier:* Agent surface

**Requirement.** Each primary record type has a URI template, and tools return `resource_link`s to the records they touch. A read returns exactly the fields the caller's role sees in the UI. File bytes count against any byte budget on the grant. A record the caller cannot open reads as not found, identical to a missing id. Text from customers, imports or files carries an untrusted marker in `_meta`.

**Acceptance.**
1. `resources / templates / list` names every record type in the Agent surface.
2. Reads as two roles return exactly what the UI shows each.
3. An out-of-scope id and a missing id give identical responses.
4. A write's `resource_link` reads back the new state.
5. Bytes over budget return `budget_exhausted` and no partial content.
6. Customer-sourced text carries the untrusted marker.

#### BASE-AGENT-004 — Business identity and short-lived, audience-bound tokens

*Tier:* Agent surface

**Requirement.** The door is an OAuth 2.1 resource server. Its RFC 9728 metadata names the authorization servers this installation trusts. That is the paired Business when Business provisioned it, verified with the owner-claim trust the installation already holds for its import door; otherwise it is the seed's own sign-in. Access tokens are RFC 9068 JWTs with `aud` set to the seed's canonical MCP URI, `sub` the sponsoring person, `act` the agent (RFC 8693) with its specialist, scopes per tool family, and a lifetime of 15 minutes or less (5 by default). The policy scopes rules on the sponsor, agent and specialist the token names. The consent behind the tokens can last longer and is revocable. Tokens travel only in the Authorization header, and there is no passthrough.

**Acceptance.**
1. An unauthenticated call returns 401 with `resource_metadata`, and the metadata names the trusted servers and scopes.
2. A Business token for this seed works, and the same token sent to a sibling seed returns 401.
3. An expired token returns 401, and a token with a lifetime over 15 minutes is refused.
4. A read-only token calling a write tool returns 403 `insufficient_scope` with every needed scope in one challenge.
5. A token in a query string is refused and not logged.
6. Revoking consent in the seed or in Business refuses the next call within 60 seconds.
7. After unpairing, Business tokens are refused and the seed's own sign-in still works.

#### BASE-AGENT-005 — An agent acts as a person in a role, never more

*Tier:* Agent surface

**Requirement.** Every call is authorized as the sponsoring person's current role and access (BASE-ACCESS-004), intersected with the grant's resources, actions and budget. A grant only narrows. No call widens the calling agent's own authority. A call that would widen its own grant or its sponsor's role, or change the company policy or Pause, is refused with `self_escalation`, whatever the policy says; narrowing its own grant is allowed. Other access and security changes are ordinary actions in the access and security classes. An agent never acts after its sponsor is suspended. Anything an agent reads (records, files, emails, imports, other seeds' results) is data and cannot change its scope, its targets or a call's class.

**Acceptance.**
1. For each role fixture, every tool's allow or deny through MCP equals the UI's for the same action.
2. A one-folder, read-only grant holds, and widening through arguments is refused.
3. Downgrading the sponsor changes the next call's result, and suspending the sponsor returns 401.
4. Calls that widen the agent's own grant or its sponsor's role, or change the policy or Pause, return `self_escalation` and change nothing, even under a policy with every class autonomous; dropping a scope from its own grant runs.
5. An injection fixture yields no out-of-grant call and no change of class: record text asking for a wider action, or claiming that a recipient is internal.

#### BASE-AGENT-006 — Every action declares its risk class

*Tier:* Agent surface

**Requirement.** Classes come from the fleet list in RISK-POLICY.md: standard, external, money, commitment, accounts, gated, access, security, destructive, sensitive and live. In the registry, each tool declares the classes it can carry and a server-side classifier that decides them per call from the arguments, current records and, for gated, the provider's answer. The classifier also supplies each class's facts: the measure (items, recipients, amount and currency, people or records), the counterparty (internal, known, new or public), the direction for access, the provider and step for gated, and the data kind for sensitive. A classifier never reads a flag, label or claim supplied by the agent or by record text. A seed cannot add a class; it proposes one for the fleet list.

**Acceptance.**
1. Every tool in `tools / list` carries its possible classes in `_meta`, equal to the Agent surface table.
2. For each tool, fixture calls cover every class it can carry, and the computed classes and facts equal the fixture's expected values.
3. An argument or record text asserting a class or a confirmation (`internal: true`, `confirmExternal: true`) leaves the computed classes unchanged.
4. Money calls carry amount and currency, external calls their counterparty and recipient count, access calls their direction, and destructive calls their item count.
5. No tool in `tools / list` declares a class outside the fleet list, and `rer check` fails on one.
6. A refused call's audit row still records its computed classes.

#### BASE-AGENT-007 — The company's policy decides, at one chokepoint

*Tier:* Agent surface

**Requirement.** Every agent door calls one decision function: MCP, the integration API with agent tokens, and the seed's embedded agents. It evaluates the call's classes against the company's policy, as above. The seed ships no dispositions and fills no gap with one: agent access opens only under a complete policy that setup has asked for (RISK-POLICY.md), and before then every agent call returns `policy_unset` with the setup link and changes nothing. *Autonomous* runs the call. *Review* runs it and adds it to the review feed. *Approval* saves a pending action with server-computed facts and returns `input_required`, with a URL-mode elicitation to the seed's approval page and a pending handle. Each person the rule names approves the exact saved revision in a signed-in browser, and changed inputs need a new approval. The retried call returns the result and a receipt. A rejection returns `approval_rejected`, and a lapse past the wait the rule sets returns `approval_expired`. *Blocked* returns `policy_blocked`, naming the class, rule and revision.

**Acceptance.**
1. The Base harness runs each tool under each disposition for every class it can carry, and sees it run, run and enter the review feed, wait with no effect, or be refused.
2. Before setup is complete, the setup page lists every class the seed's tools carry with examples and no answer pre-selected, an agent call returns `policy_unset` with the setup link and changes nothing, and an incomplete revision cannot be confirmed; a `*` rule completes it, and a tool an upgrade adds with an unanswered class appears in `tools / list` once that class is answered, while the other tools keep running.
3. Under "money autonomous up to $500, approval up to $10,000, blocked above", calls of $400, $600 and $20,000 run, wait and are refused; a per-day cap sends the call that crosses it to the next rule.
4. A call carrying two classes takes the stricter disposition.
5. An approval shows server-computed facts and an expiry, returns the URL elicitation and a handle, and completes once after the named approver approves; a changed input needs a new approval, and a rejection or lapse leaves no effect.
6. The same call through MCP, the integration API and an embedded agent gets the same decision.
7. A policy change applies to the next call within 60 seconds, and the audit cites the new revision.
8. A policy document with a bad signature or another Business's id is rejected, and the door keeps the last valid revision.

#### BASE-AGENT-008 — Truthful attribution

*Tier:* Agent surface

**Requirement.** Every agent act is recorded and shown as `"<agent> for <person>"`, and mail and messages an agent sends outside name it that way as their sender. An approval, a review mark, a confirmation (a warning dialog, a typed-field confirmation, a delivery confirmation), a decision or a signature attributed to a person comes only from that person's signed-in session. When an agent does the equivalent act, the record names the agent, and the act carries its own class; a binding decision or a signature is commitment. Agent doors ignore arguments that stand for a person's confirmation. No tool solves a bot check, or enters a person's own password or 2FA code at an outside service. A provider step that demands a person goes to a person, whatever the policy says; the gated class marks such steps before they run.

**Acceptance.**
1. An agent call carrying a person-confirmation flag is classified and decided exactly as without it.
2. Approving, marking reviewed or answering a policy question with an agent or device token returns 403 and changes nothing.
3. A form-mode elicitation "accept" never completes an approval.
4. Where an agent's decision, signature or field confirmation runs without a person, it reads `"<agent> for <person>"` in the record, the activity view, exports and any certificate, never as the person's own act.
5. After a person approves an agent's prepared action, the record shows the person as approver and the agent as preparer.
6. Activity and exports at 1440 and 390 show `"<agent> for <person>"` for every agent act.
7. Mail an agent sends to an outside address names `"<agent> for <person>"` as its sender.

#### BASE-AGENT-009 — Every agent action is audited with its class and decision

*Tier:* Agent surface

**Requirement.** Extending BASE-OPS-005, each call that reads private data or changes anything records the agent client, name and specialist, and the run or task id (`traceparent` when sent); the sponsoring person, the grant, the tool and the targets; the classes and their facts, and the policy revision and rule; the decision (autonomous, review, approval, blocked, unset or self_escalation) and the outcome (done, refused, pending or failed); the approval or review id and person, and the idempotency key. For a period, the seed's Agents page shows actions by class and decision with the notable ones, the review feed (Mark reviewed, Flag, and Undo where reversible), pending approvals, steps waiting for a person and setup questions. Business shows the same across seeds.

**Acceptance.**
1. One write leaves a complete audit row.
2. Refused, pending, unset and self-escalation calls are audited.
3. The Agents page's counts by class and decision equal the audit rows on a fixture week.
4. The review feed lists exactly the calls decided as review; Mark reviewed records the person, and Undo restores a reversible one.
5. Filtering by agent or class lists only those rows, and export includes every field.
6. Removing the agent keeps its rows and its name.
7. The Agents page works at 1440 and 390 with no serious or critical axe findings.

#### BASE-AGENT-010 — Agents can follow changes

*Tier:* Agent surface

**Requirement.** The seed emits a typed event for every record change and for every approval, review and policy decision. Each event carries a stable id, a type, the record URI, the actor (a person, or an agent acting for a person) and a time. Events never carry secrets or more than the subscriber may read. Agents can read events three ways: `subscriptions / listen`, an `events.list` tool with a cursor, and signed webhooks from Base `integrations` using the same ids. Every channel delivers at least once and filters by access at delivery.

**Acceptance.**
1. A subscribed record changed in the UI produces a notification within 10 seconds.
2. `events.list` returns the same event id the webhook carries.
3. Replaying from a cursor returns the same ids in order.
4. After access is revoked, no channel delivers events about that record.
5. A failed webhook is visible and replays without duplicate effects.
6. `approval.pending`, `approval.decided`, `review.flagged` and `policy.adopted` carry the class and decision and nothing the subscriber may not read.

#### BASE-AGENT-011 — Limits are policy, and Pause stops everything

*Tier:* Agent surface

**Requirement.** Business limits are rules in the company's policy: per-call and per-day thresholds on any class's measure, such as money moved, outside recipients or items destroyed; spend caps on provider cost (models, SMS, email) per seed, specialist or agent, which setup asks with the classes; "no cap" is an answer. Tools with provider cost declare an estimate before they run, and an exhausted cap returns `budget_exhausted` before any partial effect. The seed's capacity limits (request rate, body and byte sizes) protect the installation: they bound rate and size, never daily business volume, are documented and are not policy. A grant carries budgets only when the person granting it sets them. A **Pause agents** control in the seed, and Pause all agents in Business when paired, refuses every agent token within 60 seconds until a person resumes; browser sessions and devices keep working.

**Acceptance.**
1. A rate overrun returns 429 with `Retry-After`.
2. A per-day cap of three outside recipients sends the fourth to the rule that applies past the cap.
3. An exhausted spend cap returns `budget_exhausted` with no partial effect and shows the spend.
4. Under the answer "no cap", a spending call runs and its spend shows in usage; a call that spends nothing is unaffected by any cap.
5. The usage view shows calls, decisions by class, money moved and provider spend per agent.
6. Pause and Pause all agents each stop the next call within 60 seconds, and resume restores access.
7. An agent token cannot resume.

#### BASE-AGENT-012 — Writes are idempotent and conflict-safe

*Tier:* Agent surface

**Requirement.** Every mutating tool requires an idempotency key and takes an optional expected revision. The same key with the same arguments returns the first outcome for at least 24 hours; the same key with different arguments returns `idempotency_conflict`; a stale revision returns `revision_conflict` with the current revision. Long work returns a job handle and a status tool, with no dependence on the Tasks extension.

**Acceptance.**
1. Two calls with one key give one effect and equal results.
2. A retry with a new JSON-RPC id and the same key, after a dropped stream, returns the recorded outcome.
3. The same key with different arguments returns a conflict and no effect.
4. A stale revision returns a conflict naming the current revision.
5. A job handle used by another person's token reads as not found.

#### BASE-AGENT-013 — Manifest, docs and the conformance journey

*Tier:* Agent surface

**Requirement.** `server / discover` instructions and an on-site `/docs/agents` page are generated from the action registry. The page lists tools by job, with each tool's classes, the test that adds each computed class, its scopes, resource templates, event types, capacity limits and error codes, and the specialist role. `prompts / list` carries the specialist's jobs. Base ships the conformance journey, a harness that `rer verify` runs against `rer dev` and seeds run in CI. It is an MCP client; a signed-in test person takes a person's steps (setup answers, approvals, review marks, resume) through the URLs the door returns, and the same browser leg runs the UI-parity actions and the page checks at 1440 and 390. It runs every acceptance point of BASE-AGENT-001 to 012 and of the seed's SURFACE clauses under two company policies: *all autonomous* (`*`), and *held* (standard review, every other class the seed declares approval, which the test person grants), plus the single-class variants a point names. A point that names no disposition passes under both.

**Acceptance.**
1. The docs list exactly the names in `tools / list` and `resources / templates / list`.
2. Each tool's classes, and the test behind each computed one, are documented.
3. The harness fails on any of: a tool without a schema; an effect under approval or blocked, or before setup is complete; a computed class that differs from its fixture; a flag that changes a class or completes a person's step; a role-parity mismatch; a wrong-audience token being accepted; a duplicate effect on retry.
4. Every acceptance point runs under both policies, every decision matches the policy in force, and under all autonomous no call waits for a person or is refused by policy.
5. A stranger agent given only the seed URL completes the specialist journey through MCP.

## Push further with agents

Every agent here works through `BALM-001`: an owner-bound key with a declared scope, a prepare-then-approve fence that records the digest of what a person approved, a visible pause, and an audit row for every read. Agents never sign notes, change a plan of care, submit an appeal, refund, write off or message a new recipient without the approval named in their clause.

- **AGENT-001 — Referral-to-collection case agent.** For each referral the agent follows the case from referral documents and consent through eligibility, authorization, plan-of-care certification, scheduled and attended visits, signed notes, claims, remittances and patient balance. It keeps a dated next-action list with cited evidence (the fax page, the 277CA line, the unsigned note), prepares the next permitted step (re-send a pending or late plan of care by fax or link from `CHART-003`'s work list, chase the payer, ask the patient for a card), sends only through approved channels and templates, and closes the case only when the claim and patient balance are reconciled. Clinicians confirm every clinical assertion; billing staff approve coding, appeals and financial exceptions. Before the case agent prepares, attaches or transmits a prior authorization packet, or adds any prior authorization transport through Availity, a payer prior-authorization interface, fax or email, it inherits INS-004's clinical authority, exact-digest custody and recorded-submission rules; its owner-approved re-authorization emails appear in the referral's INS-004 request history and take their decision through INS-004's decision door. Electronic transmission needs the practice's clearinghouse enrollment and a recorded business associate agreement; that is engineering and agreement work in this clause, not a reason to narrow it. **Acceptance evidence:** Run a referral whose certification stalls and whose claim is denied; the agent cites each blocker, prepares the follow-ups for approval, waits on unapproved steps, and shows the case closed only after the paid ERA and zero patient balance.

- **AGENT-002 — Care continuity agent.** From cancellations, the waitlist, clinician capacity, authorization limits and plan-of-care dates, the agent proposes replacement visit sequences that keep the plan's frequency inside the authorization, offers them to patients after a clinician approves any change in cadence, and verifies the booking and coverage together. **Acceptance evidence:** Cancel two visits in a patient's plan; the agent proposes a sequence inside the authorization, the clinician approves, the patient accepts by text.

- **AGENT-003 — Documentation defensibility check.** Before a note is signed, the agent reads the note, plan of care, billed minutes and the payer's documentation rules and lists what an auditor would question (skilled need not shown, units not supported, missing progress report), each with the rule cited; the clinician decides every change. **Acceptance evidence:** Draft a note billing 4 units with 40 minutes of mostly unskilled exercise; the agent names the unsupported unit and the missing skilled rationale with sources, and the clinician's edit clears them. The clinician requests the check from their own unsigned draft using the already configured and tested clinic AI model (`BALM-004`); agent keys retain `BALM-001`’s prepare-only fence and receive no clinical text. The result identifies the exact note revision and plan/payer-rule snapshot, with rule citations and record excerpts for each question. An edit retains the previous result as stale; rechecking uses the edited revision. The check never edits, signs, certifies or claims payer validation. All documentation rules and unit methods available today are included; future `CODE-001`, `INS-001`, `INS-013`, `CHART-003` and `ROLE-002` capabilities inherit the same grounded-review obligation before shipping.

- **AGENT-004 — Denial resolver.** For each rejection and denial the agent reads the 277CA or 835 codes, the claim, note and authorization, explains the cause in plain language, and prepares the corrected claim or appeal letter with the evidence attached; a biller approves before anything is sent, and the agent watches for the payment. **AGENT-004 implementation: local X12 fixtures exercise the clearinghouse sandbox edge. A 277CA rejection is explained from its original acknowledgment codes without an invented ERA. A posted 835 denial produces an immutable appeal letter with exact claim, adjudication, signed-note and recorded-authorization citations and an attached ROLE-002 note release. An owner reviews and approves that exact release digest; its seven-day, revocable, audited download must be received by the approving biller. Signed-out people, inactive billers, reception, practitioners and agent keys cannot approve an appeal; expired or revoked evidence and stale packet digests refuse. One concurrent approval records the biller and keeps the original letter, digest and evidence snapshot, preparing external submission without sending anything. Only a later posted payer payment resolves the appeal; replaying that remittance pays once. The public CLI archive preserves the full original denial and payment adjudications, including service lines, adjustment codes, remarks and references, the approved packet and continuing release revocation. Live clearinghouse delivery remains INS-006's existing obligation.** **Acceptance evidence:** Feed a sandbox denial for a missing authorization; the agent prepares an appeal citing the authorization and note, the biller approves, and the agent marks it resolved only when payment posts.

- **AGENT-005 — Month-end reconciliation.** The agent matches Stripe payouts, ERA EFT deposits, charges and accounting entries, explains every unmatched amount, and pursues missing remittances rather than marking claims paid; finance approves every allocation correction and refund. **Acceptance evidence:** Run a month with one missing ERA and one duplicated card payment; the agent explains both, requests the missing ERA and prepares the refund for approval.

- **AGENT-006 — Outcome follow-through.** For each episode the agent sends the clinician-chosen outcome questionnaires and home-program check-ins on the chosen cadence, chases missing responses within contact limits, and drafts a progress brief with scores, adherence and open questions for the clinician; it never diagnoses or changes treatment. **Acceptance evidence:** Run an episode with one missed questionnaire; the agent follows up once within limits and drafts a brief that the clinician edits into the progress report.

- **AGENT-007 — Front-desk inbox agent.** The agent reads incoming texts, emails, portal messages and faxes, sorts them (reschedule, billing question, new referral, records request, clinical question), drafts the reply or the action (a reschedule offer, a filed referral) for staff to approve, and routes clinical questions to the clinician untouched. **Acceptance evidence:** Send one of each message type; each is sorted and drafted correctly, the clinical one reaches the clinician without a drafted answer, and nothing is sent before approval.

- **AGENT-008 — Migration agent.** The agent reads an incumbent export, proposes the field mapping, explains every record it cannot map and every balance difference, and prepares the reconciliation report for `MOVE-006`; the owner approves the mapping and the cutover. **Acceptance evidence:** Give the agent the `MOVE-002` to `MOVE-005` fixtures, one with two unusual custom fields added; it proposes a mapping, flags both fields with examples, and the import applies only after the owner approves.

- **AGENT-009 — Replacement booking authorization agreement.** accepting a series' replacement visits leaves bookings and remaining authorization in agreement (no authorized visits remain beyond the reviewed count). **Acceptance evidence:** Accept a series' reviewed replacement visits through the signed-in patient's portal offer; verify the bookings and remaining authorization agree, with no authorized visits remaining beyond the reviewed count.

- **AGENT-010 — Concurrent PT and OT continuity.** plan-derived replacement proposals for concurrent PT and OT treatment stay feasible (continuity counts both disciplines). **Acceptance evidence:** Through the treating clinician's patient file, prepare plan-derived replacement proposals for a patient receiving concurrent PT and OT treatment; verify the proposed dates remain feasible while continuity counts both disciplines.

## Honest boundaries

- **Not a clearinghouse or payer network.** Balm submits through Claim.MD and Availity under the practice's own enrollment; payer enrollment and credentialing (CAQH, PECOS) remain the practice's or its credentialing service's work, with Balm tracking the status per provider and payer.
- **Not a card processor or lender.** Card data stays with Stripe; funds settle to the practice's Stripe account; patient financing goes through a partner such as Cherry or CareCredit.
- **Not HIPAA compliance by hosting.** No host makes a practice compliant on its own. Balm names deployments whose hosting BAA a small practice can obtain and refuses real patient data until that BAA is recorded (`HIPAA-005`), records the practice's other BAAs, risk analysis and officers, and keeps BAA-dependent integrations off until they exist (`HIPAA-001`); the practice signs its own BAAs and remains the covered entity.
- **Not clinical judgment.** Clinicians decide diagnosis, medical necessity, plan of care and every statement in a signed note; agents and the scribe draft and check.
- **Not a phone system, payroll or HR system.** Calls run on the practice's phone provider; payroll and 1099/W-2 filing run in Gusto or ADP ([Envelope](https://github.com/just-every/run-envelope) is the RunEditRun payroll sibling); staff HR records live in Willow or BambooHR.
- **Not DME supplier billing, e-prescribing or lab and imaging orders.** Products sell for cash under `PAY-008`; insurance billing for durable medical equipment goes through a DME billing partner.
- **US first.** USD, US payers, US time zones and US privacy law first; other countries' claiming systems (Medicare Australia, NHS) are not part of this target.

## PAY-008 and AGENT-005 adopted-default riders

Ct's 25 October 2026 **APPROVED WITH CHANGES** ruling at `fae6cc46b81f4b0bed15dd2362dc6134b265423b` approves these conservative defaults only. Both clauses remain partial; every status, count and existing acceptance journey is unchanged. The review inspected source and assertions without executing them and grants no legal, provider, production or landing authority. The earlier builder-reported movement to 65 done, 30 partial and 15 missing remains uncounted by ct. These notes qualify the adopted defaults and allocate existing obligations; they add no acceptance points.

**Retail recording.** The active owner records a sale, confirms cash already received or gift redemption, and assigns finite packages or memberships to the named patient's matching cash-pay service. Authorized attendance consumes a visit without granting sale authority. Amounts are integer USD cents. Product tax requires the owner's recorded state, rate and supporting evidence; calculation proves arithmetic alone, supplies no rate and establishes neither applicability nor legal correctness. Patient-bound gift value stays separate from ordinary credit and cannot buy another gift, transfer or overdraw. Sale recording authorizes no renewal, expiry, transfer, refund, provider charge or insurance billing. Staff sale work and the complete membership lifecycle remain due. Receipts, existing visit superbills, ledger entries, reports and deposits retain their access limits and fixed-original duties.

**Membership pause and retention.** The active owner records each pause and resume against the named patient and finite membership, with effective time, current unused visits and explicit patient authorization identifying the requested transition, when and how authorization was obtained, and the recording actor. Resume changes the membership state without deleting its pause history. General intake, treatment or card consent does not authorize a membership transition. Pause and resume preserve unused visits without forfeiture or expiry; paused membership visits cannot be consumed until resumed, and exhaustion follows authorized consumption only. Neither transition authorizes automatic renewal, a provider charge, insurance billing, a new purchase or alteration of an external billing arrangement. Each later cash purchase has separate authorization, receipt, ledger entries and entitlements and neither resumes nor renews an earlier membership. For affected retail records, retention is measured from the later relevant retail event, including an actual sale, redemption, consumption, pause or resume, without shortening any later clinical deadline or applicable adult, minor, payer or practice requirement; legal holds continue to block destruction. Reads, exports and restores do not restart retention. Apply HIPAA-002’s documented applicable rules, exact-inventory approval and eligible destruction, preserving anonymous dated accounting facts, permitted audit structure and destruction evidence, with ERASE-001’s later-journal restore fence. A retail event does not justify indefinite retention or retention of unrelated records. Preservation without visit expiry does not imply perpetual retention of identifiers; destruction must not silently cancel an unresolved entitlement. Resolution of outstanding entitlements and complete preservation, destruction and inactive or stale restore behavior remain named Gaps until proved. This rider supplies no new legal retention period. Complete cancellation and renewal handling, staff sale authority, any billing-system or card-processor handoff, patient-facing notices and complete membership reporting remain named PAY-008 Gaps, with existing portal, financial reporting, authority and custody duties retained in their receiving clauses.

**Finite lifecycle default (CT RL-104, 28 October 2026).** The default is approved with riders, as recorded in [RULINGS.md](RULINGS.md). Only the active owner records specifically patient-authorized cancellation of an exhausted membership, without forfeiture or settlement. No intake, treatment or card consent substitutes for transition authorization.  Only the active owner records an explicitly patient-authorized finite renewal of an exhausted, uncancelled membership for the same patient and service, with separate cash already received, new price and visit count, authorization evidence and times, a new immutable receipt and entitlements, and a once-only link to its source. Neither purchase changes the other, and an existing cancelled or unconsumed membership cannot authorize renewal. Representative assertions are refused until their authority is established. Portal notices show recorded purchases, pauses, resumes and cancellations without internal consent evidence; they authorize no outbound send. Whole-clinic reports and CSV show recorded state, consumed and unused visits, allocated unearned purchase value and separate gift liability at period end, preserving anonymous dated facts after approved destruction. Unearned value is not a refund quote; previously destroyed purchases without dated use facts are explicitly incomplete. This renewal default authorizes no automatic renewal, forfeiture, refund, provider charge, external billing change or new staff sale authority. Policy approval does not certify implementation or completion; PAY-008 remains partial. Only the active owner records a specifically patient-authorized cancellation and settlement of unused visits on a cash-funded finite membership, after the exact cash refund has already been completed outside Balm. The refund equals the recorded purchase price allocated to all unused visits, rounded once to cents; this arithmetic is not a legal refund determination. The record requires separate completed-refund evidence and reference, explicit transition authorization, no booked assigned visit, and a live unused-count check. It atomically preserves the settled count, cash refund and cancellation once, without inventing attendance or changing the original receipt. Gift-funded, representative-authorized, missing-evidence and mismatched-amount settlement refuse. The ledger, financial reports, deposit reconciliation, portal notice and accounting preparation include the same recorded refund; approved destruction preserves anonymous dated arithmetic, and archives retain the original authority evidence. The record supplies no provider verification and initiates no refund or outbound action. Non-cash and gift settlement, delegated staff, representative consent, automatic renewal, provider notices and detailed retention remain unfinished; PAY-008 remains partial.

**Original-gift settlement default (adopted pending ct, 28 October 2026).** Only the active owner, under explicit patient transition authorization, restores the exact unused portion of a gift-funded finite membership to that same patient's original gift. It cancels the settled membership atomically, preserves attendance and receipt originals, and cannot pay cash, transfer value, create another gift or initiate a provider refund. Concurrent restoration and spending are once-only and never overdraw. The ledger, portal, period-end gift liability and accounting preparation distinguish restored gift liability from cash refunds; restoration records extend affected retention and archives preserve their facts. This conservative default awaits ct approval and supplies no representative authority or legal refund determination. PAY-008 remains partial.

**Finite staff sale default (adopted pending ct, 28 October 2026).** Cash recording and matching visit assignment remain denied to staff unless the active owner explicitly grants them to a named active reception person or biller for at most seven days, with an audited reason. Delegated product tax must match the exact state, rate and source recorded by the owner in that grant; staff cannot substitute tax policy. Immutable approval originals remain archive evidence while executable grants are excluded. Every write rechecks the grant, its expiry, the staff version, the granting owner's current authority and the current native session. Revocation and staff changes end the grant; archive restore excludes it and requires new authorization. This grant adds no clinical read, representative consent, membership transition, settlement, renewal, provider action or outbound authority. The same patient-bound gift and tax arithmetic, original receipts and financial reporting duties apply to delegated sales. This conservative grant default awaits ct approval; broader staff sale scope remains unfinished and PAY-008 stays partial.

**Preparation and future execution.** The active owner records patient-bound observations with kind, USD amount, actual transaction date, settlement reference, original trace or charge reference and source evidence. An explicit owner-bound `finance.reconcile.prepare` grant permits preparation for the requested month across recorded clinic observations; it grants no clinical read, financial execution or outbound communication. Findings are cited explanations and drafts: a missing ERA proves no payment and a possible duplicate proves no refund entitlement. Once-only owner approval of the exact stored draft digest approves preparation alone. Before any future request, refund or allocation correction, an authorized human must review the actual relevant payer, processor and accounting originals; entered evidence and matching references alone cannot establish provider truth. Execution approval must bind patient, practice account, source originals and revisions, purpose, exact content, named recipient and channel, USD amount and applicable payment destination, with current patient or representative authority and recipient consent recorded where the action requires them. A key grant or draft approval supplies neither authority nor consent; no clinical consent is inferred. Changed sources, payment or ERA state, patient or account association, amount, recipient, consent or authority require fresh review and approval. The current digest and once-only checks do not revalidate those facts, and earlier findings may remain returned after circumstances change. Future execution must distinguish prepared, approved, attempted, uncertain and confirmed outcomes, prevent duplicate requests, refunds and corrections on replay, and reconcile an uncertain original attempt before another attempt. Execution and that lifecycle remain unproved and disabled in this slice.

**Bounded custody and restore.** Refusing unsafe destruction while preservation is incomplete is an immediate fence, never indefinite retention because a retail sale or finance observation exists, nor grounds to retain unrelated records. Identify affected records, apply documented applicable retention and legal holds, and complete authorized destruction of identifying and private copies while preserving anonymous accounting facts and totals, the permitted audit skeleton, destruction evidence and the later-journal restore fence. Custody adds no chart-reading authority and this ruling supplies no new period or legal rule. Existing archive assertions cover a gift receipt original and a reconciliation finding, not complete new-record preservation, destruction or every approved, stale and inactive restore case. Export excludes agent keys and private access credentials. Restored historical approvals are evidence only: they cannot reactivate inactive actors, revive revoked capabilities or trigger outbound actions; current authority must be checked again.

The following receiving clauses apply in both CONTRACT.md and ACCEPTANCE.md; their existing journeys remain binding:

| Deferred work and rider | Existing receiving clauses |
| --- | --- |
| Retail scope, finite patient and service assignment, staff sale authority and complete membership lifecycle | `PAY-008`, `ROLE-002`, `BALM-001` |
| Month reconciliation, every unmatched amount, cited preparations and scoped live authority | `AGENT-005`, `INTEG-001`, `BALM-001` |
| Actual refunds, allocation corrections, original payment authority and exact-action, fresh-review, replay and uncertain-outcome fences | `PAY-002`, `PAY-004`, `BALM-003` |
| Payout, EFT, charge and accounting matching, actual missing-remittance pursuit and resolution | `INS-007`, `ACCT-001`, `AGENT-005` |
| Fixed statements and receipts, portal access, ledger and deposit arithmetic | `PAY-009`, `PORTAL-004`, `REPORT-002` |
| Affected-record custody, eligible destruction, anonymous totals, export and recovery, inactive and stale restore | `HIPAA-002`, `ERASE-001`, `PORT-001`, `HIPAA-004` |
| Access audit and completed disclosures under existing boundaries | `AUDIT-001`, `HIPAA-003` |

`HIPAA-003`'s payer exception remains intact: these riders require no new accounting entry for every payer communication. Real-patient and BAA gates remain with `HIPAA-001` and `HIPAA-005`.

## Data flows and retained rules

The Status table records current build judgments. Requirements in the clause definitions remain binding even where a done row has not yet evidenced every acceptance step. In particular, `HIPAA-003` currently allows owner-only recording and has no linked correction entries or exact "Record a completed disclosure" label; those requirements remain to be accepted. `OWN-001` also depends on the missing `HIPAA-005` real-patient gate, as well as no-outbound evidence.

The first-release rules stand: audit rows carry no patient personal details, agent keys never read notes or intake answers, approvals keep digests, invoice bytes are fixed at approval, and every write re-checks live authority in its batch. Each target integration adds a declared data flow in `seed.json → externals` in the same change that builds it:

- **Mail provider** (intake links, confirmations, reminders, statements notices): recipient address, practice name, visit time and links; never diagnosis or note text. A BAA-signing provider (for example Paubox or Amazon SES) is required once PHI could appear.
- **Twilio** (SMS): patient phone number, practice name, visit time, reply text.
- **Stripe** (cards): patient name, email, amounts and a Balm reference; Balm keeps only Stripe's customer, payment method and charge IDs.
- **Claim.MD and Availity** (eligibility, claims, remittances): the X12 transaction content, which is PHI, under the practice's BAA with the clearinghouse.
- **Fax provider, video provider, scribe model and backup storage**: the documents, video session, audio and archive they handle, each under a recorded BAA.
- **QuickBooks Online, Xero or Pantry**: patient name or account number, amounts, dates and payment method; no clinical data.
- **NPPES NPI registry**: NPI numbers and provider names looked up; no patient data.

## Homepage claims

Every capability the owner-accepted homepage states (claims table `evidence/br-balm/desk-built/CLAIMS.md`, 17 October 2026) maps to the clauses that deliver it. Status is the clauses' combined status: `done` when all are done, `missing` when all are missing, otherwise `partial`.

| # | Claim | Clauses | Status |
| ---: | --- | --- | --- |
| 1 | runs your clinic's schedule | `BALM-002`, `SCHED-001`, `SCHED-002`, `SCHED-004`, `SCHED-010` | done |
| 2 | intake | `INTAKE-001`, `INTAKE-002` | partial |
| 3 | notes | `CHART-001`, `BALM-004`, `CHART-002` | partial |
| 4 | reminders | `REMIND-001`, `COMM-001`, `COMM-002` | partial |
| 5 | bills insurance … through to paid | `INS-005`, `INS-006`, `INS-007`, `INS-012`, `INS-013` | partial |
| 6 | bills … patients through to paid | `BILL-001`, `BALM-003`, `PAY-001`, `PAY-002`, `PAY-004` | partial |
| 7 | 100% free, open source | `OWN-001` | partial |
| 8 | Tuesday schedule with visits | `BALM-002`, `SCHED-002` | done |
| 9 | "daily note" signed | `BALM-004`, `CHART-002`, `CHART-004` | partial |
| 10 | Plan of care signed by Dr. Patel | `BALM-004`, `CHART-003` | partial |
| 11 | Auth: 8 of 12 visits left | `INS-003` | done |
| 12 | Claim paid · Aetna · $142.18 | `INS-006`, `INS-007` | partial |
| 13 | Reminder sent | `COMM-001`, `COMM-002` | partial |
| 14 | Denied: missing KX modifier · Resubmitted | `INS-008`, `INS-009` | partial |
| 15 | Recurring visits | `BALM-002`, `SCHED-003` | done |
| 16 | waitlists | `BALM-002`, `SCHED-005` | partial |
| 17 | online booking keep[s] the calendar full | `SCHED-001`, `SCHED-006` | done |
| 18 | offers the slot to your waitlist by text / Confirmed by text | `BALM-002`, `SCHED-005`, `COMM-002` | partial |
| 19 | Patients fill in intake … from one link | `INTAKE-001` | done |
| 20 | sign consent | `INTAKE-003` | done |
| 21 | add their insurance card | `INTAKE-004` | done |
| 22 | Their home exercises … live in the same portal | `PORTAL-001`, `PORTAL-002`, `PORTAL-007` | partial |
| 23 | and messages | `PORTAL-003` | done |
| 24 | PT, OT and speech templates for evaluations, daily notes, progress and discharge | `BALM-004`, `CHART-002` | partial |
| 25 | The scribe drafts from the visit | `BALM-004`, `CHART-012` | partial |
| 26 | you review and sign | `BALM-004`, `CHART-004`, `CHART-012` | partial |
| 27 | Billed CPT units, "8-minute rule · 3 units" | `BALM-004`, `CHART-006` | partial |
| 28 | Check eligibility | `INS-002` | partial |
| 29 | track authorizations | `INS-003` | done |
| 30 | send claims through Claim.MD or Availity | `INS-006` | partial |
| 31 | Payments post from the ERA | `INS-007` | partial |
| 32 | denials arrive with the fix | `INS-008` | partial |
| 33 | All 14 notes signed · claims sent | `BALM-004`, `CHART-004`, `INS-006`, `REPORT-004` | partial |
| 34 | Cards on file | `BALM-003`, `PAY-002` | partial |
| 35 | text-to-pay links | `BALM-003`, `PAY-003`, `COMM-002` | partial |
| 36 | superbills | `BALM-003`, `PAY-005` | done |
| 37 | clear statements | `BALM-003`, `PAY-004`, `PAY-009` | partial |
| 38 | Copays collect at check-in | `BALM-003`, `PAY-002`, `SCHED-008` | partial |
| 39 | Text and email reminders go out on their own | `COMM-001`, `COMM-002` | partial |
| 40 | Patients confirm or ask for a new time in one reply | `COMM-002` | partial |
| 41 | follows each referral from authorization to paid claim | `AGENT-001` | partial |
| 42 | spots what stalled, cites the record and lines up the next step / Send to payer | `AGENT-001`, `AGENT-004` | partial |
| 43 | Import patients … from … the allied-health practice system | `MOVE-001`, `MOVE-005` | partial |
| 44 | appointments, notes and balances | `MOVE-002`, `MOVE-003`, `MOVE-004`, `MOVE-005` | partial |
| 45 | from the rehabilitation EHR, the therapy practice system, the clinic management system | `MOVE-002`, `MOVE-003`, `MOVE-004` | partial |
| 46 | check every total before you switch | `MOVE-006` | partial |
| 47 | Run Balm on your own computer (the five commands) | `OWN-001` | partial |
| 48 | keep every chart / Your charts, your database | `OWN-001`, `PORT-001` | partial |
| 49 | Export everything, any time | `PORT-001` | done |
| 50 | Telehealth: Video visits from the same calendar | `TELE-001` | missing |
| 51 | Home exercise programs | `PORTAL-002`, `PORTAL-007` | partial |
| 52 | Secure messaging | `PORTAL-003` | done |
| 53 | Therapy cap tracking: KX threshold flagged | `INS-009`, `CHART-007` | done |
| 54 | Plan of care signatures | `BALM-004`, `CHART-003` | partial |
| 55 | Audit log: Every chart view and change, recorded | `AUDIT-001` | done |
| 56 | Open source practice management for US therapy clinics | `OWN-001`, `US-001` | partial |
| 57 | Free and open source, MIT licensed | `OWN-001` | partial |

## Status

Judged from the code and tests at commit `969b1cfbf0a763bebe2f916ba95891e4b6833a84` (27 October 2026). This source baseline includes the AGENT-004 packet-integrity, denial and restore assertions. The final candidate refreshes native browser navigation, compares restored records in stable order and synchronizes provenance and the retained status summary; its full SHA and exact-SHA proof are in the fleet handoff. Other clauses retain their recorded evidence. Acceptance and landing gates remain binding.

Retained implementation from the 17–18 October rounds includes automatic email reminders and consented outbound texts through the configured SMS adapter (`COMM-001`, done; `COMM-002`, partial), secure messages with immutable attachments (`PORTAL-003`, done), patient-only portal sessions and practice-made exercise programs (`PORTAL-001` and `PORTAL-002`, partial), and completed separate policy consents and insurance and identity capture (`INTAKE-003` and `INTAKE-004`, done). Insurance setup, eligibility imports, authorization counts, scrubbed 837P exports, acknowledgments, balanced remittance posting and denial correction are partial (`INS-001` to `INS-003` and `INS-005` to `INS-007`); Medicare therapy rules (`INS-009`) and documentation compliance alerts (`CHART-007`) are done. Case-agent stages (`AGENT-001`) and move-in and cutover workflows (`MOVE-002` to `MOVE-006`) remain partial with the outstanding scope in their rows. AGENT-004 local denial preparation, approved evidence custody and payment-only resolution are done; live clearinghouse delivery remains the existing partial INS-006 obligation. The cited public-door tests, archive tests and recorded local or temporary self-hosted journeys remain the evidence; live provider enrollment is not established by synthetic-edge tests.

The note deadline completion round (19 October 2026) completes `CHART-004`: owner-set draft deadlines, scoped overdue-note daily close, and the locked-original/addendum journey.

The US clinic completion round (19 October 2026) completes `US-001` through clinic setup, booking, invoicing and patient-file imports.

The 19 October 2026 throughput round completes `SCHED-009`, `HIPAA-003` and `CHART-010` with clause-named public-door tests, archive round trips and product use at 1440 and 390 pixels.

| Clauses | Done | Partial | Missing | Total |
| --- | ---: | ---: | ---: | ---: |
| Published | 15 | 0 | 0 | 15 |
| Target and push further | 54 | 49 | 7 | 110 |
| All | 69 | 49 | 7 | 125 |

| Clause | Title | Kind | Status | Evidence | Gap |
| --- | --- | --- | --- | --- | --- |
| `BALM-001` | Live roles and server-side authority | published | done | `src/balm/domain/model.ts`; `src/balm/credentials.ts`; `src/balm/domain/balance-access.ts`; `migrations/core/0061_balm_balance_visibility.sql`; `tests/balm.test.mjs`; `tests/schedule.test.mjs` (BALM-001/SCHED-002) |  |
| `BALM-002` | Calendar, recurring series and waitlist offers | published | done | `src/balm/domain/calendar.ts`; `src/balm/domain/series.ts`; `src/balm/domain/waitlist.ts`; `src/balm/domain/booking.ts`; `tests/schedule.test.mjs` |  |
| `BALM-003` | Patient payments through the clinic's own Stripe account | published | done | `src/balm/payments/index.ts`; `src/balm/payments/charges.ts`; `src/balm/payments/documents.ts`; `tests/payments.test.mjs` |  |
| `BALM-004` | Templates, signed notes, plan-of-care link and scribe drafts | published | done | `src/balm/charting/templates.ts`; `src/balm/charting/cpt.ts`; `src/balm/domain/signing.ts`; `src/balm/domain/plans.ts`; `src/balm/scribe/index.ts`; `tests/charting.test.mjs` |  |
| `SETUP-001` | Clinic, services, practitioners and hours | published | done | `src/balm/domain/clinic.ts`; `src/balm/ui/hours.ts`; `src/balm/ui/time-zone.ts`; `src/balm/forms.ts`; `src/balm/ui/schedule.ts`; `tests/setup.test.mjs`; `tests/clinic.mjs`; `tests/harness.mjs` | The checklist reads the owner’s clinical name from the staff record matched by sign-in email; a named practitioner no longer has to rename the sign-in profile. Touched tests and local browser proof, 18 October 2026. |
| `ROLE-002` | Billing, assistant, student and supervisor roles | target | done | `src/balm/domain/role-access.ts`; `src/balm/domain/payer-note-releases.ts`; `docs/ACCESS-MATRIX.md`; `tests/balm.test.mjs` (ROLE-002: owner-assigned jobs); `tests/payments.test.mjs` (ROLE-002: the biller completes); `tests/insurance.test.mjs` (signed care becomes a scrubbed 837P; Medicare spending is reconciled); `tests/charting.test.mjs` (CHART-008: student submission); `tests/archive.test.mjs` (CLI archive preserves jobs) | Biller invoice/payment/adjustment approval and financial reports; assistant/student/fellow draft-only fences; named supervisors; one-location schedule/reports and audited refusals ship. Assistants now write daily templates only and evaluation-code drafts/revisions are refused, unwritten and audited (ct R1). Location booking/move/cancel/check-in succeeds in assigned rooms; foreign source/destination, unassigned rooms, foreign patients and charges refuse without write. Biller-prepared selected signed-note PDFs for a recorded payer request/appeal require exact-digest owner review/approval; seven-day access is revocable, download is audited, and no sending occurs (`tests/balm.test.mjs`, ROLE-002: owner-assigned jobs). `tests/archive.test.mjs` preserves release originals/approvals; `tests/retention.test.mjs` destroys clinical release copies under the existing approved inventory. All acceptance points are mapped to the named role, payment, insurance and archive journeys. The existing insurance journeys run as an invited biller; the patient-billing role journey covers cards, plans, reminders/statements, all manual entry kinds and A/R; all three supervised jobs submit and are co-signed. |
| `SEC-001` | Two-step sign-in and session control | target | done | `tests/security.test.mjs` (SEC-001: every staff job needs an independent second step: session-bound enrollment, all jobs, enforced policy, sign-in with/without proof, idle and remote sign-out deny the next read/write; SEC-001: staff regenerates a private recovery set: salted hashes, invalidated old codes, once-only display, audited use and private next-sign-in notice; SEC-001: federation preserves live Balm roles and independent factors: optional linked Auth OIDC mapping without role widening); `tests/mobile.test.mjs` (SEC-001: staff enroll and recover through real browser forms) / `tests/staff-security-browser.mjs` (enrollment, recovery/regeneration, next-sign-in notice, policy and revocation at 1440/390); `tests/staff-security-journey.mjs` (actual elapsed idle, exact-candidate heavy-slot run sx-balm-c29-security); `tests/archive.test.mjs` (ROLE-002 CHART-008 PAY-007 INTAKE-002: CLI archive preserves jobs: credentials/proofs absent and fresh enrollment) | Losing the authenticator and all recovery codes denies PHI until re-enrollment. No email-only reset, owner bypass or assisted factor reset exists. Optional linked Auth OIDC maps to live Balm jobs without widening them or accepting the IdP's MFA as Balm's independent proof; direct Workspace/Okta/SAML linking is unavailable. |
| `SEC-002` | Public doors that refuse abuse | target | done | `src/balm/public-rates.ts`; `src/balm/http.ts`; `src/balm/payments/http.ts`; `src/balm/portal/auth.ts`; `src/balm/portal/http.ts`; `src/balm/domain/booking.ts`; `tests/security.test.mjs` (SEC-002) | Atomic hashed address and patient quotas on all four public doors, unchanged origin refusals, generic denial without effects, atomic pending-booking cap and hashed expiring credentials. Ct rulings, 20 October 2026. |
| `US-001` | US clinic defaults | target | done | `src/balm/domain/us-clinic.ts`; `src/balm/ui/clinic-identity.ts`; `src/balm/domain/invoices.ts`; `src/balm/payments/documents.ts`; `tests/setup.test.mjs`; `tests/payments.test.mjs` | US setup, state/ZIP and EIN/SSN validation, practice NPI, +1 phone storage, USD documents and MM/DD/YYYY imports; issued invoice identity stays fixed. The legacy tax-ID storage key is retained for historical snapshots. Product use at 1440 and 390, 19 October 2026. |
| `OWN-001` | Owned, open-source and free | target | partial | `LICENSE`; `OPERATIONS.json`; `scripts/installer/local.mjs`; `tests/runtime.mjs` (ownedCleanStart, --owned-clean-start); `tests/archive.test.mjs`; `tests/balm.test.mjs` (four OWN-001: clinic-loop tests); `tests/harness.mjs` | The clean-checkout CLI journey observes install from the runner's populated pinned-package cache, setup, foreground dev and booking/intake/note-revision/invoice/payment through the real browser, Worker and D1. It asserts no non-loopback socket attempt by the CLI or its descendants, including refused requests, and no external browser HTTP/WebSocket destination; it checks the clinic screens at 1440 and 390. No data, private settings, dependency links or build output are copied into that checkout. The existing Worker-edge journeys assert only the enabled mail provider is called. The lifecycle disables Wrangler's optional update/metrics/error-report requests and Miniflare's remote Request.cf lookup. HIPAA-005's hosting record, audited enable/remove switch and real-patient gate at every named creation door remain missing, as do its required live AWS/BAA deployment and S3/R2 backup receipts; OWN-001 stays partial until that prerequisite is accepted |
| `SCHED-001` | Online booking from real open times | published | done | `src/balm/domain/booking.ts`; `src/balm/ui/public.ts`; `tests/balm.test.mjs` |  |
| `SCHED-002` | Practitioner, room and equipment calendar | target | done | `migrations/core/0060_balm_equipment.sql`; `src/balm/domain/calendar.ts`; `src/balm/domain/visit-flags.ts`; `src/balm/domain/booking.ts`; `src/balm/ui/calendar.ts`; `src/balm/ui/drag.ts`; `src/balm/ui/day-sheet.ts`; `tests/schedule.test.mjs` (SCHED-002) | Day and week calendars by practitioner, room (with No room) or equipment; rooms and equipment refuse a second live visit at booking, move, series move and patient move; drag moves under diary authority with the audited visit history; intake, authorization ("n of m visits left") and BALM-001-scoped balance flags on each card; capacity visits in side-by-side lanes; printable and CSV day sheet. Proven through public doors in tests/schedule.test.mjs (SCHED-002), 20 October 2026. |
| `SCHED-003` | Recurring visit series | target | done | `src/balm/domain/series.ts`; `src/balm/domain/holidays.ts`; `src/balm/domain/booking.ts`; `src/balm/ui/series.ts`; `src/balm/ui/plans.ts`; `tests/schedule.test.mjs` (SCHED-003); `tests/archive.test.mjs` | Plan-derived cadence, named local-date holiday conflicts, per-date move/skip review, atomic booking and one/rest/whole-series edits/cancel. Twelve-visit acceptance and holiday archive restore asserted through public doors; product use at 1440 and 390, 19 October 2026. |
| `SCHED-004` | Reschedule, cancel and no-show policy | target | done | `src/balm/scheduling/`; `src/balm/domain/booking.ts`; `src/balm/ui/visit-policy.ts`; `tests/schedule.test.mjs` (SCHED-004) | Staff and private-link patients move the same visit while keeping intake and authorization; cancellations retain actor/reason, configured late/no-show fees remain proposals until a native person records separate patient authorization and confirms a once-only card charge. No-shows appear in operational reports. Ct policy ruling, 19 October 2026. |
| `SCHED-005` | Waitlist that fills openings | target | partial | `tests/schedule.test.mjs` — INTAKE-001 SCHED-005: ordered email holds expire to the next patient, book once and retain intake reuse; `tests/waitlist-journey.mjs` — waitlistPreferencesJourney; `tests/archive.test.mjs` — COMM-003 SCHED-005: public CLI archive round trip preserves exact calls, waitlist preferences and custody in an empty install; `tests/waitlist-browser.mjs` — native waitlist preferences, patient-file entry, matching DST offer and one booking | Native email offers match practitioner, service, date range, selected clinic-local weekdays and the complete visit within preferred times. Matching patients take ordered 15-minute turns, ending no later than one hour before the visit; the minute scheduler advances expired or removed turns. A live hold protects the practitioner and room across placing doors. Acceptance rechecks current entry status, preferences, hold authority, availability, capacity, blocking authorization and Medicare overlap; intake reuse and archive history remain. Text offers and replies and the complete three-patient text acceptance journey remain unproved. The fleet holds no authorized clinic US SMS sender: Twilio A2P 10DLC registration or a verified toll-free sender and configured credentials are required; network-edge fixtures do not prove live delivery. |
| `SCHED-006` | Patient self-service scheduling | target | done | `src/balm/domain/booking.ts`; `src/balm/scheduling/self-service-policy.ts`; `src/balm/scheduling/patient.ts`; `src/balm/scheduling/patient-booking.ts`; `src/balm/scheduling/patient-cancellation.ts`; `src/balm/portal/scheduling.ts`; `src/balm/ui/portal-scheduling.ts`; `tests/schedule.test.mjs`; `tests/self-service-journey.mjs`; `tests/mobile.test.mjs`; `tests/self-service-browser.mjs` |  |
| `SCHED-007` | Service types, locations and availability rules | target | done | `tests/schedule.test.mjs` (SCHED-007: service and location rules govern public, portal, staff and series availability with padded race refusal), using `tests/service-availability-journey.mjs`: two locations, evaluation/follow-up length/price/CPT defaults, allowed practitioner/location combinations, local hours, holiday/time-off/one-day replacement, combined buffers, staff/series/portal refusals and racing placements; `tests/report.test.mjs` (ROLE-002 REPORT-001: owner reports and CSVs split room locations): both location filters, counts, hours, plans/referrals and every CSV; `tests/archive.test.mjs` (CLI archive preserves jobs, both signatures): restored service restrictions/defaults/buffers, location zone/hours and date-rule refusal; `tests/viewport-proof.mjs` (SCHED-007 scenes): Clinic, booking, portal, note suggestions and schedule at 1440/390, including delayed hover and immediate focus tooltips | Every unchanged acceptance point is asserted through the named public doors. Original imported visits retain their source times; future MOVE-002 through MOVE-005 scheduling expansion inherits service/location mapping and conflict review. |
| `SCHED-008` | Check-in, attendance and change history | target | done | `src/balm/domain/attendance.ts`; `src/balm/domain/booking.ts`; `src/balm/domain/calendar.ts`; `src/balm/ui/schedule.ts`; `tests/schedule.test.mjs` (SCHED-008); `tests/charting.test.mjs` | Atomic blank treating-practitioner note and unapproved invoice draft; existing notes retained, racing attendance refused, clinical and approval authority preserved, and actor/time history in visit details. |
| `SCHED-009` | Calendar subscription | target | done | `src/balm/domain/calendar-feed.ts`; `src/balm/ui/calendar-feed.ts`; `tests/schedule.test.mjs` (SCHED-009) | Practitioner-owned private iCalendar subscriptions contain UTC times and initials only, retain stable cancellation entries, and immediately refuse replaced, revoked or deactivated credentials. Subscription credentials are hashed and excluded from archives. |
| `SCHED-010` | Practitioner capacity and double-booking | target | done | `migrations/core/0059_balm_capacity.sql`; `src/balm/scheduling/capacity.ts`; `src/balm/domain/booking.ts`; `src/balm/domain/series.ts`; `src/balm/domain/waitlist.ts`; `src/balm/movein/bundle-plan.ts`; `src/balm/ui/clinic.ts`; `tests/schedule.test.mjs` (SCHED-010) | Owner-set practitioner and service capacity (default 1) enforced at every instant in code and in the writing batch for bookings, moves, series and waitlist; online/portal offer only free times unless a service allows online double-booking; Medicare overlap warned and recorded on both visits; migrated overlaps land and are named beyond capacity. |
| `INTAKE-001` | One-use intake bound to its form version | published | done | `src/balm/domain/intake.ts`; `src/balm/domain/intake-requests.ts`; `tests/balm.test.mjs`; `tests/schedule.test.mjs` | Current-version suppression, open-link reuse without duplicate tokens (including concurrent bookings), renewal on all booking doors, past-booking mail suppression, immutable prior versions, one-use submission, no clinical echo, scoped reads and scheduled-end/completion expiry are asserted through public doors under INTAKE-001. Ct approved waiting-room expiry on 19 October 2026. |
| `INTAKE-002` | Intake packets and outcome questionnaires | target | done | `src/balm/domain/intake.ts`; `src/balm/intake/outcomes.ts`; `src/balm/ui/intake.ts`; `tests/intake-portal.test.mjs` (INTAKE-002: service and discipline packets); `tests/archive.test.mjs` (CLI archive preserves jobs) | Service-over-discipline-over-default packets, PT/OT/SLP/pediatric selection, practice-authorized instrument wording, five standard score formulas, bounded/missing-item refusal and immutable earlier answers/scores ship. Public-door five-instrument scoring and version-retention assertions, focused CLI archive restore, and packet publication/patient response/chart use at 1440 and 390 pass. |
| `INTAKE-003` | Signed consents and policies | target | done | `src/balm/intake/policies.ts`; `src/balm/intake/signatures.ts`; `src/balm/intake/renewals.ts`; `src/balm/ui/consents.ts`; `tests/intake-portal.test.mjs` | The owner publishes versioned treatment, HIPAA acknowledgment, financial, cancellation, telehealth and SMS documents. A patient, parent or guardian signs each accepted document with a drawn or typed signature, time and IP in a fixed chart PDF. Optional consent can be declined. Updated policies request only the new versions by an expiring emailed link; earlier PDFs stay fixed. Hosted product journey at 1440 and 390 with real QA-inbox mail, 18 October 2026. |
| `INTAKE-004` | Insurance and identity capture | target | done | `src/balm/intake/coverage.ts`; `src/balm/intake/verify-coverage.ts`; `src/balm/insurance/policy.ts`; `src/balm/insurance/eligibility.ts`; `src/balm/ui/intake-insurance.ts`; `tests/intake-portal.test.mjs`; `tests/archive.test.mjs` | Patients add primary and secondary insurance with required claim/subscriber fields, card fronts/backs and photo ID. The clinic supplies payer routing and billing identifiers first. The same intake batch creates native policies and exportable 270 requests; coverage remains unknown until a real payer response. Staff corrections update the policy and replace stale requests; original photos are fixed and downloads audited. Hosted at 1440 and 390 with real QA-inbox intake mail, 18 October 2026. |
| `PORTAL-001` | Patient portal | target | partial | `tests/portal.test.mjs` (a verified guardian switches between two minors without seeing unrelated records and submitted insurance is audited without changing verified coverage): owner-verified per-minor grants, two-child isolation, guardian intake completion, audited contact and insurance submissions, no active coverage or sign-in takeover and immediate revocation. `tests/portal.test.mjs` (SMS portal codes are generic, hash-only, one-use credentials and never authenticate staff): configured Twilio network edge, bounded expiring code, wrong or replayed code refusal, shared-number denial and patient-only session. Existing portal, billing and messaging journeys remain. | Ct approved the conservative floor on 23 October 2026, with riders: owner verifies authority and confidential-care restrictions per minor, no inferred shared-email relationship, delegation ends at 18, contact and insurance updates await clinic verification and cannot silently change sign-in or claims. `tests/portal.test.mjs` (only the owner applies a digest-reviewed patient contact or insurance update and changed patient facts refuse stale proposals) proves reviewed active-policy application, eligibility reset, contact and session revocation and stale-proposal refusal. Guardian SMS sign-in, notice when delegation ends at 18 and extended confidential-minor restrictions remain incomplete. Managed portal email or SMS sign-in is unavailable; Twilio is proved only at its network edge, not against a live US sender. |
| `PORTAL-002` | Home exercise programs | target | partial | `tests/portal.test.mjs` (note-linked home programs retain hold dosage, three daily pain sessions and a patient-only printable copy): source-note isolation, hold and frequency, three dated pain and adherence sessions, bounds, next-note adherence and patient-only printable text PDF. `tests/portal.test.mjs` (a fresh licensed exercise library supports filtered search, atomic media CSV import and five-exercise assignment from a daily note): five illustrated bilingual library exercises assigned on a fresh install, fixed source and license and dosage and patient display. | The shared PORTAL-007 prerequisite remains incomplete: only a 23-item CC0 starter collection ships, below 900 PT / 350 OT / 250 SLP. Program PDFs now include the trusted shipped line illustrations and bilingual exercise text. Practice-uploaded raster images are not embedded in print output; complete 1,500-item coverage and its scale proof remain pending. Existing practice-made exercises can be assigned from a note, but note-form media upload and richer program grouping remain incomplete. |
| `PORTAL-003` | Secure messaging | target | done | `src/balm/messages/`; `src/balm/portal/`; `src/balm/ui/messages.ts`; `migrations/core/0035_balm_message_attachments.sql`; `tests/portal.test.mjs`; `tests/reminders.test.mjs` | Patient and clinic messages with immutable image/PDF attachments, audited authenticated downloads, separate practitioner/front-desk conversations, generic notices and persisted emergency auto-replies. Hosted at 1440 and 390 with real patient and staff mail, 18 October 2026. |
| `PORTAL-004` | Statements, receipts and superbills in the portal | target | done | `src/balm/portal/data.ts`; `src/balm/payments/documents.ts`; `tests/portal.test.mjs`; `tests/payments.test.mjs` | Clause-named public-door proof covers paid and unpaid visits, every current receipt/superbill, the ledger statement, portal balance payment to zero, payment replay and patient isolation. Historical issued statements are a PAY-009 shipping obligation in its text and acceptance; new billing capabilities inherit portal access. Product use at 1440 and 390, 19 October 2026. |
| `PORTAL-005` | Accessible, English and Spanish patient pages | target | partial | `tests/portal.test.mjs` (the patient chooses a remembered Spanish portal interface without translating clinical content): patient-file language choice and selected portal UI strings, with unchanged clinical text. `tests/viewport-proof.mjs`: pinned axe-core WCAG 2.0/2.1/2.2 A and AA checks, screenshots and reflow at 1440/390 when BALM_AXE=1; English and Spanish portal home and sign-in have zero serious or critical violations. | Only selected portal UI phrases are translated; booking, intake, consent documents, reminders, statements, remaining portal text and custom clinic content are not fully bilingual. Automated coverage is limited to the four portal language and page combinations. VoiceOver and NVDA, keyboard-only Spanish booking and intake, 200% zoom, 320-pixel reflow, error and suggestion and timing-extension manual checks are NOT RUN; a human accessibility review is required. See docs/patient-accessibility.md for the dated page checklist. No WCAG 2.2 AA conformance claim is made. |
| `PORTAL-006` | Patient access to their record | target | partial | `tests/portal.test.mjs` (patient record requests keep a 30-day deadline, release exact reviewed originals, and isolate every download): patient request and duplicate reuse, immutable 30-day due date on owner work queue, digest-bound owner release, PDF and FHIR portal downloads, wrong patient or role refusal, fixed bytes after later changes, signed-original versus superseded unsigned provenance and revoked-session denial. `src/balm/portal/records.ts`; `src/balm/portal/record-export.ts`; `src/balm/ui/portal-records.ts`. | Ct approved owner-only review and explicit partial release on 23 October 2026, with no email delivery or clinical API-key export. The release screen still needs an exact record inventory bound to the displayed digest. The partial snapshot includes plans, visit diagnoses, episodes, coverage, authorizations, claim-level remittances, billing facts, messages, pain and adherence and available issued billing and estimate and uploaded originals. Shared multi-patient transport batches, remaining original categories, normalized clinical mappings and terminology validation are incomplete. Recorded attended visits use an unknown Encounter completion status; unsplit staff names and unrecorded organization activity use explicit data-absent-reason fields rather than inferred facts. Both formats name omissions; a partial delivery stays on the owner queue, does not establish complete fulfillment and keeps the record-preservation hold. All record requests currently prevent destruction; an explicit complete fulfillment and hold release workflow remains unbuilt. PDF describes originals while FHIR embeds them. The synthetic Patient, Practitioner, Organization, Encounter, Condition and DocumentReference export passes independent offline HL7 Validator 7.0.3 checks against official US Core 6.1.0 profiles with zero errors and one encounter-type code warning; terminology checks were unavailable. Complete-record terminology validation and full coverage remain unproved. Requests, released copies and audit travel in archives and participate in approved retention destruction; `tests/archive.test.mjs` (public CLI archive round trip) proves byte-identical reviewed FHIR restoration and excluded hook credentials. |
| `PORTAL-007` | Shipped exercise library | target | partial | `tests/portal.test.mjs` (a fresh licensed exercise library supports filtered search, atomic media CSV import and five-exercise assignment from a daily note): fresh-install counts of 13 PT / 5 OT / 5 SLP, English and Spanish instructions and illustrations, source and license display, shoulder with resistance-band filtering, native multipart three-exercise CSV and media import, missing-media atomic refusal and duplicate-free repeat. `src/balm/portal/library-data.ts`; `docs/exercise-library.md`. | A 23-item original CC0 starter collection ships, with region, position, equipment and default dosage. The required 1,500 items, discipline minima (900 PT / 350 OT / 250 SLP), complete regional coverage, large-catalog usability and committed exact-candidate scale proof are not met. No duplicated dosage variants are counted toward those minima. |
| `CHART-001` | Private revisioned treatment notes | published | done | `src/balm/domain/notes.ts`; `tests/balm.test.mjs` |  |
| `CHART-002` | PT, OT and SLP templates | target | done | `tests/charting.test.mjs` (CHART-002: PT, OT and SLP complete signed episodes) / `tests/chart-template-journey.mjs`: each discipline signs an evaluation, three daily notes, progress, re-evaluation and discharge; diagnoses, measurable goals/status, precautions, last flowsheet values and plan carry only from earlier signed care in the same episode/discipline, with blank subjective/assessment; missing intervention minutes and evaluation goals name the refusal; goal statuses and immutable signed notes survive a practice-template version change. Its browser journey creates a body/diagnosis variant and required pick list, composes carried care, saves and signs at 1440/390. | Immutable template definitions and note snapshots apply required elements to future notes; previously saved notes retain their signing requirements. Existing charting, role, report, reminder, tablet and CLI archive journeys use explicit complete clinical fixtures. One obsolete section-label pin was deleted; no behavioral assertion was weakened. |
| `CHART-003` | Plan of care and physician certification | target | partial | `src/balm/domain/plans.ts`; `migrations/core/0019_balm_charting.sql`; `src/balm/ui/chart-status.ts`; `tests/charting.test.mjs` | The therapist signs and sends a plan by link, its content is locked once sent, the physician certifies it once through the link, and the case and schedule show signed or not signed; no fax send, no filing of a returned signed fax or scan, no linked new versions, no late state or practice threshold, no plans-to-sign work list, no recertification flags on visits and no direct-access limits |
| `CHART-004` | Draft, sign, lock and amend | target | done | `src/balm/domain/notes.ts`; `src/balm/domain/signing.ts`; `src/balm/charting/compliance.ts`; `src/balm/ui/documentation.ts`; `tests/charting.test.mjs` | Practice-set signature deadline (24 hours initially), every scoped overdue draft in daily close, immutable signed originals and signed addenda. Clause-named public-door proof and product use at 1440 and 390, 19 October 2026. |
| `CHART-005` | Objective measures and flowsheets | target | done | `src/balm/charting/measures.ts`; `src/balm/domain/measures.ts`; `src/balm/ui/measures.ts`; `migrations/core/0054_balm_measures.sql`; `tests/charting.test.mjs` (CHART-005); `tests/retention.test.mjs`; `src/balm/episodes/summary.ts` | Structured range of motion, muscle grades, girth, balance and gait tests, standardized scores and exercise flowsheets recorded in a note's draft and locked at signing; evaluation comparison on progress and discharge notes and one graph per measure, read under note access and audit. Series, baselines and graphs are kept per episode (`REF-003`). |
| `CHART-006` | Billing captured from the note | target | done | `tests/insurance.test.mjs` (CHART-006 primary slice: CMS, AMA and fixed-threshold note previews agree on invoice, superbill and claim, with frozen payer basis): the complete Medicare 38 timed minutes plus untimed evaluation, signed units/modifiers/diagnosis pointers and 837P; CMS/AMA 8+8, recorded CMS tie and 10+8 allocation, fixed-15 below-threshold refusals, pricing and immutable issued documents; `tests/insurance.test.mjs` (CHART-006 selected diagnoses follow signed procedures into claims and fixed superbills without retargeting on reorder): signed code identities, refusal/reorder and fixed superbills; `tests/insurance.test.mjs` (Medicare spending is reconciled by year and discipline): KX/CQ and exported modifiers; `tests/insurance.test.mjs` (CODE-001: effective CMS quarters), via `tests/code-sets-journey.mjs` and `tests/code-sets-claims.mjs`: clinician-attested distinct-service proposals, forbidden-override refusal and signed modifier delivery; `tests/insurance.test.mjs` (INS-013: prior adjudications reach secondary and tertiary claims), via `tests/cob-journey.mjs`: CMS primary 1 versus AMA secondary 2, prior line adjudication and 837P; `tests/archive.test.mjs` (public CLI archive round trip refuses damaged or populated stores): signed selections, units, thresholds and fixed originals; `tests/viewport-proof.mjs` (CHART-006 scenes) and `tests/cob-browser.mjs`: primary/fixed/Medicare note and charge plus secondary payer forms/screens at 1440/390 | Every unchanged acceptance example is asserted through public doors. Existing distinct-service and secondary-payer implementation closes the prior Gap; no production code-set ingestion or live clearinghouse receipt is claimed, which remain CODE-001 and INS-006 respectively. |
| `CHART-007` | Documentation compliance alerts | target | done | `src/balm/charting/compliance.ts`; `src/balm/domain/signing.ts`; `src/balm/ui/documentation.ts`; `tests/charting.test.mjs`; `docs/documentation.md` |  |
| `CHART-008` | Supervision and co-signature | target | done | `src/balm/domain/supervision.ts`; `src/balm/domain/assistant-daily.ts`; `src/balm/domain/signing.ts`; `src/balm/insurance/facts.ts`; `tests/charting.test.mjs` (CHART-008: student submission); `tests/archive.test.mjs` (CLI archive preserves jobs); `tests/retention.test.mjs` (approved destruction removes clinical bytes) | Author submission, immutable return history, supervisor queue/co-signing, two signatures, locked revisions/measures, supervisor rendering rule and inherited care-team/emergency reads ship. Same-discipline assignment/submission/co-signature, immutable supervision given, owner-recorded payer billability/minimum/rendering and Medicare student in-room/supervisor claiming are asserted in tests/charting.test.mjs (CHART-008: student submission). Owner-recorded, cited state deadlines freeze with submission, run from visit end, and show an overdue queue; the named supervisor reads only the linked governing plan, audited, with returned submissions revoking access (`tests/charting.test.mjs`, CHART-008: student submission). Owner-recorded state/current-payer daily-signing permission, immutable assistant final signature, revocation for future notes and a separately signed named-therapist supervision attestation before claiming now ship (`tests/charting.test.mjs`, CHART-008: student submission). A signature without supervision is refused from batching; after therapist attestation the existing draft is re-scrubbed and Medicare renders under the therapist. Archive/approved-destruction journeys preserve/purge both clinical signature records. Under the supplied ct ruling, independent assistant daily signing is off without the exact owner-recorded state/current-payer rule, evaluation work remains refused, and billing waits for therapist-recorded supervision. Each acceptance point and the ruling’s remaining functional gaps are asserted by the named charting, archive and destruction journeys; ROLE-002, AGENT-003 and future INS-013 work inherit these rule and supervision constraints. |
| `CHART-009` | Attachments and searchable history | target | done | `src/balm/chart-history/`; `src/balm/ui/chart-history.ts`; `migrations/core/0046_balm_chart_documents.sql`; `tests/charting.test.mjs`; `tests/archive.test.mjs` | Immutable originals, audited text/date/type history, all treating-practitioner access to uploaded chart documents, administrative/agent refusal, retention and archive. Clause-named public doors assert the MRI/two-photo journey. Episode, fax, returned certification, letters and future migrated-document obligations are in their clauses and acceptance. |
| `CHART-010` | Alerts and precautions | target | done | `src/balm/domain/alerts.ts`; `src/balm/ui/alerts.ts`; `tests/alerts.test.mjs` (CHART-010); `tests/archive.test.mjs` | Medical alerts, precautions and important notes appear on the chart header, calendar visit and check-in, and while composing the next note. Owner/treating-practitioner changes are version-fenced; reception reads for check-in, agents receive no alert text, and inactive alerts stay in the chart and archive. |
| `CHART-011` | Clinical letters and exports | target | partial | `tests/charting.test.mjs` — “CHART-011: clinician reviews and delivers a fixed progress original with episode history and reason-audited emergency reads” via `tests/clinical-letter-journey.mjs` (chart-filled signed-note draft, exact-digest review, edited draft, explicit portal delivery, fixed original after an addendum, episode search and reason-audited break glass); `tests/portal.test.mjs` — “a verified guardian switches between two minors without seeing unrelated records and submitted insurance is audited without changing verified coverage” (delivered original, selected child isolation and revoked guardian refusal); `tests/archive.test.mjs` — “prior authorization signed packets and recorded payer decisions survive a public CLI archive round trip” (letter original, author and send restore); `tests/retention.test.mjs` — “HIPAA-002: approved destruction removes clinical bytes and private tokens, retains anonymous accounts and immutable audit and receipt, and cannot be replayed” (letter original and delivery custody) | Progress-letter drafts from the clinician's signed note can be reviewed, edited and explicitly delivered to the patient's portal as a fixed original with patient, episode, author and send facts. CHART-009 history and CHART-013 reason-audited break glass cover those originals. Held: referring-physician fax delivery and confirmation need a HIPAA-eligible fax provider account under a BAA, which is not held. Plan-of-care and discharge letter templates, other provider and payer recipient workflows, secure-link and print routes, and the full two-channel acceptance journey remain unproved. |
| `CHART-012` | Ambient scribe | target | partial | `src/balm/scribe/index.ts`; `src/balm/scribe/model.ts`; `tests/charting.test.mjs` | The scribe drafts an unsigned note in the visit's template from dictation or bullet points with the install's own key; no visit recording, recorded consent, audio deletion, BAA gating or import from a connected scribe |
| `CHART-013` | Care team access with audited emergency access | target | done | `src/balm/domain/care-team.ts`; `src/balm/domain/notes.ts`; `src/balm/chart-history/documents.ts`; `src/balm/ui/care-team.ts`; `migrations/core/0049_balm_care_team.sql`; `tests/charting.test.mjs` (CHART-013) | Owner-only read-only grants and revokes; 12-hour break glass with a 10-500 character reason over notes and uploaded documents; owner notice in Balm until acknowledged; every grant, opening and read audited. `CHART-005`, `CHART-008` and `CHART-011` carry the access for their new records. |
| `REF-001` | Referrals and referring providers | target | done | `migrations/core/0058_balm_referrals.sql`; `src/balm/referrals/index.ts`; `src/balm/referrals/nppes.ts`; `src/balm/reports/referrals.ts`; `src/balm/cases/index.ts`; `src/balm/ui/cases.ts`; `tests/report.test.mjs` (REF-001); `tests/fakes/nppes.mjs` | Referrals with source, diagnosis, order and NPPES-checked (owner-enabled) or labelled hand-entered referring provider; each episode starts from a referral or direct access; derived received/scheduled/evaluated/discharged stages and recorded lost; conversion by source and provider in REPORT-001 with practitioner filter and CSV. |
| `REF-002` | Fax in and out | target | missing |  | No fax |
| `REF-003` | Episodes of care | target | done | `migrations/core/0057_balm_episodes.sql`; `src/balm/episodes/index.ts`; `src/balm/episodes/summary.ts`; `src/balm/ui/episodes.ts`; `src/balm/chart-history/search.ts`; `src/balm/insurance/authorization.ts`; `src/balm/reports/operational.ts`; `tests/charting.test.mjs` (REF-003) | Immutable per-patient episodes opened and explicitly closed; records filed by choice or to the only open episode, refused when a person must choose, otherwise labelled not assigned and never guessed by date; audited explicit assignment; visits, authorization use, plans, measure series and chart history kept and filtered per episode; REPORT-001 completion per episode. |
| `REMIND-001` | Reminder content a person approves | published | done | `src/balm/domain/reminders.ts`; `src/balm/domain/approvals.ts`; `tests/balm.test.mjs` |  |
| `COMM-001` | Delivered email confirmations and reminders | target | done | `src/balm/mail/dispatch.ts`; `src/balm/mail/events.ts`; `src/balm/mail/history.ts`; `src/balm/mail/changes.ts`; `src/balm/reminders/scheduler.ts`; `src/balm/ui/reminders.ts`; `tests/reminders.test.mjs` (COMM-001); `tests/archive.test.mjs` | Booking/intake, changes and both reminder leads have recorded submission and signed provider delivery facts through public doors. Scoped patient-file history, failed/uncertain/suppressed outcomes, immediate one/rest/whole-series move/cancel mail and private-link invalidation are asserted; CLI archive retains verified delivery. Receiving-server acceptance is not patient reading; hosted provider configuration remains the clinic’s. |
| `COMM-002` | Two-way text messages | target | partial | `tests/reminders.test.mjs` — COMM-002: patient-local quiet hours defer scheduled texts without an attempt and recheck live authority before once-only delivery; `tests/communication-browser.mjs` — native policy and patient-zone forms, visible deferral and one eligible attempt; `tests/archive.test.mjs` — COMM-003: public CLI archive round trip preserves exact calls and custody in an empty install (also preserves patient zones and immutable quiet-policy facts); `tests/payments.test.mjs` (existing consented text-to-pay edge) | Scheduled appointment reminder quiet hours are proved at the HTTP edge only, with explicit patient IANA zones and owner-recorded daily intervals; no patient zone or legal-policy default is inferred. Still unproved: authorized live delivery from a clinic US A2P 10DLC or verified toll-free SMS sender and configured credentials, which are not held; inbound sender verification; STOP and HELP; C, R and other reply routing; quiet hours for confirmations, payment links and other SMS purposes; and the complete live reminder, confirmation, reschedule and STOP journey. Visit replies still use the private email link. Network-edge fixtures establish neither sender authorization nor live delivery. |
| `COMM-003` | Communication history on the file | target | partial | `tests/reminders.test.mjs` — “COMM-003: manual calls and communication search preserve patient and conversation authority, original facts and audit” and “COMM-003: live authority changes refuse call writes and search reads before any result escapes”; `tests/communication-journey.mjs` (exact call direction, clinic-local time, authenticated staff identity and disposition; patient and conversation isolation, hidden match counts and snippets, honest email acceptance and audited reads and writes); `tests/archive.test.mjs` — “COMM-003: public CLI archive round trip preserves exact calls and custody in an empty install” (every original call field, complete patient audit rows, identical searchable history and restored custody guards); `tests/retention.test.mjs` (late call entry extends custody; reviewed destruction removes originals); `tests/communication-browser.mjs` (native call entry and search, clinical isolation and icon tooltips at 1440 and 390; push Verify) | Manual calls, existing appointment email delivery metadata and already-authorized secure messages are searchable under current patient and conversation permissions. Incoming email beyond existing records, text and fax transport and history, their delivery receipts and the complete five-channel acceptance journey remain unproved. A BAA-backed fax provider account and clinic US SMS sender and credentials are not held. Manual call records establish neither a recording nor delivery; email provider acceptance establishes neither delivery nor reading. |
| `COMM-004` | Follow-ups and recalls | target | done | `src/balm/followups/`; `src/balm/ui/followups.ts`; `tests/reminders.test.mjs` (COMM-004) | All five owner-configured sequences use per-kind recorded patient opt-in, shared rolling contact limits, durable attempts and live goal checks; booking stops open-plan/recall/missed outreach, signed evaluation/discharge trigger one-time requests, and unknown provider outcomes stop for human review. Ct consent ruling, 19 October 2026. |
| `TELE-001` | Video visits from the calendar | target | missing |  | No video visits |
| `BILL-001` | Approved, numbered invoices with fixed bytes | published | done | `src/balm/domain/invoices.ts`; `src/balm/ui/clients.ts`; `docs/invoices.md`; `tests/balm.test.mjs` | A refused preparation can be re-prepared from the client file or invoice list, preserving the earlier snapshot and requiring fresh approval. Prepared-before-signing failure and recovery exercised in the product at 1440 and 390, 18 October 2026. |
| `PAY-001` | Payments recorded once per reference | published | done | `src/balm/domain/invoices.ts`; `tests/balm.test.mjs` |  |
| `PAY-002` | Cards on file and payments at check-in | target | partial | `tests/payments.test.mjs` — “PAY-002: intake and portal authorize hosted card setup, approved original refunds reconcile once, and Terminal posts a copay once” (`tests/card-payments-journey.mjs`: separate consent and entry audit, hosted SetupIntent, $30 check-in, exact owner approval, original refund ID and ledger reversal, fixed payment receipt, patient-scoped portal receipt and superbill, and one reader payment); “PAY-002: a lost refund response stays reserved until the original Stripe refund is reconciled without another send” (verified legacy original, biller approval, stale-source refusal and no repeated refund); “PAY-002: an uncertain Terminal send is reconciled on its original intent without another collection”; `tests/retention.test.mjs` — “PAY-002 PAY-004 HIPAA-002: Stripe and external refunds retain totals without private originals” (uncertain-refund preservation fence and anonymous money facts after approved destruction); `tests/card-payments-browser.mjs`; 26 October 2026 held-key live Stripe test mode via `tests/card-payments-browser.mjs`: intake HSA card SetupIntent seti_1UUclsDg8BoejKxopRM4HSYz, portal SetupIntent seti_1UUcmADg8BoejKxoBaGj0fql, $30 copay intent pi_3UUcmRDg8BoejKxo2IrY5qH2 and original charge ch_3UUcmRDg8BoejKxo2O4gqeAU, approved refund re_3UUcmRDg8BoejKxo2HcpPJLt, account acct_1URgLjDg8BoejKxo, simulated reader tmr_GttxTA3H45K4Ae and Terminal copay intent pi_3UUcmeDg8BoejKxo0U3M6rAU; native consent, check-in, refund approval, ledger, reports, patient documents, reader configuration, pending and paid screens passed at 1440 and 390, including delayed hover and immediate-focus icon tooltips; `tests/card-payments-journey.mjs` — checkInResponsibilityJourney (final-payer coinsurance and outstanding responsibility selected and confirmed separately from copay; exact cents after payment and credit; competing collection, replay, decline and payer holds; a pending collection also refuses a new patient Checkout payment; patient-only fixed receipts and report parity); `tests/payments.test.mjs` — “PAY-002: an uncertain Terminal send is reconciled on its original intent without another collection” (saved-card and Terminal unknown outcomes retain original identity; staff revocation during a reader request prevents reservation and sending); `tests/archive.test.mjs` — “retail and finance originals, paused entitlements and preparation authority survive a public CLI archive round trip” (selected purpose, invoice, original provider identity, ledger and receipt bytes); `tests/card-payments-browser.mjs` (network-edge check-in forms, pending and paid states and patient receipts at 1440 and 390 in push Verify) ; `tests/payments.test.mjs` — “PAY-002: an uncertain Terminal send is reconciled on its original intent without another collection” (historical schedule and patient file retain saved-card and Terminal recovery after the check-in window, original identity, no repeated send, and 1440 and 390 recovery screens) ; `tests/card-payments-browser.mjs` — held-key Stripe test-mode responsibility journey (saved-card and simulated Terminal coinsurance and balance, independently read-back provider amounts, decline and replay, reservation caps, zero patient balance, ledger and report parity, immutable isolated portal receipts and native screens at 1440 and 390) | Physical paired-reader operation beyond Stripe’s test-mode simulated reader remains unproved; a simulated reader is not physical point-of-sale proof. Physical pairing, tap or insert operation and actual device qualification remain omitted. |
| `PAY-003` | Payment links and online prepayment | target | partial | `tests/payments.test.mjs` — deposit and full booking payments reserve slots, confirm exact cents once and expose isolated fixed portal receipts; `tests/schedule.test.mjs` — declined, abandoned and uncertain Checkout keeps one reservation until provider resolution and paid conflicts need human review; `tests/archive.test.mjs` — booking prepayments and fixed receipts survive a public CLI archive round trip without bearer authority; `tests/booking-prepayment-journey.mjs`; `src/balm/payments/links.ts`; `src/balm/sms/index.ts` ; `tests/schedule.test.mjs` — “PAY-003: declined, abandoned and uncertain Checkout keeps one reservation until provider resolution and paid conflicts need human review” (signed expiry recovers a lost create response without another send, releases its slot, removes only the unpaid retention hold, and enforces the combined pending cap); `tests/booking-prepayment-journey.mjs` — bookingPrepaymentJourney (shared sign-in identity refused before reservation or Checkout; isolated immutable paid receipt remains reachable in the portal) | Booking deposits and full prepayment are proved at the Stripe HTTP edge, with patient amount confirmation, durable slot and payment identity, exact visit credit, fixed receipts and signed-in portal continuation. Default ADOPTED pending ct: unstarted reservations expire after 15 minutes, and public booking credentials expire within 24 hours after an attempt while signed-in portal access remains; an attempted Checkout keeps its slot until provider-confirmed expiry or payment, and a confirmed payment that cannot fulfill the booking stays in human review without an automatic refund. Authorized live SMS delivery and the $120 text-to-pay journey remain unproved because no clinic US A2P or verified toll-free sender is held. Live Stripe sandbox qualification of the new booking-payment path remains unproved; network-edge fixtures prove neither sender authorization nor live provider acceptance.  Public prepayment refuses a submitted sign-in email held by a different patient or active guardian; clinic-assisted identity resolution is required before taking money. |
| `PAY-004` | Statements, receipts, adjustments and refunds | target | done | `src/balm/payments/account-entries.ts`; `src/balm/payments/account-credit.ts`; `src/balm/payments/account-documents.ts`; `src/balm/payments/statements.ts`; `src/balm/payments/balance-reminders.ts`; `tests/payments.test.mjs` (PAY-004); `tests/retention.test.mjs` (PAY-004); `tests/archive.test.mjs` (PAY-004) | Owner-approved manual reductions, external receipts and unused-credit refunds, oldest-first credit, fixed receipts and opted-in periodic portal statements; ct authority/custody ruling 19 October 17:20Z. Stripe refunds remain PAY-002; mailed/clinic-wide statement runs remain PAY-009. |
| `PAY-005` | Superbills | target | done | `src/balm/payments/documents.ts`; `src/balm/payments/superbill-period.ts`; `src/balm/payments/http.ts`; `src/balm/portal/data.ts`; `tests/payments.test.mjs` (PAY-005) | Per-visit and inclusive clinic-date period PDFs carry practice/rendering NPIs, tax ID, CPT units, diagnoses, charges and posted payments. Missing fields refuse the entire document; staff, private patient links and portal downloads retain their scopes and audit. |
| `PAY-006` | Payment plans and balance reminders | target | done | `src/balm/payments/plans.ts`; `src/balm/payments/plan-settings.ts`; `src/balm/payments/plan-runner.ts`; `src/balm/payments/balance-reminders.ts`; `src/balm/ui/payment-plans.ts`; `tests/payments.test.mjs` (PAY-006) | Explicitly authorized monthly card plans reserve each installment once against current patient responsibility, hold uncertain outcomes for review, and post receipts to the ledger and portal. Opted-in balance reminders stop on payment or staff request; age-based human review never initiates collections. Ct authorization ruling, 19 October 2026. |
| `PAY-007` | Good Faith Estimates | target | done | `tests/payments.test.mjs` (PAY-007: scheduled and requested estimates meet business-day deadlines: 4-day/1-day, 12-day/3-day and unbooked/3-day issuance, retained originals, $399.99/$400 comparison and patient portal isolation); `tests/good-faith-journey.mjs` (exact-candidate timing and booking/portal/scheduling screens at 1440/390, sx-balm-c30-gfe); `tests/archive.test.mjs` (CLI archive preserves jobs: original PDF through restore) | Co-provider estimates, payer AEOBs and notice of GFE availability are carried by PAY-010 (ct carve approved 22 October 2026). |
| `PAY-008` | Packages, memberships, products and gift cards | target | partial | `tests/payments.test.mjs` (cash packages draw down at attendance and taxed gift sales reconcile with patient originals and deposits); `tests/retail-journey.mjs` ; `tests/retention.test.mjs` (PAY-008: eligible retail groups retire independently without losing patient value, clinical records or dated totals); `tests/retail-retention-journey.mjs`; `tests/payments.test.mjs` (PAY-008: named staff sales require finite owner grants, revoke immediately and preserve lifecycle authority); `tests/retail-staff-journey.mjs`; `tests/payments.test.mjs` (PAY-008: unused gift-funded visits return exact value once to the original patient gift without a cash refund); `tests/retail-gift-settlement-journey.mjs` | Owner-only cash sale commands now record finite visit packages and memberships, products with an owner-documented state tax rate, and patient-bound gift value. The public-door journey proves five visits sold, two attended and three left, no extra package visit charge, a taxed brace, guarded gift redemption, portal receipt isolation and unchanged receipt originals, existing visit superbills, ledger totals and financial deposits. Conservative default ADOPTED; ct APPROVED WITH CHANGES on 25 October 2026, limited to owner-only cash recording and bounded preservation refusal. Sale recording grants no renewal, expiry, transfer, refund, provider charge, insurance billing or tax determination. Owner staff sale forms now record every sale kind and matching visit assignments. Finite memberships support explicit patient-authorized pause and resume without losing unused visits, exhaustion and a separate later cash purchase; no renewal or provider charge is authorized. Eligible digest-approved destruction removes retail identifiers, originals and membership events while preserving anonymous dated accounting and gift totals. Evidence: `tests/retail-browser.mjs` exercises all four forms, pauses, resumes, portal receipts, reports and the destruction inventory at 1440 and 390; `tests/retail-journey.mjs` proves membership consumption and exhausted-assignment refusal; `tests/retention.test.mjs` (HIPAA-002: approved destruction removes clinical bytes and private tokens, retains anonymous accounts and immutable audit and receipt, and cannot be replayed) proves old retail destruction with unchanged report totals. Conservative default APPROVED WITH RIDERS by ct on 26 October 2026 at review pin 9c7a53cd9636849a4e6ed12642137cfcdc78550f: the active owner may record reversible membership pauses and resumes only with explicit audited patient authorization for each transition. Unused visits are preserved without forfeiture or expiry; neither transition authorizes automatic renewal, a provider charge or a change to external billing. Later cash purchases remain independent. The synchronized membership pause and retention rider below applies. This approves policy defaults only; implementation and acceptance are not certified, and PAY-008 remains partial. The focused `tests/archive.test.mjs` journey (retail and finance originals, paused entitlements and preparation authority survive a public CLI archive round trip) covers exact transition authorization fields, paused visits, cancelled exhausted memberships, receipt bytes, inactive staff and excluded agent grants. The same file’s HIPAA-002 ERASE-001 public CLI erasure-journal journey refuses older retail and cancellation records against the later destruction journal and preserves anonymous sale totals. Current additional proof: the existing retail journey asserts structured transition authorization, immutable pause history, refusal to cancel unused visits, once-only exhausted membership cancellation, refusal to resume a cancelled membership and independent later purchases. The existing retention journeys refuse destruction with unused visits or gift value, extend retention from actual later consumption, then destroy fully consumed and redeemed historical records while preserving dated anonymous totals. Conservative exhausted cancellation default approved with riders by CT RL-104 on 28 October 2026: only the active owner records a specifically patient-authorized cancellation after all visits have actually been consumed; no forfeiture, settlement, refund, renewal, provider action or external billing change is authorized. Additional proof in `tests/retail-journey.mjs` refuses every missing transition authorization field and malformed timestamps, verifies that a later purchase leaves an existing paused membership unchanged, and asserts no outbound notice or provider billing action. The state-rule journey in `tests/retention.test.mjs` independently asserts fixed historical retention deadlines after sale, pause, resume, consumption and gift redemption, unchanged deadlines after reads, legal holds, and refusal to destroy unresolved visits or gift value. Additional proof in this candidate: `tests/retail-journey.mjs` (loaded by the cash packages test in `tests/payments.test.mjs`) asserts once-only patient-authorized finite renewal with a new cash receipt, refusal for non-owner, foreign patient, cancelled source, representative assertion and missing cash or authorization, exact portal history without internal consent evidence, and independently expected obligation, deposit and CSV values. `tests/retention.test.mjs` asserts active, paused and exhausted obligations at fixed historical dates and unchanged dated obligation totals after approved destruction; `tests/archive.test.mjs` preserves the renewed original and consent fields and refuses replay and inactive authority after CLI restore. `tests/retail-browser.mjs` exercises the renewal form and shows portal history and obligation reports at 1440 and 390. The same retail journey now proves once-only concurrent unused-visit cash settlement, a 3,001-cent refund with equal ledger and report arithmetic, preserved originals, and refusal of unauthorized, mismatched, unconfirmed and booked-assignment requests; the archive journey carries its exact settlement and consent facts and its accounting preparation source. Current original-gift settlement proof restores 3,001 cents to the same patient gift once, preserves purchase originals, refuses cash conversion and representative assertions, and allows the restored value to be spent once. Cash deposit totals never invent a refund, and accounting preparation credits gift liability. Archive restore preserves original-gift settlement facts, while eligible destruction preserves anonymous dated gift arithmetic. Current scoped custody proof: eligible connected retail groups can be digest-reviewed and destroyed without removing the patient, clinical records or newer unrelated purchases. Gift and renewal dependencies, unused value, clinical retention floors and legal holds remain fences. Anonymous dated totals, covered-visit billing and transaction replay refusal survive. Representative assertions refuse for every membership transition. Remaining Gaps under CT RL-104: ct approval of original-gift unused-entitlement restoration and remaining non-cash settlement; automatic renewal and renewal before exhaustion; ct approval of the adopted finite named staff grant default and broader staff sale authority; representative authorization; provider handoff and confirmation; outbound lifecycle notice consent and delivery; historical obligation detail already destroyed without dated use facts, explicitly marked incomplete; record-specific clinical destruction while newer retail originals remain; remaining provider and representative authority cases. Current native proof refuses every retail command and receipt read from a revoked owner device, expires and revokes delegated sale grants, excludes delegated authority from archives, refuses old full and scoped retail originals against a later destruction journal, and preserves unresolved gift value on a current restore. PAY-008 remains partial. The [PAY-008 and AGENT-005 adopted-default riders](#pay-008-and-agent-005-adopted-default-riders) govern this slice and map deferred work to existing clauses. |
| `PAY-009` | Statement runs by mail, email and portal | target | done | `tests/payments.test.mjs` — “statement cycles preserve mail batches, actual delivery outcomes and every portal original without changing the ledger” (`tests/statement-cycles-journey.mjs`: recorded preferences, post-insurance and minimum and hold filters, mixed cycle amounts, generic notice to portal, double-window native PDF batch, vendor file with exact originals and total, dated mail outcomes, unchanged repeat, later payment and both original amounts and bytes, patient isolation, returned address hold, monthly scheduler and age-based dunning); `tests/statement-cycles-browser.mjs` (real forms, downloads and screens at 1440 and 390); `tests/archive.test.mjs` — “ROLE-002 CHART-008 PAY-007 INTAKE-002: CLI archive preserves jobs, both signatures, estimate originals and versioned scores” (postal preference, delivery ledger, fixed statement and batch originals and patient portal after restore); `tests/payments.test.mjs` — “PORTAL-004: paid and unpaid visits, every current document, portal payment to zero and patient isolation” | Calendar-month cycles use explicit recorded patient authorization. Mail exports are local files; staff record actual mailing or return, with no automatic vendor transmission. Email provider acceptance and text submission remain distinct from confirmed delivery. No uncertain notice is automatically retried. |
| `PAY-010` | Co-provider estimates, payer AEOBs and GFE availability | target | partial | `tests/payments.test.mjs` (PAY-010: contributing provider quotes stay in the aggregate original; PAY-010: an owner matches, reviews and publishes the payer original); `tests/estimate-contributors-journey.mjs`; `tests/payer-estimate-journey.mjs`; `tests/estimate-browser.mjs` (real forms and portal at 1440/390); `tests/archive.test.mjs` (CLI archive preserves jobs: aggregate, provenance and payer original/approval); `tests/good-faith-journey.mjs` (notice on booking, portal and scheduling) | First build item: GFE-availability notice at booking, portal and scheduling (existing implementation and public-door assertions carried here). Manual boundary approved by ct on 22 October 2026. No automatic provider coordination, insured-GFE submission or AEOB polling exists. No selected payer AEOB endpoint/account is held; live payer interoperability is unproved. |
| `INS-001` | Payers, plans, fee schedules and providers | target | done | `tests/insurance.test.mjs` — “INS-001: dated plan contracts price service-date units and fees without rewriting issued documents; owner records provider licenses” (dated plan fees/methods, enrollments, licenses, service-date units, authorization/daily close and fixed issued documents); “CHART-006 primary slice: CMS, AMA and fixed-threshold note previews agree on invoice, superbill and claim, with frozen payer basis” (Medicare CMS / commercial AMA / fixed thresholds, missing-method hold); `tests/archive.test.mjs` — “CHART-006 INS-001 AGENT-003 PAY-004 COMM-001 SCHED-003 SCHED-009 HIPAA-003 CHART-010 CHART-009: public CLI archive round trip refuses damaged or populated stores” (dated schedule/license restore); `src/balm/insurance/schedules.ts`; `src/balm/ui/insurance-settings.ts` | Owner-recorded immutable dated payer/plan contracts, complete standard/contracted CPT schedules, CMS/AMA/fixed methods and provider license history. Exact policy plan name selects plan scope; contracted takes priority over standard within scope, then latest effective date. Legacy setup is the baseline until a dated revision applies. Every current pricing, claim, preview, authorization/daily-close and grounded-review door resolves the service date; issued invoices retain their original basis. License facts are owner-only and labelled unverified; no external licensing call. Actual forms/screens at 1440/390. |
| `INS-002` | Eligibility and benefits checks | target | partial | `tests/insurance.test.mjs` — “INS-002: owner prepares dated eligibility cohorts, imports matched answers and reviews affected visits without inferred policy changes”, via `tests/eligibility-cohort-journey.mjs` (clinic-local business dates, recorded holidays, monthly active policies, duplicate visits, changed and cancelled visits, stale policies, concurrent preparation, matched 271 results, unchanged plan facts and independently expected calendar and daily-close flags); `tests/archive.test.mjs` — “COMM-003 SCHED-005: public CLI archive round trip preserves exact calls, waitlist preferences and custody in an empty install” and “HIPAA-002 ERASE-001: public CLI erasure journals refuse both ordinary erasure and later destruction resurrection”; `tests/retention.test.mjs` (eligibility originals extend custody and follow reviewed destruction); `src/balm/insurance/eligibility-batches.ts` | Owner-triggered local preparation now covers the next business day’s scheduled policies and the first business day’s monthly active-policy cohort, using explicit clinic-local dates and recorded holidays. Linked inquiries deduplicate each policy and service date; changed source facts require another preview. Matched synthetic 271 imports flag inactive, changed or exhausted coverage on affected booked visits and the owner’s daily close without inferring replacement payer or plan facts. Requests remain visibly prepared or exported until an actual response or submission is recorded. A phone or payer-website check retains its named source. Claim.MD or Availity sandbox account, clearinghouse enrollment, provider credentials and applicable BAA authority are not held. Live real-time intake and episode checks, unattended outbound next-day and monthly checking, and the full sandbox benefit-response journey remain unproved. Local preparation and fixture imports establish neither payer truth nor provider acceptance. |
| `INS-003` | Authorization and visit tracking | target | done | `migrations/core/0062_balm_authorization_units.sql`; `src/balm/insurance/authorization-accounting.ts`; `src/balm/insurance/authorization.ts`; `src/balm/insurance/setup.ts`; `src/balm/scheduling/self-service-policy.ts`; `src/balm/reports/daily-close.ts`; `src/balm/ui/insurance-policy.ts`; `tests/authorization.test.mjs` (INS-003 / REPORT-004) | Visit and CPT-unit allowances, configured reservations and low remainder, inclusive coverage, scoped consumption and not-covered flags, staff warn/block, patient refusal and reservation-preserving moves, audited daily close and renewal clearing; calendar/file/panel/print/CSV units. Ct ruling, 20 October 2026. |
| `INS-004` | Prior authorization requests | target | partial | `tests/insurance.test.mjs` (signed evaluation authorization requests retain external decisions and create exactly one counted authorization): signed packet, recorded external submission, approval and counted authorization on the referral; `tests/authorization-request-browser.mjs`: native forms and referral at 1440 and 390; `tests/archive.test.mjs` (prior authorization signed packets and recorded payer decisions survive a public CLI archive round trip): original bytes and decision custody | Partial under CT's 26 October 2026 ruling. Implemented and asserted: biller preparation through the command and existing native form; owner-reviewed exact-digest release with a seven-day expiry, audited biller download, revocation and expired-release refusal; submission only after packet receipt, naming the submitter; retained dates and source terms, copied authorization allowance, dates, CPT scope and booking rule, one decision from concurrent approval and denial, and mismatched-plan and missing-score preparation refusal. Unproved: live authority changes during the new commands; recent authorization records extending retention and later-destruction restore fencing. Browser approval, denial and release forms at 1440 and 390 are loaded in push Verify; exact-SHA success remains a landing gate. Simultaneous disjoint-CPT-scope accounting remains due before support for a payer requiring it. No Balm transmission, payer enrollment or business associate agreement is established; AGENT-001 carries future prior authorization transmission. |
| `INS-005` | Claim creation and scrubbing | target | done | `src/balm/insurance/facts.ts`; `src/balm/insurance/scrub.ts`; `src/balm/insurance/professional.ts`; `tests/insurance.test.mjs` — “INS-005: referring NPI and dated 97140/97530 edit hold a claim until attested correction; payer authorization, certification and filing requirements hold every export” (named acceptance, correction, authorization/certification and filing/export/send fences); “CODE-001: effective CMS quarters, billable diagnosis children, clinician distinct-service attestations, MUE and licensed charge delivery” (effective-date edits, specificity and same-day MUE); “signed care becomes a scrubbed 837P, a payer acknowledgment and an ERA with the right patient balance exactly once” (charge/export and posting); `src/balm/insurance/claim-requirements.ts`; `migrations/core/0087_balm_claim_requirements.sql` | Signed charges, identifiers, enrollment, diagnosis pointers, payer fees and KX are scrubbed before batching. Dated loaded NCCI/MUE releases and billable ICD-10 children are enforced; the exact 97140/97530 pair names both codes and version, then passes only with a signed clinician distinct-service attestation, modifier 59 and valid referring NPI. Owner-recorded sourced payer requirements hold missing authorization or episode-matched physician certification; sourced service-date initial/correction filing instructions hold unknown decision dates and overdue filing. Prepared exports and sends recheck current requirements atomically. No payer rule or filing extension is guessed. |
| `INS-006` | Claim submission and acknowledgments | target | partial | `migrations/core/0134_balm_functional_acknowledgments.sql`; `tests/insurance.test.mjs` — “INS-006: matched 999 syntax originals never submit, adjudicate or move money and unsafe imports change nothing”: exact AK1 controls with optional AK2, single-transaction group acceptance, original bytes, accepted and rejected syntax with sourced reasons, wrong batch and transaction, malformed envelopes and counts, replay, concurrent import, current human authority, unchanged money and no regression after ERA; the existing INS-010 owner-carrier journey refuses biller imports and downloads and hides private 999 results while retaining owner access; existing signed-care 837P, 277CA, correction and ERA journeys retained. `tests/daily-close.test.mjs` — “REPORT-004: daily close names every category, links its records, audits named patients, and clears only after the work is complete”: 999 acceptance leaves export unsent. `tests/archive.test.mjs` — “CHART-006 INS-001 AGENT-003 PAY-004 COMM-001 SCHED-003 SCHED-009 HIPAA-003 CHART-010 CHART-009: public CLI archive round trip refuses damaged or populated stores”: exact 999 original and replay identity restored. `tests/retention.test.mjs` — “HIPAA-002: approved destruction removes clinical bytes and private tokens, retains anonymous accounts and immutable audit and receipt, and cannot be replayed”: protected originals, reviewed custody, destruction and replay refusal. `tests/functional-ack-browser.mjs`: actual multipart upload, visible syntax results, sourced reasons and original download; 1440 assertions and 1440 and 390 screens. | Native 837P export, configured HTTPS adapter, matched 999 syntax receipts and claim-level 277CA imports ship; 999 never establishes payer acceptance, payment or actual submission and cannot clear an exported but unsent claim or regress adjudication. Claim.MD or Availity clearinghouse sandbox account, enrollment and provider credentials are not held; payer certification, live submission and acknowledgment, correction and resubmission proof, 276 and 277 polling and the complete sandbox and paper-payer acceptance journey remain unproved. Managed provider calls remain unavailable. Existing CMS-1500 and secondary and tertiary claim behavior stays within INS-013's proved scope; no live provider qualification is claimed. |
| `INS-007` | ERA posting | target | partial | `src/balm/insurance/remittance-parser.ts`; `src/balm/insurance/remittances.ts`; `src/balm/payments/ledger.ts`; `tests/insurance.test.mjs` | Balanced positive 835 payments, CO writeoffs and PR balances post atomically once. Payer-loop REF*2U is accepted; a name-only N1*PR uses the selected payer, while explicit ID and claim/payer mismatches still refuse. Tested through the import door; no live ERA, reversals, PLB, suspense/unmatched queue, split adjudications or secondary reconciliation. |
| `INS-008` | Denials and A/R work queue | target | done | `tests/insurance.test.mjs` (INS-008: sourced claim work follows a KX denial through correction and payment) / `tests/denial-work-journey.mjs`: KX denial and named fix, original below-threshold submission, frequency-7 correction with original payer control through the gateway, paid ERA and zero balance; payer/age/CARC filters, sourced deadlines with actual payer decision dates, recorded follow-up/appeal and retained family history. Existing CO-197 authorization correction remains proved in `tests/insurance.test.mjs`. `tests/denial-work-browser.mjs`: real queue, filters, filing instructions, actions, appeal template and paid history at 1440/390. | Owner/biller work uses documented payer instructions, never an inferred import date. Recording an external follow-up or appeal performs no outbound action. Live clearinghouse enrollment and transport remain INS-006’s obligation; network-edge fakes are accepted here. |
| `INS-009` | Medicare therapy rules | target | done | `src/balm/insurance/medicare.ts`; `src/balm/insurance/medicare-claim.ts`; `src/balm/insurance/facts.ts`; `src/balm/ui/insurance-medicare.ts`; `tests/insurance.test.mjs`; `tests/archive.test.mjs`; `docs/insurance.md` |  |
| `INS-010` | Workers' comp, auto and injury cases | target | partial | `tests/insurance.test.mjs` — “INS-010: owner records carrier instructions and a patient-bound progress report in a PWK claim, while unconfigured report delivery refuses without sending” (carrier case, claim number and instructions, patient-bound PDF, PWK/REF output, owner-only custody and no-egress guard; optional 1440/390 screens); `tests/archive.test.mjs` — named INS-001 CLI archive journey (carrier case and sourced requirements restore); `src/balm/insurance/injury.ts` | Owner-recorded workers-comp, auto/no-fault and personal-injury case facts and carrier billing/authorization/report instructions. A reviewed patient-bound PDF retains its digest and PWK control in an owner-only 837P export, marked available on request, never falsely sent. BLOCKED on a BAA-backed carrier attachment account/channel and receipt proving required report delivery to the adjuster; no such account is held. Per-carrier requirement automation also remains unproved. Conservative default ADOPTED pending ct: owner-only case/report preparation, explicit audited patient/report matching, and deny all injury-batch submission until the required clinical report channel is configured and proven. |
| `INS-011` | Institutional claims for rehab agencies | target | missing | `migrations/core/0141_balm_institutional_claims.sql`; `tests/insurance.test.mjs` — institutional Medicare claim preparation preserves signed charges, refuses stale facts and exports unsent 837I originals once; `tests/daily-close.test.mjs` — institutional exports remain actionable unsent work on daily close without changing money; `tests/archive.test.mjs` — institutional claim originals survive public CLI archive round trip without submission authority; `tests/retention.test.mjs` — HIPAA-002: approved destruction removes clinical bytes and private tokens, retains anonymous accounts and immutable audit and receipt, and cannot be replayed | Current main judgment retained: no accepted institutional claims. Native owner-recorded agency instructions and one original outpatient Medicare visit support structural test export only. A Claim.MD or Availity clearinghouse sandbox account is not held: enrollment, provider credentials and applicable BAA authority, payer certification, live 837I submission, acknowledgment and correction resubmission, and the accepted sandbox receipt remain unproved. UB-04 printing, other institutional bill types, multiple-visit, secondary and correction workflows remain unfinished. INS-006 transport obligations are unchanged. Local structural proof establishes no payer acceptance or production data-license authority. |
| `INS-012` | Manual payer payment posting | target | done | `tests/insurance.test.mjs` (INS-012: balanced manual EOB batches post group checks, CARC/PR, interest and recoupments once into statements and deposits) / `tests/manual-payer-journey.mjs`: two-claim workers-comp check, CARC 45 and deductible, refused unbalanced close with no money effects, interest, separate third-claim recoupment/reopened payer A/R, repeated claim entries, denial queue, signed-in statement, EOB access refusals and exact deposit CSV; `tests/manual-payer-browser.mjs` (real check/line/scan/close forms, reopened ledger, deposits and patient balance at 1440/390); `tests/archive.test.mjs` (INS-012: CLI archive preserves jobs and restores fixed manual EOB batches, signed recoupments and deposit arithmetic); `tests/report.test.mjs` (REPORT-002: charges, payments, adjustments, A/R aging: existing money and deposit reconciliation) | Owner/biller-only drafts post no money; one guarded balanced close preserves the original payment and records takebacks as separate signed cash entries. EOB scans are fixed after close; HIPAA-002 withdraws a shared raw scan when one linked patient is destroyed, retaining other patients’ native records and anonymous business totals. No bank access or automatic payer transport. |
| `INS-013` | Secondary, tertiary and crossover claims | target | done | `tests/insurance.test.mjs` (INS-013: prior adjudications reach secondary and tertiary claims, crossover waits without duplicates, and patient balances wait for all payers) / `tests/cob-journey.mjs`: named Medicare-to-Medigap crossover and its own ERA without a duplicate; commercial secondary and tertiary 2320/2330/2430 amounts, CAS, dates and both prior adjudications; each payer’s own units and ERA; last-payer-only patient statements; audited daily-close items through actual electronic and paper submission. `tests/cob-x12-validate.py` independently validates both public-door 837P files against unmodified pyx12 X222A1 maps (20261023T010850282130Z-heavy-slot-c4549c5d). `tests/cob-browser.mjs`: real packet/EOB, held/released ledger and copay forms at 1440/390, Letter print output. `tests/charting.test.mjs` (AGENT-003: grounded pre-sign questions) / `tests/cob-defensibility-journey.mjs`: inherited payer-specific grounded review and stale-rule refusal. | Network-edge recordings establish the clause’s functional behavior; live clearinghouse enrollment remains INS-006. Print the fixed overlay on approved red stock, complete authorization/assignment/signature review and attach the retained original primary EOB before recording actual submission. An unfinished payer chain stays held unless the owner records a decision after the configured, sourced wait already authorized by this clause. |
| `CODE-001` | Versioned code sets and edit tables | target | partial | `tests/insurance.test.mjs` (CODE-001: effective CMS quarters, billable diagnosis children, clinician distinct-service attestations, MUE and licensed charge delivery) / `tests/code-sets-journey.mjs` / `tests/code-sets-claims.mjs`: two native-format CMS quarters, service-date edits and named version, billable header children, signed-clinician-only modifier proposal, indicator-zero refusal, same-day MUE across claims/batches, repeat-update no-op, reviewed HCPCS and private CPT charges through signing/invoice/837P with frozen provenance. `tests/insurance.test.mjs` (CODE-001: explicit durable continuation preserves cursors and publishes only after every archive checksum) / `tests/code-import-journey.mjs`: persisted bounded imports, concurrent continuations, replay and late-checksum refusal. `tests/code-sets-browser.mjs`: real update/private-file/synonym/search/note forms, missing/overdue daily close, continuation and modifier proposal at 1440/390; sx-balm-c30-code-ui includes delayed-hover and immediate-focus calendar tooltips. `tests/charting.test.mjs` (billed CPT units; AGENT-003: grounded pre-sign questions): active private catalog and immutable code-review rules. | A real deployment-licensed CPT export and the owner’s applicable CMS/AMA terms basis are not held. Native complete production-release import and throughput remain unproved. Network-edge files and private synthetic test uploads prove the implemented flows, not ownership of a data license or payer acceptance. Balm distributes no CPT descriptor dataset; private CPT content and HCPCS timing come from explicit owner uploads. CMS supplies HCPCS descriptions/validity. Earlier signed numeric timing facts retain their math without shipped descriptor text. |
| `REPORT-001` | Operational reports | target | done | `src/balm/reports/operational.ts`; `src/balm/ui/reports.ts`; `tests/report.test.mjs` (REPORT-001, REF-001); `src/balm/reports/referrals.ts` | Owner-only per-practitioner visits, plan-of-care completion, new evaluations, utilization/productivity and payroll counts with date/practitioner filters and CSV export. Plan-of-care completion counts per episode of care (`REF-003`). Referral conversion by source and provider (`REF-001`). The location filter is carried by `SCHED-007`. |
| `REPORT-002` | Financial reports | target | done | `src/balm/reports/financial.ts`; `src/balm/ui/financial-reports.ts`; `tests/report.test.mjs` (REPORT-002) | Owner-only charges, payments, adjustments, payer/patient A/R aging, collections per visit, days in A/R and recorded-deposit reconciliation from the ledger's records, each exported as CSV. `INS-012`, `PAY-004`, `PAY-008` and `ROLE-002` carry their records and the biller. |
| `REPORT-003` | Outcomes and MIPS quality reporting | target | partial | `tests/report.test.mjs` (REPORT-003: twenty episode outcomes match independent counts, filters and CSV without incompatible pairs or unauthorized reads), via `tests/outcome-report-journey.mjs`; `tests/outcome-report-browser.mjs` (collapsed outcome filters, removable applied-filter chips, results and CSV at 1440 and 390, invoked by push Verify) | Native owner-only audited outcome cohorts and comparable baseline-to-follow-up means are proved across 20 episodes, with practitioner grouping, recorded diagnosis and coverage filters, missing-data counts and separate instrument item sets and scoring versions; unversioned signed-chart pairs are counted separately and never averaged. CSV preserves negative changes as numbers and neutralizes formula-like text labels. Outcome filters start collapsed, with visible applied-filter chips that remove one optional filter while preserving the others and the cohort dates. Unproved and retained: dated MIPS measure selections per performance year; signed denominator, numerator and exclusion snapshots; clinician MIPS performance rates; quality-data-code claim lines and scrubber and submission proof; yearly measurement-set JSON; upload or QCDR handoff; and QPP Submissions API sandbox acceptance with hand-counted performance rates. The CMS QPP sandbox account is not held. No MIPS or live provider qualification is claimed. |
| `REPORT-004` | Daily close | target | done | `src/balm/reports/`; `src/balm/ui/daily-close.ts`; `tests/daily-close.test.mjs` (REPORT-004) | Seven-category audited owner aggregate through clinic-local today, all backlog, actionable record links and current-record clearing. Includes pending/late plans without attended visits, uncharged visits, unpaid copays, exported-but-unsent and missing claims, current-version intake and unreserved authorizations. Existing scoped views remain. Ct approved owner-only access on 19 October 2026. |
| `ACCT-001` | Accounting handoff | target | done | `tests/payments.test.mjs` (reviewed QuickBooks journals reconcile a mixed payment day and resume lost responses without duplicates: connection, reviewed mappings, card and ERA and cash, money categories, independent readback and replay); `tests/accounting-sandbox.mjs` (held-grant mixed-day sync and repeat), captured in `docs/evidence/ACCT-001-sandbox.json` (QuickBooks journal 259, account cents match, one journal after replay); `tests/accounting-browser.mjs` (native connection, mappings, exact approval, replay and cash submission at 1440 and 390); `tests/archive.test.mjs` (retail and finance originals, paused entitlements and preparation authority survive a public CLI archive round trip: restored authorization inactive) |  |
| `AUDIT-001` | Append-only access audit | published | done | `migrations/core/0015_balm.sql`; `src/balm/domain/clients.ts`; `tests/balm.test.mjs` | Every original audit row remains append-only. The owner sees consecutive reads grouped by actor with expandable actions, original timestamps and subjects; changes/downloads and other actors stay separate. Amounts display as dollars. Public-door tests and local browser proof at 1440 and 390, 18 October 2026. |
| `ERASE-001` | Erasure fenced against old backups | published | done | `src/balm/domain/clients.ts`; `src/balm/domain/clinic.ts`; `tests/balm.test.mjs`; `tests/archive.test.mjs` |  |
| `PORT-001` | Whole-clinic export and restore | published | done | `src/balm/archive-policy.mjs`; `tests/archive.test.mjs` |  |
| `HIPAA-001` | HIPAA deployment readiness | target | done | SMS refusal, BAA facts, officers, encryption, risk review, passing check and export: `tests/setup.test.mjs` (HIPAA-001: owner records readiness facts and BAAs; SMS stays off without an active agreement). Native forms and export at 1440 and 390: `tests/readiness-browser.mjs`. Archive: `tests/archive.test.mjs` (HIPAA-001: public CLI archive restores the readiness review and complete BAA history). Patient mail and SMS revocation: `tests/reminders.test.mjs` (COMM-001: booked visit is reminded on schedule, confirmed in one reply, moved and canceled safely; private messages stay in Balm). Model revocation: `tests/charting.test.mjs` (billed CPT units follow the 8-minute rule onto the invoice, and the scribe drafts from dictation with the clinic’s own key). Gateway revocation: `tests/insurance.test.mjs` (signed care becomes a scrubbed 837P, a payer acknowledgment and an ERA with the right patient balance exactly once). Storage revocation: `tests/archive.test.mjs` (HIPAA-004 automatic encrypted backups reach the owner's storage, show a recovery point, and the last one restores into a scratch deployment with a later change present). |  |
| `HIPAA-002` | Retention and destruction | target | done | `src/balm/retention/`; `src/balm/ui/retention.ts`; `migrations/core/0053_balm_retention.sql`; `tests/retention.test.mjs`; `tests/archive.test.mjs` | Owner-only retention, minor and payer deadlines, legal holds, digest-bound destruction, anonymous financial/operational totals, immutable receipt and archive fence ship. All 50 states and DC are reviewed against their primary statute or regulation with section and retrieval date; 3 complete rules (AZ, NY, DC) are verified and the rest fail closed until the owner records the applicable longer rule. |
| `HIPAA-003` | Disclosure accounting and access reports | target | done | `src/balm/domain/disclosures.ts`; `src/balm/ui/disclosures.ts`; `migrations/core/0040_balm_disclosures.sql`; `tests/disclosures.test.mjs` (HIPAA-003); `tests/archive.test.mjs` | The owner records completed external releases with recipient, records, purpose, basis and actual release time. Immutable accounting and individual access reports cover any inclusive clinic-local date range, download as CSV, and travel in whole-clinic archives. The entry form explicitly records an already completed release; it sends nothing. |
| `HIPAA-004` | Backups and recovery | target | done | `src/balm/backup/index.ts`; `src/balm/backup/envelope.mjs`; `src/balm/backup/s3.mjs`; `src/balm/ui/backups.ts`; `migrations/core/0065_balm_backups.sql`; `scripts/backups/drill.mjs`; `src/balm/archive-policy.mjs`; `tests/archive.test.mjs` (HIPAA-004) | Proven through the public doors with an S3-compatible bucket faked only at the network edge (signature-checked, including a bucket that refuses overwrites and deletions and requires upload checksums). Defaults approved by ct, 22 Oct: the owner makes the key pair on their own computer (`backup:keygen`) and Balm holds only the public key, so neither Balm nor the bucket can read a backup; a lost private key makes every backup made to it unrecoverable, and destroying it leaves them all unreadable. Storage credentials are sealed under the install secret and never shown again. Balm only writes new objects: it never deletes or rewrites a backup (an unfinished upload is aborted), and it writes into buckets with S3 Object Lock or an R2 bucket lock; how long backups stay is the bucket's own expiry and lock rule. Erasure (`ERASE-001`) and destruction (`HIPAA-002`) do not reach earlier backups, which stay encrypted until the bucket's rule removes them; restoring an older backup with `backup:restore` also saves the newest backup's journal, and `rer import` with that journal refuses an erased patient. Nothing is sent until the owner records consent, which is audited; only the owner configures, runs or sees backups, and restoring needs the private key on the owner's computer. RER Managed hosting reports backups unavailable (proved by `tests/archive.test.mjs`, HIPAA-004): that is a named Gap, an engineering dependency on an outbound connection from Managed hosting to the owner's storage and never a scope cut, and it is outside this clause's acceptance, which is met on a self-hosted install. `HIPAA-005` inherits the live receipts against Amazon S3 and Cloudflare R2 and the record of the backup target's BAA. |
| `HIPAA-005` | BAA-covered hosting and real-patient mode | target | partial | `migrations/core/0128_balm_hosting.sql`; `tests/setup.test.mjs` (HIPAA-005: hosting qualification fences patient creation, incomplete R2 coverage, revocation and inactive authority); `tests/payments.test.mjs` (PAY-003: deposit and full booking payments reserve slots, confirm exact cents once and expose isolated fixed portal receipts): no patient, reservation or provider effect when blocked, including an earlier reservation; `tests/balm.test.mjs` (Cliniko patient CSV: preview, exact-review apply, journal with the original, and undo that keeps used clients): changed readiness refuses apply and resume; `tests/movein.test.mjs` (CHART-009 AGENT-008 cliniko: propose mapping, reconcile, owner-approved atomic cutover, duplicate-free repeat and whole-bundle undo): reviewed cutover rechecks mode; `tests/archive.test.mjs` (HIPAA-001: public CLI archive restores the readiness review and complete BAA history): hosting evidence survives without executable qualification; `tests/readiness-browser.mjs`: native hosting forms at 1440 and 390; `docs/hosting-readiness.md` | Native owner-recorded deployment, account and service evidence, explicit R2 coverage, audited mode changes and same-transaction patient creation fences now ship for staff creation, public booking before payment reservation, resumed patient CSV batches and reviewed bundle cutovers. Archives preserve hosting evidence and revocations without restoring executable qualification or patient mode. Conservative default adopted: new installs and restores block creation; the owner may explicitly select synthetic demo data or activate only against current matching qualification and complete readiness. These records are attestations, not independent provider or legal verification; no synthetic record establishes live qualification or permission for real-patient use. Unproved: an actual documented HIPAA-eligible AWS stack with each used service listed and the AWS BAA recorded, successful real-patient activation there, and inherited HIPAA-004 live receipts for an automatic backup and successful restore drill against SSE-KMS S3 with Object Lock, against locked R2 on a Cloudflare BAA including R2, and the off-site storage target BAA. The practice-owned hardware qualification, full-disk encryption record and off-site backup BAA path also remain unproved. No AWS deployment runtime is supplied by this slice. HIPAA-005 stays partial until those account and live-provider obligations are proved. |
| `MOVE-001` | Reviewed patient import with undo | published | done | `src/balm/movein/index.ts`; `src/balm/movein/csv.ts`; `src/balm/ui/import.ts`; `tests/balm.test.mjs`; `tests/setup.test.mjs` |  |
| `MOVE-002` | Rehabilitation EHR migration | target | partial | `src/balm/movein/formats.ts`; `src/balm/movein/bundle.ts`; `docs/MOVE-IN-FORMATS.md`; `tests/movein.test.mjs` | Documented rehabilitation EHR Analytics Patient Lists CSV and Patient Manager Excel bring patient details in directly; documented Scheduled Visits CSV brings appointments with one practitioner and service, unique full-name linking and clinic-zone historical times. Native-header synthetic records, a 1,284-patient apply, repeat and undo, source totals and browser previews at 1440/390 are proven. Full ZIP schema, chart PDFs, episodes, referring providers, authorizations and migrated claims remain unsupported. |
| `MOVE-003` | Clinic management migration | target | partial | `src/balm/movein/formats.ts`; `src/balm/movein/bundle.ts`; `docs/MOVE-IN-FORMATS.md`; `tests/movein.test.mjs` | The clinic management system’s CSV or XLSX download path is documented, but a complete native export header dictionary or sample could not be obtained. The page and guide state direct clinic management system import is unavailable; it is not offered as a conversion task. Existing reviewed CSV command imports remain covered. A native sample with fictional details and original headers is needed; chart and intake PDFs, balances and claims remain incomplete. |
| `MOVE-004` | Therapy practice migration | target | partial | `src/balm/movein/formats.ts`; `src/balm/movein/bundle.ts`; `docs/MOVE-IN-FORMATS.md`; `tests/movein.test.mjs` | Documented Client details CSV or XLSX fields bring patient contact details and complete primary-policy identifiers in directly, with name and email identity review and source totals. The page names Analytics → Reports → Client details and its CSV or Excel download. Native-shape synthetic spreadsheet upload and apply and local 1440/390 browser preview are proven. No private export tried; birth dates, full ZIP, vCard and PDF records, appointments and balance joins, messages, claims and separated-data completeness remain unverified or unsupported. |
| `MOVE-005` | Full allied-health practice migration | target | partial | `src/balm/movein/csv.ts`; `src/balm/movein/bundle.ts`; `docs/MOVE-IN-FORMATS.md`; `tests/movein.test.mjs`; `tests/setup.test.mjs` | Direct patient CSV subset with US dates remains; reviewed conversion CSVs additionally import appointments, historical text, opening balances and policy identifiers with source totals, one-batch apply, re-import and undo. Synthetic proof only; no allied-health practice system API, calendar event and attendee join, group appointments, attachments, source practitioner, service and location mapping or native invoice migration. |
| `MOVE-006` | Reconciled cutover | target | partial | `tests/movein.test.mjs` (CHART-009 AGENT-008 cliniko: propose mapping, reconcile, owner-approved atomic cutover, duplicate-free repeat and whole-bundle undo), via `tests/movein-reconciliation-journey.mjs` (reconciliationInventory, reconciliationClaimCarry and reconciliationAuthorizationCarry): explicit source counts, named inventory omissions, exact-aging open-claim carry, original controls, invalid patient and payer refusals, stale approval refusal, concurrent cutover, duplicate-free repeat through both import doors, 835 matching and unchanged cutover reconciliation after payment; reviewed authorization carry with exact source usage, pre-cutover history exclusion, booking reservations, signed-unit consumption, exhaustion refusal, role refusals and preserved usage on repeat; `tests/agent-migration-browser.mjs`: owner preview and saved reports at 1440 and 390, invoked by push Verify; `tests/archive.test.mjs` (public CLI archive round trip refuses damaged or populated stores; retail and finance originals, paused entitlements and preparation authority survive a public CLI archive round trip): exact report, original inventory files, historical invoice facts, carried claim facts and balances survive restore; `tests/movein-reconciliation-journey.mjs` (reconciliationInvoiceCarry): historical invoice facts, matching independent aging, refused differences, owner cutover, unchanged repeat and whole-bundle undo; `tests/retention.test.mjs` (HIPAA-002: state rules; HIPAA-002: approved destruction): recent historical invoice import extends retention, private invoice originals and shared source copies are destroyed only after reviewed eligibility, and anonymous dated amounts survive | Source and destination patients, visits by month, historical documents, policies, invoice and authorization inventories and opening balances compare uploaded files with editable source controls. Three-column inventories name every uncarried record and create no usable authorization or invoice. Reviewed open-claim conversion files now carry original source, patient and payer controls, dates, billed amounts and balances into the existing run-out ledger in the same guarded transaction as patients and source aging. Every carried patient needs an independent aging record; claim balances must match it and the owner controls exactly. Unknown identities, ambiguous controls, changed payer mappings and closed run-out refuse carry; repeat never resets payments. Carried receivables prevent undo under existing retention custody. Other differences and omissions need a reason bound to the preview; errors block apply. Bounded groups, chunked source retention and the 1,284-patient apply remain proven. Limits remain 50,000 records and 20 MB per file. Unproved: complete native packages under MOVE-002 through MOVE-005, native invoice layouts. Native qualification needs original-header export examples and package mapping examples, including the owner-requested Jane chart mapping file; those source examples are not supplied. Reviewed historical invoice conversion now retains original references, dates, billed amounts and remaining balances in immutable patient billing history, with exact invoice counts and independent aging reconciliation. It issues no new bills or duplicate debt. Reviewed conversion authorizations now retain source allowances, prior usage and cutover dates in native policies and authorizations; visits before cutover are not counted twice, and native reservations and signed charges consume the remaining allowance. Native authorization layouts remain incomplete. Native edits refuse changing the dimension of a carried usage baseline. Existing-visit warnings use the clinic-local cutover date. Approval exposes original allowance, prior usage, policy and member mapping, scope, reservation, practitioner and booking action, and warns that native policy custody prevents undo immediately. Native incumbent claim layouts remain incomplete. MOVE-007 retains run-out under RL-103; no complete cutover is claimed. |
| `MOVE-007` | Pre-cutover A/R run-out | target | partial | `tests/insurance.test.mjs` — “MOVE-007: reviewed aging and mixed 835 retain migrated payments and unmatched suspense without losing or duplicating a deposit” (reviewed source aging, native/migrated/suspense mixed deposit, atomic and duplicate guards, explicit resolution, payer-control matching, age/payer report and guarded close; optional 1440/390 screens); “MOVE-007: name/date/amount fallback posts only for one clinic patient and one migrated claim” (a same-named clinic patient holds the payment in suspense for explicit review); `tests/archive.test.mjs` — “CHART-006 INS-001 AGENT-003 PAY-004 COMM-001 SCHED-003 SCHED-009 HIPAA-003 CHART-010 CHART-009: public CLI archive round trip refuses damaged or populated stores” (migrated original, paid/adjusted balance and deposit restore); `src/balm/insurance/runout.ts` | Reviewed conversion A/R CSVs preserve source/patient/payer controls, service dates, billed and original balances. Owner-only mixed 835 posting retains unknown or ambiguous lines and money in suspense; explicit reviewed resolution and payer/age reconciliation ship. Denied/rejected claims use completed original signed-charge records for frequency-7 correction with original payer control and a single transferred balance; the gateway network edge and subsequent payment are asserted by the “MOVE-007: a denied legacy receivable becomes a frequency-7 signed-charge correction with its original control and no duplicate balance” test. Scanned mixed paper EOB posting, unmatched suspense and owner-only originals are asserted by “MOVE-007: a scanned paper EOB closes one mixed native, legacy and unmatched deposit once”. Live payer transport remains INS-006; direct native incumbent layouts remain MOVE-002..005. Conservative default ADOPTED pending ct: owner-only run-out and unknown-line import/resolution, no automatic outbound/destructive action, patient responsibility stays on legacy A/R for review, and retention destruction waits while any unmatched remittance needs identity review. |
| `MOBILE-001` | Tablet-first clinician web app | target | done | `src/balm/ui/note-drafts.ts`; `src/balm/domain/draft-requests.ts`; `tests/mobile.test.mjs` (MOBILE-001); `tests/charting.test.mjs` (MOBILE-001); `verification.json` | Tablet schedule/check-in/attendance, guarded disconnected drafts, sign, home exercise and payment journey; queued later edits, lost-response replay, sign-in recovery, conflict refusal and reload warning proven. Existing BALM-001 role limits retained. Memory-only policy and role interpretation approved by ct, 19 October 2026. Product states inspected at 1440/390. |
| `MOBILE-002` | Native clinician and patient apps | target | missing |  | No native apps |
| `INTEG-001` | API, webhooks, agent keys and FHIR export | target | partial | `tests/integ.test.mjs` (scoped keys read only authorized fields, prepare invoices for a human, and lose authority on revocation): explicit schedule, contact, invoice and payment read scopes, invoice preparation with human approval, refusal of other scopes and clinical capabilities, audited reads and revocation. `tests/integ.test.mjs` (booking webhooks require owner consent and explicit approval, verify raw-body HMAC, and never retry an uncertain send): explicit consent and owner send, opaque booking payload, exact-byte HMAC, durable deduplication, uncertain or redirect handling and revocation. Existing `tests/balm.test.mjs` retains the original agent preparation fence. | Ct approved explicit owner consent, individual audited approval of each minimum-necessary booking notification, no clinical API-key scope and no retry of uncertain outcomes on 23 October 2026. Scoped read feeds now use bounded stable-ID pagination and the payment feed returns card receipts, recorded and payer movements and posted account movements once without allocation duplicates. `tests/integ.test.mjs` (the payment scope returns one card receipt or posted external movement without duplicating its invoice allocations) proves the card and credit case. Only booking events have webhook delivery; patient, charge and payment event types, automatic scheduling and complete-record structured US Core interoperability remain unfinished. Existing keys and older agent.create callers retain the documented workspace scope and three preparations; the UI defaults to schedule-only. RER Managed webhook sends remain unavailable. Record-export validation is shared with PORTAL-006. |
| `INTEG-002` | Opt-in marketing contact sync | target | missing |  | No marketing contact sync |
| `AGENT-001` | Referral-to-collection case agent | push-further | partial | `src/balm/cases/index.ts`; `src/balm/cases/stages.ts`; `src/balm/cases/steps.ts`; `src/balm/cases/actions.ts`; `src/balm/ui/cases.ts`; `tests/cases.test.mjs`; `docs/cases.md` | One case per referral follows intake, eligibility, authorization, visits, signed notes, claims, ERA and patient balance with cited records; eligibility, authorization-request, claim, denial-fix and statement steps run only after a desk person approves, with the approver kept. No fax, consent or plan-of-care certification stages, payer-chase or card-on-file asks, clinician confirmation of clinical assertions, or explicit case closing; claims rely on the 837P export or adapter, with no live clearinghouse |
| `AGENT-002` | Care continuity agent | push-further | partial | `tests/cases.test.mjs` (care continuity prepares cited feasible dates and only the current treating clinician approves the exact preparation), loaded from `tests/continuity-journey.mjs` (continuityJourney and continuityBookingJourney); `tests/continuity-browser.mjs` (native preparation, separate portal release and patient acceptance); `tests/archive.test.mjs` (COMM-003 SCHED-005 public CLI archive round trip, including continuity originals and disabled restored offers); `tests/retention.test.mjs` (HIPAA-002 state rules, including later continuity review and release custody) | Treating-clinician preparation and exact-digest approval use the current therapist-signed plan and native cadence, two unreplaced cancellations, waitlist preferences, availability, capacity and remaining visit or unit authorization. Approval creates no booking or offer. A separate clinician release offers the exact dates in the patient's signed-in portal for at most 24 hours, with no hold or outbound notice. Explicit patient acceptance rechecks every source and current patient and releasing-clinician authority, then books all dates and their ordinary authorization reservations in one transaction or changes nothing; replay cannot replace the same cancellations twice. Archives retain originals and acceptance accounting with execution disabled. Conservative interim floor under the standing scope rule: treating clinician only, unchanged signed cadence, direct patient confirmation only, no guardian delegation, no agent clinical access and no automatic outbound action. Held: an authorized clinic US SMS sender and configured credentials are not held. Patient text offers and acceptance, live sender qualification and the complete cancellation-to-text-accepted-bookings journey remain unbuilt and unproved. Scoped agent preparation, delegation and provider execution boundaries remain pending ct approval. Waitlist matching, ordered timed holds and progression remain owed by SCHED-005. |
| `AGENT-003` | Documentation defensibility check | push-further | done | `src/balm/charting/defensibility.ts`; `src/balm/charting/defensibility-model.ts`; `src/balm/ui/defensibility.ts`; `migrations/core/0063_balm_defensibility.sql`; `tests/charting.test.mjs` (AGENT-003); `tests/archive.test.mjs` (AGENT-003); `tests/retention.test.mjs` | Clinician-requested source-grounded questions on the latest unsigned revision, plan, billed minutes and payer rules; unsupported fourth unit at 40 narrative minutes, skilled need, progress-report due, clinical access, failure/stale-answer refusal, edit/recheck, human sign, retention and archive restore are asserted through public doors. |
| `AGENT-004` | Denial resolver | push-further | done | `tests/cases.test.mjs` (denial appeal preserves cited adjudications, fences current evidence and billing authority, and resolves only on posted payment; rejected claims explain the original 277CA codes and cite the acknowledgment without inventing an ERA), via `tests/denial-resolver-journey.mjs`; `tests/insurance.test.mjs` (a payer denial lands with its reason and fix, and the clinician can draft an appeal and correct the claim); `tests/archive.test.mjs` (denial appeal originals and complete adjudications survive public CLI archive round trip); `tests/denial-resolver-browser.mjs` (rejected, prepared, approved and paid states at 1440 and 390, invoked by push Verify) |  |
| `AGENT-005` | Month-end reconciliation | push-further | partial | `tests/cases.test.mjs` (month reconciliation cites missing ERA and duplicate settlement originals and only approves preparations); `tests/finance-review-journey.mjs` (financeReviewJourney and wholePayoutJourney: whole payout originals, multi-patient totals, once-only links, stale-source refusal and live authority); `tests/agent-migration-browser.mjs` via payoutBrowser in `tests/finance-review-journey.mjs` (native payout recording, linking and exact preparation approval at 1440 and 390); `tests/archive.test.mjs` (retail and finance originals, paused entitlements and preparation authority survive a public CLI archive round trip); `tests/retention.test.mjs` (HIPAA-002: state rules, payer/practice maximums and minor majority protect treated records until their period ends) | Owner-recorded settlement observations support an explicitly scoped finance.reconcile.prepare key. The public-door journey proves a missing ERA explanation and request draft, a possible duplicate card settlement explanation and refund draft, cited original references, repeat-safe preparations, scoped refusal, digest-bound owner approval and no money movement or outbound request. Conservative default ADOPTED; ct APPROVED WITH CHANGES on 25 October 2026 for preparation only. Owner-recorded evidence and once-only draft approval establish neither provider truth nor execution authority. Requests, refunds and allocation corrections remain disabled in this slice. Owner-recorded charge originals, allocated payout portions with fees and accounting originals now join monthly settlement observations by patient and original reference. `tests/finance-review-journey.mjs` proves one cited explanation per recorded amount, a 100-cent accounting difference, agreement after its recorded remainder, missing-source explanations and isolation of identical references on another patient. The focused `tests/archive.test.mjs` journey (retail and finance originals, paused entitlements and preparation authority survive a public CLI archive round trip) covers the recorded sources, approved preparation digest and refusal to revive an agent grant. These are recorded comparisons, never processor truth. Owner-recorded whole-payout envelopes now cite a practice account, payout reference, gross, fees, net, date and original evidence. Explicit immutable links bind existing patient portions to card settlements with the same patient, original charge and exact gross; conflicting account or reference, duplicate source, reused settlement, cross-month and excessive links refuse. Fixed comparisons independently total linked gross, fees, net, charge and accounting originals and the unallocated gross, fees and net remainder. Preparation approval binds the exact stored digest, rechecks cited sources and links, and never grants execution. The public-door journey proves independently hand-counted multi-patient totals, missing portions, replay, unsafe-link refusal, stale approval, current owner and scoped key authority, unchanged balances and zero provider effects. The existing CLI archive journey preserves whole originals, links, fixed comparisons and historical approvals without reviving grants; the retention journey preserves existing finance custody fences after preparation approval. Cross-period and full EFT accounting reconciliation, actual missing-ERA pursuit and outbound requests, refunds, allocation corrections, execution approval and uncertain-outcome handling, resolution lifecycle and complete record-specific destruction, inactive and stale-restore coverage remain unproved. Execution requires actual relevant provider originals and fresh specific authority; recorded comparisons establish neither provider truth nor recipient consent. Requests, refunds and corrections stay disabled; AGENT-005 remains partial. The [PAY-008 and AGENT-005 adopted-default riders](#pay-008-and-agent-005-adopted-default-riders) bind future execution and map deferred work to existing clauses. |
| `AGENT-006` | Outcome follow-through | push-further | partial | `tests/cases.test.mjs` (AGENT-006: episode questionnaires follow up once within shared limits and a cited score and adherence brief becomes a clinician-edited progress report): missed questionnaire, one bounded follow-up, immutable PSFS score, selected-program adherence, open questions, clinician edit and episode assignment; `tests/outcome-followthrough-journey.mjs`; `tests/agent-followthrough-browser.mjs` (patient request, clinician brief and edited report at 1440 and 390) | Native treating clinicians choose an episode questionnaire and home-program cadence, prepare due cycles, confirm current patient opt-in and approve each exact generic portal notification. One follow-up per unanswered request shares the clinic contact cap, including uncertain attempts. The cited brief keeps scores, selected exercise logs and patient questions; the clinician edits an unsigned episode progress report. Conservative default ADOPTED pending ct: native treating clinician only, explicit audited current consent and digest-bound approval for every send, no agent-key clinical access or unattended sending, no diagnosis or treatment change. Unattended preparation and cadence execution and ct approval remain unproved. BALM-001, COMM-004, INTAKE-003 and HIPAA-002 inherit the same authority, consent, contact-limit and custody duties for later execution. |
| `AGENT-007` | Front-desk inbox agent | push-further | partial | `tests/cases.test.mjs` — inbox prepares cited administrative requests, preserves clinical privacy and approves an exact current preparation once without effects, via `tests/inbox-journey.mjs`; `tests/communication-browser.mjs` — native preparation and review forms at 1440 and 390; `tests/archive.test.mjs` — COMM-003 SCHED-005: public CLI archive round trip preserves exact calls, waitlist preferences and custody in an empty install, plus HIPAA-002 ERASE-001: public CLI erasure journals refuse both ordinary erasure and later destruction resurrection; `tests/retention.test.mjs` — HIPAA-002: state rules and approved destruction journeys | Native human-invoked portal-message triage and exact-digest preparation approval only. Existing conversation permissions remain authoritative; clinical conversations stay untouched, and mixed or uncertain requests require human review. No agent-key message access, reply delivery, booking, referral filing or records release is supplied. Incoming email, SMS and fax ingestion, history and delivery receipts, approved reply delivery, reschedule and referral execution and the complete multi-channel acceptance journey remain unproved. A BAA-backed fax account and an authorized clinic US SMS sender with credentials are not held; file history must cover both channels. Conservative interim authority is limited to already-entitled native humans approving preparation, with no execution grant; scoped delegation and provider boundaries remain pending ct approval. |
| `AGENT-008` | Migration agent | push-further | done | `tests/movein.test.mjs` (CHART-009 AGENT-008 cliniko, webpt, simplepractice and jane: propose mapping, reconcile, owner-approved atomic cutover, duplicate-free repeat and whole-bundle undo): four provider fixtures, two unusual custom fields and source examples, unmapped record explanations, balance differences, reviewed report, scoped preparation and separate owner mapping and cutover approvals; `tests/migration-agent-journey.mjs`; `tests/agent-migration-browser.mjs` (upload, unapproved mapping, owner cutover and saved reconciliation at 1440 and 390) | The mapping agent uses supported header rules and names unsupported fields with source examples for owner review; it never invents meanings or balancing entries. Scoped keys receive metadata only and cannot read clinical files or execute imports. Native complete incumbent export support remains the unchanged MOVE-002 through MOVE-006 obligations. |
| `AGENT-009` | Replacement booking authorization agreement | push-further | missing | None yet. | Ct split from AGENT-002 on 29 October 2026; the portal acceptance journey must prove the reviewed replacement count and remaining authorization agree. |
| `AGENT-010` | Concurrent PT and OT continuity | push-further | missing | None yet. | Ct split from AGENT-002 on 29 October 2026; the clinician preparation journey must prove feasibility with both disciplines counted. |
| `BASE-AGENT-001` | One MCP door per seed | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; SEED_VERIFY_SHARD=typecheck npx -y @runeditrun/rer verify (2317/2322 points; five recorded failures); native touched journeys: 3/3; pnpm typecheck and rer build pass | Transport and native person pages are integrated; full adoption awaits the declared native families and the pinned Base conformance edges. |
| `BASE-AGENT-002` | The seed's jobs are tools, through the UI's own actions | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; SEED_VERIFY_SHARD=typecheck npx -y @runeditrun/rer verify (2317/2322 points; five recorded failures); native touched journeys: 3/3; pnpm typecheck and rer build pass | Configuration tools are declared; native patient, scheduling, clinical, financial, payer, communications and custody tool families from ct draft 50afa951126064a91707ac76b4fce9ace8b0109f remain unregistered. No target-only job is claimed. |
| `BASE-AGENT-003` | Records are resources | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; SEED_VERIFY_SHARD=typecheck npx -y @runeditrun/rer verify (2317/2322 points; five recorded failures); native touched journeys: 3/3; pnpm typecheck and rer build pass | Six configuration resource families are declared. Patient and clinical resources and the optional resource-refresh family are undeclared. Pinned Base has no client-scoped retained-artifact redaction and atomic pending-execution/capture hook for Balm erasure; native custody remains a gap. |
| `BASE-AGENT-004` | Business identity and short-lived, audience-bound tokens | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; SEED_VERIFY_SHARD=typecheck npx -y @runeditrun/rer verify (2317/2322 points; five recorded failures); native touched journeys: 3/3; pnpm typecheck and rer build pass | Owner-bound Business identity and native account admission are integrated. The optional multi-sponsor verification family is undeclared; complete roster, email-change and local-key refusal evidence remains owed. |
| `BASE-AGENT-005` | An agent acts as a person in a role, never more | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; SEED_VERIFY_SHARD=typecheck npx -y @runeditrun/rer verify (2317/2322 points; five recorded failures); native touched journeys: 3/3; pnpm typecheck and rer build pass | Native owner authority, staff self-widening refusal and an ordinary staff narrowing call are exercised. Remaining authority families and role-specific journeys are unfinished. |
| `BASE-AGENT-006` | Every action declares its risk class | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; `tests/integ.test.mjs` (BASE-AGENT native identity approval, real review and once-only effects via `tests/agent-configuration-journey.mjs`); node scripts/verify-ci.mjs runtime (17 commands and 2337/2337 conformance points, exit 0); pnpm run typecheck; pnpm run check --profile first-party | The declared configuration jobs compute standard, sensitive, money, live and access. Removing a clinic SSN retains its sensitive risk fact for the same caller and retry key in an atomic native audit receipt, without retaining the tax identifier. Other native tool families remain undeclared and their classes are not claimed. |
| `BASE-AGENT-007` | The company's policy decides, at one chokepoint | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; `tests/integ.test.mjs` (BASE-AGENT native identity approval, real review and once-only effects via `tests/agent-configuration-journey.mjs`); node scripts/verify-ci.mjs runtime (17 commands and 2337/2337 conformance points, exit 0); pnpm run typecheck; pnpm run check --profile first-party | Held clinic identity changes complete only after the native person approval, and the approved retry retains its receipt under the current policy. The existing scoped preparation REST API keeps its prior native fence and is not yet migrated into this policy pipeline. |
| `BASE-AGENT-008` | Truthful attribution | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; SEED_VERIFY_SHARD=typecheck npx -y @runeditrun/rer verify (2317/2322 points; five recorded failures); native touched journeys: 3/3; pnpm typecheck and rer build pass | Native audit and intake preparation/publication distinguish agent, sponsor and actual reviewers. Attribution across the remaining native families is unfinished. |
| `BASE-AGENT-009` | Every agent action is audited with its class and decision | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; `tests/integ.test.mjs` (BASE-AGENT native identity approval, real review and once-only effects via `tests/agent-configuration-journey.mjs`); node scripts/verify-ci.mjs runtime (17 commands and 2337/2337 conformance points, exit 0); pnpm run typecheck; pnpm run check --profile first-party | Declared MCP calls and resource reads have ordered policy audit with differs_from_policy zero. The tax-clear retry retains its approval decision instead of becoming an unrecorded review; fresh standard identity writes create a real review item. Legacy API policy migration and additional native family attribution remain owed. |
| `BASE-AGENT-010` | Agents can follow changes | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; `tests/integ.test.mjs` (BASE-AGENT native identity approval, real review and once-only effects via `tests/agent-configuration-journey.mjs`); node scripts/verify-ci.mjs runtime (17 commands and 2337/2337 conformance points, exit 0); pnpm run typecheck; pnpm run check --profile first-party | Successful configuration writes emit the native tool name and changed resource URI through Base's compulsory event surface, attributed to the agent and filtered by current native resource visibility. Pending approvals, reads and saved retries add no record change. Subscription delivery, resource refresh and the remaining native event families are undeclared and unproved. |
| `BASE-AGENT-011` | Limits are policy, and Pause stops everything | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; SEED_VERIFY_SHARD=typecheck npx -y @runeditrun/rer verify (2317/2322 points; five recorded failures); native touched journeys: 3/3; pnpm typecheck and rer build pass | Pause is exercised for every declared tool. UNDECLARED families: provider spend, byte budgets, long jobs and external mail edges; no spend enforcement is claimed. |
| `BASE-AGENT-012` | Writes are idempotent and conflict-safe | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; `tests/integ.test.mjs` (BASE-AGENT native identity approval, real review and once-only effects via `tests/agent-configuration-journey.mjs`); node scripts/verify-ci.mjs runtime (17 commands and 2337/2337 conformance points, exit 0); pnpm run typecheck; pnpm run check --profile first-party | Native writes, replay and current-admission checks are exercised. The atomic native clinic-identity risk receipt preserves the sensitivity of an operation that removed an SSN; the shared pipeline can return its original approval receipt without re-executing it. Fresh retry keys classify current state; conflicting arguments and a newly blocking policy refuse. Remaining native families and complete concurrent authority coverage are unfinished. |
| `BASE-AGENT-013` | Manifest, docs and the conformance journey | target | partial | `agent-surface.json`; `tests/initialize-agent-owner.mjs`; `tests/agent-door-browser.mjs`; `tests/integ.test.mjs` (BASE-AGENT native identity approval, real review and once-only effects via `tests/agent-configuration-journey.mjs`); node scripts/verify-ci.mjs runtime (17 commands and 2337/2337 conformance points, exit 0); pnpm run typecheck; pnpm run check --profile first-party | The configuration registry, generated docs and browser journey exist. The unchanged pinned conformance suite now passes 2337/2337 points: successful tax-clear execution enables additional output, resource and audit checks beyond the former 2317/2322 result. The ct full clinic-week journey and remaining native families are unproved. |
