Repository navigation
Description
Problem and goal
Implement D1 mapping for supported logical operations and capture rows read/written, duration and DB size.
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-c/versioned-design.md#9133-benchmark-contract-s21s23-s216 (section: #9133 benchmark contract (S2.1–S2.3, S2.16)).
Tier: recommended.
Statement IDs: S2.1, S2.2, S2.3, S2.16
Enables: D1 parity runs; cloud evidence
Scope and ownership
Parent: #9133 (native component/meta parent).
pkgs/id/benchmarks/src/adapters/d1.rs(new; owner: C9133-02-D1)pkgs/id/benchmarks/tests/d1_adapter.rs(new; owner: C9133-02-D1)
Hard dependencies (native blockers): C9133-01 — benchmark crate manifest, schema, shared workload types and synthetic fixtures
Soft sequencing (not blockers): none
Test / evidence first
Create or validate pkgs/id/benchmarks/tests/d1_adapter.rs first. Proposed command: cargo test --manifest-path pkgs/id/benchmarks/Cargo.toml --test d1_adapter
Oracle: reference — expected Fake D1 fixture returns reference rows and extracts rows_read/rows_written without any network call or latency assertion.; verifier: Independent reference rows plus expected counter fixture..
Done and rollback
Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Remove D1 adapter module; benchmark harness and other adapters remain usable.
Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.
Activity
developing-today commentedon Nov 14, 2026
CODE-3587
dezren39 commentedon Nov 14, 2026
Preflight record — task 17012 / slice C9133-02-D1 (lane code-d, 2026-11-14)
dezren39 commentedon Nov 17, 2026
agent-note:v1 — openchamber scheduled lane (code-g), queue task 19121 (triage). Verdict: still blocked. Fresh check 2026-11-17: #10162 OPEN; native blocker #10153 (C9133-01, benchmark schema and synthetic mapping oracle) still OPEN. Work stays paused until it closes. Task blocked with reason class blocked.
dezren39 commentedon Nov 17, 2026
Preflight record — task 17012 / slice C9133-02-D1 (lane any-u, 2026-11-17)
gh issue viewandgh api). PR id benchmarks: schema, synthetic fixture and reference oracle crate (C9133-01, #10153) #11021 merged (squash 8046b00) delivering the benchmark crate;pkgs/id/benchmarksconfirmed present on laptop main. The earlier blocked notes (2026-11-14 lane code-d; 2026-11-17T05:46Z lane code-g) were correct when written — the blocker closed ~10 minutes before this claim.pkgs/id/benchmarks/tests/d1_adapter.rs), thenpkgs/id/benchmarks/src/adapters/d1.rs; oracle = Fake D1 fixture returns reference rows and extracts rows_read/rows_written with no network call or latency assertion; test commandcargo test --manifest-path pkgs/id/benchmarks/Cargo.toml --test d1_adapter.dezren39 commentedon Nov 17, 2026
Correction to the triaged note above (lane any-u, task 17012, 2026-11-17)
queue/17012-10162-d1-adapter, worktree~/git/fleet/queue-17012-10162-d1-adapter(laptop). Tests first (pkgs/id/benchmarks/tests/d1_adapter.rs), thenpkgs/id/benchmarks/src/adapters/d1.rs. No production rollout.id benchmarks: D1 workload adapter and native counters (C9133-02-D1) (#…
dezren39 commentedon Nov 17, 2026
Agent note — task 17012 done (lane any-u): #10162 fixed_merged via PR #11142
pkgs/id/benchmarks/src/adapters/d1.rs(new),pkgs/id/benchmarks/tests/d1_adapter.rs(new),pkgs/id/benchmarks/src/lib.rs(adapters wiring only).cargo test --manifest-path pkgs/id/benchmarks/Cargo.toml --test d1_adapter— 2 passed (transitions match the fixture AND the independent ReferenceStore row-by-row; counters match the expected counter fixture, totals 28 read / 11 written).cargo fmtclean. Full-crate run was queued behind the shared build lock under heavy CI load and not re-run; the lib change is additive only.