You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tape): seed tape on startup to stop squeeze bursts, honor limits, debounce disk writes #77
On the first poll after app startup or session transition, st.hist is empty for every stock in the universe. In app/tape.py:282-286, any stock already up >= up_pct near HOD immediately fires squeeze alerts and Telegram pushes even if it gapped hours ago and is flat.
Start the Tape worker during a session where stocks are already up +12% and flat near HOD (change|5 = 0).
Observe immediate false Squeeze Alert - Up 10% in 5min triggers on the first tick.
Set retention_days = 1 or max_events = 500 in config and observe the backend ignores values below 4 days / 5000 events.
Expected Behavior
Seed the initial tape universe silently on the first poll of each session (preserving mid-session new-entry squeeze triggers), respect user-configured retention_days (>= 1) and max_events (>= 100), and debounce/throttle tape_history.json disk writes.
Operating System & Version
OS: Windows 11 x64 / macOS arm64 / Linux x86_64
Version: v2.12.0
Display / Scale: Verified via live Chrome CDP (1600x960) & local unit/backend suite
Logs & Additional Context
Backend reproduction confirmed flat gapped stock fired squeeze on first poll (events=1) and retention/max_events clamped up.
Summary of Changes: Added silent initial-poll universe seeding per session in app/tape.py to stop startup squeeze bursts, respected configured retention_days (>= 1) & max_events (>= 100), and debounced tape_history.json writes. Verified via unit tests.
Verification: compileall clean, 84/84 unit tests passing (including tests/test_audit_fixes.py), and live Chrome CDP verification passed.
This issue will automatically close upon PR #82 review and merge into main.
Activity
mlgitdev commentedon Dec 2, 2026
🚀 Resolution In Progress
A fix for this issue has been implemented and submitted in Pull Request #82 (
v2.12.1).fix/audit-remediation-67app/tape.pyto stop startup squeeze bursts, respected configuredretention_days(>= 1) &max_events(>= 100), and debouncedtape_history.jsonwrites. Verified via unit tests.compileallclean, 84/84 unit tests passing (includingtests/test_audit_fixes.py), and live Chrome CDP verification passed.This issue will automatically close upon PR #82 review and merge into
main.github-actions commentedon Dec 2, 2026
✅ Issue Validation Passed
fix(tape))This issue is well-structured and ready for work according to the Issue-First Protocol.