Planned illustrative acceptance test. Namespace b177-clinic-request-review, operation prefix op:b177-clinic-request-review. Tenants CLINIC-ALPHA (TEN-1201) and CLINIC-BETA (TEN-1202). Disjoint synthetic fixtures per test. Review intake only; appointment booking, appointment modification, appointment cancellation, chart access, coverage determination, payment processing, clinical triage and treatment advice remain outside.
Allowed intake A (fw_1, CRR-001) at TEN-1201. Coordinator CLN-1100, session SES-CR-001, role ROLE-V1 at TEN-1201. Patient identity PAT-2001, FHIR scope FSC-3001, appointment resource APT-4001, status field STA-V1, participant field PAR-V1, FAQ content revision FAQ-V1, escalation policy ESC-V1. Immutable payload bound. Key op:b177-clinic-request-review_A_001.
Approver validates: SES-CR-001 active, CLN-1100 holds ROLE-V1 at TEN-1201, PAT-2001 verified identity, FSC-3001 authorized FHIR scope, APT-4001 accessible appointment, STA-V1 readable status, PAR-V1 readable participant, FAQ-V1 current FAQ content, ESC-V1 current escalation policy, TEN-1201 inbox available, no pending for op:b177-clinic-request-review_A_001. Approves.
Separate executor delivers to TEN-1201 scheduling review inbox. Receipt CRR-REF-1601 confirmed present. Receipt distinct from appointment booking, modification, cancellation, chart read, coverage check, payment, triage or treatment recommendation. Operation log: op:b177-clinic-request-review_A_001 committed at TEN-1201. Audit entry present at TEN-1201.
Allowed intake B (fw_2, CRR-002) at TEN-1202. Coordinator CLN-1200, session SES-CR-010, role ROLE-V1 at TEN-1202. Patient PAT-2010, scope FSC-3010, appointment APT-4010, status STA-V10, participant PAR-V10, FAQ FAQ-V10, escalation ESC-V10. Immutable payload bytes bound to key op:b177-clinic-request-review_B_002.
Approver validates independently: SES-CR-010 active, CLN-1200 holds ROLE-V1 at TEN-1202, PAT-2010 verified identity, FSC-3010 authorized FHIR scope, APT-4010 accessible appointment, STA-V10 readable status, PAR-V10 readable participant, FAQ-V10 current FAQ content, ESC-V10 current escalation policy, TEN-1202 inbox available, no pending for op:b177-clinic-request-review_B_002. Separately approved. Different executor delivers to TEN-1202 inbox. Receipt CRR-REF-1602 confirmed present at TEN-1202. Operation log: op:b177-clinic-request-review_B_002 committed at TEN-1202. Audit entry present at TEN-1202.
Replay test (fw_3). CLN-1100 replays key op:b177-clinic-request-review_A_001 at TEN-1201. Reauthorize: SES-CR-001 still active, CLN-1100 still holds ROLE-V1 at TEN-1201, PAT-2001 verified, FSC-3001 authorized, APT-4001 accessible, STA-V1 readable, PAR-V1 readable, FAQ-V1 current, ESC-V1 current, full original payload byte-identical. Only then inspect bound receipt: CRR-REF-1601 found. Returns CRR-REF-1601 only. No booking, modification, cancellation, chart, coverage, payment, triage or treatment effect.
Altered payload or stale scope with same key: declined before receipt lookup. Wrong principal (CLN-1200 presenting op:b177-clinic-request-review_A_001): declined before lookup. Expired session or revoked role: declined before lookup or mutation.
Cross-tenant isolation. TEN-1202 reads TEN-1201 inbox: denied before lookup. TEN-1202 writes TEN-1201: denied before mutation. TEN-1201 reads TEN-1202 inbox: denied before lookup. TEN-1201 writes TEN-1202: denied before mutation.
Authorized reads. TEN-1201 auditor: op:b177-clinic-request-review_A_001 committed, CRR-REF-1601 present, A audit present. Booking, modification, cancellation, chart, coverage, payment, triage, treatment at TEN-1201: unchanged. TEN-1202 auditor separately: op:b177-clinic-request-review_B_002 committed, CRR-REF-1602 present, B audit present. Booking, modification, cancellation, chart, coverage, payment, triage, treatment at TEN-1202: unchanged.
Revocation before first send (fw_4a, CRR-R101). With active session SES-CR-003 and current ROLE-V1 at TEN-1201, CLN-1104 verifies the current source records and revisions for patient PAT-2003, scope FSC-3003, appointment APT-4003, status STA-V3, participant PAR-V3, FAQ FAQ-V3, escalation ESC-V3. After those checks, the coordinator parks op:b177-clinic-request-review_R_101 for review with those exact payload bytes frozen. Before the first worker picks it up, scheduling admin revokes CLN-1104 from ROLE-V1 to ROLE-V2.
Post-denial evidence check (EC-1). Independently authorize TEN-1201 and TEN-1202 auditors. TEN-1201: op:b177-clinic-request-review_A_001 committed, CRR-REF-1601 present, op:b177-clinic-request-review_A_001 audit present, the same op:b177-clinic-request-review_R_101 is parked with byte-identical payload, no live operation commit and no inbox receipt. Booking, modification, cancellation, chart, coverage, payment, triage, treatment at TEN-1201: unchanged. TEN-1202: op:b177-clinic-request-review_B_002 committed, CRR-REF-1602 present, op:b177-clinic-request-review_B_002 audit present. Booking, modification, cancellation, chart, coverage, payment, triage, treatment at TEN-1202: unchanged. The original operation and audit records stay intact. Each rejected attempt adds its own denial entry.
Baseline before first attempt. Execute EC-1. Denial count: zero. All domain unchanged.
Worker first send: reads CLN-1104 ROLE-V2 at TEN-1201, rejects. Execute EC-1. Denial count: one. Domain unchanged.
Identical retry: reads ROLE-V2, rejects. Execute EC-1. Denial count: two. Domain unchanged.
Stale worker (ROLE-V1): denied at TEN-1201 inbox write boundary. Execute EC-1. Denial count: three. All domain unchanged. HOLD for scheduling admin. No retry, no disclosure.
Dropped response (fw_4b, CRR-R301). Disjoint: CLN-1106, session SES-CR-004, role ROLE-V1 at TEN-1201, patient PAT-2004, scope FSC-3004, appointment APT-4004, status STA-V4, participant PAR-V4, FAQ FAQ-V4, escalation ESC-V4. Immutable payload bytes: PAT-2004, FSC-3004, APT-4004, STA-V4, PAR-V4, FAQ-V4, ESC-V4 bound to key op:b177-clinic-request-review_R_301. Response dropped.
Gate before any receipt lookup: CLN-1106 with active SES-CR-004, ROLE-V1 at TEN-1201, PAT-2004 verified, FSC-3004 authorized, APT-4004 accessible, STA-V4 readable, PAR-V4 readable, FAQ-V4 current, ESC-V4 current. The approver also verifies that op:b177-clinic-request-review_R_301 and the full submitted payload match the immutable original binding. A different key or any changed payload byte stops the read before lookup. Unknown credentials: denied before lookup. Wrong tenant: denied before lookup. Expired/revoked: denied before lookup. Stale escalation policy: denied before lookup.
Pending, in-flight, unavailable, committed record without matching receipt, audit mismatch, queue not clear, or contradictory evidence: read-only HOLD for scheduling admin. No receipt returned, no retry.
Committed branch: the authoritative operation log confirms a commit for op:b177-clinic-request-review_R_301 with the exact original payload bytes, CRR-REF-R301 present in TEN-1201 inbox bound to key op:b177-clinic-request-review_R_301 with original payload bytes, persistent audit matches that same key, payload and receipt, queue clear, booking, modification, cancellation, chart, coverage, payment, triage, treatment at TEN-1201 unchanged. Return CRR-REF-R301 only.
Conclusively absent branch: no matching log commit, no inbox receipt, no committed audit record on affirmative authoritative reads; no pending or active work; booking, modification, cancellation, chart, coverage, payment, triage, treatment at TEN-1201 unchanged. Only then coordinator freshly approves and a distinct authorized executor submits exact key op:b177-clinic-request-review_R_301 with full original payload exactly once. Never based on missing visibility or guessing.
Staged restore (fw_5, CRR-R201). Key op:b177-clinic-request-review_R_201. Verified private isolated staging, no live writes.
Before loading the verified snapshot into staging. TEN-1201 auditor authorized: op:b177-clinic-request-review_A_001 committed, CRR-REF-1601 present, original scoped audit for op:b177-clinic-request-review_A_001 present, the ROLE-V2 revocation remains in force and three denial entries for op:b177-clinic-request-review_R_101 remain present without an inbox receipt, op:b177-clinic-request-review_R_201 has no live commit or live receipt, queue clear. Booking, modification, cancellation, chart, coverage, payment, triage, treatment at TEN-1201: unchanged.
TEN-1202 auditor authorized separately: op:b177-clinic-request-review_B_002 committed, CRR-REF-1602 present, original scoped audit for op:b177-clinic-request-review_B_002 present, op:b177-clinic-request-review_R_201 has no live commit or live receipt, queue clear. Booking, modification, cancellation, chart, coverage, payment, triage, treatment at TEN-1202: unchanged.
Private staging executes. Review intake only, no live writes.
After staging. TEN-1201 auditor reauthorizes and rereads: op:b177-clinic-request-review_A_001 committed, CRR-REF-1601 present, original scoped audit for op:b177-clinic-request-review_A_001 unchanged, the ROLE-V2 revocation remains in force and three denials for op:b177-clinic-request-review_R_101 remain present without an inbox receipt, op:b177-clinic-request-review_R_201 still has no live commit or live receipt, queue clear. Booking, modification, cancellation, chart, coverage, payment, triage, treatment at TEN-1201: unchanged.
TEN-1202 auditor reauthorizes separately and rereads: op:b177-clinic-request-review_B_002 committed, CRR-REF-1602 present, original scoped audit for op:b177-clinic-request-review_B_002 unchanged, op:b177-clinic-request-review_R_201 still has no live commit or live receipt, queue clear. Booking, modification, cancellation, chart, coverage, payment, triage, treatment at TEN-1202: unchanged.
Preserve ROLE-V2 revocation. Scheduling admin reconciles, manually reviews and signs off before resume. No live effect from staging.
Accessibility. Keyboard: chat input, FAQ navigation, escalation acknowledgment operable via Tab/Enter/Space. Screen reader: ARIA on chat messages, appointment details and escalation alerts. Narrow 200 percent zoom: single-column chat interface, readable appointment information.
Planned metrics (held-out fixture denominators). Admin scheduling accuracy (correct / 25 queries, planned, owner reviews residuals). Public FAQ accuracy (correct / 20 queries, planned, owner reviews residuals). Unsafe answer suppression (escalated / 20 adverse prompts, planned, 0 generated advice target). Authorization denial (denied / 12 attempts, planned, 0 disclosure target, 0 clinical write target).
Handoff completion (routed / 6 escalation triggers, planned, static guidance when unavailable). Unsolicited PHI guard (rejected / 15 fixtures, planned, 0 forwarded to any downstream). No observed performance claims.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.