Refuse path-trust migration from corrupt stores - #995
Conversation
Critic · Comment (no blockers)Refuses path-trust auto-seeding from corrupt stores and leaves the file untouched so path plugins stay metadata-only until repair or re-consent. Findings
Notes
|
|
[warden trust review] Trust verdict: APPROVE (fail-closed). The corrupt-store refusal is airtight on the reviewed path. Findings (all checked against
File-for-later (pre-existing, NOT introduced here, not blocking): cross-process TOCTOU on the missing-store leg — Not covered (so the parent does not assume closed): provider-auth and permission-gate code are untouched by this diff (touches only Tests: |
|
Critic follow-ups addressed in 6fe3571 (pushed, not merging):
Verify: bun test tests/unit/path-trust.test.ts 16 pass, 0 fail; bun run check exit 0. |
|
Warden follow-up noted in 6fe3571 (pushed, not merging): the cross-process TOCTOU on the missing-store leg is pre-existing and intentionally left as-is per the file-for-later note — out of scope for this refusal fix. The new invalid branch is unaffected (single read, synchronous return, no resolver/save/callback window). Verify: bun test tests/unit/path-trust.test.ts 16 pass, 0 fail; bun run check exit 0. |
Critic re-check · Approve6fe3571 resolves all three follow-ups with refusal semantics intact. Findings
No findings. |
Summary
Verification
bun run checkpasses (lint, typecheck, build, projects-dir-guard, 7298 tests, 0 fail)Fixes CL-6722