Repository navigation
fix: preserve thread search evidence across public pages - #5988
Merged
Merged
Conversation
|
You have reached your Codex usage limits for security reviews. Please try again later. |
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
Preserve thread support search through the public API and MCP registry projection, before paging.
Problem
Original polylogue-5gj19 finding 42.F021 (PR #4630 discussion 3928525476) describes strong-thread search returning no rows because the SQL relation omits support evidence. The current public
ArchiveStore.iter_thread_insightsstill searched only session identity/title/repository/branch. MCP additionally discarded the existingexpressionbefore its registry fetch.Original 42.F118 (discussion 3928525464) describes paging roots then dropping those without profiles in the former async list adapter. The shipped public replacement from 74cc6b4 already hydrates session evidence without that exclusion; this change qualifies its actual API/MCP page behavior and removes the unused predecessor. Original 43.F114 (PR #4228 discussion 3860697570) identifies a stale paste-filter test oracle.
Solution
Search the public payload's shared support vocabulary and support level in the existing SQL selection before LIMIT/OFFSET. Forward registry text search only to descriptors declaring their existing
queryfield, preserving reference resolution precedence. Keep search/filter/page operands in response context and retain direct offset refinement for budgeted registry pages; framed DSL pages retain q2 authority.Remove the unused async list adapter, DTO and mapper together. Keep retained exact thread-record reads. Correct the paste refusal oracle to the actual typed field/value and retain the accepted
has_paste_evidencecontrol. Document the current search and paging contract.Verification
agentctl job start polylogue pytest_focused --workspace /home/sinity/.codex/worktrees/attachment-coordinate-evidence/polylogue -- tests/unit/storage/test_thread_search_parity.py tests/unit/mcp/test_query_request_contracts.py tests/unit/mcp/test_bounded_query_transport.py tests/unit/mcp/test_reference_query_pipeline.py tests/unit/mcp/test_insight_projection_derivation.py tests/unit/storage/test_thread_profile_read_authority.py tests/unit/core/test_threads_runtime.py tests/unit/core/test_insight_registry_parity.py tests/unit/operations/test_insight_reads.py: job 9049 SUCCESS, 56 passed / 56 collected; receipt20261005T021731Z-focused-test-1988670-1d4e7fa1.agentctl job start polylogue verify_quick --workspace /home/sinity/.codex/worktrees/attachment-coordinate-evidence/polylogue: job 9050 SUCCESS, all 12 gates passed; receipt20261005T021748Z-quick-1989117-ffac36fc.devtools schema closure polylogue/storage/sqlite/archive_tiers/archive.py: IN. Land before reconvergence; no live rebuild was performed.Self-review
Reviewed the coherent delta once, including connected budget refinement and removed consumers.
Residuals
The broader polylogue-5gj19 group remains open. F118 is qualified against its shipped replacement, not claimed as a newly introduced profile gate. Existing SQL offset/search work can scale with the selected relation; this does not claim constant-time search. No fresh-agent/model trials, live rebuild or shared Native/Runtime worktree edits.