#747

Write the test model JSON from the compiled core

Openctatewants to merge intofrom
  • Compiled cores gain the canonical, unconditional export native_model_json. corewire generates its writer from the contract, and its output is byte-identical to std.json over the decoded model with byte strings as arrays: declaration-order fields, decimal byte arrays, enum strings, {"arm": payload} unions, null optionals, exact integer slots, and shortest round-trip floats including the nan, -nan, inf and -0 spellings.
  • In compiled-model mode, native test now reads snapshot.model and the replay model comparison from the core's own JSON. Reference views and hand-written cores keep std.json, so the existing reference-vs-compiled snapshot comparisons now check the two producers against each other.
  • Additive ABI change only: every other export, target, integer obligation and ABI fact is unchanged. New ABI-law suites check model JSON fidelity on every cycle, over the markup fixture and over a new fixture that reaches every value family.

Activity

2
vercel[bot]10d ago

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated
native-sdk ReadyPreview, v0Oct 20, 2026 6:44am UTC
native-sdk-schema ReadyPreview, v0Oct 20, 2026 6:44am UTC