The Constitutional Engineering Standard, 14-Gate Static Verifier & 5.0×–8.8× Token-Efficiency Framework for AI-Native Software Development
Drop-in support for: Claude Code · Claude.ai Skills · Cursor · OpenCode · VS Code (.vsix) · GitHub Copilot · Windsurf · Cline · Roo Code · Continue · Aider · Zed · JetBrains Junie · Gemini CLI · OpenAI Codex · Goose · MCP (stdio) · Nix Flakes · GitHub Actions
Plain-English Guide (Layman Section) · 60-Second Install · Engineering Philosophy Showcase · Measured Benchmarks · Work With Us / Hire / Partner
- The Everyday Problem: AI coding assistants frequently leave unfinished
TODOplaceholders, accidentally expose API keys, bloat files until context windows collapse, and burn 5×–8× more API tokens than necessary. - How It Works (Without the Jargon):
Build Lawgives every AI model and IDE a clear 4-Pillar, 14-Gate engineering constitution backed by a< 5 msstatic verifier ($0.00,0LLM tokens) and one-command provisioning across Claude Code, Cursor, VS Code, OpenCode, Copilot, Windsurf, and MCP. - Why It Is Different: Permissive
MITconstitutional layer paired bilaterally withnimbus²(executive commit/PR/clean-room manager) andFC-Estimator(95.0%calibrated pre-build sizing). - How It Benefits You: Builders cut AI token bills by
5.0×–8.8×while enforcing production-grade completeness, polyglot<= 8-FFP modularity, and Clean-Room secret safety. - How to Install & Use It in 60 Seconds: Install from Build Law Releases (
dpkg,rpm,.AppImage,.vsix,SKILL.md) and runbuild-law enforce-global.
🏛️ Governed by Build Law — Clean-Room Public Edition & Stakeholder Pathways
This repository ships as a PUBLIC_CLEANROOM_SEED Edition under Build Law—containing zero pre-populated personal data, zero embedded secrets, and deterministic init-clean bootstrapping (nimbus2 init-clean / build-law init-clean) so every adopter starts with a fresh, sovereign workspace of their own:
- Developers & AI Builders: Combine
FC-Estimator(95%accurate pre-build sizing),Build Law(5.0×–8.8×token efficiency across 20+ IDEs/agents), andnimbus²(nimbus2 ship+$0.0014-Gate PR review). - CTOs & B2B Engineering Leaders: Need similar
Rust/Go/Nix/Security/FinOps rigor applied to your infrastructure? Scope a fixed-price 72-HourVRTTIArchitecture Sprint at vrtti.rasaxmachina.com. - Investors, Researchers, Press & Executive Hiring Committees: Inspect cryptographic release proofs across
@Tianxia-Core, press assets in@Tianxia-Presence/brand-kit, commercial suites in@Tianxia-Revenues, and founder dossier at rasaxmachina.com/collins.
🔗 Composable Sovereign Stack — Works Natively With (@Tianxia-Core · @Tianxia-Presence · @Tianxia-Revenues)
Every tool in the RASA-X-MACHINA ecosystem is standalone (0 lock-in bloat), yet designed to compose seamlessly across pre-build sizing, IDE governance, polyglot compilation, security custody, and autonomous operations:
| Lifecycle Layer | Companion Tool(s) | How They Work Together |
|---|---|---|
| Pre-Build Sizing & FinOps | FC-Estimator (MIT) |
Sizes ceil(FC / 8) microservice bounds, active build minutes (95.0% accuracy) & 8.8× EUR token savings before coding. |
| Constitutional Governance (Current Repo) | Build Law (MIT) |
Embeds the 4-Pillar, 14-Gate rules & < 5 ms $0.00 static verifier across Claude, Cursor, VS Code, OpenCode & MCP. |
| Executive Build, PR & Proxy Manager | nimbus² (MPL-2.0) & GitGate (MIT) |
Runs gitgate / nimbus2 ship, zero-token 14-Gate review-diff, init-clean zero-PII seeding & high-concurrency TLS 1.3 proxy routing. |
| Polyglot Wire Contracts | Jivascriptocle (Apache-2.0) |
Compiles single .jiva contracts into synchronized Rust, Zig, OCaml, TypeScript, Nix & compact TOON schemas. |
| DevSecOps & Secret Enclave | AegisScan & AetherVault (MIT) |
8-domain static supply-chain/prompt-injection scanner paired with AES-256-GCM chmod 0600 runtime secret custody. |
| Sovereign OS, Firewall & Mesh | TianxiaOS · Faery-Fortress · tianxia-mobile |
Declarative NixOS operating substrate, < 4 µs AF_XDP + Rosenpass post-quantum firewall & signed Android ARM64 mesh node. |
| Intelligence, Clearing, Ledger & Logistics | Ndimmorwyn · AlatyrAtal · Tetraledger · MURUA · Scour |
Constructal -79.6% router + EjAwen CRM, 4-Stratum EFEMERA→ETAMANGA clearinghouse, 4-way x402 ledger, postal telemetry & signal radar. |
| Press Assets & B2B Sprints | @Tianxia-Presence/brand-kit & @Tianxia-Revenues |
Official vector identity/design tokens (WCAG 2.2 AA) and fixed-scope 72h VRTTI Architecture Sprints at rasaxmachina.com. |
Build Law is an open-source (MIT) constitutional engineering system and zero-token static verifier created by Collins Takem at RASA-X-MACHINA to govern how tianxiaOS and its polyglot autonomous organisms are built.
Instead of treating AI coding assistants like slot machines wrapped in vague "act as a senior engineer" prompts, Build Law binds every model, IDE, CLI agent, and CI pipeline to four hard engineering laws:
-
14-Gate Completeness (
DSS-14.2): ZeroTODOstubs, zeroeval()/shell injection, bounded loop timeouts, and explicit error recovery before a file is allowed to ship. -
Polyglot
FFP-FirstModularity (<= 8Capabilities per Service): No lazy single-language defaults—match each workload to the language built for its physics (Rust,C AVX2,eBPF,OCaml,Go,Zig,Nix,TypeScript,Python), capped at<= 8Function-Feature Pairs (FFPs) per unit so neither humans nor LLMs suffer context collapse. -
SLECO-SO++Runtime Resilience &ENHAN³: Anti-fail-fast shell execution (set +e+trapover brittleset -e), strict$O(1)/O(N)$ linear runtime bounds, exponential peer backoff, and atomic file writes. -
GDPR++< 50msCryptoshredding &5.0×–8.8×Token-Economics (VākSystem-0 Gate): Offloads deterministic filtering, deduplication, regex audits, and math out of expensive LLM tokens into< 1 ms$0.00compiled AST/SQLite tools while keeping context footprints under< 2%.
Last updated: November 17, 2026 · Cryptographically signed with Ed25519 + CycloneDX 1.5 SBOM.cdx.json.
(Written for non-specialists, founders, executives, journalists, and curious readers — zero computer-science jargon required.)
Imagine hiring a superhumanly fast construction crew that can frame a three-story building before lunch—without building codes, structural blueprints, or an electrical inspector.
From across the street, the house looks finished. Then you turn on the kitchen faucet:
- Half the outlets behind the drywall aren't wired to anything ("placeholder stubs" where the AI wrote
TODO: finish later). - Spare house keys are taped to the front window (leaked passwords and API keys).
- The load-bearing beams are made of cardboard because cardboard was the fastest material within arm's reach (using slow, fragile scripting languages for heavy infrastructure).
- Your monthly utility bill is 5× to 8× higher than quoted because the crew runs a diesel generator to boil a single cup of tea (burning paid AI reasoning tokens on simple tasks a pocket calculator or database does for
$0.00in under a millisecond).
That is the state of "vibe coding" and ungoverned AI software development today: dazzling demos on Day 1, followed by security breaches, sky-high AI bills, and unmaintainable rewrites on Day 30.
Build Law is the structural building code—plus the automated inspector—for AI-assisted engineering.
- It works across every AI model and coding tool at once. Whether you or your team use Claude, ChatGPT, Gemini, Cursor, VS Code, GitHub Copilot, OpenCode, or a brand-new coding tool released next year, Build Law speaks all of their native formats simultaneously. You install it once, and every AI assistant on your machine follows the exact same discipline.
-
It enforces real engineering rules—not wishful politeness. Most "prompt packs" politely ask an AI to "write clean code." Build Law pairs crystal-clear architectural rules with a tiny, blazing-fast inspector program (
build-law) that checks code in less than 5 milliseconds for$0.00, automatically catching unfinished placeholders, exposed secrets, dangerous commands, and brittle scripts before they ever reach customers. -
It cuts AI token & API costs by
52% to 68%(and up to99.9%on data tasks). Build Law teaches AI agents a simple rule: never burn expensive AI brainpower on work a standard database or compiled tool can do instantly for free. In live production across a 2,565-record CRM (EjAwen), switching from raw AI-prompt filtering to Build Law's deterministic query gate dropped per-query token usage from743,321tokens (~$2.23) to0tokens ($0.00) for search—and702tokens (~$0.002) when drafting tailored executive outreach. -
It keeps services small enough to understand forever. Every independent module is capped at 8 clear responsibilities (
<= 8Function-Feature Pairs). That means no tangled 50,000-line "spaghetti" monsters—ever.
- Non-Technical Founders & Solo Builders: Stop getting stuck in endless "fix one AI bug, break three other things" loops. Get complete, working, secure features on the first pass while stretching your AI subscription budget 5× to 8× further.
- Companies & Engineering Teams: Turn chaotic individual AI usage into one auditable, security-hardened standard across every developer laptop and CI server—with built-in privacy protection (
GDPR++). - Everyday ChatGPT / Claude Web Users (Zero Installation Needed): Even if you never open a code terminal, you can copy our 8-line Drop-In Prompt below into any chat window and immediately see sharper, complete, zero-fluff answers.
- Using ChatGPT, Claude.ai, Gemini, or Perplexity in your browser?
Open
prompts/CHAT_DROP_IN_PROMPT.txt, copy those 6 lines into your chat or "Custom Instructions," and start building. - Using Claude Desktop or Claude.ai Pro/Team Skills?
Download
build-law-claude-skill-v1.0.0.zipand upload it directly under Settings → Capabilities → Skills. - Using VS Code, Cursor, or Windsurf?
Download
build-law-sentinel-1.0.0.vsix→ Extensions sidebar →...→ Install from VSIX.
curl -fsSL https://raw.githubusercontent.com/Tianxia-Core/Build-Law/main/install.sh | bashInstalls the static build-law verifier binary and provisions global Build Law configs across Claude Code, OpenCode, Cursor, VS Code, GitHub Copilot, Windsurf, Cline, Roo Code, Continue, Aider, Zed, JetBrains Junie, Gemini CLI, Codex CLI, and Goose.
build-law init .
build-law check .| Format / Ecosystem | Exact Command or File in This Repo |
|---|---|
| Claude Code / Claude Skill | Copy skills/build-law/ to ~/.claude/skills/build-law/ or upload build-law-claude-skill-v1.0.0.zip |
Cursor IDE (v0.45+ MDC) |
Copy .cursor/rules/build-law.mdc into your repo or ~/.cursor/rules/ |
| OpenCode | Copy integrations/opencode/skills/build-law/ to ~/.config/opencode/skills/build-law/ + AGENTS.md |
VS Code / Cursor / Windsurf .vsix |
code --install-extension build-law-sentinel-1.0.0.vsix (from Releases or extensions/vscode-build-law/) |
| GitHub Copilot | Copy .github/copilot-instructions.md & .github/instructions/build-law.instructions.md |
| Windsurf / Cline / Roo / Continue | .windsurf/rules/build-law.md · .clinerules/01-build-law.md · .roo/rules/build-law.md · .continue/rules/build-law.md |
| Aider / Zed / JetBrains Junie / Goose | .aider.conf.yml · .rules · .junie/guidelines.md · .goosehints |
Model Context Protocol (MCP) |
Add "command": "build-law", "args": ["mcp-stdio"] to claude_desktop_config.json, mcp.json, or opencode.jsonc |
Standalone Prompts (Full / KV / Chat) |
SYSTEM_PROMPT_FULL.md · SYSTEM_PROMPT_COMPACT_KV.md · CHAT_DROP_IN_PROMPT.txt |
| Nix / NixOS Flake | nix run github:Tianxia-Core/Build-Law -- check . (flake.nix) |
Debian / Ubuntu (.deb) |
sudo dpkg -i build-law_1.0.0_amd64.deb (amd64 & arm64 on Releases) |
RHEL / Fedora / SUSE (.rpm) |
sudo rpm -Uvh build-law-1.0.0-1.x86_64.rpm (x86_64 & aarch64 on Releases) |
Universal Linux .AppImage & .tar.gz |
chmod +x Build-Law-1.0.0-x86_64.AppImage && ./Build-Law-1.0.0-x86_64.AppImage check . · build-law-v1.0.0-*.tar.gz |
Windows (PE32+ .exe) & Android (.apk) |
build-law-v1.0.0-windows-x86_64.exe & build-law-v1.0.0-android-arm64.apk + Termux aarch64 binary |
| GitHub Actions CI Gate | uses: Tianxia-Core/Build-Law@v1 (action.yml) |
Build Law was not invented in an ivory tower or synthesized from blog posts. It is the working constitution forged by Collins Takem across three converging disciplines:
- 10+ Years on High-Stakes FinTech Incident & Ledger Forensics Front Lines (Blockchain.com, CoinLedger, SQUIRE) — diagnosing exactly how distributed payment rails, cryptographic custody systems, and production services fail at 3:00 AM when real capital and adversarial actors collide.
- Formal Mathematical Rigor — completing a Dual Major in Pure Mathematics & Computer Science at SUNY (
4.00 / 4.00GPA) in parallel with full-time frontline engineering, treating software systems as composable algebraic invariants rather than ad-hoc glue. - Sovereign Operating Substrate Execution (
tianxiaOS, Genesis16 April 2026, Tallinn, Estonia) — orchestrating a multi-node heterogeneous mesh (NixOS, Debian cloud relays, and mobile ARM64 nodes) spanningRust,C (AVX2 SIMD),eBPF/AF_XDP,OCaml,Zig,Go,TypeScript, andPythonacross 28 live web applications and1,077verified Function-Feature Pairs.
Every rule in Build Law exists because its absence caused a real failure mode in distributed systems or autonomous agent execution:
Conventional engineering specifications describe what a feature should return when everything goes right. Build Law requires every unit to satisfy 14 orthogonal operational lenses simultaneously:
- Severance (
Kālī): ZeroTODO/FIXME/unimplemented!()stubs; explicit memory & cache eviction. - Containment (
Bhairavī): Capability gates,chmod 0600secret isolation,MemoryMaxcgroup v2 caps, andNoNewPrivileges=yes. - Innocence (
Pratyaṅgirā): Zeroeval(), zero shell-string injection, active rate-limit & thermal circuit breakers. - Loop & Failure Discipline (
Bāgalamukhī&Tārā): Bounded timeouts on every socket/loop; structured error logging without silent exception swallowing. - Environment Humility & Truthful Provenance (
Bhuvanēśvarī,Dhūmāvatī,Mahāsarasvatī): Runtime environment discovery over hardcoded host assumptions, paired with SHA-256/Blake3 hash-chained audit logs.
AI coding agents default lazily to Python or JavaScript for everything—even when building a Wayland compositor, a shared-memory ring buffer, or a packet filter. Build Law decomposes every system into atomic Function-Feature Pairs (FFPs), selects the language whose runtime physics earn immediate trust for that capability (Rust/Zig/C for codecs and daemons, OCaml/Rust for formal capability proxies, eBPF/C for kernel packet gates, Nix for hermetic infrastructure), and enforces a hard ceiling of <= 8 FFPs per standalone service. Why 8? Because above 8 coupled responsibilities, cyclomatic coupling explodes and LLM reasoning accuracy degrades sharply.
Most production shell outages trace back to a single anti-pattern: slapping set -e at the top of a script so a transient network hiccup kills the process mid-write, leaving corrupted state and zombie children. SLECO-SO++ enforces set +e with explicit exit-code verification, trap cleanup handlers, native shell parameter expansion (${var##*/} over spawning subshells in loops), temp-file + rename state updates. Every FFP is upgraded across Resilience, Performance, and Security (ENHAN³) prior to release.
-
GDPR++(< 50msPost-Quantum Ephemeral Key Cryptoshredding): Instead of waiting 30 days to scrub backups manually under GDPR Art. 17, Build Law isolates per-subject PII behind out-of-tree ephemeral key envelopes (0600). Destroying a subject's key takes< 50 ms(0.46 msmeasured inEjAwen) and emits a verifiable SHA-256 Merkle erasure receipt. -
The
VākSystem-0 Deterministic Bypass ($0.00,0Tokens): Build Law treats token runway as sovereign capital. Anything deterministic—query parsing, FTS5 search, spreadsheet compilation, deduplication, checksum comparison, static linting—executes in compiledRust/Go/SQLitetools at$0.00token cost, projecting< 2%schema digests into the LLM only when genuine synthesis is required, pinned behind byte-stable KV-cached system prefixes (75%–90%cache hit discount).
flowchart LR
S1["1. Scour
(Real-Time Signals)"] --> S2["2. Mine
(Rank = P+C+A+E+F)"]
S2 --> S3["3. Decompose
(<=8 Polyglot FFPs)"]
S3 --> S4["4. Gate
(14-Lens Check)"]
S4 --> S5["5. Package
(Ed25519 Signed Formats)"]
S5 --> S6["6. Deploy
(CLI · Web · TUI · GUI)"]
S6 --> S7["7. Attest
(Merkle Audit Seal)"]
S7 -.-> S1
Every claim below is measured directly against live production subsystems in the @Tianxia-Core ecosystem:
| Engineering Dimension | Ungoverned / Pre-Ratchet Baseline | Under Build Law (v5.1) |
Verified Production Impact |
|---|---|---|---|
Structured CRM / Data Query (2,565 Entities) |
Raw corpus prompt scan (743,321 tokens ≈ $2.23/call) |
Vāk Rust AST → SQLite FTS5 (0 LLM tokens; 40–107 µs parse) |
100% token elimination ($0.00) |
| LLM-Assisted Executive Outreach Slice |
136,346–743,321 raw context tokens |
Schema-first top-5 JSON projection (702 tokens ≈ $0.0021) |
194×–1,059× context & cost reduction |
| End-to-End Multi-File Agentic Build Sessions | Unbatched edits, full-file re-reads, uncached prompts (1.0×) |
Parallel tool batching + <=250-line reads + KV-cache prefix (5.0×–8.8×) |
80%–88% lower cost per shipped feature |
Multi-Agent Burst Inference (Ndimmôrwyn, n = 2,722) |
Naive round-robin API calls (frequent HTTP 429 drops; €5,824/mo) |
Constructal Sine-Meander 4-Tier Router (€1,190/mo) |
0.00% HTTP 429 drops · -79.6% LLM OpEx |
Right-to-Erasure SLA (GDPR++) |
Manual DB & backup scrubbing (days to 30-day statutory limit) |
Out-of-tree 0600 ephemeral envelope key destruction + Merkle receipt |
0.46 ms verified (< 50 ms constitutional SLA) |
| Static 14-Gate Repository Verification | Conversational LLM code review (10k–80k tokens; 15–45 s) |
Native build-law check . static Go binary (< 5 ms; 0 tokens) |
Instant deterministic CI/pre-commit gate |
Build Law is open-sourced under MIT both to raise the floor of AI-native software engineering globally and to give partners, clients, investors, journalists, and hiring committees direct, runnable proof of how Collins Takem and RASA-X-MACHINA architect systems:
- 🏢 For CTOs, VPs of Engineering & Enterprise Teams (
72-Hour VRTTI Architecture Sprints): Need to slash runaway LLM/cloud OpEx by50%–80%, eliminate agentic security/secret-leak risks, or migrate fragile Python prototypes into hardenedRust/Go/Nixmicroservices? Scope a bounded, fixed-price 72-Hour VRTTI Integration Sprint or Principal Architecture Retainer at vrtti.rasaxmachina.com or rasaxmachina.com. - 📈 For Venture Investors, Family Offices & Institutional Evaluators:
Explore how Build Law compounds unit economics (
MIF+50near-zero marginal infrastructure cost,5.0×–8.8×R&D capital stretch, andGDPR++2030 regulatory moat) across our 14-repo sovereign stack at estonia.rasaxmachina.com and rasaxmachina.com. (Regulatory Candor: Estonian Startup Visa Application#179423under active Startup Committee evaluation pursuant to Estonian Aliens ActVMS § 62⁴(2) & § 192; proposed Tallinn corporate entity upon approval:RASA-X-MACHINA OÜ.) - 🎯 For Executive Hiring Committees & Technical Co-Founder Mandates (Principal / Staff / Fractional CTO):
Inspect the code, cryptographic release pipelines, and mathematical systems lineage directly in this repository, across
@Tianxia-Core, and in Collins Takem's executive dossier at rasaxmachina.com/collins. - 🔬 For Academic Researchers & Tech Journalists:
Cite this work via
CITATION.cff("Cite this repository" in the GitHub sidebar), ingestllms.txt/llms-full.txtfor RAG/AEO pipelines, and access official high-resolution logos, founder bio, and press assets at rasaxmachina.com/press (@Tianxia-Presence/brand-kit). Follow architectural dispatches on X: @coltakrasax · @rasaxmachina · @tianxiaos.
Every release artifact on GitHub Releases is deterministically built and signed with the RASA-X-MACHINA Ed25519 Release Key:
# 1. Verify SHA-256 checksums
sha256sum -c SHA256SUMS --ignore-missing
# 2. Cryptographically verify the signed checksum manifest with OpenSSL 3.x
openssl pkeyutl -verify -pubin -inkey RELEASE_SIGNING_KEY.pub.pem \
-rawin -in SHA256SUMS -sigfile SHA256SUMS.sigPrompt lists only offer soft suggestions to a single editor and rely on the LLM policing itself. Build Law unifies constitutional architectural invariants (<= 8 polyglot FFPs, SLECO-SO++, GDPR++, 5.0×–8.8× token economics) with 18+ synchronized IDE/agent formats, a native < 5 ms zero-token CLI/CI static verifier (build-law check), a Model Context Protocol (MCP) server, and cryptographically signed OS packages.
Does Build Law work with local open-weight models (Ollama, llama.cpp, vLLM, Qwen, DeepSeek) as well as frontier APIs?
Yes. prompts/SYSTEM_PROMPT_COMPACT_KV.md (~1,050 tokens) is specifically tuned for tight context windows and local KV-cache prefix pinning while preserving full 4-Pillar compliance alongside Claude, GPT, and Gemini.
No. build-law init . is non-destructive by design: it creates missing IDE/agent rule files atomically and leaves existing project-specific files untouched unless explicitly instructed.
By combining System-0 deterministic CLI/SQL/FTS5 execution (0 LLM tokens) for data filtering and static checks, < 2% schema-first digest projection, bounded <= 250-line window reads, parallel tool batching, SHA-256 checksum delta short-circuiting, and byte-stable system-prompt prefixes (75%–90% KV-cache discount).