Skip to content

fix(loops): normalize advisory deliverable fields — an authored omission cannot poison the next generation#261

Merged
drewstone merged 1 commit into
mainfrom
fix/advisory-field-normalization
Jun 11, 2026
Merged

fix(loops): normalize advisory deliverable fields — an authored omission cannot poison the next generation#261
drewstone merged 1 commit into
mainfrom
fix/advisory-field-normalization

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

The deeper cost run (GENS=3 POP=4) crashed at gen2 authoring with a delayed fuse: an authored body returned a StrategyResult without progression — advisory and unvalidated since #217 made score/resolved harness-owned — and the undefined rode through runBenchmark's cells into the losses table, where compactLosses threw on .map one full generation after the offending candidate ran.

  • Source fix: defineStrategy normalizes progression/completions/shots on the deliverable — no downstream consumer (losses, anytime curves, waterfalls) can ever see undefined advisory fields.
  • Depth: compactLosses tolerates absence regardless.
  • Test: a body returning only {score, resolved} yields a well-formed cell with the harness-verified score.

The run resumes from its gen0+gen1 ledger (third-generation-only re-pay) once the in-flight corpus A/B releases the gym. Suite 791 ✓.

…ion cannot poison the next generation

The deeper cost run crashed at gen2 authoring: an authored body returned a
StrategyResult without progression (advisory, unvalidated since #217 made
score/resolved harness-owned), the undefined rode through runBenchmark into
the losses table, and compactLosses threw on .map — killing the run a
generation AFTER the offending candidate ran. defineStrategy now normalizes
progression/completions/shots on the deliverable (the source fix);
compactLosses tolerates absence anyway (depth). Test: a body returning only
{score, resolved} yields a well-formed cell.

@tangletools tangletools left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Auto-approved PR — c4bb3bb8

Blanket team auto-approval is enabled for this reviewer service.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.

tangletools · auto-approval · reason: blanket_auto_approve · 2026-06-11T14:34:42Z

@drewstone drewstone merged commit 3816a4e into main Jun 11, 2026
1 check passed
@drewstone drewstone deleted the fix/advisory-field-normalization branch June 11, 2026 14:36
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