What a changelog should explain: from file lists to user behavior

Use three changes to a fictional CSV exporter to examine useful changelog entries: who is affected, what changes, which action the consumer must take, and where verification ends.

A change description helps readers identify the action they need to take.

“Updated the exporter, changed three files, added checks” is a useful entry for finding work in repository history. It is not enough for someone installing the release. They still do not know whether their CSV will change, whether they must fix their importer, or what to do with files already stored.

A useful changelog closes the distance between a library change and a consumer's decision. It names observable behavior, explains who is affected, and identifies the next action. The technical reason matters insofar as it helps assess the impact. The list of classes can remain in development history.

Consider a fictional collection exporter. This is a teaching model, with no published package or executed upgrade. We will prepare entries for three changes so that readers can identify their own work: fixing an empty export, adding an optional mode, and renaming a column.

Write for the person accepting the upgrade

In the baseline teaching version 2.3.0, the exporter promises a CSV with id,title columns. The header row must exist even when the collection is empty. The consumer reads columns by name, not merely by position. That agreement is sufficient to explain the consequences of the following changes.

Keep a Changelog focuses the log on people and notable changes grouped by version. For our task, that means editorial selection: one behavioral change may span several commits, while an internal rearrangement of files may not need a separate user-facing entry.

Before writing, it helps to identify a specific reader. The importer developer must change the field mapping. The export operator must know which mode to choose. Someone who only downloads a completed file needs an explanation of its format. One paragraph can help all three if each action belongs to the relevant scenario, rather than an abstract instruction to “update the integration.”

The reason should also be concrete. “API unification” explains the developer's intention, but not its impact. “The importer now looks for the column under a new name” helps locate the required change. If consumers need to change nothing, say so directly and specify the supported usage for which that is true.

A fix: restore the promised behavior

Our model contains a defect: an empty collection produces an empty file even though the contract requires headers. A proposed entry for teaching version 2.3.1 could say: “An empty CSV export once again contains the id,title row. If your importer added a header to empty files itself, remove that workaround after checking the new version.”

This names the condition, the new result, and a possible action. Readers with nonempty collections do not have to guess whether every row has changed. The owner of a workaround can see the risk of a duplicate header. The entry does not promise that every third-party importer will automatically remain correct.

“Fixed export” is insufficient for this item. It is worth checking an empty collection, an ordinary collection, and a consumer with a workaround separately. This is a verification plan for the teaching case, not a report of results already obtained. If a real release checked only the generator, its conclusion should not be extended to every integration.

A fix and a need for operational attention do not contradict each other. A change may restore the declared contract while affecting consumers that adapted to the defect. A short description of the conditions warns them without overstating the scale of the problem.

A new capability: explain how to enable it

The next proposal, teaching version 2.4.0, adds the include_header configuration setting. Its default is true; setting it to false removes the header row. The other export rules remain as defined by the previous contract. This is a new format setting, not a change to the signature of a shared interface.

A useful entry says: “Added headerless export through include_header=false. Without this setting, the format is preserved. Enable the mode only for a consumer that expects data rows without column names.” The reader learns both how to use the capability and where it applies.

“We now support more formats” would conceal the central point: an existing call must not suddenly change its file. Name the default instead of making readers find it in the code. This is particularly important for the empty-collection example: with include_header=false, an empty file is now intentional, rather than a return of the previous defect.

This entry also helps readers avoid an unnecessary configuration change. A new capability does not create a mandatory migration for every consumer. It is enough to verify that the old mode remains intact and adopt the new one where there is a specific need.

An incompatible change: name the work before installation

In teaching version 3.0.0, the title column becomes headline. The field still contains the article's title, but a consumer looking for the old key will no longer find it in a new CSV with headers. An unchanged column count does not make the change invisible.

A proposed note says: “In new CSV files, the title column name has been replaced by headline. Update consumers' field mappings before switching. Existing files are not rewritten; retain support for the previous format when reading them again.” This gives both an action before the upgrade and a separate rule for historical data.

The move to 3.0.0 retains the empty-export fix and the include_header=false mode; renaming concerns the header when one is present.

A minimal change card can preserve those decisions without internal class names:

{
  "release": "3.0.0",
  "affected_contract": "csv_header",
  "column": {
    "from": "title",
    "to": "headline"
  },
  "consumer_action": "update_column_mapping",
  "existing_files": "unchanged"
}

This is a supporting editorial format, not a changelog standard or an importer. Human-readable text is still necessary: it explains who should make the change, how to recognize an old file, and what to check at the boundary. Automatically renaming historical archives would be a separate operation with its own risks; our note does not promise it.

The version, changelog, and migration serve different purposes

Under SemVer 2.0.0, the version increment relates to the declared public API: a compatible fix, a compatible addition, or an incompatible change. The chosen teaching numbers fit our contract model. A version number does not verify the implementation or replace a description of required actions.

Teaching version What changes for the consumer Their next action
2.3.1 The empty CSV header returns to the promised format Check and remove a local workaround if one exists
2.4.0 Optional headerless export becomes available Enable it only for the relevant consumer
3.0.0 The column name becomes headline Update the mapping and account for old files

A changelog provides an overview between versions. Detailed migration instructions are needed when an action involves several dependent steps or requires a transition period. Link them to the specific changelog item so that readers do not have to search every document in the project for an explanation.

If a consumer skips several releases, they need the combined impact of the chosen upgrade. The default of the new include_header parameter, a restored promise, and a renamed field do not disappear because an intermediate version was never installed. The changelog should therefore make the relevant range readable, while the migration guide explains the order of dependent actions. Copying only the latest item can conceal preparatory work.

A GitLab release description can contain Markdown text and a changelog. It is a useful place to deliver the note to readers. A release page does not by itself mean that every consumer has installed that version or completed its migration.

The verification boundary should be clear

“Everything is tested” provides little help in making a decision. For our exporter, it is more useful to know whether checks covered the empty file's shape, the old default, the new mode, and reading both column names. If consumer verification is still ahead, that must remain a visible condition of upgrading.

A public note does not need private logs, operational paths, environment configuration, or customer data. It needs a conclusion within the scenario actually checked and a clear link to available instructions. The teaching entries here describe proposed behavior; they are not evidence of a release or a successful migration.

It is also necessary to check whether the description of implementation has become mixed with future intention. A promised new mode does not become available because a paragraph appears in a changelog. An unexecuted verification plan does not become a result through a confident verb. These differences affect the reader's decision about when to upgrade.

Accept the note through the reader's decision

Editorial review can take place without a pretend package execution. Give another person only the three notes and a description of their consumer. Ask them to determine whether code must change, whether a new setting is sufficient, and whether existing files remain usable. This checks the document's clarity, not the library's compatibility.

If the text does not reveal who is affected, add the applicable condition. If the action amounts to “read the code,” explain the transition required. If a general assurance conceals an unchecked scenario, narrow it. In this form, a changelog becomes a short guide to accepting a release that readers can relate to their own products.

For our model, one final question is useful: what happens if the previous dependency is restored after new files have been created? Rolling back code does not rename columns in stored CSV files. A rollback note must therefore identify the separate behavior of the reader of historical data. That need follows directly from the contract, without an invented story about an emergency release.

An old reader that knows only title cannot read the new headline header by name. Those files need a compatible reader or a separate conversion; rolling code back does not change them.

  1. Vendors & Packages A package’s public contract extends beyond method signatures
  2. Conformance Deprecated now, removed later: managing a package API migration
  3. Conformance SemVer through a behaviour change: choosing a version without self-deception
  4. Platform Engineering Documentation has fallen behind the code: a short release review