Product

Architecture

Operators and coding agents talk only to the cxas binary. The binary delegates to workspace crates. Live CES and Vertex sit on the other side of a transport trait that this checkout implements with mocks.

Environment chart

flowchart TB
    subgraph operator [Operator / CI / coding agent]
        Human[Human or automation]
        IDE[Agentic IDE]
    end

    Human --> CLI
    IDE --> CLI

    subgraph cli [cxas-cli]
        CLI["cxas binary JSON envelope + exit codes"]
        Catalog[".cxas/catalog.json local app catalog"]
        CLI --> Catalog
    end

    subgraph workspace [Rust workspace]
        Core["cxas-core Location, Apps, Deployments, QuotaKind"]
        State["cxas-state hash / diff / cascading profiles"]
        Lint["cxas-lint V-ROOT + 60+ rules"]
        Evals["cxas-evals TurnCursor, BidiSession, AudioScorer"]
        Mig["cxas-migration SnapshotGuard, ToolSync, DFCX pipeline"]
        Utils["cxas-utils paginate + boolean templates"]
        Parity["cxas-parity frozen Python surface"]
        Proto["cxas-proto EvaluationRunState::Unknown"]
    end

    CLI --> Core
    CLI --> State
    CLI --> Lint
    CLI --> Evals
    CLI --> Mig
    Core --> Proto
    Core --> Utils
    Evals --> Core
    Mig --> Core
    Mig --> State
    Core --> Parity

    subgraph future [Not in this checkout]
        CES["CES / Dialogflow CX APIs"]
        Vertex["Vertex / Gemini"]
        GCP["GCP project + region"]
    end

    Core -.->|"future live transport"| CES
    Evals -.->|"future STT / eval quota"| Vertex
    CES -.-> GCP
    Vertex -.-> GCP
  

Workspace layout

cxas-harness/
  crates/           nine members listed in Cargo.toml
  parity/           cxas-scrapi-parity.yaml
  proto/ces/        EvaluationRunState proto
  schema/           lint required-field schema
  docs/superpowers/ specs, plans, coverage-map
  docs-site/        this website (GitHub Pages source)
  book/             mdBook sidebar (Docs / Examples / Skills / SDK)
  tools/            Superpowers validator

Location newtype

cxas_core::Location is a newtype around String with no Default impl.

This is the compile-time and runtime closer for blocker #401 (hardcoded vertex_location = "global" in Python).

Transport seam

cxas_core::CesTransport is the interface for CES RPCs. Implementations in this checkout:

TypeUse
NoopTransportDefault in-process stub. Export and mutate calls succeed with empty or fixture payloads.
RecordingTransportCaptures requests for tests (export stream, version-id, channel settings).

A future live transport would implement the same trait and talk to CES. The CLI already goes through this seam for pull, deploy, and app export.

CLI I/O contract

Designed for issue #55 (CLI ergonomics for coding agents):

Quality bar

Acceptance is dual: (a) the Phase 0 parity manifest's types and CLI argv are owned by crates, and (b) every cataloged issue has a closing unit test named in the plan. See Issue coverage.