Repository navigation
fix: match Pi 0.99 stock rendering for outcomes tool rows and hidden export messages - #46
Merged
Merged
Conversation
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
Said 2026-09-29: "Make sure to use the new opus 5.5 and sonnet 5.5 models and not the older 5.0 models." Standing ask from 2026-09-28: keep firstmate's quality and coding standards world-class and keep its CI green.
Context: firstmate CI installs the newest published Pi. Run https://github.com/TastyTom13/firstmate/actions/runs/36633482107 (PR 45, which changes only bin/fm-dod-lib.sh and tests/fm-brief.test.sh) fails two portable serial shards with
not ok - rendered export DOM violated the Calm conversation boundary(tests/fm-calm-pi-extension.test.sh) andnot ok - Pi outcomes rendering consumers must preserve stock behavior ... Calm-off ToolExecutionComponent rendering differs from Pi stock. That run used [email protected]. The last green main run used [email protected]. So Pi changed its stock rendering between those versions and the Calm extension or its tests no longer match. Every open firstmate PR and the next push to main will fail the same way until this is fixed.What Changed
.pi/extensions/fm-branch-supervision.ts:fm_branch_outcomesandfm_branch_processednow render their call row with the tool's arguments when the installed Pi does that (collapsedkey=valuepairs, expandedkey: valuelines). A new probe renders a stockToolExecutionComponentonce to detect this, so Calm-off output matches both Pi 0.99 and older Pi.tests/fm-calm-pi-extension.test.sh: the rendered-export check now accepts the synthetic-input text only inside ahook-message-hiddenblock, which Pi 0.99 emits fordisplay:falsecustom messages and hides by default. Any visiblehook-messageblock containing it still fails.docs/calm-mode-feasibility.md: the tool-row table entries for both tools now describe the call-argument probe.Risk Assessment
✅ Low: The change is small and confined to two Calm-off tool-call renderers and one export-DOM test check. The installed Pi here is 0.84.3, so I could not check the 0.99 format the code mirrors. The failing CI shards are the real check for that.
Testing
I installed the real Pi 0.99.1 (the version CI used) in a throwaway folder and built tmux locally so the full Pi end-to-end test could run. I ran both failing test files on the old commit and on the fix. The old commit failed with the same two errors as the CI run. The fix passes both. Pi 0.84.3 also passes. Temp folders are removed.
Evidence: Export DOM test, fix, Pi 0.99.1 with tmux
Source: Export DOM test, fix, Pi 0.99.1 with tmux
Evidence: Export DOM test, old commit, Pi 0.99.1 (fails)
Source: Export DOM test, old commit, Pi 0.99.1 (fails)
Evidence: Stock rendering test, fix, Pi 0.99.1
Source: Stock rendering test, fix, Pi 0.99.1
Evidence: Stock rendering test, old commit, Pi 0.99.1 (fails)
Source: Stock rendering test, old commit, Pi 0.99.1 (fails)
Evidence: Calm test, fix, Pi 0.84.3
Source: Calm test, fix, Pi 0.84.3
Evidence: Branch test, fix, Pi 0.84.3
Source: Branch test, fix, Pi 0.84.3
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.
FM_PI_PACKAGE_DIR=<pi 0.99.1> bash tests/fm-calm-pi-extension.test.shon fix (tmux + Chrome present): passsame command on 98fa108: fails with 'rendered export DOM violated the Calm conversation boundary'FM_PI_PACKAGE_DIR=<pi 0.99.1> bash tests/fm-pi-branch-extension.test.shon fix: passsame command on 98fa108: fails with 'Pi outcomes rendering consumers must preserve stock behavior'both test files on fix against Pi 0.84.3: pass✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
Built by: claude/sonnet at medium