Skip to content

Benchmark real graph encoding and storage candidates #10219

Closed

Description

@dezren39

Problem and goal

Measure actual candidate engines on one shared typed-byte corpus: deterministic chunked binary, current redb tuple-key materialization, SQLite JSONB, and normalized SQLite BLOB rows; report storage, indexed query, streaming/page and write costs without choosing from the toy serialization result.

Version and design basis

Version: V2. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/versioned-design.md#4-9125--triples-encoding-and-storage (section: 4. #9125 — triples encoding and storage).
Tier: recommended. Start trigger: Run before freezing the V2 candidate storage/encoding choice; do not treat the existing stdlib toy as this candidate-engine benchmark.
Statement IDs: S5.3, S5.4, S5.5, S5.6, S5.7, S5.11
Enables: A measured V2 storage recommendation with raw artifacts, engine/version/config metadata, repeatable fixture and explicit limits.

Scope and ownership

Parent: #9125 (native component/meta parent).

  • pkgs/id/crates/id-store/tests/graph_encoding_bakeoff.rs (new; owner: A-GRAPH-9125-03)
  • doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/real-encoding-bakeoff.md (new; owner: A-GRAPH-9125-03)
  • doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/real-encoding-bakeoff-results.json (new; owner: A-GRAPH-9125-03)
  • doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/validate_real_encoding_bakeoff.py (new; owner: A-GRAPH-9125-03)
    Hard dependencies (native blockers): A-GRAPH-9125-01 — Canonical typed-byte terms and shared deterministic corpus/reference oracle.
    Soft sequencing (not blockers): none

Test / evidence first

Create or validate doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/validate_real_encoding_bakeoff.py first. Proposed command: python3 -I doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/validate_real_encoding_bakeoff.py --run-and-check
Oracle: research-matrix — expected Runner executes the candidate-engine harness, then emits and validates raw results covering every engine/workload cell, engine/schema/index versions, byte/type round-trip oracle, repeated runs, query/page/write/storage measures and limits; missing, inconsistent or unrepeatable cells fail. No universal winner is asserted.; verifier: Strictly parsed runner invokes the exact redb/SQLite candidate harness before validation; independent artifact validator recomputes fixture hashes, checks matrix completeness/report consistency, and compares query outputs to the reference model..

Done and rollback

Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: https://www.rfc-editor.org/rfc/rfc8949 — CBOR typed bytes, canonical/profile considerations and streaming items (retrieved 2026-11-12).; https://www.sqlite.org/json1.html — SQLite JSONB is engine-private; documented JSONB size/operation properties (retrieved 2026-11-12).; pkgs/id/crates/id-core/src/tuple.rs — current typed ordered tuple-key codec.; pkgs/id/crates/id-store/src/tag_index.rs — current prefix/range indexes and index-order alternatives.; doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/graph-encoding-toy.py and experiment-output.txt — deterministic serialization-only toy, explicitly not candidate-engine evidence..
Rollback: Remove only the benchmark test, report, results and validator; no production codec/schema/index is modified by this research slice.

Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Agent note — task 17061 preflight outcome: BLOCKED on native blocker (lane code-a, 2026-11-14)

    Mandatory triage/preflight for slice A-GRAPH-9125-03, performed per the task spec — no implementation attempted, no production rollout authorized or started.

    Native blocker checked at 2026-11-14T17:47Z:

    The blocker remains open, so task 17061 has self-blocked exactly as prescribed (fleet queue block 17061 --reason-class blocked --blocked-by-issue developing-today/code#10196, blocker: "waiting on native issue blockers"). Work stays paused until the blocker closes; the block re-serves the preflight when it clears.

  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — triage (lane any-j, task 19156)

    State: triaged — a fully specified research slice (A-GRAPH-9125-03) from the #9106 ID/Atlas mill, already routed with its hard dependency recorded. This triage changes none of its queue state.

    Fresh evidence (checked 2026-11-17):

    • Issue Benchmark real graph encoding and storage candidates #10219 is OPEN with no labels; no held / user/owned / do-not-merge / do-not-auto-edit labels.
    • The body specifies the slice completely: goal (a measured V2 storage recommendation with raw artifacts, engine/version/config metadata, a repeatable fixture, and explicit limits — with no universal winner asserted); owned files (pkgs/id/crates/id-store/tests/graph_encoding_bakeoff.rs plus the bakeoff report, results JSON, and validator under the summit part-a-graph doc dir, all new); a named oracle (research-matrix: the runner executes the candidate-engine harness, then emits and validates raw results covering every engine/workload cell with round-trip oracles and repeated runs; missing/inconsistent/unrepeatable cells fail; validator-first command given); research evidence links (CBOR RFC 8949, SQLite JSONB, current tuple codec and tag index, and the toy experiment explicitly marked as not candidate-engine evidence); and a rollback that removes only the benchmark artifacts (no production codec/schema/index is touched).
    • Hard dependency recorded in the body: A-GRAPH-9125-01 (canonical typed-byte terms + shared deterministic corpus/reference oracle). Parent: research(id): triple encoding bake-off — compressed binary vs JSONB vs normalized byte-key maps #9125.

    Triage verdict:

    • Work kind: design (research/benchmark slice) — no new packet: the slice IS the packet.
    • Priority: priority/high — the ID program's design tracks are band 2 in Drew's priorities brief, and this benchmark feeds the V2 storage recommendation.
    • Effort: effort/l — a real candidate-engine harness plus validated artifacts, gated on the 9125-01 corpus.
    • First concrete step for the claiming lane: re-check A-GRAPH-9125-01's state fresh, then create/validate the bakeoff validator first per the body's test-first rule.
    • Acceptance check for this triage: this note + the slice spec + its recorded dependency; task 19156 completes as triaged.

    Queue: task 19156 (lane any-j) — claimed, triaged inline per runbook §1c.

  4. added
    priority/highImportant and time-sensitive
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    status/triagedTriaged and routed (see agent note)
    on Nov 17, 2026
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1

  6. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Agent note (repo-worker-code, code-f scheduled lane): triage verdict

    Verified 2026-11-18T08:48Z. #10219 is OPEN (status/triaged) and its hard dependency A-GRAPH-9125-01 (canonical typed-byte terms and shared corpus/reference oracle) is owned by new files listed in #10196, which is still OPEN.

    No benchmark work started. Resume after #10196 lands. Labels unchanged.

  7. added a commit that references this issue on Nov 19, 2026
  8. removed their assignment
    on Nov 20, 2026
  9. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    Agent note — native-blocker preflight (task 17061, lane oc-code-04)

    State: preflight complete; work PAUSED — native blocker remains open; task 17061 self-blocked per the A-GRAPH-9125-03 contract.

    Fresh GitHub check (2026-11-20):

    Per the packet, no implementation was performed and no production rollout is authorized. Revalidation of #10196 releases the dep block. Contingent benchmark research was not started.

  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Picked up queue task 17061 on scheduled OpenChamber lane any-n. Revalidating native blocker #10196 before any implementation; this task is preflight only.

  11. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Preflight complete: fresh GitHub state shows native blocker #10196 is CLOSED and target #10219 remains OPEN. No implementation was performed; the contingent candidate-engine benchmark trigger is not active because this pass does not freeze a storage/encoding choice. Approved slice manifest is recorded in the issue; proceed within its scope when the benchmark trigger is reached.

  12. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Closed as done. #11984 and #12022 delivered the harness, results, report and validator; #12265 fixed the last defect (the validator compared the report as raw text, so the repository formatter's column padding made the committed report fail its own check).

    Declared check, run on main ecd7891 (2026-11-22):

    • python3 -I doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/validate_real_encoding_bakeoff.py --run-and-check → exit 0: OK: fresh run and committed results: 6129 triples, fixture 73d1772be3c809f9..., 4 engines x 7 workloads x 3 runs = 84 cells
    • … --check-committed → exit 0, same 84 cells
    • validator tests: 9 pass (table parsing, seeded layout properties over 2000 cases, refusal of a changed cell and a changed leader line); CI runs both in scripts-test.yml

    No universal winner is asserted, as the issue requires. Tasks that name this issue as a blocker are free to proceed.

    By: Claude, 2026-11-22 flow review. Undo: reopen.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lLarge: multi-day or open-ended; expect staged check-inspriority/highImportant and time-sensitivestatus:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions