agents: retro loop — @pm retro distills learnings into LEARNINGS.md #85

Merged
ffaerber merged 1 commits from feat/retro-learnings into main 2026-07-06 10:03:17 +02:00
Owner

Ask @pm for a retro on any issue → automation opens retro: issue #N and assigns @senior → senior reads issue+PR threads (gitea-api) and appends one-line symptom → rule bullets to LEARNINGS.md via the normal PR choreography → LEARNINGS.md is injected into every agent prompt. Also fixes the bounce counter (was counting reviews that quoted our own template — seen jumping 1/3→3/3 on PR #84).

Ask `@pm` for a retro on any issue → automation opens `retro: issue #N` and assigns @senior → senior reads issue+PR threads (gitea-api) and appends one-line `symptom → rule` bullets to `LEARNINGS.md` via the normal PR choreography → `LEARNINGS.md` is injected into every agent prompt. Also fixes the bounce counter (was counting reviews that quoted our own template — seen jumping 1/3→3/3 on PR #84).
ffaerber added 1 commit 2026-07-06 10:02:20 +02:00
agents: retro loop — "@pm retro" distills learnings into LEARNINGS.md
ci / lint (pull_request) Successful in 11s
ci / lint (push) Skipped
b40f547740
New learning step: ask @pm for a retrospective on any issue and the system
turns what happened into prompt-visible rules for future runs.

- run-agent.sh: @pm gains a RETRO marker (emit only when the maintainer asks);
  LEARNINGS.md (caller repo root, capped at 4KB) is injected into EVERY agent's
  prompt as "TEAM LEARNINGS" — the feedback loop that makes delegation more
  robust over time.
- publish.sh: on @pm's RETRO marker, open a "retro: issue #N" issue pointing at
  the issue + its PR (state=all resolve, works after merge) and trigger @senior
  on it (has gitea-api to read both threads). The retro produces a LEARNINGS.md
  PR through the NORMAL choreography (senior → pm → qa), so retros are reviewed
  like any change. Strip the RETRO marker from visible replies.
- publish.sh: bounce counter now counts only @qa-authored comments matching the
  exact trigger template — on PR #84 it jumped 1/3 → 3/3 because a qa review
  QUOTED our own "(fix attempt …)" template from the diff, halving the fix
  budget. Template + regex pinned together with a sync note.
- README: document the retro loop.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ffaerber merged commit 9073dc0406 into main 2026-07-06 10:03:17 +02:00
ffaerber deleted branch feat/retro-learnings 2026-07-06 10:03:17 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gitea/agents#85