Repository navigation
Description
Change
Move Docs Agent's WP Codebox pin from v0.34.0 (9fce8a758b44109b86da22db68a1b6c801bdd6bb) to v0.37.0, which picks up three runner fixes:
-
#2640: apply-back no longer rejects agent edits over whitespace. A trailing blank line at EOF had discarded a whole maintenance run.
-
#2641: failed runs print a
::errorannotation with the failure stage and reason instead of exiting 1 silently. -
#2642: a stale runner-owned publication branch with an open PR is replaced on the current base instead of refusing until a human rebases it.
-
#2643: optional
product_siterequest field plus a read-onlyproduct_page_viewtool, so the agent can view the running product (Let Docs Agent see the running product, not just its source #197).
Scope
Follow the previous pin bump (#196): update wp_codebox_release_ref and wp_codebox_workflow_ref in .github/workflows/maintain-docs.yml to the v0.37.0 tag commit (resolve it with git rev-list -n1 v0.37.0 in Automattic/wp-codebox). Then update everything the validators check:
tests/wp-codebox-release.fixture.json: tag, revision, producer revision, and the published asset digests fromgh release view v0.37.0 -R Automattic/wp-codebox --json assets.tests/validate-docs-agent-packages.php,tests/validate-wp-codebox-run-agent-task-contract.php,tests/validate-external-native-package-sources.php.README.mdand.github/workflows/README.md..github/workflows/validate.yml, if it references the tag.
Note any contract changes in the reusable run-agent-task workflow inputs between v0.34.0 and v0.37.0 and adapt to them.
Also expose an optional product_site input (a JSON string, default empty) on maintain-docs.yml. Forward it unchanged to WP Codebox's run-agent-task product_site input, and document it in the README inputs table with one sentence on when to use it: the agent can call product_page_view to check real screens. When the input is empty, behavior is unchanged.
Acceptance
- Every
php tests/*.phpvalidator passes. - No
v0.34.0/9fce8a758b44references remain outside historical notes.
AI disclosure: Claude (Anthropic) in the Pi coding agent (Franklin), directed by @chubes4, drafted this issue.
Activity
[-]Pin WP Codebox v0.36.3 (whitespace apply, failure annotations, stale branch replacement)[/-][+]Pin WP Codebox v0.37.0 and forward product_site[/+]chubes4 commentedon Dec 5, 2026
Cook
agent-task-9bb77a54-cb12-4f24-a64c-a66823559121stopped without a pull requestAttempt
agent-task-9bb77a54-cb12-4f24-a64c-a66823559121-attempt-1-ee667248Summary: Docs Agent was pinned to WP Codebox v0.34.0, so it missed v0.37.0's runner fixes: whitespace-tolerant apply-back,
::errorannotations on failed runs, and replacing stale publication branches. It also had no way to let the agent view the running product. This change pins v0.37.0 (470b3743deb3) and adds an optionalproduct_siteinput tomaintain-docs.yml. The input is passed unchanged to WP Codeboxrun-agent-task, so the agent can callproduct_page_viewto check real screens. When the input is empty, behavior is unchanged.What changed
maintain-docs.ymlandvalidate.ymlpoint at the v0.37.0 tag commit forwp_codebox_release_ref,wp_codebox_workflow_ref, and the producer checkout.product_siteworkflow input (JSON string, default empty) is passed unchanged to WP Codebox'sproduct_siteinput. This is the only caller-facing input change between v0.34.0 and v0.37.0.product_siteis passed through and documented, and that its default is empty.README.mddocumentsproduct_sitein the inputs table..github/workflows/README.mdrecords the new pin and the pass-through, and no longer ties app-token minting to a specific version.Why it stopped: deterministic gates rejected the candidate
Last gate:
gate-1accepted_inherited_failure — deterministic gate failed with exit code 1: for f in tests/*.php; do php "$f" || exit 1; doneAI assistance: Homeboy (roadie) / roadie · route cook-heavy · served claude-opus-5-5 wrote this report; Homeboy posted it unedited. A later attempt of this Cook updates this comment.