Skip to content

Treat missing project-trust repo field as invalid - #509

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-6709-treat-missing-project-trust-repo-field-as-invalid
Aug 22, 2026
Merged

Treat missing project-trust repo field as invalid#509
TheGreatAxios merged 1 commit into
mainfrom
cl-6709-treat-missing-project-trust-repo-field-as-invalid

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

The repo-mismatch guard in readProjectTrustStore only ran when repo was present, so a store file without it was accepted as valid and its grants applied to whatever cwd hashed to that filename. Now a missing or non-string repo yields state: "invalid" and empty grants, matching valid-store behavior of requiring resolved repo === resolved cwd.

Fixes CL-6709. Stacked on #506.

https://linear.app/abklabs/issue/CL-6709

A store without repo skipped the mismatch guard entirely and was
accepted as valid, applying its grants to whatever cwd hashed to
that filename.
@linear-code

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

CL-6709

@TheGreatAxios
TheGreatAxios changed the base branch from cl-6705-make-project-trust-saves-atomic-and-serialized to main August 22, 2026 20:44
@TheGreatAxios
TheGreatAxios merged commit 0cb1571 into main Aug 22, 2026
2 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.

1 participant