Skip to content

docs(debug-journal): a replay cannot test a fix whose inputs are built in fetch_sensor_data() - #5321

Closed
chalfontchubby wants to merge 1 commit into
mainfrom
docs/debug-journal-replay-fetch-state
Closed

chalfontchubby wants to merge 1 commit into
mainfrom
docs/debug-journal-replay-fetch-state

Conversation

@chalfontchubby

Copy link
Copy Markdown
Collaborator

Written by Claude, on behalf of @chalfontchubby.

Adds a note to tools/debug-journal.md, the developer and triage notes; it is not part of the published docs.

run_single_debug(..., redo=True) re-runs set_rate_thresholds() and the rate_scan_window() rescan on the rates stored in the dump, but it never calls fetch_sensor_data(). So any state that fetch builds alongside the rates is missing. Code that quietly falls back when that state is absent then behaves exactly like the code without the fix, and the result reads as "the fix doesn't work".

That happened twice on #5221 with #5163. rate_minmax_excluding_saving() needs rate_export_saving_minutes and rate_export_pre_saving, and only fetch fills those in. On a replay it falls back to plain rate_minmax(), so the Axle-boosted dump still gave main's 20.5p export threshold instead of the 19.9p the fix produces.

The note says to check that the replay log shows the value the fix should produce, and to prove the fix through the real fetch sequence or by rebuilding the missing state by hand.

🤖 Generated with Claude Code

…t in fetch_sensor_data()

run_single_debug(redo=True) re-runs set_rate_thresholds() on the dump's
rates but never calls fetch_sensor_data(), so state built there (e.g.
PR #5163's saving-minute snapshot) is empty and fallbacks run silently.
This produced two false "the fix doesn't work" results on GH#5221.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chalfontchubby chalfontchubby added the documentation Improvements or additions to documentation label Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant