Tiered Governance & The Open-Core Architecture β
Architecture Specification for Extensible Autonomous AI Engineering.
1. ποΈ Executive Summary: The Open-Core Division β
Nomos OS is structured around a strict Open-Core Boundary:
- The Open-Core Substrate (
nomos): Provides the foundational operating system, cognitive firewall, AST verification totem, and single-agent developer governance. - The Sovereign Commercial Tier (
nomos-sovereign): Extends the open substrate with proprietary autonomous multi-agent swarm coordination (nomos-code), 3D WebGL Cockpit visualization, and containerized benchmark harnesses.
2. π₯ The Tiered Governance Topology β
Nomos defines two distinct operational tiers:
| Dimension | Tier 1: Orchestration (Open Core) | Tier 2: Swarm Workers (Sovereign) |
|---|---|---|
| Operational Persona | Senior Autonomous Architect | Autonomous Tactical Worker Pool |
| Distribution | Open-Source Substrate (nomos) | Sovereign Enterprise (nomos-sovereign) |
| Human Interface | Interactive IDE Chat & Visual Modals | Headless Background Daemon / Swarm Worker |
| Task Scope | Sizing (cli:low/cli:high), Multi-repo linking, Refactoring | Surgical bug fixing, Unit test implementation, Backlog chores |
| Sandbox Boundary | Transient Git Worktrees (worktrees/nomos-xxx) | Ephemeral Container Sandboxes & Worktrees |
| Phase Transition Gate | Human PO Approval on Brain Artifacts | Automated Machine State Convergence |
| Release Mechanism | 2-Phase Commit (2PC) Merge to substrate | Atomic Patch Emission & Parent DAG Notification |
3. π§© Single Source of Truth (SSoT) & Substrate Invariants β
The open substrate exposes clean, typed extension contracts so that higher-level proprietary swarms do not duplicate core OS infrastructure:
Architectural SSoT Invariants: β
- Universal Tool Schemas (
nomos/core/llm): Standard tool definitions (view_file,replace_file_content,run_command,grep_search,find_files) are defined in Open Core. All agentsβinteractive or headlessβoperate against these typed interfaces. - Cognitive Firewall: Workspace phase locking (
PLAN,EDIT,REVIEW) is enforced by compiled Go AST hooks regardless of which tier initiates code modification. - Strict Boundary Isolation: Swarm worker scheduling algorithms, 3D WebGL spatial rendering, and proprietary worker pools remain strictly encapsulated within
nomos-sovereign. - Non-Destructive Tier 1 Workflow Projection: Global Nomos workflows (
~/.nomos/data/.agents/workflows/) and discovered ecosystem workflows (project_meshes) are projected into Tier 1 agent environments (Google Antigravity, Anthropic Claude Code) as individual file-level symlinks. Downstream developers retain full ownership of their global workflows directory without risk of destructive overwrite.
4. π Phase Discipline Across Tiers β
Both single-agent IDE workflows and multi-agent swarm extensions obey the universal PLAN β EDIT β REVIEW lifecycle:
5. π‘οΈ The Physical Totem (Inception Paradigm) β
- The Stochastic Dream: Probabilistic language models generate creative hypotheses and diffs, but degrade over long context horizons.
- The Immutable Totem: Nomos is the physical totem that anchors execution. It strictly enforces cyclomatic complexity (< 15), docstring density (>= 10%), zero dead code, and clean test assertions before any mutation can reach production.
6. π¬ Inner Loop vs. Outer Loop DoD Verification β
DoD verification operates on two distinct topological loops depending on the active tier:
- The Inner Loop (Tier 2 / Tactical Worker):
- Evaluates
nomos verifyat the end of each turn loop. - Automatically injects AST compiler, linter, or complexity failures into the LLM prompt context to force self-remediation without human intervention.
- Worker cannot conclude its execution cycle until
nomos verifyreturnsβ DoD verification succeeded!.
- Evaluates
- The Outer Loop (Tier 1 / Macro Governor):
- Evaluates macro architectural blast radius and cross-repository contracts.
- Generates the formal release walkthrough and obtains explicit Human Product Owner consent.
- Executes the 2-Phase Commit (2PC) atomic merge to
substrate.
7. βοΈ Benchmark Scope vs. Operating System Boundary β
When evaluating autonomous coding performance (e.g. on SWE-bench):
| Capability Plane | Measured by Benchmarks (e.g., SWE-bench) | Governed by Nomos OS Platform |
|---|---|---|
| Tactical Tool Dispatching & AST Traversal | β | β |
| TDD Reproducer Script Authoring | β | β |
| Surgical Code Diff Generation | β | β |
| Macro Backlog Triage & Topological Sizing | β | β |
Multi-Repo Dependency Mesh (go.work) | β | β |
Cognitive Firewall Phase Locks (PLAN β EDIT) | β | β |
| AST Quality Gates (Docstrings, Complexity < 15) | β | β |
Long-Term Subconscious Memory (GitBrain) | β | β |
Benchmarks like SWE-bench evaluate tactical micro-execution. The Nomos OS platform provides the macro operating system that makes those workers safe, reproducible, and enterprise-ready.
7.1 π Empirical Proof: The SWE-bench Verified Shootout β
To empirically validate the Tier 2 Sovereign Engine, we benchmarked Local Workstation Inference (Qwen3.8-27B on a single RTX 4080 16GB) against Cloud Frontier (Gemini 3.7 Flash with 8,192 Thinking Budget) across the SWE-bench Verified Golden Suite:
| Metric | βοΈ Cloud Baseline (Gemini 3.7 Flash + 8k Thinking) | π» Local Sovereign (Qwen 3.8 27B on RTX 4080) | Operational Takeaway |
|---|---|---|---|
| Resolution Accuracy | 60.0% (3 / 5 Resolved) | 60.0% (3 / 5 Resolved) | Exact Resolution Parity |
| Mean Turns to Resolve | 19.0 turns | 11.2 turns | 41.1% Faster Turn Convergence |
| Mean Wall Duration | ~49.8s / instance | ~303.6s / instance | Cloud throughput vs. local GPU generation |
| GPU VRAM Offload | 0 GB (Remote API) | 15,441 MiB / 16,376 MiB | 100% GPU Offload (Zero PCIe Spillover) |
| Privacy & Sovereignty | Remote Cloud API | 100% Air-gapped / Sovereign | Zero codebase telemetry leakage |
Key Architectural Takeaway: The 41.1% turn efficiency advantage for local inference demonstrates the core thesis of Harness Over Model: deterministic Go AST feedback (the Inner DoD loop) keeps local SLMs anchored in tight reproducer-patch-verify loops, eliminating verbose tangential exploration and converging faster on verified bug resolutions.
7.2 π‘οΈ Addressing the Frontier Skeptic: Enterprise Sovereignty & The Deterministic Moat β
Skeptics often point to the relentless progression of frontier cloud models (such as Claude Opus 5, GPT-5.6 Sol, Claude Fable 5, or Gemini 3.1/3.7 Pro) achieving 95%+ saturation on public leaderboards like SWE-bench Verified, questioning whether local Small Language Models (SLMs) remain relevant.
The Nomos Dual-Tier architecture resolves this question through four foundational realities of enterprise software engineering:
1. Public Benchmark Saturation vs. Private Enterprise Reality β
Public benchmark suites like SWE-bench Verified have become saturated in the 2025β2026 frontier model cycle, largely because their underlying GitHub repositories are publicly indexed across internet-scale pre-training datasets.
In contrast, enterprise software engineering takes place inside private, closed-source monorepositories with bespoke domain models, private schema contracts, and strict air-gap compliance. On private codebases with zero prior training exposure, raw parametric memorization yields to deterministic harness discipline: the ability to author isolated reproducer scripts, parse real-time Go/Rust/Python compiler diagnostics, and verify strict AST invariants.
2. Deterministic Scaffolding Beats Stochastic Scale β
Even the most capable frontier reasoning model, when dropped into an unconstrained multi-turn terminal loop, will exhibit stochastic driftβgenerating redundant abstractions, modifying out-of-scope files, or getting trapped in cyclical edits.
The compiled Go substrate (nomos) acts as the immutable physical totem:
- Machine-enforces cyclomatic complexity (< 15).
- Enforces docstring density (β₯ 10%) and import boundaries.
- Cryptographically and procedurally locks workspace state via transient worktrees and Phase Discipline.
As proven in our empirical shootout, a quantized 27B model anchored to deterministic AST compiler feedback matches frontier cloud reasoning accuracy on verified bugs while converging 41.1% faster because the machine harness prevents exploratory wandering.
3. The Token Economics & Air-Gap Moat β
Executing thousands of automated backlog refactors and continuous CI/CD remediation cycles against frontier cloud APIs introduces two critical bottlenecks:
- Financial Friction: A continuous per-token tax that scales linearly with repository churn.
- Intellectual Property Exfiltration: Transmitting sensitive corporate ASTs, proprietary trading algorithms, and internal schemas over external third-party networks.
Running an on-premise SLM on dedicated silicon (such as an RTX 4080 16GB) delivers $0 marginal inference cost, zero egress latency, and complete air-gapped intellectual property sovereignty.
4. The Fail-Up Compromise: Sovereign First, Frontier When Needed β
The Nomos philosophy is not to discard frontier models, but to place them where they provide the highest leverage: as a Tier 2B Cloud Escalation Substrate. Local SLMs resolve the high-frequency 60% operational baseline at zero cost. When a task hits parameter ceilings or multi-module architectural ambiguity, the Go harness cleanly sanitizes dirty worktree state, packages the generated reproducer script and test failure trace, and deterministically escalates the task to Cloud Frontier reasoning.
5. The Political Economy of Token Billing vs. Silicon-Aligned Determinism β
A subtle yet critical structural dynamic in the 2026 AI ecosystem is the economic incentive misalignment between pure-play API model providers, vertically integrated hyperscalers, and sovereign on-premise infrastructure:
- Pure-Play API Providers (Incentive: Token Volume): Pure API model vendors monetize strictly on token consumption. If an autonomous agent leverages deterministic Go compiler gates to converge in 5 turns (35k tokens) rather than meandering through unconstrained 30-turn reasoning loops (450k tokens), the API vendor loses over 90% of per-task revenue. While market pressure forces them to add superficial hooks and linters to their coding agents, their underlying business model fundamentally rewards high token churn and deep thinking budgets.
- Vertically Integrated Hyperscalers (Incentive: Silicon Efficiency & Platform Value): Hyperscalers that own the full stack from custom silicon (TPUs/custom data centers) to cloud platforms (Google Cloud Run, Vertex AI) bear the electricity and hardware CapEx costs. Inefficient token looping strains data-center power and capacity. Their economic incentive aligns with low latency, high throughput, and compact reasoning architectures (such as Gemini Flash with native batch function calling) that reduce cost-to-serve while monetizing platform ecosystem stickiness.
- Sovereign On-Premise Substrate (Incentive: Zero-Waste Determinism): Operating on dedicated workstation silicon (RTX 4080 / on-premise nodes) reduces marginal token cost to $0.00. The incentives between the developer, the enterprise, and the runtime become 100% harmonious: the Nomos Go substrate ruthlessly enforces early exit on green tests, context pruning, and deterministic AST verification.