Skip to content

Add standalone single-engine snapshot companion - #70

Merged
nessie993 merged 8 commits into
mainfrom
agent/r46-single-engine-companion-main
Aug 13, 2026
Merged

nessie993 merged 8 commits into
mainfrom
agent/r46-single-engine-companion-main

Conversation

@nessie993

Copy link
Copy Markdown
Contributor

Summary

  • compose one authenticated incarnation watch, ZMQ owner, long-lived digest source, UDS snapshot runtime, and metrics server into an off-by-default executable
  • harden and authenticate session/digest/attestation files before any bind, connect, or socket publication; fence immediately on invalid refresh
  • use one absolute shutdown deadline with task abort and content-free closed-label telemetry
  • keep the companion in a dedicated Dockerfile so ordinary LB images link only mini-dynamo
  • document the remaining host attestation-provisioner boundary before node06 shadow

Validation

  • cargo fmt --check
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --locked: 298 library + 31 integration/E2E
  • release build of both binaries; off-mode executable smoke
  • Go parity and 79 Python tests + 5-case agent corpus
  • source branch container smoke and dual-domain Compose validator
  • warm no-op Docker builds: LB 2.16s, companion 3.38s

No production Compose, image push, or node06 mutation.

@nessie993
nessie993 force-pushed the agent/r46-single-engine-companion-main branch 2 times, most recently from 3d8ddb5 to adba80c Compare August 13, 2026 08:15
@nessie993
nessie993 force-pushed the agent/r46-single-engine-companion-main branch from adba80c to 8a67e68 Compare August 13, 2026 08:33
@nessie993

Copy link
Copy Markdown
Contributor Author

Rebased onto main after the Drone-only CI merge and closed the independent rollout blockers found in review:

  • serve-mode preflight now rejects DS4_SNAPSHOT_MAX_CLIENTS != 2 before protected-file load, metrics bind, ZMQ ownership, or UDS publication
  • root-run CI fixtures use explicit non-root companion/client identities without weakening production UID validation
  • the binary now implements passive healthcheck <socket> with exact safe-parent/socket ownership, type, mode 0660, and link-count checks; unknown/fixture commands fail closed
  • removed misleading EXPOSE 9091; production metrics need a separate permission-isolated UDS/Caddy design

Clean validation: 299 lib + 35 integration tests = 334/334, Clippy strict, fmt, Go parity, 101 Python tests, both Docker images and hardened companion healthcheck container. Drone is now the only CI check and is running on this head.

@nessie993
nessie993 merged commit 340e203 into main Aug 13, 2026
1 check passed
@nessie993
nessie993 deleted the agent/r46-single-engine-companion-main branch August 13, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant