Native Nyxus graph — baseline and three measured rounds

Measured final runtime source: cb126fbc; documentation-only clarification a8cdef7e on experiment/nyxus-graph-20261023; independent crate ver1/crates/cdk-rsx-graph-nyxus and fixture bench/nyxus-graph.

All four versions passed 12 useful-work lanes × 8 fresh calls and 15 lifecycle checks per version (384 measured useful updates, 60 lifecycle checks). Each of sparse, hubs and deep labelled path has 10,000 vertices and 100,000 edges. Inputs and exact count/checksum/work/previous-value/revision/complete replies match independently across versions. Ordinary std/JS oracles precede IC qualification. All builds use the same pinned canonical offline/locked flags and compiler class.

The recorded name impact-8-khop means eight independent searches, each limited to four hops, within one call (amount = 8, hops = 4). It does not mean one eight-hop search. deep-impact-complete runs one search with a 10,000-hop limit. The fixture cases define these workloads; raw names and measurements below remain unchanged.

Shape Useful work Baseline instr/call Round 1 Round 2 Round 3 Final change
sparse candidate-intersections-64 1,645,989.25 1,762,330.25 1,762,330.25 1,202,330.25 -26.95%
sparse impact-8-khop 5,070,637.88 5,521,838.62 3,438,670.62 1,929,596.62 -61.95%
sparse overlapping-neighborhood-reductions-128 696,982.50 649,363.50 649,363.50 649,363.50 -6.83%
sparse mixed-1024-sequential-updates-plus-reduction 14,213,176.75 15,787,113.38 15,787,113.38 9,882,592.75 -30.47%
hubs candidate-intersections-64 25,915,484.50 17,572,425.50 17,572,425.50 17,342,425.50 -33.08%
hubs impact-8-khop 23,441,389.00 22,055,451.25 3,492,440.38 2,983,436.38 -87.27%
hubs overlapping-neighborhood-reductions-128 32,891,395.50 20,699,440.50 20,699,440.50 20,699,440.50 -37.07%
hubs mixed-1024-sequential-updates-plus-reduction 27,166,775.88 12,020,442.50 12,020,442.50 13,944,816.75 -48.67%
path candidate-intersections-64 1,600,079.75 1,822,927.50 1,822,927.50 1,172,927.50 -26.70%
path deep-impact-complete 149,456,417.25 148,677,088.25 16,393,411.12 11,113,721.12 -92.56%
path overlapping-neighborhood-reductions-128 696,929.50 649,310.50 649,310.50 649,310.50 -6.83%
path mixed-1024-sequential-updates-plus-reduction 14,030,492.62 16,597,884.88 16,597,884.88 8,832,905.00 -37.04%

Round 1: sorted native adjacency improves broad hubs but regresses several sparse/path lanes 7–18%. Round 2: exact dense visited bits and reusable level frontiers remove tree membership/insertion costs; impact improves 38–89%, while other lane instruction totals remain identical. Round 3: grouped sequential mutations plus initial sorted-buffer reservation improve sparse/path mixed work 37–47% and deep traversal 32%; hub mixed work regresses 16.01% versus Round 2 and is retained as an explicit tradeoff, still 48.67% better than baseline. These results do not prove a universal optimum.

Shape Useful work Baseline heap accessed/dirty Final heap accessed/dirty
sparse candidate-intersections-64 15.125 / 3 10.25 / 3
sparse impact-8-khop 28 / 3 16.5 / 3
sparse overlapping-neighborhood-reductions-128 4 / 3 4 / 3
sparse mixed-1024-sequential-updates-plus-reduction 78.875 / 77.625 52.125 / 51.75
hubs candidate-intersections-64 45 / 3 10.125 / 3
hubs impact-8-khop 29.375 / 4.125 14.25 / 3.375
hubs overlapping-neighborhood-reductions-128 35 / 3 20 / 3
hubs mixed-1024-sequential-updates-plus-reduction 112.25 / 103 54.125 / 38
path candidate-intersections-64 14.375 / 3 9.75 / 3
path deep-impact-complete 95 / 12 46 / 3
path overlapping-neighborhood-reductions-128 4 / 3 4 / 3
path mixed-1024-sequential-updates-plus-reduction 78.25 / 77.375 44.625 / 44

These are observed aligned 64 KiB heap tracking regions, including SDK/root/scratch work. No read-byte masks were captured. Initial populated Wasm capacity remains 16,842,752 bytes for every version/shape; stable memory 0. Capacity is not live graph allocation or host RSS. Baseline scratch reports queue backing only (visited-tree nodes excluded); Rounds 2/3 bitset/frontier backing is reported separately from headers/allocator overhead. Deep reported backing: 262,144 queue-only bytes → 1,320 bitset/frontier bytes.

Version Shape Complete reset+seed calls Complete population instructions Wasm capacity bytes
baseline sparse 14 215,545,441 16842752
baseline hubs 14 394,792,589 16842752
baseline path 14 185,050,943 16842752
round1 sparse 14 252,005,913 16842752
round1 hubs 14 958,541,783 16842752
round1 path 14 227,807,012 16842752
round2 sparse 14 252,005,913 16842752
round2 hubs 14 958,541,783 16842752
round2 path 14 227,807,012 16842752
round3 sparse 14 401,583,295 16842752
round3 hubs 14 507,666,291 16842752
round3 path 14 157,262,429 16842752

Final population versus original baseline regresses sparse 86.31% and hubs 28.59%, while path improves 15.02%. This ingestion/preparation tradeoff is separate from the twelve measured query/mixed lanes; no universal speed claim includes those regressions. Population is earlier committed calls and includes fixture input generation, sorting, native allocation and reverse maintenance; constructor/install startup is separate. Every useful call includes its own scratch/frontier/visited preparation and reply. Exact paired deep profiles at baseline/Round 1/Round 2 have complete reconciled block/API/page ledgers and partial bounded physical stacks, with zero observer instruction delta. Static instructions 137.71M → 7.19M in Round 2; only 1.15% of its paired savings are heap fees.

Every version passed actual populated same-artifact KEEP, mutation+allocator trap rollback, graph-drop replacement trap rollback, graph contract rejection before retained pointer opening, and append-only domain growth. No resumable cursor or cross-round migration is claimed. The new graph source policy matches an independent exact canonical-archive digest and the actual guest bytes. SDK eight source-only and two compiler constants match independently audited archived inputs; two cfg-dependent Wire values match controls but remain an explicit reconstruction limit.

Artifacts, raw traces, full per-round comparisons, prior failed attempts, profiles, policies and research notes are retained in the publication packet. Read notes.md, round{1,2,3}-comparison.json, final-vs-baseline-comparison.json, and summary.json. Final primary Wasm SHA256 1aa58325c491b2a577dc491f60dfb65ed1221648a479f7d7fd95cf44913abb5e. Research references are primary Terrace, STINGER, DHB and GraphOne papers; this implementation borrows ideas without claiming their exact algorithms/concurrency or published results.

This report qualifies the exact isolated SDK source and artifacts above. A separate native gate against the preserved Main working changes is recorded in the experiment receipt; it does not qualify those unrelated runtime changes for these IC costs.

The high-level intersection/candidate/impact count+checksum reductions are benchmark diagnostics, not missing ID-returning intersection/traversal/top-K/path APIs. Native sorted neighbors does return actual edge/vertex IDs.