Skip to content

Architecture

Andrew Paolucci edited this page Dec 2, 2026 · 3 revisions

Workspace Architecture (guap-e2e)

guap-e2e is organized as a 4-crate Rust workspace (edition = "2024", MSRV 1.89+) with .cargo/config.toml configured for 16 MiB Windows stack headroom during full workspace test runs.

flowchart LR
    FIX["e2e-fixtures<br/>79 Deterministic Valid & Corrupt Binary Fixtures<br/>(Zero Credentials, Structural & SHA-256 Checks)"]
    TIERS["e2e-tiers<br/>4-Tier Opaque-Box Runner, MCP stdio Client,<br/>RFC-4180/Merkle Verifiers & mock-guap-suite"]
    R4["e2e-r4<br/>56-Rule Compliance Scanner<br/>(FS/Scripts, syn AST, PE/ELF/Mach-O, CLI & MCP)"]
    RUNNER["e2e-runner (guap-e2e CLI)<br/>Portable Root Resolution, JSON Reports<br/>& TEST_READY.md Gate Writer"]

    TIERS --> FIX
    R4 --> FIX
    RUNNER --> FIX
    RUNNER --> TIERS
    RUNNER --> R4
Loading

Crate Responsibilities

Crate Purpose
e2e-fixtures Materializes all 79 synthetic fixtures cleanly into a TempDir or --fixtures-dir target on demand, ensuring reproducible binary bytes without committing large opaque binaries into git.
e2e-tiers Implements the 396-check cross-workspace tier catalog (catalog.rs, 170+170+37+19), spawns real suite CLIs and JSON-RPC 2.0 mcp servers, verifies schema validation (-32003 before -32602 across TableProvider & ActionCommand), guap/rollback & live CLI stage -> approve -> rollback tamper rejection (schema_and_rollback.rs, tiers_live_smoke.rs), CSV formula neutralization, and Merkle custody proofs, and includes mock-guap-suite for standalone harness self-tests.
e2e-r4 Runs 56 compliance rules across 5 surfaces (surface_fs covering .rs/.py/.ps1/.sh/.c/.h/.ts/.js, rust_ast, surface_bin covering PE/ELF/Mach-O, and surface_cli_mcp) across all 13 public GUAP code workspaces, honoring generic --exclude-dir/R4_EXCLUDE_DIRS/.r4ignore filters while documenting pre-existing classification-only R4-BASELINE-CHROME exceptions.
e2e-runner Unified guap-e2e CLI entrypoint supporting portable root discovery (--guap-root, $GUAP_ROOT, ..), per-workspace scoping (--target), generic R4 exclusions (--exclude-dir), reusable builds (--skip-cargo-build), JSON output, and --write-test-ready.

Clone this wiki locally