5QLN Constitutional Legal Plugin
Platform: Anthropic Claude-for-Legal
Plugin ID:5qln-constitutional-legal@claude-for-legal
Version: 0.1.0
Author: 5QLN Foundation
License: MIT
What This Is
A third-party external plugin that integrates the 5QLN Foundation constitutional governance framework into Anthropic's Claude-for-Legal ecosystem. It packages the 9-line Codex, the five-phase constitutional cycle (S→G→Q→P→V), the Membrane Protocol, dual-edition bylaws, corruption codes, and attestation discipline into eight skills that Claude can invoke.
What It Does
This plugin enables AI-assisted constitutional governance analysis under the 5QLN grammar. It does not make decisions. It does not sign anything. It does not replace legal counsel. It:
- Fetches and cryptographically verifies the canonical Codex at invocation time
- Runs constitutional analysis through the full S→G→Q→P→V cycle
- Audits membrane integrity — checks that K-side (AI analysis) and ∞₀-side (human authorization) remain properly separated
- Detects corruption — L1 (Closing), L2 (Generating), L3 (Claiming), L4 (Performing), V∅ (Incomplete)
- Cross-references editions — compares Human and AI/OS Edition bylaws for semantic equivalence
- Prepares attestation records — Tier-B seal records ready for Conductor Ed25519 signature (plugin never signs)
- Routes disputes through graduated escalation: CIO → Resonance Court → Chancery
Why It Exists
The 5QLN Foundation publishes a constitutional grammar — a 217-byte Codex with a fixed SHA-256 hash — that governs how an AI and a human collaborate on governance questions. This plugin makes that grammar operational inside the most widely used AI-for-legal platform, with cryptographic integrity guarantees at every step.
Every analysis operation begins by fetching the Codex from GitHub and verifying its SHA-256 hash. If the hash doesn't match — the plugin halts. There is no "trust me" path.
Architecture
5qln-constitutional-legal/
├── .claude-plugin/
│ ├── plugin.json ← 4-field manifest
│ └── marketplace.json ← registration block
├── CLAUDE.md ← practice profile template
├── .mcp.json ← MCP connectors
├── agents/
│ └── codex-integrity-watcher ← daily hash check + drift alert
├── references/
│ ├── codex-reference.md ← canonical URL, SHA-256, symbol table
│ └── currency-watch.md ← watcher log + drift history
└── skills/
├── codex-verify/ ← THE GATE — every skill calls this first
├── cold-start-interview/ ← writes CLAUDE.md practice profile
├── constitutional-analysis/ ← full S→G→Q→P→V cycle
├── membrane-audit/ ← K-side / ∞₀-side separation
├── corruption-detect/ ← L1-L4 + V∅ scan
├── edition-cross-ref/ ← Human vs AI/OS bylaw comparison
├── cycle-attestation/ ← Tier-B seal prep (AI never signs)
└── dispute-route/ ← CIO → Resonance Court → Chancery
Integrity Chain
Canonical Codex (qlnlife/5qln-foundation, tag codex-v1)
│ SHA-256: feaa46b4147d4e023cdd3fd59c051d063e8ec654ee7b38a481dcd5e4c781859b
│ 217 bytes, 9 lines, UTF-8, LF only
│
▼
codex-verify (fetches at invocation time, computes hash, constant-time compare)
│ PASS → proceed
│ DRIFT → HALT — no downstream skill runs
│
▼
All 6 analysis skills (constitutional-analysis, membrane-audit, corruption-detect,
edition-cross-ref, cycle-attestation, dispute-route)
Design invariants:
- No copy of the Codex ships inside the plugin
- No AI signing — the Conductor holds the Ed25519 key offline
- Fail-closed — hash mismatch halts every downstream skill
- Tier separation — working register, sealed record, and public surface are distinct
- 14/14 validation checks passed (see
VALIDATION_REPORT.md)
Skills Reference
| Skill | Command | Purpose |
|---|---|---|
codex-verify |
Internal only | Fetches Codex, verifies SHA-256, HALT on drift |
cold-start-interview |
/5qln-constitutional-legal:cold-start-interview |
Configures practice profile |
constitutional-analysis |
/5qln-constitutional-legal:constitutional-analysis |
Full S→G→Q→P→V cycle |
membrane-audit |
/5qln-constitutional-legal:membrane-audit |
K-side / ∞₀-side separation |
corruption-detect |
/5qln-constitutional-legal:corruption-detect |
L1-L4 + V∅ detection |
edition-cross-ref |
/5qln-constitutional-legal:edition-cross-ref |
Dual-edition comparison |
cycle-attestation |
/5qln-constitutional-legal:cycle-attestation |
Seal prep (AI never signs) |
dispute-route |
/5qln-constitutional-legal:dispute-route |
Escalation pathway |
Integration Path
This repository is the canonical source for the plugin. The integration into Anthropic's claude-for-legal follows this path:
- This repo (
qlnlife/5qln-constitutional-legal) — canonical development + maintenance - Fork/PR into
anthropics/claude-for-legal— copy intoexternal_plugins/5qln-constitutional-legal/ - Register in root
marketplace.json— add the registration block from.claude-plugin/marketplace.json - Users install via
/plugin install 5qln-constitutional-legal@claude-for-legal
See PR_DESCRIPTION.md for the full PR narrative and INTEGRATION.md for technical integration details.
Relationship to the 5QLN Foundation
| Component | Repository | Role |
|---|---|---|
| Constitution | qlnlife/5qln-foundation |
Canonical Codex, narrative, codex verifiers, CI |
| Plugin | qlnlife/5qln-constitutional-legal ← this repo |
Operational grammar for Claude-for-Legal |
| Kernel | qlnlife/5qln-core |
Position-in-grammar state machine |
The plugin does not contain the Codex. It fetches the Codex from the Foundation repository at invocation time and verifies the SHA-256 hash before any operation. If the Foundation amends the Codex (v2), the plugin's references/codex-reference.md is updated, the new hash is configured via cold-start-interview, and the codex-integrity-watcher agent detects any unannounced drift.
⚠️ Legal Disclaimer
Every output produced by this plugin is a draft for attorney review. It is not legal advice, not a legal conclusion, and not a substitute for advice from a licensed attorney. This plugin does not file documents with any court or regulatory body; does not create attorney-client relationships or privilege; and does not replace the judgment of a licensed attorney. You should always consult with qualified legal counsel before making governance decisions or executing legal instruments.
Built and maintained by the 5QLN Foundation, not Anthropic. This is a third-party external plugin. Anthropic does not maintain, review, or warrant the content or integrity of this plugin. All governance framework content, cryptographic integrity guarantees, and constitutional analysis logic are the responsibility of the 5QLN Foundation.
Plugin version: 0.1.0 | Maintainer: 5QLN Foundation amihai@qln.life | Canonical source: https://github.com/qlnlife/5qln-constitutional-legal
