Skip to content

fix: BEAM scorer + P2 export dual-review follow-ups - #228

Merged
fazpu merged 1 commit into
mainfrom
fix/beam-scorer-review-p0p1
Aug 7, 2026
Merged

fix: BEAM scorer + P2 export dual-review follow-ups#228
fazpu merged 1 commit into
mainfrom
fix/beam-scorer-review-p0p1

Conversation

@fazpu

@fazpu fazpu commented Aug 7, 2026

Copy link
Copy Markdown
Member

Problem

Dual review (Claude Fable + Codex Sol) of #226 found Accept-with-changes issues on the official BEAM scorer and a clear P2 hang root cause that still needed a code fix.

Scope

P2 hang (lab-verified)

  • Watermark/Entity/RELATES/IS_DOCUMENT export no longer depend on pathological memory_v1.entities_current / graph_edges_visible_history plans
  • SET LOCAL statement_timeout = '120s' inside graph_export
  • Lab re-run: P2 published in ~15s (Entity 774, RELATES 195)

Official scorer

  • Macro ability mean as headline; micro mean retained separately
  • Incremental report checkpoint after each item
  • Retry transient network/HTTP; metadata-only errors
  • Kendall τ-b both-tied pairs; fixture provenance; judge max_tokens=32k

Reviews checked in

  • design/reviews/REVIEW_claude-fable_beam_official_scorer_and_p2_hang_2026-08-07.md
  • design/reviews/REVIEW_codex-sol_beam_official_scorer_and_p2_hang_2026-08-07.md

Validation

  • uv run pytest src/tests/benchmarks/test_beam_official_score.py -q → 7 passed
  • Lab: project --plane p2 with patched projection.py → published

Contributor agreement

Apply Codex + Claude Accept-with-changes findings:

- P2 export: avoid pathological memory_v1.entities_current /
  graph_edges_visible_history plans; use base tables + TEMP graph_survivor;
  set LOCAL statement_timeout so hangs fail into mark_failed.
- Official scorer: macro ability mean, incremental report writes, retries on
  transient network/HTTP, no model/provider body leakage, Kendall τ-b tie fix,
  larger judge max_tokens, fixture provenance notice.
- Ops doc: safer cleanup SQL; record export rewrite as done.

Dual reviews: design/reviews/REVIEW_*_beam_official_scorer_and_p2_hang_2026-08-07.md
@fazpu
fazpu merged commit b4f40ee into main Aug 7, 2026
8 of 10 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