Skip to content

Release Statutor 0.7.5 - #5

Merged
hoohugokim merged 1 commit into
mainfrom
release/v0.7.5
Oct 27, 2026
Merged

hoohugokim merged 1 commit into
mainfrom
release/v0.7.5

Conversation

@hoohugokim

@hoohugokim hoohugokim commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Release Statutor 0.7.5: Python and plugins 0.7.5, crate 0.1.3, npm still 0.2.0.
  • Add the Cursor adapter 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.

Test plan

  • scripts/release_gate.py --tag v0.7.5 exited 0 on this commit
  • scripts/global_e2e.py --json exited 0 against Claude 2.1.296, Codex 0.162.1, and OpenCode 2.1.1
  • GitHub checks on this pull request

Note

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.json call statutor hook, auto-detect hook_event_name, emit Cursor permission JSON (fail-open allow), and surface drift on Stop via followup_message. Worker registry gains harness id cursor.

The kernel closes 0.7.4 audit gaps: governed MultiEdit/NotebookEdit/Delete are denied when unproved; truncated apply_patch denies; invalid committed policy yields committed policy invalid in 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_patch on state files enforces task-ID rules on reconstructed content; Antigravity resolves relative TargetFile against workspace, not process CWD. Shared hook matchers add run_terminal_cmd, MultiEdit, NotebookEdit, Delete.

CLI/worker fixes preserve schema-1 registries: worker complete on an already-completed session errors with guidance instead of competing records; --home / --config-root / --state-root work before or after subcommands; statutor check returns usage 64 on bad JSON/args; Stop/doctor/worker use overwrite_bounded_filename instead of hardcoded HANDOFF.md. Rust match_rule and yaml_optional_string align 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.

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.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread core/statutor_core.py
copy_path = (
canonical in ("write", "edit")
or original in ("hashline_edit", "multiedit", "notebookedit", "delete")
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 73e837a. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a non-blocking comment: Cursor Bugbot found 1 unresolved high-severity issue (Cursor ApplyPatch bypassing policy checks), so this automation did not approve. Human review is needed, and no reviewers were assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@hoohugokim
hoohugokim merged commit f0d14d6 into main Oct 27, 2026
13 checks passed
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