Architecture, Systems & Trust
BlastGate is engineered as a production-grade systems intelligence console. Explore the complete technical stack, security boundaries, FalkorDB Cypher traversal mechanics, and honest disclosures.
System Component Map
Vanilla Console & Strict CSP
Built with zero heavyweight dependencies (HTML5, Vanilla CSS, ES Modules). Enforces a strict Content Security Policy (no inline scripts, no untrusted origins, clickjacking protection).
web/app.js, web/view.js, web/styles.cssFastAPI Core Engine
Serves deterministic endpoints (/api/analyze, /api/simulate) and the investigation runner (/api/agent/investigate). Implements sliding-window rate limiters and auth guards.
blastgate/api.pyGristle AST Extractor
Executes inside an isolated environment (.gristle-venv). Parses repository AST, maps symbols to schemas, and generates tamper-resistant review reports.
blastgate/codegraph.py, scripts/setup_gristle.shFalkorDB Graph Database
High-throughput graph database running on Redis protocol. Stores service nodes, CONSUMES_FIELD contracts, DEPENDS_ON topologies, SLAs, and historical incidents.
blastgate/graph.py, Cypher multi-hop traversalsAllowlisted MCP Server
Implements the Model Context Protocol (MCP) specification over stdio. Exposes 5 allowlisted tools with schema validation, PR pinning, and duplicate execution guards.
blastgate/mcp_server.py, blastgate/tools.pyDeterministic Verdict Engine
Evaluates multi-hop topology, consumer fallbacks, critical service exposures, and incident recurrence. Decisions are 100% reproducible and immune to LLM hallucination.
blastgate/verdict.py, blastgate/analysis.pyGRAPH.COPY Sandbox
Duplicates active graph state into a temporary copy in FalkorDB. Simulates hypothetical consumer fallback mitigations without polluting the production graph.
blastgate/simulation.pyInvestigation Memory Graph
Stores prior investigation verdicts and AST review hashes in a dedicated graph. Revalidates historical claims against active graph topology upon recall.
blastgate/memory.pyTrack 01 Rubric Compliance Matrix
| Criterion | Implementation in Codebase | Verification Test |
|---|---|---|
| 1. Multi-hop reasoning |
Traverses transitive consumer paths from pricing-engine to checkout-api (hop 1) to order-orchestrator (hop 2) and downstream services (hop 3).
|
tests/integration/test_falkordb.pytest_codegraph_agent_loop.py |
| 2. Graph algorithms as tools |
Cypher BFS blast radius traversal; sampled betweenness centrality calculation identifying order-orchestrator with centrality score 4.0.
|
tests/unit/test_analysis_unit.pytest_mcp_server.py |
| 3. Tool selection via MCP | Agent orchestrates 5 allowlisted MCP tools via discovered JSON schemas, passing arguments dynamically based on investigation state. | tests/agent/test_orchestrator_unit.pytests/mcp/test_mcp_server.py |
| 4. Actions based on graph data |
Absence of fallback on checkout-api triggers deeper dependency trace; high centrality triggers incident retrieval (INC-2041) and reviewer assignment.
|
tests/unit/test_verdict.pytests/agent/test_agent_live.py |
| 5. Explainable results | Every claim is backed by specific Cypher node identifiers, verified SLA penalties ($43k assumed exposure), and isolated counterfactual validation. | web/tests/view.test.mjstests/unit/test_simulation_unit.py |
Trust, Transparency & Rigor
Synthetic Demonstration Data
To ensure reproducible judging without exposing proprietary corporate infrastructure, services (e.g. checkout-api), incidents (INC-2041), SLAs, and engineers (eng-alpha) are synthetic demo parameters. The $43,000 figure is an assumed exposure calculation (sum of synthetic hourly penalty rates × assumed outage duration), not historical accounting.
Type-Level vs. Runtime Link Limits
Gristle indexes Python AST structural references (functions and routes connected to classes). BlastGate explicitly states that a type-level reference does not prove that a given function executes that field at runtime.
Deterministic Engine Authority
The agent planner gathers facts and generates natural-language explanations, but the verdict is computed strictly by deterministic rules. An LLM cannot override a BLOCK or weaken an SLA violation.
Offline Planner Integrity
The verified offline demo runs with AGENT_PROVIDER=deterministic. The console truthfully displays this badge and does not claim that a live model autonomously selected the tool calls during the offline run.