agent-operating-substrate 0.1.0__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. agent_operating_substrate-0.2.0/LICENSE +21 -0
  2. {agent_operating_substrate-0.1.0/src/agent_operating_substrate.egg-info → agent_operating_substrate-0.2.0}/PKG-INFO +64 -21
  3. agent_operating_substrate-0.1.0/PKG-INFO → agent_operating_substrate-0.2.0/README.md +53 -41
  4. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/pyproject.toml +25 -9
  5. agent_operating_substrate-0.1.0/README.md → agent_operating_substrate-0.2.0/src/agent_operating_substrate.egg-info/PKG-INFO +84 -13
  6. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/agent_operating_substrate.egg-info/SOURCES.txt +3 -0
  7. agent_operating_substrate-0.2.0/src/aos/app_auth.py +85 -0
  8. agent_operating_substrate-0.2.0/src/aos/git_credential.py +20 -0
  9. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/harness.py +44 -8
  10. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/mcp.py +1 -1
  11. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/ui.py +91 -84
  12. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_harness.py +54 -0
  13. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_ui.py +30 -4
  14. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/setup.cfg +0 -0
  15. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/agent_operating_substrate.egg-info/dependency_links.txt +0 -0
  16. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/agent_operating_substrate.egg-info/entry_points.txt +0 -0
  17. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/agent_operating_substrate.egg-info/requires.txt +0 -0
  18. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/agent_operating_substrate.egg-info/top_level.txt +0 -0
  19. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/__init__.py +0 -0
  20. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/__main__.py +0 -0
  21. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/autopsy.py +0 -0
  22. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/blackboard.py +0 -0
  23. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/ci.py +0 -0
  24. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/cli.py +0 -0
  25. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/curator.py +0 -0
  26. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/daemon.py +0 -0
  27. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/discovery.py +0 -0
  28. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/enforcer.py +0 -0
  29. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/engine.py +0 -0
  30. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/executor.py +0 -0
  31. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/fleet.py +0 -0
  32. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/hook.py +0 -0
  33. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/identity.py +0 -0
  34. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/ingest.py +0 -0
  35. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/matcher.py +0 -0
  36. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/mesh.py +0 -0
  37. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/models.py +0 -0
  38. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/packs.py +0 -0
  39. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/src/aos/validator.py +0 -0
  40. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_autonomous_loop.py +0 -0
  41. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_autopsy.py +0 -0
  42. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_blackboard.py +0 -0
  43. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_ci.py +0 -0
  44. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_curator.py +0 -0
  45. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_daemon.py +0 -0
  46. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_enforcer.py +0 -0
  47. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_executor.py +0 -0
  48. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_fleet.py +0 -0
  49. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_hook.py +0 -0
  50. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_identity.py +0 -0
  51. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_ingest.py +0 -0
  52. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_mcp.py +0 -0
  53. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_mesh.py +0 -0
  54. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_packs.py +0 -0
  55. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_performance.py +0 -0
  56. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_rule_discovery.py +0 -0
  57. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_rule_matching.py +0 -0
  58. {agent_operating_substrate-0.1.0 → agent_operating_substrate-0.2.0}/tests/test_schema_validation.py +0 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AOS Agent <aos-agent-maintainer@proton.me>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,14 +1,15 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-operating-substrate
3
- Version: 0.1.0
4
- Summary: Autonomous behavior firewall, stigmergic runtime, and permanent memory for Cursor, Copilot, and Claude Code
5
- Author-email: AOS Agent <aos-agent-maintainer@proton.me>
3
+ Version: 0.2.0
4
+ Summary: Autonomous behavior firewall, vendor-agnostic control plane, and permanent memory across Gemini, Claude, Codex, Copilot, Cursor, and Windsurf
5
+ Author-email: AOS Agent <aos-agent-maintainer@proton.me>, "agent-operating-substrate-agent[bot]" <328717801+agent-operating-substrate-agent@users.noreply.github.com>
6
+ Maintainer-email: AOS Agent <aos-agent-maintainer@proton.me>, "agent-operating-substrate-agent[bot]" <328717801+agent-operating-substrate-agent@users.noreply.github.com>
6
7
  License-Expression: MIT
7
- Project-URL: Homepage, https://github.com/aos-agent/agent-operating-substrate
8
- Project-URL: Documentation, https://aos-agent.github.io/agent-operating-substrate/
9
- Project-URL: Repository, https://github.com/aos-agent/agent-operating-substrate.git
10
- Project-URL: Issues, https://github.com/aos-agent/agent-operating-substrate/issues
11
- Keywords: agents,guardrails,invariants,cursor,copilot,claude-code,pre-commit,stigmergy,mcp,code-quality
8
+ Project-URL: Homepage, https://github.com/agent-operating-substrate/agent-operating-substrate
9
+ Project-URL: Documentation, https://agent-operating-substrate.github.io/agent-operating-substrate/
10
+ Project-URL: Repository, https://github.com/agent-operating-substrate/agent-operating-substrate.git
11
+ Project-URL: Issues, https://github.com/agent-operating-substrate/agent-operating-substrate/issues
12
+ Keywords: agents,guardrails,invariants,gemini,claude-code,codex,chatgpt,copilot,cursor,windsurf,amazon-q,aider,cline,roo-code,ai-governance,llm-firewall,vendor-abstraction,pre-commit,stigmergy,mcp,code-quality
12
13
  Classifier: Development Status :: 4 - Beta
13
14
  Classifier: Intended Audience :: Developers
14
15
  Classifier: Topic :: Software Development :: Quality Assurance
@@ -19,20 +20,23 @@ Classifier: Programming Language :: Python :: 3.12
19
20
  Classifier: Programming Language :: Python :: 3.13
20
21
  Requires-Python: >=3.11
21
22
  Description-Content-Type: text/markdown
23
+ License-File: LICENSE
22
24
  Requires-Dist: pyyaml>=6.0
23
25
  Provides-Extra: dev
24
26
  Requires-Dist: pytest>=8.0.0; extra == "dev"
25
27
  Requires-Dist: pytest-playwright>=0.5.0; extra == "dev"
26
28
  Requires-Dist: playwright>=1.40.0; extra == "dev"
27
29
  Requires-Dist: zensical>=0.0.30; extra == "dev"
30
+ Dynamic: license-file
28
31
 
29
32
  # Agent Operating Substrate (AOS)
30
33
 
31
- ### The Autonomous Behavior Firewall & Permanent Memory for Cursor, Copilot, and Claude Code.
34
+ ### The Universal AI Behavior Firewall & Vendor-Agnostic Control Plane across Gemini, Claude, Codex, Copilot, Cursor, and Windsurf.
32
35
 
33
36
  [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
34
37
  [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](#license)
35
38
  [![Zero External Dependencies](https://img.shields.io/badge/dependencies-zero%20external-orange.svg)](#architecture)
39
+ [![Vendor Agnostic](https://img.shields.io/badge/AI%20models-vendor--agnostic-blueviolet.svg)](#supported-ai-ecosystems--models)
36
40
  [![MCP Protocol Ready](https://img.shields.io/badge/MCP-compatible-purple.svg)](docs/getting-started.md#step-5-enable-the-model-context-protocol-mcp-server)
37
41
  [![Pre-Commit Enforced](https://img.shields.io/badge/git-pre--commit%20firewall-red.svg)](docs/getting-started.md#step-6-install-the-universal-git-pre-commit-hook)
38
42
 
@@ -41,19 +45,21 @@ Requires-Dist: zensical>=0.0.30; extra == "dev"
41
45
 
42
46
  ***
43
47
 
44
- ## Why AOS?
48
+ ## The Universal AI Behavior Firewall & Memory Layer
45
49
 
46
- The Agent Operating Substrate (AOS) is a local behavior firewall and permanent memory system for AI coding assistants. It prevents tools like Cursor, GitHub Copilot, Claude Code, and Windsurf from repeating known mistakes, violating architectural boundaries, or introducing breaking diffs into your codebase.
50
+ Enterprises and developers cannot afford AI vendor lock-in or model-specific behavioral drift. Whether your engineers prompt Google Gemini 1.5 Pro, Anthropic Claude 3.5 Sonnet, OpenAI GPT-4o / Codex, Amazon Q Developer, or run local DeepSeek and Llama models, each model interprets prompts differently, hallucinates distinct anti-patterns, and loses context once the session ends.
47
51
 
48
- Autonomous coding agents are transforming engineering velocity. However, as teams scale AI-assisted development into production, they run directly into three structural roadblocks:
52
+ **AOS eliminates vendor lock-in by decoupling repository guardrails from the model provider.**
49
53
 
50
- 1. **Day-One Amnesia:** Every agent session starts from a blank slate. When an agent violates an architectural invariant, introduces memory bugs, or breaks an unspoken convention, an engineer must manually intervene. Once that context window closes, the lesson evaporates. The next agent invocation repeats the identical mistake.
54
+ No matter which AI assistant your team selects today or migrates to tomorrow, AOS guarantees the exact same repository invariants, institutional memory, and deterministic pre-commit enforcement.
55
+
56
+ ### Three Structural Roadblocks AOS Solves
57
+
58
+ 1. **Day-One Amnesia:** Every agent session starts from a blank slate. When an agent violates an architectural invariant, introduces memory bugs, or breaks an unspoken convention, an engineer manually intervenes. Once that context window closes, the lesson evaporates. The next agent invocation repeats the identical mistake.
51
59
  2. **The Human Air-Traffic Controller Bottleneck:** Multi-agent development remains strictly hub-and-spoke. Engineers spend hours manually shuttling diffs, error traces, and prompts between worker, critique, and test agents.
52
60
  3. **Broken Commits and Silent Regressions:** AI agents hallucinate deprecated APIs, alter adjacent imports, and introduce diff bloat that slips past human reviewers and pollutes Git history.
53
61
 
54
- **AOS turns your repository into a self-defending, self-improving substrate.**
55
-
56
- It provides an **Autonomous Behavior Firewall** that deterministically blocks invalid agent commits, and **Permanent Memory** that records failures as machine-enforced invariants compiled directly into every agent harness.
62
+ **AOS turns your repository into a self-defending, self-improving substrate.** It provides an **Autonomous Behavior Firewall** that deterministically blocks invalid agent commits, and **Permanent Memory** that records failures as machine-enforced invariants compiled directly into every agent harness.
57
63
 
58
64
  ***
59
65
 
@@ -72,6 +78,24 @@ It provides an **Autonomous Behavior Firewall** that deterministically blocks in
72
78
 
73
79
  ***
74
80
 
81
+ ## Supported AI Ecosystems & Models
82
+
83
+ AOS is engineered for complete AI vendor neutrality. By decoupling repository invariants and verification from any specific model provider, AOS guarantees consistent guardrails across every tool in your stack:
84
+
85
+ | AI Ecosystem / Model | Supported Tooling & Interfaces | Integration Mode | Enforcement Mechanism |
86
+ | :--- | :--- | :--- | :--- |
87
+ | **Google Gemini** | Gemini Code Assist, Gemini CLI, Antigravity | Live MCP Server (`aos mcp`), CLI execution autopsy (`aos exec`), Stigmergic Blackboard | Pre-commit hook & live MCP tools |
88
+ | **Anthropic Claude** | Claude Code, Claude Desktop, Claude Projects | Single-source `CLAUDE.md` sync (`aos sync`), native MCP stdio server | Deterministic pre-commit firewall (`aos hook run`) |
89
+ | **OpenAI Codex & ChatGPT** | OpenAI Codex, ChatGPT Developer Mode, GPT-4o | Prompt projection, MCP protocol, Git pre-commit barrier | Substrate invariant evaluation & diff bouncer |
90
+ | **GitHub Copilot** | VS Code, JetBrains, Visual Studio, Copilot Chat | Automatic `.github/copilot-instructions.md` compilation | Pre-commit hook & CI pipeline gatekeeper |
91
+ | **Cursor IDE** | Cursor Composer, Cursor Agent Mode | `.cursorrules` and `.cursor/rules/*.mdc` synchronization, MCP server | Instant rule prompt injection & pre-commit hook |
92
+ | **Windsurf / Codeium** | Windsurf IDE, Codeium Cascade | `.windsurfrules` automatic synchronization | Staged diff bouncer & rule validation |
93
+ | **Aider, Roo Code & Cline** | Aider CLI, Roo Code, Cline (VS Code) | Context injection (`.agents/substrate/active`), stdio MCP | Autonomous pre-commit barrier & execution autopsy |
94
+ | **Amazon Q Developer** | Amazon Q (AWS Toolkit, VS Code, JetBrains) | Substrate prompt compilation & Git pre-commit barrier | Deterministic pre-commit enforcement & CI check |
95
+ | **Local & Open Weights** | DeepSeek-R1 / V3, Llama 3, Mistral, Qwen (via Ollama, vLLM) | File-based substrate, local SQLite, stdio MCP | 100% offline, local-first behavior firewall |
96
+
97
+ ***
98
+
75
99
  ## Architecture
76
100
 
77
101
  AOS operates across three integrated planes: prompt projection, live agent context tools, and deterministic git enforcement.
@@ -80,8 +104,8 @@ AOS operates across three integrated planes: prompt projection, live agent conte
80
104
  ┌─────────────────────────────────────────────────────────────────────────────┐
81
105
  │ AGENT HARNESS INTERACTION │
82
106
  │ │
83
- │ Cursor IDE Windsurf IDE GitHub Copilot Claude Code │
84
- │ (.cursorrules) (.windsurfrules) (copilot-instr.) (CLAUDE.md) │
107
+ │ Gemini / Antigravity Claude Code Codex / ChatGPT GitHub Copilot │
108
+ │ Cursor (.cursorrules) Windsurf IDE Aider / Cline Amazon Q │
85
109
  └───────────────────────────────────────▲─────────────────────────────────────┘
86
110
  │ (aos sync: prompt projection)
87
111
  ┌───────────────────────────────────────┴─────────────────────────────────────┐
@@ -113,7 +137,7 @@ AOS operates across three integrated planes: prompt projection, live agent conte
113
137
  ### Core Architecture Components
114
138
 
115
139
  1. **Prompt Sync:** `aos sync` compiles all active machine-readable invariants from `.agents/substrate/active/` into your team's existing agent configuration files (`.cursorrules`, `.cursor/rules/aos-invariants.mdc`, `.windsurfrules`, `.github/copilot-instructions.md`, and `CLAUDE.md`). Rules stay bounded within deterministic HTML comment tags without overwriting custom prompt instructions.
116
- 2. **Model Context Protocol (MCP) Server:** `aos mcp` provides a native stdio protocol server. Any MCP-compatible tool (Cursor, Claude Desktop, Antigravity) can dynamically query active rules, inspect file blast radius, post intents, and record failure autopsies.
140
+ 2. **Model Context Protocol (MCP) Server:** `aos mcp` provides a native stdio protocol server. Any MCP-compatible tool (Cursor, Claude Desktop, Antigravity, Gemini Code Assist, Cline) can dynamically query active rules, inspect file blast radius, post intents, and record failure autopsies.
117
141
  3. **Git Pre-Commit Barrier:** `aos hook run` acts as the repo bouncer. Every staged diff is evaluated against active invariants before a commit is created. Violations halt execution immediately with exact file and line references.
118
142
  4. **Stigmergic Blackboard:** Agents communicate asynchronously by reading and appending events in `.agents/blackboard/events.jsonl`. When a worker announces an intent, an auditor injects invariants, and an adversarial critic generates edge-case tests, entirely without human intervention.
119
143
  5. **Execution Autopsy Engine:** `aos exec -- <command>` intercepts build or test failures, diagnoses root causes, and inscribes candidate rules under `.agents/substrate/candidate/` for peer review.
@@ -266,9 +290,27 @@ AOS is running right now in production repositories. Here are three machine-enfo
266
290
 
267
291
  ***
268
292
 
269
- ## Enterprise Compliance & Fleet Governance
293
+ ## Enterprise & Commercial Readiness
294
+
295
+ As enterprises deploy hundreds of AI coding agents across engineering teams, they face **Distributed Agent Amnesia**: team A discovers and patches a critical security flaw, but team B and team C repeat the exact same vulnerability next week. AOS provides an enterprise-grade control plane designed for commercial reliability and governance.
296
+
297
+ ### 1. SOC2 & AI Audit Compliance
298
+ Every autonomous agent modification, intent declaration, invariant check, and consensus decision is permanently recorded in a tamper-proof, append-only event stream (`.agents/blackboard/events.jsonl`).
299
+ * **Immutable Audit Trail:** Track which model proposed a diff, which invariant validated or rejected it, and which human or peer agent approved the change.
300
+ * **Cryptographic & Git Provenance:** Invariants record originating incident IDs, git commit hashes, author agent signatures, and verification timestamps.
301
+ * **Compliance Ready:** Satisfies SOC2 Type II, ISO 27001, and enterprise AI safety audits without transmitting proprietary code to third-party clouds.
302
+
303
+ ### 2. Eliminating AI Regression Costs
304
+ AI code generation velocity is meaningless if senior engineers spend hours diagnosing hallucinations and fixing broken builds.
305
+ * **Halting Hallucinations at the Source:** Intercepts hallucinated third-party dependencies, invalid imports, and deprecated API calls before code reaches pull request review.
306
+ * **Preventing Secret Leaks:** Built-in OWASP rules (`sec-secret-leak-002`) deterministically block API tokens, credentials, and private keys before they enter git history.
307
+ * **Pre-Commit Enforcement:** The universal git pre-commit hook runs in milliseconds locally, cutting CI re-run costs and preventing broken commits from reaching master branches.
270
308
 
271
- As enterprises deploy hundreds of AI coding agents across dozens of engineering teams, they face **Distributed Agent Amnesia**: team A discovers and patches a critical security flaw, but team B and team C repeat the exact same vulnerability next week.
309
+ ### 3. Centralized Fleet Governance Across 100+ Repositories (`aos fleet`)
310
+ Connect isolated repositories into an institutional knowledge network:
311
+ * **Global Policy Propagation:** Platform teams broadcast promoted invariants into a shared fleet mesh (`.agents/fleet.db`) with `aos fleet publish`.
312
+ * **Zero Policy Drift:** Microservices and product repositories ingest organizational security and architectural rules with `aos fleet sync`.
313
+ * **Sovereign & Local-First:** 100% offline-capable, backed by local SQLite and Git. Zero source code or proprietary schemas are transmitted to external SaaS platforms.
272
314
 
273
315
  ```
274
316
  Without Fleet Synchronization (Isolated & Vulnerable):
@@ -328,6 +370,7 @@ Team A (Origin) ──> Inscribes Rule ──> aos fleet publish
328
370
 
329
371
  * [Overview & Core Thesis](docs/index.md): Motivation, failure modes, and stigmergic solution.
330
372
  * [Getting Started Guide](docs/getting-started.md): Step-by-step setup, harness sync, and MCP configuration.
373
+ * [AI Vendor Abstraction](docs/vendor-abstraction.md): Decoupling repository invariants and control planes from LLM model providers.
331
374
  * [IDE & Tool Integration](docs/ide-integration.md): Setup Cursor, Claude Code, Copilot, Windsurf, and Git pre-commit hooks.
332
375
  * [Control Plane Web Dashboard](docs/control-plane-ui.md): Visual tour of real-time guardrail controls, diff testing, and incident autopsies.
333
376
  * [Curated Rule Packs](docs/rule-packs.md): Catalog of security, clean architecture, and SIMD performance invariant packs.
@@ -1,38 +1,11 @@
1
- Metadata-Version: 2.4
2
- Name: agent-operating-substrate
3
- Version: 0.1.0
4
- Summary: Autonomous behavior firewall, stigmergic runtime, and permanent memory for Cursor, Copilot, and Claude Code
5
- Author-email: AOS Agent <aos-agent-maintainer@proton.me>
6
- License-Expression: MIT
7
- Project-URL: Homepage, https://github.com/aos-agent/agent-operating-substrate
8
- Project-URL: Documentation, https://aos-agent.github.io/agent-operating-substrate/
9
- Project-URL: Repository, https://github.com/aos-agent/agent-operating-substrate.git
10
- Project-URL: Issues, https://github.com/aos-agent/agent-operating-substrate/issues
11
- Keywords: agents,guardrails,invariants,cursor,copilot,claude-code,pre-commit,stigmergy,mcp,code-quality
12
- Classifier: Development Status :: 4 - Beta
13
- Classifier: Intended Audience :: Developers
14
- Classifier: Topic :: Software Development :: Quality Assurance
15
- Classifier: Topic :: Software Development :: Testing
16
- Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3.11
18
- Classifier: Programming Language :: Python :: 3.12
19
- Classifier: Programming Language :: Python :: 3.13
20
- Requires-Python: >=3.11
21
- Description-Content-Type: text/markdown
22
- Requires-Dist: pyyaml>=6.0
23
- Provides-Extra: dev
24
- Requires-Dist: pytest>=8.0.0; extra == "dev"
25
- Requires-Dist: pytest-playwright>=0.5.0; extra == "dev"
26
- Requires-Dist: playwright>=1.40.0; extra == "dev"
27
- Requires-Dist: zensical>=0.0.30; extra == "dev"
28
-
29
1
  # Agent Operating Substrate (AOS)
30
2
 
31
- ### The Autonomous Behavior Firewall & Permanent Memory for Cursor, Copilot, and Claude Code.
3
+ ### The Universal AI Behavior Firewall & Vendor-Agnostic Control Plane across Gemini, Claude, Codex, Copilot, Cursor, and Windsurf.
32
4
 
33
5
  [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
34
6
  [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](#license)
35
7
  [![Zero External Dependencies](https://img.shields.io/badge/dependencies-zero%20external-orange.svg)](#architecture)
8
+ [![Vendor Agnostic](https://img.shields.io/badge/AI%20models-vendor--agnostic-blueviolet.svg)](#supported-ai-ecosystems--models)
36
9
  [![MCP Protocol Ready](https://img.shields.io/badge/MCP-compatible-purple.svg)](docs/getting-started.md#step-5-enable-the-model-context-protocol-mcp-server)
37
10
  [![Pre-Commit Enforced](https://img.shields.io/badge/git-pre--commit%20firewall-red.svg)](docs/getting-started.md#step-6-install-the-universal-git-pre-commit-hook)
38
11
 
@@ -41,19 +14,21 @@ Requires-Dist: zensical>=0.0.30; extra == "dev"
41
14
 
42
15
  ***
43
16
 
44
- ## Why AOS?
17
+ ## The Universal AI Behavior Firewall & Memory Layer
18
+
19
+ Enterprises and developers cannot afford AI vendor lock-in or model-specific behavioral drift. Whether your engineers prompt Google Gemini 1.5 Pro, Anthropic Claude 3.5 Sonnet, OpenAI GPT-4o / Codex, Amazon Q Developer, or run local DeepSeek and Llama models, each model interprets prompts differently, hallucinates distinct anti-patterns, and loses context once the session ends.
20
+
21
+ **AOS eliminates vendor lock-in by decoupling repository guardrails from the model provider.**
45
22
 
46
- The Agent Operating Substrate (AOS) is a local behavior firewall and permanent memory system for AI coding assistants. It prevents tools like Cursor, GitHub Copilot, Claude Code, and Windsurf from repeating known mistakes, violating architectural boundaries, or introducing breaking diffs into your codebase.
23
+ No matter which AI assistant your team selects today or migrates to tomorrow, AOS guarantees the exact same repository invariants, institutional memory, and deterministic pre-commit enforcement.
47
24
 
48
- Autonomous coding agents are transforming engineering velocity. However, as teams scale AI-assisted development into production, they run directly into three structural roadblocks:
25
+ ### Three Structural Roadblocks AOS Solves
49
26
 
50
- 1. **Day-One Amnesia:** Every agent session starts from a blank slate. When an agent violates an architectural invariant, introduces memory bugs, or breaks an unspoken convention, an engineer must manually intervene. Once that context window closes, the lesson evaporates. The next agent invocation repeats the identical mistake.
27
+ 1. **Day-One Amnesia:** Every agent session starts from a blank slate. When an agent violates an architectural invariant, introduces memory bugs, or breaks an unspoken convention, an engineer manually intervenes. Once that context window closes, the lesson evaporates. The next agent invocation repeats the identical mistake.
51
28
  2. **The Human Air-Traffic Controller Bottleneck:** Multi-agent development remains strictly hub-and-spoke. Engineers spend hours manually shuttling diffs, error traces, and prompts between worker, critique, and test agents.
52
29
  3. **Broken Commits and Silent Regressions:** AI agents hallucinate deprecated APIs, alter adjacent imports, and introduce diff bloat that slips past human reviewers and pollutes Git history.
53
30
 
54
- **AOS turns your repository into a self-defending, self-improving substrate.**
55
-
56
- It provides an **Autonomous Behavior Firewall** that deterministically blocks invalid agent commits, and **Permanent Memory** that records failures as machine-enforced invariants compiled directly into every agent harness.
31
+ **AOS turns your repository into a self-defending, self-improving substrate.** It provides an **Autonomous Behavior Firewall** that deterministically blocks invalid agent commits, and **Permanent Memory** that records failures as machine-enforced invariants compiled directly into every agent harness.
57
32
 
58
33
  ***
59
34
 
@@ -72,6 +47,24 @@ It provides an **Autonomous Behavior Firewall** that deterministically blocks in
72
47
 
73
48
  ***
74
49
 
50
+ ## Supported AI Ecosystems & Models
51
+
52
+ AOS is engineered for complete AI vendor neutrality. By decoupling repository invariants and verification from any specific model provider, AOS guarantees consistent guardrails across every tool in your stack:
53
+
54
+ | AI Ecosystem / Model | Supported Tooling & Interfaces | Integration Mode | Enforcement Mechanism |
55
+ | :--- | :--- | :--- | :--- |
56
+ | **Google Gemini** | Gemini Code Assist, Gemini CLI, Antigravity | Live MCP Server (`aos mcp`), CLI execution autopsy (`aos exec`), Stigmergic Blackboard | Pre-commit hook & live MCP tools |
57
+ | **Anthropic Claude** | Claude Code, Claude Desktop, Claude Projects | Single-source `CLAUDE.md` sync (`aos sync`), native MCP stdio server | Deterministic pre-commit firewall (`aos hook run`) |
58
+ | **OpenAI Codex & ChatGPT** | OpenAI Codex, ChatGPT Developer Mode, GPT-4o | Prompt projection, MCP protocol, Git pre-commit barrier | Substrate invariant evaluation & diff bouncer |
59
+ | **GitHub Copilot** | VS Code, JetBrains, Visual Studio, Copilot Chat | Automatic `.github/copilot-instructions.md` compilation | Pre-commit hook & CI pipeline gatekeeper |
60
+ | **Cursor IDE** | Cursor Composer, Cursor Agent Mode | `.cursorrules` and `.cursor/rules/*.mdc` synchronization, MCP server | Instant rule prompt injection & pre-commit hook |
61
+ | **Windsurf / Codeium** | Windsurf IDE, Codeium Cascade | `.windsurfrules` automatic synchronization | Staged diff bouncer & rule validation |
62
+ | **Aider, Roo Code & Cline** | Aider CLI, Roo Code, Cline (VS Code) | Context injection (`.agents/substrate/active`), stdio MCP | Autonomous pre-commit barrier & execution autopsy |
63
+ | **Amazon Q Developer** | Amazon Q (AWS Toolkit, VS Code, JetBrains) | Substrate prompt compilation & Git pre-commit barrier | Deterministic pre-commit enforcement & CI check |
64
+ | **Local & Open Weights** | DeepSeek-R1 / V3, Llama 3, Mistral, Qwen (via Ollama, vLLM) | File-based substrate, local SQLite, stdio MCP | 100% offline, local-first behavior firewall |
65
+
66
+ ***
67
+
75
68
  ## Architecture
76
69
 
77
70
  AOS operates across three integrated planes: prompt projection, live agent context tools, and deterministic git enforcement.
@@ -80,8 +73,8 @@ AOS operates across three integrated planes: prompt projection, live agent conte
80
73
  ┌─────────────────────────────────────────────────────────────────────────────┐
81
74
  │ AGENT HARNESS INTERACTION │
82
75
  │ │
83
- │ Cursor IDE Windsurf IDE GitHub Copilot Claude Code │
84
- │ (.cursorrules) (.windsurfrules) (copilot-instr.) (CLAUDE.md) │
76
+ │ Gemini / Antigravity Claude Code Codex / ChatGPT GitHub Copilot │
77
+ │ Cursor (.cursorrules) Windsurf IDE Aider / Cline Amazon Q │
85
78
  └───────────────────────────────────────▲─────────────────────────────────────┘
86
79
  │ (aos sync: prompt projection)
87
80
  ┌───────────────────────────────────────┴─────────────────────────────────────┐
@@ -113,7 +106,7 @@ AOS operates across three integrated planes: prompt projection, live agent conte
113
106
  ### Core Architecture Components
114
107
 
115
108
  1. **Prompt Sync:** `aos sync` compiles all active machine-readable invariants from `.agents/substrate/active/` into your team's existing agent configuration files (`.cursorrules`, `.cursor/rules/aos-invariants.mdc`, `.windsurfrules`, `.github/copilot-instructions.md`, and `CLAUDE.md`). Rules stay bounded within deterministic HTML comment tags without overwriting custom prompt instructions.
116
- 2. **Model Context Protocol (MCP) Server:** `aos mcp` provides a native stdio protocol server. Any MCP-compatible tool (Cursor, Claude Desktop, Antigravity) can dynamically query active rules, inspect file blast radius, post intents, and record failure autopsies.
109
+ 2. **Model Context Protocol (MCP) Server:** `aos mcp` provides a native stdio protocol server. Any MCP-compatible tool (Cursor, Claude Desktop, Antigravity, Gemini Code Assist, Cline) can dynamically query active rules, inspect file blast radius, post intents, and record failure autopsies.
117
110
  3. **Git Pre-Commit Barrier:** `aos hook run` acts as the repo bouncer. Every staged diff is evaluated against active invariants before a commit is created. Violations halt execution immediately with exact file and line references.
118
111
  4. **Stigmergic Blackboard:** Agents communicate asynchronously by reading and appending events in `.agents/blackboard/events.jsonl`. When a worker announces an intent, an auditor injects invariants, and an adversarial critic generates edge-case tests, entirely without human intervention.
119
112
  5. **Execution Autopsy Engine:** `aos exec -- <command>` intercepts build or test failures, diagnoses root causes, and inscribes candidate rules under `.agents/substrate/candidate/` for peer review.
@@ -266,9 +259,27 @@ AOS is running right now in production repositories. Here are three machine-enfo
266
259
 
267
260
  ***
268
261
 
269
- ## Enterprise Compliance & Fleet Governance
262
+ ## Enterprise & Commercial Readiness
263
+
264
+ As enterprises deploy hundreds of AI coding agents across engineering teams, they face **Distributed Agent Amnesia**: team A discovers and patches a critical security flaw, but team B and team C repeat the exact same vulnerability next week. AOS provides an enterprise-grade control plane designed for commercial reliability and governance.
265
+
266
+ ### 1. SOC2 & AI Audit Compliance
267
+ Every autonomous agent modification, intent declaration, invariant check, and consensus decision is permanently recorded in a tamper-proof, append-only event stream (`.agents/blackboard/events.jsonl`).
268
+ * **Immutable Audit Trail:** Track which model proposed a diff, which invariant validated or rejected it, and which human or peer agent approved the change.
269
+ * **Cryptographic & Git Provenance:** Invariants record originating incident IDs, git commit hashes, author agent signatures, and verification timestamps.
270
+ * **Compliance Ready:** Satisfies SOC2 Type II, ISO 27001, and enterprise AI safety audits without transmitting proprietary code to third-party clouds.
271
+
272
+ ### 2. Eliminating AI Regression Costs
273
+ AI code generation velocity is meaningless if senior engineers spend hours diagnosing hallucinations and fixing broken builds.
274
+ * **Halting Hallucinations at the Source:** Intercepts hallucinated third-party dependencies, invalid imports, and deprecated API calls before code reaches pull request review.
275
+ * **Preventing Secret Leaks:** Built-in OWASP rules (`sec-secret-leak-002`) deterministically block API tokens, credentials, and private keys before they enter git history.
276
+ * **Pre-Commit Enforcement:** The universal git pre-commit hook runs in milliseconds locally, cutting CI re-run costs and preventing broken commits from reaching master branches.
270
277
 
271
- As enterprises deploy hundreds of AI coding agents across dozens of engineering teams, they face **Distributed Agent Amnesia**: team A discovers and patches a critical security flaw, but team B and team C repeat the exact same vulnerability next week.
278
+ ### 3. Centralized Fleet Governance Across 100+ Repositories (`aos fleet`)
279
+ Connect isolated repositories into an institutional knowledge network:
280
+ * **Global Policy Propagation:** Platform teams broadcast promoted invariants into a shared fleet mesh (`.agents/fleet.db`) with `aos fleet publish`.
281
+ * **Zero Policy Drift:** Microservices and product repositories ingest organizational security and architectural rules with `aos fleet sync`.
282
+ * **Sovereign & Local-First:** 100% offline-capable, backed by local SQLite and Git. Zero source code or proprietary schemas are transmitted to external SaaS platforms.
272
283
 
273
284
  ```
274
285
  Without Fleet Synchronization (Isolated & Vulnerable):
@@ -328,6 +339,7 @@ Team A (Origin) ──> Inscribes Rule ──> aos fleet publish
328
339
 
329
340
  * [Overview & Core Thesis](docs/index.md): Motivation, failure modes, and stigmergic solution.
330
341
  * [Getting Started Guide](docs/getting-started.md): Step-by-step setup, harness sync, and MCP configuration.
342
+ * [AI Vendor Abstraction](docs/vendor-abstraction.md): Decoupling repository invariants and control planes from LLM model providers.
331
343
  * [IDE & Tool Integration](docs/ide-integration.md): Setup Cursor, Claude Code, Copilot, Windsurf, and Git pre-commit hooks.
332
344
  * [Control Plane Web Dashboard](docs/control-plane-ui.md): Visual tour of real-time guardrail controls, diff testing, and incident autopsies.
333
345
  * [Curated Rule Packs](docs/rule-packs.md): Catalog of security, clean architecture, and SIMD performance invariant packs.
@@ -4,20 +4,36 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "agent-operating-substrate"
7
- version = "0.1.0"
8
- description = "Autonomous behavior firewall, stigmergic runtime, and permanent memory for Cursor, Copilot, and Claude Code"
7
+ version = "0.2.0"
8
+ description = "Autonomous behavior firewall, vendor-agnostic control plane, and permanent memory across Gemini, Claude, Codex, Copilot, Cursor, and Windsurf"
9
9
  readme = "README.md"
10
10
  license = "MIT"
11
11
  authors = [
12
- {name = "AOS Agent", email = "aos-agent-maintainer@proton.me"}
12
+ {name = "AOS Agent", email = "aos-agent-maintainer@proton.me"},
13
+ {name = "agent-operating-substrate-agent[bot]", email = "328717801+agent-operating-substrate-agent@users.noreply.github.com"}
14
+ ]
15
+ maintainers = [
16
+ {name = "AOS Agent", email = "aos-agent-maintainer@proton.me"},
17
+ {name = "agent-operating-substrate-agent[bot]", email = "328717801+agent-operating-substrate-agent@users.noreply.github.com"}
13
18
  ]
14
19
  keywords = [
15
20
  "agents",
16
21
  "guardrails",
17
22
  "invariants",
18
- "cursor",
19
- "copilot",
23
+ "gemini",
20
24
  "claude-code",
25
+ "codex",
26
+ "chatgpt",
27
+ "copilot",
28
+ "cursor",
29
+ "windsurf",
30
+ "amazon-q",
31
+ "aider",
32
+ "cline",
33
+ "roo-code",
34
+ "ai-governance",
35
+ "llm-firewall",
36
+ "vendor-abstraction",
21
37
  "pre-commit",
22
38
  "stigmergy",
23
39
  "mcp",
@@ -47,10 +63,10 @@ dev = [
47
63
  ]
48
64
 
49
65
  [project.urls]
50
- Homepage = "https://github.com/aos-agent/agent-operating-substrate"
51
- Documentation = "https://aos-agent.github.io/agent-operating-substrate/"
52
- Repository = "https://github.com/aos-agent/agent-operating-substrate.git"
53
- Issues = "https://github.com/aos-agent/agent-operating-substrate/issues"
66
+ Homepage = "https://github.com/agent-operating-substrate/agent-operating-substrate"
67
+ Documentation = "https://agent-operating-substrate.github.io/agent-operating-substrate/"
68
+ Repository = "https://github.com/agent-operating-substrate/agent-operating-substrate.git"
69
+ Issues = "https://github.com/agent-operating-substrate/agent-operating-substrate/issues"
54
70
 
55
71
  [project.scripts]
56
72
  aos = "aos.cli:main"
@@ -1,10 +1,42 @@
1
+ Metadata-Version: 2.4
2
+ Name: agent-operating-substrate
3
+ Version: 0.2.0
4
+ Summary: Autonomous behavior firewall, vendor-agnostic control plane, and permanent memory across Gemini, Claude, Codex, Copilot, Cursor, and Windsurf
5
+ Author-email: AOS Agent <aos-agent-maintainer@proton.me>, "agent-operating-substrate-agent[bot]" <328717801+agent-operating-substrate-agent@users.noreply.github.com>
6
+ Maintainer-email: AOS Agent <aos-agent-maintainer@proton.me>, "agent-operating-substrate-agent[bot]" <328717801+agent-operating-substrate-agent@users.noreply.github.com>
7
+ License-Expression: MIT
8
+ Project-URL: Homepage, https://github.com/agent-operating-substrate/agent-operating-substrate
9
+ Project-URL: Documentation, https://agent-operating-substrate.github.io/agent-operating-substrate/
10
+ Project-URL: Repository, https://github.com/agent-operating-substrate/agent-operating-substrate.git
11
+ Project-URL: Issues, https://github.com/agent-operating-substrate/agent-operating-substrate/issues
12
+ Keywords: agents,guardrails,invariants,gemini,claude-code,codex,chatgpt,copilot,cursor,windsurf,amazon-q,aider,cline,roo-code,ai-governance,llm-firewall,vendor-abstraction,pre-commit,stigmergy,mcp,code-quality
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Topic :: Software Development :: Quality Assurance
16
+ Classifier: Topic :: Software Development :: Testing
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Requires-Python: >=3.11
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: pyyaml>=6.0
25
+ Provides-Extra: dev
26
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
27
+ Requires-Dist: pytest-playwright>=0.5.0; extra == "dev"
28
+ Requires-Dist: playwright>=1.40.0; extra == "dev"
29
+ Requires-Dist: zensical>=0.0.30; extra == "dev"
30
+ Dynamic: license-file
31
+
1
32
  # Agent Operating Substrate (AOS)
2
33
 
3
- ### The Autonomous Behavior Firewall & Permanent Memory for Cursor, Copilot, and Claude Code.
34
+ ### The Universal AI Behavior Firewall & Vendor-Agnostic Control Plane across Gemini, Claude, Codex, Copilot, Cursor, and Windsurf.
4
35
 
5
36
  [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
6
37
  [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](#license)
7
38
  [![Zero External Dependencies](https://img.shields.io/badge/dependencies-zero%20external-orange.svg)](#architecture)
39
+ [![Vendor Agnostic](https://img.shields.io/badge/AI%20models-vendor--agnostic-blueviolet.svg)](#supported-ai-ecosystems--models)
8
40
  [![MCP Protocol Ready](https://img.shields.io/badge/MCP-compatible-purple.svg)](docs/getting-started.md#step-5-enable-the-model-context-protocol-mcp-server)
9
41
  [![Pre-Commit Enforced](https://img.shields.io/badge/git-pre--commit%20firewall-red.svg)](docs/getting-started.md#step-6-install-the-universal-git-pre-commit-hook)
10
42
 
@@ -13,19 +45,21 @@
13
45
 
14
46
  ***
15
47
 
16
- ## Why AOS?
48
+ ## The Universal AI Behavior Firewall & Memory Layer
49
+
50
+ Enterprises and developers cannot afford AI vendor lock-in or model-specific behavioral drift. Whether your engineers prompt Google Gemini 1.5 Pro, Anthropic Claude 3.5 Sonnet, OpenAI GPT-4o / Codex, Amazon Q Developer, or run local DeepSeek and Llama models, each model interprets prompts differently, hallucinates distinct anti-patterns, and loses context once the session ends.
51
+
52
+ **AOS eliminates vendor lock-in by decoupling repository guardrails from the model provider.**
17
53
 
18
- The Agent Operating Substrate (AOS) is a local behavior firewall and permanent memory system for AI coding assistants. It prevents tools like Cursor, GitHub Copilot, Claude Code, and Windsurf from repeating known mistakes, violating architectural boundaries, or introducing breaking diffs into your codebase.
54
+ No matter which AI assistant your team selects today or migrates to tomorrow, AOS guarantees the exact same repository invariants, institutional memory, and deterministic pre-commit enforcement.
19
55
 
20
- Autonomous coding agents are transforming engineering velocity. However, as teams scale AI-assisted development into production, they run directly into three structural roadblocks:
56
+ ### Three Structural Roadblocks AOS Solves
21
57
 
22
- 1. **Day-One Amnesia:** Every agent session starts from a blank slate. When an agent violates an architectural invariant, introduces memory bugs, or breaks an unspoken convention, an engineer must manually intervene. Once that context window closes, the lesson evaporates. The next agent invocation repeats the identical mistake.
58
+ 1. **Day-One Amnesia:** Every agent session starts from a blank slate. When an agent violates an architectural invariant, introduces memory bugs, or breaks an unspoken convention, an engineer manually intervenes. Once that context window closes, the lesson evaporates. The next agent invocation repeats the identical mistake.
23
59
  2. **The Human Air-Traffic Controller Bottleneck:** Multi-agent development remains strictly hub-and-spoke. Engineers spend hours manually shuttling diffs, error traces, and prompts between worker, critique, and test agents.
24
60
  3. **Broken Commits and Silent Regressions:** AI agents hallucinate deprecated APIs, alter adjacent imports, and introduce diff bloat that slips past human reviewers and pollutes Git history.
25
61
 
26
- **AOS turns your repository into a self-defending, self-improving substrate.**
27
-
28
- It provides an **Autonomous Behavior Firewall** that deterministically blocks invalid agent commits, and **Permanent Memory** that records failures as machine-enforced invariants compiled directly into every agent harness.
62
+ **AOS turns your repository into a self-defending, self-improving substrate.** It provides an **Autonomous Behavior Firewall** that deterministically blocks invalid agent commits, and **Permanent Memory** that records failures as machine-enforced invariants compiled directly into every agent harness.
29
63
 
30
64
  ***
31
65
 
@@ -44,6 +78,24 @@ It provides an **Autonomous Behavior Firewall** that deterministically blocks in
44
78
 
45
79
  ***
46
80
 
81
+ ## Supported AI Ecosystems & Models
82
+
83
+ AOS is engineered for complete AI vendor neutrality. By decoupling repository invariants and verification from any specific model provider, AOS guarantees consistent guardrails across every tool in your stack:
84
+
85
+ | AI Ecosystem / Model | Supported Tooling & Interfaces | Integration Mode | Enforcement Mechanism |
86
+ | :--- | :--- | :--- | :--- |
87
+ | **Google Gemini** | Gemini Code Assist, Gemini CLI, Antigravity | Live MCP Server (`aos mcp`), CLI execution autopsy (`aos exec`), Stigmergic Blackboard | Pre-commit hook & live MCP tools |
88
+ | **Anthropic Claude** | Claude Code, Claude Desktop, Claude Projects | Single-source `CLAUDE.md` sync (`aos sync`), native MCP stdio server | Deterministic pre-commit firewall (`aos hook run`) |
89
+ | **OpenAI Codex & ChatGPT** | OpenAI Codex, ChatGPT Developer Mode, GPT-4o | Prompt projection, MCP protocol, Git pre-commit barrier | Substrate invariant evaluation & diff bouncer |
90
+ | **GitHub Copilot** | VS Code, JetBrains, Visual Studio, Copilot Chat | Automatic `.github/copilot-instructions.md` compilation | Pre-commit hook & CI pipeline gatekeeper |
91
+ | **Cursor IDE** | Cursor Composer, Cursor Agent Mode | `.cursorrules` and `.cursor/rules/*.mdc` synchronization, MCP server | Instant rule prompt injection & pre-commit hook |
92
+ | **Windsurf / Codeium** | Windsurf IDE, Codeium Cascade | `.windsurfrules` automatic synchronization | Staged diff bouncer & rule validation |
93
+ | **Aider, Roo Code & Cline** | Aider CLI, Roo Code, Cline (VS Code) | Context injection (`.agents/substrate/active`), stdio MCP | Autonomous pre-commit barrier & execution autopsy |
94
+ | **Amazon Q Developer** | Amazon Q (AWS Toolkit, VS Code, JetBrains) | Substrate prompt compilation & Git pre-commit barrier | Deterministic pre-commit enforcement & CI check |
95
+ | **Local & Open Weights** | DeepSeek-R1 / V3, Llama 3, Mistral, Qwen (via Ollama, vLLM) | File-based substrate, local SQLite, stdio MCP | 100% offline, local-first behavior firewall |
96
+
97
+ ***
98
+
47
99
  ## Architecture
48
100
 
49
101
  AOS operates across three integrated planes: prompt projection, live agent context tools, and deterministic git enforcement.
@@ -52,8 +104,8 @@ AOS operates across three integrated planes: prompt projection, live agent conte
52
104
  ┌─────────────────────────────────────────────────────────────────────────────┐
53
105
  │ AGENT HARNESS INTERACTION │
54
106
  │ │
55
- │ Cursor IDE Windsurf IDE GitHub Copilot Claude Code │
56
- │ (.cursorrules) (.windsurfrules) (copilot-instr.) (CLAUDE.md) │
107
+ │ Gemini / Antigravity Claude Code Codex / ChatGPT GitHub Copilot │
108
+ │ Cursor (.cursorrules) Windsurf IDE Aider / Cline Amazon Q │
57
109
  └───────────────────────────────────────▲─────────────────────────────────────┘
58
110
  │ (aos sync: prompt projection)
59
111
  ┌───────────────────────────────────────┴─────────────────────────────────────┐
@@ -85,7 +137,7 @@ AOS operates across three integrated planes: prompt projection, live agent conte
85
137
  ### Core Architecture Components
86
138
 
87
139
  1. **Prompt Sync:** `aos sync` compiles all active machine-readable invariants from `.agents/substrate/active/` into your team's existing agent configuration files (`.cursorrules`, `.cursor/rules/aos-invariants.mdc`, `.windsurfrules`, `.github/copilot-instructions.md`, and `CLAUDE.md`). Rules stay bounded within deterministic HTML comment tags without overwriting custom prompt instructions.
88
- 2. **Model Context Protocol (MCP) Server:** `aos mcp` provides a native stdio protocol server. Any MCP-compatible tool (Cursor, Claude Desktop, Antigravity) can dynamically query active rules, inspect file blast radius, post intents, and record failure autopsies.
140
+ 2. **Model Context Protocol (MCP) Server:** `aos mcp` provides a native stdio protocol server. Any MCP-compatible tool (Cursor, Claude Desktop, Antigravity, Gemini Code Assist, Cline) can dynamically query active rules, inspect file blast radius, post intents, and record failure autopsies.
89
141
  3. **Git Pre-Commit Barrier:** `aos hook run` acts as the repo bouncer. Every staged diff is evaluated against active invariants before a commit is created. Violations halt execution immediately with exact file and line references.
90
142
  4. **Stigmergic Blackboard:** Agents communicate asynchronously by reading and appending events in `.agents/blackboard/events.jsonl`. When a worker announces an intent, an auditor injects invariants, and an adversarial critic generates edge-case tests, entirely without human intervention.
91
143
  5. **Execution Autopsy Engine:** `aos exec -- <command>` intercepts build or test failures, diagnoses root causes, and inscribes candidate rules under `.agents/substrate/candidate/` for peer review.
@@ -238,9 +290,27 @@ AOS is running right now in production repositories. Here are three machine-enfo
238
290
 
239
291
  ***
240
292
 
241
- ## Enterprise Compliance & Fleet Governance
293
+ ## Enterprise & Commercial Readiness
294
+
295
+ As enterprises deploy hundreds of AI coding agents across engineering teams, they face **Distributed Agent Amnesia**: team A discovers and patches a critical security flaw, but team B and team C repeat the exact same vulnerability next week. AOS provides an enterprise-grade control plane designed for commercial reliability and governance.
296
+
297
+ ### 1. SOC2 & AI Audit Compliance
298
+ Every autonomous agent modification, intent declaration, invariant check, and consensus decision is permanently recorded in a tamper-proof, append-only event stream (`.agents/blackboard/events.jsonl`).
299
+ * **Immutable Audit Trail:** Track which model proposed a diff, which invariant validated or rejected it, and which human or peer agent approved the change.
300
+ * **Cryptographic & Git Provenance:** Invariants record originating incident IDs, git commit hashes, author agent signatures, and verification timestamps.
301
+ * **Compliance Ready:** Satisfies SOC2 Type II, ISO 27001, and enterprise AI safety audits without transmitting proprietary code to third-party clouds.
302
+
303
+ ### 2. Eliminating AI Regression Costs
304
+ AI code generation velocity is meaningless if senior engineers spend hours diagnosing hallucinations and fixing broken builds.
305
+ * **Halting Hallucinations at the Source:** Intercepts hallucinated third-party dependencies, invalid imports, and deprecated API calls before code reaches pull request review.
306
+ * **Preventing Secret Leaks:** Built-in OWASP rules (`sec-secret-leak-002`) deterministically block API tokens, credentials, and private keys before they enter git history.
307
+ * **Pre-Commit Enforcement:** The universal git pre-commit hook runs in milliseconds locally, cutting CI re-run costs and preventing broken commits from reaching master branches.
242
308
 
243
- As enterprises deploy hundreds of AI coding agents across dozens of engineering teams, they face **Distributed Agent Amnesia**: team A discovers and patches a critical security flaw, but team B and team C repeat the exact same vulnerability next week.
309
+ ### 3. Centralized Fleet Governance Across 100+ Repositories (`aos fleet`)
310
+ Connect isolated repositories into an institutional knowledge network:
311
+ * **Global Policy Propagation:** Platform teams broadcast promoted invariants into a shared fleet mesh (`.agents/fleet.db`) with `aos fleet publish`.
312
+ * **Zero Policy Drift:** Microservices and product repositories ingest organizational security and architectural rules with `aos fleet sync`.
313
+ * **Sovereign & Local-First:** 100% offline-capable, backed by local SQLite and Git. Zero source code or proprietary schemas are transmitted to external SaaS platforms.
244
314
 
245
315
  ```
246
316
  Without Fleet Synchronization (Isolated & Vulnerable):
@@ -300,6 +370,7 @@ Team A (Origin) ──> Inscribes Rule ──> aos fleet publish
300
370
 
301
371
  * [Overview & Core Thesis](docs/index.md): Motivation, failure modes, and stigmergic solution.
302
372
  * [Getting Started Guide](docs/getting-started.md): Step-by-step setup, harness sync, and MCP configuration.
373
+ * [AI Vendor Abstraction](docs/vendor-abstraction.md): Decoupling repository invariants and control planes from LLM model providers.
303
374
  * [IDE & Tool Integration](docs/ide-integration.md): Setup Cursor, Claude Code, Copilot, Windsurf, and Git pre-commit hooks.
304
375
  * [Control Plane Web Dashboard](docs/control-plane-ui.md): Visual tour of real-time guardrail controls, diff testing, and incident autopsies.
305
376
  * [Curated Rule Packs](docs/rule-packs.md): Catalog of security, clean architecture, and SIMD performance invariant packs.
@@ -1,3 +1,4 @@
1
+ LICENSE
1
2
  README.md
2
3
  pyproject.toml
3
4
  src/agent_operating_substrate.egg-info/PKG-INFO
@@ -8,6 +9,7 @@ src/agent_operating_substrate.egg-info/requires.txt
8
9
  src/agent_operating_substrate.egg-info/top_level.txt
9
10
  src/aos/__init__.py
10
11
  src/aos/__main__.py
12
+ src/aos/app_auth.py
11
13
  src/aos/autopsy.py
12
14
  src/aos/blackboard.py
13
15
  src/aos/ci.py
@@ -19,6 +21,7 @@ src/aos/enforcer.py
19
21
  src/aos/engine.py
20
22
  src/aos/executor.py
21
23
  src/aos/fleet.py
24
+ src/aos/git_credential.py
22
25
  src/aos/harness.py
23
26
  src/aos/hook.py
24
27
  src/aos/identity.py