Repository navigation
LBA REQ 041
Proven
Deployment / distributed execution (ADR-0029; extends ADR-0028)
The system shall route each distributed task only to an instance advertising the capability the task requires, so a fail-closed gate proves every task ran on a capability-matching instance.
The distributed executor (ADR-0028) is heterogeneous, but LabVIEW lives only on capable instances (this host and, later, LabVIEW VMs) — a VI task sent to a node-only codespace would simply fail. Capability-aware routing sends each task only where it can run: LabVIEW work to LabVIEW-capable instances, non-LabVIEW parts to codespaces, so the fleet does real cross-plane work correctly (ADR-0029, operator directive).
- Instances advertise capabilities (host:
labviewiff LabVIEWCLI present +node; codespace:node); tasks declare required capabilities. -
routeByCapabilitycapacity-weight-splits each capability group across only the advertising instances, and throws if a required capability is unsatisfiable. -
validateRoutingfails closed unless every task ran on a capability-matching instance, the re-route from the recorded capabilities + weights reproduces the shards, they are disjoint + cover every task + distinct-instance + ripgrep-only- all passed.
- Live evidence: a real
LabVIEWCLI RunVIactivation probe routed to the host while 43 node self-tests spread across the host + two codespaces, all passed; the receipt replays offline in CI.
The router experiments/parallel/capabilityRouter.mjs +
runCapabilityRouted.mjs and the self-test are gated by capability-aware-routing
in verify-local-gates and mapped in the RTM. Authored under the
singular-requirement directive (one shall).
experiments/parallel/capabilityRouter.mjs; experiments/parallel/runCapabilityRouted.mjs; experiments/parallel/verify-capability-routing.selftest.mjs; experiments/parallel/fixtures/capability-routed-receipt.json; experiments/verify-local-gates.mjs
Proven