Skip to content

D4C First Slice: Reuse-first Fleet Health → Replay → Outcome → Evidence loop #104

@JH9384

Description

@JH9384

Goal

Implement the first complete D4C slice from the reuse-first development arc:

Fleet Health card → top fleet alert → replay → incident update → outcome capture → trust movement → evidence-pack section

This issue is the executable anchor for docs/roadmap/D4C_FIRST_SLICE_IMPLEMENTATION_PLAN.md.

Core Constraint

Do not create sprawl.

This slice must reuse existing UAR surfaces and primitives wherever possible:

  • Mission Control
  • AlertBanner / alert summary
  • Replay Explorer
  • Incident Workbench
  • Recommendation outcome API
  • Trust/effectiveness endpoints
  • Evidence-pack generator
  • Existing stores and metadata paths

Work Packages

D4C-S1.1 — Fleet Signal Model

  • Add reusable fleet signal builder, likely uar/core/fleet_signals.py.
  • Aggregate from existing run, health, topology, trust, recommendation, and incident data.
  • Include latest run ID for replay navigation.

D4C-S1.2 — Mission Control Fleet Card

  • Extend Mission Control response with fleet_summary.
  • Add Fleet Health card to existing Mission Control UI.
  • Avoid creating a separate fleet dashboard.

D4C-S1.3 — Top Fleet Alert Routing

  • Include top fleet signal in existing alert summary flow.
  • Route click-through to existing Mission Control tab, Replay Explorer, or Incident Workbench.

D4C-S1.4 — Replay and Incident Linkage

  • Use latest_run_id for replay.
  • Link existing incident IDs where available.
  • Allow incident creation/update from signal context using existing incident flow.

D4C-S1.5 — Outcome Capture and Trust Movement

  • Reuse POST /api/uar/recommendations/outcome.
  • Reflect outcome in existing trust/effectiveness/quality surfaces.
  • Avoid a fleet-specific outcome table.

D4C-S1.6 — Evidence Pack v2 Fleet Section

  • Add a reusable fleet signal section to the existing evidence-pack generator.
  • Include source IDs, timestamps, affected runs, incident links, outcome summary, and trust movement.

Acceptance Criteria

  • Mission Control shows one fleet health signal using existing data.
  • Top fleet alert routes through existing alert surfaces.
  • Operator can open replay from the fleet signal.
  • Operator can link or update an incident from the same path.
  • Outcome capture uses existing recommendation outcome logic.
  • Trust/effectiveness surfaces reflect the outcome.
  • Evidence Pack v2 includes a fleet signal section.
  • No duplicate dashboard, store, trust formula, or fleet-specific incident system is introduced.

Anti-Sprawl Checklist

  • No new dashboard duplicates Mission Control.
  • No new fleet store is introduced.
  • No new outcome table is introduced.
  • No second trust score is introduced.
  • No new incident system is introduced.
  • Fleet signal links to replay, incident, recommendation, outcome, or evidence.
  • Tests cover missing optional data.
  • Evidence pack contains traceable source IDs.

Recommended Commit Order

  1. Add fleet signal builder and backend tests.
  2. Extend Mission Control response with fleet summary.
  3. Add Fleet Health card to existing Mission Control UI.
  4. Route top fleet signal through existing alert summary/banner.
  5. Add replay/incident linkage tests.
  6. Add outcome/trust movement regression test.
  7. Add Evidence Pack v2 fleet section.
  8. Update roadmap docs with results and known limits.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions