868commits on main
420pull requests (396 merged)
375test files, ~4,800 tests, run in CI
213numbered decision records
200SQL migrations
31tools on a remote MCP server
Counted from the main branch and GitHub on November 2, 2026. One engineer directing AI coding agents, eight months, first commit March 16, 2026.
Rule 1 · verification
No evidence, no "Live"
A feature's status can't be set to Live by hand, by me or by an agent. Only a verified run that passed every checkpoint and stored its evidence can write it, and the badge expires after seven days without a fresh pass. Each step of a verified run must produce an artifact and pass machine checks before the next step starts.
- step runs
- →
- artifact checked
- →
- evidence stored
- →
- next step
- or
- blocked, with a named reason
if (status === 'live') {
return { ok: false, error: 'Live cannot be hand-set. Only a green Tier-2 verified run writes Live (decision 0021).' };
}
// ...and a passing run without proof is rejected outright
if (passed && !evidenceRef) throw new Error('no evidence, no Live');
Rule 2 · data safety
Sensitive data only goes to models cleared for it
Before any model call, the full outbound prompt (recalled memory, CRM records, mailbox content) is classified as normal, personal or high sensitivity. The router across eight model providers then drops every provider not cleared for that level. Providers it doesn't know get nothing, models that train on prompts are always excluded, and if nothing qualifies it refuses instead of quietly downgrading.
- build prompt
- →
- classify sensitivity
- →
- drop uncleared providers
- →
- rank by cost or quality
- or
- refuse: no cleared model
export function providerAllowsSensitive(id, { operatorKey = false, attested = null } = {}) {
const p = providerById(id);
if (!p) return false; // unknown provider: fail closed
if (p.sensitiveOk === true) return true;
if (operatorKey && p.sensitiveOkOperatorKey === true) return true;
return p.attestable?.sensitive === true && attested?.sensitive === true;
}
Rule 3 · agent governance
An agent that isn't declared can't run
Every agent is declared in one registry, and a single function is the only code allowed to record an agent run. It rejects any name that isn't declared, so a stray script can't pose as an agent. Agents that are really database triggers are checked every 30 minutes against the database catalog instead of faking a heartbeat.
- agent declared
- →
- run requested
- →
- name checked against registry
- →
- run recorded
- or
- agent_not_registered
const agent = AGENTS_BY_KEY[agentKey];
if (!agent) {
throw new Error(`agent_not_registered: ${agentKey} is not declared in api/lib/agent-registry.js`);
}
Rule 4 · outside agents
Outside AI can connect, but it can't act alone
Claude and other AI clients can connect to the product over MCP as the signed-in user, through OAuth 2.1 with PKCE. Every tool is wrapped so that a tool nobody assigned a permission to requires the default scope, and every call is logged. Anything that would publish, send, spend money or reach someone outside the company lands as a draft and waits for a named person to approve it.
- client signs in
- →
- tools filtered by scope
- →
- call logged
- →
- draft awaits approval
server.tool = (name, ...rest) => {
// Fail closed: a tool nobody mapped requires 'agenda'
const need = REQUIRED_SCOPE[name] || 'agenda';
if (!hasScope(scope, need)) return undefined;
...
Rule 5 · integrations
Health checks that are forbidden to write
The platform connects to 58 outside vendors. Every connection must have exactly one nightly check plan: a hand-written smoke test, a read-only probe, or a skip with a written reason. A test fails the build if a vendor is missing a plan, or if any probe's action looks like it sends, creates or spends. The nightly result is what sets each connection's Live, simulated or broken badge.
const WRITE_PREFIXES = /^(send|create|upsert|add|push|publish|delete|update|trigger|notify|book|connect|enrich|verifyEmail)/;
assert.ok(!WRITE_PREFIXES.test(probe.action),
`${vendor}.${probe.action} is not read-class — sentinel probes must never write or spend`);
Rule 6 · transparency
A public ledger that counts the failures too
A public page shows run counts read straight from the run and status tables, with failures listed next to successes and every Live claim linked to the run that earned it. A tested function strips titles, error text and business identifiers before anything is shown.