Skip to content

feat(storage): append topology shards with persistent surrogate lookup #931

Description

@DecisionNerd

Parent

Native sub-issue of #901. This issue must block #901 and does not expand its acceptance criteria.

Objective

Make topology construction append-only in bounded immutable shards and provide authenticated disk-backed UUID-to-surrogate lookup without rescanning prior topology.

Requirements

  • Flush bounded node, edge, and property shards without decoding or rewriting prior shards.
  • Persist surrogate tails so writer open does not enumerate or decode all shards.
  • Build/probe an authenticated UUID-to-node-surrogate index using bounded external runs.
  • Make every ordinary catalog, adjacency, mutation, query, export, verification, and import reader union canonical shards.
  • Expose aggregate work counters for input rows, prior rows decoded, rows encoded, shard count, and bytes.

Acceptance criteria

  • Doubling input rows approximately doubles cumulative topology work and physical staged/output bytes, rather than quadrupling them.
  • Peak writer state remains within the configured shard window.
  • Writer open and endpoint resolution decode zero topology rows per construction batch.
  • Duplicate/cross-kind identities and corrupt index/shards fail closed.
  • Ordinary reopen, count, query, export, verify, and clean import operate on sharded graphs without a special reader.

Non-goals

The public resumable construction lifecycle and final Graph500 client switch; those are a sibling #901 sub-issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions