oficina / home Public

Home may hibernate (Paul, 2026-11-21)

Paul: "I think sleeping home is fine 600ms for signin is totally fine."
Production Home was already hibernating (cold wake about 635 ms). AGENTS.md
and the design spec now record the ruling, replacing "the home does not
hibernate", and note that Home's sweeps run when awake, not on a wall
clock. Docs only. CI passed. Discussion 144.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from docs/home-may-hibernate into main.
claude agent, operated by paul@keymail.dev 29d5b8f9c36f6a90c403046f2222d0fb0d99f386 parent 4f36016
2 files changed, +12 −6
  • AGENTS.md +6 −3
  • docs/superpowers/specs/2026-08-30-home-design.md +6 −3

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.794s
?   	amadan.net/oficina/home/cmd/oficina	[no test files]
ok  	amadan.net/oficina/home/internal/guardstest	0.217s
ok  	amadan.net/oficina/home/internal/home	55.258s
ok  	amadan.net/oficina/home/internal/home/directorydata	1.384s
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.004s
ok  	amadan.net/oficina/home/internal/home/wisp	0.063s
ok  	amadan.net/oficina/home/internal/operator	6.379s
ok  	amadan.net/oficina/home/internal/operatorlaunch	4.159s
ok  	amadan.net/oficina/home/internal/provisioner	48.407s
cd handoff && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/handoff	0.643s
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.119s
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.389s
ok  	amadan.net/oficina/home/connect/linkstore	0.424s
cd teammode && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/teammode	0.096s
?   	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	330.903s
ok  	amadan.net/oficina/home/internal/operator	82.226s
ok  	amadan.net/oficina/home/internal/operatorlaunch	22.375s
ok  	amadan.net/oficina/home/internal/home/directorydata	23.254s
ok  	amadan.net/oficina/home/internal/provisioner	395.984s
cd handoff && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/handoff	12.751s
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.940s
cd dashboard && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/dashboard	1.061s
cd connect && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/connect	6.137s
ok  	amadan.net/oficina/home/connect/linkstore	6.185s
cd teammode && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/teammode	1.908s
?   	amadan.net/oficina/home/teammode/teammodetest	[no test files]
diff --git a/AGENTS.md b/AGENTS.md
index 73331fb..e2700b3 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -506,9 +506,12 @@ quietly ignored).
(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.
+- **The home may hibernate** (Paul, 2026-11-21: "I think sleeping home is
+ fine 600ms for signin is totally fine"). This supersedes the earlier "the
+ home does not hibernate": the measured cold wake is about 0.6 s, which
+ is acceptable on a sign-in. Home's own periodic sweeps run when it is
+ awake, not on a wall clock, so nothing it does may assume a timer
+ fired while it slept.
- **A backup you have never restored is a hope, not a backup.** Losing this
database loses credentials **and the roster**, neither of which rebuilds — call 2 cannot write membership and no channel carries an instance's copy back, so roster recovery is an operator reading instances out and re-seeding (spec §10). The restore drill runs
before launch.
diff --git a/docs/superpowers/specs/2026-08-30-home-design.md b/docs/superpowers/specs/2026-08-30-home-design.md
index 318ebf6..8048a18 100644
--- a/docs/superpowers/specs/2026-08-30-home-design.md
+++ b/docs/superpowers/specs/2026-08-30-home-design.md
@@ -215,9 +215,12 @@ Sign-in is an authority, so a home outage stops *new* sessions suite-wide.
Existing sessions keep working **for individual grants**. Since ruling 23 they do **not** keep team standing: past the roster TTL with no successful refetch an instance stops admitting anyone on team standing, people already in a session included (doctrine §5.3). So a long home outage degrades a signed-in member to their per-item grants. Four things shrink that exception without
changing the architecture:
-- **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.
+- **The home may hibernate** (Paul, 2026-11-21: "I think sleeping home is
+ fine 600ms for signin is totally fine"). This supersedes the earlier "the
+ home does not hibernate": the measured cold wake is about 0.6 s, which
+ is acceptable on a sign-in. Home's own periodic sweeps run when it is
+ awake, not on a wall clock, so nothing it does may assume a timer
+ fired while it slept.
- **A rehearsed cold-standby restore with a written RTO.** The drill exists
in §12; the target belongs here.
- **Sliding session renewal at instances**, so long-lived teams rarely