Skip to content

Fix pi-rpc host runtime protocol dispatch#1662

Merged
christso merged 1 commit into
mainfrom
runtime-pi-rpc
Jul 5, 2026
Merged

Fix pi-rpc host runtime protocol dispatch#1662
christso merged 1 commit into
mainfrom
runtime-pi-rpc

Conversation

@christso

@christso christso commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Align pi-rpc with the installed Pi RPC JSONL protocol by sending type: \"prompt\" commands instead of JSON-RPC method: \"run\" requests.
  • Keep Pi RPC stdin open until agent_end or a prompt response failure, then close it so the host runtime can finish cleanly.
  • Build Pi RPC host commands/env the same way pi-cli does for local OpenAI-compatible endpoints, including OpenAI+base_url normalization to Pi's Azure-compatible provider path.
  • Preserve legacy parser tolerance while mapping current Pi command failures and assistant stopReason=error messages to target_task_failure.

Validation

  • bun test packages/core/test/evaluation/providers/pi-runtime.test.ts
  • bun --filter @agentv/core typecheck
  • bun node_modules/.bin/biome check packages/core/src/evaluation/providers/pi-process.ts packages/core/src/evaluation/providers/pi-rpc.ts packages/core/src/evaluation/providers/targets.ts packages/core/test/evaluation/providers/pi-runtime.test.ts
  • git diff --check
  • bun --filter @agentv/core build
  • Live host dogfood: bun apps/cli/src/cli.ts eval run .agentv/results/av-t2o5-5-inputs/live-marker.eval.yaml --targets .agentv/results/av-t2o5-5-inputs/targets.yaml --target pi-rpc-local --grader-target local-openai-grader --workers 1 --threshold 0.8 --keep-workspaces passed with run 2026-07-05T03-49-47-220Z.

Evidence

  • Prior red evidence: EntityProcess/agentv-private:evidence/av-y7eq-9-host-runtime-live-matrix commit f714ec1, failed run 2026-07-05T03-21-39-969Z, Unknown command: undefined.
  • Green evidence: EntityProcess/agentv-private:evidence/av-t2o5-5-pi-rpc-live commit 7417c402c62b7eb4a2bb2640c45dc327c3b063ce.

Bead

  • av-t2o5.5

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 29db577
Status: ✅  Deploy successful!
Preview URL: https://839d5b28.agentv.pages.dev
Branch Preview URL: https://runtime-pi-rpc.agentv.pages.dev

View logs

@christso christso merged commit bc2f3a3 into main Jul 5, 2026
8 checks passed
@christso christso deleted the runtime-pi-rpc branch July 5, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant