Disjoint held-out setup. 8 synthetic report approval records across two agency tenants. All data wholly synthetic; no ad publish, budget change or media buy. Positive (3: RAP-001 through RAP-003): current account manager, valid tenant/client workspace, authorized role, campaign and report revision current, approval inbox available. Negative (5: RAP-004 through RAP-008): expired session, wrong tenant, wrong role, stale report revision, campaign paused. All hypothetical.
Allowed workflow (ma_1, operation A). Fixture RAP-001: account manager ACM-2200 authenticates with current session SES-MA-001 for tenant AGENCY-A (TEN-2201), client workspace CW-3301 at ROLE-V1. Campaign CMP-4001, report revision RPT-V1, current metrics snapshot MTRC-V1. Submits report approval request with key op:ma_A_001 scoped to TEN-2201/CW-3301/ACM-2200/CMP-4001/RPT-V1/MTRC-V1/SES-MA-001. Approval coordinator (scoped approver) independently reads: (a) session SES-MA-001 current; (b) ACM-2200 has account manager role at TEN-2201, CW-3301 at ROLE-V1; (c) campaign CMP-4001 active; (d) report revision RPT-V1 current with current metrics; (e) approval inbox available; (f) no pending approval for same key. Approves. Approval processor (different scoped executor, bound to immutable A payload and key op:ma_A_001) delivers approval record to approval inbox. Expected receipt: RAP-REF-5501 at inbox authority (read independently, confirm present). Receipt distinct from ad publish, budget change, media buy or spend authorization. Evidence: approval log at audit authority (read independently, confirm present for op:ma_A_001). Durable committed operation record for op:ma_A_001 read separately at operation log (confirm committed, distinct from receipt and audit). Acceptance: 3 of 3 positive produce confirmed approval receipts.
Tenant A/B role and egress cleanup. AGENCY-B (TEN-2202) manager ACM-2201 attempts AGENCY-A workspace read: denied (wrong tenant). AGENCY-A viewer VWR-2210 attempts manager action: denied (wrong role, current role version verified). After test: all synthetic approval records, receipts and inbox entries purged from both tenants. Egress cleanup verified: no synthetic data persists in exports, caches or logs beyond test retention.
Replay of A. Key op:ma_A_001 already committed at inbox authority. Exact replay with identical key and complete original payload (tenant TEN-2201, workspace CW-3301, manager ACM-2200 at ROLE-V1, campaign CMP-4001, report RPT-V1, metrics MTRC-V1, session SES-MA-001) by still-authorized original requester ACM-2200 within exact tenant TEN-2201 scope: system returns only A's existing non-secret receipt RAP-REF-5501 and current approval status. 0 new approval actions. 0 duplicates. Changed payload or different principal/tenant scope: held or rejected.
Independently approved B (ma_1b, operation B). Fixture RAP-002: manager ACM-2201 authenticates with session SES-MA-002 for tenant TEN-2202 (AGENCY-B), workspace CW-3302, campaign CMP-4002, report revision RPT-V1, metrics MTRC-V1, at ROLE-V1. Key op:ma_B_002 with immutable payload scoped to TEN-2202/CW-3302/ACM-2201/CMP-4002/RPT-V1/MTRC-V1/SES-MA-002. B's approval coordinator (scoped to TEN-2202) independently approves; B's approval processor delivers. Durable operation record for op:ma_B_002 committed at operation log; receipt RAP-REF-5502 at inbox authority; audit entry confirmed - each read independently. 2 new approval receipts across A/B, 0 from replay.
Denied: wrong tenant (ma_2a). RAP-004: AGENCY-B report to AGENCY-A inbox. 0 cross-tenant approvals. Denied: wrong role (ma_2b). RAP-005: viewer attempting manager action. Denied: stale revision (ma_2c). RAP-006: report revision outdated. Denied: campaign paused (ma_2d). RAP-007: campaign paused. Denied: expired session (ma_2e). RAP-008: session expired.
Revocation (ma_4, RAP-R101). Fixture RAP-R101 with stable key op:ma_R_101: account manager ACM-2200 queues approval for TEN-2201/CW-3301/campaign CMP-4003/report RPT-V1/metrics MTRC-V1 while holding manager role at ROLE-V1. Before first send, async worker detects ROLE-V2 (manager role revoked) and parks the queued submission. On retry of the same queued key op:ma_R_101 and payload, worker re-checks role version, confirms ROLE-V2 still current, and blocks; submission remains parked. Read durable operation records before: op:ma_A_001 committed, op:ma_B_002 committed, op:ma_R_101 parked in monitored queue (not a committed successful operation). Read inbox authority before: RAP-REF-5501 (op:ma_A_001) present, RAP-REF-5502 (op:ma_B_002) present, no receipt for op:ma_R_101. If the stale queued submission bypasses the worker and reaches the backend, inbox authority reads ROLE-V2 (revoked) and rejects; no receipt created, no ad publish, no budget change. Read durable operations after: op:ma_A_001 committed (unchanged), op:ma_B_002 committed (unchanged), op:ma_R_101 still parked (queued item, not a committed business effect). Read downstream before and after blocked send: ad publish queue at TEN-2201/CW-3301/CMP-4003, spend ledger at TEN-2201/CW-3301 and campaign status register at TEN-2201/CMP-4003 unchanged. Read inbox authority after: RAP-REF-5501 and RAP-REF-5502 unchanged, no receipt for op:ma_R_101. Read audit authority: op:ma_A_001 and op:ma_B_002 entries unchanged, no entry for op:ma_R_101 beyond denial record. If pending or in-flight at inbox authority for op:ma_R_101: HOLD for agency director. Cross-tenant negative fixture: async export worker receives job with forged tenant ID TEN-2201 originating from TEN-2202 context; worker validates tenant binding before fetch, denies read of TEN-2201 inbox, denies write to TEN-2202 export; no approval receipt, no data exposure, no publish or spend effect. Forged write to foreign target: TEN-2202 context submits job attempting to insert a synthetic approval record into TEN-2201 approval inbox; worker validates tenant binding before execution, denies the write; TEN-2201 inbox, receipts and audit unchanged. 0 approvals from revoked roles.
Dropped response (ma_4b, RAP-R301). Distinct fixture: account manager ACM-2202 submits approval RAP-R301 for AGENCY-A (TEN-2201)/workspace CW-3303/campaign CMP-4002/report revision RPT-V2/current metrics MTRC-V2 with key op:ma_R_301, session SES-MA-003, response dropped. Independently read: (1) session SES-MA-003 current; (2) ACM-2202 has manager role at TEN-2201, CW-3303 at current ROLE version; (3) campaign CMP-4002 active; (4) report RPT-V2 current with metrics MTRC-V2; (5) durable transaction log for op:ma_R_301 present or absent; (6) inbox authority receipt under op:ma_R_301 present or absent; (7) audit authority for op:ma_R_301 present or absent; (8) pending/in-flight at inbox authority for op:ma_R_301; (9) ad publish queue at TEN-2201/CW-3303/CMP-4002, spend ledger at TEN-2201/CW-3303 and campaign status register at TEN-2201/CMP-4002 - each scoped to tenant/workspace/campaign and op:ma_R_301 key. Denial guard: if session SES-MA-003 expired, manager role revoked or version mismatched, tenant TEN-2201 binding invalid, or campaign/report revision stale or unverified at reads (1) through (4): refuse; no requester-facing receipt, no retry, no downstream effect. First guard: if any remaining read is unknown, unavailable, contradictory, or pending/in-flight at inbox or audit for this key: HOLD for agency director; no resend, no write, no publish or spend effect. Applied: if log committed AND receipt confirmed present AND audit confirmed present, all consistent, no pending/in-flight: complete, return existing receipt, no resend. Disagree: if receipt confirmed present but audit or log absent or inconsistent: HOLD for agency director read-only reconciliation; no resend, no write. Committed but absent: if log committed but receipt absent: HOLD. Conclusively uncommitted: durable log absent, inbox authority conclusively absent for op:ma_R_301, audit conclusively absent, pending/in-flight clear, ad publish queue, spend ledger and campaign status register at TEN-2201/CW-3303/CMP-4002 unchanged for this key, session current, ACM-2202 authorized, manager role current, campaign and report current; approval coordinator freshly scoped approves; approval processor resubmits same key op:ma_R_301 with same payload. No automatic retry. 0 duplicates. 0 ad publishes, budget changes or media buys from recovery.
Staged restore (ma_5, RAP-R201). Stage privately with no production approval submissions or key writes. Read existing A/B keys and receipts: op:ma_A_001 to RAP-REF-5501 at inbox authority, op:ma_B_002 to RAP-REF-5502 at inbox authority. Read R101 key op:ma_R_101: no receipt (denied, role revoked ROLE-V2). Read R201 key op:ma_R_201: absent before restore. Independently read inbox authority, audit authority, pending/in-flight state, and downstream records (ad publish queue, spend ledger, campaign status register at each test workspace/campaign) before restoring verified snapshot in private. After staging, re-read: op:ma_A_001 to RAP-REF-5501 (unchanged), op:ma_B_002 to RAP-REF-5502 (unchanged), op:ma_R_101 to no receipt (confirmed denied), op:ma_R_201 to absent, pending/in-flight clear, ad publish queue, spend ledger and campaign status register unchanged at each workspace. Planned test: compare authoritative operation log and audit records for op:ma_A_001, op:ma_B_002, op:ma_R_101 and op:ma_R_201 before and after private staging: A/B operation markers and audit entries unchanged, R101 denial evidence preserved in audit, R201 has no operation record or audit entry, pending/in-flight and downstream controls unchanged. Newer revocations preserved: ACM-2200 role revoked at ma_4 ROLE-V2 remains denied; no re-enabled role or live publish, spend or status effect from restore. Named owner: agency director reads approval register, reconciles pending against independent receipts and signs off. Two roles sign off before production resume: approval coordinator verifies inbox register, approval processor verifies submission workflows. Named fallback: agency director; report approval reverts to manual inbox delivery.
Cross-tenant and access testing. Browser keyboard navigation with screen reader on report approval dashboard: Tab/Shift-Tab moves focus between approval items; Enter opens detail; approval action announced. 200% text zoom: client workspace names, campaign references and approval status readable. Narrow viewport (375px): approval table scrollable without data loss. Cross-tenant test: AGENCY-A manager cannot access AGENCY-B client data, approval queue or audit logs. Wrong-role fixture: viewer cannot execute manager report approval even with valid tenant membership.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.