Repository navigation
fix: stop discarding attachments, titles and state text at fixed caps - #5651
Merged
Merged
Conversation
Drive attachment convergence dropped already-downloaded bytes above 50 MiB as terminal unavailable rows. The Codex state_5.sqlite title read stopped at 100k rows and refused titles over 4096 characters. The test-only goals/memories preview parsers clipped rows and text while the production route already materializes every row and chunk. Remove the attachment cap, stream every thread title from the cursor, and delete the clipping preview parsers, testing the complete route instead. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
|
You have reached your Codex usage limits for security reviews. Please try again later. |
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. |
Owner
Author
|
Focused
|
Sinity
enabled auto-merge (squash)
September 27, 2026 19:13
Sinity
added a commit
that referenced
this pull request
Sep 27, 2026
#5651 added a no-size-cap test that buffers 51 MiB through the removed bytes-returning download; test_attachment_download_streams_to_disk_and_has_no_size_cap already proves the same property through the streaming contract. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
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.
Summary
Removes three caps that dropped valid source material, and records the rest of a limits census as beads.
Problem
converge_drive_attachmentsdownloaded a Drive attachment, then marked it a terminalunavailablerow if it exceeded 50 MiB: the provider-served bytes were discarded and never retried.state_5.sqlitetitle read stopped at 100,000 rows and refused any title longer than 4,096 characters, so later threads and long curated titles were missing from enrichment.parse_codex_goals_db/parse_codex_memories_dbclipped rows (10,000) and text (64,000 chars). Only tests called them; production usesiter_codex_state_parts, which materializes every row and text chunk.Solution
threadsrow from the cursor with no length refusal; remove the now-meaningless truncation count fromSidecarData.CODEX_STATE_MAX_ROWS; replace their tests with tests of the complete route, including chunk reassembly at a 4-character chunk size.sqlite-degradation-baseline.json: the two rewritten optional-enrichment handlers replace their predecessors' anchors (no net growth).Other correctness-affecting caps found by the census (lineage depth, classification probes, browser-capture ingress, Drive live fetch, Codex replacement context, sidecar dispatch, machine receipts, structural identity, query/delete scopes) are filed as separate bugs because each needs a streaming or paging design.
Verification
devtools verify --quick→verify: PASSED exit=0devtools testover the 24 test files touching assembly_codex, codex_state and attachment_convergence: queued behind the shared pytest pool at publication time; result to follow in a comment.devtools schema closure:sources/assembly.pyandsources/assembly_codex.pyare IN, so this must land before a fresh rebuild.🤖 Generated with Claude Code
https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4