Repository navigation
feat(retrospective): draft more PP Brain writes and carry pending ones forward - #57
Merged
Merged
Conversation
…in) writes Quick path now proposes org-store items instead of skipping them; the full path drafts an item for every colleague-relevant learning and asks once, batched; pending writes from the newest prior report are re-proposed; recall walks related items after a good hit. The attended ask-once gate and the unattended never-write rule are unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
alandomio
force-pushed
the
fm/retro-brain-writes
branch
from
October 7, 2026 09:50
1a77c39 to
7fa65b6
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.
Intent
Make the /retrospective skill (.agents/skills/retrospective/SKILL.md and reference.md, shared tracked firstmate material) write more to PP Brain, the org store. Five changes: (1) the quick path no longer means 'no org-store write' - it still proposes the Brain items a colleague could use, and its chat line no longer says 'no org-store write'. (2) Full path drafts a Brain item by default for every colleague-relevant learning (session case record when anything non-trivial happened, patterns/gotchas, runbook or service-card deltas, corrections to stale items found during recall), each with tags and supersedes/relates_to links, presented as ONE batched approval list; on approval write all (update_knowledge for corrections, add_knowledge for new, link_knowledge for relations). (3) Carry-forward: Step 1 reads the newest prior report and re-proposes every pending org-store write not yet written or declined, so nothing silently dies. (4) Recall: after a good search_knowledge hit call get_related_knowledge 2 or 3 times before concluding. (5) Keep existing safety rules: ask once, batched, before org-store writes when a human is present; never write unattended (draft as pending instead); sensitivity gate; no agentmemory ids in Brain bodies; never submit_session_intel. Describe the changes concisely without restating rules owned elsewhere. Constraint: no AGENTS.md edit; the publication gate stays, the change is drafting more and carrying pending writes forward.
What Changed
update_knowledge, new items withadd_knowledgeand relations withlink_knowledge. Step 1 now reads the newest prior report and proposes again any org-store write from it that was neither written nor declined.get_related_knowledge2–3 times after a goodsearch_knowledgehit before drawing a conclusion. The existing safety rules stay as they were: one batched ask before writing when a human is present, pending drafts instead of writes when unattended, the sensitivity gate, no agentmemory ids in Brain bodies, and nosubmit_session_intel.🤖 Generated with Claude Code
Risk Assessment
✅ Low: Only the skill docs change, the diff matches all five intent items and keeps the approval gate, and the two issues found are small wording ambiguities.
Testing
This change only edits the natural-language instructions of the /retrospective skill. There is no executable interface, so automated tests would only grep the prompt text, which the test-quality rule forbids. Instead I reviewed the diff by hand against each of the five required changes and the constraints. All of them are met: the 'no org-store write' text is gone, full-path drafts go in one batched list, pending writes carry forward, get_related_knowledge is called 2 or 3 times, the safety rules are kept, and AGENTS.md is untouched. I saved the diff as evidence. I did not run a real end-to-end /retrospective session, because that needs a live agent and human approval of PP Brain writes.
Evidence: Retrospective skill diff
Source: Retrospective skill diff
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
ℹ️
.agents/skills/retrospective/SKILL.md:80- The carry-forward check decides whether a pending item was 'written since' by searching the store by title. That works for new items. For a pending correction (an update_knowledge to an existing slug), the title search always finds the existing item, so an unapplied correction can be dropped as 'written'. A correction should instead be checked against the stale content, slug, or changeReason it targets.ℹ️
.agents/skills/retrospective/SKILL.md:77- The carry-forward check still decides whether a pending item was 'written since' by searching the store by title. For a pending correction (an update_knowledge to an existing slug), that search always finds the existing item, so a correction that was never applied gets dropped as 'written'. For corrections, check the target slug's current content or changeReason against the draft instead.ℹ️
.agents/skills/retrospective/reference.md:95- The text says a correction carries asupersedeslink, but in pp-brain a correction is applied in place with update_knowledge on the same slug. A supersedes link there would point the item at itself. Limitsupersedesto replacement items that get a new slug.✅ **Test** - passed
✅ No issues found.
git diff --stat cfa4ac9 1a77c39: only the two skill files changed, AGENTS.md untouchedRead the full diff and checked each of the five intent points and the safety rules against the changed textbash tests/fm-knowledge-store.test.sh: tests the knowledge-store config resolver the skill uses to pick its backend✅ No issues found.
git diff --stat 1462b91 7fa65b6(only SKILL.md and reference.md changed; no AGENTS.md)Manual review of the quick-path chat line (SKILL.md:57), full-path batched drafting (SKILL.md:159), carry-forward of pending writes in Step 1, recall with get_related_knowledge 2 or 3 times (SKILL.md:76), and reference.md write verbs (update_knowledge, add_knowledge, link_knowledge)Checked that the safety rules are still there: ask once before writing, draft as pending when unattended, sensitivity gate, no agentmemory ids, never submit_session_intel✅ **Document** - passed
✅ No issues found.
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
✅ No issues found.