Repository navigation
fix: match Pi stock supervision tool headers - #75
Merged
Merged
Conversation
Pi 0.99.0 changed the header it draws for a tool that supplies no call renderer: the title now carries the call's arguments, as `key=value` pairs when collapsed and one `key: value` line per argument when expanded. The two branch supervision tools draw their own header, so a title-only literal matched stock on 0.87.1 and silently diverged on 0.99.1. Because CI pins 0.87.1, the pinned lane stayed green the whole time and the divergence only surfaced on a newer release. Pi ships the formatter as an internal `formatToolCallWithArgs` that its exports map does not publish, so restating the format here would just move the drift to the next release. Ask a stock `ToolExecutionComponent` for the header it builds instead, over the public constructor/updateArgs/setExpanded/render surface only, and fall back to the bare title if that ever throws. The probe definition takes `renderShell: "self"` and no `renderCall`, so the header lands in a plain container with no box framing or background and comes back verbatim. The new case installs both pinned releases side by side and requires byte-exact stock parity for both tools, collapsed and expanded, on each. The previous case could only prove parity against whichever release happened to be installed, which is why 0.87.1 alone never caught this. Verified to fail on 0.99.1 with the fix reverted and pass with it, and each case asserts a real stock header was produced so the comparison cannot pass vacuously.
Ivory2024
added a commit
that referenced
this pull request
Oct 7, 2026
* fix(pi): read the stock call header from Pi instead of restating it Pi 0.99.0 changed the header it draws for a tool that supplies no call renderer: the title now carries the call's arguments, as `key=value` pairs when collapsed and one `key: value` line per argument when expanded. The two branch supervision tools draw their own header, so a title-only literal matched stock on 0.87.1 and silently diverged on 0.99.1. Because CI pins 0.87.1, the pinned lane stayed green the whole time and the divergence only surfaced on a newer release. Pi ships the formatter as an internal `formatToolCallWithArgs` that its exports map does not publish, so restating the format here would just move the drift to the next release. Ask a stock `ToolExecutionComponent` for the header it builds instead, over the public constructor/updateArgs/setExpanded/render surface only, and fall back to the bare title if that ever throws. The probe definition takes `renderShell: "self"` and no `renderCall`, so the header lands in a plain container with no box framing or background and comes back verbatim. The new case installs both pinned releases side by side and requires byte-exact stock parity for both tools, collapsed and expanded, on each. The previous case could only prove parity against whichever release happened to be installed, which is why 0.87.1 alone never caught this. Verified to fail on 0.99.1 with the fix reverted and pass with it, and each case asserts a real stock header was produced so the comparison cannot pass vacuously. * no-mistakes(review): Check installed Pi pins before requiring npm * no-mistakes(document): Document Pi stock header compatibility * no-mistakes(lint): Fix ambiguous empty assignment in Pi compatibility test
Ivory2024
added a commit
that referenced
this pull request
Oct 7, 2026
* fix(pi): read the stock call header from Pi instead of restating it Pi 0.99.0 changed the header it draws for a tool that supplies no call renderer: the title now carries the call's arguments, as `key=value` pairs when collapsed and one `key: value` line per argument when expanded. The two branch supervision tools draw their own header, so a title-only literal matched stock on 0.87.1 and silently diverged on 0.99.1. Because CI pins 0.87.1, the pinned lane stayed green the whole time and the divergence only surfaced on a newer release. Pi ships the formatter as an internal `formatToolCallWithArgs` that its exports map does not publish, so restating the format here would just move the drift to the next release. Ask a stock `ToolExecutionComponent` for the header it builds instead, over the public constructor/updateArgs/setExpanded/render surface only, and fall back to the bare title if that ever throws. The probe definition takes `renderShell: "self"` and no `renderCall`, so the header lands in a plain container with no box framing or background and comes back verbatim. The new case installs both pinned releases side by side and requires byte-exact stock parity for both tools, collapsed and expanded, on each. The previous case could only prove parity against whichever release happened to be installed, which is why 0.87.1 alone never caught this. Verified to fail on 0.99.1 with the fix reverted and pass with it, and each case asserts a real stock header was produced so the comparison cannot pass vacuously. * no-mistakes(review): Check installed Pi pins before requiring npm * no-mistakes(document): Document Pi stock header compatibility * no-mistakes(lint): Fix ambiguous empty assignment in Pi compatibility test
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
A: pin Pi in ci.yml to 0.87.1 on main and land the header fix separately, unblocking both PRs. The header fix is the Pi supervision-branch extension's tool-call header: the branch supervision tools draw their own tool-call header instead of using Pi's stock one, and that header must render exactly as Pi's own stock renderer renders it, on both Pi 0.87.1 and Pi 0.99.1.
What Changed
fm_branch_outcomesandfm_branch_processedcall headers through Pi’s stockToolExecutionComponent, preserving Pi’s argument display in collapsed and expanded views while retaining a title fallback if rendering fails.Risk Assessment
✅ Low: The change is limited to deriving both supervision tool headers from Pi’s stock renderer and checking that output against both pinned releases; no source-backed defect was identified.
Testing
Ran the targeted branch-extension test file. Its installed Pi 0.84.1 was below the renderer comparison floor; the test separately installed and exercised Pi 0.87.1 and 0.99.1. Both branch supervision tools matched stock output in collapsed and expanded states on both releases. Captured the run log as evidence.
Evidence: Pi branch extension targeted run
Source: Pi branch extension targeted run
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
tests/fm-pi-branch-extension.test.sh:4751- If Node is present but npm is absent, this test returns successfully before checking whether the installed Pi package matches either pinned release. The suite can therefore report success without checking the required 0.87.1 and 0.99.1 compatibility matrix. Check any matching installed release before deciding what can be verified, and fail or explicitly mark the matrix unverified when neither pin can be exercised.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-pi-branch-extension.test.sh✅ **Document** - passed
✅ No issues found.
🔧 **Lint** - 1 issue found → auto-fixed ✅
🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Push** - passed
✅ No issues found.