From 2eb4500f089154b982f7c5dbbc7f1efbfd702ed5 Mon Sep 17 00:00:00 2001 From: aur-build Date: Thu, 19 Nov 2026 11:49:50 +0000 Subject: =?UTF-8?q?sandbox:=20kata=20backend=20=E2=80=94=20ad-hoc=20TTL=20?= =?UTF-8?q?sandboxes=20over=20the=20agent=20protocol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The kata lease path is composition, not a new protocol: acquire mints a rendezvous nonce, asks a Provisioner for a sandbox pointed at this hub, and leases only the dial-in whose hello carries that nonce back. A box that never dials in is a TTL expiry — the same vocabulary every other failure here speaks (I5) — and a stray box that greets with a nonce nobody ordered is dropped unread, never leased. Two payload shapes are constructed as pure, unit-tested functions because both are real targets: an agent-sandbox-style Kubernetes CR (runtimeClass kata, activeDeadlineSeconds so the orchestrator enforces the TTL even if the hub dies) and a nerdctl/containerd argv for hosts without a cluster. The K8s provisioner is real ureq code exercised only by the gated live tier, which skips with a printed note wherever /dev/kvm or AUR_KATA_API is absent — the recorded-skip convention, not a silent pass. The rendezvous and TTL logic runs for real on any machine via LocalAgentProvisioner: a real sandbox-agent process, real frames, real nonce matching, no VM. That is the same honesty as the loopback backend — the interface is under test, not a mock of it. --- src/sandbox/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sandbox/mod.rs') diff --git a/src/sandbox/mod.rs b/src/sandbox/mod.rs index 89bef23..b20788d 100644 --- a/src/sandbox/mod.rs +++ b/src/sandbox/mod.rs @@ -32,6 +32,7 @@ use std::time::Duration; use crate::error::Result; pub mod agent; +pub mod kata; pub mod loopback; pub mod remote; pub mod wire; -- cgit v1.2.3