StructZero
Home / Docs / Architecture

Architecture & Concepts

Available

Explore the technical mechanics behind the Multi-Model Debate Engine, AST Project DNA parsing, and core platform terminology.

Multi-Model Debate Mechanics

Available

StructZero assigns independent foundation models to opposing adversarial roles before code generation begins. This eliminates shared confirmation bias and discovers architecture bottlenecks early.

stateDiagram-v2
    [*] --> SpecReceived
    SpecReceived --> DraftProposal: Architect Role (Claude 3.5)
    DraftProposal --> AdversarialReview: Reviewer Role (Gemini 3.6)
    AdversarialReview --> FlagDefects: Detect Interface Conflicts
    FlagDefects --> JudgeEvaluation: Judge Role (DeepSeek R1)
    JudgeEvaluation --> ApprovedPatch: Issue Consensus Blueprint
    ApprovedPatch --> [*]: Proceed to Topological Build
        

1. Architect Role

Formulates initial module boundaries, API schemas, and dependency order based on the user spec.

2. Reviewer Role

Evaluates the proposal without seeing prior model bias, flagging race conditions, scaling bottlenecks, and type inconsistencies.

3. Judge Role

A high-reasoning model evaluates conflicting arguments and issues a binding, finalized architectural blueprint.

AST Project DNA Context Engine

Available

Project DNA parses codebases into compiler Abstract Syntax Trees, symbol tables, and route topologies, eliminating the hallucination of non-existent imports or broken function signatures.

mindmap
  root((Project DNA Context))
    AST Graphs
      Exported Functions
      Class Interfaces
      Import Graph
    Route Topologies
      API Endpoints
      Frontend Routes
      Middleware Chains
    Environment Contracts
      Schema Migrations
      Config Variables
        

Platform Glossary

8 KEY CONCEPTS

Abstract Syntax Tree (AST)

The structured hierarchical tree representation of source code syntax parsed by compilers, used by StructZero to guarantee valid types and imports.

Controlled Autonomy

An operational model where autonomous software generation is strictly bounded by human-in-the-loop authorization gates for billable or destructive operations.

Engineering Event Recorder

An immutable append-only JSONL log streaming all model prompts, debate arguments, validation outcomes, and human approvals.

Multi-Model Debate

An adversarial evaluation process where independent LLMs assume distinct roles (Architect, Reviewer, Judge) to eliminate hallucinations before implementation.

Pre-Flight Gate

Automated verification running AST compilation, module resolution, and security audits inside container sandboxes prior to writing code to disk.

Project DNA

The semantic context graph of a codebase including symbol tables, interface contracts, import dependencies, and route topologies.

StructZero Remote

The native Android client application enabling real-time monitoring, live run telemetry streaming, and mobile authorization approvals.

Topological Order

A mathematical ordering of files such that every module is written and verified only after all of its upstream dependencies have been established.