Repository navigation
Implement #4712 budget remainder: schema, enqueue stamp, impossible-fit, dispatch emit - #10837
Conversation
…it surfacing, dispatch emit Core claim/park budget admission merged in PR #10731 (task 17446). This remainder closes the verified gaps (lane code-j note, #4712): - validate.rs: accept + validate optional required_budget_minutes (positive integer, packet and payload levels); task_from_packet selects packet > payload and mirrors into the payload copy (#10648 shape). No default from timebox_minutes at enqueue: stamping a default would make every new task requirement-bearing while deployed helpers predate --remaining-budget-minutes. - turso_queue.rs: enqueue INSERTs (main + triage follow-on) stamp the queryable required_budget_minutes column from the effective value (NULL when undeclared = legacy claim behavior). - turso_queue.rs + client.rs: empty default-pick claims carry budget_skipped + max_required_budget_minutes (scope applies), printed on the no-claim marker with a stderr note — the design's impossible-fit surfacing instead of silent skipping. - repo-task/v1 schema: optional required_budget_minutes property. - dispatch: optional required_budget_minutes request field through parseTaskRequest -> buildPacket -> payload + self-check; emitted only when provided (payload rides wholesale to the PG RPC). Tests: 347 Rust lib tests pass (4 new), dispatch packet+validate 61 pass; full dispatch suite 223 pass + 2 pre-existing network-dependent github.test.ts failures (also fail on main).
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 19 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Closes the remainder delta verified by lane code-j on #4712 (code-j note 2026-11-16): core budget-aware claiming merged in PR #10731; this lands the schema, enqueue column stamp, impossible-fit surfacing, and dispatch emit.
Closes #4712.
Changes:
validate.rs: optionalrequired_budget_minutesvalidation (packet + payload) andtask_from_packetselection/mirror. No timebox default at enqueue (deployment-lag safety, documented inline).turso_queue.rs: enqueue INSERTs stamp the queryable column; empty default-pick claims carrybudget_skipped+max_required_budget_minutes.client.rs: no-claim marker surfaces the summary + stderr note.repo-task/v1.schema.json: optional property.required_budget_minutesrequest field through to payload + self-check.Tests: 347 Rust lib pass (4 new); dispatch packet+validate 61 pass; full dispatch 223 pass with 2 pre-existing network failures (verified on main).
Task 6693, lane code-f.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.