Skip to content

Add cheap generic Tuner through S24 - #6

Merged
Valessc2 merged 1 commit into
mainfrom
agent/tuner-s20-s24
Aug 18, 2026
Merged

Valessc2 merged 1 commit into
mainfrom
agent/tuner-s20-s24

Conversation

@Valessc2

Copy link
Copy Markdown
Owner

Scope

Completes the S20-S24 Tuner package on top of current S19 main without moving bot semantics or framework types into SC2AIOptimize.

S20 — net benefit

Existing baseline/OFF gate remains candidate zero and continues to require correctness-qualified total-cost evidence.

S21 — TunableRegistry

Adds fail-closed registry validation plus ID/name lookup. Invalid specs and duplicate IDs/names are rejected. Consumer code still owns meaning, storage and safety.

S22 — champion/challenger

Adds allocation-free Welford running statistics, current-champion vs challenger evaluation, explicit BaselineOnly mode, deterministic reset/evidence reset and conservative confidence separation. Invalid policies/evidence fail closed.

S23 — context/crossover

Adds compact numeric workload/hardware/state context lookup and ordered workload-size crossover bands. Unknown/invalid contexts or bands fall back to baseline by default.

S24 — persistence/provenance

Adds a strict versioned standard-library persistence record carrying source revision, SC2 build/data version, compiler, hardware and workload profile identity. Persistence is control-plane/I/O work and deliberately not part of the hot path.

Cheapness

  • no ML/runtime dependency
  • no hidden allocations in champion/context selection
  • no sample-history retention; Welford keeps count/mean/M2 only
  • no benchmarking/search inside hot kernels
  • steady state is context/crossover -> already-resolved candidate ID -> execute
  • baseline/OFF remains selectable

Validation

The exact S20-S24 implementation was built locally under GCC 14.2 with -Wall -Wextra -Wpedantic -Werror; the standalone tuner test suite passed 1/1. Full repository Linux/Windows CI on this PR is the cross-platform build/test proof.

Not claimed

This does not claim target-hardware speedups, calibrated crossover values, bot integration, ladder evidence or V1 certification. Those remain S25-S32 work.

Complete S20-S24 with fail-closed TunableRegistry validation, allocation-free champion/challenger selection, Welford evidence, explicit baseline-only/reset mode, context/crossover champions and versioned provenance persistence.
@Valessc2
Valessc2 marked this pull request as ready for review August 18, 2026 23:04
@Valessc2
Valessc2 merged commit cac52d6 into main Aug 18, 2026
4 checks passed
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