FactorySync (fictional) manages production interval data. MetricCore v4.2 (fictional) owns metric definitions, source staging, dashboard publishing and reconciliation workflows. The staging sandbox holds synthetic interval fixture records. Platform version: v2026-Q2-mf. Release owner: Tom Gallagher, Plant Director. Reviewer: Sarah Lim, Process Engineer. Test record owner: Sofia Reyes. All records are synthetic. No MES recipes, work order details, operator personal data or quality inspection results enter the fixture.
The source extract is a CSV with columns: line_id, shift_date, interval_start, interval_end, source_quality, batch_version. The declared local-time shift window is 06:00 to 18:00 plant local time. The reporting grain is line, shift date. The metric counts verified stoppage minutes by clipping each interval to the shift window, then unioning overlapping intervals before counting minutes. A gap between two intervals means the minutes in that gap are not counted. Intervals with unknown or non-good source quality are segregated for review and excluded from the verified total. OPC UA Part 4 sections 7.11.3-4 distinguish SourceTimestamp from ServerTimestamp; in this fixture the interval boundaries use SourceTimestamp, which is source-assigned and normally reflects the last value or status change but may be unavailable. OPC UA Part 8 section 7.3 documents the Data Access read status and requested timestamps behavior.
The sandbox holds two line fixtures with all intervals inside the 06:00 to 18:00 shift window and good source quality. Line Alpha (LA-01) has stoppage intervals for shift 2026-11-20 with 18 verified stoppage minutes at baseline (09:00-09:12 and 09:09-09:18, clipped to window, then unioned: 09:00-09:18 = 18 min). Line Beta (LB-02) has stoppage intervals for shift 2026-11-20 with 7 verified stoppage minutes at baseline (two disjoint intervals: 10:00-10:04 and 10:10-10:13, no overlap, clip unchanged, union = 4 + 3 = 7 min).
Sofia Reyes owns the expected-results sheet, a separate spreadsheet that lists each interval's line, shift, start, end, status and the independently computed verified stoppage minutes total. The sheet obtains its per-interval boundaries from the approved source extract at the declared batch revision. The sheet is distinct from the fixture, the dbt model output and the dashboard.
P1 is authorized by Tom Gallagher (PLANT_DIRECTOR, independently authorized for Alpha scope) targeting the Alpha verified stoppage minutes for shift 2026-11-20. The fixture holds a disjoint baseline record: "LA-01 | 2026-11-20 | batch-v10 | stoppage=18 | pending\n" with the dashboard reading 18 minutes at marker pub-0100; and a proposed record: "LA-01 | 2026-11-20 | batch-v10 | stoppage=21 | staged\n". Each record is a UTF-8 string ending with one LF. The corrected stoppage intervals are 09:00-09:12 and 09:09-09:21, both inside the 06:00-18:00 shift window with good source quality; clip leaves them unchanged, then union spans 09:00-09:21 = 21 verified stoppage minutes. Before staging, independently read the dashboard, API and export for Alpha: all three return 18 minutes, status published, marker pub-0100. The reviewer view returns "No staged notice" at stage marker stg-0100. P1 stages the corrected total at Alpha scope only. After staging, independently read the dashboard, API and export for Alpha again: all three still return 18 minutes, status published, marker pub-0100 unchanged. The separate reviewer view now shows 21 minutes, status staged, marker stg-0100, receipt STG-LA-01, linked to batch-v10. At the same cutoff, Sofia Reyes reconciles 21 minutes on the expected-results sheet: the sheet clips 09:00-09:12 and 09:09-09:21 to the 06:00-18:00 window (unchanged), confirms good source quality, then unions into 09:00-09:21 = 21 verified stoppage minutes for LA-01 shift 2026-11-20 at batch-v10. Zero source writes outside the staging layer. The Beta value 7 minutes is unchanged on dashboard, API and export at pub-0100.
Sarah Lim owns the second check in Beta scope as Process Engineer. P2 uses separate fixture records for LB-02: baseline "LB-02 | 2026-11-20 | batch-v10 | stoppage=7 | pending\n" and proposed "LB-02 | 2026-11-20 | batch-v10 | stoppage=10 | staged\n", each ending with one LF. Neither record comes from the P1 fixture. The corrected stoppage intervals are two disjoint periods: 10:00-10:04 (4 min) and 10:10-10:16 (6 min), both inside the shift window with good source quality; clip unchanged, no overlap, union = 4 + 6 = 10 verified stoppage minutes. Before staging, independently read the dashboard, API and export for Beta: all three return 7 minutes, status published, marker pub-0102. The Beta reviewer view returns "No staged notice" at stage marker p2-0102-before. After verifying current Beta approval for the proposed record, Sarah Lim stages the corrected total. The reviewer view now shows 10 minutes for Beta, status staged, marker p2-0102-staged, linked to batch-v10. Sofia Reyes reconciles 10 minutes on the expected-results sheet for LB-02 shift 2026-11-20: the sheet clips two disjoint intervals to the shift window (unchanged), confirms good source quality and sums 4 + 6 = 10 verified stoppage minutes at batch-v10, scope Beta, cutoff shift 2026-11-20. After staging, independently read the dashboard, API and export for Beta: all three still return 7 minutes, status published, marker pub-0102. Zero source writes. The Alpha dashboard, API and export stay at 18 minutes, 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 Alpha. The system returns the original staging receipt STG-LA-01 with stage marker stg-0100 and status staged. Independently read the dashboard, API and export for Alpha: all three return 18 minutes, status published, marker pub-0100 unchanged from baseline. Independently query the Alpha reviewer view: 21 minutes at stg-0100, still staged under the existing receipt. Scope (Alpha valid), approval (batch-v10 current) and total (21 unchanged) are independently confirmed. Zero new admission, zero dispatch, zero publication and zero source writes.
Held-out reconciliation. Sofia Reyes's held-out sheet covers a different shift (2026-11-19) for a third line, Line Charlie (CC-03). The CC-03 fixture is excluded from P1 and P2 entirely. The sheet lists two stoppage intervals: 09:00-09:06 and 09:03-09:09, both inside the shift window with good source quality. Clip leaves them unchanged; union spans 09:00-09:09 = 9 verified stoppage minutes. The dashboard displays 12 minutes because the overlapping intervals were raw-summed (6 + 6 = 12) instead of clipped and unioned. The discrepancy between expected 9 and observed 12 blocks the release. The metric owner corrects the clip-and-union logic, reruns for CC-03 shift 2026-11-19, and confirms 9 verified stoppage minutes matches the held-out sheet.
Bounded read test. Three reads against the Alpha verified stoppage minutes with no staging effect. (a) Authorized read: the dashboard returns 18 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: a line 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: Sarah Lim holds a previously valid issued preview for the Beta 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 Beta-scoped analyst targets Alpha 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: Tom Gallagher withdraws the Alpha staging candidate before any dispatch; the system confirms zero dispatch, zero staged effect, zero publication and zero source writes. F7: the line_id field is missing and the request receives 422 validation-error.
F8 duplicate-pending detail. On a separately reset fixture the published dashboard reads 18 for Alpha at published reader marker pub-0100. The corrected total 21 is admitted as pending under Tom Gallagher (PLANT_DIRECTOR, Alpha), approval batch-v10, receipt STG-LA-01, stage marker stg-0100. The published dashboard independently reads 18 at pub-0100 unchanged; the separate staged view reads 21 at stg-0100. Authority for Tom Gallagher, Alpha 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-LA-01. The published dashboard still reads 18 at pub-0100. Zero additional admissions, zero dispatch, zero publication, zero source writes.
F9 lost-acknowledgement detail. On a separately reset fixture the Alpha staging was published. The journal shows the applied entry: owner Tom Gallagher (PLANT_DIRECTOR, Alpha), approval batch-v10, receipt STG-LA-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-LA-01 and status applied. The published dashboard independently reads 21 at pub-0101, confirming the total reached the controlled surface. Authorization for Tom Gallagher, Alpha scope and batch-v10 are independently re-verified current. The system returns the original receipt STG-LA-01 with the applied status. Zero redispatch, zero re-publication.
F10 terminal no-effect. For cancelled staging STG-LA-99 the system reads the journal and confirms no admitted, pending or active execution referencing STG-LA-99. It produces fenced epoch proof establishing that no future execution can reference STG-LA-99 under the current epoch. Tom Gallagher's current Alpha-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-LA-01 is staged under Tom Gallagher (PLANT_DIRECTOR, Alpha), approval batch-v10, execution active, receipt STG-LA-01, stage marker stg-0101. The published dashboard independently reads 18 at published reader marker pub-0101. (b) After independent reset with the prior occupied slot reseeded, Sarah Lim (PROCESS_ENGINEER, with separate current scoped approval batch-v10 for this occupied staging slot) independently reads the published dashboard at pub-0101 showing 18 for Alpha, verifies Tom Gallagher as existing staging owner with active receipt STG-LA-01, and attempts STG-LA-03 targeting the same Alpha stoppage slot. The API reports conflict. Tom Gallagher remains staging owner. Zero contender admission, zero dispatch, zero publication. The published dashboard independently reads 18 at pub-0101 unchanged. (c) On a separately reset conflict fixture for the occupied Alpha slot, the published Alpha dashboard reads 18 at pub-0101 under the approved current batch-v10 edition. A stale historian extract for the same Alpha scope, same shift 2026-11-20 and same approved batch-v10 claims the total is 21, contradicting the 18 published at pub-0101. Tom Gallagher independently queries the published report (18 at pub-0101) and the historian extract (21). The two readings purport to be the same current approved scope, shift and batch but disagree. The journal retains Tom Gallagher as owner. After placing the slot on hold, the published Alpha dashboard still reads 18 at pub-0101. Zero new admissions, dispatches or retries. Tom Gallagher investigates the interval union logic in the historian adapter, identifies the raw-sum double-counting as the cause 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 Alpha total. The staged value 21 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 Tom Gallagher's current approval (confirmed current), Alpha scope (confirmed valid) and publication authority (confirmed active). On all three surfaces the published value 21 may still serve for Alpha and 7 for Beta 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 21; all three surfaces must show approved fallback "stoppage-index-current" for Alpha with an immediate hold. The unchanged 7 for Beta 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 Alpha. 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 "stoppage-index-current" on dashboard, API and cache. The unchanged 7 for Beta must be preserved in each run. Already downloaded or offline copies can escape that control.
F16 late-revocation detail. Seed candidate LA-01-a with metric 21 at batch-v10a for Alpha under selector CFG-LA-01. On the private readiness screen confirm current approval and the proposed candidate LA-01-a carrying 21 under selector CFG-LA-01. The public dashboard, API and policy-enforced cache must still read selector CFG-LA-00, value 18 for Alpha, approved fallback "stoppage-index-current" and 7 for Beta. Revoke LA-01-a after readiness. The attempted switch is rejected. Independently read all three surfaces: CFG-LA-00, 18, candidate LA-01-a absent, no 21 from the revoked candidate, "stoppage-index-current" serving, 7 for Beta unchanged. In a separate compatible restore arm, prepare CFG-LA-01-r without LA-01-a. Immediately before switching, Tom Gallagher independently verifies current approval for the exact CFG-LA-01-r selector, Alpha scope and its remaining batch artifacts, and confirms the withdrawal fence still excludes LA-01-a. After switching, the actual readback on the dashboard, API and cache must show CFG-LA-01-r, 18, candidate LA-01-a absent, no 21 from the revoked candidate, fallback "stoppage-index-current" and 7 for Beta. In the separately reset incompatible arm, the saved fixture lacks the required line group code for the candidate schema. Reject the restore. Independently read the dashboard, API and cache: CFG-LA-00 remains selected, the approved previous value 18 still serves for Alpha, the proposed 21 from LA-01-a does not appear on any surface, candidate LA-01-a is absent, "stoppage-index-current" still serves and 7 for Beta is unchanged on all three surfaces. No branch permits reusing LA-01-a. External copies can lag.
QA evidence and rerun. Sofia Reyes owns the test record. Tom Gallagher owns the plant release decision. Sarah Lim owns the operations release decision. The held-out input is the Line Charlie CC-03 fixture for shift 2026-11-19, not used to seed or calibrate Alpha or Beta. Block release because the dashboard displays 12 while the held-out sheet expects 9. Preserve the first failing trace. Rerun the smallest instrumented check on the corrected interval union logic. 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: Line selector, Shift 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: stoppage 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 "Stoppage status: Published" while focus stays on the Publish action control (WCAG 4.1.3); no recipe or work order data in the announced text. A reviewer uses Safari with VoiceOver for a separate manual check targeting the identical expected string "Stoppage status: Published".
| Step | Operation | Outcome |
|---|
| P1. Stage Alpha total | Corrected 21 staged | Independent marker; no source write |
| P2. Stage Beta total | Corrected 10 staged | Independent marker; no source write |
| P3. Replay Alpha 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: "Stoppage 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.