Repository navigation
feat(tracked): add the create-time tracking gates and retirement - #20
Merged
Merged
Conversation
lstocchi
force-pushed
the
create-time-2
branch
from
November 27, 2026 15:38
6898926 to
5172880
Compare
`prepare_tracking` runs the checks that guard a re-create before the output is truncated: an existing tracked image's mounted, foreign-sidecar and unsnapshotted-work refusals, the image- and host-side overlap checks, repository discovery with the dirty check and artifact advisory, and the label (validated when explicit, derived from the image name otherwise). `retire_old_tracking` moves an owned sidecar's refs to `previous/<timestamp>/` and removes the file, while a sidecar whose UUID records another image loses only its file. The gates need no git, so a missing git cannot silently truncate a live tracked image. The types and entry points are `pub` for the create flow that lands next; the gates have library-level unit tests, including git-backed ones that skip when git is missing. Assisted-by: Claude Code: DeepSeek-V4.1-Flash Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
lstocchi
force-pushed
the
create-time-2
branch
from
November 30, 2026 08:27
5172880 to
1d16ed9
Compare
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.
prepare_trackingruns the checks that guard a re-create before the output is truncated: an existing tracked image's mounted, foreign-sidecar and unsnapshotted-work refusals, the image- and host-side overlap checks, repository discovery with the dirty check and artifact advisory, and the label (validated when explicit, derived from the image name otherwise).retire_old_trackingmoves an owned sidecar's refs toprevious/<timestamp>/and removes the file, while a sidecar whose UUID records another image loses only its file.The gates need no git, so a missing git cannot silently truncate a live tracked image. The types and entry points are
pubfor the create flow that lands next; the gates have library-level unit tests, including git-backed ones that skip when git is missing.