Skip to content

feat(search): cutover to MAF runtime #984

@Cataldir

Description

@Cataldir

Problem statement

Migrate the search-enrichment-agent bounded context (single service) from the legacy BaseRetailAgent runtime internals to the MAF-backed runtime introduced in #981. This is the smallest single-service context in R1 and serves as a clean validation of the seam after the larger truth-* migration.

This is a hard sunset: legacy runtime imports are deleted in the same PR. There is no coexistence flag.

Required change

For search-enrichment-agent:

Affected components

Acceptance criteria (per spec — Acceptance gate per bounded context)

Risks and dependencies

Risk Mitigation
Search relevance regresses on cutover (vector / semantic search behavior). Eval baselines specifically cover search relevance metrics; regressions outside maxDeltaPercent halt the canary.
MCP A2A introduces extra latency on enrichment hops. Measured pre/post; tolerance P95 within 10 %. Outside tolerance halts the canary.
Reach-through into BaseRetailAgent internals. Pre-flight grep blocks cutover until refactored.
Foundry agent ID provisioning fails. Provisioning runs ahead of this PR; failure halts this context.

Blocked by:

Blocks: the next context (crm-*) per the R1 sequencing rule.

Evidence links

ADR impact

Branch convention

feature/<issue-id>-search-maf-cutover (per ADR-018).

BPMN process

%%{init: {'theme':'base', 'themeVariables': {
  'primaryColor':'#FFB3BA',
  'primaryTextColor':'#000',
  'primaryBorderColor':'#FF8B94',
  'lineColor':'#BAE1FF',
  'secondaryColor':'#BAE1FF',
  'tertiaryColor':'#FFFFFF'
}}}%%
flowchart LR
  A[Analyze Current Code] --> B[Design Change]
  B --> C[Implement on Issue Branch]
  C --> D[Open PR]
  D --> E[Validation and Fixes]
  E --> F[Merge to Main]
  F --> G[Monitor Workflows]
  G --> H[Close Issue and Cleanup]
Loading

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:appsService applications under apps/context:searchBounded context: search-enrichment-agentpriority:highHigh priority worktype:refactorRefactor / restructure with no functional change

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions