Skip to content

fix!: align Protocol 28 codecs and require SDK 17.2.1 - #166

Merged
fazzatti merged 3 commits into
devfrom
feat/protocol-28-sdk-compat
Oct 3, 2026
Merged

fazzatti merged 3 commits into
devfrom
feat/protocol-28-sdk-compat

Conversation

@fazzatti

@fazzatti fazzatti commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Named struct results could assign a sparse map's values to the wrong fields, typed map arguments could retain insertion order, and ABI event handlers rejected valid sparse Rust SDK 28 data. Decode named records by Symbol key, normalize only void-compatible omissions, and encode canonical maps without mutating caller inputs. Generated clients share these rules and retain dense writes and normalized output fields.

  • Validate SEP-41 wire types and match required topic prefixes. Occurrences can exceed four topics; RPC filters permit four constraints plus a trailing **, with typed errors when an automatic ABI query cannot fit.
  • Add SEP-41 0.5.2 and SEP-57 0.4.0 catalogs, preserving historical providers and full reference profiles. SEP-57 minimum component profiles are explicit. Transfer/MuxedTransfer ambiguity and the separate SEP-41/57 burn arities remain visible.
  • Add standards-correct SEP-35 operation IDs separately from existing RPC event IDs/cursors; complete SEP-58 ASCII/field grammar; validate TOML hosts before transport; retain opt-in raw map entries with parseScValEntries.
  • Require Stellar SDK 17.2.1 and test corrected liquidity-pool issuer ordering/IDs and preserved XDR asset arms. Stable packages take individually justified majors; preview packages take minors. Generated scaffolds require Core 3. See migration guidance and the reviewed release plan.

Coverage is enforced at 100%: Codecov project and patch targets have zero tolerance, and the required aggregate CI job independently validates complete, consistent LCOV line, branch and function counters. Tests now exercise every Protocol28 bound method through actual Contract encoding/decoding, native/extended codec dispatch, alternate event data, cold React metadata caching and recorder failure boundaries.

Coverage generation and aggregation use the already-supported Deno 2.9.6 consistently. Deno 2.7.11 incorrectly attributes unreachable whitespace before finally and injected decorator scaffolding to source coverage. Its independent compatibility checks remain. The coverage follow-up preserves production behavior and existing report inclusion, without adding exclusions or transformations. Raw profiles are archived per package/shard and fully restored for aggregation.

Local validation on the final implementation: 357 suites / 3,513 steps pass, with 100% coverage of 42,524 lines, 11,404 branches and 3,054 functions across 581 measured files. The exact aggregate gate and unchanged CRAP threshold pass. Gate tests reject missed metrics and incomplete/inconsistent reports through the actual CLI. The repaired recorder tests and paging declarations also pass on Deno 2.7.11.

Lint, architecture, public types, JSR/publish dry run, release/API checks, recorder/CI tooling and all 131 documentation examples pass. The compatibility matrix retains isolated Deno 2.7.11/2.9.6 consumers, TypeScript 5.9.3/6.0.3 on Node 22.12/24, upstream wallet checks and production bundles in Chromium, Firefox and WebKit. Exact-head CI passes all 30 applicable jobs for signed commit 29f449a972959e459b65853d47839dcc7b3ce4cf. Its independent aggregate gate confirms 100% of 42,523 lines, 11,408 branches and 3,054 functions across 580 files, with CRAP passing. Codecov confirms 100% project and patch coverage, including all 492 changed coverable lines. One external archive HTTP503 required a same-commit failed-job retry, which passed without code changes.

Draft for review; no merge, package publication or deployment. CodeRabbit's draft-skipped status is not a review.

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cc4b821b-e7d4-49ea-8ec7-d547ce54c9b8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (95799b8) to head (29f449a).

Additional details and impacted files
@@            Coverage Diff            @@
##              dev      #166    +/-   ##
=========================================
  Coverage   99.99%   100.00%            
=========================================
  Files         573       580     +7     
  Lines       42218     42523   +305     
  Branches     5589      5608    +19     
=========================================
+ Hits        42216     42523   +307     
+ Partials        2         0     -2     
Flag Coverage Δ
all-tests 100.00% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...al/tests/generated-bindings/protocol-28/colibri.ts 100.00% <100.00%> (ø)
.../tests/generated-bindings/protocol-28/constants.ts 100.00% <100.00%> (ø)
...rnal/tests/generated-bindings/protocol-28/index.ts 100.00% <100.00%> (ø)
...rnal/tests/generated-bindings/protocol-28/types.ts 100.00% <100.00%> (ø)
build-verification/src/core/evidence/accumulate.ts 100.00% <100.00%> (ø)
build-verification/src/core/recipe/parse-sep58.ts 100.00% <100.00%> (ø)
contract-bindings/src/generation/guide.ts 100.00% <100.00%> (ø)
contract-bindings/src/generation/scaffold.ts 100.00% <100.00%> (ø)
core/common/helpers/xdr/error.ts 100.00% <ø> (ø)
core/common/helpers/xdr/scval.ts 100.00% <100.00%> (ø)
... and 25 more

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fazzatti
fazzatti marked this pull request as ready for review October 3, 2026 01:49
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T01:55:11.849016Z 29f449a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@fazzatti
fazzatti merged commit 4890381 into dev Oct 3, 2026
63 of 65 checks passed
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