Skip to content

docs(audit): shared reader evaluation evidence (#797) - #807

Merged
adityamukho merged 5 commits into
v3from
perf/797-shared-reader
Nov 3, 2026
Merged

adityamukho merged 5 commits into
v3from
perf/797-shared-reader

Conversation

@adityamukho

Copy link
Copy Markdown
Collaborator

Evidence package for #797 (child of the #772 size audit). Docs only: no production source changes.

Outcome

Neither candidate passes the acceptance gates fixed in docs/superpowers/specs/2026-10-30-797-shared-reader-design.md:

  • H (shared non-generic ReaderCore): saves 3,288 native bytes but fails the primary runtime gate. Envelope point-query upper bounds are 1.0245 (attribute/value) and 1.0260 (:as-of) against a limit of ≤ 1.02. The B:B control stays within 0.9937–1.0022.
  • P (the Audit the codebase for release binary size reductions #772 boxed prototype): fails the secondary gate on direct reader construction (con_direct). The upper bound is 1.174 native and 1.130 WASI, against ≤ 1.05. It makes two allocations per construction, versus one on base.
  • Neither meets AC 6 literally: the opt-level-z library consumer grows by 48 B (H) and 64 B (P).

The patches, harness, raw data, tables and limitations are in docs/audits/797/. The acceptance plan was committed before the first acceptance block (2313d245b, kept on audit/797-h-measured; see evidence/plan-provenance.txt).

Evaluated in two TandemKit rounds by Claude Opus and Codex gpt-6-astra. Bench tools, fixtures and temp directories have been removed.

Refs #797

🤖 Generated with Claude Code

https://claude.ai/code/session_01H2a7QjQLd9pG9qVFdqbo5d

adityamukho and others added 5 commits October 30, 2026 12:35
Spec for evaluating a non-generic extraction of OnDiskReader's read
logic against the v3 base and the #772 boxed-backend prototype. Ship
only if native saves >= 2,000 bytes with no artifact growth, point
families stay within a 1.02 one-sided 95% upper bound (two campaigns,
baseline control), and every other workload within 1.05, including
validated cold reads, reader creation, concurrency, WASI and BrowserDb.
Reviewed over three rounds with Codex; approved 2026-10-30.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7QjqyDrSDo1LKTK619q
Size, gate and runtime scripts for comparing the shared-helper reader
with the base and the boxed prototype, and the campaign specs and block
counts fixed from the pilots before any acceptance run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7Qo5yfvBEjzSuUoB2n9
Neither candidate meets the agreed margins, so no production change is
proposed. The shared helper saves 3,288 native bytes and passes every
correctness gate, but costs about 1-2% on opt-level-3 point queries: the
second campaign's upper bounds for attribute/value and :as-of point
queries are 1.0245 and 1.0260 against 1.02. The boxed prototype passes
the point gate but slows direct reader construction by about 17%.

The helper and its entry-point tests are kept as patches, with every
campaign's raw records, the sizes, gate status and per-workload tables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7Qo5yfvBEjzSuUoB2n9
)

The opt-level-z library consumer grows by 48 bytes (H) and 64 bytes (P),
so neither candidate meets the "no artifact grows" size bar. The README now
says which workloads carry a real result digest; concurrency, which was
checked by row counts only, is marked not fully accepted. The cold rows are
labelled outstanding, as the residency rule requires.

The tables add a validation column, absolute deltas in ns, and n/a for
fields the browser and WASI harnesses cannot measure. The browser build's
LTO setting is disclosed. The plan's pre-registration commit and timing are
recorded in plan-provenance.txt. Author and trailer lines are removed from
the patches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7Qo5yfvBEjzSuUoB2n9
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7QjQLd9pG9qVFdqbo5d
@adityamukho
adityamukho merged commit 4685ca9 into v3 Nov 3, 2026
18 checks passed
@adityamukho
adityamukho deleted the perf/797-shared-reader branch November 3, 2026 02:47
@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant