# urnetwork/build architecture

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

- Interactive diagram: https://gitdiagram.com/urnetwork/build
- Repository: https://github.com/urnetwork/build

## Overview

This repository is the production-release build system: its principal workflow builds clients and services from pinned component revisions, runs checks, creates reproducible branches and tags, publishes client builds to test tracks, and deploys services. A supporting branch generates release changelogs from component commit ranges. The acceptance harness is a separate validation capability for authentication, payments, and service connectivity. The README documents the release flow; sampled acceptance code confirms its internal calls, but does not show how the release runner invokes it.

Main entry points: [`all/run.sh`](https://github.com/urnetwork/build/blob/main/all/run.sh) (Release runner), [`all/acceptance/main.go`](https://github.com/urnetwork/build/blob/main/all/acceptance/main.go) (Acceptance runner), [`all/changelog.py`](https://github.com/urnetwork/build/blob/main/all/changelog.py) (Changelog generator), [`all/acceptance/testconfig/config.go`](https://github.com/urnetwork/build/blob/main/all/acceptance/testconfig/config.go) (Test configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_release["Release orchestration"]
  node_release_runner["Release runner<br/>[run.sh]"]
  node_component_revisions["Component revisions<br/>[.gitmodules]"]
  node_client_builds["Client builds"]
  node_service_builds["Service builds"]
  node_test_tracks["Test tracks"]
  node_production_services["Production services"]
end

subgraph group_artifacts["Release metadata"]
  node_changelog_generator["Changelog generator<br/>[changelog.py]"]
  node_store_notes["Store notes"]
  node_release_body["Release body"]
end

subgraph group_acceptance["Acceptance testing"]
  node_acceptance_runner["Acceptance runner<br/>[main.go]"]
  node_auth_cases["Auth lifecycles<br/>[authcases.go]"]
  node_payment_cases["USDC payments<br/>[paycases.go]"]
  node_test_config["Test configuration<br/>[config.go]"]
  node_wallet_fixtures["Wallet fixtures<br/>[walletfixture.go]"]
end

node_build_host(("Build host"))
node_operator(("Release operator"))
node_api_service["Live API"]
node_local_service["Local service"]

node_operator -->|"starts release"| node_build_host
node_build_host -->|"runs daily"| node_release_runner
node_release_runner -->|"uses pinned revisions"| node_component_revisions
node_release_runner -->|"builds clients"| node_client_builds
node_release_runner -->|"builds services"| node_service_builds
node_release_runner -->|"uploads builds"| node_test_tracks
node_release_runner -->|"deploys services"| node_production_services
node_release_runner -->|"runs generator"| node_changelog_generator
node_changelog_generator -->|"reads pins"| node_component_revisions
node_changelog_generator -->|"writes notes"| node_store_notes
node_changelog_generator -->|"renders changelog"| node_release_body
node_acceptance_runner -->|"runs lifecycles"| node_auth_cases
node_acceptance_runner -->|"loads config"| node_test_config
node_acceptance_runner -->|"tests connectivity"| node_local_service
node_auth_cases -->|"calls API"| node_api_service
node_payment_cases -->|"calls API"| node_api_service
node_payment_cases -->|"uses config"| node_test_config
node_auth_cases -->|"uses config"| node_test_config
node_test_config -->|"uses fixtures"| node_wallet_fixtures
node_acceptance_runner -.->|"may run"| node_payment_cases
node_acceptance_runner -.->|"release test invocation"| node_release_runner

click node_release_runner "https://github.com/urnetwork/build/blob/main/all/run.sh"
click node_component_revisions "https://github.com/urnetwork/build/blob/main/.gitmodules"
click node_client_builds "https://github.com/urnetwork/build/tree/main/android"
click node_service_builds "https://github.com/urnetwork/build/tree/main/connect"
click node_changelog_generator "https://github.com/urnetwork/build/blob/main/all/changelog.py"
click node_store_notes "https://github.com/urnetwork/build/tree/main/metadata/en-US/changelogs"
click node_acceptance_runner "https://github.com/urnetwork/build/blob/main/all/acceptance/main.go"
click node_auth_cases "https://github.com/urnetwork/build/blob/main/all/acceptance/authcases/authcases.go"
click node_payment_cases "https://github.com/urnetwork/build/blob/main/all/acceptance/paycases/paycases.go"
click node_test_config "https://github.com/urnetwork/build/blob/main/all/acceptance/testconfig/config.go"
click node_wallet_fixtures "https://github.com/urnetwork/build/blob/main/all/acceptance/walletfixture/walletfixture.go"

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_release_runner,node_component_revisions,node_client_builds,node_service_builds,node_test_tracks,node_production_services toneBlue
class node_changelog_generator,node_store_notes,node_release_body toneAmber
class node_acceptance_runner,node_auth_cases,node_payment_cases,node_test_config,node_wallet_fixtures,node_api_service toneMint
class node_build_host,node_operator,node_local_service toneIndigo
```

## Components

### Release orchestration

- [Release runner](https://github.com/urnetwork/build/blob/main/all/run.sh): `all/run.sh`
- [Component revisions](https://github.com/urnetwork/build/blob/main/.gitmodules): `.gitmodules`
- [Client builds](https://github.com/urnetwork/build/tree/main/android): `android`
- [Service builds](https://github.com/urnetwork/build/tree/main/connect): `connect`
- **Test tracks**
- **Production services**

### Release metadata

- [Changelog generator](https://github.com/urnetwork/build/blob/main/all/changelog.py): `all/changelog.py`
- [Store notes](https://github.com/urnetwork/build/tree/main/metadata/en-US/changelogs): `metadata/en-US/changelogs`
- **Release body**

### Acceptance testing

- [Acceptance runner](https://github.com/urnetwork/build/blob/main/all/acceptance/main.go): `all/acceptance/main.go`
- [Auth lifecycles](https://github.com/urnetwork/build/blob/main/all/acceptance/authcases/authcases.go): `all/acceptance/authcases/authcases.go`
- [USDC payments](https://github.com/urnetwork/build/blob/main/all/acceptance/paycases/paycases.go): `all/acceptance/paycases/paycases.go`
- [Test configuration](https://github.com/urnetwork/build/blob/main/all/acceptance/testconfig/config.go): `all/acceptance/testconfig/config.go`
- [Wallet fixtures](https://github.com/urnetwork/build/blob/main/all/acceptance/walletfixture/walletfixture.go): `all/acceptance/walletfixture/walletfixture.go`

### Other components

- **Build host**
- **Release operator**
- **Live API**
- **Local service**

## Connections

- Release operator → Build host: starts release (evidence: `README.md`)
- Build host → Release runner: runs daily (evidence: `README.md`)
- Release runner → Component revisions: uses pinned revisions (evidence: `README.md`)
- Release runner → Client builds: builds clients (evidence: `README.md`)
- Release runner → Service builds: builds services (evidence: `README.md`)
- Release runner → Test tracks: uploads builds (evidence: `README.md`)
- Release runner → Production services: deploys services (evidence: `README.md`)
- Release runner → Changelog generator: runs generator (evidence: `README.md`)
- Changelog generator → Component revisions: reads pins (evidence: `README.md`)
- Changelog generator → Store notes: writes notes (evidence: `README.md`)
- Changelog generator → Release body: renders changelog (evidence: `README.md`)
- Acceptance runner → Auth lifecycles: runs lifecycles (evidence: `all/acceptance/main.go`)
- Acceptance runner → Test configuration: loads config (evidence: `all/acceptance/main.go`)
- Acceptance runner → Local service: tests connectivity (evidence: `all/acceptance/main.go`)
- Auth lifecycles → Live API: calls API (evidence: `all/acceptance/authcases/authcases.go`)
- USDC payments → Live API: calls API (evidence: `all/acceptance/paycases/paycases.go`)
- USDC payments → Test configuration: uses config (evidence: `all/acceptance/paycases/paycases.go`)
- Auth lifecycles → Test configuration: uses config (evidence: `all/acceptance/authcases/authcases.go`)
- Test configuration → Wallet fixtures: uses fixtures (evidence: `all/acceptance/testconfig/config.go`)
- Acceptance runner → USDC payments: may run
- Acceptance runner → Release runner: release test invocation
