Problem
Forge records workflow timing, model usage, CI repair, review cycles, blocked reasons, and post-merge summaries, but it does not systematically turn terminal workflow evidence into improvement recommendations.
Forge workflows are event-driven and resumable. Waiting for human approval/review is not terminal, and a ticket that was blocked may later be retried. A retrospective must therefore attach to the worker's lifecycle boundary without changing LangGraph routing or turning a resumable state into permanent completion.
Forge architecture boundary
- Workflow graphs produce and checkpoint delivery state.
- The worker determines whether processing reached a genuine terminal outcome.
- Retrospective generation runs after that outcome and cannot modify it.
- Jira publication is an optional side effect after the report is persisted.
- Automatic improvement-ticket creation is a separately enabled, deduplicated action.
Proposed solution
Add an opt-in retrospective service invoked by the worker for centrally defined terminal outcomes.
The initial analyzer should be deterministic and consume a typed, bounded, redacted evidence summary. A future model-backed analyzer can implement the same interface behind separate configuration.
Evidence may include:
- workflow type and terminal outcome
- elapsed time and step timing summaries
- bounded retry, CI-repair, and review-cycle counts
- blocked/error categories with redacted messages
- model token/cost summaries
- trace/artifact references rather than raw logs
Lifecycle and idempotency
- Human/approval/review waiting states are never terminal.
- Retrospective failure never changes the workflow outcome or acknowledgement behavior.
- Use a stable idempotency key derived from workflow/thread identity, terminal outcome generation, and retrospective schema/analyzer version.
- Worker restart or duplicate delivery must not duplicate reports.
- A later explicit retry that reaches a new terminal outcome may produce a new retrospective generation.
Acceptance criteria
Estimate
AI-assisted: 4–7 engineering days.
Problem
Forge records workflow timing, model usage, CI repair, review cycles, blocked reasons, and post-merge summaries, but it does not systematically turn terminal workflow evidence into improvement recommendations.
Forge workflows are event-driven and resumable. Waiting for human approval/review is not terminal, and a ticket that was blocked may later be retried. A retrospective must therefore attach to the worker's lifecycle boundary without changing LangGraph routing or turning a resumable state into permanent completion.
Forge architecture boundary
Proposed solution
Add an opt-in retrospective service invoked by the worker for centrally defined terminal outcomes.
The initial analyzer should be deterministic and consume a typed, bounded, redacted evidence summary. A future model-backed analyzer can implement the same interface behind separate configuration.
Evidence may include:
Lifecycle and idempotency
Acceptance criteria
Estimate
AI-assisted: 4–7 engineering days.