AI Code Guardrail · Salesforce / Ops
Your agent wrote Apex at 2am. Who reviewed it?
Applied AI Engineer / AI Solutions Architect / Salesforce Platform Lead — AI agents write Apex, Flow JSON, and n8n DSL that compiles and passes unit tests but silently fails in production: SOQL inside a loop hits the 100-query governor at record 101; a hardcoded record ID breaks in every sandbox; an empty catch block swallows the DML exception. The reviewer today is a senior human staring at a screen — or nobody, and the breakage surfaces in prod.
Standard PR tools (ESLint, PMD, SonarQube) don't understand Salesforce governor limits, Flow node semantics, or n8n execution DSL. There's no deterministic, CI-gateable guardrail between an agent and production that speaks the vocabulary of the ops-code it's reviewing.
Agent ships a trigger. It passes unit tests with 50 records. At record 101 it hits the SOQL governor, the deployment fails in prod, and the on-call engineer is debugging a wall of generic errors without knowing which line caused it.
● CRITICAL · AP-001 · Line 4 — SOQL inside a loop. Passes every unit test; dies in prod at row 101 when it hits the 100-query governor. Click the finding. The code scrolls to line 4. The fix expands inline: hoist the query, collect IDs, map the results.
github.com/dallascrilley/apexlint-rules: 16 rules + passing/failing fixture pairs per rule. The claim is checkable, not asserted.Pure client-side TypeScript. No backend, no API keys, no data egress — code never leaves the tab. Apex rules use a comment-strip pre-pass + brace-depth scan + regex. Flow/n8n rules walk the parsed JSON tree. Deploys as a static Cloudflare Pages subpath.