Skip to content

fix(regimes): keep ETH timeline consistent with updated prices - #69

Merged
jackseg80 merged 1 commit into
mainfrom
codex/eth-regime-history-sync-20261002
Oct 2, 2026
Merged

jackseg80 merged 1 commit into
mainfrom
codex/eth-regime-history-sync-20261002

Conversation

@jackseg80

@jackseg80 jackseg80 commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

ETH can show Expansion in its current card while the historical chart stays Bull Market for the same day. The four-hour history cache did not detect revised closes, and a one-day chart zone had identical start/end coordinates.

Invalidate cached histories when the actual public price history changes, including revisions on the same date. Give daily zones their full daily interval and mark the latest observation with its regime color. Show the actual BTC/ETH rule trigger in the comparison table and align the expansion description with the implemented +15%/30d threshold.

Validation: 26 focused backend assertions passed; the isolated five-test run passed with global-suite coverage disabled (the initial focused invocation hit the whole-repository coverage threshold). Three chart component tests and targeted Ruff passed. Real robot2 observations reproduce the stale cached Bull Market vs fresh Expansion mismatch for 2026-10-02. No training, private portfolio exports or dependency changes.

Production verification on robot2: authenticated desktop 1440px and mobile 390px show current/comparison/latest history all Expansion on 2026-10-02, the latest blue marker is visible, the daily zone has nonzero width, and the actual recovery rule replaces the hard-coded Bear criterion. No JS errors or horizontal overflow; Docker healthy, HTTP /healthz 200, zero restarts; private CSV/cash/configuration and runtime mounts/env/network aliases preserved. Previous container retained for rollback.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@jackseg80
jackseg80 merged commit c213986 into main Oct 2, 2026
3 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