Repository navigation
fix: shorten parked and watch jobs in session-start records - #49
Merged
Merged
Conversation
…locked row details
…oritative contract
peterOC26
force-pushed
the
fm/fm-startup-record-held-compact-b1
branch
from
November 9, 2026 13:38
6f23989 to
360041d
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
Captain (Q1934 A, 2026-11-08, "Q1934 a") asked for a firstmate job that prints parked and watch jobs in the session-start record as a count plus one short line each, after the upstream firstmate update lands, so the main chat compacts less often. Measured 2026-11-08: the start-up record was 180 KB; the held list alone was 87 KB (216 rows, each hold reason in full).
What Changed
Risk Assessment
✅ Low: The change only alters how the startup digest renders backlog rows. I checked it against real tasks-axi 0.2.6 output: parked holds and captain holds whose reason starts with Watch or Wait are cut to one short line, their exact counts are printed, and every other hold, every in-flight row and every blocked row stays whole. Quoted and multi-blocker cells, encoded reasons and multibyte titles are handled correctly. The stored backlog is never modified.
Testing
The focused startup suite and isolated live CLI scenarios passed. Saved transcripts demonstrate compaction and preservation; the UTF-8 failure reproduced before the fix and passed afterward. Disposable labs and temporary executables were removed, leaving the worktree clean.
Evidence: Real tasks-axi startup record
Source: Real tasks-axi startup record
Evidence: Full watch-job details after compaction
Source: Full watch-job details after compaction
Evidence: UTF-8 boundary startup output
Source: UTF-8 boundary startup output
Evidence: UTF-8 regression reproduction
Source: UTF-8 regression reproduction
Evidence: Live measurements and preservation checks
Source: Live measurements and preservation checks
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.
bash -c '. tests/lib.sh; FM_TEST_BASE_PATH=$(fm_test_base_path_sans /usr/bin:/bin:/usr/sbin:/sbin tasks-axi quota-axi); export FM_TEST_BASE_PATH; bash tests/fm-session-start.test.sh'Seeded a disposable lab through installedtasks-axiusingbin/fm-tasks-axi.sh; ranbin/fm-session-start.sh --reemitin tasks-axi and manual modes.REUSE_SEEDED_BACKLOG=1 python3 ~/.no-mistakes/evidence/01M707X8CATVY2RTZPY1YDP8QC/drive-startup.pypython3 ~/.no-mistakes/evidence/01M707X8CATVY2RTZPY1YDP8QC/drive-utf8-regression.pyChecked emitted counts, identities, protected reasons, queued remainder, strict UTF-8 decoding, full-detail retrieval and byte-for-byte backlog preservation.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.