Repository navigation
fix(policy): readonly lets a fetch-only command run, on cli-core 0.662.0 - #371
Merged
Merged
Conversation
cli-core 0.662.0 lets a readonly level run a command that only fetches into the store; deny still refuses it. drive checks permissions itself first, and it lifted readonly for a fetch only when the level came from setup's "read only" answer, so a profile's own sync: readonly still refused drive sync. The exception now covers any readonly level. The read-only lock stays stricter than core's and refuses every local write. sync-after-install adopts the kit's profileLevels: sync runs at the profile's readonly and is refused at deny. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
leemour
added a commit
that referenced
this pull request
Nov 14, 2026
Version 0.69.0, with the changes/ fragment collected into its changelog section. Carries cli-core 0.662.0 and the readonly fix for fetch-only commands (#371), and cli-core 0.659.0 (#370). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
@wirecat/cli-core0.662.0 (was 0.659.0 on main, 0.656.0 in the last release). Areadonlylevel no longer stops a sync or any command that only fetches into the store;denystill does.src/policy.ts,checkPolicy). It let a fetch throughreadonlyonly when the level came from setup's "read only" answer, so a profile's ownsync: readonlystill refuseddrive sync. The exception now covers anyreadonlylevel. The read-only lock is unchanged and stays stricter than core's.src/sync-after-install.test.tsadopts the kit'sprofileLevels(keys: ["sync"]): sync runs atreadonly, is refused atdeny. It failed withpolicy.deniedbefore the fix.changes/chore-cli-core-defaults.mdrewritten for 0.662.0.Testing
Locally: typecheck, lint, the full suite (56 files, 566 tests), test matrix check,
docs:check.🤖 Generated with Claude Code