S
shahriar-ahmed-seam/LexCompiler
Neuro-Symbolic Law-to-AST Compiler, Microsoft Z3 Formal Verifier, 12-MCP Suite, Contextual+Graph RAG, and…
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
Install & config
Client config (built from the install command this repo gives)
{
"mcpServers": {
"shahriar-ahmed-seam-lexcompiler": {
"command": "npx",
"args": ["tsx"]
}
}
}Parsed from the README we fetched on 2026-10-28; we have not executed it.
command/args come from the install command the repository states. When it is ambiguous, the project README wins.
VS Code (.vscode/mcp.json - the key is servers)
{
"servers": {
"shahriar-ahmed-seam-lexcompiler": {
"command": "npx",
"args": ["tsx"]
}
}
}Same server, but VS Code keeps it under <code>servers</code>.
Claude Code (command line)
claude mcp add --transport stdio shahriar-ahmed-seam-lexcompiler -- npx tsx
Claude Code does not read a config file; add the server with this command.
Key names differ by client: Clients & CLI
- Star count
- 3 ★ · shahriar-ahmed-seam/LexCompiler · read from the GitHub search API · (checked 2026-11-13 20:00:50)
- Source
- read directly from its GitHub page · type: open-source project
- Harvest history
- first seen 2026-10-28 · last seen 2026-11-14 · seen 19× · listed by 1 sources
- Score
- score 103 · 3 ★ · 1 sources · repo
- Install
npx tsx
FAQ (answers come from our records)
How do I install it?
The repository provides this install command:
npx tsx. It comes from the repository itself; we cannot guarantee it runs as-is in your client.Who is it for?
We filed it under these tags: 开源项目. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository
shahriar-ahmed-seam/LexCompiler;first catalogued 2026-10-28;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.# LexCompiler
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Neuro-Symbolic Law-to-AST Compiler, SMT/Z3 Formal Verifier, and Autonomous Pull Request Enforcer
Domain: JusticeSphere AI / ComplianceOS / GovernanceIQ | Engine: Microsoft Z3 v4.13.4 + OPA Rego + Polyglot AST | Protocol: MCP JSON-RPC 2.0 (2025-03-26)
## Abstract
Enterprise software compliance suffers from a structural impedance mismatch: regulatory statutes and enterprise Data Processing Agreements (DPAs) are authored in natural language, whereas production systems execute as deterministic code and relational schemas. Legal teams interpret regulatory updates in static documents while engineering teams ship hundreds of commits per week across API routes, caching workers, and database schemas.
LexCompiler eliminates the manual translation layer between statutory text and source code. It ingests live regulatory feeds (GDPR, HIPAA, EU AI Act, CCPA/CPRA, EUR-Lex, U.S. Federal Register) and custom enterprise contracts, compiles normative clauses into modal deontic logic predicates, synthesizes machine-verifiable SMT-LIB2 assertions and Open Policy Agent (OPA / Rego) rules, and evaluates them against a repository's live Abstract Syntax Tree (AST) and SQL DDL schemas.
When a statutory clause is amended or a code commit introduces a compliance regression, LexCompiler:
1. Proves the mathematical contradiction (UNSAT) using the Microsoft Z3 Theorem Prover and extracts the minimal Unsat Core and Counterexample Witness Model.
2. Pinpoints the exact offending AST nodes and line ranges across SQL, Python, and TypeScript modules.
3. Synthesizes an AST-preserving code patch via Counterexample-Guided Inductive Synthesis (CEGIS), verifies in an isolated Z3 sandbox that the patched AST transitions from UNSAT to SAT, and commits the remediation branch with an RFC 8032 Ed25519 cryptographic conformity certificate and OASIS SARIF v2.1.0 report.
## System Architecture
mermaid
flowchart TB
subgraph L1["1. Normative & Statutory Ingestion Layer"]
EUR["EUR-Lex SPARQL / REST Feed"]
FED["U.S. Federal Register API"]
DPA["Enterprise DPA & MSA Clauses"]
BYOC["Universal BYOC Custom Prose"]
end
subgraph L2["2. Deontic & Neuro-Symbolic Compilation Layer (lex-deontic-compiler-mcp)"]
DEONTIC["Modal Deontic Extractor: O(phi), F(phi), P(phi)"]
FOL["First-Order Predicate Logic Normalizer"]
SMT["SMT-LIB2 Generator (QFLIA & QFUF Named Assertions)"]
REGO["Open Policy Agent (OPA Rego) deny[msg] Compiler"]
ASTQ["Polyglot AST & SQL DDL S-Expression Query Generator"]
end
subgraph L3["3. Polyglot AST & Runtime Introspection Layer (lex-polyglot-ast-mcp)"]
SQL["PostgreSQL / SQLite DDL Parser (schema/postgrespii.sql)"]
PY["Python 3.12 Native ast Parser (api/fastapiintake.py, workers/rediscacheworker.py)"]
TS["TypeScript 5.7 Compiler API (services/aicredittriage.ts, services/crossbordersync.ts)"]
SANDBOX["Isolated Runtime Sandbox (SQLite3 + Python 3.12 + Git Worktree)"]
end
subgraph L4["4. Formal Verification, Multi-LLM & Hybrid RAG Mesh"]
Z3["Microsoft Z3 Theorem Prover v4.13.4 (check-sat, get-unsat-core, get-model)"]
RAG["Contextual + Graph RAG (all-minilm 384-d Neural Embeddings + BM25 RRF + Neo4j Cypher)"]
LLM["Local Ollama Multi-LLM Daemon (:11434) (qwen2.5-coder:0.5b + dolphin3:latest 8B)"]
Domain: JusticeSphere AI / ComplianceOS / GovernanceIQ | Engine: Microsoft Z3 v4.13.4 + OPA Rego + Polyglot AST | Protocol: MCP JSON-RPC 2.0 (2025-03-26)
## Abstract
Enterprise software compliance suffers from a structural impedance mismatch: regulatory statutes and enterprise Data Processing Agreements (DPAs) are authored in natural language, whereas production systems execute as deterministic code and relational schemas. Legal teams interpret regulatory updates in static documents while engineering teams ship hundreds of commits per week across API routes, caching workers, and database schemas.
LexCompiler eliminates the manual translation layer between statutory text and source code. It ingests live regulatory feeds (GDPR, HIPAA, EU AI Act, CCPA/CPRA, EUR-Lex, U.S. Federal Register) and custom enterprise contracts, compiles normative clauses into modal deontic logic predicates, synthesizes machine-verifiable SMT-LIB2 assertions and Open Policy Agent (OPA / Rego) rules, and evaluates them against a repository's live Abstract Syntax Tree (AST) and SQL DDL schemas.
When a statutory clause is amended or a code commit introduces a compliance regression, LexCompiler:
1. Proves the mathematical contradiction (UNSAT) using the Microsoft Z3 Theorem Prover and extracts the minimal Unsat Core and Counterexample Witness Model.
2. Pinpoints the exact offending AST nodes and line ranges across SQL, Python, and TypeScript modules.
3. Synthesizes an AST-preserving code patch via Counterexample-Guided Inductive Synthesis (CEGIS), verifies in an isolated Z3 sandbox that the patched AST transitions from UNSAT to SAT, and commits the remediation branch with an RFC 8032 Ed25519 cryptographic conformity certificate and OASIS SARIF v2.1.0 report.
## System Architecture
mermaid
flowchart TB
subgraph L1["1. Normative & Statutory Ingestion Layer"]
EUR["EUR-Lex SPARQL / REST Feed"]
FED["U.S. Federal Register API"]
DPA["Enterprise DPA & MSA Clauses"]
BYOC["Universal BYOC Custom Prose"]
end
subgraph L2["2. Deontic & Neuro-Symbolic Compilation Layer (lex-deontic-compiler-mcp)"]
DEONTIC["Modal Deontic Extractor: O(phi), F(phi), P(phi)"]
FOL["First-Order Predicate Logic Normalizer"]
SMT["SMT-LIB2 Generator (QFLIA & QFUF Named Assertions)"]
REGO["Open Policy Agent (OPA Rego) deny[msg] Compiler"]
ASTQ["Polyglot AST & SQL DDL S-Expression Query Generator"]
end
subgraph L3["3. Polyglot AST & Runtime Introspection Layer (lex-polyglot-ast-mcp)"]
SQL["PostgreSQL / SQLite DDL Parser (schema/postgrespii.sql)"]
PY["Python 3.12 Native ast Parser (api/fastapiintake.py, workers/rediscacheworker.py)"]
TS["TypeScript 5.7 Compiler API (services/aicredittriage.ts, services/crossbordersync.ts)"]
SANDBOX["Isolated Runtime Sandbox (SQLite3 + Python 3.12 + Git Worktree)"]
end
subgraph L4["4. Formal Verification, Multi-LLM & Hybrid RAG Mesh"]
Z3["Microsoft Z3 Theorem Prover v4.13.4 (check-sat, get-unsat-core, get-model)"]
RAG["Contextual + Graph RAG (all-minilm 384-d Neural Embeddings + BM25 RRF + Neo4j Cypher)"]
LLM["Local Ollama Multi-LLM Daemon (:11434) (qwen2.5-coder:0.5b + dolphin3:latest 8B)"]
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/shahriar-ahmed-seam-lexcompiler/)
- Source
- github · https://github.com/shahriar-ahmed-seam/LexCompiler
- Browse by field
- Open source
- Traction
- 3 ★
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.