Skip to content

Add cost-to-go energy scorer for the verified solver (VSS3-02, SLM-70)#347

Merged
Tyler-R-Kendrick merged 1 commit into
mainfrom
claude/slm-70-solver-energy-scorer
Jul 18, 2026
Merged

Add cost-to-go energy scorer for the verified solver (VSS3-02, SLM-70)#347
Tyler-R-Kendrick merged 1 commit into
mainfrom
claude/slm-70-solver-energy-scorer

Conversation

@Tyler-R-Kendrick

@Tyler-R-Kendrick Tyler-R-Kendrick commented Jul 18, 2026

Copy link
Copy Markdown
Owner

VSS3-02 (SLM-70): cost-to-go energy scorer for the verified solver

The first learned model for the verified solver. Its only runtime authority is to order the exact live candidates from the CandidateRanker seam — it never defines membership, certifies support, suppresses UNKNOWN, or bypasses the verifier. Low energy is a ranking hint, never a correctness claim.

What's here (7 files, +636/−0, on current main)

  • src/slm_training/models/solver_energy.pyCandidateEnergyScorer (a separate adapter, not baked into the base state dict, so existing checkpoints load unchanged) + CandidateEnergyRanker (a CandidateRanker) that validates exactly one finite energy per live value and returns a permutation; any defect (count mismatch, duplicate, NaN, inf) triggers a counted deterministic identity fallback and never alters the hard domain. Versioned v1 work target log1p(expanded_nodes + w_v·verifier_calls + w_b·backtracks + w_d·decisions) over VSS3-01 candidate_cost rows; Huber regression only where cost_observed; pairwise ranking over same-state/hole pairs; UNKNOWN/censored masked; features are decision-time only (no witness/final text).
  • src/slm_training/models/twotower.py — 7 disabled-by-default solver_energy_* / solver_ranker config fields inserted after the VSS1-03 solver-certificate group; old configs load with defaults.
  • tests/test_models/test_solver_energy.py — 12 guarantee tests + a deterministic tiny fixture overfit.
  • Docs — VSS3-02 sections appended to verified-scope-solver.md, research-lineage.md (adapted EDLM/EBM, fidelity: adapted), and quality-experiment-matrix.md, plus a dated fixture note.

Reduced to exactly the in-scope VSS3-02 change and rebased on current main (which already carries VSS3-01's solver_supervision corpus this consumes) — the earlier branch's out-of-scope re-implementations of dsl/solver/*, arity, dashboard assets, and README/MODEL_CARD/pyproject/CI edits were dropped.

Honesty

Fixture overfit is wiring evidence only — no checkpoint trained, no ship gate touched, MODEL_CARD.md unchanged. Meaningful-parse is the primary metric and out of scope for this increment.

Verification

  • Torch-free gates on current main: ruff clean, compileall OK, repo_policy ok, git diff --check clean.
  • The 12 torch tests (tests/test_models/test_solver_energy.py) run in CI (torch is installed there). Consumed CandidateCostRow fields (remaining_expanded_nodes / remaining_verifier_calls / remaining_backtracks / remaining_decisions, cost_observed, censor_reason) verified present in main's solver_supervision.py.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
slm-training Ready Ready Preview, Comment Jul 18, 2026 6:42am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Tyler-R-Kendrick, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 20 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e49deb9f-bdb6-4247-88ed-ed66fbdaf843

📥 Commits

Reviewing files that changed from the base of the PR and between 6801097 and 37237ed.

📒 Files selected for processing (7)
  • docs/design/iter-vss3-02-solver-energy-20260718.md
  • docs/design/quality-experiment-matrix.md
  • docs/design/research-lineage.md
  • docs/design/verified-scope-solver.md
  • src/slm_training/models/solver_energy.py
  • src/slm_training/models/twotower.py
  • tests/test_models/test_solver_energy.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/slm-70-solver-energy-scorer

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Tyler-R-Kendrick
Tyler-R-Kendrick force-pushed the claude/slm-69-solver-supervision-corpus branch from 48e1401 to ad67509 Compare July 18, 2026 06:15
Base automatically changed from claude/slm-69-solver-supervision-corpus to main July 18, 2026 06:24
The first learned model for the verified solver: a small MLP over
(state, hole, candidate) features whose only runtime authority is to
ORDER the exact live candidates from the CandidateRanker seam. Low
energy is a ranking hint, never a correctness claim — it never defines
membership, certifies support, suppresses UNKNOWN, or bypasses the
verifier.

- models/solver_energy.py: CandidateEnergyScorer (kept as a separate
  adapter so existing checkpoints load unchanged) + CandidateEnergyRanker,
  which validates exactly one finite energy per live value and returns a
  permutation; any defect (count mismatch, duplicate, NaN, inf) triggers a
  counted deterministic identity fallback and never alters the hard domain.
  v1 work target log1p(expanded_nodes + w_v*verifier_calls +
  w_b*backtracks + w_d*decisions) over VSS3-01 candidate_cost rows; Huber
  regression only where cost_observed, pairwise ranking over
  same-state/hole pairs; UNKNOWN/censored masked.
- TwoTowerConfig: 7 disabled-by-default solver_energy_* / solver_ranker
  fields; old configs load with defaults.
- 12 guarantee tests + a deterministic tiny fixture overfit.

Fixture overfit is wiring evidence only — no checkpoint trained, no ship
gate touched, MODEL_CARD unchanged. Torch tests run in CI.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017NWyjZwGMUPHXZhtqQVzUJ
@Tyler-R-Kendrick
Tyler-R-Kendrick force-pushed the claude/slm-70-solver-energy-scorer branch from a7fc982 to 37237ed Compare July 18, 2026 06:41
@Tyler-R-Kendrick Tyler-R-Kendrick changed the title Add cost-to-go energy scorer for the verified solver (SLM-70) Add cost-to-go energy scorer for the verified solver (VSS3-02, SLM-70) Jul 18, 2026
@Tyler-R-Kendrick
Tyler-R-Kendrick merged commit aabe284 into main Jul 18, 2026
4 checks passed
@Tyler-R-Kendrick
Tyler-R-Kendrick deleted the claude/slm-70-solver-energy-scorer branch July 18, 2026 06:47
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.

2 participants