agent-operating-substrate 0.1.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.
- agent_operating_substrate-0.1.0/PKG-INFO +344 -0
- agent_operating_substrate-0.1.0/README.md +316 -0
- agent_operating_substrate-0.1.0/pyproject.toml +59 -0
- agent_operating_substrate-0.1.0/setup.cfg +4 -0
- agent_operating_substrate-0.1.0/src/agent_operating_substrate.egg-info/PKG-INFO +344 -0
- agent_operating_substrate-0.1.0/src/agent_operating_substrate.egg-info/SOURCES.txt +53 -0
- agent_operating_substrate-0.1.0/src/agent_operating_substrate.egg-info/dependency_links.txt +1 -0
- agent_operating_substrate-0.1.0/src/agent_operating_substrate.egg-info/entry_points.txt +2 -0
- agent_operating_substrate-0.1.0/src/agent_operating_substrate.egg-info/requires.txt +7 -0
- agent_operating_substrate-0.1.0/src/agent_operating_substrate.egg-info/top_level.txt +1 -0
- agent_operating_substrate-0.1.0/src/aos/__init__.py +65 -0
- agent_operating_substrate-0.1.0/src/aos/__main__.py +7 -0
- agent_operating_substrate-0.1.0/src/aos/autopsy.py +177 -0
- agent_operating_substrate-0.1.0/src/aos/blackboard.py +114 -0
- agent_operating_substrate-0.1.0/src/aos/ci.py +201 -0
- agent_operating_substrate-0.1.0/src/aos/cli.py +772 -0
- agent_operating_substrate-0.1.0/src/aos/curator.py +143 -0
- agent_operating_substrate-0.1.0/src/aos/daemon.py +121 -0
- agent_operating_substrate-0.1.0/src/aos/discovery.py +72 -0
- agent_operating_substrate-0.1.0/src/aos/enforcer.py +374 -0
- agent_operating_substrate-0.1.0/src/aos/engine.py +110 -0
- agent_operating_substrate-0.1.0/src/aos/executor.py +80 -0
- agent_operating_substrate-0.1.0/src/aos/fleet.py +160 -0
- agent_operating_substrate-0.1.0/src/aos/harness.py +151 -0
- agent_operating_substrate-0.1.0/src/aos/hook.py +112 -0
- agent_operating_substrate-0.1.0/src/aos/identity.py +205 -0
- agent_operating_substrate-0.1.0/src/aos/ingest.py +251 -0
- agent_operating_substrate-0.1.0/src/aos/matcher.py +125 -0
- agent_operating_substrate-0.1.0/src/aos/mcp.py +188 -0
- agent_operating_substrate-0.1.0/src/aos/mesh.py +155 -0
- agent_operating_substrate-0.1.0/src/aos/models.py +107 -0
- agent_operating_substrate-0.1.0/src/aos/packs.py +408 -0
- agent_operating_substrate-0.1.0/src/aos/ui.py +3205 -0
- agent_operating_substrate-0.1.0/src/aos/validator.py +123 -0
- agent_operating_substrate-0.1.0/tests/test_autonomous_loop.py +69 -0
- agent_operating_substrate-0.1.0/tests/test_autopsy.py +61 -0
- agent_operating_substrate-0.1.0/tests/test_blackboard.py +49 -0
- agent_operating_substrate-0.1.0/tests/test_ci.py +97 -0
- agent_operating_substrate-0.1.0/tests/test_curator.py +58 -0
- agent_operating_substrate-0.1.0/tests/test_daemon.py +52 -0
- agent_operating_substrate-0.1.0/tests/test_enforcer.py +161 -0
- agent_operating_substrate-0.1.0/tests/test_executor.py +26 -0
- agent_operating_substrate-0.1.0/tests/test_fleet.py +125 -0
- agent_operating_substrate-0.1.0/tests/test_harness.py +88 -0
- agent_operating_substrate-0.1.0/tests/test_hook.py +50 -0
- agent_operating_substrate-0.1.0/tests/test_identity.py +58 -0
- agent_operating_substrate-0.1.0/tests/test_ingest.py +167 -0
- agent_operating_substrate-0.1.0/tests/test_mcp.py +79 -0
- agent_operating_substrate-0.1.0/tests/test_mesh.py +64 -0
- agent_operating_substrate-0.1.0/tests/test_packs.py +58 -0
- agent_operating_substrate-0.1.0/tests/test_performance.py +183 -0
- agent_operating_substrate-0.1.0/tests/test_rule_discovery.py +113 -0
- agent_operating_substrate-0.1.0/tests/test_rule_matching.py +69 -0
- agent_operating_substrate-0.1.0/tests/test_schema_validation.py +92 -0
- agent_operating_substrate-0.1.0/tests/test_ui.py +663 -0
|
@@ -0,0 +1,344 @@
|
|
|
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
|
+
# Agent Operating Substrate (AOS)
|
|
30
|
+
|
|
31
|
+
### The Autonomous Behavior Firewall & Permanent Memory for Cursor, Copilot, and Claude Code.
|
|
32
|
+
|
|
33
|
+
[](https://www.python.org/downloads/)
|
|
34
|
+
[](#license)
|
|
35
|
+
[](#architecture)
|
|
36
|
+
[](docs/getting-started.md#step-5-enable-the-model-context-protocol-mcp-server)
|
|
37
|
+
[](docs/getting-started.md#step-6-install-the-universal-git-pre-commit-hook)
|
|
38
|
+
|
|
39
|
+
> [!NOTE]
|
|
40
|
+
> **Autonomous Agent Project Notice**: The Agent Operating Substrate is designed, implemented, and maintained autonomously by AI agents (`AOS Agent`). The agents identify codebase improvements, conduct failure autopsies, synthesize invariant rules, and maintain repository health under human supervisory oversight. All post-initial release contributions follow a strict Pull Request / Merge Request model to support parallel multi-agent and human collaboration.
|
|
41
|
+
|
|
42
|
+
***
|
|
43
|
+
|
|
44
|
+
## Why AOS?
|
|
45
|
+
|
|
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.
|
|
47
|
+
|
|
48
|
+
Autonomous coding agents are transforming engineering velocity. However, as teams scale AI-assisted development into production, they run directly into three structural roadblocks:
|
|
49
|
+
|
|
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.
|
|
51
|
+
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
|
+
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
|
+
|
|
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.
|
|
57
|
+
|
|
58
|
+
***
|
|
59
|
+
|
|
60
|
+
## Before AOS vs After AOS
|
|
61
|
+
|
|
62
|
+
| Dimension | Before AOS | With AOS |
|
|
63
|
+
| :--- | :--- | :--- |
|
|
64
|
+
| **Memory Retention** | **Goldfish Memory:** Lessons vanish the moment the chat context closes. The same hallucinated APIs and anti-patterns recur indefinitely. | **Permanent Repo Immunity:** Failures trigger machine-inscribed YAML invariants stored in Git. Agents inherit lessons forever. |
|
|
65
|
+
| **Agent Coordination** | **Human Air-Traffic Controller:** Engineers manually copy-paste diffs and prompts between worker, review, and test agents. | **Autonomous Stigmergy:** Decentralized local blackboard (`events.jsonl`). Agents coordinate unprompted through environmental traces. |
|
|
66
|
+
| **Code Quality Defense** | **Broken Production Commits:** Regressions and style violations slip past reviews into CI and production branches. | **Git Pre-Commit Bouncer:** Universal git hook (`aos hook run`) deterministically blocks non-compliant commits before code leaves the laptop. |
|
|
67
|
+
| **IDE & CLI Harmonization** | **Prompt Drift & Siloed Configs:** Fragile, manual syncing across `.cursorrules`, `.windsurfrules`, Copilot, and Claude prompts. | **Single Source of Truth:** `aos sync` compiles active substrate rules into all IDE and CLI harnesses with zero drift. |
|
|
68
|
+
| **Incident Response** | **Manual Post-Mortems:** Humans explain errors in chat and cross their fingers that future agents remember. | **Automated Execution Autopsy:** `aos exec` intercepts test and compiler crashes and automatically synthesizes candidate invariant rules. |
|
|
69
|
+
| **Rule Evolution** | **Prompt Bloat & Conflicts:** Monolithic prompt files grow unmanageable, contradict each other, and degrade model reasoning. | **Autonomous Rule Curation:** `aos curate` detects conflicts, subsumes redundant rules, and archives stale constraints automatically. |
|
|
70
|
+
| **Enterprise Governance** | **Fragmented Policy Spread:** Security standards live in wiki docs that AI coding agents never read. | **Cross-Repo Fleet Mesh:** `aos fleet publish` and `aos fleet sync` propagate compliance policies across hundreds of repositories. |
|
|
71
|
+
| **Infrastructure Overhead** | **Complex Cloud SaaS:** External vector databases, expensive SaaS orchestrators, and network latency. | **Zero External Infrastructure:** 100% local file primitives, Git-backed versioning, JSON/YAML schemas, and SQLite. |
|
|
72
|
+
|
|
73
|
+
***
|
|
74
|
+
|
|
75
|
+
## Architecture
|
|
76
|
+
|
|
77
|
+
AOS operates across three integrated planes: prompt projection, live agent context tools, and deterministic git enforcement.
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
81
|
+
│ AGENT HARNESS INTERACTION │
|
|
82
|
+
│ │
|
|
83
|
+
│ Cursor IDE Windsurf IDE GitHub Copilot Claude Code │
|
|
84
|
+
│ (.cursorrules) (.windsurfrules) (copilot-instr.) (CLAUDE.md) │
|
|
85
|
+
└───────────────────────────────────────▲─────────────────────────────────────┘
|
|
86
|
+
│ (aos sync: prompt projection)
|
|
87
|
+
┌───────────────────────────────────────┴─────────────────────────────────────┐
|
|
88
|
+
│ AGENT OPERATING SUBSTRATE │
|
|
89
|
+
│ │
|
|
90
|
+
│ ┌───────────────────────────┐ ┌───────────────────────────────┐ │
|
|
91
|
+
│ │ Active Invariants │ │ Asynchronous Blackboard │ │
|
|
92
|
+
│ │ (.agents/substrate/active)│ │ (.agents/blackboard/events) │ │
|
|
93
|
+
│ └─────────────┬─────────────┘ └───────────────┬───────────────┘ │
|
|
94
|
+
│ │ │ │
|
|
95
|
+
│ ┌─────────────▼─────────────┐ ┌───────────────▼───────────────┐ │
|
|
96
|
+
│ │ Runtime MCP Server │ │ Autonomous Peer Mesh │ │
|
|
97
|
+
│ │ (aos_rules_check, etc.) │ │ (worker, auditor, critic) │ │
|
|
98
|
+
│ └───────────────────────────┘ └───────────────────────────────┘ │
|
|
99
|
+
└───────────────────────────────────────┬─────────────────────────────────────┘
|
|
100
|
+
│
|
|
101
|
+
┌───────────────────────────────────────▼─────────────────────────────────────┐
|
|
102
|
+
│ DETERMINISTIC GIT BARRIER │
|
|
103
|
+
│ │
|
|
104
|
+
│ Developer / Agent Commit ───> .git/hooks/pre-commit (aos hook run) │
|
|
105
|
+
│ ├── Invariant Rules Evaluation │
|
|
106
|
+
│ ├── Contiguous Diff Limits (<30 lines) │
|
|
107
|
+
│ └── Punctuation & Style Enforcement │
|
|
108
|
+
│ └── PASSED: Commit Recorded in Git Graph │
|
|
109
|
+
│ └── FAILED: Deterministic Exit Code 1 │
|
|
110
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Core Architecture Components
|
|
114
|
+
|
|
115
|
+
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.
|
|
117
|
+
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
|
+
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
|
+
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.
|
|
120
|
+
|
|
121
|
+
```mermaid
|
|
122
|
+
flowchart LR
|
|
123
|
+
subgraph S1["1. Knowledge Substrate"]
|
|
124
|
+
R["Active Rules<br/>(.agents/substrate/active/)"]
|
|
125
|
+
B["Blackboard Events<br/>(.agents/blackboard/events.jsonl)"]
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
subgraph S2["2. Developer & Agent Tooling"]
|
|
129
|
+
P["Prompt Sync<br/>(Cursor, Copilot, Claude)"]
|
|
130
|
+
M["MCP Server<br/>(Live Invariant Query Tools)"]
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
subgraph S3["3. Enforcement & Verification"]
|
|
134
|
+
H["Git Pre-Commit Hook<br/>(Deterministic Barrier)"]
|
|
135
|
+
CI["Continuous Integration<br/>(aos ci check)"]
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
R -->|aos sync| P
|
|
139
|
+
R -->|stdio protocol| M
|
|
140
|
+
P --> H
|
|
141
|
+
M --> H
|
|
142
|
+
H -->|Passed| CI
|
|
143
|
+
CI -->|Failure Autopsy| R
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
***
|
|
147
|
+
|
|
148
|
+
## 60-Second Quickstart
|
|
149
|
+
|
|
150
|
+
Get your repository running with autonomous agent enforcement in four simple commands:
|
|
151
|
+
|
|
152
|
+
### 1. Install AOS
|
|
153
|
+
AOS is built with pure Python and zero external runtime services:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
pip install -e .
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### 2. Initialize the Substrate
|
|
160
|
+
Create the local substrate structure under `.agents/`:
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
aos init
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Output:
|
|
167
|
+
```text
|
|
168
|
+
Created config: .agents/config.yaml
|
|
169
|
+
Created event stream: .agents/blackboard/events.jsonl
|
|
170
|
+
Substrate initialized under .agents/
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### 3. Install a Curated Rule Pack
|
|
174
|
+
Bootstrap production-grade guardrails for security or architecture:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
aos pack install security-owasp
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
Output:
|
|
181
|
+
```text
|
|
182
|
+
Installed 3 rule(s) into active substrate:
|
|
183
|
+
- .agents/substrate/active/sec-sql-injection-001.yaml
|
|
184
|
+
- .agents/substrate/active/sec-secret-leak-002.yaml
|
|
185
|
+
- .agents/substrate/active/sec-ssrf-003.yaml
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### 4. Sync Agent Prompts
|
|
189
|
+
Compile all active invariants into Cursor, Windsurf, Copilot, and Claude Code:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
aos sync
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Output:
|
|
196
|
+
```text
|
|
197
|
+
Synced 5 agent harness configuration(s):
|
|
198
|
+
- cursor: .cursorrules
|
|
199
|
+
- cursor_mdc: .cursor/rules/aos-invariants.mdc
|
|
200
|
+
- windsurf: .windsurfrules
|
|
201
|
+
- copilot: .github/copilot-instructions.md
|
|
202
|
+
- claude: CLAUDE.md
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### 5. Install the Universal Git Pre-Commit Hook
|
|
206
|
+
Enforce active invariants on every commit automatically:
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
aos hook install
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### 6. Verify Files Instantly
|
|
213
|
+
Check any file or staged diff against active invariants:
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
aos rules check src/
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
***
|
|
220
|
+
|
|
221
|
+
## 3 Real-World Proofs
|
|
222
|
+
|
|
223
|
+
AOS is running right now in production repositories. Here are three machine-enforced proofs executing directly inside this codebase:
|
|
224
|
+
|
|
225
|
+
### Proof 1: SIMD 32-Byte Alignment Crash Prevention
|
|
226
|
+
* **The Incident:** High-throughput vector geometry kernels (AVX2/AVX-512) crash with general protection faults when fed unaligned memory pointers. Standard LLMs frequently generate naive allocations, causing runtime panics.
|
|
227
|
+
* **The Active Invariant (`perf-simd-012.yaml`):** Requires 32-byte alignment on all buffers in `src/geometry/simd/**`.
|
|
228
|
+
* **The Interception:** When an agent attempts to edit vector code:
|
|
229
|
+
```bash
|
|
230
|
+
aos rules check src/geometry/simd/kernel.cpp
|
|
231
|
+
```
|
|
232
|
+
AOS flags the rule, binding the agent to emit `alignas(32)` buffers before code reaches the compiler.
|
|
233
|
+
|
|
234
|
+
### Proof 2: Surgical Diff & Punctuation Pre-Commit Bouncer
|
|
235
|
+
* **The Incident:** Coding agents frequently over-refactor code, reformatting adjacent imports, changing comments, or injecting stylistic typography like em dashes that violate conventions.
|
|
236
|
+
* **The Active Invariants (`aos-diff-002` and `aos-punct-001`):** Mandate surgical changes (<30 contiguous lines without justification) and zero em dashes across all prose and code.
|
|
237
|
+
* **The Interception:** When an agent stages a file containing forbidden punctuation:
|
|
238
|
+
```bash
|
|
239
|
+
git commit -m "docs: update notes"
|
|
240
|
+
```
|
|
241
|
+
The pre-commit hook runs `aos hook run` and blocks the commit deterministically:
|
|
242
|
+
```text
|
|
243
|
+
[AOS Hook] Evaluating staged files against active substrate invariants...
|
|
244
|
+
- [aos-punct-001] Violation: Forbidden em dash detected. (reject_diff)
|
|
245
|
+
Commit blocked by AOS invariant enforcer.
|
|
246
|
+
```
|
|
247
|
+
The agent reads the rejection message, corrects the punctuation, and re-commits without human intervention.
|
|
248
|
+
|
|
249
|
+
### Proof 3: Unprompted Peer Mesh Convergence
|
|
250
|
+
* **The Incident:** Coordinating worker, auditor, and adversarial critic agents traditionally requires manual human dispatching or expensive cloud orchestrators.
|
|
251
|
+
* **The Stigmergic Mesh:** Agents collaborate asynchronously through `.agents/blackboard/events.jsonl`:
|
|
252
|
+
```bash
|
|
253
|
+
aos mesh simulate --desc "Optimize vector boundary conditions" --files src/geometry/simd/kernel.cpp
|
|
254
|
+
```
|
|
255
|
+
Output:
|
|
256
|
+
```text
|
|
257
|
+
Peer Mesh Simulation: Intent 'intent-e41c30' - Status: CONVERGED
|
|
258
|
+
Emitted 5 event(s) to blackboard:
|
|
259
|
+
- [INTENT_ANNOUNCEMENT] From: worker-agent
|
|
260
|
+
- [INVARIANT_INJECTION] From: auditor-agent
|
|
261
|
+
- [ADVERSARIAL_CHALLENGE] From: adversarial-critic-agent
|
|
262
|
+
- [PEER_CRITIQUE] From: auditor-agent
|
|
263
|
+
- [PEER_CONVERGENCE] From: consensus-orchestrator
|
|
264
|
+
```
|
|
265
|
+
The engineering team is alerted only when consensus is reached.
|
|
266
|
+
|
|
267
|
+
***
|
|
268
|
+
|
|
269
|
+
## Enterprise Compliance & Fleet Governance
|
|
270
|
+
|
|
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.
|
|
272
|
+
|
|
273
|
+
```
|
|
274
|
+
Without Fleet Synchronization (Isolated & Vulnerable):
|
|
275
|
+
Team A fixes critical bug ──> Knowledge stays trapped in Team A repo
|
|
276
|
+
Team B AI writes same bug ──> Re-enters codebase, redundant debugging
|
|
277
|
+
Team C AI writes same bug ──> Reaches production incident
|
|
278
|
+
|
|
279
|
+
With AOS Enterprise Fleet Synchronization:
|
|
280
|
+
Team A (Origin) ──> Inscribes Rule ──> aos fleet publish
|
|
281
|
+
│
|
|
282
|
+
▼
|
|
283
|
+
┌───────────────────────────┐
|
|
284
|
+
│ Enterprise Fleet Mesh │
|
|
285
|
+
│ (.agents/fleet.db) │
|
|
286
|
+
└─────────────┬─────────────┘
|
|
287
|
+
│
|
|
288
|
+
▼ (aos fleet sync)
|
|
289
|
+
┌────────────────────────────┴────────────────────────────┐
|
|
290
|
+
▼ ▼
|
|
291
|
+
Team B (Active Guardrail) Team C (Active Guardrail)
|
|
292
|
+
Agent blocked from mistake Agent blocked from mistake
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### Key Enterprise Capabilities
|
|
296
|
+
|
|
297
|
+
* **Zero Policy Drift:** Platform and security teams publish global compliance rules (`sec-sql-injection-001`, `sec-secret-leak-002`) into the fleet mesh with `aos fleet publish`. Downstream repositories synchronize them instantly with `aos fleet sync`.
|
|
298
|
+
* **Auditable Provenance:** Every invariant records full compliance metadata: originating incident ID, git commit hash, author agent identity, and verification timestamps.
|
|
299
|
+
* **SOC2 & ISO 27001 Ready:** Invariants serve as living, version-controlled evidence that security constraints are deterministically enforced on every local commit and in CI.
|
|
300
|
+
* **Air-Gapped & Local-First:** Backed by local SQLite and Git. Zero source code or proprietary schemas are transmitted to external third-party cloud services.
|
|
301
|
+
|
|
302
|
+
***
|
|
303
|
+
|
|
304
|
+
## CLI Command Reference
|
|
305
|
+
|
|
306
|
+
| Command | Purpose |
|
|
307
|
+
| :--- | :--- |
|
|
308
|
+
| `aos init` | Initialize `.agents/` substrate and configuration in the target repository. |
|
|
309
|
+
| `aos rules list` | List all invariant rules filtered by status (`active`, `candidate`, `archive`). |
|
|
310
|
+
| `aos rules check <path>` | Check target files or directories against active invariant rules. |
|
|
311
|
+
| `aos enforce <rule-id>` | Deterministically enforce an invariant rule against target files. |
|
|
312
|
+
| `aos sync` | Sync active invariants into `.cursorrules`, `.windsurfrules`, Copilot, and Claude. |
|
|
313
|
+
| `aos hook install` | Install the universal git pre-commit hook into `.git/hooks/`. |
|
|
314
|
+
| `aos hook run` | Execute pre-commit validation against staged files. |
|
|
315
|
+
| `aos mcp` | Start the Model Context Protocol stdio server for live agent integration. |
|
|
316
|
+
| `aos exec -- <cmd>` | Wrap command execution with autonomous failure autopsy and rule inscription. |
|
|
317
|
+
| `aos pack list` | List available curated invariant rule packs. |
|
|
318
|
+
| `aos pack install <pack>` | Install a curated rule pack into active (or candidate) status. |
|
|
319
|
+
| `aos mesh simulate` | Simulate autonomous peer-to-peer agent mesh coordination. |
|
|
320
|
+
| `aos fleet publish <id>` | Publish a local rule to the enterprise fleet mesh. |
|
|
321
|
+
| `aos fleet sync` | Synchronize global fleet invariants into the local repository. |
|
|
322
|
+
| `aos curate` | Autonomously prune, consolidate, and archive substrate rules. |
|
|
323
|
+
| `aos ui` | Launch the local web dashboard visualizer. |
|
|
324
|
+
|
|
325
|
+
***
|
|
326
|
+
|
|
327
|
+
## Documentation
|
|
328
|
+
|
|
329
|
+
* [Overview & Core Thesis](docs/index.md): Motivation, failure modes, and stigmergic solution.
|
|
330
|
+
* [Getting Started Guide](docs/getting-started.md): Step-by-step setup, harness sync, and MCP configuration.
|
|
331
|
+
* [IDE & Tool Integration](docs/ide-integration.md): Setup Cursor, Claude Code, Copilot, Windsurf, and Git pre-commit hooks.
|
|
332
|
+
* [Control Plane Web Dashboard](docs/control-plane-ui.md): Visual tour of real-time guardrail controls, diff testing, and incident autopsies.
|
|
333
|
+
* [Curated Rule Packs](docs/rule-packs.md): Catalog of security, clean architecture, and SIMD performance invariant packs.
|
|
334
|
+
* [Architecture & Theoretical Foundations](docs/architecture.md): The three inscription loops, blackboard event bus, and mathematical model.
|
|
335
|
+
* [CLI Reference](docs/cli-reference.md): Complete reference of all subcommands, arguments, and environment variables.
|
|
336
|
+
* [Enterprise Fleet Synchronization](docs/enterprise-fleet.md): Cross-repository governance and fleet mesh management.
|
|
337
|
+
* [System Specification](SPEC.md): Formal YAML schemas and protocol specifications.
|
|
338
|
+
* [Agent Guidelines](AGENTS.md): Strict operating rules for autonomous agents working in this repository.
|
|
339
|
+
|
|
340
|
+
***
|
|
341
|
+
|
|
342
|
+
## License
|
|
343
|
+
|
|
344
|
+
Distributed under the standard MIT License.
|