Skip to content
Documentation
v0.1.6

Architecture

One Rust process serves the production console and runs Tally's application services. PostgreSQL and ClickHouse remain separate databases.

Production runtime#

ComponentRole
tallydHTTPS, embedded HTML/JavaScript/CSS, authentication, API, database migrations, connector worker, registry, and upgrade runtime.
PostgreSQLControl, accounts, governance, findings, scheduling, and audit state.
ClickHouseAI observation retention and durable inventory aggregates.

The web console is built with Next.js, exported to static assets, and embedded at compile time. Production serves those assets and the API from the same origin; it needs no Node.js server or nginx.

Development separates the Next.js live-reload server from the Rust process. The application behavior is shared, while development-only routes proxy to the private Rust listener.

From a source to a finding#

  1. A connector reads a bounded source page, stream batch, or authorized upload.
  2. Normalization validates identifiers and reduces the source to the allowed observation metadata.
  3. Detection and resolution match provider/model identities against the registry and classify the evidence.
  4. ClickHouse stores admitted AI observations and inventory. PostgreSQL records ingestion receipts, findings, attribution links, and governance state.
  5. The console presents individual activity and its supporting evidence. Idempotent receipts keep retries from duplicating accepted work.

Unclassified cloud flows may be held briefly in an in-memory correlation window. That pending window is not durable raw-log storage and is cleared on restart.

Code and trust boundaries#

tally-core defines domain contracts; connector crates normalize source data; storage crates own database behavior; tally-api exposes product routes. apps/tallyd composes the Tally runtime, including authentication and roles.

External connector data is untrusted. Credentials use sealed storage, scanning requires explicit authorization, and browser mutations are checked against the configured public origin. The internal upgrade listener is restricted to loopback and accessed through an authenticated administrator bridge.

Gate can depend on Tally's reusable crates and web components. Tally does not depend on Gate. Gate supplies its own IAM, deployment, and enforcement, and continues to run in Docker.

Esc
  • Welcome to TallyGet started · Install Gödel Tally and discover your organization's AI inventory.
  • Install TallyGet started · Choose an installation method, install the Tally binary with one command, choose databases, and configure HTTPS.
  • Install with DockerGet started · Run Tally, PostgreSQL, and ClickHouse with Docker Compose and the published image; no Tally binary needed.
  • Install with Apple containerGet started · Run the same Tally images with Apple container on an Apple silicon Mac.
  • Connect your sourcesUse Tally · Configure read-only discovery sources and understand their evidence.
  • Inventory & findingsUse Tally · Explore AI activity, review evidence, and record governance decisions.
  • Accounts & emailUse Tally · Manage invitations, passwords, roles, and email delivery in Gödel Tally.
  • Terminal overviewTerminal · Tally's two terminal tools: the command line (CLI) and the interactive console (TUI), and which to use.
  • Command line (CLI)Terminal · Sign in once, look around, manage connectors and script Tally: readable output in a terminal, JSON when piped, with exit codes.
  • Terminal console (TUI)Terminal · The web console in a terminal: sections, keys and mouse, connecting a source, and light and dark themes.
  • Configuration referenceOperate · Find Tally's saved settings, installation paths, ports, and environment reference.
  • Services & maintenanceOperate · Start, stop, update, back up, and uninstall Tally.
  • Privacy & dataOperate · Understand retained metadata, storage, retention, and data deletion.
  • Upgrade to Gödel GateOperate · Review the Docker-based Gate upgrade, transferred data, and cutover process.
  • ArchitectureBuild · How the Tally binary, connector worker, web console, and databases fit together.
  • DevelopmentBuild · Run Rust and Next.js with live reload and build release binaries.
  • API & integrationsBuild · Find Tally's generated API contract, authentication boundary, and connector fixtures.