# Infrastructure (/docs/operations/infrastructure)

> Everything shapekit's deliverables run on, what they talk to, and what they record about you (nothing).

Everything shapekit's deliverables run on, what they talk to, and what they record about you
(nothing). Versions are the ones pinned in `pins.toml`; `shapekit pins verify` checks every
pin against its upstream source and `upstream-drift.yml` re-checks them weekly.

## Where it runs [#where-it-runs]

All CI runs on GitHub-hosted `ubuntu-24.04` runners. There are no self-hosted runners, servers,
databases, hosted services or other build systems. Releases are GitHub releases of this
repository. Nothing runs between CI jobs.

You run the tools on your own machine or CI runner. The released binaries are built for Linux and macOS,
each on x86-64 and arm64. The commands that start containers (`gen`, `harness`, the `check-lcm` script) need
Docker.

## Toolchains [#toolchains]

| Tool | Version | Pinned in |
|---|---|---|
| Rust | 1.99.1 | `rust-toolchain.toml`, `pins.toml` (with the channel manifest sha256), `dtolnay/rust-toolchain` at the commit of its 1.99.1 branch |
| Go | 1.27.4 | `go.work`, each `go.mod`, `pins.toml` (with the archive sha256), `actions/setup-go` |
| Node.js | 26.13.1 | `actions/setup-node`, `pins.toml` (with the archive sha256); `testees/js/package.json` requires `>=26` |
| TypeScript | 7.0.2 | `testees/js/package.json` and its lock file |
| golangci-lint | v2.15.0 | `pr.yml`, `pins.toml` |
| stellar-cli | 30.0.1 (commit `f2a7b741`) | `pins.toml` (`[[release]]`: the `stellar-cli-30.0.1-x86_64-unknown-linux-gnu.tar.gz` release asset and its sha256), installed by `scripts/fetch-stellar-cli.sh` |
| Docker | not pinned | the engine and compose plugin of the `ubuntu-24.04` runner image |

## Stellar stack [#stellar-stack]

| Component | Version | Used for |
|---|---|---|
| stellar-core | 30.0.0, `stellar/stellar-core:30.0.0-3642.0e49751aa.noble` by digest `sha256:eb7a7c81a29b...` | standalone core that records every chain |
| stellar-core test build | `stellar/unsafe-stellar-core:30.0.0-3642.0e49751aa.noble-buildtests` by digest `sha256:a8cb428ce497...` | only core's own `test --check-lcm` run in `nightly.yml` |
| stellar-core source | tag `v30.0.0` (commit `0e49751a`) | the `test-lcm-current` goldens |
| XDR definitions | stellar-xdr tag `v30.0` (commit `4f524bba`) | the protocol 30 XDR definitions; `upstream-drift.yml` watches for a newer tag |
| `stellar-xdr` crate | 30.0.0 (28.0.0 and 28.0.1 in the Rust testee matrix) | decoding, round trips, the Rust testee |
| `stellar-strkey` | 1.0.0 | strkey encoding in the Rust testee |
| `soroban-env-host` / `soroban-simulation` | 30.0.0, plus renamed 21.2.2, 22.1.4, 23.0.2, 24.0.0, 25.2.2, 26.1.4, 27.0.1, 28.0.2 and 29.0.2 for protocols 21 to 29 | transaction simulation in the generator |
| `soroban-sdk` | 29.0.1 (21.7.7, 22.0.11, 23.5.3 and 28.0.0 for the legacy contracts) | test contracts in `contracts/`; 28.0.0, 29.0.1 and 30.0.0 (current) in the soroban-sdk testee matrix |
| `@stellar/stellar-sdk` | 16.3.0, 16.3.1, 16.4.1, 17.2.0, 17.2.1, 17.3.0, 17.4.0 (current) | JavaScript testee matrix |
| `stellar-sdk` (PyPI, py-stellar-base) | 16.1.1, 17.0.1 (current) | Python testee matrix, under CPython 3.15.2 and uv 0.13.9 |
| `network.lightsail:stellar-sdk` (Maven Central, java-stellar-sdk) | 5.0.0, 6.0.0 (current) | Java testee matrix, on Temurin JDK 27.0.1 and Maven 3.10.1 |
| `stellar_flutter_sdk` (pub.dev) | 3.12.0 and 3.13.0 (current) | Dart testee matrix, with Flutter 3.50.0 |
| `soneso/stellar-php-sdk` (Packagist) | 1.18.0 and 1.19.0 (current) | PHP testee matrix, on PHP 8.5.12 (its sodium extension on libsodium 1.0.22, pinned by sha256 and minisign key) with Composer 2.11.2 |
| `stellar-dotnet-sdk` (NuGet) | 16.0.0, 17.0.0 (current) | .NET testee matrix, on the .NET SDK 11.0.100 |
| `com.soneso.stellar:stellar-sdk-jvm` (Maven Central, kmp-stellar-sdk) | 1.18.0 and 1.19.0 (current) | Kotlin Multiplatform testee matrix (the JVM target), on the Java testee's JDK and Maven |
| `stellar-cli` (crates.io for the versions, GitHub release assets for the binaries) | 28.1.0, 30.0.1 (current) | stellar-cli testee matrix: the `stellar xdr`, `strkey` and `tx hash` commands of each release binary, pinned by `testees/stellar-cli/versions/<version>/asset.sha256` |
| `github.com/stellar/go-stellar-sdk` | v0.7.1, v0.7.2, v0.7.3, v0.8.0, v0.9.0 (current) | Go testee matrix (all), the wallet-backend adapter and the linter's analysis target (v0.8.0 only) |
| stellar-rpc | tag `v30.0.1` (commit `6b6ec60c`, image `stellar/stellar-rpc:30.0.1` `sha256:b6d41d314808...`) | the JSON-RPC behaviour `shapekit serve` follows ([Replay server](/docs/harness/replay-server)), and the image the stellar-rpc adapter runs as a harness target |
| stellar-etl | tag `v2.8.35` (commit `7e3fc9af`) | the second indexer the harness runs, built by the stellar-etl adapter from its own `docker/Dockerfile` at that tag |
| stellar/wallet-backend | commit `3e22515a` (current, `main` on 2026-11-13), plus the pre-fix and fixed commits in `adapters/walletbackend/reproductions.toml` (`e967ce8b`, the previous current pin, is the fixed side of #716) | reference harness target |

On 2026-11-14 each of these is the newest stable upstream release: `scripts/upstream-releases.sh
--dry-run` reports stellar-core, the XDR definitions, the `stellar-xdr` crate,
`@stellar/stellar-sdk`, go-stellar-sdk and stellar-cli at their newest releases, and crates.io,
the GitHub releases of stellar-rpc and the `main` branch of wallet-backend give the other
versions.

The test contracts in `contracts/` are built with `stellar contract build` from the official
stellar-cli 30.0.1 release binary (`contracts/build.sh`, and `contracts/build-legacy.sh` for the
older soroban-sdk builds). `scripts/fetch-stellar-cli.sh` downloads the pinned release asset,
refuses it unless its sha256 matches `pins.toml`, and installs `stellar` under
`target/tools/stellar-cli-30.0.1/`; `shapekit pins verify` checks that the tag still names commit
`f2a7b741` and that GitHub reports the same sha256 for the asset. The asset also carries a GitHub
build attestation from stellar-cli's release workflow (`gh attestation verify <asset> --repo
stellar/stellar-cli`). Besides compiling, `stellar contract build` adds a `cliver` meta entry
naming its version and commit, removes unused spec entries (soroban-sdk 28 and later) and runs
wasm-opt, so the committed wasm depends on the stellar-cli release; `pr.yml` rebuilds the
contracts and fails if the bytes differ from the committed ones.

The full lists (every crate, npm package and Go module with its purpose) are in `pins.toml`.

## Container images [#container-images]

All pulled by digest, never by tag; `scripts/pin.sh image <name>` prints the reference.

| Image | Tag | Used by |
|---|---|---|
| `stellar/stellar-core` | `30.0.0-3642.0e49751aa.noble` | `shapekit gen`, the docker-backed tests |
| `stellar/unsafe-stellar-core` | `30.0.0-3642.0e49751aa.noble-buildtests` | `scripts/check-lcm.sh` |
| `timescale/timescaledb` | `2.28.2-pg17` | wallet-backend's database in the reference adapter |
| `chrislusf/seaweedfs` | `4.46` | the S3 store for the adapter's `sep54-s3` delivery mode |
| `fsouza/fake-gcs-server` | `1.56.1` | the GCS emulator the stellar-etl adapter serves the chains from |
| `stellar/stellar-rpc` | `30.0.1` | the stellar-rpc adapter's target |
| `ubuntu` | `noble` | base of the coverage twin build (`twin/Dockerfile`) |

The adapter also builds `shapekit-wallet-backend:<commit>` from wallet-backend's own
`Dockerfile` at the requested commit. That Dockerfile names its base images by tag; the adapter
replaces each `FROM` with the digest pinned here, through `docker buildx build
--build-context <tag>=docker-image://<repository>@<digest>`, and refuses to build a commit whose
Dockerfile names a base it has no pin for (`BaseImages` in `adapters/walletbackend/docker.go`,
checked against `pins.toml` by its tests). The stellar-etl adapter builds
`shapekit-stellar-etl:<commit>` the same way from stellar-etl's `docker/Dockerfile`, on
`golang:1.27.3` and `ubuntu:24.04` by digest (`BaseImages` in `adapters/stellaretl/build.go`):

| Image | Tag | `FROM` in wallet-backend's Dockerfile |
|---|---|---|
| `golang` | `1.25.9-bookworm` | build stage, every pinned commit |
| `debian` | `bookworm-slim` | runtime stage, the current pin and the newer reproduction commits |
| `ubuntu` | `jammy` | runtime stage, the older reproduction commits |

The packages the Dockerfile installs with `apt-get` and `go install` are not pinned by this
repository; they come from wallet-backend's Dockerfile as it is. `pr.yml` and the nightly
harness cache the adapter's clone and the built image (`docker save`) with `actions/cache`,
keyed by the wallet-backend commit and the base image digests, so a run with a cache hit builds
nothing and fetches nothing for wallet-backend.

Containers are isolated from the network: the core driver runs stellar-core on a Docker network
created with `--internal` and refuses to start otherwise, with all capabilities dropped; the
harness creates an `--internal` network for the target and binds the replay server to that
network's gateway address.

## CI [#ci]

| Workflow | Trigger | What it does |
|---|---|---|
| `pr.yml` | every pull request, pushes to `main` | Release build of the CLI shared by the other jobs. Rust: rustfmt, clippy with warnings denied, `cargo test`. Go: `go vet`, `go test`, golangci-lint per module, and `indexerlint` over `adapters/`. JavaScript testee: `npm ci`, typecheck, build, `node --test`. Python testee: the pinned uv and CPython, `conformance run` on the current version, the testee's unit tests, and its type table regenerated and compared with the committed one. Java testee: the pinned JDK and Maven (Maven runs through `scripts/with-java.sh`, which sets `JAVA_HOME` to the pinned JDK; the runner's own `JAVA_HOME`, JDK 17, stays set, so the job also shows the build does not depend on it), `conformance run` on the current version, the testee's unit tests, the type table generator's one-version mode against the committed table, and its type table compared the same way. Contracts: `contracts/build.sh` and `contracts/build-legacy.sh` with the pinned stellar-cli, compared byte for byte with the committed wasm. Corpus: registry check, manifest validation (round trip of every entry), synthetic entries and manifest regenerated and compared with the committed files, `oracle run` over the whole corpus compared with the committed oracle files, candidate manifest validation, contract schemas, `coverage --check`, `guide check`, `goldens agree`, `pack verify`, adapter schema check, the release archive builds, `findings check` with no drafts tolerated, no em dashes, the public text check ([maintenance](/docs/operations/maintenance#the-public-text-check-in-ci)), and the relative links and anchors of the tracked markdown. `gen verify-repro` under both passphrases for a rotating window of four families plus every family the change touches (every family when shared generator code, the registry, the contracts or the pins change), its chains packed into shards of at most 360 seconds of recording by the measured seconds per chain in `scripts/repro-seconds.tsv` (see [measured durations](#measured-durations)); a corpus step checks that the selection script's family list is exactly the set of recipe families the CLI registers. Conformance: the rust testee's rustfmt, clippy and unit tests, and `conformance run` on rust 30.0.0, go v0.9.0 and js 17.4.0. soroban-sdk testee: rustfmt, clippy with warnings denied, its unit tests and `conformance run` on soroban-sdk 30.0.0. Dart testee: the pinned Flutter (`scripts/flutter-toolchain.sh`), `conformance run` on stellar_flutter_sdk 3.13.0, `dart analyze` and its unit tests. PHP testee: PHP 8.5 and Composer 2.11.2, `conformance run` on soneso/stellar-php-sdk 1.19.0 and its unit checks. .NET testee: the .NET SDK 11.0.100, its build with warnings as errors, `conformance run` on stellar-dotnet-sdk 17.0.0 and the unit checks of `testees/dotnet/tests/check.py` on that build. KMP testee: the Java testee's JDK and Maven, its build with warnings as errors, `conformance run` on kmp-stellar-sdk 1.19.0, its unit tests (`mvn test`), the type table generator's one-version mode against the committed table, and its generated type table compared with the committed one. stellar-cli testee: rustfmt, clippy and unit tests of its wrapper and `conformance run` on the stellar-cli 30.0.1 release binary. `harness run` with the wallet-backend adapter at the current pin, testnet variant, on three chains. Timeouts: 5 minutes for `repro-select`; 10 for `go`, `js`, `python` and `corpus`; 20 for `conformance` and `stellar-cli`; 15 for every other job |
| `nightly.yml` | daily 03:00 UTC, and by hand | `goldens verify` and core's own `--check-lcm` run against the pinned goldens; `oracle run` over the whole corpus compared with the committed oracle files; `gen verify-repro` with no family filter, so every chain of every registered recipe, under both passphrases; `cargo test` with the docker-backed tests and the `shapekit serve` memory bound; `conformance run --all-versions` per SDK, the same run across every SDK with `--flag references-disagree`, and `conformance reproduce`; `shapekit fuzz` seeded with the date, and a replay of the stored reproducers in `findings/fuzz/` ([differential fuzzing](/docs/operations/differential-fuzzing)); the candidate lane through the current version of each SDK, whose divergences go to the job summary without failing the run; `harness run --shard` over every chain in both delivery modes (rpc on both networks run twice in one process with the memory growth check, in 6 shards; sep54-s3 on testnet, in 4 shards); over every chain of both networks through the stellar-etl adapter at its pin, in 5 shards; and through the stellar-rpc adapter, once per `--events-from` method, in 3 shards each; a `harness-merge` job per leg puts the shards back together with `harness merge` (the stellar-rpc legs checked against `crates/shapekit-harness/expect/stellar-rpc.toml`); `harness reproduce` of the wallet-backend sightings; `findings` imports the night's conformance matrices, the merged rpc, stellar-etl and stellar-rpc (`getEvents`) harness reports and an `indexerlint` run on wallet-backend at the pin as the triage inputs, checks that `indexerlint` is clean on wallet-backend with the committed baseline, and runs `findings check`, failing on any problem other than findings still in status draft. Timeouts: 15 minutes for `harness-merge`, 20 for `build`, 30 for `findings`, 60 for `goldens`, `docker-tests` and `fuzz`, 90 for `conformance` and `candidate`, 120 for `repro`, 150 per shard for `harness-stellar-etl` and `harness-stellar-rpc`, 180 per shard for `harness` and for `harness-reproduce` |
| `native-fuzz.yml` | daily 04:30 UTC, and by hand | `shapekit native-fuzz` for 600 seconds per target: cargo-fuzz on stellar-xdr, `go test -fuzz` on go-stellar-sdk and jazzer.js on `@stellar/stellar-sdk`, each checked by the encoding laws ([differential fuzzing](/docs/operations/differential-fuzzing)). A class listed in `conformance/native-fuzz/known-classes.txt` is skipped; a new class goes to the candidate lane and the job summary without failing the run |
| `audit.yml` | daily 04:40 UTC, and by hand (inputs `seed`, `below`, `n`) | Draws 3,000 distinct ledgers from the whole pubnet history in the public SEP-54 data lake, with the date (yyyymmdd) as the seed and one past the newest ledger (`shapekit audit newest`) as the bound. The build job sets both for all the other jobs, so every job checks the same ledgers, and writes them to its job summary, so the same sample can be drawn again. `laws`: `shapekit audit run --network pubnet --n 3000 --seed <seed>` checks every law of the law book on each ledger. `sdk`, once per SDK (rust, go, js), with `--sdk <sdk> --version current`: every ledger goes through the testee of that SDK's current version. Each ledger gets `decode_encode`, each envelope gets `tx_hash` (fee bump inners too), and `balance_id` and `contract_id` run wherever the ledger holds them. Each answer is compared with what the network wrote. Every job writes its report to the job summary (`shapekit audit summary`) and keeps it as an artifact for 90 days. A ledger the lake does not return fails the job; it is never skipped |
| `sentinel.yml` | hourly at minute 17, and by hand (inputs `pubnet_start`, `testnet_start`) | For pubnet and testnet: `shapekit audit watch` checks every ledger closed after the cursor stored on the `sentinel-state` branch (`pubnet.json`, `testnet.json`), oldest first and at most 1,500 per run, then commits the new cursor to that branch. Runs per network are serialized, so consecutive runs neither skip nor repeat a ledger, and the header chain is checked across runs. A cursor left behind by runs that did not happen catches up over the following runs; the job summary lists the exact ledger ranges checked, how many ledgers were behind the newest, how many this run checked and how many are left. A missing cursor fails the run: nothing is skipped unless the workflow is dispatched with the ledger to start at |
| `upstream-drift.yml` | weekly, Monday 06:00 UTC, and by hand | `shapekit pins verify`; `shapekit conformance sync-versions --check`, opening a tracking issue when the SDK version matrix is behind the registries; `scripts/upstream-releases.sh`, which opens one tracking issue, with the checklist of `docs/protocol-upgrade-runbook.md`, per new stellar-core, stellar-xdr or stellar-cli release, per change to core's golden index (at the newest core release, and the index stamps on core's default branch) and per change to a CAP text on stellar-protocol's default branch, each holding what `scripts/upstream-regenerate.sh` produced against the new version; and, through `scripts/upstream-drift.py`, one job that runs every SDK with a newer registry version over the corpus (`--all-versions`) and one job per indexer (wallet-backend's newest `main` commit, stellar-etl's and stellar-rpc's newest release) that runs the harness at the new version, each opening an issue with the findings that now pass, the entries that newly fail and the commands that move the pin. The SDK and indexer jobs run only when something differs |
| `release.yml` | a pushed `v*` tag | Refuses a tag whose signature GitHub does not verify. Builds `shapekit`, `indexerlint` and the wallet-backend adapter for linux and macos on x86-64 and arm64, each on a runner of that platform (`ubuntu-24.04`, `ubuntu-24.04-arm`, `macos-15-intel`, `macos-15`), the corpus archive (after `pack verify`; `corpus pack` itself also checks every chain against its `chain.json` and refuses strays under `chains/`) and the golden snapshot; builds the two archives twice on separate runners and requires equal checksums; publishes them with one `SHA256SUMS`, a build provenance attestation per asset and release notes from `STATUS.md`: the section headed with the tag's version and `release candidate`, and every section above it; a tag without that section fails |
| `sdk-conformance.yml` | `workflow_call` from an SDK repository | Downloads a pinned release, checks the archive and binary checksums, runs that SDK's testee with the caller's versions file and known-failures list. Takes any SDK of `conformance/versions.toml` and sets up only that SDK's toolchain, with the same pins and scripts as `pr.yml`. Timeout 30 minutes, 60 for `stellar-cli`. See [Running the corpus in an SDK's CI](/docs/sdk/sdk-ci) |
| `indexer-conformance.yml` | `workflow_call` from an indexer repository | Downloads a pinned release, checks the archive and binary checksums, runs the caller's setup commands and replays the corpus chains into its indexer through its adapter, in one job or, with `shards`, in a job per shard put together by a merge job; holds the run to the caller's expectations file, exactly or for regressions only; then writes the report and, when asked, a pull request comment. See [Running the corpus in an indexer's CI](/docs/harness/indexer-ci) |
| `site.yml` | pull requests and pushes to `main` that touch the site, `docs/`, `README.md` or the files the dashboard reads, and by hand | Builds the CLI, runs `shapekit site data`, then `npm ci`, the typecheck, the linter and the build of `site/`; checks that every docs, CAP and dashboard page has a prerendered file and validates `site/Caddyfile`. It builds and checks only; see [the website](/docs/operations/site) |

Permissions: `contents: read` everywhere, except `issues: write` for the drift workflow (its
tracking issues), `contents: write` for the `watch` job of `sentinel.yml`, used only to push
its cursor to the `sentinel-state` branch as `github-actions[bot]`, and, in the release job
only, `contents: write`, `id-token: write`, `attestations: write` and `artifact-metadata: write`
(publishing and attestations). The only
token used is the built-in `GITHUB_TOKEN`. The one other secret, `SHAPEKIT_TEXT_PATTERNS`, holds the private patterns of the public text check in `pr.yml` and is not a credential; see [maintenance](/docs/operations/maintenance#the-public-text-check-in-ci).

### Measured durations [#measured-durations]

Measured on GitHub-hosted `ubuntu-24.04` runners, from the job start and end times GitHub
records.

A `pr.yml` run on 2026-11-14 that regenerated the rotating window of families took 7 minutes 29
seconds from the first job start to the last job end. `build`, `rust`, `js`, `contracts` and
`repro-select` start together; the other jobs start when `build` has finished:

| Job | Duration |
|---|---|
| build (release build of the CLI) | 224 s |
| rust (rustfmt, clippy, `cargo test`) | 442 s |
| go | 139 s |
| js | 39 s |
| contracts | 167 s |
| corpus | 28 s |
| repro, four shards | 94 s, 75 s, 219 s, 50 s |
| conformance | 95 s |
| harness (three chains) | 143 s |

A change to the contracts selects every family for `gen verify-repro`. The `pr.yml` run for
such a change on 2026-11-14 took 17 minutes 40 seconds: `build` took 269 s and the slowest of
the four shards 785 s. Every `pr.yml` job has a timeout of 15 minutes or less, except
`conformance` and `stellar-cli` with 20 minutes each.

The `pr.yml` run of 2026-11-19 selected every family (it changed `Cargo.lock`) over 135
chains. The selection then still gave each family to one of four shards. Three shards took
185 s, 290 s and 290 s of `gen verify-repro`; the fourth held the 85 chains of
`explore.witnesses` and was cancelled at its 15-minute timeout after 862 s with 29 of them
recorded. `verify-repro` records one chain at a time with its two passphrases in parallel, so
a shard's step time is the sum of its chains' seconds (185.1 s against a sum of 184.8 s,
290.4 s against 290.2 s), plus about 20 s of checkout, download and image pull before it.

So `scripts/select-repro.sh` now packs chains, not families. `scripts/repro-seconds.tsv` holds
each chain's seconds: the 79 chains that run recorded, rounded up, and the other 56 timed
locally and scaled by 1.17, the largest runner-to-local ratio of 8 chains timed both ways
(the ratios ran from 0.67 to 1.17). Longest first, each chain goes to the shard with the
fewest seconds, with as many shards as keep each at or under 360 s:

| Selection | Chains | Seconds | Shards | Largest shard |
|---|---|---|---|---|
| every family | 135 | 3,381 | 10 | 341 s |
| a rotating window holding `explore.witnesses` | 93 | 2,501 | 8 | 317 s |
| another rotating window of four families | 5 to 8 | 61 to 185 | 1 | 185 s |

With the 20 s before it, a shard runs about 6 minutes; the 15-minute timeout is 2.4 times
that.

The `nightly.yml` run on 2026-11-14 took 2 hours 13 minutes. Its jobs run in parallel after
`build` (272 s):

| Job | Duration |
|---|---|
| harness (rpc delivery, both networks, two rounds) | 7659 s |
| harness (sep54-s3 delivery, testnet) | 4467 s |
| harness-reproduce | 2662 s |
| repro (every chain, both passphrases) | 2169 s |
| fuzz | 2013 s |
| docker-tests | 1096 s |
| goldens | 420 s |
| conformance (every version, and the reproductions) | 349 s |
| findings | 60 s |

Those durations are of the 716-entry corpus (44 chains). The corpus now has 1,092 entries in
135 chains, and each harness leg now runs in shards of the chains (`harness run --shard`),
which a `harness-merge` job puts back together (`harness merge`) before the findings job
imports them. The leg durations below are **estimates** until a GitHub run measures them:
local runs of the whole corpus on a shared 10-core host, scaled by how runs of the old 44
chains compared: the 2026-11-14 GitHub run took 0.91 times the local time with rpc delivery
and 2.14 times the local rpc-delivery time with sep54-s3; a local run of the GitHub workflow
(act) took the GitHub time for the rpc leg within 1%, 1.12 times the local time for
stellar-etl, and 3,037 s, 2,984 s and 2,631 s for the stellar-rpc events, transactions and
ledgers methods, which the new corpus scales by 4.06 (the local rpc leg's 135 chains against
its 44).

| Leg | Estimated in all | Shards | Estimated per shard | Timeout per shard |
|---|---|---|---|---|
| harness (rpc delivery, both networks, two rounds) | 29,700 s | 6 | 5,000 s | 180 min |
| harness (sep54-s3 delivery, testnet) | 18,300 s | 4 | 4,600 s | 180 min |
| harness-stellar-etl (both networks) | 22,000 s | 5 | 4,400 s | 150 min |
| harness-stellar-rpc, events method (both networks) | 12,300 s | 3 | 4,100 s | 150 min |
| harness-stellar-rpc, transactions method | 12,100 s | 3 | 4,000 s | 150 min |
| harness-stellar-rpc, ledgers method | 10,700 s | 3 | 3,600 s | 150 min |

### Maven Central refusals [#maven-central-refusals]

Maven Central sits behind a CDN that has answered `404` to some GitHub runners for files it
serves to every other address, while other jobs of the same run fetched the same files. A
refused runner fails at the first Maven download, which can be the pinned Maven itself
(`scripts/java-toolchain.sh`), a `[[maven]]` pin in `pins verify`, or a dependency or plugin in
a Java or KMP testee build. Each of these paths now tries the mirrors Central lists in a fixed
order, and the pinned hashes decide in every case, so a mirror changes where the bytes come from
and never which bytes are accepted:

| Path | Sources, in order | What decides |
|---|---|---|
| `scripts/java-toolchain.sh` (Maven) | `repo1.maven.org`, `repo.maven.apache.org`, Google's mirror `maven-central.storage-download.googleapis.com`, then `archive.apache.org` (the list `scripts/pin.sh maven-urls apache-maven` prints) | the sha256 in `pins.toml`; bytes that differ stop the script, whichever source served them. The script logs on stderr each source that failed and the one that served the file |
| `shapekit pins verify`, `[[maven]]` pins | the same list (the archive only for `apache-maven`) | `ok` only when a source serves bytes with the pinned sha256; the line names that source and quotes what every source before it answered, with the headers that say who answered. Other bytes from any source fail the pin; the mirrors are not asked once a source has served bytes |
| `scripts/with-java.sh mvn ...` (testee builds and unit tests) | Central as Maven configures it; when the build failed and Maven's output names `https://repo.maven.apache.org/maven2`, one more run with `scripts/maven-mirror-settings.xml`, which reads `central` from Google's mirror | Maven runs the retry with `--strict-checksums`; the jars a build copies into `lib/` are then checked against the version's `lib.sha256` by `scripts/check-jars.sh`, as on a build from Central |

`repo.maven.apache.org` is the same service as `repo1.maven.org` and resolves to the same CDN
addresses; Google's mirror and the Apache archive run on other infrastructure. A build that fails for any other reason, such as a compile error or a
failing test, is not retried. The retry replaces the user settings file (`~/.m2/settings.xml`)
for that run. Maven plugins are not hash-locked in `lib.sha256`; on a retry Maven checks them
against the checksum files the mirror serves, as it checks them against Central's otherwise.

## Network access and telemetry [#network-access-and-telemetry]

shapekit collects no telemetry. It does not phone home, report usage, check for updates, or
send crash reports, and no workflow uploads anything about who runs the tools.

These are the only commands that use the network, each only when run explicitly. `pins verify`
and `conformance sync-versions` read the GitHub REST API, which allows 60 unauthenticated
requests an hour per address; with `GITHUB_TOKEN` set they send it, as the workflows do.

| Command | Talks to | Why |
|---|---|---|
| `shapekit pins verify` | GitHub (git and the releases api), static.rust-lang.org, go.dev, nodejs.org, crates.io index, npm registry, Go module proxy, PyPI, Maven Central (and the mirrors it lists, when it refuses, see [Maven Central refusals](#maven-central-refusals)), Docker Hub registry | checks every pin still resolves to the pinned bytes |
| `shapekit conformance sync-versions` | crates.io, npm, the Go module proxy, PyPI, Maven Central, pub.dev, Packagist, NuGet, and the GitHub REST API and raw.githubusercontent.com for stellar-xdr commits | derives the SDK version matrix from the registries; `upstream-drift.yml` runs it with `--check` |
| `scripts/python-toolchain.sh`, `scripts/java-toolchain.sh`, `scripts/flutter-toolchain.sh` | GitHub release assets of uv, CPython (python-build-standalone) and the Temurin JDKs (27 for the testees, 21 with `--gradle-jdk` for an SDK checkout's Gradle build), Maven from Maven Central (or, when it refuses, the mirrors it lists or the Apache archive), and the Flutter archive from Flutter's release storage (`storage.googleapis.com`), as named in `pins.toml`, once | fetch the toolchains of the Python, Java, KMP and Dart testees into `target/toolchains/`, checked against their sha256 |
| `shapekit capture history` | the public SEP-54 data lake (`aws-public-blockchain`, us-east-2), or with `--via rpc` a stellar-rpc endpoint (default `https://soroban-testnet.stellar.org`) | captures one ledger from public network history |
| `shapekit doctor`, with `sdk` or no argument, unless `--offline` | index.crates.io, proxy.golang.org, registry.npmjs.org, one HEAD request each, only for the toolchains the selected SDKs build with | checks that the SDK builds can fetch their packages |
| `shapekit conformance file-issues` | GitHub, through `gh` | opens the drafted issues upstream; it refuses to run without the `--confirm` flag |
| `shapekit conformance run` and `reproduce`, and `shapekit fuzz`, unless `--no-build` | crates.io, the Go module proxy, the npm registry, PyPI, Maven Central (Google's mirror of it on a retry), pub.dev, Packagist and NuGet, through `cargo`, `go`, `npm`, `uv`, `mvn`, `flutter pub`, `composer` and `dotnet` | the build steps in `conformance/versions.toml` fetch the pinned SDK versions; running the testees is offline |
| `shapekit audit run`, `shapekit audit watch` and `shapekit audit newest`, unless `--lake <dir>` | the public SEP-54 data lake (`aws-public-blockchain`, us-east-2): `.config.json`, bucket listings for the newest ledger and the testnet prefix, and one object per ledger checked | checks the law book on public ledgers; objects are streamed and never written to disk. With `--sdk`, the SDK's build steps from `conformance/versions.toml` fetch packages unless `--no-build` is given |
| `wb-adapter` (used by `shapekit harness`) | GitHub and the image registries, on first use of a commit | fetches that wallet-backend commit and builds its image; later runs reuse both and are offline |
| `etl-adapter` (used by `shapekit harness`) | GitHub and the image registries, on first use of a commit | fetches that stellar-etl commit and builds its image; later runs reuse both and are offline |
| `rpc-adapter` (used by `shapekit harness`) | Docker Hub, when the pinned stellar-rpc image is missing | pulls the image by digest; later runs are offline |

Everything else (`gen`, `manifest`, `registry`, `synth`, `oracle`, `goldens`, `coverage`,
`guide`, `pack`, `corpus pack`, `serve`, `harness run` once images exist, `indexerlint`,
`audit summary`, and `audit run`, `audit watch` and `audit newest` with `--lake <dir>`) runs offline. `gen` never pulls the core image; it fails with the `docker pull` command to run when
the image is missing. `shapekit serve` listens on `127.0.0.1:8000` unless told otherwise and
serves only the chain it was given.

Maintenance scripts, which are not part of the tools you run: `scripts/upstream-releases.sh`
and `scripts/golden-drift.sh` read public release and tag information from GitHub, npm,
crates.io and the Go module proxy, and fetch core's golden index files.
`scripts/upstream-regenerate.sh` fetches the new stellar-xdr definitions, a shallow copy of a
new stellar-core tag or the stellar-protocol texts, and for an SDK release the packages its
testee build needs. The drift workflow runs all three. `nightly.yml` and `release.yml` clone stellar-core at the pinned tag for the goldens.
`scripts/fetch-stellar-cli.sh` (run by `contracts/build.sh` and `contracts/build-legacy.sh`)
downloads the pinned stellar-cli release asset from GitHub once and reuses the verified copy
afterwards; the contract builds themselves fetch the pinned crates through `cargo`.