Repository navigation
Release Statutor 0.7.5 - #5
Merged
Merged
Conversation
Ship Python and plugins 0.7.5 and crate 0.1.3. Map Cursor hooks onto the kernel, and close the in-loop bypasses for whole-file edits, same-entry case matching, invalid UTF-8, monotonic apply_patch task IDs, and append-only line insertions. npm stays 0.2.0.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 73e837a. Configure here.
| copy_path = ( | ||
| canonical in ("write", "edit") | ||
| or original in ("hashline_edit", "multiedit", "notebookedit", "delete") | ||
| ) |
There was a problem hiding this comment.
Cursor ApplyPatch bypasses policy checks
High Severity
The Cursor matcher invokes the hook for ApplyPatch, but _canonicalize never maps that name to apply_patch. validate then treats the event as unknown and returns no denial, so governed frozen, append-only, and state files can be rewritten in-loop. Truncated ApplyPatch input is also left unchecked.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 73e837a. Configure here.
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
Test plan
scripts/release_gate.py --tag v0.7.5exited 0 on this commitscripts/global_e2e.py --jsonexited 0 against Claude 2.1.296, Codex 0.162.1, and OpenCode 2.1.1Note
Medium Risk
Changes central hook validation, staged-policy matching, and worker completion semantics used by every adapter; regressions could allow governed-file bypasses or break CLI workflows despite broad test coverage.
Overview
Release 0.7.5 bumps Python and plugins to 0.7.5, the native crate to 0.1.3, and documents D-0030/D-0031. CI adds Python 3.15.
Cursor is wired as a first-class harness:
adapters/cursor/plus repo dogfood.cursor/hooks.jsoncallstatutor hook, auto-detecthook_event_name, emit CursorpermissionJSON (fail-openallow), and surface drift on Stop viafollowup_message. Worker registry gains harness idcursor.The kernel closes 0.7.4 audit gaps: governed MultiEdit/NotebookEdit/Delete are denied when unproved; truncated
apply_patchdenies; invalid committed policy yieldscommitted policy invalidin hooks; case variants match only the same directory entry; governed bodies must be valid UTF-8; append-only writes use a line-subsequence check;apply_patchon state files enforces task-ID rules on reconstructed content; Antigravity resolves relativeTargetFileagainst workspace, not process CWD. Shared hook matchers addrun_terminal_cmd, MultiEdit, NotebookEdit, Delete.CLI/worker fixes preserve schema-1 registries:
worker completeon an already-completed session errors with guidance instead of competing records;--home/--config-root/--state-rootwork before or after subcommands;statutor checkreturns usage 64 on bad JSON/args; Stop/doctor/worker useoverwrite_bounded_filenameinstead of hardcodedHANDOFF.md. Rustmatch_ruleandyaml_optional_stringalign with Python for case paths and optional receipt OIDs.Reviewed by Cursor Bugbot for commit 73e837a. Bugbot is set up for automated code reviews on this repo. Configure here.