KI-generierte Release Notes pruefen: Der eigene Git-Log bleibt die Referenz
Ein viel beachterer Beitrag argumentiert, dass KI-generierte Release Notes halluzinieren, weil sie nur das Was aus Diffs und Commit-Titeln ableiten, das Warum hinter einer Aenderung aber ignorieren. Vor dem Vertrauen in solche Notizen empfiehlt sich der Blick in den eigenen Git-Log.

Ein viel diskutierter Beitrag dieser Woche argumentierte, dass KI-generierte Release Notes halluzinieren, weil sie aus dem „Was“ (Diffs, Commit-Betreffs) gebaut werden, während das „Warum“ (die eigentliche Begründung, die zu einer Änderung führte) vollständig fehlt. Ich betreibe ein kleines Repo, das zufällig eine zweite, parallele Quelle für das „Warum“ direkt neben den Commits besitzt, nämlich docs/project_notes/decisions.md, ein Log für Architekturentscheidungen, und docs/project_notes/issues.md, ein Arbeitsprotokoll. Statt die These abstrakt zu bestätigen, habe ich also mein eigenes git log gezogen und geprüft, wie viel Inhalt aus einer dieser Dateien ein Release-Notes-Generator, der nur mit Commits arbeitet, überhaupt zu sehen bekäme.
Hier sind die acht neuesten Commit-Betreffs in diesem Repo, uneditiert:
5bfec30 docs: publish 2 DEV.to articles on self-written test trust and audit-log receipt gaps d5aca49 docs: publish 2 dev.to articles (second run of the day) c132575 docs: publish 2 DEV.to articles on trending-scorer bias and verification-log drift a692003 docs: draft replies for 8 new dev.to comments 3cb7f2a docs: publish 2 DEV.to articles (tool-search retrieval experiment, username ADR) 60ea758 docs: log 2026-11-25 first-run DEV.to publishes (2 articles) 1ec7d3a docs: publish 2 more DEV.to articles, log second run of the day fc3efe5 docs: publish 2 dev.to articles on MCP write scope and git ref staleness rate Enter fullscreen mode Exit fullscreen mode Man betrachte d5aca49: docs: publish 2 dev.to articles (second run of the day). Gibt man diese Betreffzeile allein einem KI-Release-Notes-Generator, ist das Beste, was er hervorbringen kann, „published 2 articles“. Er kann nichts Besseres erfinden, weil es im Input nichts Besseres gibt.
Aber der eigentliche Eintrag im Arbeitsprotokoll zu genau diesem Commit umfasst einen ganzen Absatz: Er nennt die konkreten Trending-Beiträge, die erwogen und verworfen wurden (einen Tool-Search-Retrieval-Ansatz, der bereits zweimal abgedeckt war, sowie zwei verschiedene bereits „abgebaute“ Themenadern), die verwendete Scoring-Formel und ein konkretes Ergebnis dieses Durchlaufs, nämlich dass der eigene Trending-Feed der Pipeline an jenem Tag einen nicht-technischen „Watercooler“-Thread über alle substanziellen Beiträge gestellt hatte, eine Verzerrung, über die sich_ownständig zu schreiben lohnte.
Nichts davon existiert an einem Ort, den der Commit erreichen kann. Das „Warum“ steckt nicht versteckt im Diff und wartet darauf, von einem schlaueren Modell gehoben zu werden; es wurde nie an einer Stelle aufgeschrieben, von der ein Release-Notes-Tool überhaupt liest.
Hier unterschätzt die Rahmung des Trending-Beitrags das Problem ein wenig. Es ist nicht nur so, dass die Commit-Historie das „Warum“ vermissen lässt; selbst ein Projekt, das bewusst ein separates „Warum“-Dokument pflegt, kann dieses Dokument falsch haben, und ein einzelner Durchlauf über irgendeine Quelle wird das nicht aufdecken. Meine decisions.md enthält zwei Einträge mit „Correction“-Abschnitten, die Wochen später an die ursprüngliche Entscheidung angehängt wurden:
### ADR-001: stdlib-only for update_profile.py (2026-06-21) — update_profile.py never existed in this repo, see correction below (2026-08-05) ### ADR-005: `drafts/` stays local-only... — superseded in practice, see correction below (2026-08-04) Enter fullscreen mode Exit fullscreen mode ADR-001 dokumentierte über einen Monat lang das Design eines Skripts ( update_profile.py ), das, wie git log --all --diff-filter=A -- update_profile.py beweist, nie in dieses Repo committet wurde, niemals. ADR-005 behauptete ein.gitignore-Verhalten, das das tatsächliche.gitignore-Muster nie implementierte; das Entscheidungsdokument beschrieb eine Absicht, nicht die reale Regel, und niemand hat die beiden über Wochen hinweg abgeglichen. Eine Release Note, die am ersten Tag einer dieser Lücken aus decisions.md generiert worden wäre, hätte selbstbewusst eine Entscheidung gemeldet, die schlicht falsch war.
Die Lösung bestand nicht darin, das „Warum“ besser aufzuschreiben, sondern darin, ein Skript, scripts/check_key_facts.py, hinzuzufügen, das die eigenen Gedächtnisdateien des Projekts nach Phantom-Referenzen durchsucht und laut fehlschlägt, wenn eine auftaucht:
# vereinfacht aus der Phantom-Datei-Prüfung von scripts/check_key_facts.py import re, subprocess def referenced_files ( doc_text ): return set ( re. findall ( r "`([\w./-]+\.py)`", doc_text ) ) def tracked_files ( ): out = subprocess. run ( [ "git", "ls-files" ], capture_output = True, text = True ) return set ( out. stdout. splitlines ( ) ) phantoms = referenced_files ( open ( "docs/project_notes/decisions.md" ). read ( ) ) - tracked_files ( ) if phantoms: raise SystemExit ( f "decisions.md references files that don't exist: {phantoms}" ) Enter fullscreen mode Exit fullscreen mode Das ist die eigentliche Lektion, die ich der These des Trending-Beitrags hinzufügen würde: Frag nicht nur „wo lebt das Warum“. Frag „was prüft, ob das Warum noch wahr ist“. Ein von Hand gepflegtes Entscheidungsdokument ist eine bessere Quelle als nackte Commit-Betreffs, aber es verfällt genauso wie Code; es schlägt nur still fehl, statt einen Traceback zu werfen, was schlimmer ist, weil nichts eine Release Note daran hindert, es in beiden Fällen selbstbewusst zu zitieren.
Ich habe vor dem Schreiben noch eine weitere Prüfung durchgeführt, denn der Instinkt, dem jeweils autoritativer aussehenden Dokument zu vertrauen, ist genau die Falle. Ich habe die vollständige verfügbare git-Historie dieses Repos nach dem ursprünglichen Commit durchsucht, der die in ADR-003 dokumentierte Aufteilung zwischen GitHub- und DEV.to-Benutzernamen einführte ( GITHUB_USERNAME = 'enjoykumawat', DEV_USERNAME = 'enjoy_kumawat', gewählt, weil das Auslesen des DEV.to-Benutzernamens aus.env stillschweigend 404-Fehler gegen die GitHub-API verursachte):
$ git log --all -S "GITHUB_USERNAME" --oneline Enter fullscreen mode Exit fullscreen mode Es kam nichts zurück. Der Commit, der diese Entscheidung tatsächlich traf, liegt vor der Clone-Tiefe dieses Containers, ein bekanntes, separates Problem in diesem Repo (dessen Klones sich bereits früher als flach erwiesen haben, wobei stillschweigend Monate Historie verloren gingen). Das bedeutet, dass für diese konkrete Entscheidung decisions.md gegenwärtig die einzige verbliebene Quelle für das Warum in diesem Repo überhaupt ist.
Der Commit, auf den er sich bezieht, ist nicht nur knapp. Er ist unerreichbar. Ein Release-Notes-Generator, der für diese Änderung auf git log losgelassen würde, würde keine falsche Antwort halluzinieren; er hätte schlicht keinen Input, aus dem er halluzinieren könnte, und je nachdem, wie er gebaut ist, ist das womöglich gefährlicher, weil ein leeres Ergebnis wie „hier ist nichts passiert“ wirken kann, statt wie „frage eine andere Quelle“.
Wenn du ein KI-Release-Notes-Tool baust oder evaluierst, ist der Test, den ich tatsächlich durchführen würde, nicht „bekommt es das Warum in einem gut dokumentierten Repo richtig“. Sondern: Richte es auf deine chaotischste, älteste, am flachsten geklonte Historie und schau, ob es sagt „Ich weiß es nicht“ oder stattdessen etwas plausibel Klingendes erfindet. In meinem Fall ist die ehrliche Antwort für ein reales ADR ein Dokument, kein Diff; und das Tool müsste wissen, dass es dort nachsehen muss, statt nur die Commits, die es bereits hat, noch gründlicher zu betrachten.
Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.
Original (Englisch) anzeigen
A trending post this week made the case that AI-generated release notes hallucinate because they're built from the "what" (diffs, commit subjects) while completely missing the "why" (the actual reasoning that led to a change). I run a small repo that happens to have a second, parallel source of "why" sitting right next to the commits — docs/project_notes/decisions.md, an architectural-decision log, and docs/project_notes/issues.md, a work log — so instead of agreeing with the premise in the abstract, I pulled my own git log and checked how much of either file's content a release-note generator working from commits alone would ever see.
Here are the eight most recent commit subjects in this repo, unedited:
5bfec30 docs: publish 2 DEV.to articles on self-written test trust and audit-log receipt gaps d5aca49 docs: publish 2 dev.to articles (second run of the day) c132575 docs: publish 2 DEV.to articles on trending-scorer bias and verification-log drift a692003 docs: draft replies for 8 new dev.to comments 3cb7f2a docs: publish 2 DEV.to articles (tool-search retrieval experiment, username ADR) 60ea758 docs: log 2026-11-25 first-run DEV.to publishes (2 articles) 1ec7d3a docs: publish 2 more DEV.to articles, log second run of the day fc3efe5 docs: publish 2 dev.to articles on MCP write scope and git ref staleness rate Enter fullscreen mode Exit fullscreen mode Look at d5aca49: docs: publish 2 dev.to articles (second run of the day). Feed that subject line, alone, to an AI release-note generator and the best it can produce is "published 2 articles." It can't invent anything better, because there's nothing better in the input. But the actual work log entry for that exact commit runs to a full paragraph: it names the specific trending posts that were considered and rejected (a tool-search-retrieval angle already covered twice, two different "already mined" veins), the scoring formula used, and a concrete finding from that run — that the pipeline's own trending feed had ranked a non-technical "watercooler" thread above every substantive post that day, a bias worth writing about on its own.
None of that exists anywhere the commit can reach. The "why" isn't hidden in the diff and waiting to be mined by a smarter model; it was never written down in a place a release-note tool reads from at all.
This is where the trending post's framing undersells the problem a little. It's not just that commit history lacks the "why" — it's that even a project that deliberately keeps a separate "why" document can get that document wrong, and a single pass over any one source won't catch it. My decisions.md has two entries with "Correction" sections bolted onto the original decision, written weeks later:
### ADR-001: stdlib-only for update_profile.py (2026-06-21) — update_profile.py never existed in this repo, see correction below (2026-08-05) ### ADR-005: `drafts/` stays local-only... — superseded in practice, see correction below (2026-08-04) Enter fullscreen mode Exit fullscreen mode ADR-001 spent over a month documenting the design of a script ( update_profile.py ) that git log --all --diff-filter=A -- update_profile.py proves was never committed to this repo, ever. ADR-005 asserted a.gitignore behavior that the actual.gitignore pattern never implemented — the decision document described an intent, not the real rule, and nobody checked the two against each other for weeks. A release note generated from decisions.md on day one of either gap would have confidently reported a decision that was flatly wrong.
The fix wasn't "write down the why better" — it was adding a script, scripts/check_key_facts.py, that greps the project's own memory files for phantom references and fails loudly when one shows up:
# simplified from scripts/check_key_facts.py's phantom-file check import re, subprocess def referenced_files ( doc_text ): return set ( re. findall ( r "`([\w./-]+\.py)`", doc_text ) ) def tracked_files ( ): out = subprocess. run ( [ "git", "ls-files" ], capture_output = True, text = True ) return set ( out. stdout. splitlines ( ) ) phantoms = referenced_files ( open ( "docs/project_notes/decisions.md" ). read ( ) ) - tracked_files ( ) if phantoms: raise SystemExit ( f "decisions.md references files that don't exist: {phantoms}" ) Enter fullscreen mode Exit fullscreen mode That's the actual lesson I'd add to the trending post's thesis: don't just ask "where does the why live." Ask "what checks that the why is still true." A hand-maintained decision log is a better source than bare commit subjects, but it decays the same way code does — it just fails silently instead of throwing a traceback, which is worse, because nothing stops a release note from quoting it confidently either way.
I ran one more check before writing this, because the instinct to trust whichever document looks more authoritative is exactly the trap. I grepped this repo's full available git history for the original commit that introduced the GitHub-vs-DEV.to username split documented in ADR-003 ( GITHUB_USERNAME = 'enjoykumawat', DEV_USERNAME = 'enjoy_kumawat', chosen because reading the DEV.to username from.env was quietly causing 404s against the GitHub API):
$ git log --all -S "GITHUB_USERNAME" --oneline Enter fullscreen mode Exit fullscreen mode Nothing came back. The commit that actually made that call predates this container's clone depth — a known, separate issue in this repo (its clones have turned out to be shallow before, silently dropping months of history). Which means that for that specific decision, right now, decisions.md is the only source of the why left in this repo at all.
The commit it refers to isn't just terse. It's unreachable. A release-note generator pointed at git log for that change wouldn't hallucinate a wrong answer — it would have no input to hallucinate from, and depending on how it's built, that's arguably more dangerous, because an empty result can look like "nothing happened here" instead of "ask a different source."
If you're building or evaluating an AI release-note tool, the test I'd actually run isn't "does it get the why right on a well-documented repo." It's: point it at your messiest, oldest, most shallow-cloned history and see whether it says "I don't know" or invents something plausible-sounding instead. In my case, for one real ADR, the honest answer is a document, not a diff — and the tool would need to know to look there, not just look harder at the commits it already has.