carlos / platform Public

spec: Astra round 5 findings on video conversion, unedited

R4-1, R4-3, R4-4 closed. One P1: the reaper's schedule does not bound execution time (R4-2 family, stopping rule 2). Goes to Paul.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 1a75ffb1c45bc6cec034f378eaa280880a225297 parent 15e2bf6
1 file changed, +28 −0
  • docs/superpowers/specs/CODEX-FINDINGS-VIDEO-R5.md +28 −0

CI passed — run details

Intent

Human

I guess we would / could also be getting audio-streaming as part of this work?

Human

<task-notification> <task-id>bke8ptiqs</task-id> <tool-use-id>toolu_016xpy8pnJ5oDwiM3SPTXec9</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/8509ad95-d983-414c-9679-b3ef222618ef/tasks/bke8ptiqs.output</output-file> <status>completed</status> <summary>Background command "Run Astra round 5 (diff only) review" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 12.2 g CO₂e (1,338,890 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-video-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/CODEX-FINDINGS-VIDEO-R5.md b/docs/superpowers/specs/CODEX-FINDINGS-VIDEO-R5.md
new file mode 100644
index 000000000..6a33b7272
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-FINDINGS-VIDEO-R5.md
@@ -0,0 +1,28 @@
+Reviewed only `0d8eb009..0e7e991d` and necessary surrounding text. The worktree’s spec matches the reviewed revision. No files were modified; no live AWS tests were run.
+
+**Findings: 1 P1, 0 P2.**
+
+1. **P1 — §§5.3, 5.5, 7.2: the reaper does not establish the claimed 17-minute bound.**
+
+ **Invariant / fault family: hostile execution has an enforced duration bound independent of the compromised container and console — R4-2.**
+
+ [Lines 236–243](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-video-conversion/docs/superpowers/specs/2026-11-16-video-conversion-design.md:236) derive a maximum execution time from a one-minute schedule and 30-second stop grace. That omits scheduler delivery delay, function execution delay, and failed or throttled stop requests.
+
+ EventBridge Scheduler permits invocation anywhere within the scheduled minute. A permitted timing sequence is a check at task age **14:59**, followed by the next check at **16:58**; adding the specified stop grace reaches **17:28**, before API latency. This is an inference from AWS’s documented timing contract. [https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html](https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html)
+
+ Delays can be substantially longer: asynchronous Lambda invocations can be throttled and retried for hours. Moving the reaper outside the console removes the console dependency but does not provide a maximum termination time. [https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-error-handling.html](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-error-handling.html)
+
+ Consequently, a hostile task can exceed its reservation while the console is down. If it later stops and its record expires before recovery, the [unknown transition](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-video-conversion/docs/superpowers/specs/2026-11-16-video-conversion-design.md:214) charges only 17 minutes. The activation drill proves one successful stop, not the claimed bound.
+
+ **Concrete disposition:** keep dispatch disabled until a trusted runtime mechanism enforces the deadline independently of scheduled delivery and remains effective after container compromise. Otherwise cut unattended Fargate conversion from v1. Increasing the reservation alone does not repair this invariant.
+
+| R4 finding | Disposition |
+|---|---|
+| R4-1: endpoint policies | Closed at design level. ECR and Logs admit only the execution role, with repository/log-group scope. The S3 layer-bucket exception permits only reads; `GetAuthorizationToken` retains principal restriction despite lacking repository scope. |
+| R4-2: deadline and charging | **Still open.** Reaper authority is restricted to the dedicated engine cluster, but its timing does not establish the bound. |
+| R4-3: missing-ARN recovery | Closed at design level: both desired statuses are searched, described `startedBy` values are matched, the ARN is saved, and launch is not replayed. |
+| R4-4: launch rejection | Closed at design level: definitive rejection with no task created releases capacity uncharged; ambiguous errors retain the recovery path. |
+
+R4 and R5 now contain findings against the same duration-bound invariant. Stopping rule 2 applies: stop iterative fixes and choose refusal, a feature cut, or one independently enforced invariant. I recommend refusal pending that enforcement; no further review round is proposed.
+
+**Verdict: revise.**
\ No newline at end of file