2 files changed,
+22
−0
docs/superpowers/notes/instance-usage-copy.md
+4 −0
docs/superpowers/plans/CODEX-FINDINGS-instance-usage-plan-R3.md
+18 −0
| index ae54385ed..cb8dd7322 100644 |
| --- a/docs/superpowers/notes/instance-usage-copy.md |
| +++ b/docs/superpowers/notes/instance-usage-copy.md |
| @@ -106,3 +106,7 @@ Counting by instance starts at the beginning of the month after the |
| console turns it on; earlier months are refused. |
| ``` |
| |
| + |
| +## I. Operator jobs page (added after plan round 3) |
| + |
| +Job label for `InstanceUsageRead`: `Instance usage reads` |
| new file mode 100644 |
| index 000000000..3348fc372 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CODEX-FINDINGS-instance-usage-plan-R3.md |
| @@ -0,0 +1,18 @@ |
| +- **R2-1 P1 — Resolved:** Task 7 specifies an 8 MiB bounded reader, explicit overflow errors, and large-response tests. |
| +- **R2-2 P2 — Resolved:** Task 6 now records read failures through a job context and tests `JobFailed`. That fix introduces the integration failure below. |
| + |
| +1. **P1 — Task 6: the new read job fails the existing job-registration test.** |
| + |
| + [Plan:529](/home/paulca/.paseo/worktrees/03ai90xp/instance-usage/docs/superpowers/plans/2026-11-29-instance-usage.md:529) requires `s.jobs.Run(ctx, "InstanceUsageRead", read)`. However, `TestEveryWorkerReportsItsRuns` collects every `.jobs.Run` name and requires exact equality with registered background workers ([jobs_test.go:428](/home/paulca/.paseo/worktrees/03ai90xp/instance-usage/internal/console/jobs_test.go:428), [equality check:470](/home/paulca/.paseo/worktrees/03ai90xp/instance-usage/internal/console/jobs_test.go:470)). `InstanceUsageRead` is absent from [claim_workers.go:7](/home/paulca/.paseo/worktrees/03ai90xp/instance-usage/internal/console/claim_workers.go:7). |
| + |
| + **Failure scenario:** implementing the prescribed call makes that test fail, even when all new usage tests pass. A read-only comparison confirmed that the current sets match and the planned call adds exactly one unmatched name. The cited precedent, [apidoorkeys.go:357](/home/paulca/.paseo/worktrees/03ai90xp/instance-usage/internal/console/apidoorkeys.go:357), is a registered recurring worker. |
| + |
| + **Fix:** extend Task 6 to declare request-driven jobs explicitly. Check reported names against the union of workers and request-driven jobs, preserving the worker coverage assertion. Add an approved display label and tests for this registration. |
| + |
| + **Fault family:** job-registration completeness: the existing guard assumes every recorded job is a background worker. |
| + |
| +There is one P1 and one cause. Refusing usage requests upfront would not remove this static failure. Cutting failed-job reporting would remove the call but violate spec §8. An explicit job classification and guard is the recommended fix. This is the last budgeted round; another requires Paul’s approval. |
| + |
| +Reviewed commit `70e5076f372301938421580c4257cba915c3e326`. This review edited no files and ran no test suites. |
| + |
| +**NOT READY** |
| \ No newline at end of file |