Skip to content

Audit: Rust kernel/host on main (cfccbbb) - #6

Closed
wu1w wants to merge 1 commit into
mainfrom
cursor/audit-rust-kernel-db21
Closed

Audit: Rust kernel/host on main (cfccbbb)#6
wu1w wants to merge 1 commit into
mainfrom
cursor/audit-rust-kernel-db21

Conversation

@wu1w

@wu1w wu1w commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Read-only audit of the Rust kernel/host on latest main (cfccbbb9ed3a8a489097aa3a6e42ee0049a66e43). No product or application code changes — this PR adds only docs/audit-rust-kernel-2026-08-18.md.

What was reviewed

Court/authority after the extra_roots / mcp_* / session-grant unification, process start/stop/end and detached-backend jwt_fp reuse, tool dispatch/cancel/timeout/hang, token and file_read/glob/loop-guard behavior, lock/channel/shutdown races, unwraps on library paths, and why kernel-ci is red on main.

Headlines

  • Court unification is real (Python treats Rust decide_tool as authoritative; extra_roots are path-only; session grants can upgrade ask) but half-migrated: global last-writer policy, mcp_* allow before capability, steward args still trusted, incomplete write/command lists.
  • Host availability: global write lock is held across WASM invoke and audit I/O; the 30s spawn_blocking timeout does not cancel the worker.
  • kernel-ci fails on stale loop_guard::tests::orch_window_force (expects a trip after ~3 orch rounds; production window is 6/8). Python ABI tests in that workflow never run. This PR does not fix CI.

How to read the report

Findings are ranked critical / high / medium / low with file paths and suggested fixes, plus a What looks solid section and the audited SHA.

How to tell this is done

  • PR contains only the audit markdown
  • No crates / backend / electron edits
Open in Web Open in Cursor 

Documents court unification gaps, lock/timeout races, process lifecycle,
and the stale loop_guard test that is failing kernel-ci. No product code changes.

Co-authored-by: wu1w <wu1w@users.noreply.github.com>
@wu1w wu1w closed this Aug 18, 2026
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