✨ feat: P-06 owner locked away: PR identity check, machine lockout
Roadmap P-06, owner locked away.
The PR identity check. A new process-rules pr-identity runs as the shared workflow's "PR identity" job on pull requests:
- Every commit that claims the agent (its login or its no-reply address) must be Verified as the agent.
- When opening a PR, or pushing to it, brings agent commits, the account that triggered it must be the agent. Agent work pushed with the owner's login fails.
- The owner may push their own commits onto an agent's pull request. After a force push, every commit counts as new.
How it runs. The workflow checks out process-rules at the input process-rules-ref (main until releases) and runs node .process-rules/src/cli.ts; Node 24 runs the TypeScript directly. onboard's client workflow now grants pull-requests: read.
Owner credentials on the Mac. session-start's lock lives in the session's environment, which a session that ignores it could change. So machine now ends by:
- offering to sign
ghout of any account other than the agent; - offering to remove a saved github.com git password from the macOS keychain;
- warning about SSH keys in
~/.sshwith no passphrase.
doctor warns about each one left. On this Mac, doctor already names the owner's gh login.
Sandbox proof: after this merges, an agent pull request there passes, and one planted agent commit pushed with the owner's login fails.
pnpm check passes. The roadmap marks P-06 shipped.
🤖 Generated with Claude Code
Summary by cubic
Ships P-06, "owner locked away": the shared workflow now checks every pull request's identity, and machine offers to lock the owner's credentials away so an agent session that ignores the session lock cannot reach them.
PR identity check
- The workflow's new
pr-identityjob runsprocess-rules pr-identity: every commit claiming the agent must be Verified as the agent and pushed by it. Agent commits pushed with the owner's login fail; the owner may still push their own commits, and after a force push every commit counts as new. - Settings come from the base branch, so a pull request cannot rename the agent it is checked against; reopening or editing brings no commits to check, and a PR with 250 or more commits fails closed.
- The workflow checks out process-rules at a new
process-rules-refinput, andonboard's client workflow now grantspull-requests: read.
Owner lockout
machineends by offering to signghout of any account other than the agent, remove a saved github.com git password from the macOS keychain, and warns about SSH keys with no passphrase.- It reads the owner's stored
ghlogins without the agent session's environment or token and checks every private key, sparing only agents' signing keys. doctorwarns about each exposure it finds.