Maintenance
This page says who maintains shapekit, for how long, and the rules every change follows. The steps for a new protocol version are in Protocol upgrade runbook.
Maintainers and duration
- Maintainer: Eren Topal.
- Duration: from the production release through the first protocol upgrade after delivery, protocol 31. CAP-89 and CAP-90 target protocol 31; both are in Draft status on 2026-11-18. The commitment ends when a shapekit release covering protocol 31 is published by following the runbook, with every CI tier green.
After the commitment ends the repository stays public under Apache-2.0. Anyone can fork it or follow the runbook; the corpus format, the testee protocol and the adapter interface are documented so they do not depend on this repository staying active.
Protocol 31 rehearsal
The runbook has already been run against protocol 31 before its release, using core's
next-protocol build. The outputs are in next/, kept apart from the release corpus:
next/chains/smoke.p31/: the smoke chain recorded at ledger protocol 31 under both the testnet and mainnet passphrases, with the next-protocol core image pinned by digest innext/pins.toml;next/entries/: 109 entries imported from stellar-core'stest-lcm-nextgoldens, with their index innext/goldens/;next/registry/: draft registry records for the protocol 31 CAPs, merged into a copy ofregistry/bynext/overlay-registry.sh;next/rehearsal-build.diff: the code changes the protocol 31 build needs;next/generated/gates.json: the protocol gates of the vnext core source (core commit362dbc51), written byshapekit twin gates --pins next/pins.toml.
What the rehearsal measured on the vnext image (core 362dbc51, built for ledger protocol 31):
shapekit schema diff v30.0 next: 2 names added (TestNextTypeand its field), none removed, no definition changed. Protocol 31 adds no XDR an indexer reads yet.shapekit coretest run --pins next/pins.toml --shards 3: all 144[tx]test cases exit 0 at every protocol from 0 to 31. They write 452,555 transaction metas (4.96 GB of dump) in 3,588 s with 3 containers at 1 CPU and 1536 MB each. At 1536 MB the kernel kills 12 of the 32 per-protocol runs ofpathpaymentand 9 ofrevoke from pool; each one passes when it is repeated at 3 GB, and no run stays killed.shapekit coretest convert --baseline next: all 452,555 metas convert and every short hash matches core'stest-tx-meta-baseline-next, with no baseline hash left unreached.shapekit twin gates: 344 protocol gates, 187 of them insrc/transactions, comparing againstV_2toV_30. No gate names protocol 31 yet. Against core v30.0.0 (345 gates), 9 gates exist only in v30.0.0 and 8 only in the vnext source. Most are the same comparison in a renamed or moved function. Two changes are new: the vnext source adds a check that the protocol is beforeV_28inInvokeHostFunctionApplyHelper::recordStorageChanges. It also drops theV_25comparisons inLedgerManagerImpl::setLastClosedLedgerandApplicationImpl::start.
How to repeat the rehearsal for the next protocol is in Protocol upgrade runbook.
What maintenance covers
- Keeping the pins current:
upstream-drift.ymlruns every Monday and opens a tracking issue when stellar-core, the stellar-xdr definitions, the stellar-cli release that builds the test contracts, a CAP text or the core golden index changes upstream, when an SDK's registry has a newer current version thanconformance/versions.toml, and when wallet-backend, stellar-etl or stellar-rpc has a newer version than its pin. Each such issue is worked through or closed with a reason; Upstream drift of the SDKs and indexers says what the SDK and indexer issues hold and how to move their pins. - Keeping CI green:
pr.ymlon every pull request,nightly.ymlevery night. A red nightly run is either a bug in shapekit or a real upstream change. A known-failures line is added only with an issue link, never to silence a red run. - Triage of corpus contributions, SDK-reported divergences and harness or linter reports, by the rules below.
- Releases: a signed tag runs
release.yml, which publishes the binaries, the corpus archive and the golden snapshot with checksums and attestations.
Upstream drift of the SDKs and indexers
scripts/upstream-drift.py decides what is newer upstream:
| target | newest upstream | pin |
|---|---|---|
| each of the 11 SDKs | the current version shapekit conformance sync-versions --check derives from the SDK's registry | current in conformance/versions.toml |
| stellar-etl | its newest vX.Y.Z tag | [[git]] stellar-etl in pins.toml |
| stellar-rpc | its newest vX.Y.Z tag, run from the stellar/stellar-rpc:<version> image | [[image]] stellar-rpc in pins.toml |
| wallet-backend | the newest commit of main: the repository publishes no release tags and is deployed from main | [[git]] wallet-backend in pins.toml |
When one differs, the workflow runs that version over the corpus without moving the pin: the
SDK job runs shapekit conformance sync-versions in its own checkout and
shapekit conformance run --sdk <sdk> --all-versions; one indexer job per indexer runs
shapekit harness run --network both with the adapter pointed at the new version
(wb-adapter --commit, etl-adapter --commit, rpc-adapter --image --version --commit). A job
runs only when something differs. The tracking issue, titled upstream: sdk <sdk> <version> or
upstream: indexer <name> <version>, lists:
- the findings whose every failing entry passes at the new version, with their upstream links, so the upstream issue may be fixed;
- the entries that fail at the new version and did not at the pin, with the failing checks or the harness verdict and its problems;
- the entries that failed at the pin and pass now;
- the commands that move the pin.
The issue is opened in this repository; nothing is written upstream. To see the text for a run you made yourself, call the script on its output:
python3 -I scripts/upstream-drift.py sdk-report --sdk go --pinned v0.8.0 --upstream v0.9.0 \
--matrix target/conformance/go/divergence-matrix.json
python3 -I scripts/upstream-drift.py indexer-report --name stellar-etl --upstream <new tag> \
--base findings/inputs/harness-stellar-etl-7e3fc9af.json --run harness-out/harness-report.jsonMoving an SDK to a new version
Moving the pin is a pull request, never done by the workflow:
shapekit conformance sync-versionsbrings the new version intoconformance/versions.tomland writes its testee files undertestees/<sdk>/versions/<version>/.- For rust, go and js, change the version in
pins.toml([[crate]],[[gomod]],[[npm]]) and runshapekit pins verify. shapekit conformance run --sdk <sdk> --all-versionsandshapekit conformance reproduce --no-build; a new failure is triaged as in Triage before the merge.- For rust, go and js,
shapekit findings import-inputs,shapekit findings collectandshapekit findings check.
Moving an indexer pin
- Change the pin in
pins.toml: thesha(and for stellar-etl theref) of the[[git]]entry, or thetaganddigestof[[image]] stellar-rpctogether withImage,Version30andCommitinadapters/stellarrpc/adapter.go. For stellar-etl, add the go-stellar-sdk version itsgo.modrequires tosdkProtocolsinadapters/stellaretl/build.gowhen the adapter reports it unknown. - Run the harness with the command in
findings/triage.toml([[inputs.import]]) at the new pin, update the import paths there and incandidate/findings/triage.toml, thenshapekit findings import-inputs,shapekit findings collectandshapekit findings check. For wallet-backend alsoshapekit harness reproduce --table adapters/walletbackend/reproductions.toml; for stellar-rpc regeneratecrates/shapekit-harness/expect/stellar-rpc.tomlwithshapekit harness expectafter reviewing the run.
Triage
Policy, in the order issues are looked at:
- A report that an indexer halts or loses data on a valid corpus entry, or that an entry is not something stellar-core emits, comes first. A wrong entry is worse than a missing one, because SDKs and indexers test against it.
- A divergence an SDK maintainer reports against a corpus entry is reproduced with
shapekit conformance run --sdk <sdk> --entry <id>before anything else. If the corpus is wrong, the entry is fixed under the expected-value rule below. If the SDK is wrong, the divergence goes intofindings/and the SDK's issue tracker, with sibling issues for every other SDK that shares it (shapekit conformance draft-issues). - A corpus contribution (a new family, recipe or captured entry) is reviewed for provenance:
local-core entries must regenerate byte for byte under both passphrases
(
shapekit gen verify-repro --family <family>), history entries must name the ledger they came from, and anything hand-made must carrysynthetic: true. - Requests for new SDKs, adapters or linter rules are welcome as issues; the testee protocol and the adapter interface let you build them outside this repository.
Security-sensitive findings in other projects go through that project's private disclosure channel, not a public issue; reports
about shapekit itself go through GitHub security advisories, as SECURITY.md describes.
When Maven Central refuses a CI job
A job that fails with curl: (22) The requested URL returned error: 404 on a repo1.maven.org
URL, or with Could not find artifact ... in central (https://repo.maven.apache.org/maven2),
met the Maven Central refusal that
infrastructure describes. The Maven downloads fall
back to the mirrors Central lists on their own, so a job only fails when every source refused.
To read what happened:
scripts/java-toolchain.shlogs each source that failed and, once the bytes match the pin, the one that served them, on stderr.shapekit pins verifynames the source that served each[[maven]]pin and quotes what each source before it answered, with theserver,via,x-served-by,cf-rayandcf-mitigatedheaders when the answer carried them.scripts/with-java.shprintswith-java: a download from maven central failed; retrying ...before the run withscripts/maven-mirror-settings.xml.
A sha256 mismatch is never a refusal: it fails the job whichever source served the bytes, and it
means the pin or the source is wrong. Check the file at each source by hand
(curl -fsSL <url> | sha256sum) before you change a pin.
The source list lives in three places that must agree: MAVEN_REPOSITORIES and
MavenPin::urls in crates/shapekit-cli/src/pins/mod.rs, the repositories list in
scripts/pin.sh, and the mirror in scripts/maven-mirror-settings.xml. Add only mirrors that
Central lists in its own
repository metadata. shapekit conformance sync-versions reads Central's maven-metadata.xml and the
SDK versions files in SDK CI call mvn directly; neither falls back to a mirror.
Changes to expected values
Expected decoded values (<variant>.expected.json), the expected block of an entry, the
known-failures files in conformance/known-failures/ and the reproduction tables decide what
counts as correct for every SDK and indexer that runs the corpus. A pull request that changes
any of them says which upstream source (stellar-core behaviour, a CAP, an SEP) justifies the new
value. Generated files change only through the command that generates them, and CI checks that
the committed files are what the command writes.
Repository settings
.github/CODEOWNERS names a code owner for every path and lists the expected-value paths above
(corpus/, conformance/known-failures/, both reproduction tables, the fuzz class list), the
workflows and the pins separately, so GitHub requests the code owner's review on every pull
request that touches them. A branch ruleset on main (Settings, Rules) enforces the rules:
- require a pull request before merging;
- require conversation resolution;
- require the status checks of nine
pr.ymljobs (build, rust, go, js, contracts, corpus, repro-select, conformance and harness) and that the branch is up to date. The jobs of the other testees (python, java, soroban, dart, php, dotnet, kmp and stellar-cli) also run on every pull request but are not required checks. Therepro (<shard>)jobs are not listed: their number depends on the selection, and a failing shard fails the workflow run; - block force pushes and deletion.
Repository administrators can bypass the ruleset.
Private vulnerability reporting (Settings, Code security) is on, for the reports SECURITY.md
describes.
The public text check in CI
The corpus job of pr.yml runs scripts/check-public-text.sh --locations (see
Acceptance gate). Its private patterns name people, machines and local
directories, so they are never committed. A maintainer provides them as a repository secret:
- Write the pattern file: one perl regex per line,
#starts a comment. It is the same file the script reads locally frominfo/text-patternsin the clone's git directory. - In Settings, Secrets and variables, Actions, add a repository secret named
SHAPEKIT_TEXT_PATTERNSwhose value is the whole file. With the GitHub CLI:gh secret set SHAPEKIT_TEXT_PATTERNS < path/to/text-patterns. - To change a pattern, set the secret again with the new file. GitHub never shows the value once it is saved, so keep the file itself where the maintainers can reach it.
The step writes the secret to a file only the runner user can read and passes it to the script
through SHAPEKIT_TEXT_PATTERNS. With --locations a hit prints only the file and line, never
the matched text, so a private name does not appear in a log anyone can read.
GitHub passes no secrets to a pull_request run from a fork. There, and in a fork's own runs
without the secret, the step checks the generic patterns only (absolute home directories,
private and tailnet addresses), writes a notice that the private patterns were skipped, and
passes unless a generic pattern matches. The private patterns are checked again on the push to
main after the merge, where the secret is available.
Acceptance gate
scripts/acceptance.sh runs the checks every change to main passes, in two modes. Run it
from anywhere in the repository; it needs cargo, go, golangci-lint, node, npm,
flutter, php, composer and dotnet on PATH and writes run
outputs under target/acceptance/. The Python testee's uv and CPython and the Java testee's JDK and
Maven are fetched once from their pinned releases into target/toolchains/ by
scripts/python-toolchain.sh and scripts/java-toolchain.sh, which check each download
against its sha256 in pins.toml. The workflows fetch Flutter the same way with
scripts/flutter-toolchain.sh; locally you can put its output in front of PATH too. It stops at the first failing check and names it.
- Quick mode,
scripts/acceptance.sh, is the gate for every change: formatting, clippy and the workspace tests;go vet,go testand golangci-lint in every module ofgo.work, andindexerlintoveradapters/; the JavaScript testee's typecheck, build and tests; the registry, the corpus and candidate manifests, the synthetic entries, manifest and oracle files as the tools write them, the contract schemas, coverage, the guide, golden agreement, the committed chains, the repro selection, the adapter protocol schema and the release archive; the current version of rust, go and js over the corpus, and the rust testee's own rustfmt, clippy and unit tests; the build and unit tests of the other testees at their current version (Python, Java, soroban-sdk, Dart, PHP, .NET, KMP and stellar-cli; the .NET and KMP builds treat warnings as errors, the .NET checks aretestees/dotnet/tests/check.pyrun against its build, and the KMP tests are itsmvn test), whose corpus runs are in full mode and in their ownpr.ymljobs; the findings record; theSTATUS.mdrelease candidate section of the version inCargo.toml, which the release notes are made from; the em dash check; andscripts/check-public-text.sh, which fails when a tracked file holds an absolute home directory, a private or tailnet address, or a match of a pattern in the maintainers' pattern file. That file names people, machines and local directories, so it is not tracked: the script readsinfo/text-patternsin the clone's git directory, or the fileSHAPEKIT_TEXT_PATTERNSnames, one perl regex per line. Without either, as in a fresh clone, it checks the home directories and addresses only and prints that the pattern file was not read; aSHAPEKIT_TEXT_PATTERNSthat names a missing file stops it with exit status 2. Last,scripts/check-links.ts --offlinechecks that every relative link and anchor in every tracked markdown file names a tracked file and a heading in it. A link to this repository on GitHub, atmainor at the tag of the version inCargo.toml, is checked against the working tree, and a link toshapekit.orgagainst the built site when one is given, since each resolves once this commit is tagged, published and deployed. Run without--offline, the script also fetches every external link and checks its fragment: an id or name in the page, or a line of a GitHub file. A link that answers 404 is broken; one that answers 429, 5xx, 401 or 403, or not at all after six tries, is listed as unchecked and the script exits 3. - Full mode,
scripts/acceptance.sh --full, runs quick mode and then what the nightly tier runs:shapekit pins verifyagainst the live sources, every version of every SDK over the corpus (the current versions of the newer SDKs included) and the upstream sightings (conformance reproduce), the Python and Java testees' type tables regenerated and compared with the committed ones, the wallet-backend reproductions table, the linter on wallet-backend at the pinned commit with its committed baseline, the stellar-rpc adapter over every chain of both networks once per--events-frommethod, checked againstcrates/shapekit-harness/expect/stellar-rpc.toml,findings check --allow-draft, every chain regenerated under both passphrases (gen verify-repro), the test contracts rebuilt with the pinned stellar-cli and compared with the committed wasm, the site built assite.ymlbuilds it, andscripts/check-links.ts --site site/dist/client, which also checks every link of the prerendered site and fetches every external link. It also needs docker, network access for those fetches and thewasm32v1-noneRust target.pins verifyreads the GitHub REST API, which allows 60 unauthenticated requests an hour per address; setGITHUB_TOKENso a run does not stop on that limit. The last line of its reproduction step gives the table's total, measured on 2026-11-17:harness reproduce: 24 of 24 table rows hold (20 entry verdicts, 4 carry checks). The findings step over the committed inputs prints, on 2026-11-18,25 findings, 891 failures, 0 unmapped; 0 of 25 findings pending filing (status draft).
How SDKs pin a corpus release
An SDK consumes a release, never a branch. Each release publishes corpus-<version>.tar.zst
and a SHA256SUMS file, and the release notes repeat the checksums. An SDK's CI pins both the
release tag and the archive's sha256, and fails if the downloaded archive does not match. The
reusable workflow .github/workflows/sdk-conformance.yml does exactly that; how to wire it into
an SDK repository is in Running the corpus in an SDK's CI.
Moving an SDK to a newer corpus is a deliberate change in that SDK's repository: bump the tag and checksum, run, and update the SDK's known-failures file with issue links for any new divergence.
Generated from docs/maintenance.md
Edit on GitHub