oficina / alta Public

Spec: Paul rules the runner host (Lambda MicroVMs, per the MicroVM session); §4.4 lists what that changes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev bcef9bc1d91f1a8879a78cc39f3fe59ded9b5423 parent bc74724
1 file changed, +42 −5
  • docs/superpowers/specs/2026-11-29-team-bundle-design.md +42 −5

CI passed — run details

CI log
=== vet ===
go vet ./...
=== fmt ===
=== test ===
CGO_ENABLED=0 go test ./...
ok  	amadan.net/oficina/alta/adopt	22.945s
ok  	amadan.net/oficina/alta/carlosop	0.056s
?   	amadan.net/oficina/alta/carlosop/fakecarlos	[no test files]
ok  	amadan.net/oficina/alta/cmd/alta	0.169s
ok  	amadan.net/oficina/alta/cmd/alta-adopt	37.049s
ok  	amadan.net/oficina/alta/console	0.003s
?   	amadan.net/oficina/alta/console/fakeconsole	[no test files]
ok  	amadan.net/oficina/alta/homeop	0.004s
ok  	amadan.net/oficina/alta/homeop/fakehome	0.045s
ok  	amadan.net/oficina/alta/internal/web	0.115s
ok  	amadan.net/oficina/alta/provision	12.089s
=== compat ===
cd homecompat && go vet ./... && CGO_ENABLED=0 go test ./...
ok  	amadan.net/oficina/home/altacompat	0.658s
diff --git a/docs/superpowers/specs/2026-11-29-team-bundle-design.md b/docs/superpowers/specs/2026-11-29-team-bundle-design.md
index 7f7ab9c..8ba10c3 100644
--- a/docs/superpowers/specs/2026-11-29-team-bundle-design.md
+++ b/docs/superpowers/specs/2026-11-29-team-bundle-design.md
@@ -6,6 +6,11 @@ Memoria origin/main and CARLOS platform origin/main 4799995f7. Not
reviewed. Nothing is built. Where a fact was not read from code or a
spec it is marked **unverified**.
+**2026-11-30:** Paul ruled question 8: runner VMs are to run on **AWS Lambda
+MicroVMs**, if the separate session already working on MicroVMs gets them
+working. §4.4 records what this changes and what that session has to
+answer first. Questions 1–7 are still open.
+
## 0. The problem and the shape of the answer
Paul wants to set up a team, for example `carlos`, `tito` or
@@ -326,6 +331,35 @@ team still exists.
- **No hosted runner; the owner enrols their own machine.** This is
today's model, and it remains the fallback for any team.
+### 4.4 The host: Lambda MicroVMs (Paul, 2026-11-30)
+
+Another session owns the MicroVM work. This section does not design the
+runner's MicroVM shape: it lists what the design above assumed, set
+against what AWS documents. The other session's findings decide it.
+Sources: the Lambda developer guide pages `microvms-launching`,
+`microvms-images`, `microvms-images-snapshots` and `microvms-networking`,
+read 2026-11-30.
+
+| §4.2 assumed | What AWS documents | Consequence |
+|---|---|---|
+| A VM that lives for days | At most 8 hours, running and suspended time together (`maximum-duration-in-seconds` ≤ 28,800); terminated at the limit | The runner's state (enrolment, checkouts, harness logins) must live outside the VM, or the runner must be re-created and re-enrolled every few hours. One shape is a small long-lived runner that starts a MicroVM per step; it is the other session's call. |
+| linux/amd64 | arm64 by default; x86_64 from base image version 3 | The amd64-only runner build need not block. |
+| bubblewrap inside the VM | Not documented. `additionalOsCapabilities: ["ALL"]` permits mounts and network namespaces; user namespaces are not mentioned | A probe is needed. If bwrap cannot run nested, the MicroVM boundary may stand in for it for a step, but not between owners sharing one VM (§5 rule 6). |
+| No inbound ports | Each VM has its own HTTPS endpoint, behind a JWE token (`create-microvm-auth-token`) that expires | It is acceptable: the endpoint is closed without a token. |
+| Always on while working | It suspends after `maxIdleDurationSeconds` without **inbound** endpoint traffic. Outbound connections, like the runner's WebSocket to Equipo, do not count | Auto-suspend must be off, or the runner must be woken from outside. |
+| Ireland | eu-west-1 is neither confirmed nor excluded | This needs checking. |
+| Cost per team | Per vCPU-second and GB-second while running; nothing while suspended beyond snapshot storage | Cheaper than an always-on VM if work is bursty. Not estimated. |
+| Quotas | One quota on total memory across running and suspended VMs per region; no documented VM count | This needs checking against 3–4 teams. |
+
+**For the other session to answer before slice 4:**
+- whether bwrap or another inner sandbox runs inside;
+- whether eu-west-1 is available;
+- where the runner's durable state lives;
+- how a VM is kept awake or woken for a step;
+- which AWS account it runs in.
+
+Until then, `alta-runner` is specified only at the interface: create, enrol, install the house connection, and tear down. §5's isolation rules stand unchanged, with "VM" read as "MicroVM and everything it persists to".
+
## 5. Isolation between teams (the central question)
What a team's runner VM holds:
@@ -398,9 +432,9 @@ The design's rules:
is designed.** Is that acceptable for the family team? *Recommend:
make each adult an owner of `campbells`* rather than design teammate
execution now.
-8. **Where VMs run.** *No recommendation:* the provider and region are
- yours to name. The CARLOS AWS account is one candidate. Each needs
- your scoped approval for the resources and cost.
+8. **Where VMs run.** **Ruled 2026-11-30:** on Lambda MicroVMs, if the
+ MicroVM session gets them working (§4.4). The account and region
+ still need your scoped approval for the resources and cost.
## 7. Slices, in build order
@@ -418,8 +452,9 @@ hub CI green, and Paul's go before anything is deployed.
switch. Gate: Astra security review, plus a probe that the person's
subscription is preferred once healthy.
4. **`alta-runner` (Alta repo, operator command).** Create, enrol,
- install and tear down one VM. Gate: Paul's scoped approval for the
- cloud resources; a canary VM created, enrolled, used for one task and
+ install and tear down one team's runner on Lambda MicroVMs. It waits
+ for the MicroVM session's answers (§4.4). Gate: Paul's scoped approval
+ for the cloud resources; a canary VM created, enrolled, used for one task and
destroyed, with teardown proven (§5 rule 7).
5. **Paul's three teams.** Run Alta with Equipo and Base, then
`alta-runner`, for `carlos`, `tito` and `campbells`. Gate: each
@@ -442,6 +477,8 @@ deployed). Slice 4 can be built alongside them.
- **Provider terms for hosted subscriptions.** Whether Claude, ChatGPT
and the other consumer subscriptions allow a person's login on a
machine we operate for them has not been read.
+- **Lambda MicroVMs as the runner host.** See §4.4's list; owned by the
+ MicroVM session.
- **CARLOS as a runner host.** Bubblewrap inside isolated exec or
gVisor, outbound networking under gVisor, persistent homes and an
arm64 runner build are all unverified or not built.