Repository navigation
fix: stop a colon in a status tag value from hanging the live-board snapshot - #72
Merged
Merged
Conversation
…ken that strips nothing
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
Stop a colon inside a status tag value (such as a PR URL) from hanging status_last_meaningful_event and freezing the live-board snapshot; the tag loop now ends when a token strips nothing, with a regression test.
What Changed
status_last_meaningful_eventinbin/fm-classify-lib.shused to loop forever on a status line whose tag value contained a colon, for example[pr=https://...], so the live-board snapshot froze. The tag-parse loop now stops when a token strips nothing from the line, and that line is not counted as a tag line.tests/fm-live-board-snapshot.test.sh. It appends a status line with a PR URL in a tag and runs--live-board-inputwith a 30s timeout. It then checks that the last meaningful event is still the earlier note.🤖 Generated with Claude Code
Risk Assessment
✅ Low: The change adds a one-line guard to the tag loop. It fires only when the bracket case invents a closing
]that is not in the head, which happens exactly when the head split at the first colon cuts a tag value. The documented status format puts[pr=<url>]after the colon, so dropping these head-tag lines does not hide real board events, and the regression test would time out without the fix.Testing
I ran the targeted live-board snapshot test, which drives the real fleet
--live-board-inputCLI against a fixture home. It passes on the fix. With the pre-fix lib swapped in it hangs until the 30s timeout and fails, so the test reproduces the bug. I then called the parser directly with adversarial inputs: every call returned at once. A line whose tag value holds a colon is skipped as a non-tag line, so the earlier event is kept. Normal tag lines are still returned as the latest event. There is no UI change, so there are no screenshots; the evidence is test logs and a function probe transcript.Evidence: Regression test after fix (pass)
Source: Regression test after fix (pass)
Evidence: Regression test against pre-fix lib (hang -> fail)
Source: Regression test against pre-fix lib (hang -> fail)
Evidence: Direct parser probe with colon-bearing tags
Source: Direct parser probe with colon-bearing tags
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
bin/fm-classify-lib.sh:318- A status line whose tag value holds a colon (such as a PR URL) is now skipped as a non-tag line, not parsed, so that event (for example 'PR opened') never becomes the last meaningful event. This matches the stated intent and the test's assertion; parsing URL-valued tags would be a separate change.bash tests/fm-live-board-snapshot.test.shon target commit 2c67c5b (exit 0, all ok, including the new URL-tag case)bash tests/fm-live-board-snapshot.test.shwith bin/fm-classify-lib.sh temporarily swapped to base 9695b55 (exit 1: 'not ok - a status line with a colon in a tag value hung or failed the live-board snapshot'), file then restored, worktree cleanDirect probe: sourced bin/fm-classify-lib.sh and called status_last_meaningful_event undertimeout 10on a PR-URL tag line, several colon-bearing tags, a plain numeric tag and a plain k=v tag line✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.