Repository navigation
fix: keep read-only and keyless turns within their permission - #471
Merged
Merged
Conversation
Scheduling a prompt (CronCreate) now asks the permission a command needs, and cancelling one (CronDelete) the permission a write needs. Plan mode and headless default-mode runs refuse both. Listing stays open. The cron scheduler starts only for interactive sessions. A headless run is one turn under that turn's permission, and nothing a scheduled prompt did would reach its output stream. ProviderRequest carries the turn's permission mode. The keyless claude transport passes it as claude's own --permission-mode (plan, default, acceptEdits, bypassPermissions), so claude's settings can no longer widen a read-only turn, and a full turn is no longer refused. A request that names no mode, such as /review or /rename, runs as plan. The existing cron tests now run with full permission, which scheduling needs. New tests cover scheduling under each mode, the mode reaching the keyless transport, and headless runs not firing scheduled prompts.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 14, 2026
BunsDev
added a commit
that referenced
this pull request
Nov 15, 2026
Brings in v0.9.1, including #471, which makes the keyless transport pass each turn's permission mode to the CLI as `--permission-mode`. One conflict, in `spawn_turn` in `providers/claude_cli.rs`: both sides changed the argument list. Resolved by keeping both, main's `build_args(model, resume, permission)` followed by the policy arguments. This commit is the mechanical resolution only. The policy can still name a permission mode of its own here, which would put two on the command line, and the pipes fixture fails on that. The next commit removes the mode from the policy. Co-Authored-By: Cody <cody@opencoven.ai> Coven-Familiar: cody Coven-Harness: Claude Code / claude-fable-5-2 Signed-off-by: Val Alexander 👑 <val@opencoven.ai>
BunsDev
added a commit
that referenced
this pull request
Nov 15, 2026
Since #471 the keyless transport passes each turn's permission mode to the CLI. Coven's policy object also named one, so a policy launch would have carried `--permission-mode` twice, and which one applied depended on the CLI's argument parsing. The policy no longer names a mode. `build_args` is the only place the flag comes from, and it carries the turn's own mode. The policy object now refuses unknown fields, so a Coven that still sends `permissionMode`, or any later field this engine does not know, fails the turn instead of having part of its policy dropped. Nothing released sends the old shape. The pipes fixture checks, with and without a policy, that the CLI receives exactly one `--permission-mode`. Refs OpenCoven/coven#1738 Co-Authored-By: Cody <cody@opencoven.ai> Coven-Familiar: cody Coven-Harness: Claude Code / claude-fable-5-2 Signed-off-by: Val Alexander 👑 <val@opencoven.ai>
BunsDev
added a commit
that referenced
this pull request
Nov 15, 2026
The CLI applies allow rules in plan mode as well. Coven's policy allows `touch`, `cp`, `mv` and a few more without asking, so a read-only turn that was handed the policy could still create and move files: in a real run through Coven, `touch` wrote a file in a `plan` turn. That undoes what #471 set out to do for read-only turns. The policy object now names two settings files. A turn that reaches the CLI as `plan` gets `readOnlySettingsFile`, which carries the refusals and no allow list. Every other turn gets `settingsFile`. The field is required, and both files are checked on every turn, so a policy without the read-only file is refused instead of leaving read-only turns with the allow list. `cli_permission_mode` now maps the turn's mode in one place, for both `--permission-mode` and the choice of file. Refs OpenCoven/coven#1738 Co-Authored-By: Cody <cody@opencoven.ai> Coven-Familiar: cody Coven-Harness: Claude Code / claude-fable-5-2 Signed-off-by: Val Alexander 👑 <val@opencoven.ai>
BunsDev
added a commit
to OpenCoven/coven
that referenced
this pull request
Nov 15, 2026
The engine now passes each turn's own permission mode to Claude Code (OpenCoven/coven-code#471). `COVEN_CLAUDE_POLICY` also named one, so an engine launch would have carried `--permission-mode` twice. The policy object no longer has `permissionMode`, and the helper that mapped Coven's permission to Claude Code's name goes with it. The engine gets the permission the way it always has, as its own `--permission-mode` argument, and hands it on. The `claude` harness path is unchanged: Coven passes the mode there itself, once. The matching engine change refuses a policy that still names a mode, so the two sides cannot disagree silently. Nothing released sends the old shape. Refs #1738 Co-Authored-By: Cody <cody@opencoven.ai> Coven-Familiar: cody Coven-Harness: Claude Code / claude-fable-5-2 Signed-off-by: Val Alexander 👑 <68980965+BunsDev@users.noreply.github.com>
This was referenced Nov 15, 2026
Merged
This branch was successfully deployed
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.
Summary
claude.Changes
CronCreateasks the permission a command needs andCronDeletethe permission a write needs. Plan mode and headless default-mode runs refuse both. Listing stays open.ProviderRequestcarries the turn's permission mode, and the keylessclaudetransport passes it as--permission-mode. A request that names no mode runs as plan.tools/tests/cron_permission.rs, additions tocli/tests/engine_contract.rs, and terminal case20_scheduled_prompt.sh.Validation
cargo fmt --all -- --check: cleancargo clippy --workspace --all-targets --locked -- -D warnings(Rust 1.100.0 and 1.99.1): cleancargo test --workspace --locked --no-fail-fastwith a throwawayHOME: no failuresPart of v0.9.1.