# nike-getto/acsa-pond-beerfacts architecture

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

- Interactive diagram: https://gitdiagram.com/nike-getto/acsa-pond-beerfacts
- Repository: https://github.com/nike-getto/acsa-pond-beerfacts

## Overview

Fork-a-Pond is a self-hosted, signed claim set that authors can publish and independently verify using only Python’s standard library. The main workflow is to configure a pond, ground claims in source text, produce signed Drops and a collection head, then cold-verify the result. Authors can also create a self-signed registration for an operator; the admission gate checks a pond’s head, Drops, and Merkle reconstruction. Source excerpts show the gate’s calls; some producer and verifier internals were not sampled, so those relationships are included only where documented.

Main entry points: [`sava_produce.py`](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_produce.py) (Producer CLI), [`sava_gate.py`](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_gate.py) (Admission gate), [`sava_verify.py`](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_verify.py) (Offline verifier), [`src/sources`](https://github.com/nike-getto/acsa-pond-beerfacts/tree/main/src/sources) (Evidence sources)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Pond authoring"]
  node_pond_config["Pond identity<br/>[pond.json]"]
  node_claims["Claims<br/>[claims.json]"]
  node_sources["Evidence sources"]
end

subgraph group_production["Production"]
  node_producer["Producer CLI<br/>[sava_produce.py]"]
  node_keygen["Key generation<br/>[sava_produce.py]"]
  node_grading["Claim grading<br/>[sava_produce.py]"]
  node_publishing["Signed publishing<br/>[sava_produce.py]"]
end

subgraph group_verification["Verification and admission"]
  node_verifier["Offline verifier<br/>[sava_verify.py]"]
  node_content_id["Content ID<br/>[sava_content_id.py]"]
  node_gate["Admission gate<br/>[sava_gate.py]"]
end

subgraph group_onboarding["Lake onboarding"]
  node_registration["Registration build<br/>[sava_produce.py]"]
end

node_author(("Pond author"))
node_operator(("Lake operator"))
node_lake(("Lake authority"))

node_author -->|"configures"| node_pond_config
node_author -->|"writes"| node_claims
node_author -->|"provides"| node_sources
node_author -->|"runs"| node_producer
node_producer -->|"reads"| node_pond_config
node_producer -->|"grades"| node_claims
node_producer -->|"reads"| node_sources
node_producer -->|"dispatches"| node_keygen
node_producer -->|"dispatches"| node_grading
node_producer -->|"dispatches"| node_publishing
node_producer -->|"dispatches"| node_registration
node_author -->|"runs"| node_verifier
node_verifier -->|"checks fidelity"| node_sources
node_gate -->|"runs"| node_verifier
node_gate -->|"recomputes IDs"| node_content_id
node_author -->|"prechecks pond"| node_gate
node_author -->|"sends registration"| node_operator
node_operator -->|"admits pond"| node_lake

click node_pond_config "https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/src/pond.json"
click node_claims "https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/src/claims.json"
click node_sources "https://github.com/nike-getto/acsa-pond-beerfacts/tree/main/src/sources"
click node_producer "https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_produce.py"
click node_keygen "https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_produce.py"
click node_grading "https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_produce.py"
click node_publishing "https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_produce.py"
click node_registration "https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_produce.py"
click node_verifier "https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_verify.py"
click node_content_id "https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_content_id.py"
click node_gate "https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_gate.py"

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_pond_config,node_claims,node_sources toneBlue
class node_producer,node_keygen,node_grading,node_publishing toneAmber
class node_verifier,node_content_id,node_gate toneMint
class node_registration toneRose
class node_author,node_operator,node_lake toneIndigo
```

## Components

### Pond authoring

- [Pond identity](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/src/pond.json): `src/pond.json`
- [Claims](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/src/claims.json): `src/claims.json`
- [Evidence sources](https://github.com/nike-getto/acsa-pond-beerfacts/tree/main/src/sources): `src/sources`

### Production

- [Producer CLI](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_produce.py): `sava_produce.py`
- [Key generation](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_produce.py): `sava_produce.py`
- [Claim grading](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_produce.py): `sava_produce.py`
- [Signed publishing](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_produce.py): `sava_produce.py`

### Verification and admission

- [Offline verifier](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_verify.py): `sava_verify.py`
- [Content ID](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_content_id.py): `sava_content_id.py`
- [Admission gate](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_gate.py): `sava_gate.py`

### Lake onboarding

- [Registration build](https://github.com/nike-getto/acsa-pond-beerfacts/blob/main/sava_produce.py): `sava_produce.py`

### Other components

- **Pond author**
- **Lake operator**
- **Lake authority**

## Connections

- Pond author → Pond identity: configures (evidence: `README.md`)
- Pond author → Claims: writes (evidence: `README.md`)
- Pond author → Evidence sources: provides (evidence: `README.md`)
- Pond author → Producer CLI: runs (evidence: `README.md`)
- Producer CLI → Pond identity: reads (evidence: `sava_produce.py`)
- Producer CLI → Claims: grades (evidence: `sava_produce.py`)
- Producer CLI → Evidence sources: reads (evidence: `README.md`)
- Producer CLI → Key generation: dispatches (evidence: `sava_produce.py`)
- Producer CLI → Claim grading: dispatches (evidence: `sava_produce.py`)
- Producer CLI → Signed publishing: dispatches (evidence: `sava_produce.py`)
- Producer CLI → Registration build: dispatches (evidence: `sava_produce.py`)
- Pond author → Offline verifier: runs (evidence: `README.md`)
- Offline verifier → Evidence sources: checks fidelity (evidence: `sava_verify.py`)
- Admission gate → Offline verifier: runs (evidence: `sava_gate.py`)
- Admission gate → Content ID: recomputes IDs (evidence: `sava_gate.py`)
- Pond author → Admission gate: prechecks pond (evidence: `sava_gate.py`)
- Pond author → Lake operator: sends registration (evidence: `README.md`)
- Lake operator → Lake authority: admits pond (evidence: `README.md`)
