Repository navigation
Authorize saved scan-only output marks without parent enumeration - #6109
Conversation
…-proof # Conflicts: # packages/stim-cli/src/workspace/discovery.ts
Codex Adversarial ReviewTarget: branch diff against origin/main Hold the change. A batch can authorize a saved mark that fails the same check in isolation, and an unrelated stalled build-worker mount can block the pressure sweep. Findings:
DispositionBoth findings confirmed and fixed. Each targeted mark now has its own ancestor validation cache. Exclusions are resolved only when a requested, otherwise unproved scan member needs them, using bounded callback realpath reads; an unanswered required exclusion keeps that mark. Added normal two-sibling mutation, independently authorized route/no exclusion reads, and stalled required read regressions. All 91 affected tests and build/lint/typecheck/format/Knip/API/RPC checks pass. The original review covered 5aea79e against 8293faa. No second review under the maintainer's one-review instruction. |
…6688) * feat: remove hard-link sampling of dependency trees of unknown size A tree of unknown size now follows its step's rule: the dormant step takes a linked worktree's tree after the measured ones, and the 7-day source rule keeps a source checkout's tree. Removes link-sample.ts, its two sidecar records and the tests that only protected it, and replaces LLP 0001 "A tree of hard links stays". Refs #6685 * docs: drop stale hand-edit and #6093 text from LLP 0001 and 0004 #6639 removed the hand-edit check on dependency trees, and #6109 and #6115 closed #6093 with the saved sentinel proof for scan-only marks. Refs #6685
Description
Saved output marks for checkouts reached only by the home scan cannot currently be authorized without listing their ancestors. Critical cleanup therefore keeps them even when their original discovery evidence is unchanged.
Solution
Keep optional, shared ancestor safety evidence in the existing scan cache. Normal scanning captures directory identities before listing and confirms them before publishing. Targeted validation checks those identities and rereads the named detection sentinels through bounded reads, while retaining fresh root/nested safety checks. Missing or changed evidence keeps the mark until normal scanning refreshes it. Registration, volume, protected-location and link checks remain in force.
Native-Android candidates that require recognition outside the selected root remain kept; #6106 records that ordinary-layout limitation. No new state file, setting or critical ancestor enumeration.
Test plan
Fixes #6093. Follow-up: #6106.