fix(supply-chain): restore simple-path authority and lock policy text - #887
fix(supply-chain): restore simple-path authority and lock policy text#887cursor[bot] wants to merge 14 commits into
Conversation
Bolt reapplied a shared (package_key, matched_count) cache on top of the already-restored simple-path walk. That cache lets one package key satisfy two owner-chain positions through a cycle. Restore path-local frozenset prevention, keep the cycle and distinct-key regressions in two test modules, drop the unauthorized pdfjs-dist Trivy ignore, and record the unsafe optimization as a rejected change. Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>
Bolt head bcf22ee replaced the validated frozenset walk with recursive DFS and deleted the cycle regressions plus the Cormen et al. (2022) simple-path citation. Restore the locked iterative walk and keep a policy-text assertion so the next rewrite cannot drop the authority. Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>
There was a problem hiding this comment.
Stale comment
Landing vehicle for the simple-path restore
Exact head
593b6fe6is thef270d3df/ #886 / #867 restore plustest_dependency_policy_documents_named_dependency_path_simple_path_authority. That policy-text lock is the reason to prefer this tree: it fails on the Bolt-deleted citation and would have blockedbcf22eeafrom dropping Cormen et al. (2022, Appendix B.4).The walk is the validated iterative path-local
frozenset. CycleFalse, distinct keysTrue, and direct("alpha", "charlie")Truewere reproduced. Mark this PR ready for review, then land it. Close #886 and #867 as the same-SHA restore without the policy lock. Do not open another restore PR. Do not merge #867 at any older DFS head.Still missing on this head: a locked assert that the cyclic fixture still matches
("alpha", "charlie"). Add that next to the existing False cycle case before treating the lock set as complete.This run cannot approve or merge. Independent review remains with seonghobae. Inherited
pdfjs-dist/CVE-2026-16633stays on #783.Sent by Cursor Automation: Fix Issues
There was a problem hiding this comment.
Keep as residual policy-text lock only
#867 exact head is now f270d3dfece13ab6d54c260b8b094e9a7335a548, the same restore this draft was opened to replace after bcf22eea. Cycle ("alpha", "alpha", "charlie") is False, distinct keys are True, and direct ("alpha", "charlie") is True on that head. This automation APPROVED #867 for that restore.
This draft's unique remaining value is test_dependency_policy_documents_named_dependency_path_simple_path_authority. That is hardening, not a second landing of the walk.
Next action: do not merge #867 and #887 as two landings. After #867 merges, either fold the policy-text lock onto develop as a follow-up or close this draft as superseded. Inherited pdfjs-dist / CVE-2026-16633 stays with #783.
Sent by Cursor Automation: Fix Issues
Preserve the canonical #867 repair while incorporating #887's additional regression that makes the documented simple-path/Cormen authority executable. The resulting tree is exactly #887's reviewed tree; both sibling repair histories remain explicit parents so no unique evidence-bearing delta is discarded.


Closed as proven superseded by canonical #867
#887 contained one useful delta beyond the already-canonicalized #886 tree: a regression that makes the documented simple-path/Cormen authority itself executable.
Immediately before consolidation:
f270d3dfece13ab6d54c260b8b094e9a7335a548;593b6fe605db4aa95f1890bf9ea7ab2aca973283, both descending frombcf22eea40d2a5a1563e738ad7a508bbd3dae565;test_dependency_policy_documents_named_dependency_path_simple_path_authority.Canonical #867 now points to merge commit
09a27eb7c1e0bd41d07c5db0b88e23fb1d4ab545with parentsf270d3df…and593b6fe6…and tree exactly equal to #887's reviewed tree (06daf864cc5961961ca810bd59fe916bb6d07964). Exact compare593b6fe6… → 09a27eb7…reports zero changed files.Therefore #887 has no remaining unique semantic/file delta outside canonical #867. No #887 checks/reviews/approval transfer; #867 must regenerate exact-current-head evidence on
09a27eb7….