Skip to content

Journeys 07–10: codegen-consume, interface-consume, protocol-fixture, live-network - #1

Merged
scarmuega merged 1 commit into
mainfrom
journeys-07-10
Aug 7, 2026
Merged

Journeys 07–10: codegen-consume, interface-consume, protocol-fixture, live-network#1
scarmuega merged 1 commit into
mainfrom
journeys-07-10

Conversation

@scarmuega

Copy link
Copy Markdown
Contributor

Fills the journey gaps from the umbrella plan dx-e2e-journeys-remaining, which became the sole real-binary coverage of these surfaces after tx3-lang/trix#129 hermeticized trix's local suite (every tx3c interaction there now runs against a fake).

New journeys

Journey Covers Scope
07-codegen-consume Real tx3c codegen + published codegen-v1beta0 templates → generated ts-client compiles in a host package (npm install + tsc) → resolves a transfer through the generated client against a local devnet TRP runtime; needs node (skips cleanly if missing)
08-interface-consume Build a real TII, prime the consumer cache byte-for-byte as trix use writes it, then real tx3c decode via inspect tir (alias + full-ref forms) and codegen-for-interface from the cached TII compile/lower; offline, no registry
09-protocol-fixture The acme/hydra-heads production-scale protocol (~1000 lines) through checkbuildinspect tir compile/lower; offline
10-live-network trix invoke -p preprod --skip-submit against a live Demeter TRP endpoint, mirroring the sdks live-e2e env contract (TRP_ENDPOINT_PREPROD, TRP_API_KEY_PREPROD, TEST_PARTY_A/B_ADDRESS) secrets-gated; skips green without env

CI changes

  • 04-devnet-roundtrip graduates to the stable job: the trix#123 expect fix ships in trix 0.26.2, which is what the stable channel now installs — verified locally (Test Passed). Its README's "add to stable once fixed" trigger has fired.
  • 07/08 also join the beta cherry-pick (they're the drift-detectors for the contracts trix#129 stubs).
  • New dx-e2e-live.yml: weekly + manual, forwards the four live secrets to 10-live-network. Until those secrets are configured on this repo it's a green no-op (the journey logs the skip).
  • pull_request triggers added to the stable/beta workflows — this repo had no pre-merge validation at all (the push-to-main-only triggers predate the extraction).

Verified locally (trix 0.26.2 / tx3c 0.23.0 — the current stable channel)

  • Each new journey green in isolation (./run.sh --journey <name> --verbose) and the full suite green: 10 passed, 0 skipped, no leaked dolos daemons.
  • Journey 10: skip path green without env; half-configured env fails loudly; the [networks.preprod] override was smoke-tested against the public Demeter preprod TRP (reaches the endpoint; fails only on the unfunded probe address, as expected).

Known findings (tracked umbrella-side)

  • No trix test slice in 09: every upstream protocols/ fixture ships a stale scaffold tests/basic.toml referencing a transfer tx none of them define (unknown tx: transfer). The round-trip slice unblocks when the fixtures grow real scenarios.
  • Arming 10 needs the TRP_* / TEST_PARTY_* secrets (same values as the sdks repo) added to this repo.

🤖 Generated with Claude Code

…work

Fill the journey gaps that became the sole real-binary coverage after
tx3-lang/trix#129 hermeticized trix's local suite:

- 07-codegen-consume: real `tx3c codegen` with the published
  codegen-v1beta0 templates, compile the generated ts-client in a host
  package, then resolve a transfer through it against a local devnet.
- 08-interface-consume: build a real TII, prime the interface cache
  byte-for-byte as `trix use` writes it, then real `tx3c decode` via
  `inspect tir` (alias + full ref) and codegen-for-interface.
- 09-protocol-fixture: the acme/hydra-heads production-scale protocol
  through check/build/inspect. No `trix test` slice yet: every upstream
  protocols/ fixture ships a stale scaffold tests/basic.toml referencing
  a `transfer` tx none of them define (tracked in the umbrella plans).
- 10-live-network: secrets-gated preprod resolve via a Demeter TRP
  endpoint, mirroring the sdks live-e2e env contract. Skips green
  without the env; new dx-e2e-live.yml runs it weekly + on dispatch.

Also: graduate 04-devnet-roundtrip to the stable job (the trix#123
expect fix ships in trix 0.26.2 on both channels — verified locally),
add 07/08 to the beta cherry-pick, and add pull_request triggers so
journey changes are validated pre-merge now that this is its own repo.

All journeys verified green in isolation and in the full suite against
trix 0.26.2 / tx3c 0.23.0 (the current stable channel), no leaked
daemons.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@scarmuega
scarmuega merged commit 1c9ed93 into main Aug 7, 2026
51 checks passed
@scarmuega
scarmuega deleted the journeys-07-10 branch August 7, 2026 13:21
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