Skip to content

Integrate hybrid retrieval into the agent SDK and MCP service #72

@voidrot

Description

@voidrot

Summary

Integrate the chosen hybrid retrieval path into the existing retrieval SDK and MCP boundary without breaking the markdown source-of-truth model or the deterministic fallback path.

Why this work is needed

The backend choice and index pipeline are not enough by themselves; the retrieval API surface needs to consume those derived indexes and still preserve scope enforcement and fallback behavior.

Scope

  • Add hybrid candidate-provider or fusion behavior to the retrieval SDK.
  • Integrate the resulting retrieval path into the MCP service.
  • Preserve deterministic fallback to the current lexical path.
  • Ensure visibility enforcement happens before results leave the boundary.
  • Add tests for fallback and scoped retrieval behavior.

Out of scope

  • Frontend search UX.
  • Replacing markdown as the source of truth.

Acceptance criteria

  • The SDK can use the new hybrid retrieval path.
  • MCP can serve hybrid retrieval safely.
  • Fallback and security behavior are explicit and test-covered.

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions