Repository navigation
fix: aistudio transform fails most stored payloads on ambiguous attachm… - #4644
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. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f95481a413
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…4692) ## Summary Fixes seven root causes from the 2026-09-05 master corpus reds (106 failed / 20,455 passed), profile/delegation/storage cluster: - fix(storage): select the input_row_count the profile record reads (`no such column: total_input_tokens`) - fix(storage): insight presence counts views, not only tables (`threads`/`delegations`/`actions` are views; exports withheld every row) - fix(storage): retain an ambiguous-owner attachment as typed unowned (PR #4644 dropped it before its row was written; bead polylogue-c9qxh) - fix(maintenance): absent stats for an empty table are not missing coverage - test: supply parent-dispatch evidence delegation resolution now requires; read profile totals and ingest seams at their current locations; follow embedding reuse and the declared content-hash partition; classify new index tables and satisfy the threads view dependency ## Verification Lane batches: `450 passed` (batch 1620), then `5 failed, 664 passed in 654 s` (batch 1628) on the listed cluster plus touched modules. `devtools verify --quick` green after one typing fix by the coordinator. ## Residuals (deliberately not fixed, with reasons) - `test_session_revision_projection_golden_hashes`: message-level hash drift unexplained by any diff in the identity modules; regenerating would launder a possible identity regression. - `assert_readable_archive_layout` still raises the pre-migration `SchemaVersionMismatchError` on skew (#4626 half-landed); flipping it changes MCP error codes; needs a caller audit. - `test_refresh_thread_reorder_only_touches_changed_span`: #4630 made `_refresh_thread` a no-op; design decision, not a patch. - `test_insights_status_plain`, two `test_reindex_campaign` tests, `test_full_reindex_and_incremental_convergence_have_equal_derived_models`: still red in batch 1628. - `perf_floors` and `codex_804` timed out under five-lane host contention. Beads: polylogue-7r19s, polylogue-xtstx, polylogue-c9qxh 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
|
Closing out open Codex review threads on this PR (evidence checked against master at 64a9bd0):
Resolving every thread listed; confirmed defects are fixed under the named bead. |
Summary
Preserve sessions whose attachments have ambiguous message-owner coordinates, and retain those attachments as typed-unowned evidence.
Problem
Stored aistudio-drive payloads can contain multiple messages resolving to the same owner coordinate
(0, 0). The content hash and writer previously raisedMessageOwnerAmbiguityError, causing otherwise parseable sessions to fail materialization. The bead's four named sessions were among the affected payloads.Solution
The session content hash records an ambiguous attachment without a guessed message anchor. The writer retains the attachment row with no
attachment_refsrow, allowing its evidence andref_count = 0state to remain queryable. Strict revision ownership remains fail-closed. Regression tests cover hash degradation and the production writer path.Verification
PATH="$PWD/.venv/bin:$PATH" ./.venv/bin/python -m devtools verify --quickpassed all declared quick gates.The focused
devtools testselection was queued as pueue task 564, but the shared pytest group was paused and the selection was canceled without a test result.Residual risk
The four live payloads and the complete focused pytest selection were not rerun in this lane. The quick gate does not execute pytest.