Merge branch 'adopt-approved-redeploy' into main
Merge adopt-approved-redeploy: re-check an app after an approved redeploy configure can record a fresh delivery check, without writing or restarting, when the app moved to a release Paul approved. Paul approved the design amendment 2026-11-19; Astra reviewed; CI passed.
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.669s ? amadan.net/oficina/home/cmd/oficina [no test files] ok amadan.net/oficina/home/internal/guardstest 0.069s ok amadan.net/oficina/home/internal/home 51.087s ok amadan.net/oficina/home/internal/home/directorydata 1.439s ok amadan.net/oficina/home/internal/home/logtest 0.005s ok amadan.net/oficina/home/internal/home/seal 0.007s ok amadan.net/oficina/home/internal/home/sealtest 0.005s ok amadan.net/oficina/home/internal/home/wisp 0.042s ok amadan.net/oficina/home/internal/operator 6.396s ok amadan.net/oficina/home/internal/operatorlaunch 4.124s ok amadan.net/oficina/home/internal/provisioner 48.607s cd handoff && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/handoff 0.665s ok amadan.net/oficina/home/handoff/seal 0.003s 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 (cached) cd connect && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/connect 1.351s ok amadan.net/oficina/home/connect/linkstore 0.484s cd teammode && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/teammode 0.103s ? 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 387.303s ok amadan.net/oficina/home/internal/operator 82.613s ok amadan.net/oficina/home/internal/operatorlaunch 22.391s ok amadan.net/oficina/home/internal/home/directorydata 23.647s ok amadan.net/oficina/home/internal/provisioner 418.921s cd handoff && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/handoff 12.805s ok amadan.net/oficina/home/handoff/seal 1.014s cd roster && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/roster 6.903s 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.947s ok amadan.net/oficina/home/connect/linkstore 6.295s cd teammode && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/teammode 1.943s ? 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 |