Conversation
JPeer264
added this pull request to stack #25002
October 2, 2026 13:14
Contributor
size-limit report 📦
|
JPeer264
removed this pull request from stack #25002
October 2, 2026 13:31
JPeer264
changed the base branch from
jp/flue-map-messages-conventions
to
jp/bun-conversation-id-integration
October 2, 2026 13:39
JPeer264
force-pushed
the
jp/pi-durable-instrumentation
branch
from
October 2, 2026 13:39
1dad424 to
91a0b35
Compare
JPeer264
added this pull request to stack #25004
October 2, 2026 13:57
pi-durable has no telemetry hooks, so `piDurableIntegration` wraps the `models` and `registry` passed to `Harness.open()`. Each run becomes its own `invoke_agent` trace with `chat` and `execute_tool` children, and a subagent run nests under the tool call that started it. Messages are mapped to the gen_ai conventions, and the system prompt and tools are read from pi-durable's positional system messages. Tool spans record the result the model receives. Failures pi-durable only reports, and faults of any task, are captured. Failures of the built-in coding tools are not, because they report expected results to the model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JPeer264
force-pushed
the
jp/pi-durable-instrumentation
branch
from
October 2, 2026 16:59
91a0b35 to
26d39c9
Compare
This branch has not been deployed
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.
Adds
piDurableIntegrationfor@earendil-works/pi-durable, Earendil's new durable agent harness. It is on by default in Node. Each run becomes its owninvoke_agenttrace withchatandexecute_toolchildren, and a subagent run nests under the tool call that started it.pi-durable has no telemetry hooks (
pi-telemetryexists, but no pi package emits spans through it yet), so the integration hooksHarness.open()and wraps themodelsandregistryit receives.Decisions worth a look:
pi.generationtask after every tool round, so no single task spans a run. The run span ends when the commit that removespi.live.rungoes through.gen_ai.conversation.idis<harness id>:<conversation id>. pi-durable numbers conversations per storage from 1, so the bare id would merge every root conversation into one. The cost is a new id after a restart, until pi-durable has a stable storage id.api.output()(all ofbash) and results anafterToolhook redacted.onReport(throwing hooks or sections) and faults of any task are captured. Throws from the built-incoding-toolsextension are not, becausebashthrows for every non-zero exit, a normal result for a coding agent. The span keeps its error status.Messages go through the pi-ai mapper from the Flue fix, and the system prompt and tools are replayed from pi-durable's positional system messages.
Not covered yet: deferred model responses, spans for tool calls pi-durable answers without running
execute(), runs interrupted byharness.close(), spans for custom tasks, agent names, and Cloudflare Durable Objects.🤖 Generated with Claude Code