Skip to content

Report oversized native records with accurate resource-limit recovery - #46

Merged
irl-dan merged 8 commits into
mainfrom
codex/imp-089-record-limits
Oct 6, 2026
Merged

irl-dan merged 8 commits into
mainfrom
codex/imp-089-record-limits

Conversation

@irl-dan

@irl-dan irl-dan commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

A native JSONL record over the fixed 1 MiB framing limit was reported as malformed protocol with advice to reinstall a supported harness. The runner had stopped at a resource boundary before establishing the record's JSON validity.

Both Bun and Rust now report HARNESS_FAILED/22 with the closed record-byte-limit diagnostic and artifact/summary recovery advice. Doctor JSON, native dry runs and receipts expose maxRecordBytes separately from aggregate/capture limits. Native budget objects require that fixed cap in the current schema; non-native reports may omit the budget object. The cap is unchanged, and raising --native-output-bytes does not raise it. No automatic retry or lifecycle weakening is introduced.

Shared controls accept exactly 1 MiB and reject one byte over with normal and larger aggregate budgets, preserving incomplete terminal state and cleanup. Mandatory compiled Rust integration controls run in ordinary Unix admission. Positive and missing-cap schema controls prevent either product from silently losing the diagnostic.

Validation: independent review approved final head 0461be34c01e137d0a6e7bbe216eb531ecc48072. Full Bun production validation passed 746 tests with three existing skips; focused Rust tests, strict Clippy, typecheck, schemas and architecture passed. Final combined budget/record controls passed eight tests with 176 assertions against Bun source, a fresh compiled Bun CLI and a Rust binary rebuilt from identical production source. Final head0461be34 passes all 15 checks. Full Linux/macOS logs confirm mandatory compiled Rust record controls and Bun boundary cases executed. IMP-089 retains earlier PATH/disk failures, the artifact-mismatch experiment and corrected receipts. The attempted full local combined Rust suite exhausted disk; it is not claimed passing.

Addresses #23. No new Python, provider calls, release or deployment. This does not add a larger-record setting or claim to reproduce the unavailable live payload.

@irl-dan
irl-dan merged commit b992bf9 into main Oct 6, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant