Repository navigation
Authorize native Android scan marks without ancestor discovery - #6115
Conversation
…-proof # Conflicts: # packages/stim-cli/src/workspace/discovery.ts
…roof # Conflicts: # llp/0004-discovered-checkouts.decision.md # packages/stim-cli/src/__tests__/scan-target-proof.test.ts # packages/stim-cli/src/workspace/discovery.ts # packages/stim-cli/src/workspace/scan-rules.ts
Codex Adversarial ReviewTarget: branch diff against origin/main Hold the change. An in-memory check against the production code confirmed that a saved mark can pass after ordinary discovery rejects its checkout. A separate regression can prevent reclamation for a checkout that ordinary discovery still recognizes. Findings:
DispositionBoth findings confirmed and fixed. A folded spelling reuses a candidate proof only after bounded canonical identity checks; a separately observed real path keeps its own proof. An ownership parse/read failure stays local to its Gradle candidate, while cancellation and the outstanding-read slot still stop the whole operation. The malformed-ancestor/Expo-sibling regression fails on the reviewed head and passes with the fix. Real-directory fixtures cover distinct case-sensitive paths and a case-insensitive alias; this Mac passed the latter and conditionally skipped the former, which runs on case-sensitive CI. All 105 other affected tests and build/lint/types/format/Knip/RPC/API checks pass. The sole review covered |
…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
A native Android checkout found by the background scan cannot authorize its saved output marks without repeating ancestor discovery. Critical cleanup therefore keeps those marks even when the checkout still has a valid route. That hold was intentional in the targeted-scan proof until ownership could be checked without listing ancestors.
Solution
Prove conventional app ownership with bounded named manifest reads and canonical
ios/androidchecks, including aliases above the home directory. Stop at the same explicit project boundaries as normal root selection, then reuse its operation and ambiguity rules at the selected root. No ancestor listing, new discovery walk, setting or command is added. Unproved candidates cannot authorize the checkout; an independent recognized app can still prove its route. Cancellation ends the read.The normal React Native integration and this check share the app-dependency and owned-root predicate. The build-compatibility digest is regenerated; normal build behavior is unchanged.
Test plan
Fixes #6106.