Run retrospective
Assess the completed workstream through delivery-speed, process, and
codebase-health lenses. The actual grilling skill owns the decision loop.
Apply only documentation and ticket actions the user selects from the detailed
summary. An explicitly selected immediate implementation enters its normal
workflow rather than being implemented directly by this skill. Every run also
produces an HTML impact report under the render-html schema. Creating or
refreshing that report is authorized by the retrospective request; other
mutations require the selection and owning workflow described below.
Gates
- Define the workstream boundary from the current conversation, handoff, diffs, commits, issues, PRs, reviews, checks, outcomes, and rework. Record unavailable evidence and lower confidence; do not invent a narrative or broaden into a repository audit.
- Before proposing a process or design correction, trace its originating decision, the current implementation or executable configuration, and the current documentation. Distinguish missing design from implementation drift and documentation drift. Preserve a settled choice unless contradictory current evidence requires a new decision; do not re-grill it merely because the implementation or prose drifted.
- Inspect the complete available coordinator and subagent record, including process events and handoffs. Identify repeated reasoning, rebuilt or dropped evidence, loaded-but-unused or bypassed skills, manual resumes, capability-routing mistakes, and other context consumption that added no value. Report this no-value context separately from other findings and name any unavailable conversation or process evidence.
- For a completed Milestone Rush, read its ignored
.agent/milestone-rush-events.jsonlunder references/timing-analysis.md. Reconcile it with current repository, issue, pull-request, and CI evidence; partial or missing telemetry is a confidence limitation, not permission to infer values. - Invoke
grillingwith the evidence and candidates. Do not imitate it with ad-hoc questions; stop if it is unavailable. Let it ask one decision at a time with a recommendation. Act only after it reaches shared understanding and confirms the exact action set. - Require
render-htmland Python 3 before starting the report. Stop if either is unavailable. The report is a durable retrospective artifact, not a temporary implementation review. - Assess all three lenses, even when one produces no durable finding:
- Delivery speed: less waiting, rework, handoff friction, unnecessary scope, or cognitive load without weakening quality.
- Process: planning, decisions, handoffs, gates, tools, and collaboration.
- Codebase: architecture, maintainability, tests, developer experience, reliability, and accumulated friction.
- Promote only generalized, project-level lessons supported by evidence. Exclude chronology, one-off mistakes, personal preferences, duplicates, existing rules, and speculation.
- Apply de-duplication to the workstream: reuse prior investigations and decisions, coalesce the same event from multiple evidence systems, and combine candidate lessons with the same cause and action while retaining provenance. Report repeated implementation encountered in the workstream, but do not turn the retro into a repository-wide duplication or discoverability audit.
Route each lesson
- Documentation edit: durable guidance in existing contracts, READMEs,
docs/, ADRs, AGENTS, skills, templates, policies, or contributor guidance. Prefer tightening or coupling with existing text. Direct edits are limited to documentation. - Follow-up ticket: source, executable configuration, or other implementation
is needed. Offer more detail, further grilling, normal or automatic
create-issue, or skip; the delegated workflow retains its own gates. - Implement before next cycle: recommend this route when a selected
improvement should be delivered before another cycle begins. Recommendation
alone authorizes nothing. After explicit user selection, reuse or create its
visibility issue through
create-issue, enter the normalimplement-issueworkflow, and keep this retrospective active until the action is delivered or genuinely blocked. The delegated workflows retain all of their gates. - Report only: useful evidence warrants neither an edit nor a ticket.
Use both edit and ticket only when the guidance and its implementation are separately necessary. A missing document may be created only when the user selects its exact proposed contents.
Workflow
- Resolve the workstream boundary and read relevant project documentation.
- Trace the process origins, implementation/configuration, documentation, and complete available coordinator/subagent record. Then build an evidence ledger of outcomes, friction, rework, surprises, effective or missed gates, successful practices, and separately classified no-value context under all three lenses. Select one or more timing profiles from the reference and map both high-level lifecycle phases and available ground-level operations.
- Reconstruct exclusive critical-path contribution, overlapping or masked work, and aggregate resource consumption without double-counting. Rank bottlenecks by exclusive wall-clock impact; report confidence and missing attribution.
- Remove unsupported, session-specific, duplicate, and already-covered candidates; classify the rest using the routes above.
- Choose an existing repository retrospective-output convention when present;
otherwise write
.agent/retrospectives/<yyyy-mm-dd>-<workstream-slug>.html. Read therender-htmlschema, then draft one item per key delivered change or material outcome withitemLabelset toImpact. Each item is at most 300 characters and requires evidence-backed Before and After states. Add structured evidence, uncertainty, and a copyable discussion prompt. Add a mechanism diagram when the change alters a pattern, lifecycle, state flow, or interaction across at least three meaningful elements. Render and verify the durable report withrender-html. - Run
grillingone decision at a time with the boundary, evidence, current docs, absences, candidates, and report path. Explicitly offer to deep-dive into any impact card with the user. Use a host-supplied app link when one is available; never invent an undocumented route. The copyable prompt remains required. A selected deep dive may regenerate the report before selection. - Present the detailed summary:
- findings under every lens, including no-finding results;
- lifecycle and selected surface profiles, exclusive critical-path ranking, masked or overlapping work, ground-level build/test/tool timings, aggregate resource totals, evidence provenance, and confidence gaps;
- the HTML report path and its key impact cards, Before/After states, and available deep dives;
- exact proposed documentation additions, replacements, or removals by file;
- concise ticket summaries with all available action paths;
- report-only observations, supporting evidence, confidence, and gaps.
- Obtain exact user selections through
grilling. More detail or further grilling returns to that loop and regenerates the summary. - Apply only selected documentation changes, preserving structure and avoiding
duplication. Run only selected ticket actions through
create-issue. For each explicitly selected implement-before-next-cycle action, reuse or create the visibility issue, invoke normalimplement-issue, and remain in the retrospective until it is delivered or genuinely blocked. - Compare the result with the confirmed action set, reread edited sections, and run declared documentation checks.
- Report the HTML path, changed docs, created issue links, immediate-action delivery or blocker evidence, report-only findings, confidence limits, and observed validation. Keep workstream history in chat and remind the user they can request a deep dive by card.
Confirmation authorizes only the selected documentation and ticket actions and invocation of any explicitly selected immediate implementation through its normal workflow. It does not authorize unrelated commits, pushes, PRs, issues, or file edits. The original request to run a retrospective is not this final confirmation.