Skip to main content
AdvancedCollaboration & OpsEst. Time: 20-30 min

Engineering Retrospectives & Outcome Tracking

Leverage durable SQLite execution history to generate evidence-backed retrospectives, measure cycle time, and reduce recurring defects.

The Problem

Sprint retrospectives often rely on vague memories, opinions, and biased impressions rather than concrete metrics on where engineering time and AI tokens were actually spent.

Who It Is For

Engineering leads, agile coaches, and teams running sprint retrospectives or continuous improvement reviews.

Prerequisites & Tools

Prerequisites Checklist:
  • History of completed tasks in ~/.devworkflow/history.sqlite3
Tool / CommandTypeRole in Tutorial
view_historymcpQuery past task durations, DoD completion rates, and next steps
build_reportmcpAggregate build durations, test failure rates, and flakiness
analyze_changemcpAnalyze technical debt priorities and improvement opportunities (mode: debt)

Example Task Contract

Exact start_task payload representing this workflow in DevWorkflow local-first governance.

AI Tool Call: start_task payload
{
  "description": "Generate sprint 46 engineering retrospective report from local DevWorkflow execution telemetry",
  "type": "other",
  "plan": [
    "Extract completed task records from SQLite history",
    "Aggregate average time from task start to completion",
    "Synthesize recurring nextSteps into prioritized technical debt items"
  ],
  "definitionOfDone": [
    "Sprint velocity and DoD pass rate calculated from empirical data",
    "Top 3 technical debt bottlenecks identified with source citations",
    "Actionable retro summary documented in engineering notes"
  ]
}

Step-by-Step Tutorial Workflow

Follow these sequential actions with validated copyable commands and expected outputs.

1

Query Task History Metrics

Inspect completed tasks over the past sprint cycle using view_history.

Code / Tool Payload
Execution Payload
// AI Tool Call: view_history
{
  "limit": 20
}
2

Analyze Technical Debt Backlog

Extract recurring nextSteps recorded during previous complete_task invocations to discover systemic debt.

Code / Tool Payload
Execution Payload
// AI Tool Call: analyze_change
{ "mode": "debt" }
3

Synthesize Retrospective Action Items

Convert verified execution evidence into actionable engineering improvements for the next sprint.

Copyable Command
Terminal Command
devwf list --json
Expected Terminal Output
Summary: 28 tasks completed, 0 unhandled regressions, 4 tech debt candidates prioritized

Verification Steps

Verify that your work genuinely satisfies the task contract before closing.

Verify all retrospective claims reference valid task IDs and outcomes in history.sqlite3

Limitations & Troubleshooting

Issue: History database moved across machines
Resolution: Use `devwf fleet status` or copy `~/.devworkflow/history.sqlite3` when migrating workstations.