Repository navigation
ADR 0082
github-actions[bot] edited this page Nov 19, 2026
·
2 revisions
ADR-0082: Persistent lbabus autonomous actor service (LBA-REQ-099)
- Status: Accepted
- Date: 2026-08-10
- Deciders: maintainer + parent-integration agent
- Relates to: LBA-REQ-098 / ADR-0081 (signed actor protocol), LBA-REQ-060 / ADR-0040 (local receive log)
ADR-0081 defines a signed execution protocol, but a production actor needs a long-running process that owns delivery, durable replay state, bounded execution, and response transport across Linux and Windows. A host-driven SSH command per task would leave the host as the execution plane and would not survive response loss or restart.
- Linux actors use the dependency-free Node 24 daemon under systemd. Windows actors use native Windows PowerShell 5 under the activated desktop user's Startup session; Node is not part of the Windows guest execution path.
- Both daemons launch
lbabus net listen --log, consume its canonical append-only JSONL, and preserve the exact ADR-0081 request/response and attestation schemas. - Only
bus-msg@1CLAIMframes whose bus sender/task equal the signed requester/task enter the protocol service. - The cursor advances atomically only after every eligible response in the complete JSONL batch is sent. A failed send leaves the cursor unchanged; the persisted outcome is retransmitted without executing the workload again.
- Per-actor state durably records accepted requester/nonces, signed outcomes, and the active request. Startup turns
an interrupted active request into a signed
ACTOR_INTERRUPTEDfailure. - The actor runs at most one workload. Its local registry contains fixed executable/argument adapters; signed request parameters never become shell text or argv. The configured staged candidate must exactly match the request's commit, tree, and bundle SHA-256.
- Workload results are bounded to 64 KiB. Artifacts are bounded to 16 MiB each, stored by SHA-256 in guest-local content-addressed storage, and represented on the bus only by name, digest, and byte count.
- Responses use
lbabus net send --message-file; private actor keys and requester allowlists are read from local paths and private material is never placed in the bus envelope. - The Windows daemon implements recursively sorted canonical JSON and SHA-256 in PowerShell and uses the fixed Git
OpenSSL executable for Ed25519 only. Its fixed workload invokes LabVIEWCLI through
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe; request data never becomes command text or argv. - Windows provisioning preserves the guest-local key, binds the exact candidate, installs a narrow inbound TCP rule, and launches from the activated user's Startup folder so the actor survives reboot without a host-owned task.
- Duplicate log delivery and peer outages are idempotent: execution remains exactly once per accepted nonce while signed delivery can retry.
- The service is cross-platform and request-shell-free, but it must run as the already activated desktop user when the fixed adapter requires that user's LabVIEW/VIPM licenses.
- Offline tests prove 31 protocol/service/daemon/PowerShell cases. Live Windows evidence proves native PowerShell 5
reboot persistence, signed request admission, fixed LabVIEW result
3, and a protocol-valid actor-signed response. - The resealed candidate
654ed516b6b146489b7f4b5079ab191accea45bepassed the complete live signed N=3 gate after actor reboot (consume:true) and was then fast-forward synchronized directly to the parentdevelop.
- Realizes: LBA-REQ-099 (
docs/requirements/srs.md,docs/requirements/rtm.csv, testT-099) - Service:
experiments/mesh-fulfillment/autonomousActorService.mjs - Daemons:
experiments/mesh-fulfillment/autonomousActorDaemon.mjs,experiments/mesh-fulfillment/autonomousActorDaemon.ps1 - Windows provisioner:
scripts/provision-autonomous-windows-actor.ps1 - Focused command:
node scripts/lba.mjs actor-service-check
Generated from docs/architecture/adr/ADR-0082-persistent-lbabus-autonomous-actor-service.md on develop. Edit the source in the repository, not this page.