carlos / platform Public

ha: prove unattended departure duty recovery

Require both token and instance-key evidence in the root lifecycle witness. The final 3000-seed sweep, all 35 mutations, focused race checks, census, build, vet and cross-builds pass; arm64 is 56,426,658 bytes.

The root-runner binary compiles but privileged acceptance remains with the controller. Full host tests retain 19 baseline lifecycle-provider failures and hit the overall 25-minute timeout; the interrupted test passes in isolation. No push or merge.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev c93376734bce8b42b6e1c5927b7a42a531746a70 parent 020f342
1 file changed, +6 −0
  • internal/host/hadepartures_root_linux_test.go +6 −0

CI passed — run details

Intent

Attributed to this commit: 24.9 g CO₂e (3,126,049 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-p1b3b-duties, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/internal/host/hadepartures_root_linux_test.go b/internal/host/hadepartures_root_linux_test.go
index f19c0c50d..1b9d5ba04 100644
--- a/internal/host/hadepartures_root_linux_test.go
+++ b/internal/host/hadepartures_root_linux_test.go
@@ -280,11 +280,17 @@ func departureRootSecrets(t *testing.T) [32]byte {
for _, host := range []string{lifecycleHost, lifecycleSibling} {
raw, err := os.ReadFile(filepath.Join(provision.InstanceDir("/data", host), host+".env"))
lifecycleCheck(t, "instance secrets", err)
+ found := map[string]bool{}
for _, line := range strings.Split(string(raw), "\n") {
if strings.HasPrefix(line, "CARLOS_ADMIN_TOKEN=") || strings.HasPrefix(line, "CARLOS_INSTANCE_KEY=") {
+ key, value, _ := strings.Cut(line, "=")
+ found[key] = value != ""
all.WriteString(line)
}
}
+ if !found["CARLOS_ADMIN_TOKEN"] || !found["CARLOS_INSTANCE_KEY"] {
+ t.Fatal("missing token or instance key", host)
+ }
}
if all.Len() == 0 {
t.Fatal("no instance token/key identity")