Repository navigation
perf(entropy): separate physical reads from report resolution - #6950
Conversation
Codex Review SummaryThis 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. |
|
Source-test failure attribution for exact head CI run 40063693805 tested merge Both failures are in
A clean detached checkout of that exact main reproduced 2 failed / 3 passed in the whole file, with identical test names and first assertion messages: expected Executed on the exact-main checkout: node scripts/run-exact-tests.mjs run src/native/AppleDispatchMetadata.failure.test.ts \
--maxWorkers=1 --reporter=json --outputFile=/tmp/rea-perf-byte-entropy-20261024/ci-exact-main-source.jsonThe one-CPU/3 GiB-early/4 GiB-hard guarded control exited 1 for those expected failures, with verified cleanup and no guard stop/OOM. Raw source log, JSON control, resource receipt and name/message comparison are retained in The other CI shards are still running; their outcome is not yet claimed. No unrelated native-dispatch repair is included in this entropy optimization. The requester authorized bypass of demonstrated baseline failures and waived repeated human declarations; the existing human-review attestations remain unchecked. |
|
Final qualification for exact head
I read all eight archived shard logs. The only additional failing test leaves are:
The full two-file main control ran 66 tests: 62 passed and 4 failed, including those two cases plus two additional 30-second full-discovery negotiation timeouts in the one-CPU local run. Those extra timeouts are retained and are not attributed to CI. A targeted exact-main rerun reproduced both observed failing cases again (2 failed, 64 not selected). Source and both built controls exited 1 for their recorded failures; owned cleanup and memory/PID-limit observations verified, no guard stop/OOM. The full-control family peaked at 2.07 GiB. All four observed CI failing identities therefore reproduce on the exact CI main; three available assertion first lines match, and one canceled message remains unknown. This PR changes none of these native/JavaScript/runtime-test implementations. Raw JSON/guard logs and archived CI logs are retained in Local qualification of this focused entropy change passed 36 cases, 18 paired real MCP tasks, 6 real CLI calls, plus 3 MCP/source-export and 3 CLI integration checks, with independent file histograms/hash/blocks/runs and identical source Evidence. The requester authorized bypass of demonstrated unrelated baseline failures and repeat human declarations; human-review attestations remain unchecked. Merge will be followed by fresh-checkout qualification of the actual merge commit. |
|
Postmerge qualification of
The fixed 18-task performance comparison remains tied to its published pins: fine-resolution LLVM whole-task median 29.842→8.584 seconds and CPU 25.286→6.358 seconds, with ~43 MiB higher kernel peak and unchanged token estimates. Other controls do not establish stable whole-task acceleration; no actual model-usage saving is claimed. CI attribution and its canceled-coverage limits remain unchanged. The four observed failure identities reproduced on the exact original main; the requester authorized the baseline/readiness bypass. Codex completed the exact-head review without findings. These checks qualify this static Linux byte-inspection change and do not claim broad canceled-suite or real Apple-provider success. Receipts: |
Summary
Fixes #6947. A 256-byte report block previously forced 256-byte physical reads across an entire file, even outside a small selected window. On real LLVM 16 this required 481,955 reads. The shared CLI/MCP service now fills a bounded 64 KiB buffer and reports the same caller-selected blocks (1,885 reads).
Three alternating production MCP tasks per lane/case show fine-resolution LLVM whole-task medians 29.842 → 8.584 s and 25.286 → 6.358 CPU s. Kernel family peak increases 629.5 → 672.4 MiB; no memory or token saving is claimed. Large-block and small-file controls do not establish stable whole-task acceleration (small-file elapsed median is worse, with overlapping ranges). Reproducible measurements and limits.
Contract and scope
ByteEntropyService, at physical file reading. Existing static-inspection authority; maintainer execution/mutation scope decision is not applicable.Validation
21a20306b, all 36 tests, six static tasks and architecture guards passed again; 3 real MCP/source-export tasks and 3 CLI calls matched every oracle fact and frozen parent/report identity. Integrated test/preparation peak 2.23 GiB.cl100k_baseestimates, not model billing.CI and review
CI 40063693805 failed on four observed baseline test identities, all reproduced on exact CI main
21a20306b; three available assertion first lines match, while one canceled case has no final CI assertion message. Two built shards passed, one failed and five were canceled, leaving incomplete broader coverage. Source reported 17,303 passed / 2 failed / 13 skipped. Static/build/Windows and the three real Linux binary/crash lanes passed. Exact-head Codex review completed with no findings. Full attribution, controls and limits.The full local baseline control additionally had two 30-second negotiation timeouts; these are retained and are not attributed to CI. A targeted rerun reproduced the two observed built-case failures. Bypass is authorized by the requester; full-suite success is not claimed. Fresh actual-merge qualification follows integration.
Author readiness
Human owner: @gensokyo-dev
The requester explicitly authorized ready PRs, merging, baseline-CI bypass with evidence, and waiver of repeat human declarations. The following human attestations remain unchecked; this agent does not claim human review occurred.