Repository navigation
refactor(harness): write mikan tools as pi-durable tool registrations - #189
Merged
Merged
Conversation
Deploying mikan with
|
| Latest commit: |
0a15647
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://fee8f04c.mikan-1wv.pages.dev |
| Branch Preview URL: | https://refactor-durable-tool-regist.mikan-1wv.pages.dev |
Pi 1.0 moved tools to pi-durable, but mikan kept writing them as pi-agent-core AgentTools and adapted each one with adaptAgentTool, tagged with a marker so the session could tell the two shapes apart. Every tool, including platform tool packs, is now a ToolRegistration that reports progress with api.details and reads cancellation from its context, so the adapter and the marker are gone. pi-agent-core was then imported only for types that pi-ai already exports (Message, ModelThinkingLevel), so it is removed from the dependencies. Its only other reader was ARCHITECTURE.md.
geminixiang
force-pushed
the
refactor/durable-tool-registrations
branch
from
October 17, 2026 15:06
bf07ae2 to
0a15647
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.
Builds on #188 (merged).
Pi 1.0 moved tools to pi-durable, but mikan still wrote ~20 tools (core tools, GitHub and Slack packs) as pi-agent-core
AgentTools and adapted each withadaptAgentTool, tagged with a symbol marker so the session could tell the shapes apart. Every tool is now aToolRegistration: progress throughapi.details, cancellation fromcontext.abortSignal,control.terminatefor handoffs. The adapter, the marker, andMikanHarnessTool/MikanToolInputare gone.pi-agent-corewas then imported only for types pi-ai already exports (AgentMessage=Message,ThinkingLevel=ModelThinkingLevel), so it is removed fromdependencies. Readers checked:package.json,package-lock.json,ARCHITECTURE.md; no transitive dependent.Compatibility:
PlatformToolPack.toolsis nowToolRegistration[]. It is not in the package's public declarations (snapshot unchanged).Tests: tool unit tests call tools through the existing
callableTooltest helper. Two tests that covered only the removed adapter were deleted: the harness-tool marker after redaction, and the adapter dropping progresscontent, which no longer exists.Acceptance
tool-label-contractVerification
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).