Skip to content

aiur: retire the virtual-gas meter's API surface - #611

Merged
samuelburnham merged 2 commits into
mainfrom
sb/aggregate-first-drop-meter
Sep 3, 2026
Merged

aiur: retire the virtual-gas meter's API surface#611
samuelburnham merged 2 commits into
mainfrom
sb/aggregate-first-drop-meter

Conversation

@samuelburnham

@samuelburnham samuelburnham commented Sep 3, 2026

Copy link
Copy Markdown
Member

The recalibration loop never reads the meter: splitting, the wave audit, refinement, and the budget-gated proves all run on peak_prove_bytes and the suggested part count, measured per record — and cost-weighted splitting was benchmarked against block-count cuts on a synthetic fixture, init, and lean, and lost on every axis (vspan tracks time where the RAM model tracks padded rows). Its consumers were ix check --profile and the batch weight rows, which nothing downstream reads.

This removes that surface: the --profile flag and dumpProfile, the QueryRecordHandle accessors and ExecuteResult's record slot, the Full execution wrappers, const_weights and ShardResult.weights, and the unused merge estimator (raw_heights/peak_of_raws — the refinement path reports a sum of measured peaks instead).

Verified: the wave audit, ix shard refine, and the budget-gated prove reproduce their pre-strip behavior (4 leaves from 1, refined manifests emitted, all proofs bind-verifying against them, reseeded runs splitting nothing); aiur's 9 and kernel's 693 tests pass; workspace clippy at CI flags and rustfmt are clean.

@samuelburnham
samuelburnham force-pushed the sb/aggregate-first-drop-meter branch 2 times, most recently from 58c93f0 to 10a82bb Compare September 3, 2026 14:10
Base automatically changed from jcb/aggregate-first to main September 3, 2026 16:35
The recalibration loop never reads the meter: splitting, the wave audit,
refinement, and the budget-gated proves all run on `peak_prove_bytes`
and the suggested part count, measured per record — and cost-weighted
splitting was benchmarked against block-count cuts on a synthetic
fixture, init, and lean, and lost on every axis (vspan tracks time
where the RAM model tracks padded rows). Its consumers were
`ix check --profile` and the batch weight rows, which nothing
downstream reads.

This removes that surface: the `--profile` flag and `dumpProfile`, the
`QueryRecordHandle` accessors and `ExecuteResult`'s record slot, the
`Full` execution wrappers, `const_weights` and `ShardResult.weights`,
and the unused merge estimator (`raw_heights`/`peak_of_raws` — the
refinement path reports a sum of measured peaks instead).

The meter RUNTIME stays, dormant: querymap, execute, the runners,
`Codegen.lean`, and the three generated kernels are untouched so the
generated code keeps compiling and `ix codegen check` keeps passing,
with every FFI entry hardwiring `profile = false`. Excising the runtime
means regenerating ~20k lines of kernels, so it rides with the
regeneration this branch already owes at merge time, as one commit.

Verified: the wave audit, `ix shard refine`, and the budget-gated prove
reproduce their pre-strip behavior (4 leaves from 1, refined manifests
emitted, all proofs bind-verifying against them, reseeded runs
splitting nothing); aiur's 9 and kernel's 693 tests pass; workspace
clippy at CI flags and rustfmt are clean.
@samuelburnham
samuelburnham dismissed johnchandlerburnham’s stale review September 3, 2026 19:59

The merge-base changed after approval.

@samuelburnham
samuelburnham force-pushed the sb/aggregate-first-drop-meter branch from 10a82bb to f714d98 Compare September 3, 2026 19:59
Remove the dormant profile, weight, and virtual-span state from query maps and execution entrypoints while retaining witness multiplicity accounting. Update the Lean emitter and regenerate all three production kernels.
@samuelburnham
samuelburnham added this pull request to the merge queue Sep 3, 2026
Merged via the queue into main with commit 2911c16 Sep 3, 2026
14 checks passed
@samuelburnham
samuelburnham deleted the sb/aggregate-first-drop-meter branch September 3, 2026 22:42
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.

3 participants