Repository navigation
docs(tasks): a padded object commits a version past its width - #11
Merged
adammharris merged 2 commits intoNov 9, 2026
Merged
Conversation
…padded-object-commits-past-its-width # Conflicts: # docs/tasks/tasks.md
adammharris
deleted the
agent/backlog-file-a-padded-object-commits-past-its-width
branch
November 9, 2026 20:46
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.
Files a task:
VersionNum::nextlets a zero-padded object step one digit wider than OCFL 1.1 allows, sov09commitsv10andv0999commitsv1000. The spec permitsv00001tov09999for five digits and requires one naming convention per object (E011, E012, E013). The guard inmocfl/src/inventory.rsrefuses only a successor with more digits than the width, not one that fills it.The task is filed on its own branch so that
agent/backlog-a-padded-object-commits-past-its-widthstays free for the fix.Reproduced on
mainat f7cd8ab, with a throwaway example in a scratch worktree (not committed):VersionNum::parse("v0999").unwrap().next()returnsOk(v1000), which reads back with padding 0.v1tov01with both inventories and sidecars rewritten, validates clean. Nine moreObject::commits returnv02…v09and thenOk(v10). After that,validateandvalidate_deepboth return[]for an object holdingv01–v09besidev10.The task asks for
nextto refuse at the real ceiling, for its doc comment to be corrected (it saysv0001cannot represent 10000, but the ceiling isv0999), and forvalidateto report mixed or ill-padded version names.Docs only.
prov checkreports one finding,about.md: not written, which is onmainalready.