Skip to content

[Agents] Explain how parked Pi tool calls wait and wake - #35537

Merged
ben-reitz merged 4 commits into
productionfrom
agents/pi-park-docs
Nov 25, 2026
Merged

ben-reitz merged 4 commits into
productionfrom
agents/pi-park-docs

Conversation

@ben-reitz

@ben-reitz ben-reitz commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follows up review feedback on #35498: "park" is a new concept for most readers, and the Pi harness page showed the return shape before explaining what it does.

  • Explains parking before the code: a tool returns a "tool park" (ToolPark) instead of a result, Pi stores it with the call, and execute() runs again with the same arguments when the signal or deadline arrives.
  • Adds two diagrams: the park-and-wake round trip, and which lines of execute() each run reaches.
  • Splits the example into three steps and replaces the terminology table with short notes on the two shapes, gates, nested calls, status and invalid_park.
  • Updates the Pi 1.6 changelog entry to say "tool park" and adds the main diagram.

Checked against @earendil-works/pi-durable 1.6.0.

Documentation checklist

@github-actions github-actions Bot added product:changelog product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. labels Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Changelog updates

Check: this PR edits published changelog posts. RSS subscribers are not notified about edits. If readers need to know about a change, add an updates entry to the post's frontmatter. If the change is minor, no action is needed.

  • src/content/changelog/agents/2026-11-20-pi-harness-pi-1-6.mdx

Each updates entry is listed on the post and sent to RSS feeds as a new item:

updates:
  - date: YYYY-MM-DDTHH:MM:00Z
    summary: What changed and what readers should do.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://agents-pi-park-docs.previews.developers.cloudflare.com (commit 11db1ca)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://a8a0510f.previews.developers.cloudflare.com 11db1ca 2026-11-23T17:37:05.713Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://43f9690a.previews.developers.cloudflare.com ad43923 2026-11-23T16:07:09.298Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://256567c4.previews.developers.cloudflare.com 6b4b524 2026-11-23T11:01:22.713Z Visit the dashboard ↗

@ben-reitz
ben-reitz marked this pull request as ready for review November 23, 2026 11:27
@ben-reitz
ben-reitz requested review from a team, irvinebroque and rita3ko as code owners November 23, 2026 11:27
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

AI Review

✅ Reviewed 11db1ca · 1 finding · incremental

👉 Fix in your agent 👈
Fix the following review findings in PR #35537 (https://github.com/cloudflare/cloudflare-docs/pull/35537).

Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification.
- If you disagree, explain why.
- If you need clarification before deciding, ask those questions.
- Then share your plan for which issues to tackle and in what order.

After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.

The comment must come before the commit because the next review reads PR comments.

## Style Guide
- S-019b4277 | src/content/docs/agents/harnesses/pi/index.mdx:482 | Contraction `doesn't` in prose
  The writing style rules require contractions in prose to be expanded, so `doesn't` needs to be written as `does not`.

Style Guide

  • src/content/docs/agents/harnesses/pi/index.mdx:482 · Contraction doesn't in prose

    The writing style rules require contractions in prose to be expanded, so doesn't needs to be written as does not.

Not reviewed (2)
  • src/assets/images/agents/pi-tool-park-runs.svg — excluded path or binary file
  • src/assets/images/agents/pi-tool-park.svg — excluded path or binary file
Commands
  • /review Run a review now.
  • /full-review Review the entire PR diff.
  • /disable-auto-review Stop automatic reviews.
  • /rebase Rebase against production.

@ben-reitz
ben-reitz added this pull request to the merge queue Nov 25, 2026
Merged via the queue into production with commit c053ec2 Nov 25, 2026
13 checks passed
@ben-reitz
ben-reitz deleted the agents/pi-park-docs branch November 25, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. product:changelog size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants