---
id: book-recommendation-researcher
name: Book Recommendation Researcher
version: 1.0.0
summary: Internal delegated subagent that curates catalog-verified book shortlists matching customer preferences for the Book Agent without inferring demographics or inventing facts.
owners:
  - ai-capabilities-team
repository:
  language: C#
  url: https://github.com/foxminchan/BookWorm
sends:
  - id: AnalyzeText
    version: 1.0.0
  - id: AnonymizeText
    version: 1.0.0
flows:
  - id: agent-orchestration
    version: 1.0.0
tools:
  - name: search_catalog
    type: mcp
    icon: /icons/languages/dotnet.svg
    description: Searches the book catalog by theme, keyword, or description.
  - name: get_book
    type: mcp
    icon: /icons/languages/dotnet.svg
    description: Retrieves full catalog details for a candidate book identifier.
  - name: list_categories
    type: mcp
    icon: /icons/languages/dotnet.svg
    description: Lists available book categories in the catalog.
  - name: list_authors
    type: mcp
    icon: /icons/languages/dotnet.svg
    description: Lists authors available in the catalog.
badges:
  - content: Delegated Subagent
    backgroundColor: teal
    textColor: teal
model:
  provider: Microsoft
  name: model-router
  version: "2025-11-18"
---

## Role & Autonomy Boundary

Book Recommendation Researcher is an internal delegated subagent hosted inside [[service|chat-api]] and invoked exclusively by [[agent|book-agent]]. It is triggered when an open-ended customer request benefits from curating a preference-matched shortlist in parallel with factual catalog lookups.

It has **no external user-facing surface**: it cannot be routed to directly by the workflow orchestrator, cannot initiate handoffs to peer agents, cannot access planning or file memory, and must never infer customer demographics or fabricate availability, popularity, ratings, or prices.

## Agent Profile & Model Governance

| Property                     | Value                                                                                                                          |
| :--------------------------- | :----------------------------------------------------------------------------------------------------------------------------- |
| **Bounded Context / Domain** | Conversational ([[domain\|bookworm]])                                                                                          |
| **Owner Team**               | [[team\|ai-capabilities-team]]                                                                                                 |
| **Hosting Service**          | [[service\|chat-api]] (internal subagent of [[agent\|book-agent]])                                                             |
| **LLM Provider & Model**     | Microsoft Foundry `model-router` (`2025-11-18`; `temperature: 0.4`, `maxOutputTokens: 1200`, `reasoningEffort: medium`)        |
| **Interaction Protocol**     | In-process subagent delegation (inbound from [[agent\|book-agent]]); MCP Streamable HTTP (outbound to [[service\|mcp-server]]) |
| **Memory / Context Scope**   | Ephemeral per-delegation turn; inherits active run context from [[agent\|book-agent]] with no independent storage              |
| **Fallback Behavior**        | Returns a smaller verified shortlist or explicit no-match report; fails closed on PII or policy errors                         |

## Tools & Capabilities

<AgentTools />

| Capability / Tool                                               | Access Level | Target Resource         | Guardrail / Constraint                                                                       |
| :-------------------------------------------------------------- | :----------- | :---------------------- | :------------------------------------------------------------------------------------------- |
| `search_catalog`, `get_book`, `list_categories`, `list_authors` | Read         | [[service\|mcp-server]] | Default-deny policy permits only these four read-only catalog tools; no mutation tools exist |

## Data, Messaging & Handoff Boundaries

- **Data Stores:** Book Recommendation Researcher has no direct database, cache, or blob storage access. Every candidate book in a shortlist must be verified through [[service|mcp-server]].
- **Messages:** Inherits [[agent|book-agent]]'s privacy pipeline, screening all inputs and outputs via [[service|presidio-api]] using [[command|AnalyzeText]] and [[command|AnonymizeText]].
- **Delegation & Handoffs:** Receives subagent tasks solely from [[agent|book-agent]] and returns an evidence-backed shortlist with verified book identifiers. It has no handoff tools and never delegates further.

## Safety, Privacy & AI Governance

- **Inherited Fail-Closed PII Redaction:** Every model invocation runs through [[service|presidio-api]] (`AnalyzeText` and `AnonymizeText`, masking detected PII with `<PII>`); any failure aborts execution.
- **Fairness & Grounding Invariants:** Prohibits demographic inference or stereotyping; every recommendation must cite explicit catalog attributes returned by [[service|mcp-server]].
- **Strict Least-Privilege Policy:** Default-deny governance permits only agent execution and the four read-only catalog tools—no handoff, planning, file-memory, or storefront UI tools are granted.
- **Prompt & Output Guardrails:** Inherits decision-based tool filtering, prompt/output safety guardrails, and full context compaction from [[agent|book-agent]].

<Admonition type="warning">
	Book Recommendation Researcher must never recommend titles that were not retrieved and verified
	through [[service|mcp-server]] during the current run, and must never infer protected or
	demographic attributes about the customer.
</Admonition>

<Accordion title="Fallback Behavior & Evaluation Criteria">

- **Insufficient Matches:** If few or no catalog titles match all stated constraints, the subagent returns only verified partial matches with explicit caveats to [[agent|book-agent]].
- **Evaluation:** Verified for catalog-grounding fidelity (zero hallucinated ISBNs/IDs), fairness constraints, tool-scope isolation, and Presidio PII redaction.

</Accordion>

## Architecture Visualizations

<NodeGraph />

**Subagent Delegation and Preference Matching Boundary**

<MermaidFileLoader file="mermaids/book-recommendation-researcher-diagram-1.mmd" />

## Related Documentation

- [[agent|book-agent]] — Parent coordinating agent and full governance specification.
- [[agent|book-catalog-researcher]] — Sibling delegated subagent for factual catalog lookups.
- [[service|mcp-server]] — Read-only Catalog MCP server exposing the four catalog tools.
- [[service|chat-api]] — Hosting service and workflow orchestration.
- [[flow|agent-orchestration]] — End-to-end conversational routing and delegation flow.
- [[doc|arc42/08-crosscutting-concepts/005-ai-governance]] — Cross-cutting AI governance rules and standards.
- [[adr|adr-005-govern-agent-tools-per-agent]] — Per-agent default-deny tool governance.
