spec: A5 uncharged never-started launches, A6 boot wiring retry
From the whole-branch review, round 1 (Fable P2-1, P2-2). Records the rules the fix commits 83db8660 and d293f2b8 build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/specs/2026-11-16-video-conversion-design.md+20 −0
CI passed — run details
Intent
<task-notification> <task-id>bn7qwtjbl</task-id> <tool-use-id>toolu_01Xkk44GM7j49XD2i2sW8A4t</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/8509ad95-d983-414c-9679-b3ef222618ef/tasks/bn7qwtjbl.output</output-file> <status>completed</status> <summary>Background command "Run Astra review of Task 3" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>a3df513f15409bc44</task-id> <tool-use-id>toolu_015ntenBxFvFUPYBZfS63h7j</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/8509ad95-d983-414c-9679-b3ef222618ef/tasks/a3df513f15409bc44.output</output-file> <status>completed</status> <summary>Agent "Review plan 2 Task 3 (spec + quality)" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>### Spec Compliance: ✅ with two gaps to close (no bucket-minting hole found on real AWS) - ✅ **Minted only from this walk's own successful create**: `internal/objstore/aws.go:306-322`, `internal/objstore/walk.go:283` and `:339-363`. `BucketAlreadyOwnedByYou`, us-east-1 or no-region success, a re-run, an adopt, and a provisioner without `BucketCreator` all stay unminted. - ✅ **Claim wrappers never mint**: `claimStoreProvisioner`, `claimEffectProvisioner` and `claimPurgeStore` hold the raw provisioner in a named field, so `CreateNewBucket` is not promoted. - ✅ **Verification order and checks** match §5.2 and the brief: `internal/storecfg/storecfg.go:189-215`. Empty `Account` or `Region` fails closed. - ✅ **`mediaStoreEligible`** matches the brief: `internal/console/mediastore.go:45-88`. It writes by CAS on the ETag it read, a refusal writes nothing, and `Inspect` runs outside any transaction. - ✅ **F6 and F7** applied: the console test asserts `(code, check)` rather than the door, and the three `Config` fields are in `server.go`. - ✅ **Record block is additive**, wire names as briefed, purge guard test present. - ❌ **"Only a CreateBucket that returned success earns Minted" is not held on a custom endpoint**: `internal/objstore/aws.go:321` (Important 1). - ⚠️ **Cannot verify**: that every caller holds the walk lock (Task 5), and the SDK-free link claim for plan 3 (concern 1). I ran no tests; this is from reading the diff and the surrounding walk code. ### Strengths - **Fail-closed direction throughout.** Every ambiguous outcome costs one verification and never a wrong mint. - **The us-east-1 quirk is handled at the provider**, with a table test covering all six shapes. - **`TestVerifyTable` is well built.** Each failing case also fails every later check, so removing any one of the eight checks changes the answer and fails a case. - **`LifecycleRule.Other`** stops a foreign rule with unmodelled settings from hashing equal to the platform's own. - **Apps that don't use media see no behaviour change.** - `EnsureBucket` delegates to the same code. - The healthy short-circuit still returns before step 3. - `FailNext["EnsureBucket"]` still hits the bucket step. - The only visible difference is an extra `conversion` key on newly minted records. - **Record races are covered.** The step-6 retry carries only this walk's own block and leaves a competitor's in place. No writer builds a `Record` that would drop `Conversion`: the two `&objstore.Record{}` literals are for absent records only. ### Issues **Critical:** none. **Important** 1. **`internal/objstore/aws.go:306-322`: a custom endpoint can mint.** - **What:** `created` is true for any success outside us-east-1, but `awsProvisioner` does not remember whether `CARLOS_STORE_ENDPOINT` was set (`cmd/console/main.go:1159-1163` passes it through). - **Why it matters:** an S3-compatible backend that answers 200 to an owner re-creating a bucket would mark a pre-existing bucket Minted, and a minted store is never inspected. This is the implementer's concern 2, and it is real. - **Fix:** store the endpoint (or a `realAWS` flag) on `awsProvisioner`, answer `created` only when it is empty, and add a table row. Don't rely on plan 3's boot refusals: the mint happens at grant time whether or not conversion is on. 2. **`internal/objstore/walk.go:283`: the `rec.Grant == nil` conjunct has no test.** - **What:** it is what stops this sequence: a first grant adopts the minted name and fails at `EnsureUser` (grant block written, no bucket yet); the re-run has no adopt argument, really does create the bucket, and would mint an adopted store. - **Why it matters:** the spec says an adopted name never mints. Every `TestRerunAfterCreateIsNotMinted` case creates the bucket in the first run, so `MemProvisioner` answers `created == false` regardless. The report's mutation (`minting := true`) only exercised the adopt conjunct. - **Fix:** add that exact case: adopt the minted name, `FailNext["EnsureUser"]`, re-run with `adopt == ""`, assert no `Conversion`. 3. **`internal/console/mediastore.go:64-69`: the `name` check's wiring has no console test.** - **What:** every console test uses a minted-name store, so passing `MintedName: bucket` would pass them all and let any adopted bucket verify. - **Why it matters:** §5.2's acceptance line names "a store adopted under the minted name" and adopted stores generally; only `storecfg`'s unit table covers the check. - **Fix:** one console test granting with an adopted non-minted bucket whose facts are otherwise good, asserting `store_unverified` / `name` and an unchanged record. **Minor** 4. **`internal/storecfg/storecfg.go:19` (concern 1): `storecfg` links the AWS SDK through `objstore`.** Plan 3's `TestCoreLinksNoCloudSDK` will fail. A third option beyond the implementer's two is to give `Want` two strings (`LifecycleHash`, `CORSHash`) instead of `*objstore.Uploads`. That makes `storecfg` stdlib-only and moves nothing into the root census. It changes the briefed `Want` shape, so the controller should rule before Task 9 consumes it. 5. **`internal/objstore/walk.go:356-363`: a stale `Minted` can outlive its bucket.** Teardown deletes the bucket before the record (`walk.go:898`). If it crashes in between and someone with account access makes a bucket by hand under that name, a re-grant keeps `Minted: true`. This needs deployment-account access, so it is outside the tenant threat model; a comment or an A-note in the spec is enough. 6. **`internal/console/mediastore.go:84-87` (deviation 5): a lost CAS answers 500 with no retry.** Acceptable under the walk lock. If Task 5 sees these in practice, one re-read and retry is cheap. 7. **`internal/storecfg/storecfg.go:191`: `want.MintedName == ""` is redundant** unless `Bucket` is also empty, and no test covers both empty. Harmless. **Other concerns judged** - Deviations 1, 3, 4, 6 and 7 are sound. Deviation 1 is required by the spec, per issue 2. On deviation 4, `CARLOS_STORE_REGION` is mandatory at boot, so `Provisioned.Region` is never empty. - Concern 3 (no production path mints in host-claim mode) is as designed. - Concern 4 (the lock is an unchecked precondition) is fine for this task; Task 5's caller and the F24-style guard own it. ### Assessment **Task quality:** Needs fixes. The design and code are careful and I found no way for a bucket the platform didn't create to mint or verify on real AWS. For a security gate, though, the custom-endpoint mint should be closed in code, and the two conjuncts that carry the "adopted never mints / adopted never verifies" rule need tests that fail when they are removed. All three fixes are small.</result> <usage><subagent_tokens>119454</subagent_tokens><tool_uses>9</tool_uses><duration_ms>151417</duration_ms></usage> </task-notification>
<task-notification> <task-id>bw66je3ye</task-id> <tool-use-id>toolu_01VQCYhHeCVjchLipjqrmAWw</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/8509ad95-d983-414c-9679-b3ef222618ef/tasks/bw66je3ye.output</output-file> <status>completed</status> <summary>Background command "Push Task 13 and run Astra round 1" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 66.9 g CO₂e (4,242,906 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on media-conversion, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/specs/2026-11-16-video-conversion-design.md b/docs/superpowers/specs/2026-11-16-video-conversion-design.md| index a4eaeb32d..311013f1f 100644 |
| --- a/docs/superpowers/specs/2026-11-16-video-conversion-design.md |
| +++ b/docs/superpowers/specs/2026-11-16-video-conversion-design.md |
| @@ -967,6 +967,26 @@ id is dropped. |
| (`infra/modules/region-host/main.tf:847-851`). Conversion is a second, |
| switched exception through the conversion role: a HEAD of the source and of |
| the outputs. Store destroy gains the refusal of §5.3. |
| +- **A5, a launch proved never to have run is not charged** (whole-branch |
| + review, 2026-11-19). §5.3 settled every running row with no task as |
| + `engine_lost`, charged the full bound, once an hour had passed. But a |
| + row can be dispatched with no task ever created: a console stopped |
| + between the dispatch commit and `RunTask`, or a launch error that left |
| + no task. Launch refuses to run once the grant's window has passed, and |
| + ECS keeps a stopped task's record for at least |
| + `EngineRecordRetention`. So when recovery finds no task in either the |
| + running or the stopped list, read between dispatch plus the grant |
| + window and dispatch plus `EngineRecordRetention`, no task was created: |
| + the row returns to `queued`, uncharged, and its place is freed. A row |
| + first seen missing after that window is still `engine_lost`. Releasing |
| + a launch that never started no longer depends on the pass still |
| + running. |
| +- **A6, a cloud failure at boot is retried** (whole-branch review, |
| + 2026-11-19). When the console's settings are valid but the cloud does |
| + not answer at boot, the console starts with conversion off and retries |
| + the wiring in the background, from 10 seconds doubling to 10 minutes, |
| + then starts the pass as a normal boot would. Rows already running are |
| + tracked again without a restart. Settings errors still stop the boot. |
| ## 12. Decisions for Paul |