Repository navigation
docs(tasks): file an unreadable file committing a partial version - #9
Merged
adammharris merged 1 commit intoNov 6, 2026
Conversation
adammharris
deleted the
agent/backlog-file-an-unreadable-file-commits-a-partial-version
branch
November 6, 2026 15:45
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.
What changed
Files one task,
docs/tasks/an-unreadable-file-commits-a-partial-version.md, and lists it indocs/tasks/tasks.md. No code changes.Why
commitinmocfl-cli/src/main.rsreads the tree throughmap_while, so the first file it can't read ends the iterator.Object::commitstill runs and takes the shorter list as the version's complete state. The command then exits 1, but a new version has already landed without that file or anything sorted after it.The earlier bytes are still in
v1, so nothing is destroyed, but the head is wrong and the error doesn't say so. Retrying lands another version. If the unreadable file sorts first, the head ends up empty without--allow-empty. A first commit leaves a partial object.How it was verified
Reproduced on
origin/mainat 03ff530 with a debug build ofmocfl-cli, running as a non-root user. That covered each case in the task: the repro above, the retry, the first-sorted file and the first commit.prov checkreports only theabout.mdfinding thatmainalready has. This is a documents-only change, so no build gate applies.The fix branch is left free as
agent/backlog-an-unreadable-file-commits-a-partial-version.