Repository navigation
Testing and TDD Architecture
The A.I.M.-Antigravity integration brought a massive paradigm shift to testing infrastructure. Legacy iterations of the exoskeleton (aim, aim-codex, and aim-claude) assumed a Linux shell environment where tools inherently ran in sandboxed sub-processes and where session polling loops extracted raw JSONL files (*.jsonl).
In contrast, A.I.M.-Antigravity completely drops live CLI daemon polling in favor of parsing the explicitly exported session markdown (.md) from your local Downloads/ folder. Therefore, the fundamental testing architecture engineered for past A.I.M. daemon wrappers was completely overhauled.
In earlier versions of A.I.M., tests (test_full_session.py, test_hooks_session_summarizer.py) validated complex daemon interactions. Because Antigravity leverages isolated execution (file-listening rather than daemon polling), those tests represented Architectural Debt and were deeply incompatible with the underlying ideology.
In this overhaul, all legacy CLI test suites relying on silent jsonl daemon polling over active shells have been permanently quarantined or purged. Tests now focus entirely on native hook registry mechanics and explicit file parsing.
The greatest blocker inherited from the aim-claude and aim-codex repositories was the Model Context Protocol (MCP) execution module (src/mcp_server.py). The legacy script hard-coded Linux Bubblewrap (bwrap) kernel isolation for executing dynamic scripts, injecting intense --ro-bind kernel commands that universally crash on Windows 11.
Because Antigravity operates natively inside your IDE context rather than via an externally hosted sub-container, isolated security virtualization was removed in favor of GitOps-driven ACLs:
-
mcp_server.pynow leverages native Pythonsubprocess.run(). - The corresponding testing suite (
test_mcp_integration.py) has been rewritten to validate tool routing seamlessly across standard sys environments without kernel flags. - Result: You can run pure, un-mocked skill verifications on any OS environment instantly.
Tests are isolated by target layer. Due to the shift away from Daemon polling, running --e2e tests is no longer supported on the codebase. Validation focuses on tight unit checks and structural integration routes.
Warning
Do NOT run pytest recursively over the entire tests/ folder (e.g., python -m pytest tests/). Legacy integration tests that still expect daemon namespaces exist within tests/quarantine/ and will cause a chain of module-resolution ImportError crashes.
To ensure proper PYTHONPATH loading and to test the healthy suites:
$env:PYTHONPATH="src;scripts"
python -m pytest tests/unit/ tests/integration/ -vThe testing codebase previously suffered from hardcoded UNIX path fragments (/tmp/). The updated testing suite now universally implements tempfile.gettempdir() alongside standard Python os.path.join() or pathlib.Path constructions, validating cross-environment operability exactly as intended by the Antigravity system.
- Atomic Architecture (The KISS Manifesto)
- Origin Story
- The Logic Of A.I.M.
- The A.I.M. Handbook (Operator's Manual)
- The Swarm Post Office (Comms Interface)
- The Master Schema
- Waterfall Memory Architecture
- Technical Specification
- Script Map (Core Codebase Map)
- Brain Map (Memory Architecture)
- A.I.M. Prompt Injection Map
- AI Prompt Ledger
- Onboarding Identity Map
- Handoff Architecture Guide
- Reincarnation Map
- TUI Map (Cockpit UI Logic)
- The Global Chalkboard (Concept: Document Data Bus)
- Remote Fleet Architecture (Concept: The Phantom Keyboard)
- The Eureka Protocol (Concept: Live Context Pruning)
- The Sovereign Swarm (Concept: BitTorrent DataJack)
- The Decoupled Brain (Concept: Obsidian Transport Layer)
- Obsidian Bridge Architecture
- Layered Engram Architecture
- The Pragmatic Feature Manifesto
- The Cascading Memory Engine
- Hybrid RAG (Semantic + Lexical)
- Cognitive Routing
- The DataJack Protocol
- Runbook Engram Creation
- The GitOps Bridge
- Feature Quarantine Daemon
- The 30 Percent Rule
- TUI Handoff Report
- The Universal Skills Framework
- Vibe Coding Pipelines (Automated Agentic Assembly)
- Cartridge Farming Ecosystem
- Design Future Architectures
- The Collective Cortex (Vision: SETI@home for AI)
- Sovereign Swarm (P2P) (Architecture: P2P DataJack)
- Eureka Protocol & Synapses (Protocol: Synthetic Data Factory)