Skip to content

fix(verify): reject incomplete selected source inventories - #2947

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
petalas:research/selected-inventory-fail-closed
Oct 16, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
petalas:research/selected-inventory-fail-closed

Conversation

@petalas

@petalas petalas commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Summary

- Selected preflight can omit an unreadable, unlisted supplier subtree and pass
+ An opt-in source-authenticated successor propagates traversal errors
+ Both manifest layouts and contained regular-file aliases remain covered

Adds only research/selected-inventory-fail-closed/. The production checker, frozen consumers, selected record and kappa are unchanged. The traversal is entry-bounded and rejects special source files rather than ignoring them.

Investigation and claim. Exact source/assignment pins and the production-adoption handoff are included.

Evidence

Before: both actual retained CLI fixtures pass with an extra unlisted/extra.py hidden under a mode-000 directory. Restoring access exposes the inventory mismatch.

After: the successor CLI rejects the inaccessible subtree without printing success, still rejects the accessible extra file, and passes after its removal.

python3.12 -I -B research/selected-inventory-fail-closed/verify.py
python3.13 -I -B research/selected-inventory-fail-closed/verify.py
ruff check research/selected-inventory-fail-closed/*.py

All 59 groups pass without skips on Linux/WSL2, CPython 3.12.15 and 3.13.5, both normally and with -O. This includes all 26 inherited groups per engine, seven new groups, actual CLI controls and twelve injected traversal failures. Both engines pass the full 1,579-file selected source binding. Exact committed package bytes also match the tested files.

Base 95ff4e2dd396c505932a43ff7c1cdfdd94b8c867; refreshed main 4bb3629e638edc9d70ea124eb50f80e71433be05, priority revision 5. Changed archive-intake guidance was read; selected inputs and runtime sources are unchanged. Fresh overlap includes open/closed PRs and complete Discussion pagination.

Credit Douglas Colkitt, Mihir Srivastava/PR841, yssite/PR959 and Arham Tahir/PR2793. PR2921 addresses the related generated-payload comparator, not this selected source-closure boundary. Full supplier attribution is retained in the package.

Merge danger

Two-way change, confined to a new opt-in package. Default adoption needs explicit source-pin migration and maintainer review. Inputs must remain stable during checking; this is not a concurrent-writer snapshot. No generic CI replay, hosted result, full construction replay, supplier admission or new kappa is claimed.

@Mister-Meeseeks
Mister-Meeseeks merged commit a36ebe3 into CrocSwap:main Oct 16, 2026
61 checks passed
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.

2 participants