feat(retrieval): agent surface Batch D — multi_hop_context connection recipe - #200
Merged
Conversation
Design §3.3: one-call connection context — principle-9 resolution on both entity params, graph_path/graph_neighborhood traversal with the hops bound, batched two-stance D48 edge-evidence hydration with exact totals, question-context union deduplicated by id, flat EVIDENCE-grain envelope with top-level paths/edges, GraphEdge D54 withdrawn-support marker (kept and flagged, never silently dropped), ASSERTION_HISTORY intent, catalog hash roll with no protocol key bump. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GKENhTLJg1HqhbdwCmmkbc
fazpu
enabled auto-merge (squash)
August 3, 2026 13:35
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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
Batch D of the agent retrieval surface wave, implemented against the merged binding design (#196,
plan/designs/agent_retrieval_surface_design.md§3.3):multi_hop_context— one-call connection context as a compound engine op (the design explicitly rejects multi-step recipe-chain composition): principle-9 T0 resolution on both entity params (EntityCandidate + BOUNDARY on ambiguity, unknown_entity on failure) →graph_path(two entities) or boundedgraph_neighborhood(one) with the hops bound and top-N=k edge fan-out → one batched SQL statement re-confirms every nominated edge and hydrates two-stance source-diverse evidence with exact per-stance totals (D48 current-testimony + lineage-liveness, fail-closed) → question-context retrieval unioned in, deduplicated by id.Grain.EVIDENCEenvelope: top-levelevidence[]+chunks[]+paths[]/edges[],fact_evidence[]mapping edge relation ids to backing claims,evidence_totals[]exact.RecipeAnswerIntent.ASSERTION_HISTORY.support: FactSupport = CURRENT(model addition, default keeps stored envelopes parsing) — withdrawn-support edges are kept and flagged, never silently dropped; ordinary structurally unsupported projection edges are not blanket-kept beyond what D54 requires.evidence[]. Typed no-path negative; resolution negatives take precedence. Linter grain registration; catalog hash rolled with no protocol key bump; no benchmark-specific logic; no migration.Review trail
pyright0 errors, ruff clean.Test plan
Full DB-backed suite — 169 passed, 0 skipped (16 new Batch D proofs: two-entity path both stances + exact totals, neighborhood form, hops bound, D54 withdrawn kept+flagged, D48 tombstone exclusion, ambiguity/unknown negatives, no-path negative, dedup, stored-envelope compat)
uv run pyright src/ benchmarks/— 0 errorsruff format --check/ruff check— cleanI have read and agree to the RememberStack Contributor License Agreement v1.0.
🤖 Generated with Claude Code
https://claude.ai/code/session_01GKENhTLJg1HqhbdwCmmkbc