Case file 11Tooling8 min read

A public changelog with no database

A changelog as plain files in the repo, checked on every build, and a release checklist run with an AI agent.

Read by an AI voice of Sajib. Words light up as he reads.

In May 2026, the “Changelog” link in the footer of our marketing site led to a page that didn’t exist.

Our release notes did exist, but only on GitHub, and each one looked different. One release had no version number in its title. Another was called “V-0.4.0.0” but had the tag “v4.0.0.0” by mistake. Users could not see any of it.

This article is about the fix: a changelog kept as a folder of plain text files in the code repository, checked automatically on every build, and releases run from a written checklist with an AI agent’s help. It covers how it works, the mistakes I made on the way, and what still goes wrong.

The product is a social media management tool. Brands use it to plan posts, create content with AI, and publish to social platforms.

What I wanted

A changelog is a page that lists what changed in each version of a product. I wanted three things:

  • a public page that users could read
  • one place where each release is described
  • no extra system to keep running

The usual answer is a content management system (CMS). A CMS is a separate app where people write and publish content through an editor. I chose not to use one.

Why files instead of a CMS

No document in the repository explains this choice, so this is my own reasoning, written down afterwards.

A release is already an event in git. Code is merged, tagged and deployed. If the release notes live next to the code, they ship in the same commit as the change they describe and get reviewed in the same pull request.

We didn’t release often. About thirty entries in seven months doesn’t need an editor.

Files can also be checked during the build. A CMS lets you publish a broken entry. A check in the build doesn’t. And at runtime there is nothing extra: no API that can go down, and no passwords to manage.

There are real costs. Anyone who wants to publish needs to open a pull request, and fixing a typo needs a new deploy. There is no scheduling and no preview link for people who don’t write code. For a frontend team that deploys several times a week, these costs were small. For a content team that publishes every day, they would not be.

How an entry works

Each release is one Markdown file. Its name contains the version and the date, for example v_1_0_0_5_2026_10_20.md. I used underscores because dots in file names confuse some tools.

At the top of each file is a small block called frontmatter. Frontmatter is a few lines of settings, between two lines of dashes, that describe the file. Here it holds the title, the date and the version:

---
title: Talk through a comment with your team, and edit post images in a design tool
date: 2026-10-20
version: 1.0.0.5
---

Below that, the body has up to three sections: what’s new, what changed, and what’s fixed. An entry includes only the sections that have content.

When the site builds, a small loader reads every file in the folder. It checks each file with schema validation. A schema is a description of what valid data looks like, for example “the title is text and not empty” or “the version is numbers separated by dots”. Validation means comparing the real data with that description. The check uses a library called Zod.

If any entry is wrong, the build fails. The site is not deployed, and the error message names the file and the field. A broken entry can never appear on the public page.

Fig. 11.1 · A broken entry stops the build instead of reaching the public page.

Two early mistakes

My first version of the page had three sample entries with made-up version numbers. That was wrong. The numbers had nothing to do with our real releases, and sample content on a public page is a bug. The same day, I deleted them and wrote thirteen real entries instead, based on the old GitHub releases.

Months later, a QA check found placeholder text like “[TODO …]” live on some blog pages. After that, I added a CI check. CI, or continuous integration, is the system that runs automatic checks on every change. This check fails if any content file still contains placeholder text.

The second mistake was about sorting. The first loader sorted entries by date only. That worked until one busy day in October. We shipped version 1.0.0.0, and a second merge reached production the same day without an entry. I added that entry later as 1.0.0.1, with the same date.

Now two entries had the same date. Their order depended on the order in which the computer listed the files, and that order is not guaranteed. On my Mac it looked correct. On the Linux build machine, the older version could appear on top.

The fix: when two entries have the same date, the higher version comes first. I also added a test for exactly that case. I would never have seen this bug on my own laptop.

One source, several outputs

The same files now feed four places.

Fig. 11.2 · Write the entry once. Everything else reads from it.

The first is the changelog page itself. Next.js builds it once, as a static page, so it needs no server work when a user opens it.

The second is the sitemap. A sitemap is a file that tells search engines which pages a site has and when each one last changed. The changelog page uses the date of the newest entry. So search engines see the page change when a release ships, and not on every deploy.

The third is the GitHub release. Each release copies the entry’s text, word for word. The release title uses the version and the entry’s title. Once releases followed this, the messy early titles stopped.

The fourth is llms.txt. This is a simple text file that lists a site’s main pages for AI tools to read. It lists the changelog page, using the same list of pages as the sitemap. It doesn’t include the full text of each entry.

Releases with an AI agent

From August, each release ran as a task file, worked through with Claude Code, an AI coding agent. The structure stayed the same each time: the agent collected the facts, and I made the decisions.

First, the agent gathered facts from git. What was the last release? Which changes have been merged since then? Are any changes on the main branch missing from the staging branch?

It also checked for merge conflicts. A merge conflict happens when two branches change the same lines, and git can’t decide which version to keep. Git can try a merge in memory, without changing either branch. For one release, this found no conflicts, so I knew the release would be one clean merge. For another, it found 13 conflicts. All of them had the same cause, so I could resolve them together with confidence instead of one by one.

Next came the test gate. The agent ran linting, type checks and the full test suite on the merged code, followed by a production build. This is where hidden problems showed up.

Then the agent drafted the changelog entry. It followed written rules: only changes that users can see, no admin-only features, no code details, and no security details. It also listed what it left out, and why.

Last, it listed the open calls. These are the questions only I should answer, each with a recommendation. Which version number should this be? Is the wording right? Should a few smaller production merges get their own tags?

That short list was the most useful part. The draft saved time, but the list made sure I never missed a decision.

What went wrong anyway

The files are public and kept in git, so they also record my mistakes.

One entry announced a feature that was still switched off in production. The next release check flagged it. I left the old entry as it was and kept the feature out of later notes.

One entry had the wrong version. It described what production had actually shipped under the next version number. I renamed it to match.

Some releases were never tagged. A tag marks the exact commit of a release in git. Two releases shipped with entries but without a tag or a GitHub release, and I added them later. Today, two more entries are still on the public page without a matching tag. The last step of the checklist happens after I merge, and that is the step I skip.

Once, the tests were failing before a release branch even existed. One failure was a real bug: an earlier merge had removed the team section from the public About page. The release gate is where we found it.

The help centre

The same idea worked for our help centre, with one difference: the content came from somewhere else. A teammate built a support assistant that answers questions from a list of about 95 help articles. The list comes as one JSON file.

That file now lives in the repository, is validated during the build, and generates a static page for each article. The file couldn’t be trusted completely. Three answers didn’t match the product. One said signup was by invitation only, while the page’s own menu showed a Sign up button. They were corrected, with tests that fail on the original file. If someone pastes in a fresh copy later, the build breaks instead of publishing the wrong answers again without anyone noticing.

What I learned

If content ships with code, check it like code. A schema that fails the build costs less than an editor and is stricter than a human review.

Never trust the order in which files are listed. Sort them yourself, decide what happens when two items are equal, and test that case.

Let the agent collect facts and leave the decisions to a person, as a short list of named questions.

If I did this again, I would create the tag and the GitHub release automatically when a release is merged. Every missing tag came from a step that depended on me remembering. I would also check that the version in each file name matches the version in its frontmatter, which would have caught the wrong-version entry at build time.

Product names and some details are changed or left out. The engineering is real.