You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR is maintained by the Goal workflow. Each run may add commits to the same branch.
Warning
Protected Files — Push Permission Denied
This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.
Protected files
package.json
The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.
Create the pull request manually
# Download the patch from the workflow run
gh run download 28274237232 -n agent -D /tmp/agent-28274237232
# Create a new branch
git checkout -b goal/349-goal-add-rust-wasm-acceleration-coverage-for-core-functions main
# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-28274237232/aw-goal-349-goal-add-rust-wasm-acceleration-coverage-for-core-functions.patch
# Push the branch and create the pull request
git push origin goal/349-goal-add-rust-wasm-acceleration-coverage-for-core-functions
gh pr create --title '[Goal #349] Add Rust/WASM acceleration coverage for core functions' --base main --head goal/349-goal-add-rust-wasm-acceleration-coverage-for-core-functions --repo githubnext/tsb
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
releaseassets.githubusercontent.com
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
Goal
Add a Rust/WASM acceleration layer for eligible tsb core functions (searchsorted, natsort), with full coverage manifest, parity tests, and benchmarks.
Closes / tracks: #349
What was added
Rust crate (
rust/)Cargo.toml— wasm-bindgen + js-sys, wasm-opt disabled for portabilitysrc/searchsorted.rs—searchsorted_f64,searchsorted_many_f64,argsort_f64,searchsorted_str,searchsorted_many_str,argsort_str(15 Rust unit tests)src/natsort.rs—nat_compare,nat_sorted,nat_argsort(natural sort, mirrors TS algorithm exactly)pkg/— pre-built WASM output (wasm-pack --target nodejs)TypeScript glue (
src/wasm/)types.ts—TsbWasmModuleinterface (authoritative API contract, noascasts)loader.ts— lazy WASM loader viacreateRequire;isTsbWasmModuletype guard usesReflect.getpatternaccelerated.ts— public wrappers for all 6 functions with TS fallbacksindex.ts— public module indexCoverage manifest
wasm-coverage.json— 121-entry manifest (6rust-wasm, 115ts-only-ineligible, 0 unclassified, 0 eligible_missing)Tests & benchmarks
tests/wasm/parity.test.ts— 35 parity tests (all passing)benchmarks/wasm-core/run.ts— benchmark runnerbenchmarks/results-wasm-core.json— benchmark resultsScripts (package.json)
wasm:build—wasm-pack build rust --target nodejs --out-dir pkgwasm:test— Rust unit tests + TS parity testswasm:coverage— validates coverage manifestbench:wasm-core— runs benchmarks and writes JSONConfig
biome.json— addedrust/**andscripts/**to ignore listscripts/wasm-coverage-check.ts— manifest validatorCompletion Contract Evidence
bun run wasm:testbun run wasm:coveragebun run bench:wasm-corebun run lintbun run typecheckRemaining work
None — all completion contract checks pass. Awaiting maintainer review and merge.
Run URL: https://github.com/githubnext/tsb/actions/runs/28274237232
This PR is maintained by the Goal workflow. Each run may add commits to the same branch.
Warning
Protected Files — Push Permission Denied
This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.
Protected files
package.jsonThe push was rejected because GitHub Actions does not have
workflowspermission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.Create the pull request manually
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
releaseassets.githubusercontent.comSee Network Configuration for more information.