James Schwahn
← All work

AI proposes, policy decides

Copilots that can’t publish on their own.

A publishing platform where AI only proposes and a deterministic publish policy decides. Includes an admin copilot tool loop with a spend budget, and an ads worker running an agent SDK with built-in tools removed, a tool allowlist, a pre-tool guard and an in-repo MCP server.

Role
Architect and lead engineer
Period
Oct – Nov 2026
Maturity
Production claimed
Signals
MCP · Approvals & safe execution · Cost governance · 0→1 shipping

The problem

Content and ad operations want AI throughput without letting a model push anything live that a deterministic policy wouldn’t approve.

proposalpublishCopilot / ads workerproposesMCP serverallowlisted toolsPre-tool guardbudgetPublish policydeterministicLive site
Control pointComponentExternal

What I did

  • Designed the proposal-only architecture and the deterministic publish policy.
  • Built the MCP server and the tool-guarded ads worker.
  • Shipped ~980 commits in a month with ~520 test files and CI.

Key decisions

Strip the agent SDK’s built-in tools and allowlist the rest

Default tools are designed for a developer’s laptop. A production worker should only be able to do the handful of things its job requires.

Outcome & limits

Outcome

  • Publishing pipeline with policy-gated releases; security-scan timer running.

Known limitations

  • Live deployment documented but not independently re-verified for this site; no traffic data published.

Stack

  • Next.js 16
  • Payload CMS
  • PostgreSQL
  • Claude Agent SDK
  • MCP