Skip to content

feat(logistics): cutover to MAF runtime #987

@Cataldir

Description

@Cataldir

Problem statement

Migrate the logistics-* bounded context (4 services: carrier-selection, eta-computation, returns-support, route-issue-detection) from the legacy BaseRetailAgent runtime internals to the MAF-backed runtime introduced in #981.

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

Required change

For each of logistics-carrier-selection, logistics-eta-computation, logistics-returns-support, logistics-route-issue-detection:

Affected components

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

Risks and dependencies

Risk Mitigation
ETA / carrier-selection regressions degrade promised delivery dates surfaced to the UI. Eval baselines explicitly cover ETA accuracy and carrier-selection scoring; outside tolerance halts the canary.
Returns-support regressions cause incorrect refund / RMA handling. Contract tests cover returns flows; eval baselines cover refund/RMA decision quality.
MCP A2A introduces extra latency on multi-hop logistics flows. Measured pre/post per service; tolerance P95 within 10 %.
Reach-throughs into BaseRetailAgent internals from any of the 4 services. Pre-flight grep blocks cutover until refactored.
Foundry agent ID provisioning fails for any of the 4 services. Provisioning runs ahead of this PR; failure halts this context.

Blocked by:

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

Evidence links

ADR impact

Branch convention

feature/<issue-id>-logistics-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:logisticsBounded context: logistics-* 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