Policy Retrieval AgentProject file 04 of 10
back to library
04Policy Retrieval Agent

Retrieval · evidence policy · safe failure

Role
Independent prototype author
36 curated casesOpen public repository

Public applied-AI prototype · 2026

Evidence decides
whether the system answers.

I built a bilingual retrieval system that cites, checks, repairs, or escalates instead of polishing a guess.

  1. Route
  2. Retrieve
  3. Govern
  4. Answer
  5. Escalate
  6. Evaluate
Governed source trail
Public Policy Retrieval Agent interface showing a cited answer and the policy sources consulted
Governed source trail · public repository evidenceOpen public repository
Swipe through the evidence03 / 06
  1. Sensitive, financial, vague, or malformed requests stop before an answer is drafted.

    NORMALIZELanguage + terms
    GUARDSSensitive / financial / vague
    REVIEWReason retained
    Prototype routing
  2. Vector and lexical search merge without hiding where a source ranked.

    VECTORSemantic rank
    BM25Lexical rank
    TRACELane + rank metadata
    Hosted embedding dependency
  3. Authority, dates, and bounded contradictions decide whether retrieved evidence may be used.

    POLICYPreferred + authoritative
    DATESNewer source can govern
    CONFLICTExplicit HR receipt
    Bounded conflict families
  4. The system validates a cited draft, restores the requested language, then checks citations again.

    DRAFT[SOURCE: path] tokens
    FR / ENLanguage restored
    AUDITRepair or review
    Google model APIs
  5. A failed draft can be corrected twice; the third failed validation exits to review.

    REJECTGuard or audit failure
    RETRYFresh evidence · bounded
    HUMANReason + sources
    Prototype review state
  6. Three curated suites exercise routing, citations, escalation, and a faithfulness proxy.

    15Base
    15Paraphrased
    06Reasoning
    Curated prototype set
System viewSource policy decides whether evidence may be usedPrecedence is not conflict: authority and date rules resolve some differences; bounded contradictions escalate.
Retrieved evidenceEvidence governanceExplicit outcomeresolvedtrue conflict
inputRanked sourcesdocuments + provenance
registryTopic policypreferred + authoritative sources
datesSupersessionnewer authority can govern
compareConflict familiesbounded numeric + policy checks
generateApproved contextgoverning evidence only
escalateConflict receiptsources + reason for HR