Repository navigation
fix(episodes): summary memory retrieval was refused on its third search; admit each search and record why context falls back - #25379
Merged
Git-on-my-level merged 3 commits intoNov 15, 2026
Conversation
Failure-Class: FC-independent-searches-share-retry-admission Keep distinct single-attempt searches within the composer deadline without consuming list retry admission. Record only failure stage and exception class, and cover the locked HTTPX/Pinecone path. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Review found that marking a failure's stage assumed every exception accepts attributes; one that rejects them raised AttributeError in its place and hid the original from the read circuit. Marking is now best-effort, with a regression test. Failure-Class: none Co-Authored-By: Claude Fable 5.2 <[email protected]>
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.
Problem and behavior
Episode summaries discard all profile and memory context when the second search starts after one second or the third search starts at all. Independent single-attempt searches incorrectly share the list reader's one-second/two-attempt retry-admission state. Production class-only logs and a real-SDK regression reproduce
MemoryReadAdmissionDenied.Give each single-attempt logical search independent admission under the original overall context deadline. Preserve the shared process allowance, circuit, no-retry policy, and eight-second context bound. Add one class-only fallback log with stage
budget,embedding,vector, orhydrate; never log provider messages or account/content identifiers.Failure-Class: new
New class:
FC-independent-searches-share-retry-admission; reusable regression drives real MemoryService, HTTPX and Pinecone 7.3.0 objects, including name-based host discovery and isolated async transport. Only HTTP responses, owner routing storage, and BYOK lookup are synthetic.Tuning disclosure: single-attempt admission now uses the caller's remaining context budget instead of the list retry window. No overall budget, process allowance, retry count, model, or production setting changes. Existing
EPISODE_COMPOSER_CONTEXT_ENABLED=falseis the rollback lever; no new flags. All touched product Python files remain below the 1500-line ratchet; no Line-Count-Exception is required.Validation measured 2026-11-15T08:14:36Z: affected 15-file backend suite green; required real-clock and gateway scans 38 passed; cross-service deploy contract 33 passed, 3 skipped; canonical
bash backend/scripts/typecheck.shzero errors. Additional owner-summary retrieval coverage passed 16 tests. The installed pre-push hook passed all 40 shared checks, canonical typecheck and 10 tests in its bounded backend unit phase.Runtime evidence: carrier
51b449ecserves 100% of backend traffic and predates default-context merge #25368, so zero default-context logs is absence of deployed code, not successful collection. No production account content was read. Tierro-prodonly.Delivery: local lane commit only. No push, PR, merge, deploy, or production mutation. The integration lead owns publication and serving verification.
Product invariants affected
Additional owner-summary retrieval suite: 16 passed. Product invariant citations were validated by the installed hook, with no skip flags or guard changes.
Final validation 2026-11-15T08:21:51Z: full installed pre-push hook passed (40 shared checks, canonical typecheck, 10 bounded unit tests). Local head
3e9c6a434ec3a0e0ae1a8fb8d2a9be248ee1be0c. Detailed evidence is in q12-u-retrieval-fix.md; no public CI or deployment is claimed.Author model: GPT-6.1 Sol; integrated by Claude Fable 5.2.
🤖 Generated with Claude Code