Skip to content

Include rich summary in orchestrated run output #73

Description

@williamthorsen

Problem

At the end of an orchestrated run, the orchestrator writes a run-summary.md artifact that contains a phase-status table and file list, but the conversational summary it outputs to the user is significantly richer — it includes a narrative of what was built, insights, and deferred items. This richer summary is ephemeral (lost when the conversation ends) while the artifact persists but is less informative.

The summary artifact should capture interpretive, ephemeral content that can't be regenerated from structured data or git history.

Design considerations

The original draft proposed four new sections. Through refinement, two were dropped:

Original section Disposition Rationale
Metrics table Dropped Git-derivable stats (files, commits) and structured data (review rounds) already persist elsewhere
Review findings addressed Transformed Became "Insights" — notable observations, not a rote finding→resolution ledger
What was built Kept Synthesized narrative of end-to-end result — ephemeral without this
Deferred items Expanded Absorbs existing "Deviations from reference plan" + adds skipped acceptance criteria

Key principle: the summary should uniquely preserve content that can't be regenerated later. Git-derivable statistics and data already in run-index.json or reviewer artifacts are noise — interpretive synthesis is the value.

The coder's change-summary.md artifact covers only a single iteration. The orchestrator sees all iterations (initial implementation + review fix cycles) and is uniquely positioned to write a synthesized end-to-end narrative.

Proposed solution

Important note: This document will be accessible from the visualizations! So it should contain the kind of information that would be useful to a developer who has scheduled an orchestrated run and wants to know "What happened? What was done? What did we get out of this run?"

Update the Phase 5 (Summary) section of the orchestrate skill (packages/agents/content/skills/orchestrate/SKILL.md) to add three sections to the run-summary.md template:

1. What was built

A synthesized narrative of the end-to-end result across all coder iterations. Describes what each major component or subsystem does and why — not just file paths. Draws from accumulated context across all coder change-summaries and review outcomes. Focuses on the final state, not the iteration history.

If the run failed or needs manual review, describes what was completed and what remains.

2. Insights

Notable observations that emerged during the run. Only items worth preserving — the section is omitted entirely if nothing notable emerged. Examples:

  • Architectural patterns discovered or validated
  • Design trade-offs surfaced during review
  • Conventions or project-specific patterns learned
  • Surprising findings from reviewers that revealed something non-obvious
  • Technical debt or risks identified but not in scope to address

3. Deferred items

Items intentionally not addressed during the run, with rationale. Replaces and expands the existing conditional "Deviations from reference plan" block. Covers:

  • Deviations from reference plan (when external plan was provided)
  • Acceptance criteria from the ticket that were intentionally not addressed
  • Any other intentional omissions

Omitted when nothing was deferred.

Implementation

The changes are confined to packages/agents/content/skills/orchestrate/SKILL.md, specifically the Phase 5 template. No changes to subagent definitions, the review-cycle module, run-index.json schema, or artifact-conventions.md are needed — all data is already available in the orchestrator's conversation context at summary time.

The orchestrator should also output the same rich summary in the conversation so that it matches the persistent artifact.

Acceptance criteria

  • run-summary.md includes a "What was built" section with a synthesized end-to-end narrative derived from accumulated coder context
  • run-summary.md includes an "Insights" section with notable observations (omitted when nothing notable emerged)
  • run-summary.md includes a "Deferred items" section covering plan deviations and skipped acceptance criteria (omitted when nothing was deferred)
  • The same rich summary is output to the user in the conversation (matching the artifact content)

Metadata

Metadata

Labels

featureAdded or improved external functionalityscope:agents

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions