oficina / equipo Public

plan: Task 4 builds the BootstrapV2 payload and proves snapshot delivery

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 17de8d2e904d265b1db41062e68f0e5db5c74720 parent 1fc906c
1 file changed, +3 −1
  • docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md +3 −1
diff --git a/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md b/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md
index 0eda77bf..49cfe468 100644
--- a/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md
+++ b/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md
@@ -170,7 +170,9 @@ func (*Client) Admission(ctx context.Context, attempt string) (hostedwire.Admiss
**Interfaces:** routes `GET /v1/proxy/feed`, `POST /v1/proxy/redeem`, `POST /v1/proxy/renew` and `POST /v1/proxy/cert-report` (handled in Task 13), role `proxy` only. `CertLifetime = 15 * time.Minute`; `FeedLifetime = 5 * time.Minute`. A certificate's `NotAfter` is the earlier of 15 minutes and the job's deadline. It carries one URI SAN `equipo-launch://<launch_id>/<attempt_id>/<vm_ref>/<epoch>` and the VM's ECDSA P-256 key from the CSR. Proxy codes are stored as SHA-256 only, single use, valid 2 minutes from the moment the controller first sees the VM `running`, bound to the launch and the VM reference. Renewal is allowed once per serial, for the same launch, VM and epoch, before `NotAfter`; it revokes the old serial. Stop or epoch change revokes every serial of the launch. The controller records each proxy key's last feed request; `proxy_last_feed_seconds{proxy}` is a metric, and an alert `proxy_silent` fires once when a configured proxy has not polled for 3 minutes.
-- [ ] **Red:** `TestRedeemSingleUse`, `TestRedeemBindsVMRef` (the right code from another VM: refused), `TestRedeemExpires` (2 min 1 s), `TestCertCappedAtDeadline`, `TestRenewOncePerSerial` (a replayed renewal is refused), `TestRenewNeedsCurrentEpoch`, `TestStopRevokesSerials`, `TestFeedSignedAndListsOnlyLive`, `TestProxyRoleOnlyOnProxyRoutes` (a proxy key on `/v1/jobs` and an instance key on `/v1/proxy/feed`: 403), `TestProxySilentAlertOnce`.
+This task also moves the launch payload to `hostedwire.BootstrapV2`: `Services` from the intent's `services_json`, the proxy fields from the manifest, the proxy code minted here; `Replay` re-sends exactly that saved payload.
+
+- [ ] **Red:** `TestReplaySendsSnapshotServices` (save an intent, change the manifest, replay: the provider receives the original services in the bootstrap; mutation: build outgoing services from current config). `TestRedeemSingleUse`, `TestRedeemBindsVMRef` (the right code from another VM: refused), `TestRedeemExpires` (2 min 1 s), `TestCertCappedAtDeadline`, `TestRenewOncePerSerial` (a replayed renewal is refused), `TestRenewNeedsCurrentEpoch`, `TestStopRevokesSerials`, `TestFeedSignedAndListsOnlyLive`, `TestProxyRoleOnlyOnProxyRoutes` (a proxy key on `/v1/jobs` and an instance key on `/v1/proxy/feed`: 403), `TestProxySilentAlertOnce`.
- [ ] **Green:** `go test ./internal/hostedctl/... -run 'TestRedeem|TestCertCapped|TestRenew|TestStopRevokes|TestFeed|TestProxyRole|TestProxySilent' -count=1`.
- [ ] **Mutations:** skip the VM reference check; allow a second renewal of a serial; keep revoked serials out of the feed.
- [ ] **Commit:** `hostedctl: proxy client certificates and the signed launch feed`.