Add docstrings to refresh_stock_metadata functions#3
Merged
DevDizzle merged 1 commit intoJul 8, 2025
Merged
Conversation
DevDizzle
added a commit
that referenced
this pull request
Sep 9, 2025
…stock_metadata-functions Add docstrings to refresh_stock_metadata functions
DevDizzle
added a commit
that referenced
this pull request
Jun 4, 2026
Adversarial multi-agent audit (every finding re-verified vs code+BQ data) found 16 silent bugs. 13 fixed; 3 deferred (need PIT data/schema). Trigger: OKTA $127 untradeable-ghost pick. CRITICAL #1 (root cause): polygon_client stopped substituting day low/high for a missing bid/ask — that produced fake/0% spreads on ~43% of picks (718/1815 = 0.0), defeating the spread gate and feeding the judge "0.5% spread" ghosts. Missing quote -> NULL spread; chosen contract now carries a real spread. Enrichment spread gate loosened 0.08->0.30 (was filtering fake 0s; real spreads are wider). HIGH #2: divergence flip resolves BEFORE conviction sub-scores (was scoring flipped names on the abandoned side -> ~87% suppressed below MIN_SCORE). #5: judge prompt strips still-stale volume/OI/V-OI (keeps now-real spread). #8: technicals window bounded to scan_date not date.today() (was leaking next-day bars = lookahead). #6/#7/#10: signal-notifier fallback moneyness band restored + dead gates/docs cleaned. MED #9/#12/#13: trader symmetric slippage + stale-TIMEOUT + late-fill guards (removed EV-optimism). #11: empty judge batch re-queues instead of dropping 10 candidates. #14: in_top_5 is a real top-5. LOW #15: overnight_score fail-safe default. #16: greeks store raw with None preserved (delta no longer NULL->0.0). Deferred (separate pass): #3 OI frozen-snapshot, #4 volume frozen-cumulative (need Polygon flat files / day-bars), #15-full (schema add). See docs/DECISIONS/2026-06-04-pipeline-bug-fixes.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
Testing
python -m py_compile $(git ls-files '*.py')https://chatgpt.com/codex/tasks/task_e_686d58fc47dc8331a4e35bedd8e246db