Design a Hardware Component Test Orchestration Platform
Schedule scarce test rigs, run versioned qualification plans, and produce auditable component verdicts despite retries and equipment faults.
Problem statement
The source asks for a system that tests components.
For this exercise, assume those are physical hardware components and a qualification engineer registers one, selects an approved versioned test plan, submits a run, and follows it through scheduling, execution, evidence collection, and a final pass, fail, or inconclusive verdict.
For this exercise, assume each test plan is an ordered graph of steps. A step declares compatible rig capabilities, fixture and calibration requirements, expected measurements, timeout, retry policy, and whether repeating it could damage the component.
For this exercise, assume the scheduler reserves one compatible rig and its fixture for a bounded lease. A physical component may have at most one active run, and a rig may execute at most one active step.
Expired leases are recoverable, but the platform must not silently start a second physical execution while the first outcome is uncertain.
For this exercise, assume rig agents stream sequenced step events, bounded measurement summaries, logs, and artifact references. The platform keeps immutable raw evidence, derives current run state, and exposes progress and failure reasons to engineers.
For this exercise, assume a rig can disconnect after receiving a command or while a destructive step is running. Lost acknowledgements create an explicit uncertain state that requires agent reconciliation or human authorization before another physical attempt.
For this exercise, assume only an approved test-plan version and its reviewed acceptance rules can produce a release verdict. Overrides require an authorized reviewer, a reason, and an immutable audit record.
For this exercise, test physics, rig firmware, fixture design, component manufacturing, and the implementation of individual measurement algorithms are outside scope.
What to build
- Engineers can register component identity and revision, inspect approved test-plan versions, and submit a run against one immutable plan version.
- The platform assigns queued runs to compatible, calibrated rigs and fixtures without double-booking a component or physical resource.
- Engineers can follow step progress and inspect sequenced measurements, logs, artifacts, retries, timeouts, and explicit uncertain outcomes.
- The platform evaluates reviewed acceptance rules into pass, fail, or inconclusive verdicts and records every approval or override.
At scale
- For this exercise, assume 50,000 component runs per day across 20 sites and 2,000 test rigs, with bursts of 500 run submissions per second after a production batch completes.
- For this exercise, assume a run contains up to 200 steps, lasts from seconds to 12 hours, and emits up to 10,000 bounded events plus 5 GB of externally stored artifacts.
- For this exercise, assume queue and current-run state should become visible within 2 seconds at p95, while a submitted run receives a durable accepted or rejected outcome within 300 milliseconds.
- For this exercise, retain run metadata, verdicts, approvals, and artifact manifests for seven years; retain high-volume raw measurements in tiered object storage according to plan policy.