oficina / home Public

AGENTS.md: production deploys name oficina and oficina-id, not home

The Deploys section shipped and promoted with --app home, which is only
the preview/canary app: a command copied from it deploys the canary and
leaves production as it was. Production is the one binary as two carlos
apps in account oficina: oficina (the directory) and oficina-id (the
credential origin). The commands now loop over both, mail submission is
switched on both together (they boot the same loadMailer), and both
hosts are checked afterwards.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev f763fbcadbedcd95fddb92daf9037c8cb1ddcf68 parent 106d108
1 file changed, +23 −9
  • AGENTS.md +23 −9

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.960s
?   	amadan.net/oficina/home/cmd/oficina	[no test files]
ok  	amadan.net/oficina/home/internal/guardstest	0.204s
ok  	amadan.net/oficina/home/internal/home	51.460s
ok  	amadan.net/oficina/home/internal/home/directorydata	1.391s
ok  	amadan.net/oficina/home/internal/home/logtest	0.003s
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.045s
ok  	amadan.net/oficina/home/internal/operator	6.403s
ok  	amadan.net/oficina/home/internal/operatorlaunch	4.115s
ok  	amadan.net/oficina/home/internal/provisioner	49.209s
cd handoff && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/handoff	0.654s
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.123s
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.403s
ok  	amadan.net/oficina/home/connect/linkstore	0.421s
cd teammode && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/teammode	0.098s
?   	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	318.475s
ok  	amadan.net/oficina/home/internal/operator	82.589s
ok  	amadan.net/oficina/home/internal/operatorlaunch	22.386s
ok  	amadan.net/oficina/home/internal/home/directorydata	23.612s
ok  	amadan.net/oficina/home/internal/provisioner	401.278s
cd handoff && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/handoff	12.930s
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.972s
cd dashboard && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/dashboard	1.065s
cd connect && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/connect	6.328s
ok  	amadan.net/oficina/home/connect/linkstore	6.385s
cd teammode && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/teammode	1.960s
?   	amadan.net/oficina/home/teammode/teammodetest	[no test files]
diff --git a/AGENTS.md b/AGENTS.md
index 24e2c73..332a6bb 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -438,18 +438,32 @@ quietly ignored).
- A 200 is not a deploy verification. Only `X-Carlos-Version` on the
canonical host, after the watch.
- A promote is not a deploy. Until the process cycles, the old binary serves.
+- **Production is two carlos apps, neither called `home`.** The one
+ binary runs as `oficina` (the directory, oficina.works) and `oficina-id`
+ (the credential origin, id.oficina.works), both in account `oficina`.
+ `home` is only the preview/canary app. A command written with
+ `--app home` deploys the canary and leaves production as it was, so
+ every production command below names both apps, and both are checked
+ afterwards (`X-Carlos-Version` on oficina.works and id.oficina.works).
- **Ship with `--mail submit`.** It declares that the build sends through
CARLOS mail submission (`mail.FromCarlos`, `loadMailer` in
`internal/home/keys.go`, From `$CARLOS_MAIL_FROM`). Until `carlos email
- submission on --app home` runs, Home keeps sending over `CARLOS_SMTP_*`
- and still refuses to boot without `CARLOS_SMTP_PASS`; after it the agent
- sets `CARLOS_MAIL=submit`, Home holds no mail credential, and every
- instance must run a build shipped with the flag. `carlos deploy` has no
- `--mail` flag yet (carlos main 9eec0236), so ship and promote:
- `carlos ship --app home --account oficina --mail submit --version <v>
- --target linux-arm64 releases/home-linux-arm64`, then `carlos promote
- --app home --account oficina <v>` (or `carlos deploy --mail submit`
- once that ships).
+ submission on` runs for an app, that app keeps sending over
+ `CARLOS_SMTP_*` and still refuses to boot without `CARLOS_SMTP_PASS`;
+ after it the agent sets `CARLOS_MAIL=submit`, the app holds no mail
+ credential, and every instance must run a build shipped with the flag.
+ Both production apps boot the same `loadMailer`, so switch them
+ together. `carlos deploy` has no `--mail` flag yet (carlos main
+ 9eec0236), so ship and promote each app:
+
+ for app in oficina oficina-id; do
+ carlos ship --app $app --account oficina --mail submit --version <v> \
+ --target linux-arm64 releases/home-linux-arm64
+ carlos promote --app $app --account oficina <v>
+ done
+
+ (or `carlos deploy --mail submit` once that ships). For the canary, the
+ same with `--app home`.
- **The home does not hibernate.** It is the one app on the estate where
cold-wake latency is a suite-wide outage. Stated because hibernation is
the platform default and would otherwise apply silently.