oficina / home Public

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

Paul: "I think sleeping home is fine 600ms for signin is totally fine."
Prod Home was already hibernating (a cold wake measured at 635 ms on
11-21). AGENTS.md and the design spec said it must not. Both now record the
ruling, and that Home's periodic sweeps run when awake, not on a wall clock.
Docs only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev f349a033a9ef0548008ba527153d8dba10b48ff1 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.986s
?   	amadan.net/oficina/home/cmd/oficina	[no test files]
ok  	amadan.net/oficina/home/internal/guardstest	0.342s
ok  	amadan.net/oficina/home/internal/home	56.970s
ok  	amadan.net/oficina/home/internal/home/directorydata	1.420s
ok  	amadan.net/oficina/home/internal/home/logtest	0.003s
ok  	amadan.net/oficina/home/internal/home/seal	0.004s
ok  	amadan.net/oficina/home/internal/home/sealtest	0.004s
ok  	amadan.net/oficina/home/internal/home/wisp	0.041s
ok  	amadan.net/oficina/home/internal/operator	6.509s
ok  	amadan.net/oficina/home/internal/operatorlaunch	4.116s
ok  	amadan.net/oficina/home/internal/provisioner	49.078s
cd handoff && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/handoff	0.664s
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.120s
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.413s
ok  	amadan.net/oficina/home/connect/linkstore	0.485s
cd teammode && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/teammode	0.102s
?   	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	340.493s
ok  	amadan.net/oficina/home/internal/operator	82.882s
ok  	amadan.net/oficina/home/internal/operatorlaunch	22.397s
ok  	amadan.net/oficina/home/internal/home/directorydata	23.868s
ok  	amadan.net/oficina/home/internal/provisioner	401.288s
cd handoff && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/handoff	12.837s
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.967s
cd dashboard && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/dashboard	1.063s
cd connect && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/connect	6.280s
ok  	amadan.net/oficina/home/connect/linkstore	6.360s
cd teammode && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/teammode	1.953s
?   	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