oficina / home Public

Adoption: proposed amendment for an approved redeploy after configure

Four apps were redeployed to approved releases after configure had
recorded their delivery checks. The delivery check requires the version
to be unchanged from the before snapshot, so no new check could be
made. This proposes one exception: configure may record a new check,
reading only, when the release changed to the approved artifact and
nothing else changed. For Paul's approval.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev e8d460fbb39c2de15e398c8fa8454259007f2a25 parent 3942f32
1 file changed, +54 −0
  • implementation/existing-team-adoption.md +54 −0

CI passed — run details

CI log
amadan: .amadan/timeout: this job's budget is 20m0s (this runner allows up to 30m0s)
=== vet ===
CGO_ENABLED=0 go vet ./...
CGO_ENABLED=0 go vet -tags browser ./internal/home/
cd handoff && CGO_ENABLED=0 go vet ./...
cd roster && CGO_ENABLED=0 go vet ./...
cd dashboard && CGO_ENABLED=0 go vet ./...
cd connect && CGO_ENABLED=0 go vet ./...
cd teammode && CGO_ENABLED=0 go vet ./...
=== fmt ===
=== build ===
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build ./cmd/home ./cmd/oficina ./internal/operatorlaunch
cd handoff && CGO_ENABLED=0 go build ./...
cd roster && CGO_ENABLED=0 go build ./...
cd dashboard && CGO_ENABLED=0 go build ./...
cd connect && CGO_ENABLED=0 go build ./...
cd teammode && CGO_ENABLED=0 go build ./...
=== go-test ===
CGO_ENABLED=0 go test -count=1 ./...
?   	amadan.net/oficina/home/cmd/home	[no test files]
ok  	amadan.net/oficina/home/cmd/home-placeholder	0.853s
?   	amadan.net/oficina/home/cmd/oficina	[no test files]
ok  	amadan.net/oficina/home/internal/guardstest	0.088s
ok  	amadan.net/oficina/home/internal/home	51.408s
ok  	amadan.net/oficina/home/internal/home/directorydata	1.426s
ok  	amadan.net/oficina/home/internal/home/logtest	0.004s
ok  	amadan.net/oficina/home/internal/home/seal	0.002s
ok  	amadan.net/oficina/home/internal/home/sealtest	0.003s
ok  	amadan.net/oficina/home/internal/home/wisp	0.046s
ok  	amadan.net/oficina/home/internal/operator	6.406s
ok  	amadan.net/oficina/home/internal/operatorlaunch	4.112s
ok  	amadan.net/oficina/home/internal/provisioner	49.119s
cd handoff && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/handoff	0.672s
ok  	amadan.net/oficina/home/handoff/seal	0.002s
cd roster && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/roster	5.122s
cd dashboard && CGO_ENABLED=0 go test ./...
ok  	amadan.net/oficina/home/dashboard	0.010s
cd connect && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/connect	1.349s
ok  	amadan.net/oficina/home/connect/linkstore	0.422s
cd teammode && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/teammode	0.101s
?   	amadan.net/oficina/home/teammode/teammodetest	[no test files]
=== race ===
go test -race -count=1 ./internal/home/ ./internal/operator/ ./internal/operatorlaunch/ ./internal/home/directorydata/
ok  	amadan.net/oficina/home/internal/home	386.707s
ok  	amadan.net/oficina/home/internal/operator	82.640s
ok  	amadan.net/oficina/home/internal/operatorlaunch	22.393s
ok  	amadan.net/oficina/home/internal/home/directorydata	23.680s
ok  	amadan.net/oficina/home/internal/provisioner	418.338s
cd handoff && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/handoff	12.836s
ok  	amadan.net/oficina/home/handoff/seal	1.015s
cd roster && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/roster	6.905s
cd dashboard && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/dashboard	1.062s
cd connect && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/connect	5.930s
ok  	amadan.net/oficina/home/connect/linkstore	6.296s
cd teammode && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/teammode	1.936s
?   	amadan.net/oficina/home/teammode/teammodetest	[no test files]
diff --git a/implementation/existing-team-adoption.md b/implementation/existing-team-adoption.md
index d13f12c..5b5b9db 100644
--- a/implementation/existing-team-adoption.md
+++ b/implementation/existing-team-adoption.md
@@ -211,6 +211,60 @@ part of the signed observation: environment_binding carries it in the
place the witness had. Production activation of an app is blocked until
its check is recorded and still current.
+#### Approved redeploy after configure (amendment, 2026-11-19)
+
+Status: proposed, for Paul's approval. It changes the first bullet
+above for one case only.
+
+During the production run, docs, slides, calls and memoria were
+redeployed to new releases after `configure` had landed their agent keys,
+restarted them and recorded their checks. Paul approved those releases,
+and the runner's config now names their artifacts. Each stored check is
+void, because the served version changed. A new check cannot be made,
+because the bullet above requires the version to be unchanged from the
+before snapshot. A rollback does not help: `configure` refuses once a
+rollback is recorded, and the baseline is never retaken.
+
+So `configure`, run again for an app whose write has landed and whose
+after snapshot exists, may record a new check on a release other than
+the before snapshot's. It reads only: it sends no write and no restart.
+It records the check only if all of these hold on one fresh observation:
+
+- the served release changed: the `/api/version` body and
+ `X-Carlos-Version` both differ from the before snapshot's. If they do
+ not, the check is the ordinary one above, unchanged;
+- `X-Carlos-Version` hashes to the app's reviewed artifact in the
+ runner's config (the release Paul approved), the body and header name
+ the same release, there is no redirect, and `/healthz` is 200;
+- `GET /api/v1/operations` gives agent-access's own answer, as in the
+ bullet above, which shows the new process runs with the agent keys;
+- the journal's write is landed, and both agent keys are plain vars in
+ the write layer holding the values it sent;
+- every other key and every untouched layer is preserved from the
+ before snapshot, and the config equals the after snapshot exactly. A
+ config change that came with the redeploy, including a new key, is
+ refused;
+- the identity equals the before and after snapshots': the same
+ instance record and record sequence, environment, storage and
+ canonical domain route. A redeploy keeps the instance record.
+
+The check records the redeploy with it: the before snapshot's release,
+the new one, the approved artifact and the reason. environment_binding
+commits to that record as part of the check; a check with no redeploy
+binds exactly as before. The activation gate accepts such a check only
+if its record is still true: it starts from the before snapshot's
+release, ends at the release the check observed, names the artifact the
+config approves now, and the fresh probe passes the rules above. The
+ordinary freshness rule still applies, so any later change to the
+release, identity or config voids the check, and an unapproved release
+is refused as before. Anything else gets the ordinary refusal.
+
+What this does not change: a release that did not change is checked
+exactly as before; no new write or restart is allowed; the baseline is
+never retaken. One known effect: `rollback-config` waits for the before
+snapshot's version, so after a redeploy a rollback's restart cannot
+complete. A rollback after a redeploy needs its own reviewed procedure.
+
#### Negative live checks: dropped for this adoption
This document required the runner to check, against oficina-connect, that