docs: 2b-2 ledger: root-runner ruling and Task 1 rulings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+33
−0
docs/superpowers/notes/managed-fleets-2b2-ledger.md+33 −0
CI passed — run details
diff --git a/docs/superpowers/notes/managed-fleets-2b2-ledger.md b/docs/superpowers/notes/managed-fleets-2b2-ledger.md| index d571e74ec..c2291f835 100644 |
| --- a/docs/superpowers/notes/managed-fleets-2b2-ledger.md |
| +++ b/docs/superpowers/notes/managed-fleets-2b2-ledger.md |
| @@ -38,4 +38,37 @@ Task 7 card as read-only preflight (`aws ec2 get-ebs-default-kms-key-id`, descri |
| `run-instances --dry-run` listed as the first post-approval step — cost if wrong: the drill's first launch fails |
| UnauthorizedOperation and is cleaned up by the deadline. |
| +## Pre-build rulings |
| + |
| +Ruling: R1 Task 3 root runner (agent manager for Paul, 2026-11-09): no amadan CI runner has real root + systemd PID 1; |
| +the root witnesses (`TestManagedCloudInitRootOwnership`, `TestManagedRootAdmissionForgery`, |
| +`TestManagedControlCommitStrict`) run on the existing throwaway arm64 EC2 root-runner in dev (profile kass, |
| +root-runner.py, always terminates; leftover check on tag purpose=plan14-root-runner before and after; never flagship). |
| +Plan amendment to Task 3 Step 6: the tests follow the root-runner contract (`//go:build linux && rootrunner`, still |
| +FAIL rather than skip when run without CARLOS_MANAGED_ROOT_TEST=1/capability); no `.amadan/ci.d/40-managed-root-contract` |
| +job is added (on the bubblewrap runner it could only ever fail); the controller runs root-runner.py at the reviewed tip, |
| +requires each `--- PASS: <name> (` line in the fetched log, and records run ID + tip here before merge; any later change |
| +to the tested files re-runs it — cost if wrong: root witnesses are a controller step rather than an automatic gate, so a |
| +post-merge regression in those files is caught only at the next root-runner run. |
| +Ruling: R2 the stale empty `.git/packed-refs.lock` (08:15:40) stays (agent manager clears stale locks itself); the |
| +amadan ledger post-commit hook error it causes is noise; pushes are retried — cost if wrong: none. |
| + |
| ## Tasks |
| +Task 1: implemented 6b7b0f81 (DONE; 7/7 mutations caught; census card "nothing to approve"; claim-routes, authority |
| +census and a 2b-2 record-write layer updated; root-runner test under `linux && rootrunner`, not run). COPY: one new |
| +string `invalid seed request` (managedseed.go:22). |
| +Ruling: T1-D1 the script starts carlos-managed-boot.service with `--no-block` — a blocking start would outlive the |
| +900 s bound while Task 2 retries the trade and misreport bootstrap_failed — cost if wrong: the script's exit no longer |
| +reflects the boot unit's outcome (breadcrumbs from the unit carry it). |
| +Ruling: T1-D2 apt runs only against a script-written HTTPS deb.debian.org source list (egress is 443 only); drill card |
| +preflight confirms the image ships ca-certificates and the mirror is reachable over 443 — cost if wrong: first apt |
| +update fails and the box ends at bootstrap_failed. |
| +Ruling: T1-D3 `DecodeLaunchInput` accepts only canonical json.Marshal bytes (stricter than asked) — cost if wrong: |
| +Task 2 fixtures must marshal exactly; none in production (the renderer writes the canonical bytes). |
| +Ruling: T1-D4 every script write is atomic and idempotent so a cloud-init rerun after reboot rewrites the same files — |
| +cost if wrong: none. |
| +Ruling: T1-Q1 the image's unattended-upgrades/apt-daily timers are left as shipped; with 443-only egress and the |
| +image's own sources they fail closed (no automatic package updates on managed boxes in 2b-2). Carried to 2c: system |
| +sources on the HTTPS mirror, an unattended-upgrades policy and needrestart behaviour (cf. #359). The drill card records |
| +the effective sources and whether needrestart is installed — cost if wrong: drill boxes go without OS security updates |
| +for the drill's ≤4 h. |