swactor/crates/data-plane/src
Zachery Aaron Shores-Chmielewski 77f3cdc660 feat(data-plane): add exec bootstrap ABI for job processes
Define the spawn-time handoff a job process consumes before any
application code runs: two inherited descriptors named by
SWACTOR_ARENA_FD and SWACTOR_WAKE_FD, and a fixed 48-byte little-endian
header at arena offset 0 naming one control-ring region.

- Canonical header layout, shared parser, and a host writer that leases
  the header region and control ring disjointly under the arena's own
  placement law, zeroes the ring, stamps its generation, and returns the
  handoff (env map, inheritable arena and wake descriptors, host wake
  eventfd) only after every write completes.
- Python binding gains swactor.run(main): map the arena read-only, take
  ground truth from fstat, validate through the shared parser, arm
  FD_CLOEXEC on the wake descriptor, close the arena descriptor after
  mapping, and drive main on asyncio with Context.data carrying the
  resolved state. Fail-fast BootstrapError before main on any defect.
- Rewrite jobs/tiny_linear_inference.py against the approved path API and
  record the slice, invariants, and remaining bridge work in the handoff
  doc.

Verified with 12 new data-plane bootstrap guarantee tests (parser defect
table, fuzzed pages, writer round-trip), 29 binding tests across
in-process and exec boundaries, and full data-plane and iroh-driver
suites with no regressions.
2026-08-20 20:43:44 +04:00
..
arena.rs feat(data-plane): add exec bootstrap ABI for job processes 2026-08-20 20:43:44 +04:00
bootstrap.rs feat(data-plane): add exec bootstrap ABI for job processes 2026-08-20 20:43:44 +04:00
edge_lifecycle.rs Move all edge logic into data-plane; reduce iroh-driver to a byte-transport port 2026-08-16 21:49:45 +04:00
edge_runtime.rs refactor(myelin): rework control and runtime integration 2026-08-20 01:46:11 +04:00
edge_wire.rs refactor(myelin): rework control and runtime integration 2026-08-20 01:46:11 +04:00
ids.rs Move all edge logic into data-plane; reduce iroh-driver to a byte-transport port 2026-08-16 21:49:45 +04:00
lib.rs feat(data-plane): add exec bootstrap ABI for job processes 2026-08-20 20:43:44 +04:00
object_record.rs Move all edge logic into data-plane; reduce iroh-driver to a byte-transport port 2026-08-16 21:49:45 +04:00
ring.rs Move all edge logic into data-plane; reduce iroh-driver to a byte-transport port 2026-08-16 21:49:45 +04:00