Phase 5 Operations Guide¶
1. Register a worker¶
embeddyn mechatronics worker-register \
--name local-simulation-worker \
--worker-id local-01 \
--simulators mock,webots,ngspice,renode \
--labels simulation,linux \
--max-parallel-jobs 2
Record the returned worker ID. The same ID is used when starting the worker agent.
2. Start the worker¶
For CI or smoke testing, process no more than one available job:
3. Submit an experiment¶
Inspect progress:
4. Worker matching¶
A worker is eligible only when all requested capabilities are present.
Supported requirement fields:
requirements:
simulators: [webots, ngspice]
hardware: [can0, usb-debugger]
labels: [simulation, lab-a]
operating_system: linux
architecture: x86_64
real_time: true
5. HIL policy¶
Validate the policy before connecting equipment:
Required operational rules:
- Start disarmed.
- Apply safe outputs before opening control flow.
- Verify the physical emergency stop independently.
- Arm only after operator authorization.
- Send watchdog heartbeats from the real-time loop.
- Trip on lost communication, emergency stop, or deadline violations.
- Apply safe outputs before closing the hardware driver.
6. Recovery¶
- Queued jobs can be cancelled immediately.
- Active jobs retain a cancellation request for cooperative worker shutdown.
- Offline workers are marked with
workers-list --stale-after <seconds>. - Failed worker commands retain bounded stdout/stderr and output directory metadata.
- Run artifacts remain managed by the Phase 2 content-addressed store.