Skip to content
cluesurfPublic

About

Separating AI Intelligence from Operational Authority

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation








seam

Separating AI Intelligence from Operational Authority




An open architecture, formal specification, and TypeScript + Lean 4 reference implementation for capability-bounded AI execution and technological sovereignty.

The Deadlock

Most AI safety proposals collapse into two fragile poles:

  • Private lab containment. A few organizations hold back the strongest models from the public while running them internally. As automated labor matures, economic leverage concentrates in those labs and the incentive to share diminishes.
  • Global pause or freeze. Rival nations and companies face overwhelming incentives to keep training models in private as chips and algorithms grow more efficient every year. Broad freezes also slow defensive software while entrenching incumbents through regulatory capture.

Both poles treat who possesses intelligence as the primary control variable. Seam treats operational authority, independent verification, distributed ownership, and defensive infrastructure as the real engineering surface.

The Architecture at a Glance

Safety trained into model weights breaks the moment someone runs an unrestricted model or delegates tasks across subagents. Seam moves enforcement outside the model across five separated roles:

[1. Intelligence]   proposes tool calls (holds zero keys, zero direct syscalls)
        |
        v
[2. Identity]       accountable principal -> agent -> instance -> task session
        |
        v
[3. Authorization]  signed single-task CapabilityGrant + atomic BudgetLedger + ApprovalToken
        |
        v
[4. Execution]      isolated workspace runs approved call, cannot widen its own scope
        |
        v
[5. Oversight]      emits hash-chained signed EvidenceRecord, triggers instant revocation

Solving intelligence access alone (such as local open models) still leaves four other levers of power concentrated. The full architecture addresses all five together:

Power axis Failure mode if concentrated Structural answer
Intellectual A few labs monopolize discovery and models Open intelligence commons and verifiable research
Computational Cloud hyperscalers gate who can run or train Five-scale federated compute (workstation to regional co-op)
Productive Automated factories lock out local communities Open industrial knowledge graphs and modular fabrication
Economic Automated capital strips leverage from workers Broad capital ownership (three-compartment equity and co-ops)
Institutional Safety agencies or standards bodies get captured Separated roles, credible exit, rotating audits, enforceable rights

Hard Engineering Gaps Fixed Here

Rather than repeating wishful decentralization slogans, Seam diagnoses and fixes ten real failure modes up front (full audit in note/gaps-and-fixes.md):

Where naive proposals break Structural fix in Seam
Attacker hardware vs defender machines: an attacker on private GPUs never installs your sandbox Split defense cleanly: Seam gateways protect defender machines and accounts, while external adversaries are countered by faster vulnerability patching, formal verification of target software, and physical supply-chain screening (such as DNA synthesis screening)
Open-weight irreversibility: public weights cannot be recalled if dual-use uplift is dangerous Keep general intelligence open while applying an explicit offense-vs-defense threshold, physical bottlenecks, and multi-operator stewardship for verified extreme bio/cyber uplift
Spec-to-code drift and AI proof smuggling: a model proof can diverge from code or hide an unchecked axiom Automated #print axioms audit banning sorryAx and custom axioms, plus differential conformance traces testing the Lean 4 model directly against the TypeScript gateway
Human approval fatigue: fifty popups a day turn into blind clicking and prompt-injected sign-offs Silent allowlists for narrow reversible work; parameter-hash-bound, gateway-rendered approval prompts only on irreversible boundary crossings
Capture vs board deadlock: giant multi-stakeholder boards freeze or get captured informally Make structural exit and forkability (open specs, portable state, replaceable operators) the primary anti-capture defense
Semiconductor and grid monopolies: neighborhood shops cannot print 2 nm wafers Separate decentralizable tiers (local inference, fine-tuning, repair, CNC) from high-capital bottlenecks addressed via open ISAs, interoperability mandates, and public procurement

5-Second Quick Start

Run the TypeScript test suite and adversarial vector checks directly on Node 22+:

git clone https://github.com/cluesurf/seam.git && cd seam
node --experimental-strip-types test/run.ts

Run the interactive local gateway demonstration (root grant -> attenuated child delegation -> atomic budget reservation -> blocked path traversal -> blocked .env read -> parameter-tampered approval rejection -> valid parameter-bound approval -> transitive revocation -> hash-chained receipt verification):

node --experimental-strip-types code/cli.ts demo

Wrap any local MCP server behind a signed capability grant:

node --experimental-strip-types code/cli.ts mcp --grant ./grant.json -- <mcp-server-cmd>

Verify the pure Lean 4 formal kernel (zero Mathlib dependency, zero sorry, zero custom axioms):

cd code/proof && lake build

Formal Security Invariants (code/proof/)

Six base invariants are mechanized in pure Lean 4 (leanprover/lean4:v4.35.0) and audited via #print axioms:

  1. No ambient authority: No action transitions to allowed without a valid, unexpired, unrevoked grant covering its exact verb and resource scope.
  2. Strict delegation attenuation: Every child grant's allowed verbs, resource scopes, and expiration are subsets of its parent grant.
  3. Budget conservation: Across atomic reserve, commit, release, and child delegation, committed + reserved + available = rootBudget holds strictly and never goes negative.
  4. Revocation monotonicity: Once a grant is revoked, neither it nor any descendant grant can authorize any subsequent transition.
  5. Parameter-hash binding: An approval bound to paramsDigest cannot authorize an action with any other parameter digest.
  6. No self-escalation: Executing agents have no transition path to mint root grants or clear revocations.

Complete Architecture Library (note/)

Every chapter documents concrete schemas, mechanisms, failure scenarios, and explicit epistemic boundaries:

Document Focus
Overview Single-sitting synthesis of the five power axes, twenty invariants, and execution loop
Gaps and Fixes Audit of ten broken assumptions and the structural fixes applied across the library
Red-Team Audit Full-stack adversarial stress test across code, humans, institutions, law, economy, and frontier AI
Landscape Current 2026 map of standards bodies, eval labs, legislation, open compute, and bio/cyber defense
Solution Space Comparative matrix of competing and complementary approaches across every layer
01 Institutions Legal staging, separated roles, exit-first anti-capture governance, funding bounds
02 Government and Law Twelve parallel adoption pathways, procurement acceptance tests, rulemaking, local pilots
03 Anti-Capture Corruption threat modeling, hash-chained public ledgers, entry-time fraud audits, sunsets
04 Open Intelligence Twelve-layer replaceable stack, open-weight irreversibility, multi-operator stewardship
05 Distributed Compute Five physical scales, inference vs pretraining reality, cooperative compute federation
06 Economic Ownership Post-labor solution candidates, three-compartment capital, cooperatives, displacement metrics
07 Physical Production Industrial knowledge graph, fab/grid bottlenecks, five-scale modular manufacturing
08 Agent Security Flagship five-layer Seam architecture, capability attenuation, budgets, approval fatigue fixes
09 Immune System Ten-layer distributed defense, detection vs enforcement split, anti-autoimmune invariants
10 Frontier Safety Stateless tool decomposition, gated self-modification, honest containment boundaries
11 Formal Assurance Full-chain V0–V8 verification, zero-axiom proof audits, Open Assurance Registry
12 Tech Rights Three-layer sovereignty, 24-article charter, standards-before-amendments ladder
13 International Supply-chain concentration metrics, S0–S8 cooperation ladder without global monopoly
14 Coordination Progressive public clarity, nine-class epistemic labeling, anti-cult movement design
15 Roadmap Standalone-value sequencing, 30-day to 20-year horizons, explicit deferrals
Protocol Spec Normative Machine Authorization Protocol v0.1, wire formats, MCP binding

Repository Layout

seam/
  code/          TypeScript gateway, ledger, receipts, MCP proxy, CLI
    proof/       Pure Lean 4.35.0 formal verification kernel (zero sorry, zero custom axioms)
  note/          Complete 15-chapter architecture library, gap audit, solution-space map
  rule/          Machine Authorization Protocol v0.1, JSON Schemas, adversarial test vectors
  test/          Unit, concurrency, receipt-chain, and adversarial test suites

Epistemic Boundary

Seam separates clearly what is proven, what is implemented, and what remains unsolved:

  • Mechanized in Lean 4: The six state-machine invariants of the authorization kernel under its formal model.
  • Implemented and tested in TypeScript: The local reference gateway, Ed25519 grant signing, atomic budget ledger, hash-chained receipts, MCP stdio proxy, and adversarial vector suite.
  • Not solved by software alone: OS or silicon compromise underneath the gateway, arbitrary superintelligence containment, leading-edge fab and grid monopolies, and human social engineering at approval prompts.

License

MIT. Open for engineering and research: use, modify, and build on it freely, with attribution. See LICENSE. The architecture documentation in note/ is shared under CC-BY-4.0 (attribution).

ClueSurf

Made by ClueSurf · Research models at form.surf.

About

Separating AI Intelligence from Operational Authority

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages