Repository navigation
Conversation
Session month shards decode incrementally (one turn at a time, keeping only in-range turns); the codex result cache streams, serves discovery labels from calls-free metadata, and publishes by merge; shard loads run serially with the pre-lock snapshot released before reload. Retained strings detach from tokenizer buffers, dropped dedup keys are 128-bit digests, and provider queries skip unrelated sections.
|
Closing for now: this is your first pull request here and it changes 3869 lines with no issue behind it. Open an issue describing the change first so we can agree on the shape before the work is written, then reopen this with the issue number in the description. Small fixes do not need this. |
This was referenced Sep 19, 2026
Contributor
Author
|
Issue filed as requested: #1504 (linked above via Fixes). Requesting reopen. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1504.
Fixes the
codeburn overview -p todayheap crash at the cache-I/O layer.What was wrong
Ranged loads assembled whole multi-hundred-MB month shards before filtering (
loadShardMemoizedwhole-parsed via JSON.parse, including a 578MB shard that exceeds V8's max string length); the pre-lock snapshot overlapped the canonical reload (~787MB duplicate); lock publishes rewrote the entire result file; codex discovery re-decoded the result cache per directory; retained strings were tokenizer slices pinning whole input chunks (~1.2GB phantom heap on this corpus).What changed
Verification
npm test: full suite green;npm run test:locks: 36/36;tsc --noEmitclean.Stacked follow-up (aggregate parse mode for the bare-today headline) builds on this branch.