Repository navigation
docs(tasks): file a version inventory claiming a later head - #12
Merged
adammharris merged 1 commit intoNov 9, 2026
Merged
Conversation
adammharris
deleted the
agent/backlog-file-a-version-inventory-claims-a-later-head
branch
November 9, 2026 20:02
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:
validatenever checks that the inventory in a version directory belongs to that version. Av1/inventory.jsonthat is a copy of the head's, withhead: v2and av2block, passes every checkcheck_version_inventoriesmakes (sidecar,id, spec order, each version block against the root's), so the object is reported valid.OCFL 1.1 says a version directory's inventory covers versions "up to and including that particular version" (§3.7, W010), and that
headis the highest version (§3.5.1, E040). The spec's fixtureE040_wrong_version_in_version_dir(1.0 and 1.1) is this case. The crate's fixtures test already lists it as undetected.The task is filed on its own branch so that
agent/backlog-a-version-inventory-claims-a-later-headstays free for the fix.Reproduced on
mainat f7cd8ab with the CLI built from that commit. Two commits, thencp obj/inventory.json obj/inventory.json.sha256 obj/v1/. After that,mocfl validate objandmocfl validate --deep objboth printvalidand exit 0. WithOCFL_FIXTURESset to a checkout of OCFL/fixtures,cargo test -p mocfl --test fixtureslistsE040_wrong_version_in_version_diramong the 39 bad objects not detected.Docs only.
prov checkreports one finding,about.md: not written, which is already onmain.