FacilityPulse (fictional) manages facilities maintenance request data. MetricCore v4.2 (fictional) owns metric definitions, source staging, dashboard publishing and reconciliation workflows. The staging sandbox holds synthetic maintenance request fixture records. Platform version: v2026-Q2-hc. Release owner: Dr. Nadia Petrov, Facilities Director. Reviewer: Owen Blake, Operations Analyst. Test record owner: Ines Almeida. All records are synthetic. No electronic health records, patient data, clinical quality measures, prescriptions, claims, personnel records or care workflows enter the fixture.
The source extract is a CSV with columns: request_id, facility_code, eligibility_ts, closure_ts, request_type. The business week is half-open: Monday 00:00:00 UTC (inclusive) to next Monday 00:00:00 UTC (exclusive), so no subsecond record is silently excluded at the boundary. The reporting grain is facility, week. The numerator counts distinct request_ids where closure_ts falls within 48 hours of eligibility_ts and within the reporting week. The denominator counts distinct request_ids where eligibility_ts falls before the reporting week boundary. Null closure_ts requests are included in the denominator only. Duplicate request_ids within the same facility and week are flagged and excluded after the first valid occurrence by eligibility_ts order.
The sandbox holds two facility fixtures. North facility (NF-01) carries 24 eligible requests for the reporting week ending 2026-11-22. Of those, 16 have closure_ts within 48 hours of eligibility_ts (baseline numerator 16, denominator 24). Annex facility (AX-02) carries 8 eligible requests for the same week, 5 closed within 48 hours (baseline numerator 5, denominator 8). The dashboard displays 16/24 (66.7%) for North and 5/8 (62.5%) for Annex at baseline.
Ines Almeida owns the expected-results sheet, a separate spreadsheet listing each request_id, its facility, eligibility_ts, closure_ts and the independently computed weekly aggregate. The sheet is distinct from the fixture, the dbt model output and the dashboard.
P1 is authorized by Dr. Nadia Petrov (FACILITIES_DIRECTOR, independently authorized for North scope) targeting the North weekly aggregate for business week 2026-W47 (Monday 2026-11-16 00:00:00 UTC inclusive to Monday 2026-11-23 00:00:00 UTC exclusive). The fixture holds a disjoint baseline record: "NF-01 | 2026-W47 | batch-v22 | closed=16 | eligible=24 | pending\n" with the dashboard reading 16/24 (66.7%) at marker pub-0100; and a proposed record: "NF-01 | 2026-W47 | batch-v22 | closed=18 | eligible=24 | staged\n". Each record is a UTF-8 string ending with one LF. The two previously excluded closures were within the 48-hour window measured from each request's eligibility_ts; they were excluded by a UTC-offset error that assigned a Saturday-night closure to the following Monday cohort. The 48-hour test runs from each request's eligibility_ts individually, so a closure at 00:30 Monday for a request eligible at 23:00 Saturday still falls within the window and must count. P1 stages the corrected aggregate at North scope only. Before staging, the dashboard independently reads 16/24 at pub-0100 for North and the reviewer view returns an empty staged label. After staging, the reviewer view must show 18/24 (75%) with its linked batch-v22 digest. The dashboard public value and marker pub-0100 are unchanged; the reviewer label is not a publication. Read the separate staging record marked stg-0100, status staged and receipt STG-NF-01. At the same cutoff, Ines Almeida reconciles 18/24 (75%) independently against the scoped expected-results sheet. Independently read the published North dashboard again at pub-0100: 16/24 (66.7%) still serves. Zero source writes outside the staging layer. The Annex value 5/8 (62.5%) remains unchanged.
Owen Blake owns the second check in Annex scope as Operations Analyst. P2 uses separate fixture records for AX-02: baseline "AX-02 | 2026-W47 | batch-v22 | closed=5 | eligible=8 | pending\n" and proposed "AX-02 | 2026-W47 | batch-v22 | closed=6 | eligible=8 | staged\n", each ending with one LF. Neither record comes from the P1 fixture. The Annex endpoint independently reads "No staged notice" at p2-0102-before before staging. After verifying current Annex approval for the proposed record, Owen Blake stages the corrected aggregate. The reviewer view must show 6/8 (75%) for Annex with its linked batch-v22 digest. Zero source writes. The North value remains at its pre-staging public display. Read the Annex published dashboard before and after this stage: 5/8 (62.5%) at pub-0102 both times. The separate staged view reads 6/8 (75%) at p2-0102-staged with the approved batch-v22 revision. Ines Almeida checks that exact value on the independent sheet for the same scope and cutoff. The North dashboard stays at 16/24 (66.7%) and pub-0100.
P3 replays the identical P1 staging request for North. The system returns the original staging receipt STG-NF-01 with stage marker stg-0100 and status staged. The published dashboard independently reads 16/24 at published reader marker pub-0100, unchanged from baseline. Scope (North valid), approval (batch-v22 current) and aggregate (18/24 unchanged in the staged view) are independently confirmed. Zero new admission, zero dispatch, zero publication and zero source writes.
Held-out reconciliation. Ines Almeida's held-out sheet covers a different week (ending 2026-11-15) for a third facility, South (SF-03). The sheet lists 10 eligible requests with 8 closures within 48 hours, expected aggregate 8/10 (80%). The dashboard displays 7/10 (70%) because one closure that falls within the 48-hour window was excluded by a venue mapping error: the request's facility_code maps to a deprecated South sub-code that the inclusion rule does not recognize. The discrepancy between expected 80% and observed 70% blocks the release. The metric owner corrects the facility mapping, reruns the smallest instrumented check for SF-03 week ending 2026-11-15, and confirms 8/10 (80%) matches the held-out sheet.
Bounded read test. Three reads against the North weekly aggregate with no staging effect. (a) Authorized read: the dashboard returns the current public value and ETag. (b) Conditional read with matching ETag: 304 with no body. (c) Read with revoked report-reader permission: denied with no content. Zero writes or staging effects.
F1 through F7 exercise role, token, scope, batch version, payload hash, pre-publication withdrawal and missing-field validation. F1: a facility viewer with no report-reader role receives 403 at query with zero token. F2: Owen Blake's token is revoked mid-session and the retry receives 401 with zero staged effect. F3: an Annex-scoped analyst targets North and receives 403 scope-denied. F4: a stale batch version batch-v21 is submitted and receives 409 version-rejected (batch-v22 required). F5: the aggregate payload hash is changed after approval and receives 409 hash-mismatch. F6: Dr. Nadia Petrov withdraws the North staging before publication and zero published effect results. F7: the facility_code field is missing and the request receives 422 validation-error.
F8 duplicate-pending detail. On a separately reset fixture the published dashboard reads the baseline value 16/24 for North at published reader marker pub-0100. The corrected aggregate 18/24 is admitted as pending under Dr. Nadia Petrov (FACILITIES_DIRECTOR, North), approval batch-v22, receipt STG-NF-01, stage marker stg-0100. The published dashboard independently reads 16/24 at pub-0100 unchanged; the separate staged view reads 18/24 at stg-0100. No dispatch, no source write, no changed public output. Authority for Dr. Nadia Petrov, North scope and batch-v22 approval are independently re-verified current. The identical staging request is retried on the same operation slot under the same actor. The system confirms the existing pending admission, re-authorizes against batch-v22 and returns STG-NF-01. The published dashboard still reads 16/24 at pub-0100. Zero additional admissions, zero dispatch, zero publication, zero source writes.
F9 lost-acknowledgement detail. On a separately reset fixture the North staging was published. The journal shows the applied entry: owner Dr. Nadia Petrov (FACILITIES_DIRECTOR, North), approval batch-v22, receipt STG-NF-01, status applied, published reader marker pub-0101. The HTTP acknowledgement was lost due to a connection reset after the server committed. Dr. Nadia Petrov's client received a timeout, not a success response. Before deciding to resend, the system queries the authoritative journal and finds the applied entry with receipt STG-NF-01 and status applied. The published dashboard independently reads 18/24 at pub-0101, confirming the aggregate reached the controlled surface. Authorization for Dr. Nadia Petrov, North scope and batch-v22 are independently re-verified current. The system returns the original receipt STG-NF-01 with the applied status. Zero redispatch, zero re-publication.
F10 terminal no-effect. For cancelled staging STG-NF-99 the system reads the journal and confirms no admitted, pending or active execution referencing STG-NF-99. It produces fenced epoch proof establishing that no future execution can reference STG-NF-99 under the current epoch. Dr. Nadia Petrov's current North-scoped capability, batch-v22 approval and current epoch are independently re-verified. One bounded same-key retry under the new epoch is permitted. Empty UI, timeout and missing journal entry alone are not sufficient proof of terminal no-effect. Any unresolved state triggers a hold with zero dispatch until the journal status is independently resolved.
F11 contention detail. Three independently reset subcases on the same sandbox fixture. (a) STG-NF-01 is staged under Dr. Nadia Petrov (FACILITIES_DIRECTOR, North), approval batch-v22, execution active, receipt STG-NF-01, stage marker stg-0101. The published dashboard independently reads 16/24 at published reader marker pub-0101. (b) After independent reset with the prior occupied slot reseeded, Owen Blake (OPERATIONS_ANALYST, with separate current scoped approval batch-v22 for this occupied staging slot) independently reads the published dashboard at pub-0101 showing 16/24 for North, verifies Dr. Nadia Petrov as existing staging owner with active receipt STG-NF-01, and attempts STG-NF-03 targeting the same North aggregate slot. The API reports conflict. Dr. Nadia Petrov remains staging owner. Zero contender admission, zero dispatch, zero publication. The published dashboard independently reads 16/24 at pub-0101 unchanged. (c) Reset a separate conflict copy for the occupied North slot with the original owner and receipt reseeded. The independently queried North reviewer view reads 18/24 (75%) at batch-v22, while the published North dashboard reads 16/24 (66.7%) at pub-0101 under batch-v21. The journal retains Dr. Nadia Petrov as owner. After placing the slot on hold, read the published North dashboard again: 16/24 (66.7%) at pub-0101. Zero new admissions, dispatches or retries. Keep the hold until Dr. Nadia Petrov reconciles the two scoped readings and verifies the currently approved revision against the source.
F12 snapshot age and publication. The dashboard, API and policy-enforced cache consult separate actor approval, publication status and snapshot-age inputs for the North aggregate. The staged value 18/24 has already been verified and is eligible for publication; it is seeded as the current published snapshot. At 47 hours since independent content verification, force an eligible refresh that times out. Independently recheck Dr. Nadia Petrov's current approval, North scope and confirm the record is currently publishable. On all three surfaces the published value 18/24 may still serve for North and 5/8 for Annex must stay unchanged. At 48 hours force a second refresh with the mock returning unavailable. Independently reconfirm the same current actor, scope and publishable state. The independently enforced 48-hour hard max age cutoff now withholds 18/24 and all three surfaces must show approved fallback "facilities-index-current" for North and unchanged 5/8 for Annex. In three separate reset runs at both ages, keep actor approval current and make the publication lookup time out, return withdrawn, or return restricted for North. Each result must immediately withhold the affected value on the dashboard, API and cache and serve fallback "facilities-index-current". The unchanged 5/8 for Annex must be preserved in each run. Already downloaded or offline copies can escape that control.
F16 late-revocation detail. Seed NF-01-a at batch-v22a for North. On the private readiness screen confirm current approval and the proposed value "18/24-updated" under selector CFG-NF-01. The public dashboard, API and policy-enforced cache must still read selector CFG-NF-00, value 16/24 for North, approved fallback "facilities-index-current" and 5/8 for Annex. Revoke NF-01-a after readiness. The attempted switch is rejected. Read CFG-NF-00, 16/24, the absence of "18/24-updated", "facilities-index-current" and 5/8 independently on all three surfaces. In a separate compatible restore arm, prepare CFG-NF-01-r without NF-01-a. Immediately before switching, Dr. Nadia Petrov independently verifies current approval for the exact CFG-NF-01-r selector, North scope and its remaining batch artifacts, and confirms the withdrawal fence still excludes NF-01-a. After switching, the actual readback on the dashboard, API and cache must show CFG-NF-01-r, 16/24, no "18/24-updated", fallback "facilities-index-current" and 5/8 for Annex. In the separately reset incompatible arm, the saved fixture lacks the required facility group code for the candidate schema. Reject the restore and independently verify CFG-NF-00 remains selected, 16/24 still serves, "18/24-updated" is absent, "facilities-index-current" still serves and 5/8 for Annex is unchanged on all three surfaces. No branch permits reusing NF-01-a. External copies can lag.
QA evidence and rerun. Ines Almeida owns the test record. Dr. Nadia Petrov owns the facilities release decision. Owen Blake owns the operations release decision. The held-out input is the South SF-03 fixture for week ending 2026-11-15, not used to seed or calibrate North or Annex. Block release because the dashboard displays 7/10 while the held-out sheet expects 8/10. Preserve the first failing trace. Rerun the smallest instrumented check on the corrected facility mapping. Release cadence is conditional on risk, scope, fixture quality and the buyer's change pattern.
F13-F18 accessibility. Chromium at 320px with a DOM status observer. F13: Facility selector, Week filter and Publish action controls are each Tab-reachable and Enter-activated (WCAG 2.2 2.1.1). F14: 2px visible focus ring on each control, no focus loss during Tab traversal (WCAG 2.4.7). F15: aggregate table reflows at 320 CSS px with zero horizontal scroll (WCAG 1.4.10). F17: non-color text labels "Pending review" and "Published" visible alongside any status indicator (WCAG 1.4.1). F18: after activating the Publish action control, the DOM status observer reads aria-live region text "Aggregate status: Published" while focus stays on the Publish action control (WCAG 4.1.3); no patient or private data in the announced text. A reviewer uses Safari with VoiceOver for a separate manual check targeting the identical expected string "Aggregate status: Published".
| Step | Operation | Outcome |
|---|
| P1. Stage North aggregate | Corrected 18/24 staged | Independent marker; no source write |
| P2. Stage Annex aggregate | Corrected 6/8 staged | Independent marker; no source write |
| P3. Replay North staging | Original receipt and marker | No new staging or write |
| F1. Viewer at query | Role denied, zero token | expect: 403, zero token |
| F2. Revoked at use | Denied before change | expect: 401 revoked, 0 staged |
| F3. Wrong scope | Scope denied, 0 effect | expect: 403 scope-denied |
| F4. Stale batch | Version rejected | expect: 409 version-rejected |
| F5. Changed payload | Hash mismatch | expect: 409 hash-mismatch |
| F6. Withdraw before publish | No published effect | expect: 0 published effect |
| F7. Missing field | Validation error | expect: 422 validation-error |
| F8. Retry pending staging | Journal pending; dashboard unchanged | expect: 0 publish, 0 change |
| F9. Published lost-ack | Journal published; dashboard confirmed | No re-publication |
| F10. Terminal no effect | Not staged; fenced; 1 retry | expect: not-staged, fenced |
| F11. Occupied slot | Owner holds; 0 contender publish | expect: owner unchanged |
| F12. Refresh near cutoff | Serve before; withhold after | expect: serve pre, withhold post |
| F13. Keyboard reach and use | Tab to controls | Use controls with Enter |
| F14. Visible focus | Focus ring visible | Focus remains on control |
| F15. Reflow at 320px | target: no horizontal scroll | target: table content visible |
| F16. Late revocation | Stale blocked; prior serves | expect: blocked, prior serves |
| F17. Status in text | target: "Pending review" visible | target: "Published" visible |
| F18. Status announcement | target: "Aggregate status: Published" | target: focus stays on control |
| Positive state | 3 of 3 correct | 3/3 targets: 2 staged, 0 from P3, 0 source writes |
| Failure state | 18 of 18 correct | 18/18 targets: denial/hold, accessibility, 0 unauthorized |
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.