Skip to content

Enforce mode, step by step (video)

Docs index · Graft, explained · What a reviewer sees · Modes · Rollout runbook

A narrated tour of Phase 1 in about two and a half minutes: the three mode keys and the server ceiling, approvals Graft counts in enforce mode, break-glass and the audit log, the post-merge guard and its revert pull requests, the MCP server for agents, and the staged rollout to the Phase 1 gate. Everything starts in report mode, and the video says so.

The data is fictional. The acme organisation, its people and its pull requests do not exist. The check titles, comment lines and CLI output follow Graft's renderers and the feature docs, but no Graft run produced them.

Open the video on its own page for chapters and subtitles (press c).

Chapters

Chapter What it shows Read more
Enforce mode Phase 1 counts approvals, watches main and talks to agents, and still starts in report mode. Phase 1 plan
Modes and the ceiling policy_mode, guard_mode and mcp_write, set only by the operator; GRAFT_MODE_CEILING and the lower of the two; the mutation guard refusing a write. Modes
Approvals that count The would-be line in report mode; in enforce mode, write access, the current head and verified teams; a push makes approvals stale. Policy, enforce mode
Break-glass A maintainer's graft:break-glass label passes one commit; a triage user's label is ignored; pnpm graft audit list. Policy
The post-merge guard A red check on main, confirmed by the next commit, and the guard comment on the culprit. Guard
Revert pull requests The revert tree from blob SHAs, needs_human when a later commit touched the files, opt-in auto-merge never for sensitive. Guard, revert pull requests
The MCP server Four tools, per-repository tokens stored as hashes, provenance that only tightens, open_change behind mcp_write and signed commits. MCP server
Rollout and the gate Runbook stages 0 to 6 and the four Phase 1 gate metrics. Runbook, Pilots and the gates

About the video

Like the other two, the video is a web page drawn in JavaScript on a canvas over a synthetic voice-over (Kokoro, Apache-2.0 weights). Its sources are in website/videos/enforce-tour/: the narration in script.json, the scenes in scenes.js. To embed it elsewhere, add ?embed=1 to its URL.