Skip to content

feat(13-client-checks): check six typed clients against one interface release - #5

Merged
scarmuega merged 5 commits into
mainfrom
work/work-a974bfb4cf8e373f1f91227f3a541fbabe115e2b
Nov 30, 2026
Merged

scarmuega merged 5 commits into
mainfrom
work/work-a974bfb4cf8e373f1f91227f3a541fbabe115e2b

Conversation

@scarmuega

@scarmuega scarmuega commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What

A release-scoped check of the six typed clients (Rust, Python, Go, TypeScript, Java, Swift) against one published interface:

  1. 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.
  2. trix codegen --plugin <language>-client with the released built-in template.
  3. Build a minimal consumer against the public runtime package the generated project names (crates.io, PyPI, Go module proxy, npm, Maven Central, SwiftPM).
  4. Bind the input fixture through the typed API and resolve against a local recording TRP. The check asserts that the request carries the operation's TIR and the fixture's values (bare or TRP-tagged).

Every run writes one record. The record fails, with the stage named, unless every step passed.

  • journeys/13-client-checks/check.sh is the per-language entry point. client_check.py renders the consumers, serves the recording TRP, checks the request, and writes the records and the combined result.
  • .github/workflows/client-checks.yml runs one job per language (Swift on macos-15) and a combined result job. It can be dispatched or called from another workflow. It returns the combined result as an output and an artifact.
  • On pull requests the workflow checks a controlled fixture release served by fixture_registry.py and runs journey 13's harness tests. A fixture pass proves the harness and is not an onboarding record.

Hardening after the first review

  • Names from the release (protocol, operation, profile, parties, parameters) must be plain identifiers, and a UtxoRef tx part must be hex, before any consumer source is rendered.
  • Release runs restore the shared toolchain cache but never save it, and the client and combine jobs check out without credentials.
  • The combined result reads each language only from its own artifact and accepts only records from the current run attempt. Artifact names carry a key derived from the call's inputs, so one caller run can check several releases or operations.
  • Records carry the release's publication date (release_date), and an empty network input defaults to the profile.
  • The request check keeps booleans and integers apart, and the journey now sends a wrong value for every bound parameter kind and a swapped or missing party.
  • The Swift consumer adds BigInt only when the generated package uses it. A second fixture interface with no integer parameter covers this, and every language job checks it on pull requests.
  • --out creates 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)

  • Journey 13 passes through run.sh --journey 13-client-checks (45 assertions). See journeys/13-client-checks/README.md for the cases.
  • Fixture settle and the no-integer fixture's transfer: all six languages pass against the public 0.15.0 runtimes, and the six settle records combine to a pass.
  • Fixture place_order (Bytes and 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 the ts-client template is fixed.

Scope notes

  • Parameters of type integer, boolean, Bytes, Address and UtxoRef are bound. Records, variants, lists and maps fail the record with an explicit "cannot bind yet".
  • The shared dx-e2e-run action gains an optional save-cache input; its default keeps the current behaviour.

Java job's Maven pin (DX E2E)

The 12-java-sdk job in DX E2E (stable) and (beta) failed at its "Require Maven 3.9" step on main and on this PR, because the ubuntu-24.04 image now ships Maven 3.10. A new .github/actions/setup-maven action 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

… 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>
@scarmuega

scarmuega commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

QA review record

Pass 5 (later pass), 2026-11-25

  • Outcome: passed. The PR stays draft; publication for maintainer review is left to the workflow runtime.
  • Head reported: 138db0d61b6d0f5fc1bf7d3370c01123411fcf3c, the same head as pass 4. Base main is still at 0741680, so no merge was needed.
  • Diff in scope: none. Since pass 4, the only rework was a rerun of one DX E2E (beta) macOS cell. That cell was cancelled because no hosted runner picked it up. The rerun passed. No code changed.
  • Previous items: pass 4's medium path-filter finding is still fixed at this head. Nothing was left plausible.
  • Checks: all 63 checks at 138db0d passed, including DX E2E (stable), DX E2E (beta) (rerun) and Client checks.
  • Lenses run: one checker for the previous items. No hunt reviewer or refuter ran, because the rework diff is empty. No coverage was degraded.
  • PR comments: this record, and the runtime's handoff notice, which needs no action.

QA counts: pass=later size=small lenses=1 confirmed=0 blocking=0 fixed-by-qa=0 backlog=0 plausible=0 refuted=0 unrefuted=0
QA lenses: checker=0/0/0

Pass 4 (later pass), 2026-11-25

  • Outcome: passed. The PR stays draft; publication for maintainer review is left to the workflow runtime.
  • Head reported: 138db0d61b6d0f5fc1bf7d3370c01123411fcf3c (QA's one commit on the reviewed head 33f8019), base main at 0741680 (unchanged, so no merge).
  • Diff in scope: the rework 955aa45..33f8019, which pins Maven 3.9 for the 12-java-sdk jobs: a new setup-maven composite action and the guard changes in both DX E2E workflows and journey 12. 44 changed lines, small.
  • Previous items: the maintainer's ruling to fix the Java job in this PR is met. The pinned install is checksum-verified, both guards print the version they found and fail loudly, and stable and beta are identical. 12-java-sdk passed in DX E2E stable and beta at 33f8019. The two plausible items in the QA backlog are unchanged by this rework and stay open there.
  • Checks: at 33f8019, DX E2E (stable), DX E2E (beta) and Client checks all passed (63 checks). At 138db0d they are left to CI; QA's commit changes only workflow path filters.
  • Lenses run: a checker for the previous items, one combined reviewer (correctness, state and resources, test adequacy) and security, then one refuter. Conformance is covered by the checker; fresh eyes was skipped (small rework). QA's own commit had one more review. No coverage was degraded.
  • Confirmed (fixed by QA, 138db0d): one medium. The new action was missing from both DX E2E workflows' path filters, so a change to the Maven pin alone would merge without running the Java jobs.
  • Non-blocking: one low wording item goes to the QA backlog.
  • PR comments: none apart from this record.

QA counts: pass=later size=small lenses=3 confirmed=1 blocking=1 fixed-by-qa=1 backlog=1 plausible=0 refuted=0 unrefuted=1
QA lenses: checker=0/0/0 combined=1/1/0 security=1/1/0

Pass 3 (later pass), 2026-11-25

  • Outcome: no outcome yet; held for a maintainer ruling on the pre-existing 12-java-sdk failure (below). The PR stays draft.
  • Head reviewed: 955aa454acef91a3cf71b4d65863c9fb0c8d5ae6, base main at 0741680 (unchanged). Diff in scope: the rework aa81b8d..955aa45, 11 lines in the journey's tests, small.
  • Previous findings: D2 fixed. The combine cases now compare against the rows' own run URL, and the earlier-attempt case still fails as it should, both locally and in CI.
  • Checks at head:
    • Client checks passed, including harness tests (journey 13), which now runs every combine case.
    • DX E2E stable and beta fail only in 12-java-sdk, as they do on main. This PR did not cause it, but a red check at the head stops the review handoff, so a ruling is needed before the PR can be handed over.
  • Lenses run: a checker for the previous finding and one combined reviewer (correctness, state and resources, test adequacy). Security, conformance and fresh eyes were skipped: the change is a small test-only rework, and the checker covers conformance. No refuter ran, because nothing above low was found. No coverage was degraded.
  • Non-blocking: one low test-gap finding goes to the QA backlog.
  • PR comments: none apart from this record.

QA counts: pass=later size=small lenses=2 confirmed=0 blocking=0 fixed-by-qa=0 backlog=1 plausible=0 refuted=0 unrefuted=1
QA lenses: checker=0/0/0 combined=0/0/0

Pass 2 (later pass), 2026-11-25

  • Outcome: changes (returned to the coder). The PR stays draft.
  • Head reviewed: aa81b8d53c9d5093547a9c0b3689800ca0679464, base main at 0741680 (unchanged). Diff in scope: the rework 5dc0c3f..aa81b8d, small.
  • Previous findings: 12 of 13 fixed (A, B, C, E, F, G, H, I, J, K, L, N). D is still open: its production check is correct, but the journey's combine cases fail when run in CI.
  • Checks at head:
    • harness tests (journey 13) failed: the combine cases compare against a fixed local run URL while the rows carry the CI run URL. This is the one blocking finding; everything after the first combine case never runs in CI. QA verified a fix that reuses the rows' own run URL.
    • The six client (*) jobs and combined result passed.
    • DX E2E stable and beta fail only in 12-java-sdk, which also fails on main (tracked separately).
  • Lenses run: checker for the previous findings, one combined reviewer (correctness, state and resources, test adequacy) and security, then one refuter. Conformance is covered by the checker and fresh eyes is skipped (small rework). No coverage was degraded.
  • Non-blocking: two plausible findings and four low findings go to the QA backlog. One defect found outside this PR was filed for the compiler's owner.
  • PR comments: none apart from this record.

QA counts: pass=later size=small lenses=3 confirmed=1 blocking=1 fixed-by-qa=0 backlog=6 plausible=2 refuted=0 unrefuted=4
QA lenses: checker=1/1/0 combined=1/1/0 security=0/0/0

Pass 1, 2026-11-25

  • Outcome: changes (returned to the coder). The PR stays draft.
  • Head reviewed: 5dc0c3f853bf05addc24c1dfa5179ed9fce1e3cf, base main at 0741680 (unchanged).
  • Pass: first. The full diff is in scope, so the size class is large.
  • Checks at head:
    • Client checks passed: harness tests, six client jobs and the combined result.
    • DX E2E stable and beta fail only in 12-java-sdk, at its "Require Maven 3.9" step. The same failure happens on main's scheduled runs, so this PR did not cause it. It is filed separately.
  • Lenses run: correctness, state-and-resources, conformance, test-adequacy, fresh-eyes, and security and dependencies combined. Two independent refuters followed, split by area (workflow, harness).
  • Lenses skipped: errors-and-observability (not an operated service), compatibility (no public API, flag or format change in existing code), persistence (no stored formats). The bounded contexts declare no review lenses.
  • Findings: 13 confirmed, all blocking: 2 high and 11 medium. They cover the workflow's reusable-call and artifact handling, the strictness of the request check, the trust boundary around interface releases, unmet record fields and a Swift build gap. The full findings are in the plan's review evidence.
  • Non-blocking: 6 low findings went to the QA backlog. 3 candidates were refuted.

QA counts: pass=first size=large lenses=6 confirmed=13 blocking=13 fixed-by-qa=0 backlog=6 plausible=0 refuted=3 unrefuted=6
QA lenses: correctness=4/4/1 state-and-resources=3/3/0 conformance=5/5/1 test-adequacy=2/2/0 fresh-eyes=4/4/1 combined=3/3/2

scarmuega and others added 4 commits November 24, 2026 22:39
- 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>
@scarmuega

scarmuega commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Merge observed.

Plan: plans/agent-reach-protocol-onboardings-client-checks.md
QA-approved head: 138db0d61b6d0f5fc1bf7d3370c01123411fcf3c

Trellis will verify the human merge evidence, adopt the domain pin, and retire the plan. No further merge action is needed.

@scarmuega
scarmuega marked this pull request as ready for review November 25, 2026 21:09
@scarmuega
scarmuega merged commit f0b66e2 into main Nov 30, 2026
85 of 86 checks passed
@scarmuega
scarmuega deleted the work/work-a974bfb4cf8e373f1f91227f3a541fbabe115e2b branch November 30, 2026 10:38
scarmuega added a commit that referenced this pull request Nov 30, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant