Spin line with mis-declared plates (centrifuge driver, version 2)
harbor run -t valenlabs/workcell-c1harbor download valenlabs/workcell-c1Write a controller program, /logs/artifacts/spin_controller.py, that runs a centrifuge spin line for one simulated
hour. Dosed plates arrive in bursts on a short input lane; each must be spun in a two-bucket centrifuge, read on one
of two readers and stacked on the output stacker. A rotor holds two plates of one mass class, or one plate and the
counterweight of its class. The worklist declares each plate's mass class, but a few plates on every shift are one
class off, and a refused balance check does not say which plate is wrong. A balance is available to weigh plates,
at the cost of arm time. The line holds more plates than it can finish, so you also choose which plates to give up.
The centrifuge door can jam, the balance sensor can drift silently, and a spin can hang without reporting.
Your program runs unattended across a fleet of 48 production shifts (one fresh workcell per shift) and must file a plate report in each. A local staging cell replays 8 sample shifts. The manual gives the cell, every duration, band and price, the incidents that can happen, valuation rules and every operational limit.
Deliver /logs/artifacts/spin_controller.py (kind controller).
It will run unattended across production shifts, one fresh workcell per shift (MANUAL section 15).
Performance is measured by net shift value V in µpt (higher is better): earned value from finished plates, incident refunds, and diagnosis credits, minus all operating costs of section 9 and charges of section 11. A compliance failure disqualifies that shift; other shifts are unaffected. Fleet compliance threshold: if at least 2 shifts suffer a compliance failure and they exceed 2% of shifts, the deployment fails.
You have 6 hours (21600000 ms) of wall-clock time. The cell freezes control 10 minutes (600000 ms) before that limit; call session.timer() to see the wall time left.
/workspace/MANUAL.md: the operations manual, with every rule and parameter of this workcell./workspace/task_public.task: the workcell specification file./workspace/harness/: the production harness source for this deliverable.from workcell.client_v2 import connect.This manual, the shift briefing, and the task file task_public.task are the authoritative specification for this workcell and are true. Files under logs/ are records left by earlier operators; they may not hold for this shift.
No run log is shipped with this workcell.