Repository navigation
feat(13-client-checks): check six typed clients against one interface release - #5
Conversation
… release Add a release-scoped client check. For one published interface it pulls the release into an empty consumer with `trix use`, checks the manifest digest, TII digest and source commit, generates the Rust, Python, Go, TypeScript, Java and Swift clients with the released built-in templates, builds a consumer against each public runtime package and resolves the operation through a recording TRP. A record passes only when the request carries the operation's TIR and the input fixture's values. The client-checks workflow runs one job per language and combines the records into one result keyed by the release identity. It can be dispatched or called from another workflow. Pull requests run it against a controlled fixture release, together with journey 13's positive and negative harness tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
QA review recordPass 5 (later pass), 2026-11-25
QA counts: pass=later size=small lenses=1 confirmed=0 blocking=0 fixed-by-qa=0 backlog=0 plausible=0 refuted=0 unrefuted=0 Pass 4 (later pass), 2026-11-25
QA counts: pass=later size=small lenses=3 confirmed=1 blocking=1 fixed-by-qa=1 backlog=1 plausible=0 refuted=0 unrefuted=1 Pass 3 (later pass), 2026-11-25
QA counts: pass=later size=small lenses=2 confirmed=0 blocking=0 fixed-by-qa=0 backlog=1 plausible=0 refuted=0 unrefuted=1 Pass 2 (later pass), 2026-11-25
QA counts: pass=later size=small lenses=3 confirmed=1 blocking=1 fixed-by-qa=0 backlog=6 plausible=2 refuted=0 unrefuted=4 Pass 1, 2026-11-25
QA counts: pass=first size=large lenses=6 confirmed=13 blocking=13 fixed-by-qa=0 backlog=6 plausible=0 refuted=3 unrefuted=6 |
- Reject protocol, operation, profile, party and parameter names that are not plain identifiers, and UtxoRef tx parts that are not hex, before rendering. - Release runs restore the toolchain cache without saving it, and the client and combine checkouts drop credentials. - Combine reads each language only from its own artifact, rejects rows from another run attempt, and takes the release identity as the workflow passes it, defaulting an empty network to the profile. - Artifact names carry a key derived from the call's inputs, so one caller run can check several releases; drop the workflow-level concurrency group. - Keep booleans and integers apart in the request check. - Record the release's publication date as release_date in every row and in the combined result. - Add BigInt to the Swift consumer only when the generated package uses it, with a no-integer fixture interface the language jobs also check. - Create the --out directory, fail when the record cannot be written, quote the Go replace path, and record the tx3c that trix runs. - Extend the journey with a case for each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The combine cases passed a fixed `local` run URL, while CI writes its own RUN_URL into the python record the rows derive from, so combine rejected every row in CI. Pass the rows' run URL to all three combine calls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ubuntu-24.04 runner image now ships Maven 3.10, so the "Require Maven 3.9" step failed before the journey ran. Install a checksum-verified Maven 3.9.16 through a shared setup-maven action in the stable and beta jobs, and make the workflow and journey guards print the version they found. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Java jobs in both DX E2E workflows now depend on .github/actions/setup-maven, but their path filters listed only dx-e2e-run. A change to the Maven pin alone (a version or digest bump) would merge without running the jobs, and beta has no nightly to catch it. List the action in the push and pull_request filters of both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merge observed. Plan: Trellis will verify the human merge evidence, adopt the domain pin, and retire the plan. No further merge action is needed. |
Brings in the six-language client checks (#5), including the Maven 3.9 pin for the 12-java-sdk DX jobs. README.md kept both additions: the client-checks paragraph in the CI section, then the inventory section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
A release-scoped check of the six typed clients (Rust, Python, Go, TypeScript, Java, Swift) against one published interface:
trix use <scope>/<name>:<version>into an empty consumer, then check the pinned manifest digest, the TII's sha256 and the source commit the release recorded.trix codegen --plugin <language>-clientwith the released built-in template.Every run writes one record. The record fails, with the stage named, unless every step passed.
journeys/13-client-checks/check.shis the per-language entry point.client_check.pyrenders the consumers, serves the recording TRP, checks the request, and writes the records and the combined result..github/workflows/client-checks.ymlruns one job per language (Swift onmacos-15) and acombined resultjob. It can be dispatched or called from another workflow. It returns the combined result as an output and an artifact.fixture_registry.pyand runs journey 13's harness tests. A fixture pass proves the harness and is not an onboarding record.Hardening after the first review
UtxoReftx part must be hex, before any consumer source is rendered.release_date), and an emptynetworkinput defaults to the profile.--outcreates its directory, an unwritable record fails the check, and the recorded tx3c is the one trix runs.Verification (local, tx3c 0.25.0 / trix 0.28.0, macOS arm64)
run.sh --journey 13-client-checks(45 assertions). Seejourneys/13-client-checks/README.mdfor the cases.settleand the no-integer fixture'stransfer: all six languages pass against the public 0.15.0 runtimes, and the sixsettlerecords combine to a pass.place_order(Bytesand multi-word parameter names): the generated TypeScript client still fails at the request check (camelCase names, raw byte arrays). Journey 13 expects that failure until thets-clienttemplate is fixed.Scope notes
Bytes,AddressandUtxoRefare bound. Records, variants, lists and maps fail the record with an explicit "cannot bind yet".dx-e2e-runaction gains an optionalsave-cacheinput; its default keeps the current behaviour.Java job's Maven pin (DX E2E)
The
12-java-sdkjob inDX E2E (stable)and(beta)failed at its "Require Maven 3.9" step onmainand on this PR, because theubuntu-24.04image now ships Maven 3.10. A new.github/actions/setup-mavenaction installs Maven 3.9.16 from Maven Central, verified against the release's published SHA-512, and both Java jobs use it. The workflow guard and journey 12's own guard now print the Maven version they found when they fail.🤖 Generated with Claude Code