Managed fleets design: settle the builder check's four questions (#457)
Lost boxes recover on surviving boxes from the fleet bucket; adding a box within the 30-day retention brings a fleet back; unpaid renewal and plan lapse follow the existing lapse rules; peering needs member routes too, printed by the CLI with no access to the member's account.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+39
−5
docs/superpowers/specs/2026-10-28-managed-fleets-design.md+28 −5docs/superpowers/specs/CODEX-BUILDER-CHECK-MANAGED-FLEETS.md+11 −0
CI passed — run details
diff --git a/docs/superpowers/specs/2026-10-28-managed-fleets-design.md b/docs/superpowers/specs/2026-10-28-managed-fleets-design.md| index 4989b061b..ccd16fa67 100644 |
| --- a/docs/superpowers/specs/2026-10-28-managed-fleets-design.md |
| +++ b/docs/superpowers/specs/2026-10-28-managed-fleets-design.md |
| @@ -1,6 +1,7 @@ |
| # Managed fleets: boxes a member rents from the deployment's operator |
| -Status: draft for Paul's read, 2026-10-28. Discussion: amadan #457. |
| +Status: draft for Paul's read, 2026-10-30, after an Astra builder check |
| +(findings in `CODEX-BUILDER-CHECK-MANAGED-FLEETS.md`). Discussion: amadan #457. |
| Branch: `design-managed-fleets-457`. |
| ## 1. Intent |
| @@ -270,7 +271,17 @@ failed. No AWS console, SSH or SSM for the member. |
| - Termination is checked against tags. The fleet bucket is kept while |
| any box still uses it. After the last box goes it is kept 30 days, |
| then deleted, and `carlos fleets show` says when. (Carried from the |
| - 2026-08-12 design.) |
| + 2026-08-12 design.) Within those 30 days, adding a box to the fleet |
| + brings it back on the same bucket and cancels the deletion; that is |
| + the only recovery path, and no separate export command is built. (My |
| + call.) |
| +- **A box that is lost for good** (terminated by the cloud, failed |
| + hardware) must not lose its instances. They come back on the fleet's |
| + surviving boxes from the fleet bucket, and the member restores |
| + capacity by adding a box. No automatic replacement. 1b's placement |
| + rule must deliver this; if instances are fixed to one box, it needs a |
| + reassignment path for a box the console has confirmed gone. (My |
| + call; builder check Q2.) |
| - On carloku, a removed box keeps running until the end of its paid |
| month, then is terminated (phase 3). On self-hosted, at once once |
| drained. |
| @@ -300,15 +311,27 @@ its own role, beside the plan subscription. |
| - Box compute is not metered on top. Managed boxes must not accrue on |
| `fleet_box_hours_*` (`internal/usage/usage.go:24-25`). |
| - Bandwidth and storage stay under the member's plan and packs. |
| +- Unpaid renewal: while Stripe retries, the boxes run (past due counts |
| + as paid today). When the box subscription ends unpaid, the boxes get |
| + the plans spec's 7-day grace for paid-only features, are then |
| + terminated, and the fleet bucket follows the 30-day retention above. |
| + (My call, matching the existing lapse rules.) |
| +- Plan lapse while boxes are paid: fleets are paid-only, so the box |
| + subscription is set not to renew. The boxes run to the end of the |
| + month already paid, then follow the unpaid path. No refunds. (My |
| + call.) |
| **Reaching the member's own databases.** On carloku, the member's |
| databases are in their AWS account, not carloku's. Each managed fleet |
| gets its own VPC in carloku's account with an address range the member |
| chooses, sealed off from other fleets and from the platform's own boxes |
| except the tunnel to the router. It is peered with the member's VPC; |
| -the member accepts the peering request and opens their security groups. |
| -That one AWS-console step is the only thing the member does outside |
| -CARLOS, and the CLI tells them exactly what to accept. This is phase 3, |
| +the member accepts the peering request, adds a route to the fleet's |
| +range in their route tables, and opens their security groups. AWS |
| +needs routes on both sides of a peering. CARLOS takes no access to the |
| +member's account: it does its own side and the CLI prints the member's |
| +three steps exactly, with the values filled in, and checks the |
| +connection afterwards. (My call; builder check Q4.) This is phase 3, |
| not phase 2: on a self-hosted deployment the boxes already launch in |
| the operator's network. |
diff --git a/docs/superpowers/specs/CODEX-BUILDER-CHECK-MANAGED-FLEETS.md b/docs/superpowers/specs/CODEX-BUILDER-CHECK-MANAGED-FLEETS.md| new file mode 100644 |
| index 000000000..bdecfbfa8 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-BUILDER-CHECK-MANAGED-FLEETS.md |
| @@ -0,0 +1,11 @@ |
| +1. **What happens when a monthly box renewal fails—or the annual plan lapses while boxes remain paid?** |
| + Phase 3 defines failed purchases and voluntary removal, but not these cases. The existing plans spec allows payment retries, then grace and eventual deletion. Applying that unchanged could leave unpaid machines running or disable paid capacity. The answer determines subscription coordination, shutdown deadlines and data retention. |
| + |
| +2. **Must v1 support member-initiated recovery after a box is permanently lost?** |
| + Automatic replacement is excluded, but manual recovery is unspecified. With console-assigned placement, adding a replacement box does not necessarily recover existing instances; current fleet moves are refused. The answer determines whether the plan needs safe reassignment and restoration of existing instances, beyond the explicitly discretionary draining of healthy boxes. |
| + |
| +3. **What can a member do with the fleet’s data during the 30-day retention window after its last box goes?** |
| + Can they restore the fleet by adding boxes, export the data through CARLOS, or only see the deletion date? If they restore it, does deletion stop? Keeping a bucket alone does not provide recovery through the CLI. The answer changes the removal lifecycle, recovery commands and acceptance checks. |
| + |
| +4. **May the customer configure return routes when connecting their VPC, or must CARLOS do that through delegated access?** |
| + Phase 3 limits customer setup to accepting peering and opening security groups. AWS also requires routes on both sides of the connection. The answer changes the promised onboarding flow and whether the adapter needs authority in the customer’s account. See [https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-routing.html](https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-routing.html). |
| \ No newline at end of file |