Skip to content

fix(policy): block navigate in ReadOnly; trim crate description - #13

Open
Jimthetaxguy wants to merge 1 commit into
mainfrom
cursor/readonly-navigate-align-095a
Open

fix(policy): block navigate in ReadOnly; trim crate description#13
Jimthetaxguy wants to merge 1 commit into
mainfrom
cursor/readonly-navigate-align-095a

Conversation

@Jimthetaxguy

@Jimthetaxguy Jimthetaxguy commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Tiny honesty pass on main. Aligns the ReadOnly policy with SKILL.md / docs/AGENT-SURFACE.md and trims crate metadata to the shipped library.

Changes

  • ReadOnly blocks navigate. src/agent/policy.rs previously allowed ToolAction::Navigate in the ReadOnly arm. Docs say Block. Drop it from the Allow set so it falls through to Block + ReadOnlyMode.
  • Regression test in tests/action_policy.rs: readonly_mode_blocks_navigate. Existing tests did not assert Allow.
  • Crate description in root Cargo.toml: no longer claims a custom rendering engine. Now “HTTP scraper and policy-gated browser agent library.”
  • Comment trim on the HTML injection scan: keep “scan text and HTML,” drop the changelog sentence about the old text.or(html) short-circuit.

Out of scope

Proof

Ran locally on Rust 1.98.1:

  • cargo test --all-targets --locked — pass (including readonly_mode_blocks_navigate)
  • cargo clippy --all-targets --locked -- -D warnings — pass
  • Diff confined to src/agent/policy.rs, tests/action_policy.rs, and root Cargo.toml
Open in Web Open in Cursor 

ReadOnly previously allowed ToolAction::Navigate, which contradicts
SKILL.md and AGENT-SURFACE.md. Drop it from the Allow set so it Blocks
with ReadOnlyMode. Add a regression test.

Trim the root crate description to the shipped library (scraper + agent),
not a custom renderer. Drop the changelog sentence on the HTML injection scan.

Co-authored-by: Jimthetaxguy <Jimthetaxguy@users.noreply.github.com>
@Jimthetaxguy
Jimthetaxguy marked this pull request as ready for review September 12, 2026 08:25
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-12T08:27:24.480278Z c1b3418 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

2 participants