Add step-retrospective reasoning protoco#123
Merged
Alan-Jowett merged 1 commit intomainfrom Mar 30, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new reusable reasoning protocol to PromptKit for running structured post-step retrospectives in iterative workflows, and registers it in the library manifest so it can be discovered/assembled by the bootstrap engine.
Changes:
- Added
step-retrospectivereasoning protocol with 5 explicit phases (outcome → variance → root cause → actions → apply/verify). - Updated
manifest.yamlto include the new protocol underprotocols.reasoning.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| protocols/reasoning/step-retrospective.md | New reasoning protocol describing a step-level retrospective methodology and action feedback loop. |
| manifest.yaml | Registers the new protocol so it’s discoverable by PromptKit’s component manifest. |
1d84319 to
39d0488
Compare
169fb84 to
7018e1c
Compare
New reasoning protocol for learning from execution experience in iterative workflows. After completing a step, systematically: 1. Assess outcomes (quantitative metrics vs expectations) 2. Classify variances (tooling gap, process gap, knowledge gap, external) 3. Identify root causes (5-whys, proximate vs fundamental) 4. Plan feedback actions (concrete, file-targeted, prioritized) 5. Apply and verify improvements before the next step Designed to be composable with any iterative template — the protocol converts execution experience into concrete tooling/process improvements rather than just documenting what happened. Inspired by the Cilium fork sync retrospective workflow where each merge step's findings (PREVAIL verifier issues, struct layout mismatches, build system gaps) were fed back into the agent and scripts, making each subsequent step more reliable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
7018e1c to
8091c52
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a step-retrospective reasoning protocol — a systematic methodology for learning from execution experience in iterative workflows. After completing a step, the protocol drives analysis of what happened, why it diverged from expectations, and what concrete improvements to feed back into the tooling and
process.
Closes #122
Why This Protocol?
PromptKit has protocols for quality-gating (
self-verification), multi-agent evaluation (workflow-arbitration), and document revision (iterative-refinement). But none address the feedback loop: converting execution experience into tooling improvements for the next iteration.Without this, iterative workflows repeat the same mistakes. With it, each step makes the next one better — the agent, scripts, and checklists improve as the workflow progresses.
The 5 Phases
New Components
Just 1 protocol — everything else is reused:
step-retrospectiveprotocols/reasoning/step-retrospective.mdKey Design Decisions
block(must fix now),improve(should fix),defer(document for later) — prevents both under-fixing and over-fixing.Origin
Developed during a Cilium fork synchronization effort where 8 iterative merge steps each produced findings (verifier issues, struct layout mismatches, build system gaps, test infrastructure problems) that were fed back into the merge agent, devtest scripts, and safety nets. The protocol formalizes what was
done ad-hoc into a repeatable methodology.
Validation
namefieldmanifest.yamlupdated with correct entryapplicable_toreferences valid template names