$ the-wire · showcase
AgentControl::new is gone, and Guard learns to survive BOMs
By RepoJournal · Filed · About Agent Security · Composed from the cited sources · methodology
The Rust policy engine drops its convenience constructor because it silently dropped the caller's limits, while Snyk's Guard starts reporting Cursor cloud sessions and stops rejecting Byte Order Marked Codex policy files.
fix(policy-engine)!: remove AgentControl::new and make the host always carry its runtime parts microsoft/agent-governance-toolkit
The pull removes AgentControl::new(runtime) and makes the host always carry its own runtime parts, because a caller-built Runtime exposes no accessor for the annotator dispatcher or Limits. Anything you built through the old constructor has to move to the new path, and the PR notes that three paths failed open, including a Transform revalidated against Limits::default() so a tightened max_snaps...
feat(guard): send X-Agent-Surface: cursor-cloud from Cursor cloud sessions snyk/agent-scan
The cursor client's hook now sends X-Agent-Surface: cursor-cloud when CURSOR_AGENT_SOCKET is set, since Cursor cloud sessions skip the specialized hooks the backend relies on to classify tool calls. Every other Cursor surface still sends no header, so the change only touches cloud sessions you already run.
[ADS-1632] Preserve UTF-8 BOM in managed Codex TOML snyk/agent-scan
Guard used to reject managed Codex requirements.toml files that begin with a UTF-8 BOM. The TOML editor now separates the BOM before parsing, then restores it on write, so install and uninstall keep the BOM, your policy text and your line endings intact.
fix(guard): read managed codex status as utf-8 snyk/agent-scan
Guard's managed Codex status check now decodes policy through the same requirements reader as everything else, so malformed policy is reported with its file path instead of a generic failure. Operators diagnosing a Codex install get an actionable error rather than a dead end.
Action items
- → Migrate any Rust AgentControl built with AgentControl::new(runtime) to the new host construction before upgrading age... microsoft/agent-governance-toolkit [plan]