Skip to content

docs: add error pages for infrastructure_timeout and agent_process_failed#150

Open
hongyi-chen wants to merge 2 commits into
mainfrom
sync-error-docs/2026-05-27
Open

docs: add error pages for infrastructure_timeout and agent_process_failed#150
hongyi-chen wants to merge 2 commits into
mainfrom
sync-error-docs/2026-05-27

Conversation

@hongyi-chen
Copy link
Copy Markdown
Collaborator

Summary

Adds documentation pages for two platformerrors.go error codes that ship on the public Oz API but had no corresponding page on docs.warp.dev:

  • infrastructure_timeout — task forcibly terminated by the periodic stale-task job after exceeding the maximum allowed runtime.
  • agent_process_failed — agent process exited unexpectedly during task execution (after environment setup completed).

Both are platform errors (task state → ERROR), HTTP 500, not retryable, mirroring how they're declared in warp-server/logic/ai/ambient_agents/platformerrors/platformerrors.go (see NewInfrastructureTimeout and NewAgentProcessFailed).

Context

This is the docs.warp.dev (Astro Starlight) counterpart to the GitBook PR warpdotdev/gitbook#924. Astro Starlight is now the live docs source, so the same gap had to be filled here. Content follows existing error-page conventions (authentication-required.mdx, internal-error.mdx, environment-setup-failed.mdx) instead of the GitBook hint syntax / https://docs.warp.dev/... type URIs.

Bot review feedback from the GitBook PR is incorporated:

  • No em dashes in the procedural "How to resolve" steps.
  • Reworded the platform-vs-user-error callout on infrastructure_timeout to avoid implying the task is blameless ("enforced by Warp's infrastructure rather than by the task's own logic").
  • Added a related-page link to internal_error from both pages, and to environments from infrastructure_timeout.

Changes

  • src/content/docs/reference/api-and-sdk/troubleshooting/errors/agent-process-failed.mdx (new)
  • src/content/docs/reference/api-and-sdk/troubleshooting/errors/infrastructure-timeout.mdx (new)
  • src/content/docs/reference/api-and-sdk/troubleshooting/errors/index.mdx — list both under Platform errors
  • src/sidebar.ts — add to the Errors sidebar group after internal-error
  • vercel.json — add underscore→hyphen 308 redirects for each code (both with and without trailing slash), matching every other error code

Validation

  • python3 -c "import json; json.load(open('vercel.json'))" passes.
  • New error-page slugs match the canonical underscore codes from platformerrors.go.

Conversation: https://staging.warp.dev/conversation/dae12801-fa4e-406c-8d65-c8010ad4cc39
Run: https://oz.staging.warp.dev/runs/019e6b9f-8f5c-7dd1-bd37-e57a8c6b2d1d
This PR was generated with Oz.

…iled

These two platform error codes are defined in warp-server's
platformerrors.go but had no corresponding documentation on
docs.warp.dev. Add pages following the existing conventions:

- agent-process-failed.mdx: agent process exited unexpectedly during
  task execution (HTTP 500, not retryable, ERROR state)
- infrastructure-timeout.mdx: task forcibly terminated after exceeding
  the maximum allowed runtime (HTTP 500, not retryable, ERROR state)

Wire the pages into:
- The Errors sidebar group (src/sidebar.ts)
- The Platform errors list on the Errors overview index
- vercel.json redirects mapping the underscore form to the hyphen form
  (both with and without trailing slash), matching the pattern used by
  every other error code

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label May 27, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 27, 2026 10:56pm

Request Review

Audit pass following the existing error pages and the docs style guide:

- infrastructure_timeout: simplify the lead sentence, make the
  platform-vs-user-error callout less circular, add a concrete example
  for what 'task did not report a terminal status' looks like, and
  tighten the 'How to resolve' steps with specific things to look for
  in the environment configuration.
- agent_process_failed: clarify that this fires after environment setup
  has completed (so the distinction from environment_setup_failed is
  obvious from the lead), spell out which environment-setup steps the
  other error covers, and replace the vague 'check whether the prompt
  or environment is causing the agent to crash' with concrete triggers
  (large prompts, memory-heavy tools, degraded environment).

Also confirmed coverage is now 1:1 with platformerrors.go: all 18
ErrorCode constants have a matching .mdx page in the errors directory.

Co-Authored-By: Oz <oz-agent@warp.dev>
@hongyi-chen hongyi-chen marked this pull request as ready for review May 27, 2026 22:55
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 27, 2026

@hongyi-chen

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR adds documentation for the infrastructure_timeout and agent_process_failed API error codes, wires them into the errors index and sidebar, and adds underscore-to-hyphen redirects in vercel.json. The pages follow the existing error-page structure, the added links point to existing docs targets, and the redirect/sidebar changes match nearby patterns.

Concerns

  • No blocking concerns found.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@hongyi-chen hongyi-chen requested a review from rachaelrenk May 27, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant