Repository navigation
Conversation
|
fm_hold_reason_decode_stream re-encoded the json snapshot through JSON::PP without ->canonical, so Perl's per-process hash randomization reordered object keys and the published home summary changed bytes between runs with identical state (for example landed[].completion flipped between date,verb and verb,date).
…in CI The key-order regression compared jq-normalized JSON, which re-serializes the summary instead of checking the published bytes; compare the raw fm-fleet-snapshot output directly (generated_epoch is already pinned by FM_SNAPSHOT_NOW). The macOS stock-Bash CI job counts snapshot/fleet-view passes exactly, so raise it from 18 to 19 for the new test.
luigia
force-pushed
the
home-summary-key-order
branch
from
October 3, 2026 13:01
e2b43b9 to
7396388
Compare
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.
Intent
Whenever a bug is found, fix it automatically.
The bug: fm_hold_reason_decode_stream builds its JSON with JSON::PP without ->canonical, so the published home summary has random key order and byte comparisons of it are flaky.
It was found by the worker that delivered #6464 (home-summary refresh speedup, which avoids refolding status history during home-summary refresh) on 2026-10-03.
What Changed
fm_hold_reason_decode_streamso unchanged home summaries remain byte-identical.Risk Assessment
✅ Low: Canonical encoding fixes randomized ordering at the shared decoder without changing JSON values; the behavioral regression and CI count update are narrowly scoped.
Testing
Targeted snapshot tests passed. Real isolated CLI publication reproduced two pre-fix byte orders and one stable post-fix output across 16 seeds, preserving completion and hold-reason semantics. Saved published JSON and transcripts; removed transient fixtures.
Evidence: Before/after publication transcript
Source: Before/after publication transcript
Evidence: Actual published home summary
Source: Actual published home summary
Evidence: Public backlog output with decoded and malformed reasons
Source: Public backlog output with decoded and malformed reasons
Evidence: Reproducible isolated CLI driver
Source: Reproducible isolated CLI driver
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
env -u FM_ROOT_OVERRIDE -u FM_STATE_OVERRIDE -u FM_DATA_OVERRIDE -u FM_CONFIG_OVERRIDE -u FM_PROJECTS_OVERRIDE TMPDIR="$PWD/.test-summary-live/tmp" /bin/bash tests/fm-fleet-snapshot-view.test.shpython3 ~/.no-mistakes/evidence/01M40X55R4W1PVBEV3HNFZBJ5B/drive-summary.py: real summary publication across 16 Perl hash seeds, before and after the decoder fix; exact snapshot/publication comparison; Unicode and malformed-reason checks.rm -rf .test-summary-live; git status --short: removed disposable test homes and baseline copy; worktree clean.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.