Skip to content

docs(tasks): file a version inventory claiming a later head - #12

Merged
adammharris merged 1 commit into
mainfrom
agent/backlog-file-a-version-inventory-claims-a-later-head
Nov 9, 2026
Merged

adammharris merged 1 commit into
mainfrom
agent/backlog-file-a-version-inventory-claims-a-later-head

Conversation

@adammharris

Copy link
Copy Markdown
Member

Files a task: validate never checks that the inventory in a version directory belongs to that version. A v1/inventory.json that is a copy of the head's, with head: v2 and a v2 block, passes every check check_version_inventories makes (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 head is the highest version (§3.5.1, E040). The spec's fixture E040_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-head stays free for the fix.

Reproduced on main at f7cd8ab with the CLI built from that commit. Two commits, then cp obj/inventory.json obj/inventory.json.sha256 obj/v1/. After that, mocfl validate obj and mocfl validate --deep obj both print valid and exit 0. With OCFL_FIXTURES set to a checkout of OCFL/fixtures, cargo test -p mocfl --test fixtures lists E040_wrong_version_in_version_dir among the 39 bad objects not detected.

Docs only. prov check reports one finding, about.md: not written, which is already on main.

@adammharris
adammharris merged commit f2b7fff into main Nov 9, 2026
3 checks passed
@adammharris
adammharris deleted the agent/backlog-file-a-version-inventory-claims-a-later-head branch November 9, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant