Repository navigation
fix: Read retained vectors without acquisition credentials - #5865
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. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 71a8e258fb
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2ac1546d92
ℹ️ 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".
Summary
Allow existing-session similarity to query retained vectors without Voyage acquisition credentials or provider calls. Keep counts, ranking and result metadata on one selected snapshot, and preserve typed unavailable/inconsistent states.
Problem
The ordinary daemon similarity route treated a missing Voyage key as disabled even when vectors were already materialized (historical finding 64.F003). Other retained-vector factories and daemon bindings imposed the same acquisition prerequisite. Generic read faults could also be rendered as
not_embedded, and separate count/rank snapshots could cross a generation publication.Solution
Separate retained reads from acquisition and query-text embedding, preserve the explicit archive recipe/root, and reuse the existing read-only snapshot owner for count, KNN, message mapping and title/origin projection on one worker. Close owned handles in that worker's finally. Record the attached index identity and creating thread at admission; refuse incompatible supplied handles. Check seed existence before ranking on that same handle, and expose one canonical SessionNotFoundError to all consumers. Close ordinary daemon preflight handles explicitly. Delete the fixture-only compatibility admission/projection and use canonical synthetic archives. Update API consumers, the public VectorProvider snapshot contract and implementations, both session-seed resolvers, daemon bindings, tests and guidance. Text semantic/hybrid requests without credentials remain disabled/unavailable; retained reads stay available.
Missing runtime, missing or corrupt storage, contention and projection failures remain typed unavailable. Only a successful zero count for a present indexed seed establishes
not_embedded; malformed provider hits remain counted as inconsistent.Verification
Exact candidate:
173c2862c706655a2a1e9e77a7b3d869b64e996d.1348 passed, 1 skipped in 162.74s; exit 0,pytest_passed, 1349 selected and terminal cases, no retry. This covers all 33 affected modules. Receipt:20261001T040225Z-focused-test-3834055-5f316a59. The skip is the existing empty parameter set in query-expression aggregate-transform coverage.20261001T040252Z-quick-3834210-65a31c84.Self-review
Whole-base author review: project guide, area rules and generic checklist
Author review of all 46 changed paths from integrated master07323a75cb29c3674cbd921fdfdbbf892837de3a to 173c286. I re-read the project guide, storage and daemon area rules, and generic worker checklist, then re-read every product and test diff during final integrated verification and considered its clean terminal receipts. This correction batch received two whole-base passes; the final pass found no remaining defect. Earlier passes fixed credential classification, writable fixture compatibility, split generations, ambient recipe substitution, typed runtime failures, public protocol drift, external row/thread ownership, admission provenance, seed presence before ranking and explicit preflight cleanup.
Complete job 5359 passed all 33 affected modules: 1348 passed, 1 skipped in 162.74s, exit 0, with 1349 selected and terminal cases and no retry. Receipt: 20261001T040225Z-focused-test-3834055-5f316a59. Quick job 5360 passed all 12 gates on this clean exact head; receipt: 20261001T040252Z-quick-3834210-65a31c84. Closure job 5299 passed ten members among 25 product paths, closure size 560, on 7975; this test-only correction leaves the product ASTs unchanged.
Project guide:
Storage and daemon area rules:
Generic worker checklist:
Residuals
The focused selection proves these routes, not the complete corpus or a live operator archive. No paid provider or live archive operation was performed. Independent local review found no concrete defect on b5d9 after reading all 46 changed paths, consumers, existing findings and owner receipts; integration preserved those file blobs. Required hosted statuses and conversation resolution must pass on the pushed head before merge.
Integration: merged pinned master07323a75cb29c3674cbd921fdfdbbf892837de3a normally. All46 candidate file blobs were preserved; zero path overlap with98 upstream paths. Re-read the integrated whole diff and all28 author checklist considerations, clean. Independent local review was clean on preserved b5d9 product/test blobs; final full33 and quick above ran on integrated173c2862. Manual hosted reviews are disabled by operator instruction; required forge statuses and conversation resolution remain enforced.