plan: plans 3b, never-sleep and schedule refusals
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+64
−0
docs/superpowers/plans/2026-10-23-plans-3b-never-sleep.md+64 −0
CI passed — run details
CI log
=== gate ===
.amadan/test-gate.sh
=== launchctx (0 s)
ok amadan.net/carlos/platform.git/launchctx 0.015s
? amadan.net/carlos/platform.git/launchctx/controlname [no test files]
? amadan.net/carlos/platform.git/launchctx/wireid [no test files]
=== vet (1 s)
=== gofmt (0 s)
gofmt -l .: clean
=== rest (143 s)
? github.com/carlosframework/platform/cmd/changelog [no test files]
ok github.com/carlosframework/platform/cmd/console 3.641s
ok github.com/carlosframework/platform/cmd/moveprobe 11.935s
ok github.com/carlosframework/platform/cmd/zddprobe 0.770s
ok github.com/carlosframework/platform/internal/activator 59.578s
ok github.com/carlosframework/platform/internal/agentsock 0.021s
ok github.com/carlosframework/platform/internal/alerting 0.006s
ok github.com/carlosframework/platform/internal/analytics 0.029s
ok github.com/carlosframework/platform/internal/appconfig 2.951s
ok github.com/carlosframework/platform/internal/apperr 0.114s
ok github.com/carlosframework/platform/internal/applog 0.247s
ok github.com/carlosframework/platform/internal/awsinv 0.004s
ok github.com/carlosframework/platform/internal/boxchoice 0.007s
ok github.com/carlosframework/platform/internal/boxid 1.163s
? github.com/carlosframework/platform/internal/boxid/boxidtest [no test files]
? github.com/carlosframework/platform/internal/boxid/internal/signtest [no test files]
ok github.com/carlosframework/platform/internal/boxvolumes 0.010s
ok github.com/carlosframework/platform/internal/caps 0.012s
ok github.com/carlosframework/platform/internal/certwarm 0.002s
ok github.com/carlosframework/platform/internal/cgroup 0.767s
ok github.com/carlosframework/platform/internal/changelog 0.505s
ok github.com/carlosframework/platform/internal/claimactivation 1.294s
ok github.com/carlosframework/platform/internal/clamd 0.062s
? github.com/carlosframework/platform/internal/cliflag [no test files]
? github.com/carlosframework/platform/internal/controlname [no test files]
? github.com/carlosframework/platform/internal/controlsock [no test files]
ok github.com/carlosframework/platform/internal/dbdoor 8.296s
ok github.com/carlosframework/platform/internal/dbdoor/dbdoortest 0.014s
ok github.com/carlosframework/platform/internal/dbquery 0.005s
ok github.com/carlosframework/platform/internal/dbreads 2.187s
? github.com/carlosframework/platform/internal/dbreads/dbreadstest [no test files]
ok github.com/carlosframework/platform/internal/dbverify 0.004s
ok github.com/carlosframework/platform/internal/dnsrec 0.003s
ok github.com/carlosframework/platform/internal/docsite 0.011s
ok github.com/carlosframework/platform/internal/domains 3.003s
ok github.com/carlosframework/platform/internal/doorkey 0.006s
ok github.com/carlosframework/platform/internal/economics 0.005s
ok github.com/carlosframework/platform/internal/edge 45.442s
? github.com/carlosframework/platform/internal/edgeproof [no test files]
ok github.com/carlosframework/platform/internal/edgesfile 0.009s
ok github.com/carlosframework/platform/internal/fleetapi 0.185s
ok github.com/carlosframework/platform/internal/gate 2.007s
ok github.com/carlosframework/platform/internal/genselect 0.038s
ok github.com/carlosframework/platform/internal/geo 0.022s
ok github.com/carlosframework/platform/internal/geoip 0.048s
ok github.com/carlosframework/platform/internal/historyreadback 0.260s
ok github.com/carlosframework/platform/internal/host 140.078s
ok github.com/carlosframework/platform/internal/hostactors 6.530s
ok github.com/carlosframework/platform/internal/hostactors/awsmembership 0.012s
ok github.com/carlosframework/platform/internal/hostbox 3.104s
ok github.com/carlosframework/platform/internal/hostclaim 0.772s
ok github.com/carlosframework/platform/internal/hostenv 0.005s
ok github.com/carlosframework/platform/internal/hostevidence 0.005s
ok github.com/carlosframework/platform/internal/hostexec 5.596s
ok github.com/carlosframework/platform/internal/hostfence 0.050s
ok github.com/carlosframework/platform/internal/hostfiles 10.207s
ok github.com/carlosframework/platform/internal/hostfloor 0.017s
ok github.com/carlosframework/platform/internal/hostguard 1.043s
ok github.com/carlosframework/platform/internal/hostops 2.257s
? github.com/carlosframework/platform/internal/hostops/fencerelease [no test files]
ok github.com/carlosframework/platform/internal/hostops/internal/fencerelease 0.004s
ok github.com/carlosframework/platform/internal/hostquarantine 0.006s
ok github.com/carlosframework/platform/internal/hostrelocate 0.637s
ok github.com/carlosframework/platform/internal/hostresolve 0.186s
ok github.com/carlosframework/platform/internal/hostwrite 0.005s
ok github.com/carlosframework/platform/internal/infraview 0.004s
ok github.com/carlosframework/platform/internal/instancectl 5.236s
ok github.com/carlosframework/platform/internal/instanceexec 2.788s
ok github.com/carlosframework/platform/internal/instancefs 0.005s
ok github.com/carlosframework/platform/internal/instancekey 0.002s
ok github.com/carlosframework/platform/internal/instanceupdates 0.009s
ok github.com/carlosframework/platform/internal/layout 1.955s
ok github.com/carlosframework/platform/internal/lbhealth 0.002s
ok github.com/carlosframework/platform/internal/lease 10.088s
ok github.com/carlosframework/platform/internal/lease/leasetest 0.494s
ok github.com/carlosframework/platform/internal/ledger 0.016s
ok github.com/carlosframework/platform/internal/mail 0.223s
ok github.com/carlosframework/platform/internal/maintenance 0.122s
ok github.com/carlosframework/platform/internal/maintenanceexec 5.565s
ok github.com/carlosframework/platform/internal/maintenanceguard 0.115s
ok github.com/carlosframework/platform/internal/metrics 0.009s
ok github.com/carlosframework/platform/internal/moves 21.286s
ok github.com/carlosframework/platform/internal/moves/archive 1.114s
ok github.com/carlosframework/platform/internal/objstore 0.221s
ok github.com/carlosframework/platform/internal/ops 0.198s
ok github.com/carlosframework/platform/internal/park 0.231s
ok github.com/carlosframework/platform/internal/plans 0.008s
ok github.com/carlosframework/platform/internal/privatefile 0.003s
ok github.com/carlosframework/platform/internal/provision 14.100s
ok github.com/carlosframework/platform/internal/publicrelease 0.008s
? github.com/carlosframework/platform/internal/regionname [no test files]
ok github.com/carlosframework/platform/internal/registry 5.529s
ok github.com/carlosframework/platform/internal/relay 7.239s
ok github.com/carlosframework/platform/internal/release 24.871s
ok github.com/carlosframework/platform/internal/rollout 3.727s
ok github.com/carlosframework/platform/internal/rolloutwords 0.004s
ok github.com/carlosframework/platform/internal/rootaws 0.009s
ok github.com/carlosframework/platform/internal/rootparticipation 0.059s
ok github.com/carlosframework/platform/internal/rootstate 0.026s
ok github.com/carlosframework/platform/internal/runs 0.559s
ok github.com/carlosframework/platform/internal/s3compat 0.008s
ok github.com/carlosframework/platform/internal/safefile 0.004s
ok github.com/carlosframework/platform/internal/schedule 2.747s
ok github.com/carlosframework/platform/internal/seeds 0.013s
ok github.com/carlosframework/platform/internal/sim/engines 2.819s
ok github.com/carlosframework/platform/internal/sim/hostlife 10.111s
ok github.com/carlosframework/platform/internal/sim/litestreamfacts 3.738s
ok github.com/carlosframework/platform/internal/status 0.079s
ok github.com/carlosframework/platform/internal/steering 0.007s
ok github.com/carlosframework/platform/internal/stopevidence 0.284s
ok github.com/carlosframework/platform/internal/svcrole 0.002s
ok github.com/carlosframework/platform/internal/telemetry 0.005s
ok github.com/carlosframework/platform/internal/termfence 0.004s
ok github.com/carlosframework/platform/internal/tunnelclient 0.003s
ok github.com/carlosframework/platform/internal/unixdial 0.003s
ok github.com/carlosframework/platform/internal/updatewords 0.005s
ok github.com/carlosframework/platform/internal/usage 0.006s
ok github.com/carlosframework/platform/internal/version 0.002s
ok github.com/carlosframework/platform/internal/vet 1.731s
=== internal_console@0 (83 s)
ok github.com/carlosframework/platform/internal/console 81.268s
=== internal_console@1 (42 s)
ok github.com/carlosframework/platform/internal/console 40.084s
=== internal_console@2 (43 s)
ok github.com/carlosframework/platform/internal/console 41.606s
=== internal_console@3 (42 s)
ok github.com/carlosframework/platform/internal/console 40.010s
=== internal_console@4 (46 s)
ok github.com/carlosframework/platform/internal/console 43.860s
=== internal_console@5 (41 s)
ok github.com/carlosframework/platform/internal/console 38.624s
=== internal_console@6 (40 s)
ok github.com/carlosframework/platform/internal/console 37.661s
=== internal_console@7 (35 s)
ok github.com/carlosframework/platform/internal/console 33.333s
=== root@0 (107 s)
ok github.com/carlosframework/platform 105.264s
=== root@1 (89 s)
ok github.com/carlosframework/platform 86.746s
=== root@2 (80 s)
ok github.com/carlosframework/platform 78.326s
=== cross ===
--- shard 0 of 5 ---
cross-compiling darwin/arm64
--- shard 1 of 5 ---
cross-compiling darwin/amd64
--- shard 2 of 5 ---
cross-compiling linux/arm64
linux/arm64 carlos binary: 50528418 bytes (ceiling 52000000)
--- shard 3 of 5 ---
cross-compiling windows/amd64
--- shard 4 of 5 ---
cross-compiling windows/arm64
=== minio-contract ===
minio contract: arm64, minio RELEASE.2025-09-07T16-13-09Z, mc RELEASE.2025-08-13T08-35-41Z
minio: downloading https://github.com/minio/minio/releases/download/RELEASE.2025-09-07T16-13-09Z/minio.linux-arm64.RELEASE.2025-09-07T16-13-09Z
minio: downloaded, digest verified
mc: downloading https://github.com/minio/mc/releases/download/RELEASE.2025-08-13T08-35-41Z/mc.linux-arm64.RELEASE.2025-08-13T08-35-41Z
mc: downloaded, digest verified
minio healthy on 127.0.0.1:20999
Added `local` successfully.
Bucket created successfully `local/contract-bucket`.
Bucket created successfully `local/denied-bucket`.
Created policy `contract-only` successfully.
Added user `scopeduser` successfully.
Attached Policies: [contract-only]
To User: scopeduser
buckets and scoped user ready
=== RUN TestDeliveredContractMinio
=== RUN TestDeliveredContractMinio/put
=== RUN TestDeliveredContractMinio/get_round-trips_the_body
=== RUN TestDeliveredContractMinio/list_shows_the_key
=== RUN TestDeliveredContractMinio/head_and_list_agree_on_the_version
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_its_own_object
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed
=== RUN TestDeliveredContractMinio/delete_removes_it
=== RUN TestDeliveredContractMinio/cross-bucket_denial
--- PASS: TestDeliveredContractMinio (0.02s)
--- PASS: TestDeliveredContractMinio/put (0.00s)
--- PASS: TestDeliveredContractMinio/get_round-trips_the_body (0.00s)
--- PASS: TestDeliveredContractMinio/list_shows_the_key (0.00s)
--- PASS: TestDeliveredContractMinio/head_and_list_agree_on_the_version (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route (0.01s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed (0.00s)
--- PASS: TestDeliveredContractMinio/delete_removes_it (0.00s)
--- PASS: TestDeliveredContractMinio/cross-bucket_denial (0.00s)
PASS
ok github.com/carlosframework/platform/internal/objstore 0.021s
=== RUN TestT4StorageProbeMinio
2026/10/22 23:15:45 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18E0FD1B5FC2F785, HostID: 7c420053e0fbcd7f41653fdd92ffa2802c903d05303b1aa15adc2e8bb65d183f, api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
--- PASS: TestT4StorageProbeMinio (0.01s)
PASS
ok github.com/carlosframework/platform/internal/host 0.021s
=== RUN TestS3StoreMinioContract
=== RUN TestS3StoreMinioContract/conditional_get_and_etag_listing
=== RUN TestS3StoreMinioContract/bump_through_every_mutation_path
--- PASS: TestS3StoreMinioContract (0.02s)
--- PASS: TestS3StoreMinioContract/conditional_get_and_etag_listing (0.01s)
--- PASS: TestS3StoreMinioContract/bump_through_every_mutation_path (0.01s)
PASS
ok github.com/carlosframework/platform/internal/release 0.029s
Bucket created successfully `local/dbf-deploy`.
Bucket created successfully `local/dbf-data-ie`.
Bucket created successfully `local/dbf-data-uk`.
local/dbf-deploy versioning is enabled
Created policy `dbf-console` successfully.
Created policy `dbf-ukbox` successfully.
Added user `dbfconsole` successfully.
Added user `dbfukbox` successfully.
Attached Policies: [dbf-console]
To User: dbfconsole
Attached Policies: [dbf-ukbox]
To User: dbfukbox
=== RUN TestDBForwardMinio
2026/10/22 23:15:47 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/10/22 23:15:47 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/10/22 23:15:47 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/10/22 23:15:47 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/10/22 23:15:47 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/10/22 23:15:47 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/10/22 23:15:47 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/10/22 23:15:47 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/10/22 23:15:47 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/10/22 23:15:47 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/10/22 23:15:47 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/10/22 23:15:47 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/10/22 23:15:47 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/10/22 23:15:47 console: could not notify member@example.com of a CLI token issue: keymail: lookup member@example.com: keymail: GET /api/federation/lookup?addr=member%40example.com&from=console%40127.0.0.1%3A41675: could not determine target mailbox
agent.go:123: dbreads: dbr_j6yjtf72z3vkkmkbwrghugbgre: planned 3 files (1544 bytes) and restored to 3 in 9ms
agent.go:123: dbreads: dbr_j6yjtf72z3vkkmkbwrghugbgre: output 5 bytes in 1 confirmed chunks in 1ms
2026/10/22 23:15:48 console: db read dbr_j6yjtf72z3vkkmkbwrghugbgre: relayed 1 chunks (102 bytes) in 1.003s, ended done
agent.go:123: dbreads: dbr_fld5fdv7xz5kfsbk3rpia7gttq: planned 1 files (720 bytes) and restored to 1 in 7ms
agent.go:123: dbreads: dbr_fld5fdv7xz5kfsbk3rpia7gttq: output 5 bytes in 1 confirmed chunks in 1ms
2026/10/22 23:15:49 console: db read dbr_fld5fdv7xz5kfsbk3rpia7gttq: relayed 1 chunks (102 bytes) in 1.004s, ended done
=== RUN TestDBForwardMinio/by_disconnect
=== NAME TestDBForwardMinio
agent.go:123: dbreads: dbr_nfcbujkaeezflcye3j5ezcmsdu: planned 3 files (1544 bytes) and restored to 3 in 10ms
2026/10/22 23:15:49 console: db read dbr_nfcbujkaeezflcye3j5ezcmsdu: relayed 0 chunks (0 bytes) in 15ms, ended client gone
agent.go:123: dbreads: dbr_nfcbujkaeezflcye3j5ezcmsdu: output 5 bytes in 1 confirmed chunks in 103ms
=== RUN TestDBForwardMinio/by_timeout
=== NAME TestDBForwardMinio
agent.go:123: dbreads: dbr_b2skglj2suuafxfv4irbhst2lq: planned 3 files (1544 bytes) and restored to 3 in 8ms
2026/10/22 23:16:10 console: db read dbr_b2skglj2suuafxfv4irbhst2lq: relayed 0 chunks (0 bytes) in 19.801s, ended no-result
agent.go:123: dbreads: dbr_b2skglj2suuafxfv4irbhst2lq: output 5 bytes in 1 confirmed chunks in 19.779s
--- PASS: TestDBForwardMinio (22.22s)
--- PASS: TestDBForwardMinio/by_disconnect (0.22s)
--- PASS: TestDBForwardMinio/by_timeout (19.91s)
PASS
ok github.com/carlosframework/platform/internal/console 22.242s
minio contract: PASS
diff --git a/docs/superpowers/plans/2026-10-23-plans-3b-never-sleep.md b/docs/superpowers/plans/2026-10-23-plans-3b-never-sleep.md| new file mode 100644 |
| index 000000000..2ddac2337 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/2026-10-23-plans-3b-never-sleep.md |
| @@ -0,0 +1,64 @@ |
| +# Plans 3b: Never-Sleep and Schedule Refusals Implementation Plan |
| + |
| +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. |
| + |
| +**Goal:** Under a plan, the console refuses the three things that would keep an app awake beyond its plan: shipping a release that declares `daemon`, enabling sidecars with `hibernate: false`, and declaring a schedule more frequent than the plan's minimum. |
| + |
| +**Architecture:** Three checks join `internal/console/plancaps.go`, each nil when plans are off, each a `*planCapError` with approved copy, answered 409 `"code":"cap"` by its JSON door. Cron schedules need a minimum-gap helper in `internal/schedule`. |
| + |
| +**Tech Stack:** Go; `internal/console`, `internal/schedule`. |
| + |
| +**Spec:** `docs/superpowers/specs/2026-10-20-plans-caps-packs-design.md` §5.2 (never sleeping is refused for plan-governed accounts; schedules: free minimum 15 minutes, paid 1 minute, validated where `ValidEvery` runs). Paul (2026-10-20): all apps hibernate; no plan offers always-on. Builds on Plans 1–3a. |
| + |
| +## Global Constraints |
| + |
| +- No catalog, no change: every check returns nil when `EffectiveLimits` is nil. |
| +- Only new writes are refused. A sidecar manifest or schedule written before plans were switched on keeps working; lapses and over-limit leftovers are Plan 4's. |
| +- Address-proxy routes and instance hibernation are already operator-only (`refuseMemberUpstreams`, `apiinstances.go:1874`; no member field sets `Record.Hibernate`); nothing to do. |
| +- Operators' direct-bucket `carlos ship` bypasses the console and is out of scope (operator-only). |
| +- Copy goes through copy review before it lands; strings join `capCopy` in `plancaps_copy.go`. |
| +- Touched packages only, with `-run`; CI runs the full suite; census entries in the last task. |
| + |
| +## Review Focus |
| + |
| +1. **Plans off.** Daemon ships, always-on sidecars and one-minute schedules all work exactly as today. Pinned per task. |
| +2. **A re-ship of an already-shipped daemon release** is refused under a plan too (the identical-reship short-circuit must not skip the check). Pinned in Task 1 (`TestShipRefusesDaemonEvenOnReship`). |
| +3. **Cron that fires faster than the minimum** (`*/1 * * * *`, `0,5 * * * *`) is refused, and a cron whose shortest gap meets the minimum (`*/15 * * * *` on free) is allowed. Pinned in Task 3 (`TestCronMinGap`, `TestScheduleRefusedBelowThePlanMinimum`). |
| +4. **Enabling sidecars without a `hibernate` field** on an existing always-on manifest is not a new always-on write and is allowed. Pinned in Task 2 (`TestSidecarEnableKeepsAnExistingSettingWhenOmitted`). |
| + |
| +--- |
| + |
| +### Task 1: Daemon releases |
| + |
| +**Files:** Modify `internal/console/plancaps.go` (`checkDaemon(acct *Account) error`), `internal/console/apicli.go` (`handleAPIShip`, right after the capability block is validated at ~`:2010`, before the identical-reship short-circuit at ~`:2203`); tests in `internal/console/plancaps_doors_test.go`. |
| + |
| +- [ ] **Step 1: Failing tests:** `TestShipRefusesDaemonUnderAPlan` (ship with `{"daemon": true}` capabilities: 409 `"code":"cap"`, no release written); `TestShipRefusesDaemonEvenOnReship`; `TestShipDaemonWithoutACatalogUnchanged`; `TestShipWithoutDaemonUnderAPlanUnchanged`. |
| +- [ ] **Step 2:** Run `go test ./internal/console/ -run 'ShipRefusesDaemon|ShipDaemonWithout|ShipWithoutDaemon'` → FAIL. |
| +- [ ] **Step 3:** Implement `checkDaemon` (nil when plans off; otherwise `&planCapError{msg: capMessage("cli.cap.daemon")}`) and call it when `declared != nil && declared.Daemon`. |
| +- [ ] **Step 4:** Run → PASS. **Step 5:** Commit `console: no daemon releases under a plan`. |
| + |
| +### Task 2: Always-on sidecars |
| + |
| +**Files:** Modify `plancaps.go` (`checkAlwaysOn(acct *Account) error`), `internal/console/apisidecars.go` (`handleAPISidecarEnable`, after body validation, before the manifest read); tests in `plancaps_doors_test.go`. |
| + |
| +- [ ] **Step 1: Failing tests:** `TestSidecarEnableRefusesHibernateFalseUnderAPlan` (409 cap, manifest unchanged); `TestSidecarEnableKeepsAnExistingSettingWhenOmitted` (an existing `hibernate: false` manifest, enable without the field: allowed, unchanged); `TestSidecarEnableHibernateFalseWithoutACatalogUnchanged`. |
| +- [ ] **Step 2:** Run → FAIL. **Step 3:** Refuse only when `req.Hibernate != nil && !*req.Hibernate`. **Step 4:** Run → PASS. **Step 5:** Commit `console: no always-on sidecars under a plan`. |
| + |
| +### Task 3: Schedule minimum |
| + |
| +**Files:** Create `internal/schedule/mingap.go`, `internal/schedule/mingap_test.go`; modify `plancaps.go` (`checkSchedule(acct *Account, sc schedule.Schedule) error`), `internal/console/apischedule.go` (`handleAPIScheduleSet`, right after `sc.Validate()`); tests in `plancaps_doors_test.go`. |
| + |
| +**Interfaces:** `func (s Schedule) ShortestInterval() (time.Duration, error)` in `internal/schedule`: `Every`'s duration, or for cron the smallest gap between consecutive `Next` firings over a 7-day window from a fixed start (covers hourly, daily and day-of-week patterns). |
| + |
| +- [ ] **Step 1: Failing tests:** `TestCronMinGap` (`*/1 * * * *` → 1m; `*/15 * * * *` → 15m; `0,5 * * * *` → 5m; `0 3 * * *` → 24h; `every: 10m` → 10m); `TestScheduleRefusedBelowThePlanMinimum` (free: `every: 5m` and `*/1 * * * *` → 409 cap, nothing stored; `every: 15m` and `*/15 * * * *` → stored); `TestScheduleMinimumOnAPaidPlan` (personal: `every: 1m` stored); `TestScheduleWithoutACatalogUnchanged`. |
| +- [ ] **Step 2:** Run `go test ./internal/schedule/ -run CronMinGap` and the console tests → FAIL. |
| +- [ ] **Step 3:** Implement `ShortestInterval` and `checkSchedule` (refuse when `ShortestInterval < MinScheduleSeconds`, message `cli.cap.schedule` with the minimum in minutes). |
| +- [ ] **Step 4:** Run → PASS. **Step 5:** Commit `console: schedules meet the plan's minimum interval`. |
| + |
| +### Task 4: Census and gates |
| + |
| +- [ ] Re-pin the #280 root-read overlay (`~/.cache/tmp/claude-1001/census-gen/gen.sh PROPOSED-plans-3b-never-sleep <basis>`), check the record-write census, run the full claim invariant once, merge main, push, CI green, ask for the ruling on #280. |
| + |
| +## Done when |
| + |
| +Every task's tests pass, Review Focus 1–4 are pinned, CI is green after merging current main, and Astra's whole-branch review has no open Critical or Important finding. |