Skip to content

Improve discovery reachability and add reproducible experiment foundations - #19

Draft
magiccodingman wants to merge 2 commits into
mainfrom
codex/discovery-foundations
Draft

magiccodingman wants to merge 2 commits into
mainfrom
codex/discovery-foundations

Conversation

@magiccodingman

@magiccodingman magiccodingman commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Why

The review found several ways useful recipes could be excluded before measurement, paid-for contextual evidence could miss final consideration, and cached results could be reused without enough input identity. Prediction reconstruction also needed clearer separation from discovery performance.

This PR implements the correctness fixes and a bounded experiment framework so the next hardware agent can test whether better combinations remain reachable.

What changes

  • Measurement evidence: versioned content envelopes; exact imatrix/domain selection; identified native references; removal of raw-log/DB-only reuse; forced-relearn propagation; compact historical archives; stronger isolation dedupe proof; clone build/output proof; explicit frozen-corpus input.
  • Search reachability: near-anchor eligibility before SQL LIMIT; complete eligible-pool counts; opt-in complete interior coverage; opt-in bounded KLD/size rescue with incumbent-specific scope; reconciliation of compatible contextual references and probes; an unspaced measured-frontier archive.
  • Prediction diagnostics: honest tie-aware metrics and coverage; raw versus projected scores; coefficient-holdout diagnostics; removal of pure-target feature leakage; optional full-population score exports; restoration of the existing campaign context for offline validation.
  • New experiment tools: exact-map factorial/splice design, interaction contrasts, complete frontier analysis, frozen-score proposal/replay, sequential residual challenger, short-evaluation screening audit, and paired block comparisons. Failed requests consume budget without earning outcome credit, and validation/holdout labels cannot drive proposals.
  • Timing: stage/queue/process/artifact-lifetime observations without changing scratch ownership or concurrency defaults.
  • CI-discovered startup fix: render bracketed hardware/device names as literal text, with deterministic console-rendering regressions.

Review and handoff

Start with docs/discovery-handoff.md. It maps all twelve review findings to implemented work and remaining experiments, including the first bounded 24-recipe campaign, a 27-map oracle, finer architecture-specific patterns, paired evaluation, and throughput trials.

Detailed contracts: search, measurement evidence, prediction diagnostics, offline lab.

The rescue, expanded interior coverage, and production score dump are opt-in. Identity and query corrections are active by default. Existing untagged measurements remain historical and must be remeasured before they can count as current evidence.

Validation

Final head: 5caaafb3619bb29ddcd83279bea8f07feff8ccd4.

All checks passed on the final commit:

  • Linux Debug and Release; Windows Debug and Release.
  • Locked restore and builds with warnings as errors.
  • 222 .NET tests passed, 1 prepared-model smoke intentionally skipped in each configuration.
  • 35 Python tests passed.
  • Package creation and installed-package smoke checks passed in all four jobs.
  • Secret scan passed.

The local Release build also passed with zero warnings and errors, and the local Python suite passed. CI exposed a pre-existing bracketed hardware-name rendering failure; the follow-up commit fixes it and adds deterministic regressions. No real-model/GPU discovery campaign was run here.

Why draft

This is ready for code review and agent handoff; model-quality, warm-resume, topology, and throughput acceptance remain intentionally open. The lab is observed-pool research groundwork, not an exact production-selector replay or proof of new quality gains. No merge is requested.

This branch has not been deployed

No deployments
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