Repository navigation
refactor(harness): return Pi's tool result shape from mikan tools - #188
Merged
Merged
Conversation
Pi 1.2 renamed a tool result's content to output. mikan kept its own MikanToolResult with content, converted Pi's sandbox tool results into it, and converted every result back before registering the tool. Tools now return Pi's ToolExecutionResult directly, and both conversions are gone.
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.
Pi 1.2 renamed a tool result's
contenttooutput. mikan keptMikanToolResultwithcontent, converted Pi's sandbox tool results into it, and converted every result back (toPiTool) before registering. Tools now return Pi'sToolExecutionResultdirectly; both conversions are gone.Risk:
ToolExecutionResultis a weak type, so TypeScript accepts a result that still sayscontent, and Pi then shows the retainedoutput()text instead. Reverting the subagent tool'soutputfails 13 subagent tests, so the suite catches this.The published declaration surface (
public-apisnapshot) is unchanged.Acceptance
Verification
slack-e2e.yml) not yet run: this changes the run loop and its tools, so it is on the Slack message path; they wait for approval.Research:
docs/research/pi-1.3-retirement-2026-10.md(added in #186).