fix(quota): bound CLI todo diagnostics#2510
Conversation
|
Resolved the succession-warning identity gap found in review. Changed surfaces
Validation
This coverage is sufficient because the change is limited to the CLI-only |
…dget-20260724 # Conflicts: # tests/control_plane/test_cli_output_budget.py
|
Updated after semantic review of the compact hot path. Changed surfaces:
Readback:
Validation:
Coverage is sufficient for this PR because it proves both budget behavior and the identities needed for selection/repair while leaving repeated diagnostic lanes on the explicit detail path. |
Follow-up qualification: default Markdown identity parity
The current head therefore preserves bounded identity in both formats without duplicating the hot path:
The first draft added duplicate selected/executable lines and the base/head output differential rejected the growth. The revised renderer reuses existing lines instead of raising the budget. Validation on head
This covers the changed quota projection, Markdown renderer, output-budget contract, and default/cold-path parity without expanding the output allowance. |
Residual projection qualificationExact-head measurement against the live public-safe The remaining duplication was concrete:
Head
Readback against the same state:
Validation:
|
Summary
quota should-runCLI projection after the full decision is computed--include-todo-summary-detailQualification
loopx-metareadback at headfc915448: full detail 102,868 bytes; compact default 68,048 bytes (33.9% reduction)unclaimed_open_countplus boundedunclaimed_priority_open_items; Markdown renders their todo idsinteraction_contract,scheduler_hint, andselected_todopytest: 12 passedloopx canary premerge --from-git-diff: passed, 17/17 selected checks, no failures or manual holdsThis is a bounded hot-path reduction. Repeated whole-backlog, current-agent duplicate, other-agent diagnostic, handoff, deferred, and completed-item lists remain on the explicit detail path; their decision-relevant counts stay hot.