# tickerzhq/tickerz-open architecture

> Architecture diagram of the GitHub repository tickerzhq/tickerz-open, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tickerzhq/tickerz-open
- Repository: https://github.com/tickerzhq/tickerz-open

## Overview

Tickerz Open is a public verification and recount companion to Tickerz: it re-counts signed reports from public sources and co-signs only exact matches. The main workflow is a user or daily job invoking the recount path, which checks a signed report, selects a source-specific recount, compares values, and records a co-signature or dispute. The repository also preserves daily proofs and mirrored settlement files, forecasting, a Claude Code plugin, display templates, and the public Floor file. Arrows use README statements or the supplied source index/excerpts; unsampled subsystems are connected only where documented.

Main entry points: [`oracle/src/lib/oracle/recount.ts`](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/recount.ts) (Source recounts), [`oracle/src/lib/oracle/cosign.ts`](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/cosign.ts) (Match and co-sign), [`oracle/src/lib/indices/fetchers.ts`](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/indices/fetchers.ts) (Source readers), [`oracle/src/lib/oracle/report.ts`](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/report.ts) (Signed reports)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_oracle["Recount oracle"]
  node_recount_cli["Recount CLI<br/>[recount.ts]"]
  node_cosign_cli["Co-sign CLI<br/>[cosign.ts]"]
  node_cosign["Match and co-sign<br/>[cosign.ts]"]
  node_recount["Source recounts<br/>[recount.ts]"]
  node_registry["Index definitions<br/>[registry.ts]"]
  node_fetchers["Source readers<br/>[fetchers.ts]"]
  node_bls["BLS reader<br/>[bls.ts]"]
  node_chain_rpc["Chain RPC<br/>[chainRpc.ts]"]
  node_report["Signed reports<br/>[report.ts]"]
  node_canonical["Canonical encoding<br/>[canonical.ts]"]
  node_solana_tx["Solana transactions<br/>[solanaTx.ts]"]
  node_solana_feed["Solana feed<br/>[solanaFeed.ts]"]
end

subgraph group_records["Public records"]
  node_co_signatures[("Co-signatures")]
  node_disputes[("Disputes")]
  node_prints[("Settlement files")]
  node_daily_proofs[("Daily proofs")]
  node_mirror["Public mirror<br/>[mirror.ts]"]
  node_mint_counter["MINTS counter<br/>[mints.ts]"]
  node_legacy_counts["Retired GIGS/WAGE<br/>[machines.ts]"]
  node_seal_check["Seal verification<br/>[seal.ts]"]
  node_public_api["Public API access<br/>[publicApi.ts]"]
end

subgraph group_analytics["Forecasting"]
  node_forecast_model["Forecast model<br/>[forecast.py]"]
  node_bandit_model["Open baseline<br/>[bandit.py]"]
  node_forecast_records[("Forecast records")]
end

subgraph group_interfaces["User interfaces"]
  node_claude_plugin["Claude plugin"]
  node_display_templates["Desk displays"]
end

subgraph group_organization["Public organization"]
  node_floor_file["Public Floor"]
end

node_user(("Recount user"))
node_daily_job(("Daily recount job"))
node_source_services{{"Public source services"}}

node_user -->|"runs recount"| node_recount_cli
node_daily_job -->|"runs daily"| node_cosign_cli
node_recount_cli -->|"checks report"| node_cosign
node_cosign_cli -->|"requests co-sign"| node_cosign
node_cosign -->|"recounts period"| node_recount
node_cosign -.->|"checks signature"| node_report
node_cosign -->|"writes matches"| node_co_signatures
node_cosign -->|"writes disagreements"| node_disputes
node_recount -->|"selects definitions"| node_registry
node_recount -->|"uses readers"| node_fetchers
node_recount -->|"reads series"| node_bls
node_recount -->|"pacer access"| node_chain_rpc
node_fetchers -->|"uses RPC pacing"| node_chain_rpc
node_fetchers -.->|"fetches observations"| node_source_services
node_bls -->|"queries BLS"| node_source_services
node_recount -->|"reads public sources"| node_source_services
node_report -->|"canonicalizes report"| node_canonical
node_report -->|"signs bytes"| node_solana_tx
node_solana_feed -->|"uses encoding"| node_solana_tx
node_mirror -->|"mirrors files"| node_prints
node_mirror -->|"mirrors proofs"| node_daily_proofs
node_user -->|"runs counter"| node_mint_counter
node_mint_counter -->|"uses API access"| node_public_api
node_user -->|"recounts history"| node_legacy_counts
node_user -->|"checks daily proof"| node_seal_check
node_forecast_model -->|"updates record"| node_forecast_records
node_bandit_model -->|"supports baseline"| node_forecast_records
node_user -->|"uses plugin"| node_claude_plugin
node_user -->|"views displays"| node_display_templates

click node_recount_cli "https://github.com/tickerzhq/tickerz-open/blob/main/oracle/scripts/recount.ts"
click node_cosign_cli "https://github.com/tickerzhq/tickerz-open/blob/main/oracle/scripts/cosign.ts"
click node_cosign "https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/cosign.ts"
click node_recount "https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/recount.ts"
click node_registry "https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/indices/registry.ts"
click node_fetchers "https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/indices/fetchers.ts"
click node_bls "https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/indices/bls.ts"
click node_chain_rpc "https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/chainRpc.ts"
click node_report "https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/report.ts"
click node_canonical "https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/canonical.ts"
click node_solana_tx "https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/solanaTx.ts"
click node_solana_feed "https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/solanaFeed.ts"
click node_co_signatures "https://github.com/tickerzhq/tickerz-open/tree/main/cosigns"
click node_disputes "https://github.com/tickerzhq/tickerz-open/tree/main/disputes"
click node_prints "https://github.com/tickerzhq/tickerz-open/tree/main/prints"
click node_daily_proofs "https://github.com/tickerzhq/tickerz-open/tree/main/daily-proofs"
click node_mirror "https://github.com/tickerzhq/tickerz-open/blob/main/scripts/mirror.ts"
click node_mint_counter "https://github.com/tickerzhq/tickerz-open/blob/main/src/mints.ts"
click node_legacy_counts "https://github.com/tickerzhq/tickerz-open/blob/main/src/machines.ts"
click node_seal_check "https://github.com/tickerzhq/tickerz-open/blob/main/src/seal.ts"
click node_public_api "https://github.com/tickerzhq/tickerz-open/blob/main/src/publicApi.ts"
click node_forecast_model "https://github.com/tickerzhq/tickerz-open/blob/main/models/forecast.py"
click node_bandit_model "https://github.com/tickerzhq/tickerz-open/blob/main/models/bandit.py"
click node_forecast_records "https://github.com/tickerzhq/tickerz-open/tree/main/forecasts"
click node_claude_plugin "https://github.com/tickerzhq/tickerz-open/tree/main/plugin"
click node_display_templates "https://github.com/tickerzhq/tickerz-open/tree/main/displays"
click node_floor_file "https://github.com/tickerzhq/tickerz-open/tree/main/floor"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_recount_cli,node_cosign_cli,node_cosign,node_recount,node_registry,node_fetchers,node_bls,node_chain_rpc,node_report,node_canonical,node_solana_tx,node_solana_feed,node_user toneBlue
class node_co_signatures,node_disputes,node_prints,node_daily_proofs,node_mirror,node_mint_counter,node_legacy_counts,node_seal_check,node_public_api toneAmber
class node_forecast_model,node_bandit_model,node_forecast_records toneMint
class node_claude_plugin,node_display_templates toneRose
class node_floor_file,node_daily_job,node_source_services toneIndigo
```

## Components

### Recount oracle

- [Recount CLI](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/scripts/recount.ts): `oracle/scripts/recount.ts`
- [Co-sign CLI](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/scripts/cosign.ts): `oracle/scripts/cosign.ts`
- [Match and co-sign](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/cosign.ts): `oracle/src/lib/oracle/cosign.ts`
- [Source recounts](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/recount.ts): `oracle/src/lib/oracle/recount.ts`
- [Index definitions](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/indices/registry.ts): `oracle/src/lib/indices/registry.ts`
- [Source readers](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/indices/fetchers.ts): `oracle/src/lib/indices/fetchers.ts`
- [BLS reader](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/indices/bls.ts): `oracle/src/lib/indices/bls.ts`
- [Chain RPC](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/chainRpc.ts): `oracle/src/lib/chainRpc.ts`
- [Signed reports](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/report.ts): `oracle/src/lib/oracle/report.ts`
- [Canonical encoding](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/canonical.ts): `oracle/src/lib/oracle/canonical.ts`
- [Solana transactions](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/solanaTx.ts): `oracle/src/lib/solanaTx.ts`
- [Solana feed](https://github.com/tickerzhq/tickerz-open/blob/main/oracle/src/lib/oracle/solanaFeed.ts): `oracle/src/lib/oracle/solanaFeed.ts`

### Public records

- [Co-signatures](https://github.com/tickerzhq/tickerz-open/tree/main/cosigns): `cosigns`
- [Disputes](https://github.com/tickerzhq/tickerz-open/tree/main/disputes): `disputes`
- [Settlement files](https://github.com/tickerzhq/tickerz-open/tree/main/prints): `prints`
- [Daily proofs](https://github.com/tickerzhq/tickerz-open/tree/main/daily-proofs): `daily-proofs`
- [Public mirror](https://github.com/tickerzhq/tickerz-open/blob/main/scripts/mirror.ts): `scripts/mirror.ts`
- [MINTS counter](https://github.com/tickerzhq/tickerz-open/blob/main/src/mints.ts): `src/mints.ts`
- [Retired GIGS/WAGE](https://github.com/tickerzhq/tickerz-open/blob/main/src/machines.ts): `src/machines.ts`
- [Seal verification](https://github.com/tickerzhq/tickerz-open/blob/main/src/seal.ts): `src/seal.ts`
- [Public API access](https://github.com/tickerzhq/tickerz-open/blob/main/src/publicApi.ts): `src/publicApi.ts`

### Forecasting

- [Forecast model](https://github.com/tickerzhq/tickerz-open/blob/main/models/forecast.py): `models/forecast.py`
- [Open baseline](https://github.com/tickerzhq/tickerz-open/blob/main/models/bandit.py): `models/bandit.py`
- [Forecast records](https://github.com/tickerzhq/tickerz-open/tree/main/forecasts): `forecasts`

### User interfaces

- [Claude plugin](https://github.com/tickerzhq/tickerz-open/tree/main/plugin): `plugin`
- [Desk displays](https://github.com/tickerzhq/tickerz-open/tree/main/displays): `displays`

### Public organization

- [Public Floor](https://github.com/tickerzhq/tickerz-open/tree/main/floor): `floor`

### Other components

- **Recount user**
- **Daily recount job**
- **Public source services**

## Connections

- Recount user → Recount CLI: runs recount (evidence: `README.md`)
- Daily recount job → Co-sign CLI: runs daily (evidence: `README.md`)
- Recount CLI → Match and co-sign: checks report (evidence: `oracle/scripts/recount.ts`)
- Co-sign CLI → Match and co-sign: requests co-sign (evidence: `oracle/scripts/cosign.ts`)
- Match and co-sign → Source recounts: recounts period (evidence: `oracle/src/lib/oracle/cosign.ts`)
- Match and co-sign → Signed reports: checks signature (evidence: `oracle/src/lib/oracle/cosign.ts`)
- Match and co-sign → Co-signatures: writes matches (evidence: `README.md`)
- Match and co-sign → Disputes: writes disagreements (evidence: `README.md`)
- Source recounts → Index definitions: selects definitions (evidence: `oracle/src/lib/oracle/recount.ts`)
- Source recounts → Source readers: uses readers (evidence: `oracle/src/lib/oracle/recount.ts`)
- Source recounts → BLS reader: reads series (evidence: `oracle/src/lib/oracle/recount.ts`)
- Source recounts → Chain RPC: pacer access (evidence: `oracle/src/lib/oracle/recount.ts`)
- Source readers → Chain RPC: uses RPC pacing (evidence: `oracle/src/lib/indices/fetchers.ts`)
- Source readers → Public source services: fetches observations
- BLS reader → Public source services: queries BLS (evidence: `README.md`)
- Source recounts → Public source services: reads public sources (evidence: `README.md`)
- Signed reports → Canonical encoding: canonicalizes report (evidence: `oracle/src/lib/oracle/report.ts`)
- Signed reports → Solana transactions: signs bytes (evidence: `oracle/src/lib/oracle/report.ts`)
- Solana feed → Solana transactions: uses encoding (evidence: `oracle/src/lib/oracle/solanaFeed.ts`)
- Public mirror → Settlement files: mirrors files (evidence: `README.md`)
- Public mirror → Daily proofs: mirrors proofs (evidence: `README.md`)
- Recount user → MINTS counter: runs counter (evidence: `README.md`)
- MINTS counter → Public API access: uses API access (evidence: `scripts/count-mints.ts`)
- Recount user → Retired GIGS/WAGE: recounts history (evidence: `README.md`)
- Recount user → Seal verification: checks daily proof (evidence: `README.md`)
- Forecast model → Forecast records: updates record (evidence: `README.md`)
- Open baseline → Forecast records: supports baseline (evidence: `README.md`)
- Recount user → Claude plugin: uses plugin (evidence: `README.md`)
- Recount user → Desk displays: views displays (evidence: `README.md`)
