MECE Matrix — Plant Operations Test Coverage
Requirements Covered
- REQ-PLANT-001: Locking Known Plant On (QR)
- REQ-PLANT-002: Locking Miscellaneous Plant On (Manually)
- REQ-PLANT-003: Plant Handover (Operator or MPC)
- REQ-PLANT-004: Plant Lock-off
MECE Dimensions
Dimension 1: User Authority (4 types)
| Type | Can Lock On | Can Handover | Can Lock Off | Notes |
|---|---|---|---|---|
| Site Protector (Own) | ✅ | ✅ | ✅ | Assigned to this worksite |
| Site Protector (Other) | ❌ | ❌ | ❌ | Assigned to different worksite |
| RPO (Other) | ❌ | ❌ | ❌ | Not assigned to this PWA |
| Worker | ❌ | ❌ | ❌ | Read-only view only |
Note: RPO (Own) omitted - they can only perform operations if also acting as Site Protector for that worksite, in which case they use Site Protector (Own) authority.
Dimension 2: Plant State (3 types)
| State | Can Lock On | Can Handover | Can Lock Off | Notes |
|---|---|---|---|---|
| Not on Site | ✅ | ❌ | ❌ | Plant available for lock-on |
| Locked On (Active) | ❌ | ✅ | ✅ | Currently on this worksite |
| Locked On (Elsewhere) | ❌ | ❌ | ❌ | On different worksite or PWA (blocks) |
Dimension 3: Plant Assignment Complexity (4 types)
| Configuration | Valid State? | Notes |
|---|---|---|
| Operator only | ✅ | Has Operator, no MPC |
| Operator + MPC (Different people) | ✅ | Standard configuration |
| Operator + MPC (Same person, different plant) | ✅ | One worker assigned to multiple plant |
| Multiple plant, same assignments | ✅ | Worker is Operator/MPC for 2+ plant |
Invalid configurations:
No assignments- Plant must have OperatorMPC only- Operator is mandatoryOperator + MPC (Same person)- Validation blocks this
Dimension 4: Operation Type (7 types)
| Operation | Description | Requires Plant State |
|---|---|---|
| QR Lock-on | Scan known plant QR code | Not on Site |
| Manual Lock-on | Enter plant details, creates admin record | Not on Site |
| Handover Operator only | Transfer Operator role to different worker | Locked On (Active) |
| Handover MPC only | Transfer MPC role to different worker | Locked On (Active) |
| Handover both | Transfer both Operator and MPC roles | Locked On (Active) |
| QR Lock-off | Scan plant QR to remove | Locked On (Active) |
| Manual Lock-off | Select plant to remove | Locked On (Active) |
Dimension 5: Worker Assignment Context (4 types)
| Context | Can Assign? | Notes |
|---|---|---|
| Site Protector only on site | ✅ SP only | No other workers locked on |
| Site Protector + Workers | ✅ Multiple options | Standard scenario |
| Worker locked on same worksite | ✅ Valid | Available for assignment |
| Worker not locked on | ❌ Blocks | Must be on site first |
Dimension 6: Connectivity State (4 types)
| State | All Operations Work? | Notes |
|---|---|---|
| Online | ✅ | Real-time sync |
| Offline | ✅ | All operations must work, queued for sync |
| Online→Offline (during operation) | ⚠️ | Graceful handling required |
| Offline→Online | ✅ | Sync queued operations |
Theoretical vs. Business-Valid Combinations
Calculation
- Dimensions: 6
- Theoretical combinations: 4 × 3 × 4 × 7 × 4 × 4 = 5,376 combinations
Business-Valid Reductions
Authority filters (~75% reduction):
- Only Site Protector (Own) can perform operations
- Other authority types all blocked
- Reduces to ~1,344 valid combinations
State filters (~60% reduction):
- Lock-on only valid when Not on Site
- Handover only valid when Locked On (Active)
- Lock-off only valid when Locked On (Active)
- Reduces to ~537 valid combinations
Assignment context filters (~50% reduction):
- Some contexts only relevant for specific operations
- Reduces to ~269 valid combinations
Estimated business-valid scenarios: ~50 test cases
Must Cover Scenarios (Priority Order)
Core Functionality (Lock-on Plant)
- QR lock-on with Operator assignment (online)
- QR lock-on with Operator + MPC assignment (online)
- Manual lock-on creating new plant record with Operator
- Manual lock-on with Operator + MPC
- Site Protector as Operator for plant
- Site Protector as MPC for plant
- Offline QR lock-on succeeds
- Offline manual lock-on succeeds
Core Functionality (Handover Plant)
- Handover Operator only to different worker
- Handover MPC only to different worker
- Handover both Operator and MPC together
- Handover offline succeeds
Core Functionality (Lock-off Plant)
- QR lock-off succeeds
- Manual lock-off succeeds
- Lock-off clears Operator and MPC assignments
- Lock-off when worker operates multiple plant (only clears this plant)
- Offline lock-off succeeds
Validation Rules
- Block same person as Operator AND MPC (lock-on)
- Block plant already locked on elsewhere
- Block lock-on when already locked on (same plant)
- Require Operator assignment (mandatory)
- Allow skipping MPC assignment (optional)
Permission Boundaries
- Site Protector (Other) cannot lock on plant
- RPO cannot lock on plant
- Only Site Protector on site (no workers) - can assign self as Operator
Audit Trail
- Audit data captures lock on/off, method, Operator, MPC, timestamp, handover/role transfers
Test Coverage Status
Summary
- Total must-cover scenarios: 26
- Current test coverage: 0%
- Target coverage: 100%
Coverage by Requirement
| Requirement | Must Cover | Covered | % |
|---|---|---|---|
| REQ-PLANT-001 (QR Lock-on) | 8 | 0 | 0% |
| REQ-PLANT-002 (Manual Lock-on) | 5 | 0 | 0% |
| REQ-PLANT-003 (Handover) | 5 | 0 | 0% |
| REQ-PLANT-004 (Lock-off) | 6 | 0 | 0% |
| Cross-cutting (Validation, Permissions, States) | 25 | 0 | 0% |
Notes
Simplifications Made
- Removed Plant Type dimension - V/MP/HRV are information-only, don't affect behaviour
- Removed detailed Validation dimension - Integrated into must-cover scenarios
- Removed invalid configurations - No assignments, MPC only, same person as both
- Removed RPO (Own) authority - Equivalent to Site Protector (Own) when applicable
- Removed notification scenarios - No worker-facing app exists
Handover UI Behaviour
When Site Protector initiates handover:
- Current Operator displayed
- Current MPC displayed (if assigned)
- Dropdown 1: Select new Operator (or keep current)
- Dropdown 2: Select new MPC (or keep current, or clear)
- Both can be changed independently in single handover operation
Worker Assignment Rules
For both Operator and MPC assignment:
- Worker must be currently locked on to same worksite
- Site Protector can assign themselves
- Same person cannot be both Operator AND MPC for same plant
- One person can be Operator or MPC for multiple different plant