Skip to content

fix: make JSONEnvelope schema versions portable to WASI for 1.10.0 - #102

Merged
ThorFuchs merged 1 commit into
mainfrom
fix/release-1.10-wasi-envelope-version
Nov 26, 2026
Merged

ThorFuchs merged 1 commit into
mainfrom
fix/release-1.10-wasi-envelope-version

Conversation

@ThorFuchs

Copy link
Copy Markdown
Owner

Release 1.10.0 — fixed-width envelope version

The initial full WASI release gate caught a real portability defect: the new, unpublished JSONEnvelope API stored schema versions as Int, but its documented maximum is 2^53−1, outside the wasm32 Int range.

This focused change uses Int64 for the range, property, initializer and exact integer decoding. It preserves all six wire fields, the accepted range, canonical bytes, payload digest and operational-error distinctions. No change to published 1.9.0 APIs, product inventory, deployment floors or package dependencies. Callers using typed Int variables against the unpublished preparation branch need an explicit conversion. The existing tests retain their discovery counts and now exercise exact roundtrips at six version boundaries and additional invalid inputs. CLI source identity was regenerated.

Actual WASI GREEN — reviewed 2026-11-26

  • Source commit: 1d7a9cbb50cd496259f1aa8397515cd4c1fab062
  • Git tree: 3ee5c5f6946a4548116d8b7aa80e83b432e47f83
  • Return archive: Swift-JSON-1.10.0-WASIFix.tar.gz (191405 bytes)
  • Archive SHA-256: 422ffa44060687ab48d976a829ee46f29f6b1788ee068ab351d19efcfb871799
  • Source manifest SHA-256: 5c207b2f28e8df399a839266d2446873980bb0e8ce2c04cc3a783c8f5c154cb8 (1580 entries; unchanged during execution)
  • WASI result SHA-256: e13635084d9460303d2ac7594f323fca452fa62734dbb0cb4b8ea5074f580875
  • Toolchain: ARM64 macOS 27.3, Swift.org 6.4.2, matching full-language WASI SDK, WasmKit 0.3.1, Node 26.5.0; Xcode 27.2 SDK preflight.
  • Both top-level CI commands and all 82 WASI subprocesses passed with exit 0. Recomputed all 84 log hashes, all four materialized-result hashes and the source manifest hash.
  • Node root suites: 987/987 methods in each configuration, including all five envelope methods; 371 parameterized invocations per configuration. Separate WasmAudit, Qualification and MCPReadiness packages: 72 passing method executions across both hosts/configurations. Total 2046 method executions.
  • 196 cap observations (49 metrics × 2 hosts × 2 configurations) agree. Both rooted public consumer receipts are byte-identical. Strict-memory build passed; Clang unused-argument warnings and Node WASI experimental warnings do not imply a warning-free run.
  • JSON syntax corpus: 318 observed, 287 passed, 31 policy exclusions. Schema corpus: 2337 observed, 2300 passed, 37 policy exclusions. Zero failures and zero unexpected skips. Authored 82 semantic, 9 boundary and 4396 malformed-UTF8 replay cases pass.
  • Module hashes recorded (38 modules); binaries not included in the returned evidence archive. Host performance measurements intentionally NOT RUN; no new performance claim.
  • Full command: python3 -B Scripts/ci.py --lane wasm --skip-host-measurements.

Original RED evidence is retained in Release1.10.md. This PR description records the GREEN evidence without modifying that qualified commit or uploading private host logs.

Fail-closed release gates

  • Complete functional WASI lane on the fix source; independent receipt review.
  • Native, Linux ARM64/x86_64, composition, safety, platform-floor, documentation and archive qualification for this PR.
  • Review the unpublished Int64 API and confirm no breaking change to 1.9.0; verify documentation/inventory.
  • Merge only after required checks and maintainer review. Preserve existing merge protections; no auto-merge. Reconfirm exact final commit/tree after merge. Because squash/rebase can change the SHA, require fresh source-bound WASI evidence on final main and successful main CI before tagging.
  • Assemble reviewed public source archive, matching DocC archive/manifest, qualification JSON and SHA256SUMS. Keep previous CI evidence separate from final source receipts. Review applicability of the existing 1.10-only controlled-performance exception; it is not a passed measurement.
  • Annotated tag and GitHub release only after final gate review; confirm an independent version-pinned SwiftPM consumer. Developer kit update follows the published release.

Foundation Models/JF4.2 and the planned 1.11 product are deliberately outside this PR. No tag, release or package promotion in this step.

@ThorFuchs
ThorFuchs merged commit 564ca8c into main Nov 26, 2026
22 of 42 checks passed
@ThorFuchs
ThorFuchs deleted the fix/release-1.10-wasi-envelope-version branch November 26, 2026 11:55

Copy link
Copy Markdown
Owner Author

Final source freeze — 1.10.0

Post-merge review: PR #102 is merged; main is 564ca8ce5ea057edc847666c4223da20084fc59c. Its single parent is c2e4aea7cf63bdf8236c22cc9ba0c6a3abeb5201. The final tree 3ee5c5f6946a4548116d8b7aa80e83b432e47f83 exactly matches both the WASI-qualified fix 1d7a9cbb50cd496259f1aa8397515cd4c1fab062 and the PR test merge b3f2da557da7094ec5bbf1a510a930193b832a85. No source delta introduced by squash integration.

Pre-merge Native/Linux CI: 20 successful checks; PR Pages deployment skipped as expected. Previous full WASI receipt: 82/82 subprocesses, 2,046 test-method executions, archive SHA-256 422ffa44060687ab48d976a829ee46f29f6b1788ee068ab351d19efcfb871799. Those receipts remain bound to their actual source commits, not relabeled as final-main execution.

Final-main workflows: Native, Linux. Require completion on the frozen SHA, fresh full WASI evidence with Swift.org 6.4.2 / matching SDK / WasmKit 0.3.1 / Node 26.5.0, final public API review, exact-source archive/DocC assets and public qualification receipt. Retain the 1.10-only performance exception as an exception (not a measured pass), with final-source applicability reviewed before publication.

No new source commit, tag or release. Foundation Models remains outside 1.10.0.

Copy link
Copy Markdown
Owner Author

Final 1.10.0 qualification and asset review — GREEN

Exact final main: 564ca8ce5ea057edc847666c4223da20084fc59c, tree 3ee5c5f6946a4548116d8b7aa80e83b432e47f83. Native and Linux main runs: 21/21 successful checks including Pages publication. Native 62/62, docs 4/4, both Linux behavior lanes 58/58, Apple/Linux safety, composition and platform-floor lanes all pass. Checkout SHA verified in the execution logs. No earlier PR receipt relabeled.

Final Studio return: Swift-JSON-1.10.0-Final.tar.gz, 193190 bytes, SHA-256 ceb62f1bd9e668117291b13af12235fe75f7891429ae69c9c232475e8bdf86f1. WASI lane exit 0, exact final SHA, full scope, Swift.org 6.4.2, matching SDK, Node 26.5.0 and WasmKit 0.3.1. Independently verify 84 log hashes, four materialized hashes, 1580 source inputs, CLI identity and all 196 exact cap outcomes. 82/82 subprocesses, 2046/2046 test-method executions, 742 parameterized root invocations. Previous fix and final receipts have identical source input manifests, corpus case rows and consumer JSON. Binaries omitted; module hashes not independently rehashed. WASI compiler/host warnings retained; no host measurements.

API digester against 1.9.0: actual exit 1, precisely the two previously documented package-internal findings (binaryConversionText and doubleValue meter overloads). Both old/new declarations checked; public doubleValue(policy:limits:) unchanged. Eleven other library modules no breakage detected. Public API review PASS, not a zero-exit digester claim. The 1.10-only controlled-performance exception remains an exception, not a measured pass.

Downloaded final CI ZIP artifacts 15119260638 (archive) and 15115878089 (docs), checked SHA-256 against provider metadata. Verified all 1580 source manifest entries and independently reconstructed the exact Git tree from source tar bytes/modes. Git-free native reproduction 62/62; command/event hashes and reproduction receipts reconciled. Verified 5917 DocC archive files against the exact companion manifest, 13 conversions without DocC diagnostics, 1805/1805 authored public symbols under the stated coverage policy. Source/docs receipts share the final WASI manifest. Other CI ZIP bytes not independently downloaded; their successful job/command receipts were reviewed.

Public asset payload hashes:

  • source tar.gz: 37d14842676815a8a47621003fcb5323390130c61f0f0cb7debab56892d48f0f
  • DocC tar.gz: 66c6234fd6a7ce5d8e2cce36fe797c6d08624fd64617c98998fe636c09717dcb
  • DocC manifest: 41489e8a523287d853767160c14a501ad60779c6ff7e3396854f6ce9f1fb5cb4

Five public release assets assembled locally with qualification JSON and SHA256SUMS; tag creation, GitHub release publication, uploaded asset verification and version-tag external consumer remain pending. Pages built while 1.9.0 was latest; refresh release metadata after publication. Developer kit and JMC1 follow release independently. No source change, tag or publication performed.

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