You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
R2 object workload adapter and operation counters #10163
Implement R2 object get/put/checksum and native counters. Parent-verified primary R2 conditional operations cover writes (Put/Multipart/Copy), not DeleteObject. Do not claim conditional delete. GC may plain-delete a captured immutable generation-qualified key only after the #9084 owner fence and non-reuse are proven; otherwise delete is unsupported/disabled.
Create or validate pkgs/id/benchmarks/tests/r2_adapter.rs first. Proposed command: cargo test --manifest-path pkgs/id/benchmarks/Cargo.toml --test r2_adapter
Oracle: reference — expected Fake R2 capability fixture verifies conditional writes, opaque generation-qualified locator construction and never-reuse; conditional DeleteObject is unsupported. A stale delete targets only its captured old key and cannot alias a new generation.; verifier: Independent R2 operation capability table and generation-key model; test has no network/provider calls..
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 R2 adapter module; no bucket objects or credentials are touched.
Gate (fresh verification, 2026-11-14): the issue declares a hard dependency — "Hard dependencies (native blockers): C9133-01 — benchmark crate manifest, schema, shared workload types and synthetic fixtures". C9133-01 is issue Benchmark schema and synthetic mapping oracle #10153 (Benchmark schema and synthetic mapping oracle), still OPEN, and its deliverable does not exist yet: pkgs/id/benchmarks/ is absent from origin/main (fresh git ls-tree this claim — no crate, no adapters directory, no shared workload types to build the R2 adapter against). Sibling adapters redb workload adapter and transaction fixture #10164 (redb) and Turso workload adapter and sync state capture #10165 (Turso) are likewise OPEN behind the same foundation.
Building the R2 adapter now would mean inventing the benchmark crate's manifest, schema, and shared types inside this slice — exactly the foundation C9133-01 owns (file ownership on the issue is explicit: this slice owns only pkgs/id/benchmarks/src/adapters/r2.rs and pkgs/id/benchmarks/tests/r2_adapter.rs).
verdict: triaged, blocked. Hard dependency C9133-01 (benchmark crate manifest, schema, shared workload types, synthetic fixtures) has not landed: pkgs/id/benchmarks does not exist on main as of 2026-11-17T05:50Z. The schema issue is Benchmark schema and synthetic mapping oracle #10153 (OPEN).
No implementation was done under this preflight task (its scope is preflight only) and no production rollout is authorized.
Follow-on: task 20687 (small_fix, priority 20) — implement pkgs/id/benchmarks/src/adapters/r2.rs + pkgs/id/benchmarks/tests/r2_adapter.rs against the Fake R2 fixture; oracle per the issue (conditional writes verified; conditional DeleteObject unsupported; stale delete targets only its captured generation-qualified key). Test: cargo test --manifest-path pkgs/id/benchmarks/Cargo.toml --test r2_adapter.
Labels: the stale blocked set from this task's earlier blocked period (status/blocked, queue/blocked, work/assigned) is removed; queue/queued added for task 20687.
Implemented in the C9133-01 benchmark crate (pkgs/id/benchmarks), test-first, against a Fake R2 capability fixture - no network/provider calls:
src/adapters/r2.rs (new): FakeR2 fixture carrying R2's verified conditional surface (put-if-absent, put-if-match, copy-if-match; etag = content identity) and R2Adapter: generation-qualified opaque locators via the crate's content_id/physical_key, get + recomputed-checksum legs, and native operation counters (puts/gets/checksums/copies/conditional accepted+rejected/deletes/refused/unsupported).
Delete discipline per the issue's hard rules: conditional DeleteObject is UNSUPPORTED - every conditional-delete call is refused as unsupported and counted, nothing deleted. A plain delete exists only for a captured tombstone key, only after the design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084 owner fence is proven to the adapter, and only for a non-live generation - so a stale delete removes exactly its captured old key and cannot alias a newer generation. Generation keys are never reused (ever-used registry, mirroring the reference store).
tests/r2_adapter.rs (new): 6 tests named for the oracle clauses - conditional writes verified; get/checksum roundtrip; generation-qualified locators + never-reuse; conditional delete unsupported (cross-checked against the plan's support_level mapping); delete requires the owner fence; stale delete targets only its captured old key.
src/lib.rs + src/adapters/mod.rs: one-line module wiring (pub mod adapters) - the only touch outside the slice's two owned files.
Evidence (laptop, worktree at origin/main 8046b00):
cargo test --manifest-path pkgs/id/benchmarks/Cargo.toml --test r2_adapter: 6 passed, 0 failed.
cargo test --manifest-path pkgs/id/benchmarks/Cargo.toml (full crate): 6 r2_adapter + 2 workload_oracle passed, 0 failed - no regression in the C9133-01 oracle.
Activity
developing-today commentedon Nov 14, 2026
CODE-3588
dezren39 commentedon Nov 14, 2026
Agent note — task 17013 dependency-blocked on issue #10153 (lane any-c)
pkgs/id/benchmarks/is absent from origin/main (freshgit ls-treethis claim — no crate, no adapters directory, no shared workload types to build the R2 adapter against). Sibling adapters redb workload adapter and transaction fixture #10164 (redb) and Turso workload adapter and sync state capture #10165 (Turso) are likewise OPEN behind the same foundation.pkgs/id/benchmarks/src/adapters/r2.rsandpkgs/id/benchmarks/tests/r2_adapter.rs).--blocked-by-issue developing-today/code#10153; the broker returns it to the pool automatically when Benchmark schema and synthetic mapping oracle #10153 closes. No code was started. On unblock, the claiming lane builds the adapter + fixture tests against the landed shared types, honoring the issue's own guardrails (conditional writes only for Put/Multipart/Copy; conditional DeleteObject unsupported; GC plain-delete only of a captured immutable generation-qualified key after the design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084 owner fence and non-reuse are proven).dezren39 commentedon Nov 17, 2026
agent-note:v1
dezren39 commentedon Nov 17, 2026
Agent note — task 17013 preflight CLEARED (lane any-l, 2026-11-17)
pkgs/id/benchmarks/exists — Cargo.toml, fixtures/, result-v1.schema.json, src/lib.rs (shared workload model incl.ENGINES,content_id,physical_key,support_level), tests/. This reverses the blocked verdicts of 2026-11-14 (task 17013, lane any-c) and 2026-11-17T05:46Z (task 19122), both correct at their time.pkgs/id/benchmarks/src/adapters/r2.rs+pkgs/id/benchmarks/tests/r2_adapter.rsagainst the Fake R2 fixture; oracle per the issue (conditional writes verified; conditional DeleteObject unsupported; stale delete targets only its captured generation-qualified key). Test:cargo test --manifest-path pkgs/id/benchmarks/Cargo.toml --test r2_adapter.dezren39 commentedon Nov 17, 2026
agent-note:v1
state: implementation complete (task 20687, lane any-q)
issue #10163 - C9133-02-R2: R2 object workload adapter + operation counters
Implemented in the C9133-01 benchmark crate (pkgs/id/benchmarks), test-first, against a Fake R2 capability fixture - no network/provider calls:
Evidence (laptop, worktree at origin/main 8046b00):
Merge pull request #11135 from developing-today/queue/20687-10163-r2-…