Repository navigation
feat(observability): record the range a run read in its run record - #251
Merged
Merged
Conversation
The run record keeps where the range started (the previous tag, a start named with --since, or the whole history), the ref it started after, and the full hashes both ends pointed to. The same tag read over other commits is another release, and without the range such a run cannot be told apart from any other. The hashes replay the range after a tag has moved. The field arrives in schema version 2, introduced with the flag objects.
goldbarth
force-pushed
the
feat/run-record-range
branch
from
September 24, 2026 12:25
78f76d5 to
e079600
Compare
This was referenced Sep 24, 2026
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #250, which introduced run record schema version 2, and #227 and #231.
v1.9.0comparison runs recorded 19 commits, whilev1.8.0..v1.9.0holds 10 today, and nothing in those records says which range they read.range: { start, from, fromCommit, toCommit }next totag.startisprevious-tag,sinceorwhole-history, named after the CLI's options.fromis the ref as named or found.--sinceref such as a branch moves by itself.git log <fromCommit>..<toCommit>replays the range later. An annotated tag is peeled to its commit (^{commit}).GitCliCommitReaderfillsCommitRange.FromCommitandToCommit, optional init properties so the test stubs stay as they are.ToCommitis the output of therev-parse --verifythe reader already runs;fromCommitcosts one morerev-parse.startis derived, not stored twice: from the start the operator named andCommitRange.From, followingIReleaseCommitReader's contract: a named start wins, then the previous tag, then the whole history.changelog.jsonis unchanged.Verified end to end, no paid tokens: binary from this branch against local Ollama (
gemma3:12b) in a scratch clone of this repository:Every hash matches
git rev-parseof its ref in the clone.Tests:
GitCliCommitReaderTests(both ends' commits kept, annotated tag peeled, whole history has no start commit, a named start's commit),RunRecordPipelineTests(range and named start reach the record),RunRecordJsonSerializerTests(the three starts, an unknown range left out). Full suite 828 passing, build without warnings,dotnet formatclean.