feat: index-ceiling CLI parity + zero-size reason codes#282
feat: index-ceiling CLI parity + zero-size reason codes#282Nelson Spence (Fieldnote-Echo) wants to merge 8 commits into
Conversation
Expose --max-index-artifact-bytes on the ordvec-manifest CLI LimitArgs, wiring it to ResourceLimits::max_index_artifact_bytes so the opt-in primary-artifact read ceiling reaches feature parity with the existing --max-auxiliary-artifact-bytes flag. Close the deferred CIPHER-04 reason-code symmetry: validate_manifest_shape now rejects a zero manifest-declared artifact.file_size_bytes (artifact_file_size_zero) and validate_auxiliary_artifact_shape rejects zero-size declarations on required auxiliary artifacts (auxiliary_artifact_file_size_zero), mirroring the calibration and encoder-distortion *_file_size_zero checks. Optional artifacts keep the established zero-size absent-placeholder convention.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
PR Summary by QodoAdd --max-index-artifact-bytes CLI flag and reject zero-size size declarations
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit b4b6a64 |
Bot-review remediation (Qodo, #282): --max-index-artifact-bytes wired into ResourceLimits but the create path bounded the primary hash by the probed size alone — the opt-in ceiling was ineffective for create, unlike auxiliary artifacts. Create now mirrors verify: declared/observed size min explicit ceiling.
|
Qodo triage: create-path index ceiling — fixed in |
Thanks for the heads-up — that matches the current state.
If you want, I can still sanity-check the updated create/verify limit behavior against the diff. |
Deferred items from #277's audit triage:
--max-index-artifact-bytesCLI flag (mirrors the auxiliary sibling) and CIPHER-04 zero-size shape checks (artifact_file_size_zero/auxiliary_artifact_file_size_zero, optional-absent placeholder respected, README limit-codes table updated). Fleet-authored, reviewed APPROVE; base merged forward to include the FIFO/EINTR fixes. Stacks on #277.