Repository navigation
feat(memory): a Retrospective agent turns lessons into project practices every agent follows - #273
Merged
Merged
Conversation
…ces every agent follows Self-improvement, step two. After a ticket merges (MAF workflow or step by step), the Retrospective agent runs in the background on the member's computer: it reads the project's raw lessons (reviews, failing checks, failed acceptance) next to its current practices and returns the project's practices — at most 15 short, actionable, project-specific sentences — plus the lessons they now cover. - Knowledge graph: MemoryKinds.Practice (content-keyed), IMemoryStore.ListAsync(kind), ProjectMemory.PracticesBlock. - Readers: the Coding agent gets the practices before the closest lessons; the Reviewer checks the change against them (breaking one is a must-fix finding). - Guardrails (RetrospectiveService): once per project every 10 minutes, one at a time; pinned practices and lessons are never removed; only lessons the agent was shown can be cleared; an empty or failed answer changes nothing. The run is recorded in Insights; the Autopilot log says what changed. - Board › Knowledge: a Practices panel (pin to keep word for word, forget) above the lessons. - Insights › Delivery (#272) shows whether first-try passes go up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WAdQ7Rm24xss5QDSvXtJB
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
Self-improvement, step two (step one — measuring — is Insights › Delivery, #272).
After a ticket merges, the Retrospective agent (answer-only on the member's computer, $0 API) reads the project's raw lessons + current practices and returns the project's practices: ≤ 15 short, actionable, project-specific sentences, plus the lessons they now cover.
MemoryKinds.Practice(content-keyed),IMemoryStore.ListAsync(kind),ProjectMemory.PracticesBlock.RetrospectiveService): ≤ once / project / 10 min, serialized per project; pinned practices + lessons never removed; only lessons it was shown can be cleared; empty/failed answer changes nothing. Recorded in Insights; summarised in the Autopilot log.Test plan
RetrospectiveTests(8): pinned kept + only shown lessons absorbed; cap 15 + de-dupe; empty/broken → no change; fenced input; routing key; apply retires replaced, clears absorbed, never pinned; practices block./design-sync).🤖 Generated with Claude Code
https://claude.ai/code/session_018WAdQ7Rm24xss5QDSvXtJB