fix(preprocess): recover markdown-wrapped ticker hints#109
Merged
Conversation
keli-wen
marked this pull request as ready for review
July 15, 2026 02:33
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
*/**emphasis decoration on a scan-only copy before extracting exchange-qualified ticker hints.content_hash, and document identity semantics.(NASDAQ:\n\n[PODD](...))representation, plus a bounded live recall control that samples up to 25 PR Newswire articles with an independent oracle.Root Cause and Controls
The extractor tests only covered ideal plain text while the article boundary supplies cleaned Markdown. The existing live verifier stopped after RSS and listing discovery, so it never exercised article representation or ticker-hint recall.
This change adds two executable controls: an offline fixture gate requiring full recall for single-line links, multiline links, bold, and italic forms without mutating stored content; and a daily live gate requiring 100% recall for the first supported exchange-coded symbol in each sampled group. A successfully parsed sample with zero supported symbols reports
SKIPand passes neutrally, avoiding false failures on thin-volume windows.Related Issue
Closes #107
Verification
bash scripts/verify.sh— 291 tests passed; 88.55% coverage; format, lint, typing, and import contracts passed.python scripts/verify_news_e2e.py— 1,102 observations discovered; 25/25 articles parsed; 15/15 expected ticker hints recovered (100% recall).python examples/preprocess/01_news_pr_wire.py— stored Markdown retained andCCLextracted.Checklist
type(scope): summary.bash scripts/verify.shpasses.