fix(extraction): smooth heading-density score term with sqrt#86
Merged
Conversation
The 2026-07-06 oracle-gap diagnostic (notes/selector-oracle-gap- diagnostic.md) showed heading_score's linear density term with a 0.25 cap creates an all-or-nothing cliff that drives 57.7% of wrong candidate picks among selectable candidates. sqrt dampening (cap 0.35, weight 40) was the winning variant (V1) of a 4-variant offline matrix re-scored over all 1,497 WCXB pages: +0.005 full-set F1, +0.024 on the 487-page scoring-failure bucket, all 7 page types net-positive, only 43 cheap regressions (F1 -5.3 vs +12.9 gained). Combining with length-score dampening (V3) measured strictly worse than V1 alone. Gates: WCXB end-to-end 0.809 -> 0.814 (matches offline prediction); parity 14/14 develop-passing cases (hada_news fails identically on develop - live front-page drift); coding shard 24/24.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
One-line rescoring change in
_score_candidate: the heading-density term's linear ramp with a 0.25 cap created an all-or-nothing cliff that the 2026-07-06 oracle-gap diagnostic identified as the dominant cause (57.7%) of wrong candidate picks among selectable candidates. Replaced with sqrt dampening (cap 0.35, weight 40) — the winning variant (V1) of a 4-variant offline matrix re-scored over all 1,497 WCXB dev pages. Combining with length-score dampening (V3) measured strictly worse than V1 alone; a nav/link-density penalty (V4) was inert.Gates
hada_newsfails identically on develop — live front-page drift, pre-existingDiagnostic + variant matrix details:
notes/selector-oracle-gap-diagnostic.md(local). Remaining oracle gap (~53% of the original 0.068) is the records-sentinel forfeit gate — separate follow-up (Fix A), not touched here.🤖 Generated with Claude Code