Skip to content

fix(policy): readonly lets a fetch-only command run, on cli-core 0.662.0 - #371

Merged
leemour merged 1 commit into
mainfrom
chore/cli-core-0.662.0
Nov 14, 2026
Merged

leemour merged 1 commit into
mainfrom
chore/cli-core-0.662.0

Conversation

@leemour

@leemour leemour commented Nov 14, 2026

Copy link
Copy Markdown
Member

What

  • @wirecat/cli-core 0.662.0 (was 0.659.0 on main, 0.656.0 in the last release). A readonly level no longer stops a sync or any command that only fetches into the store; deny still does.
  • drive runs its own permission check before cli-core's (src/policy.ts, checkPolicy). It let a fetch through readonly 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 is unchanged and stays stricter than core's.
  • src/sync-after-install.test.ts adopts the kit's profileLevels (keys: ["sync"]): sync runs at readonly, is refused at deny. It failed with policy.denied before the fix.
  • changes/chore-cli-core-defaults.md rewritten for 0.662.0.

Testing

Locally: typecheck, lint, the full suite (56 files, 566 tests), test matrix check, docs:check.

🤖 Generated with Claude Code

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>
@leemour
leemour merged commit d4a32d1 into main Nov 14, 2026
8 checks passed
@leemour
leemour deleted the chore/cli-core-0.662.0 branch November 14, 2026 06:48
@leemour leemour mentioned this pull request Nov 14, 2026
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>
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