Skip to content

Epic: Cockpit Goal Story replay #127

Description

@smota

Background & Problem Statement

AgentFlow Cockpit needs a read-only replay capability for short goals. The replay must recreate how a goal moved from intent to outcome without rerunning agents or mutating GitHub. It should present AgentFlow evidence and decisions, not raw transcripts or generic event feeds.

Proposed Solution

Add Goal Story / Replay as an opinionated Cockpit view. It reconstructs a compact timeline from GitHub issues, comments, PRs, commits, checks, role-pass markers, handovers, validation summaries, review findings, and follow-up links. Local/runner events may enrich replay later, but GitHub remains the durable source of truth.

Requirements

  • Reconstruct replay from GitHub data alone for MVP.
  • Group events by AgentFlow phases 0-8 and outcome sections: Goal, Scope, Decisions, Validation, Review/Gates, PR Readiness, Outcome, Follow-ups.
  • Show evidence links and inferred/missing badges.
  • Default to compact summary for short goals; allow drill-down.
  • Never expose raw transcripts, prompts, tool inputs, secrets, or full logs.
  • Export replay summary as markdown.

Technical Design

Child issues cover:

Acceptance criteria

  • Replay epic has linked child issues for implementation, validation, and docs.
  • MVP can reconstruct a goal story from GitHub issue/PR data without local runner state.
  • Replay labels inferred/missing evidence honestly.
  • Replay is read-only and cannot trigger agent execution.
  • Privacy requirements explicitly forbid raw transcript/prompt/tool-input display.

Open questions

  • Should UI label be “Replay” or “Goal Story” by default?
  • Should replay be nested under Cockpit issue view or top-level goal view?
  • Which GitHub check/status APIs are required for validation replay in MVP?

Feature Tracking

Test plan

  • Fixture tests for timeline derivation from GitHub issue/PR/comment data.
  • UI tests for compact/expanded replay and filters.
  • Privacy tests ensuring forbidden fields are not rendered/exported.
  • Export snapshot tests for markdown summaries.

Workflow classification

Standard product feature with privacy-sensitive UI constraints. Requires tester and tech writer phases; security review if remote sharing/export includes private repository data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-releaseManaged by multi-agent-sdlc integration lifecycle automationdrafted-by:piIssue drafted by PiepicParent tracking issue with child issue breakdownfeatureUser-facing product capabilityintegrated:developmentManaged by multi-agent-sdlc integration lifecycle automationproduct:cockpitAgentFlow Cockpit optional Goal Command Centerproduct:harnessHarness adapters, plugins, skills, settings, execution targetsrelease:v1.0.0Assigned to AgentFlow SDLC v1 releasestatus:v1-readyImplemented on development and awaiting v1 release

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions