Skip to content

adr.retro reads the whole pull request text and knows the decisions on record - #120

Merged
Mtze merged 3 commits into
mainfrom
adr-retro-packs
Nov 29, 2026
Merged

Mtze merged 3 commits into
mainfrom
adr-retro-packs

Conversation

@Mtze

@Mtze Mtze commented Nov 29, 2026

Copy link
Copy Markdown
Member

What changes

adr.retro (4.0.0) writes the drafts of derived decisions. Four things change in what it sends to the model:

  • Whole text, cleaned first. It joins body and body_rest of a pull request, removes comments, check boxes and the sections about testing and review, and cuts to 3,000 characters after that. Before, 4,539 of 6,597 Artemis bodies hit the cut at 4,000 characters, mostly inside the template.
  • Batches by module and issue. Changes of one module stay in one batch, and so do changes that link the same issue. No group is split to fill a batch.
  • Decisions on record. Each request names up to 15 decisions that are about the same modules or topics: records the team wrote, confirmed decisions and earlier drafts. A draft says in continues which one it extends or replaces. A change that only carries out a known decision goes under repeats: no second draft, but it counts as architecture.
  • No fixed opening sentence. The page already marks every draft as a guess.

relate.adr (1.4.0) always asks about the pair a draft names in continues.

Order of the requests

Main asks all occasions of a run at the same time (0336). That does not fit "a later occasion knows the earlier drafts". This PR asks the occasions of one quarter together and the quarters one after the other. Occasions of the same quarter do not know each other's drafts. A full build takes longer than on main, a run with one or two new occasions does not.

Measured

Eight oldest occasions of Artemis (97 changes), on a copy of the board, before the merge of main: 33 drafts instead of 29, 24 with the same id, 3 with continues, 13,800 input tokens per request instead of 23,800.

For the reviewer

  • The new version asks every occasion once more. For Artemis that is about 5 USD.
  • Nobody judged the quality of the new drafts yet.
  • Four of five full batches returned 7 decisions, the cap. The cap is unchanged.
  • The list of headings that are removed fits the Artemis template.
  • The page does not show continues yet.
  • Record: docs/adr/0342. Guide: docs/decisions.md.

🤖 Generated with Claude Code

Mtze and others added 3 commits November 29, 2026 05:51
…n record

The model now gets the body of a pull request cleaned before it is cut,
batches keep one module and one issue together, and each request names
the decisions already on record. A draft can say which decision it
continues, and relate.adr always pairs the two.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ters in order

Main asks all occasions of a run at the same time. A later occasion must
know the drafts of the earlier ones, so only the occasions of one
quarter are asked together. The record moves to 0342, 0333 is taken.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Mtze
Mtze merged commit de84a7e into main Nov 29, 2026
2 of 3 checks passed
@Mtze
Mtze deleted the adr-retro-packs branch November 29, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant