DunneFlow · Working with it
Comparing two versions
Seal one snapshot, analyse another, and see which routines behave differently, not just which lines moved.
git diff tells you which lines moved, and does it better than anything else. It cannot
tell you what moves changed:
- a routine present in one version and not the other
- a routine that writes to a table it did not write to before
- a signature whose types differ
- a call that resolves in one version and not the other
- an argument a caller passes that it did not pass before
A comparison in DunneFlow states those. It also works where a diff cannot: two directories with no shared history, such as this quarter's vendor drop against last quarter's.
Getting a second version#
A program directory holds one working snapshot, which each analysis replaces. To keep two, you seal the first:
# 1. analyse the older tree
uv run dunneflow analyze ~/code/some-project-2026-09-08/src --name some-project
# 2. seal it, with a label you will recognise
uv run dunneflow revisions output/some-project \
--seal --label "some-project at f795bc3 - 2026-09-08"
# 3. analyse the newer tree into the same program
uv run dunneflow analyze ~/code/some-project/src --name some-project
With the application, drop uv run and use the program's own path, and use your maps
folder instead of output/ (see Installing).
Check what a program holds at any time:
uv run dunneflow revisions output/some-project
revision state captured files label
2026-09-10T18:48:42Z WORKING 2026-09-10T18:48:42Z 78
2026-09-10T18:48:30Z FOR_COMPARISON 2026-09-10T18:48:30Z 73 some-project at f795bc3 - 2026-09-08
Seal as many as you like; each becomes another version you can compare against.
Sealing is a command, not a button. If you analyse into a program that already has a working snapshot, the dialog warns that it will rewrite it and suggests sealing first.
Sealed snapshots from an older DunneFlow go stale. A new release refuses maps written by an earlier one, sealed snapshots included, so a pair sealed under 0.2.0 or 0.3.0 cannot be compared under 0.3.1. Rebuild it with the three commands above, oldest tree first. See Upgrading from 0.2.
Choosing the pair#
With two or more versions, the version menu appears in the top bar. Its options are
pairs: the version you are reading, which decides what the whole screen shows, and the
version it is held against, and each option names both ends, because a closed menu shows
only the option and not the group it sits in. on its own turns comparison off. A program
with two versions opens comparing them. Your choice survives a reload. The reading end is the
server's state, so a restarted server opens on the newest version again unless it is started
with --revision, and the page says which one you were last reading.
Which one is newer?#
DunneFlow reads it where the two programs say, and does not pretend to where they do
not. The only instant it records is when it read the bytes, which says nothing about when
the code is from. What a program can state is its own version, and where both ends state one
and the two can be ordered, that decides: the version strip says, for example, the compared
version is older — from their versions (0.3.0 against 0.2.0). Where they cannot be
ordered, because one end states none or both state the same, it says assuming the compared
version is newer. Hover the button for the reason in full.
Clicking the button puts your own choice in place of either, and it then begins you chose:; a third click hands the decision back to the versions. Beside it, captured: compared first (or the reverse) is a fact about when each was read, never used to decide the order. Changing the direction only relabels; nothing is re-queried.
What differs#
Open the Changes group in the navigator, or The whole comparison inside it. The bands are exclusive, so every routine that differs is in exactly one:
| Band | Meaning |
|---|---|
| only in base / only in compared | Present in one version only, headed Added or Deleted on the page by the direction in force. Routines are identified by qualified name, so a rename reads as one of each. |
| behave differently | Something it does differs: what it calls, touches, takes or returns. The band worth your time. |
| edited only | Headed Edited, behaving the same. The body changed and nothing it does did. Usually the largest band, and the least interesting. |
| explained only | Headed Explained differently. Nothing differs except the comment or docstring above it. |
Every card says what it counts, and the bands add up to the routines in the base, for example 1,158 added, 238 behave differently, 2 explained differently, 186 edited only, 968 unchanged. Deleted routines are counted beside that, in … only, so not listed here, because a list of the base cannot hold a routine the base does not have.
Alongside the bands, explained differently tags a rewritten comment or docstring on a row already in a band, and modules explained differently lists rewritten module docstrings. Prose is compared with line wrapping collapsed, so re-wrapping a comment is not a difference; docstring paragraphs are kept. Below the bands: tables and ways in that appeared or vanished, named files, and constants that arrived, went or say something different, each by name and clickable. Each list shows six and folds the rest behind a count.
Seeing the difference in the views#
- Routine list and Table mark each row with what the comparison found.
- Code draws the line difference over the source, and lists which routines behave differently and how. Lines from the other version appear where they belong, with their own numbers.
- Graph can colour by
what changed. - The anomaly worklist can say which findings the other version also has, and whose count, severity or confidence moved.
What is never done to your snapshots#
The two graphs are joined read-only for the length of a query. Neither snapshot is copied, moved or rewritten to be compared, and a sealed snapshot is never re-analysed in place. That is what makes a sealed snapshot useful: it stays readable after its source tree is gone.
For a step-by-step walk-through, see the tutorial Compare two versions.
Something unclear or out of date? Tell us.