WasteTrack (fictional) manages kitchen weigh-event data. MetricCore v4.2 (fictional) owns metric definitions, source staging, dashboard publishing and reconciliation workflows. The staging sandbox holds synthetic kitchen waste fixture records. Platform version: v2026-Q2-fb. Release owner: Chef Marco Vitale, Operations Director. Reviewer: Sana Patel, Quality Analyst. Test record owner: Liam Torres. All records are synthetic. No supplier invoices, customer payment records, food safety certifications or labour schedules enter the fixture.
The source extract is a CSV with columns: event_id, outlet_code, waste_reason, weight_value, weight_unit, event_ts, batch_version. The business day uses a fixed shift window: 06:00 local (inclusive) to 06:00 next day local (exclusive). The reporting grain is outlet, business date. The metric sums kilograms: gram-valued events are converted at 1000:1 and the total is rounded to two decimal places. If two records share the same event_id within the same outlet and business date the collision is quarantined for review. Two distinct events with equal kilogram values but different event_ids both count.
The sandbox holds two outlet fixtures. Demo East (DE-01) carries weigh events for business date 2026-11-20 with a baseline total of 3.4 kg. Demo West (DW-02) carries events for the same date with a baseline total of 1.8 kg.
Liam Torres owns the expected-results sheet, a separate spreadsheet that lists each event_id, its outlet, waste reason, weight value, unit and the independently computed daily total for the outlet. The sheet obtains its per-event weights from the approved source extract at the declared batch revision and sums them using the same conversion rule. The sheet is distinct from the fixture, the dbt model output and the dashboard.
P1 is authorized by Chef Marco Vitale (OPS_DIRECTOR, independently authorized for East scope) targeting the East daily waste total for business date 2026-11-20. The baseline revision input is "DE-01 | 2026-11-20 | batch-v10 | total=3.4 | pending\n" with the dashboard reading 3.4 kg at marker pub-0100. The corrected revision input for the same slot is "DE-01 | 2026-11-20 | batch-v10 | total=3.9 | staged\n". Each record is a UTF-8 string ending with one LF. The corrected 3.9 kg replaces the baseline 3.4 kg for the same outlet-date slot after the unit mapping was updated to accept gram-valued source records alongside kilogram records. The independent expected-results sheet sums the two normalized event weights (2.4 kg + 1.5 kg = 3.9 kg), each with a distinct event_id, using the corrected unit mapping at batch-v10. Before staging, independently read the dashboard, API and export for East: all three return 3.4 kg, status published, marker pub-0100. The reviewer view returns "No staged notice" at stage marker stg-0100. P1 stages the corrected total at East scope only. After staging, independently read the dashboard, API and export for East again: all three still return 3.4 kg, status published, marker pub-0100 unchanged. The separate reviewer view now shows 3.9 kg, status staged, marker stg-0100, receipt STG-DE-01, linked to batch-v10. At the same cutoff, Liam Torres reconciles 3.9 kg on the expected-results sheet: the sheet sums normalized event weights 2.4 + 1.5 = 3.9 kg from the corrected revision input for DE-01 date 2026-11-20 at batch-v10. Zero source writes outside the staging layer. The West value 1.8 kg is unchanged on dashboard, API and export at pub-0100.
Sana Patel owns the second check in West scope as Quality Analyst. P2 uses separate fixture records for DW-02: baseline "DW-02 | 2026-11-20 | batch-v10 | total=1.8 | pending\n" and proposed "DW-02 | 2026-11-20 | batch-v10 | total=2.2 | staged\n", each ending with one LF. Neither record comes from the P1 fixture. The proposed 2.2 kg adds two distinct weigh events, each 1.1 kg with separate event_ids and different waste reasons. Before staging, independently read the dashboard, API and export for West: all three return 1.8 kg, status published, marker pub-0102. The West reviewer view returns "No staged notice" at stage marker p2-0102-before. After verifying current West approval for the proposed record, Sana Patel stages the corrected total. The reviewer view now shows 2.2 kg for West, status staged, marker p2-0102-staged, linked to batch-v10. Liam Torres reconciles 2.2 kg on the expected-results sheet for DW-02 date 2026-11-20: the sheet sums the two new event weights (1.1 + 1.1 = 2.2) at batch-v10, scope West, cutoff 2026-11-20. After staging, independently read the dashboard, API and export for West: all three still return 1.8 kg, status published, marker pub-0102. Zero source writes. The East dashboard, API and export stay at 3.4 kg, status published, marker pub-0100. One stage admission for this fixture, with zero dispatch, publication or source writes.
P3 replays the identical P1 staging request for East. The system returns the original staging receipt STG-DE-01 with stage marker stg-0100 and status staged. Independently read the dashboard, API and export for East: all three return 3.4 kg, status published, marker pub-0100 unchanged from baseline. Independently query the East reviewer view: 3.9 kg at stg-0100, still staged under the existing receipt. Scope (East valid), approval (batch-v10 current) and total (3.9 kg unchanged) are independently confirmed. Zero new admission, zero dispatch, zero publication and zero source writes.
Held-out reconciliation. Liam Torres's held-out sheet covers a different date (2026-11-19) for a third outlet, Demo Annex (DA-03). The DA-03 fixture is excluded from P1 and P2 entirely. The sheet lists events totalling expected 2.6 kg: one event at 1.6 kg plus one event at 1,000 g (= 1.0 kg after conversion). The dashboard displays 1.6 kg because the gram-valued event was rejected by an obsolete unit mapping that accepts only kilogram records. The two events carry distinct event_ids; a collision with the same event_id would be quarantined without dropping the equal-valued distinct event. The discrepancy between expected 2.6 kg and observed 1.6 kg blocks the release. The metric owner corrects the unit mapping, reruns for DA-03 date 2026-11-19, and confirms 2.6 kg matches the held-out sheet.
Bounded read test. Three reads against the East daily total with no staging effect. (a) Authorized read: the dashboard returns 3.4 kg 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-dispatch withdrawal and missing-field validation. F1: an outlet viewer with no report-reader role attempts to obtain a preview of the staged total; the system denies preview issuance with 403 and zero issued token, zero staged effect. F2: Sana Patel holds a previously valid issued preview for the West staged total; her report-reader role is revoked mid-session; the next read using the existing preview receives 401 with zero staged effect. F3: a West-scoped analyst targets East and receives 403 scope-denied. F4: a stale batch version batch-v9 is submitted and receives 409 version-rejected (batch-v10 required). F5: the aggregate payload hash is changed after approval and receives 409 hash-mismatch. F6: Chef Marco Vitale withdraws the East staging candidate before any dispatch; the system confirms zero dispatch, zero staged effect, zero publication and zero source writes. F7: the outlet_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 3.4 kg for East at published reader marker pub-0100. The corrected total 3.9 kg is admitted as pending under Chef Marco Vitale (OPS_DIRECTOR, East), approval batch-v10, receipt STG-DE-01, stage marker stg-0100. The published dashboard independently reads 3.4 kg at pub-0100 unchanged; the separate staged view reads 3.9 kg at stg-0100. Authority for Chef Marco Vitale, East scope and batch-v10 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-v10 and returns STG-DE-01. The published dashboard still reads 3.4 kg at pub-0100. Zero additional admissions, zero dispatch, zero publication, zero source writes.
F9 lost-acknowledgement detail. On a separately reset fixture the East staging was published. The journal shows the applied entry: owner Chef Marco Vitale (OPS_DIRECTOR, East), approval batch-v10, receipt STG-DE-01, status applied, published reader marker pub-0101. The acknowledgement was lost after commit. Before deciding to resend, the system queries the authoritative journal and finds the applied entry with receipt STG-DE-01 and status applied. The published dashboard independently reads 3.9 kg at pub-0101, confirming the total reached the controlled surface. Authorization for Chef Marco Vitale, East scope and batch-v10 are independently re-verified current. The system returns the original receipt STG-DE-01 with the applied status. Zero redispatch, zero re-publication.
F10 terminal no-effect. For cancelled staging STG-DE-99 the system reads the journal and confirms no admitted, pending or active execution referencing STG-DE-99. It produces fenced epoch proof establishing that no future execution can reference STG-DE-99 under the current epoch. Chef Marco Vitale's current East-scoped capability, batch-v10 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-DE-01 is staged under Chef Marco Vitale (OPS_DIRECTOR, East), approval batch-v10, execution active, receipt STG-DE-01, stage marker stg-0101. The published dashboard independently reads 3.4 kg at published reader marker pub-0101. (b) After independent reset with the prior occupied slot reseeded, Sana Patel (QUALITY_ANALYST, with separate current scoped approval batch-v10 for this occupied staging slot) independently reads the published dashboard at pub-0101 showing 3.4 kg for East, verifies Chef Marco Vitale as existing staging owner with active receipt STG-DE-01, and attempts STG-DE-03 targeting the same East waste slot. The API reports conflict. Chef Marco Vitale remains staging owner. Zero contender admission, zero dispatch, zero publication. The published dashboard independently reads 3.4 kg at pub-0101 unchanged. (c) On a separately reset conflict fixture for the occupied East slot, the published East dashboard reads 3.4 kg at pub-0101 under the approved current batch-v10 edition. A stale mapped extract for the same East scope, same date 2026-11-20 and same approved batch-v10 claims the total is 3.9 kg, contradicting the 3.4 kg published at pub-0101. Chef Marco Vitale independently queries the published report (3.4 kg at pub-0101) and the mapped extract (3.9 kg). The two readings purport to be the same current approved scope, period and batch but disagree. The journal retains Chef Marco Vitale as owner. After placing the slot on hold, the published East dashboard still reads 3.4 kg at pub-0101. Zero new admissions, dispatches or retries. Chef Marco Vitale investigates the stale mapping, identifies the obsolete unit conversion as the cause of the discrepancy, and corrects the extract before any retry.
F12 snapshot age and publication. The dashboard, API and policy-enforced cache consult separate actor approval, publication status and snapshot-age inputs for the East total. The staged value 3.9 kg has already been verified and is seeded as the current published snapshot in a separately reset fixture. At 47 hours since independent content verification, force an eligible refresh that times out. Independently recheck Chef Marco Vitale's current approval (confirmed current), East scope (confirmed valid) and publication authority (confirmed active). On all three surfaces the published value 3.9 kg may still serve for East and 1.8 kg for West must stay unchanged. At 48 hours force a second refresh with the mock returning unavailable. Independently reconfirm the same current actor approval, scope and publication authority. The independently enforced 48-hour hard max age cutoff now withholds 3.9 kg; all three surfaces must show approved fallback "waste-index-current" for East with an immediate hold. The unchanged 1.8 kg for West is preserved. 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 East. After each failure independently recheck actor authorization, scope and publication authority before the hold is applied. Each result must immediately withhold the affected value and serve fallback "waste-index-current" on dashboard, API and cache. The unchanged 1.8 kg for West must be preserved in each run. Already downloaded or offline copies can escape that control.
F16 late-revocation detail. Seed candidate DE-01-a with metric 3.9 kg at batch-v10a for East under selector CFG-DE-01. On the private readiness screen confirm current approval and the proposed candidate DE-01-a carrying 3.9 kg under selector CFG-DE-01. The public dashboard, API and policy-enforced cache must still read selector CFG-DE-00, value 3.4 kg for East, approved fallback "waste-index-current" and 1.8 kg for West. Revoke DE-01-a after readiness. The attempted switch is rejected. Independently read all three surfaces: CFG-DE-00, 3.4 kg, candidate DE-01-a absent, no 3.9 kg from the revoked candidate, "waste-index-current" serving, 1.8 kg for West unchanged. In a separate compatible restore arm, prepare CFG-DE-01-r without DE-01-a. Immediately before switching, Chef Marco Vitale independently verifies current approval for the exact CFG-DE-01-r selector, East scope and its remaining batch artifacts, and confirms the withdrawal fence still excludes DE-01-a. After switching, the actual readback on the dashboard, API and cache must show CFG-DE-01-r, 3.4 kg, candidate DE-01-a absent, no 3.9 kg from the revoked candidate, fallback "waste-index-current" and 1.8 kg for West. In the separately reset incompatible arm, the saved fixture lacks the required outlet group code for the candidate schema. Reject the restore. Independently read the dashboard, API and cache: CFG-DE-00 remains selected, the approved previous value 3.4 kg still serves for East, the proposed 3.9 kg from DE-01-a does not appear on any surface, candidate DE-01-a is absent, "waste-index-current" still serves and 1.8 kg for West is unchanged on all three surfaces. No branch permits reusing DE-01-a. External copies can lag.
QA evidence and rerun. Liam Torres owns the test record. Chef Marco Vitale owns the operations release decision. Sana Patel owns the quality release decision. The held-out input is the Demo Annex DA-03 fixture for date 2026-11-19, not used to seed or calibrate East or West. Block release because the dashboard displays 1.6 kg while the held-out sheet expects 2.6 kg. Preserve the first failing trace. Rerun the smallest instrumented check on the corrected unit 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: Outlet selector, Date 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: waste 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 "Waste status: Published" while focus stays on the Publish action control (WCAG 4.1.3); no supplier or private data in the announced text. A reviewer uses Safari with VoiceOver for a separate manual check targeting the identical expected string "Waste status: Published".
| Step | Operation | Outcome |
|---|
| P1. Stage East waste total | Corrected 3.9 kg staged | Independent marker; no source write |
| P2. Stage West waste total | Corrected 2.2 kg staged | Independent marker; no source write |
| P3. Replay East staging | Original receipt and marker | No new staging or write |
| F1. Viewer at preview | Preview denied, zero token | expect: 403, zero token |
| F2. Revoked at use | Previously valid denied | 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 dispatch | No dispatch or staged effect | expect: 0 dispatch, 0 effect |
| F7. Missing field | Validation error | expect: 422 validation-error |
| F8. Retry pending staging | Journal pending; dashboard same | expect: 0 publish, 0 change |
| F9. Published lost-ack | Journal published; confirmed | No re-publication |
| F10. Terminal no effect | Not staged; fenced; 1 retry | expect: not-staged, fenced |
| F11. Occupied slot | Owner holds; 0 contender | 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" | target: "Published" visible |
| F18. Status announcement | target: "Waste 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.