Skip to content

Core: cover V1 workflow failure-log decoding - #243

Merged
zo-sol merged 3 commits into
IQCoreTeam:mainfrom
NubsCarson:codex/solana-v1-read-compat-20260914
Sep 16, 2026
Merged

zo-sol merged 3 commits into
IQCoreTeam:mainfrom
NubsCarson:codex/solana-v1-read-compat-20260914

Conversation

@NubsCarson

@NubsCarson NubsCarson commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

The workflow failure-log reader now supports V1 on main. This PR adds regression coverage to keep failed transactions readable across legacy, v0 and v1 responses.

The tests pass response fixtures through the real web3.js decoder and assert both the requested version cap and preservation of the on-chain failure logs. The diff against main is one test file; runtime code, SDK versions and the lockfile match Zo's V1 rollout in e918738.

Validation at 326babd: frozen pnpm 9.15.9 install, all six workflow tests, core TypeScript check and diff whitespace check passed on Node 24.18.0. Hosted test-and-build CI also passed. No transactions were submitted by these tests.

RemilioNubilio and others added 3 commits September 14, 2026 18:00
The solana-sdk is moving to Solana v1 transactions (IQCoreTeam/iqlabs-solana-sdk#22).
Readers break first: a getTransaction that asks for maxSupportedTransactionVersion 0
is refused for a v1 tx, and web3.js 1.98 cannot parse a version 1 response at all,
its TransactionVersion struct only knows 'legacy' and 0. Writers can lag; readers
cannot.

Move the one AgentNet-owned read site, txErrorDetail in nft/workflow.ts, from 0 to 1
so the failure logs it fetches for our own just-sent tx keep working once those are
v1, and pin @solana/web3.js at ^1.99.0 in core (peer and dev) and mcp so every bundle
that inlines core carries a parser that accepts version 1. The lockfile resolves to a
single web3.js 1.99.0 that the sdk 0.1.28 dependency dedupes onto; the rest of the
lock churn is that package's own subtree (codecs-numbers 5.5.1, bn.js 5.2.5). The
existing sendTx regression now asserts the version option instead of only that
getTransaction was called.

The @iqlabs-official/solana-sdk pin stays at ^0.1.28: the release with v1 readers
(feat/v1-tx-4096) is not published yet, and 0.1.28's readTableRows and readCodeIn
still ask for version 0 internally, so the two SDK fallbacks in core/chain.ts
(readRowsByPda, readCodeIn) keep that limit until the pin can move.
@NubsCarson NubsCarson changed the title Core: prepare transaction readers for Solana V1 Core: cover V1 workflow failure-log decoding Sep 16, 2026
@zo-sol
zo-sol merged commit b3a6b3f into IQCoreTeam:main Sep 16, 2026
1 check passed
@NubsCarson
NubsCarson deleted the codex/solana-v1-read-compat-20260914 branch December 2, 2026 03:30
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.

3 participants