A hypothetical general contractor builds a change-order routing system integrating project management and ERP with multi-party approval. Named system owner: the VP of operations. Named independent approver: the project controls director. All targets are hypothetical and illustrative.
Prelaunch fixtures.
co_cur_1: Change order with complete scope, cost and schedule impact, all required approvals obtained
co_cur_2: Change order triaged by authorized project manager, assigned to approval queue
co_stale_1: Change order references a schedule baseline that has since been updated by a prior approved change
co_unknown_1: Change order references a cost code not in the project chart of accounts
co_inelig_1: Change order exceeds the project manager's delegated authority limit
co_unauth_role_1: Field engineer attempting to approve a cost change order (requires project manager role)
co_unauth_tenant_1: Staff from Project B attempting to view Project A change-order records without cross-project authorization
co_unavail_1: ERP temporarily unreachable for contract value verification
Disjoint held-out setup. 12 synthetic change-order records divided into two disjoint cohorts. Positive cohort (5 orders: CO-001 through CO-005): complete scope and impact, valid cost codes, within authority, authorized project manager, qualified project controls director. Negative cohort (7 orders: CO-006 through CO-012): each tests one denial condition (outdated baseline, unknown cost code, exceeded authority, wrong role, wrong project scope, ERP outage, duplicate submission from retry). Each negative fixture has a distinct ID and measurable no unauthorized effect.
Allowed workflow (co_1). Positive cohort CO-001 submitted with scope, cost impact ($45K) and schedule impact (+3 days). System calculates cumulative project impact from current ERP contract value and PM schedule. Project manager reviews and approves (within $50K authority). Owner representative reviews and approves. System records in minimized write-once log (CO ID, cost code, PM identity, decision, authority level, timestamp, contract version; no subcontractor billing rates in log). ERP contract value updated (external business effect verified independently). 5 of 5 positive change orders executed with complete audit trail.
Denied: outdated baseline (co_2a). Fixture co_stale_1 / negative CO-006: references prior schedule baseline. PM verifies current baseline. Change order deferred for recalculation. 0 approvals against outdated baselines.
Denied: unknown cost code (co_2b). Fixture co_unknown_1 / negative CO-007: cost code not in chart of accounts. Queued for cost control review. 0 change orders with unverified cost codes.
Denied: exceeded authority (co_2c). Fixture co_inelig_1 / negative CO-008: exceeds delegated authority. Escalated to VP of operations. 0 approvals beyond authority.
Denied: unauthorized role (co_2d). Fixture co_unauth_role_1 / negative CO-009: field engineer attempts approval. Role check enforced. 0 approvals by unauthorized roles.
Denied: unauthorized project (co_2e). Fixture co_unauth_tenant_1 / negative CO-010: Project B staff accessing Project A records. Project isolation enforced. 0 cross-project access.
Denied: authority unavailable (co_2f). Fixture co_unavail_1 / negative CO-011: ERP unreachable. Change orders queued, not executed. 0 approvals without contract value verification.
Denied: duplicate submission (co_2g). Negative CO-012: duplicate from retry. Deduplicated by CO reference and scope hash. 0 duplicate change orders.
Idempotency and duplicate detection (co_3). Operation A: PM prepares change-order draft for target CO-001 with scope and cost impact ($45K synthetic). Owner representative approves draft. Only after owner representative approval: ERP contract value updated and project queue records the committed change (two distinct business effects, each verified independently by reading ERP contract state and project queue). Key op:co_A_001. Logged. Replayed operation A with same key: rejected, 0 duplicate ERP updates, 0 duplicate project queue entries, prior log entry preserved. Operation B: PM prepares change-order draft for distinct target CO-002, owner representative approves, key op:co_B_002. ERP and project queue updated after approval. Logged. 2 of 3 proposals applied (A and B), 0 duplicate business effects in ERP or project queue. Synthetic dollar amounts used for all cost impacts.
Ambiguous first response (co_3b). PM submits change order CO-003, key op:co_A_003. Network interruption before acknowledgment. Before any possible repeat: check exact operation key op:co_A_003 in durable decision log. Independently read current ERP contract value and version. Separately check project queue for a committed change matching CO-003. Read current PM schedule baseline version. Log found, ERP updated AND project queue entry exists: both effects confirmed, no repeat. Log found, ERP updated but project queue entry missing (or vice versa): one of two effects already committed. Do not repeat the whole operation. Record partial state; VP of operations (named manual reconciliation owner) investigates, inspects the contemporaneous committed effect and authoritative contract version, and coordinates independently verified repair of the missing effect only. Before the corrective write, the person executing the correction must still hold the applicable project-scoped role and permission, current authoritative ERP contract version and project queue state must be confirmed, and no replay of the original request occurs. Owner representative gives final approval for the separately authorized correction, preserving the already committed effect. No write if scope, authority or version is stale, revoked or unknown. Log found, neither effect present or either pending: STOP. Durable record indicates attempted but ERP/project queue disagree or show pending. Do not repeat. VP of operations investigates and reconciles. Log not found, ERP change or project queue entry exists: effect exists without log. Do not repeat. Reconcile log without repeating. Log not found, ERP unambiguously confirms no change AND project queue confirms no entry AND no pending AND no inflight: only then may PM verify current role, project scope, authority level, drawing revision and cost code validity, then resubmit with identical stable key op:co_A_003 only after owner representative approval (and project controls director approval if organizational workflow separately requires). No queued or emailed/offline approval creates a financial commitment without verified current authority and current contract version. Revoked permission: if PM's project scope or authority was revoked after initial submission, fail closed, no repeat; escalate to current PM. If ERP, project queue or current authority is unavailable, unknown or stale: no attempt, hold for reconciliation by VP of operations. 0 duplicate ERP changes, 0 conflicting contract values.
Offline capture and reconnect (co_3c). Field PM captures a change-order draft on tablet while offline with stable key op:co_offline_004. Draft queued locally. On reconnect: check ERP for any already committed contract change matching CO-004 or pending operations on the same cost code. Verify current approved drawing revision and cost code against current ERP chart of accounts and current contract version. If drawing revision has changed since offline capture or cost code is no longer valid: block submission, require PM to review against current drawings and resubmit with new draft. If authority has expired (PM role changed, project reassigned): block submission, escalate to current project authority. No queued or offline approval creates a financial commitment without verified current authority. Exact replay test: if reconnect detects same key op:co_offline_004 already submitted (duplicate from connectivity flap), reject. Distinct draft test: PM creates new draft op:co_offline_005 for a different scope change while still offline; both drafts queue independently and each requires independent reconnect verification. Only submit queued draft after confirming current drawing revision, valid cost code, active PM authority, no pending ERP change for the same cost code, and owner representative approval (plus project controls director if organizational workflow requires). Synthetic dollar amounts used.
Decision logging and access control (co_4). Minimized write-once log: CO ID, cost code, staff identity, approver identity, decision, authority level, timestamp, contract version, drawing revision. No subcontractor rates or proprietary bid data. Role-bound append-only access; retention owner is the VP of operations; retention per organization and contract requirements.
Staged restore (co_5). After ERP connectivity restored: reconcile authoritative ERP contract values and any pending change orders against current contract version before restart. Prior stable version staged in truly private preview. Project boundaries, permissions and committed log entries preserved. Already-committed ERP updates from manual fallback preserved and reconciled against system records. VP of operations verifies data integrity. Project controls director verifies change-order workflow correctness against current contract version and drawing revisions. Both approve before production restore. If ERP remains unavailable after restoration attempt: capture minimal change-order metadata securely (CO ID, cost code, impact amount, timestamp), hold all ERP commitments, do not promise writes to unavailable ERP. Named manual fallback during ERP outage: project managers record change-order approvals on paper forms with CO ID, cost code, scope description, cost impact, schedule impact, approval signatures and date, stored securely in the project file; holds all ERP commits; reconciles against ERP records upon restore.
Tablet and keyboard access plan (co_6). On iPad 10th gen at 820 by 1180, project manager attempts 4 tasks: (1) review change-order queue (expected: queue fits portrait viewport, 0 horizontal overflow), (2) open CO detail with scope/cost/schedule impact (expected: three-part impact summary visible in scrollable view), (3) verify cost code against chart of accounts (expected: cost code lookup accessible), (4) tap Submit for Approval (expected: button visible without scrolling past impact summary). Expected errors if broken: impact calculation truncated, submit button unreachable, cost code mismatch not flagged. On desktop at 1280 by 800, keyboard-only project controls director attempts 3 tasks: (1) navigate CO list with arrow keys (expected: visible focus ring on each row), (2) open CO detail with Enter (expected: focus moves to detail panel), (3) approve or defer with keyboard (expected: decision controls accessible, status announced). Partial failure: if ERP contract value update is slow to acknowledge, the CO should show a pending-commit indicator rather than claiming ERP confirmation; what remains uncertain is whether the pending-commit state renders correctly on both form factors. Test plan; results not claimed.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.