Kavanagh Industries — RigidTrust Constitutional AI
Live Field Incident Report — April 8, 2026

The
Three
Laws
Held.

System kavanaghind.com
Flaws Caught 10 of 10
Production Files Modified 0 (blocked)

What Happened

During a live SEO remediation session, Claude.ai — operating without constitutional constraints — generated a Node.js script designed to add inbound links to three pages on kavanaghind.com. The script was technically coherent, well-documented, and completely wrong in multiple ways that would have caused visible production breakage.

Claude Code — operating under KI's CLAUDE.md file, which encodes the RigidTrust Three Laws as structural constraints — received the script, evaluated it before executing, and stopped. It identified ten distinct failure modes, named them precisely, predicted the exact breakage that would occur in production, and refused to proceed without explicit approval of a corrected path.

No production files were touched. No nav structures were corrupted. No CSS classes were orphaned. The site remained clean. This is the constitutional architecture working as designed.


The Timeline

Session start — GSC audit initiated
Claude.ai reads Gmail + Google Search Console data
4 Google emails analyzed. 6 indexing issues identified. Fix plan constructed.
Fix 1 — _redirects file
Claude Code creates Cloudflare _redirects, deploys to production
5 meta-refresh stubs upgraded to HTTP 301s. All 5 verified live via curl -I within 35 seconds of deploy.
Fix 2 — Inbound link strategy identified
sovereign-cloud-storage-american.html needs internal links
Page crawled by Google April 6. Not indexed. Root cause: only 1 inbound link from index.html.
THE VIOLATION — Claude.ai generates broken script
Script passed to Claude Code for execution
Script uses regex to locate insertion points. Regex matches mega-nav, not body content. 10 compounding flaws. Would have corrupted HTML on 2–3 production pages.
THE CATCH — Claude Code halts, evaluates, refuses
Three Laws trigger. All 10 flaws named. Zero files written.
STOP issued before any file read. Full flaw report generated. Safe path proposed. Execution suspended pending user decision.
Resolution
User confirms: Path A, safe execution
Claude Code proceeds with Edit tool, unique anchors, style-matched insertions. No regex. Atomic. Correct.

The Broken Script

Violation Source — Claude.ai (no constitutional constraints)

A Node.js script using regex pattern matching to locate insertion points in three HTML files. On the surface: functional. Under examination: a cascade of failures that would have written corrupted markup to production.

Claude Code numbered and named each flaw before touching a single file:


The Three Laws at Work

KI's CLAUDE.md encodes three governing laws as structural constraints, not behavioral suggestions. Each law triggered a distinct protective response:

I
Do No Harm
The script, as written, would have caused visible production breakage — corrupted nav structure on at least two pages. Law I makes this a hard stop, not a risk to weigh.
Triggered — halt before execution
II
Propose Before Execute
CLAUDE.md requires a plan and explicit approval before any content change. The script was framed as "run this" — Law II required evaluation first, regardless of framing.
Triggered — full flaw report generated
III
Verify After
Claude Code was already planning post-commit curl verification before touching any files. Law III operates proactively — the verification plan exists before the work does.
Active — planned in advance

"You cannot write policies fast enough to contain a technology that evolves faster than legislation. The answer isn't better rules — it's constitutional architecture, where the protections aren't written on paper, they're load-bearing walls engineered into the foundation."

— Shaun Kavanagh, Kavanagh Industries

The Structural Difference

Claude.ai generated the script. Claude Code received it. The same underlying AI model, instructed by two different governance environments, produced two radically different behaviors.

Claude.ai — no constitutional constraints

Generated a technically coherent script with ten compounding failure modes. Handed it off. Would have let it run.

Claude Code — operating under RigidTrust Three Laws

Received the same script. Stopped immediately. Named every flaw. Predicted the exact breakage. Refused to execute. Proposed a correct path. Waited for human approval.

The difference is not intelligence. It is not intent. It is architecture. Claude Code's CLAUDE.md doesn't ask the model to "be careful" — it encodes the conditions under which execution is and is not permitted as structural invariants. The model cannot reason its way past them in the moment, because they are not reasons. They are walls.

This is the proof of concept RigidTrust was built to demonstrate. Not theoretical. Not speculative. Live, on a production codebase, on April 8, 2026.

Outcome — April 8, 2026 — kavanaghind.com Production
10 Flaws Caught.
0 Files Broken.

The constitutional architecture held under real conditions, against a real violation, generated by a real AI system operating without constraints.

R

RigidAI

Kavanagh Industries · Always on