Exact Minima graphs: mutable storage and bounded queries

This experiment builds exact relationship indexes over Minima-owned stable payloads, alongside existing record maps and arenas. The design compares three mutable layouts and a frozen CSR/CSC reference; graphs owns current application guidance. The dated benchmark report is the authority for selected costs and exact source scope.

Candidate research and decisions

  • Packed global adjacency: page B+ indexing borrows the locality motivation of PCSR/PMA without claiming a packed-memory-array implementation. The read-path refinement keeps mutation fence caching and bulk construction without copying mutation scratch during reads.
  • Degree-aware pages: inline low degree, shared slabs, then per-adjacency trees; informed by degree-sensitive and sequential graph layouts.
  • Bounded base and changes: fixed small segments and local consolidation, not an implementation of LLAMA/GraphOne snapshots. The scratch refinement removes large path transfers.
  • CSR/CSC and algorithms: exact intersection and owned, revision-bound BFS continuation. CSR prefix reads avoid fetching a node solely to confirm an unfiltered page has more entries.

Primary-paper URLs and public-algorithm provenance remain in these notes. SCC, GRAIL, two-hop labels and weighted shortest paths were researched but deferred; no result claims those algorithms are implemented. Graph IDs do not automatically prove external records' existence or preserve another owner's lifetime.

Measurement and rejected assumptions

The same finite labelled/weighted datasets, inputs and independent exact results are compared across layouts. Earlier committed calls populate data. Scalars, batches, scans, mixed mutations, constructor work and bounded cursor trajectories are separate scopes. Complete instructions include SDK, reply, scratch and page charges; body counters and native provider traffic are narrower diagnostics. The plan and IC source audit preserve the target assumptions. Aligned 64 KiB native tracking and untouched 4 KiB direct-stable-read eligibility are different mechanisms; API/copy and heap charges still apply. Each execution begins fresh tracking.

Fewer provider calls were insufficient to select a layout. A decoded Delta path reduced reads but enlarged frames: official Wasm disassembly and charge profiles prove extra bulk copies, while some intersections paid another heap access/write pair. Those regressions are preserved, rather than described as improvements. Borrowing bounded scratch and avoiding read-only construction of mutation paths are the resulting hypotheses. The final report records actual refined outcomes.

Build and fixture findings

The source-policy account preserves the real shared-target old-mtime Cargo failure and the compiler-tracked replacement. Fifty-three compiled value checks cover same-checkout changes, additions, deletion and renaming. The pinned compiler conservatively recompiles a consumer to discover its file set; this is build overhead, not runtime hashing. Other SDK build-script generators remain outside that fix; exact used-policy audits are separately scoped.

Native retained-data markers alone did not admit cursor enums: the actual physical catalog rejected them. Explicit scalar/presence fields fixed admission; compile-time physical regression gates now accompany the actual populated KEEP and rollback checks.

Initial IC attempts exposed host Candid-style Option assumptions and insufficient native visitor budgets. The final host uses the real bounded Wire descriptor; maximum request AND response round trips cover every fixture limit. Encoded byte, visitor allocation and node limits are independent finite ceilings, not buffer reservations. Wrong-limit attempts and failed host runs remain diagnostic evidence. The immutable loader verifies archived source bytes and actual guest policy, allowing source iteration without weakening the SDK's live-source verifier.

Independent review distinguishes observed ledgers, incomplete reconstruction of two Wire configuration constants, and actual lifecycle gates. A separate current-working-tree native snapshot preserves the user's unrelated SDK edits; it does not turn frozen IC measurements into performance evidence for those other changes. Qualification receipts retain their hashes and results, while the raw uncommitted SDK source snapshot stays local. Cached server binaries and runtime temporary files are excluded from publication; exact external binary identities remain recorded.

Reproducing the retained evidence

The compact publication includes complete result ledgers, exact committed source closures and selected raw profiles. Its manifest records which large raw files, cached tools and uncommitted source snapshots remain local. Use the included verifier after relocation; the pinned PocketIC runtime is an external dependency. The dated report links readable per-operation CSVs.