Repository navigation
Proposal Ephemeral Mesh
Status: DRAFT (for WIN review — cross-plane parity) · Author: LINUX plane · Date: 2026-07-31 · Task: ephemeral-mesh
P1 (Linux/VirtualBox) is PROVEN LIVE. The full cattle cycle — golden snapshot → linked clone → boot → lbabus loopback
MESH OK (TCP+UDP)→ destroy — runs end to end and seals anephemeral-mesh@1receipt, re-validated offline and gated on every PR. See experiments/ephemeral-mesh/ and its sealed receipt.json.
Replace hand-maintained, long-lived actor VMs with a canonical ephemeral mesh: actor VMs are built
reproducibly from a golden image, cloned into a mesh, used, and destroyed — they explicitly do not need to
survive a reboot. If a node drifts or breaks, you rebuild (fast) instead of repair. Every node uses a
known local actor account (a non-secret dev default), so the agent's VM bridge connects reliably with zero
credential friction. The same topology spec, lifecycle, and receipt run on both planes (Ubuntu/VirtualBox and
Windows), giving cross-plane parity for the benchmark and authoring self-tests.
This is a cattle, not pets reframe. It is a plan; P1 (a Linux proof on the already-working box) is scoped to
infrastructure only (bridge + lbabus MESH OK + the ephemeral cycle), not the authoring self-test.
Standing up the persistent actor-win11-decouple VM by hand cost hours of avoidable friction, every bit of it a
symptom of treating a VM as a pet:
- VBox
guestcontrolcannot authenticate a Microsoft account (the operator's interactive login) — only a local account with a real password. - A boot-time step re-stamps the local
vagrantpassword to a provisioned value, sonet user vagrant vagrantonly held until the next reboot; autologin then failed at the login screen. - Elevation for installs (VIPM into Program Files, HKLM) needs a full admin token, but
guestcontrolhands the account a UAC-filtered token, and a non-elevated process cannot self-elevate.
None of these are bugs to fix on that VM — they are the cost of persistence + hand-configuration. The fix is
to stop persisting: build a known-good image once, clone disposable nodes with known local credentials, run,
and destroy. The credential model already exists in the repo (cleanroom/ubuntu-labview/vm-credentials.csv,
actor/actor as the documented non-secret dev default from build-virtualbox.sh).
-
Known local identity everywhere. Every node has a local
actoraccount with a known dev password (non-secret on a public repo; real per-VM credentials stay in the operator-held, gitignoredvm-credentials.csv). No Microsoft/PIN accounts. The bridge's<vm>.user/<vm>.passare the sameactorpair for every node → reboot-immune because we never reboot-and-repair. -
Golden → clone N → run → destroy. One golden image per plane, built once from a stock ISO (Ubuntu
already has
build-virtualbox.sh; Windows needs the analog). A topology spec (the existingmesh-actors.csvschema) clones N ephemeral nodes with unique identities (actor1/actor2/…, host-only192.168.56.x). -
One driver.
tools/vm-bridge/lba-guest.sh(host-side, secret-safe--passwordfile) drives every node headlessly. Backend-agnostic by design: VBoxguestcontroltoday; SSH / WinRM / VMwarevmrunslot in behind the samecheck|cmd|ps|run|cpsurface. Same driver, both planes. -
Comms-only mesh + host concentration (already the repo's law): nodes coordinate over lbabus net
(TCP 7420 reliable + UDP 7421 presence) to
MESH OK (TCP+UDP); run data never crosses the bus (VM-local mprr ring, LBA-REQ-009); cross-plane comparison happens by host concentration (LBA-REQ-010/014). -
Everything is a receipt. Each lifecycle run seals an
ephemeral-mesh@1receipt (nodes, identities, mesh outcome, timings, teardown proof) — re-runnable, gate-able, no-rot, consistent with the repo's other receipts. -
Typed nodes + strict serialization. Every actor boots as a
source(emit-only), asink(collect-only), orboth(full peer) — declared in/etc/lba-mesh-actor(NODE_TYPE), orthogonal to thegolden|meshlifecycle role. A sink ingests each source's frames in strict, gap-checkedseqorder (deterministic, comms-only). Full contract: Proposal-Mesh-Node-Types.
| Asset | Path | Role |
|---|---|---|
| Ubuntu golden builder | cleanroom/ubuntu-labview/build-virtualbox.sh |
stock-ISO → unattended VBox VM, actor/actor default |
| Shared provisioning |
cleanroom/ubuntu-labview/provision-guest.sh + provision-lbabus-fromsource.sh
|
LabVIEW 2026 + first-boot self-build lbabus (no baked binary) |
| Ubuntu mesh |
cleanroom/ubuntu-labview/mesh/ (Vagrantfile, virtualbox/) |
clones N from mesh-actors.csv, per-node identity, lba-mesh.service
|
| Mesh runtime | tools/collab-cli/ci/mesh-actor.{sh,ps1} |
TCP+UDP listen/fan-out → MESH OK (TCP+UDP)
|
| Proven Windows mesh | experiments/multi-vm-topology/ |
2-node VMware, receipt pass:true, TCP/UDP coordination |
| The bridge | tools/vm-bridge/lba-guest.sh |
secret-safe guestcontrol driver |
| Credential model |
cleanroom/ubuntu-labview/vm-credentials.csv (gitignored) |
vm_name,hypervisor,guest_user,guest_password,…; actor/actor dev default |
Requirement + ADR boundaries already in force: LBA-REQ-006 (declarative multi-VM topology, unique identities, clean teardown, no cross-VM run-data), LBA-REQ-007 (TCP/UDP comms-only bus), LBA-REQ-009 (VM-local run storage), LBA-REQ-010/014 (host concentration + deterministic cross-plane compare); ADR-0003 (bus wire), ADR-0004 (UDP presence, not run-clock), ADR-0005 (bus is not a run-data channel).
-
No Windows-from-stock-ISO golden builder with a baked local
actoraccount —reviewer-workstation/only consumes a maintainer box. This gap is exactly the friction we hit. → build the analog ofbuild-virtualbox.shfor Windows. -
No single ephemeral lifecycle (
build → seal → clone → identity-inject → mesh-prove → destroy → attest) spanning both hypervisors/planes with one spec and one receipt. → oneexperiments/ephemeral-mesh/orchestrator wrapping the existing assets. (P1 delivers the first slice: run-ephemeral-mesh.mjs does golden→clone→run→destroy on the Linux/VBox plane; P2 generalizes it to N nodes + both planes.) -
Credential defaults differ (
build-virtualbox.sh=actor,build-vmware.ps1=labview). → standardize onactoracross creation scripts.
[stock ISO] --build--> [GOLDEN image] (local actor acct + GA + LabVIEW + first-boot lbabus) <-- once per plane
| seal (snapshot 'golden-ready')
v
topology spec --clone N--> actor1 .. actorN (unique hostname + host-only IP + identity record)
(mesh-actors.csv) | identity-inject (per-node /etc/lba-mesh-actor or Windows equiv)
v
lbabus net TCP 7420 + UDP 7421 --> MESH OK (TCP+UDP) (comms-only)
| (run data stays VM-local; host concentration for compare)
v
seal ephemeral-mesh@1 RECEIPT --> destroy -f all nodes (attest teardown)
-
Driver: the host runs
lba-guestagainst each node using the oneactorcredential; nodes never expose a reused secret. Ephemeral because a broken node is destroyed + re-cloned, never repaired. -
Receipt (
ephemeral-mesh@1):{ plane, hypervisor, golden, nodes:[{id,hostname,ip,heardTcp,heardUdp}], meshOk, durations, teardown:'destroyed', createdAt }— the re-runnable proof + a local-gate anchor.
-
P1 — Linux proof (✅ DONE, golden
lba-ubuntu2404-labview2026-scratch@mesh-node-ready): the full cattle cycle proven live — golden snapshot → linked clone → boot → lbabus loopbackMESH OK (TCP+UDP)→ destroy — driven by the knownactoridentity over an SSH key (no password ever). Sealed to anephemeral-mesh@1receipt and gated offline (ephemeral-mesh-receipt-green). Boot→SSH-ready ≈13 s; clean teardown confirmed (no leftover VM/disk). Infra only — no authoring self-test. Chosen variant: loopbackMESH OKinside a throwaway clone that is then destroyed (true cattle), rather than snapshot-rollback. -
P2 — canonical orchestrator + typed nodes:
experiments/ephemeral-mesh/= one lifecycle CLI (build|clone|run|destroy) + averify-ephemeral-mesh.mjsself-test + a gate in the sharedverify-local-gates. Adds boot-time node types (source|sink|both) and the strict-serialization sink contract (Proposal-Mesh-Node-Types): P2a type wiring inmesh-actor.sh/.ps1, P2b the sink's ordered ingest +orderedReceipt, P2c asource→sinkephemeral run. -
P3 — Windows golden builder: from-stock-ISO Windows image with a local
actoraccount + Guest Additions + first-boot lbabus, mirroringbuild-virtualbox.sh. Kills theactor-win11-decouplefriction class. -
P4 — cross-plane mesh proof: N Ubuntu + N Windows nodes,
MESH OKon both planes, one receipt; then the authoring self-test (author→analyze→agree) runs on the mesh instead of a pet.
New requirement IDs to register once approved (illustrative): an ephemeral-VM-lifecycle requirement (reproducible build→clone→run→destroy with a known local identity, no reboot-survival), and a cross-plane-mesh-parity requirement (same topology spec + receipt on both planes) — each with a Proven receipt + a shared-runner gate, extending LBA-REQ-006/007.
- The
actor/actordev credential is non-secret by design on a public repo (documented invm-credentials.csvheader); real per-VM passwords live only in the operator-held, gitignored copy and never transit the model (the bridge reads them via--passwordfile). - Nodes are VM-sandboxed and disposable; a compromised or drifted node is destroyed, not trusted.
- Comms-only bus (no run-data on the wire); private/host-only network binding by default (ADR-0004/0005).
- LINUX: the ephemeral lifecycle orchestrator + receipt + gate; P1 Linux proof (done); the Ubuntu golden parity fixes; drives its own VirtualBox nodes.
- WIN: cross-plane parity review; the Windows golden builder can be co-owned (LINUX drafts the from-ISO flow, WIN validates on the VMware plane); the P4 cross-plane receipt (mirrors the #191/#199 witness pattern).
- Boundaries are a proposal — WIN weighs in for parity.
Generated from docs/proposals/ephemeral-mesh.md on develop. Edit the source in the repository, not this page.