Skip to content

feat(product-management): cutover to MAF runtime #989

@Cataldir

Description

@Cataldir

Problem statement

Migrate the product-management-* bounded context (4 services: acp-transformation, assortment-optimization, consistency-validation, normalization-classification) from the legacy BaseRetailAgent runtime internals to the MAF-backed runtime introduced in #981. This is the final bounded context in the R1 cutover order; once it merges and clears the 24-hour steady-state hold, the R1 epic can close and R2 (UI decoupling) becomes unblocked.

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

Required change

For each of product-management-acp-transformation, product-management-assortment-optimization, product-management-consistency-validation, product-management-normalization-classification:

Affected components

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

Risks and dependencies

Risk Mitigation
Assortment-optimization regressions cause poor merchandising decisions surfaced to the UI. Eval baselines cover assortment-quality metrics; outside tolerance halts the canary.
Consistency-validation regressions cause data-quality issues to leak downstream. Contract tests cover validation flows; eval baselines cover validation precision/recall.
Final legacy-internals deletion breaks an unmigrated reach-through. Pre-flight grep across all 26 services + crud-service confirms zero pre-MAF imports before deleting; CI enforces the deletion.
MCP A2A introduces extra latency on multi-hop product-management flows. Measured pre/post per service; tolerance P95 within 10 %.
Foundry agent ID provisioning fails for any of the 4 services. Provisioning runs ahead of this PR; failure halts this context.

Blocked by:

Blocks: R2 (UI decoupling, file 22-r2-ui-decoupling-swa.md). R2 is a strict downstream of R1's full completion per the S2 sequencing rule.

Evidence links

ADR impact

Branch convention

feature/<issue-id>-product-management-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:product-managementBounded context: product-management-* servicespriority: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