Skip to content

feat(wasm): exact TIMESPAN and pinned core profiles - #7

Draft
morsel-ray wants to merge 3 commits into
masterfrom
morsel/current-core-6
Draft

morsel-ray wants to merge 3 commits into
masterfrom
morsel/current-core-6

Conversation

@morsel-ray

@morsel-ray morsel-ray commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Scope

Refs #6. Still draft; no npm publication or release-pin decision.

The default configuration prepares SDK 0.3.0 on released core v3.0.2 / d5a44cdb4ec33772104f466a2ca177a74b528041, which uses wire v3. There is now also an explicitly selected, immutable dev preview at fa9bccfd7f96b9248a39b23994f39a15d001b42c, with experimental engine metadata 0.0.0, writing v4 and reading v3/v4. The README gives separate-checkout build/test commands. Neither profile claims compatibility with arbitrary later commits. The default has not silently become dev.

Changes

  • Exact TIMESPAN type16 atoms/vectors/declarations: signed-nanosecond bigint and NULL sentinel, with explicit lo/hi32 bridges rather than changing the package-wide legalized-i64 ABI.
  • Constructor NULL hints published during existing filling, and COW/index-aware duration mutation. The new atom bridge handles NULL/error allocation results; the JS factory refuses a failed allocation rather than wrapping an invalid duration.
  • wasm32 aux/index padding with compiled layout assertions. Native pointer-shaped inline accelerators are ignored; WASM generations129/130/131 remain distinct. This is not general cross-ABI storage compatibility.
  • Core ALP strict-FP flags and platform-checked native IPC/REPL refusal stubs. Invalid-handle compression threshold matches native AUTO.
  • Exact-SHA core fetch/verification, linked-worktree replacement refusal, nested pinned source as default, and numeric version macros supporting an explicit preview suffix. Stable and dev build outputs must stay separate.
  • Project-relative actual native v3/v4 fixtures and generators, including version-specific error records. No changed-version-byte compatibility shortcut. Unsupported v5 mutation tests refusal only.

Validation

Linux x86_64, Emscripten6.0.6, Node24.19.0, real Chromium; no npm upload:

  • Stable default: fresh make -j2 app, npm test, explicit JS allocation-boundary unit, browser examples, and npm pack --dry-run --ignore-scripts: passed.
  • Exact-fa9: fresh patched core WASM build, then incremental changed-wrapper rebuild; project npm run test:wire4 and npm run test:wire4:examples: passed, including strict TypeScript.
  • Real native-fa9 v4 I64/duration/NULL/vector/table/error-message frames decode in Node and Chromium; native released-v3 values and code-only errors decode in Node; writer header is v4. Old code-only errors do not inherit the preceding message in the exercised control, and a subsequent healthy evaluation succeeds.
  • Engine-side duration NULL counts, retained-alias COW and index invalidation; native-index ignore and WASM-index save/reload controls passed.
  • Extracted C bridge unit checks NULL and owned-error allocation branches and exact payloads; JS mocked allocation unit checks refusal and exact split parts. These are seams, not actual WASM heap-exhaustion or leak tests.
  • Immutable fetch was exercised in an isolated checkout; the four patched core files matched the separately built source. A fake linked-worktree marker was preserved on refusal; preview numeric macros were dry-run checked.

The browser suite covers15 expressions,11 demos and a CDN example intercepted to the local candidate, not a published package. Five wasm32 compiler warnings remain in the dev pin. Source/product records are post-run correspondence snapshots, not independent prebuild dependency provenance. No core full-suite, sanitizer/fault, LSan, all-browser, networking or journal-replay certification is claimed.

Known separate SDK issues

PR #5 is not incorporated. Existing general I64/TIMESTAMP precision/legalization, allocation and ownership issues remain separate. In an additional five-case native-v4 common-value probe, STR/SYM/table/nested-list conversion passed, but inherited Dict.toJS() collapsed decoded keys to ""; direct named Dict.get() returned the right values. The exact PR5 SDK source already contains that converter repair. This is not being reported as a v4 decoder failure or silently counted as a passing object-conversion test. Cached TypedArray views can stale/detach after WASM memory growth; raw view writes bypass COW/index/NULL-hint guarantees.

@morsel-ray morsel-ray changed the title feat: build core v3.0.2 and expose exact TIMESPAN values feat(wasm): exact TIMESPAN and pinned core profiles Nov 24, 2026

This branch has not been deployed

No deployments
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