Skip to content

Pin WP Codebox v0.37.0 and forward product_site #198

Done

Description

@chubes4

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 ::error annotation 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_site request field plus a read-only product_page_view tool, 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 from gh 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.md and .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/*.php validator passes.
  • No v0.34.0 / 9fce8a758b44 references remain outside historical notes.

AI disclosure: Claude (Anthropic) in the Pi coding agent (Franklin), directed by @chubes4, drafted this issue.

Activity

  1. changed the title [-]Pin WP Codebox v0.36.3 (whitespace apply, failure annotations, stale branch replacement)[/-] [+]Pin WP Codebox v0.37.0 and forward product_site[/+] on Dec 5, 2026
  2. chubes4 commented on Dec 5, 2026

    @chubes4
    ContributorAuthor

    Cook agent-task-9bb77a54-cb12-4f24-a64c-a66823559121 stopped without a pull request

    Attempt agent-task-9bb77a54-cb12-4f24-a64c-a66823559121-attempt-1-ee667248

    Summary: Docs Agent was pinned to WP Codebox v0.34.0, so it missed v0.37.0's runner fixes: whitespace-tolerant apply-back, ::error annotations 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 optional product_site input to maintain-docs.yml. The input is passed unchanged to WP Codebox run-agent-task, so the agent can call product_page_view to check real screens. When the input is empty, behavior is unchanged.

    What changed

    • maintain-docs.yml and validate.yml point at the v0.37.0 tag commit for wp_codebox_release_ref, wp_codebox_workflow_ref, and the producer checkout.
    • New optional product_site workflow input (JSON string, default empty) is passed unchanged to WP Codebox's product_site input. This is the only caller-facing input change between v0.34.0 and v0.37.0.
    • The release fixture and validators now record the v0.37.0 tag, revision, and published asset digests. They also check that product_site is passed through and documented, and that its default is empty.
    • README.md documents product_site in the inputs table. .github/workflows/README.md records 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-1 accepted_inherited_failure — deterministic gate failed with exit code 1: for f in tests/*.php; do php "$f" || exit 1; done

    AI 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions