diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 53f2418..74ae919 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -16,12 +16,14 @@ The reusable workflow declares the expected typed review artifacts for Docs Agen The target repository grants `contents: write`, `pull-requests: write`, and `issues: write`. Docs Agent forwards the caller-scoped `${{ github.token }}` to WP Codebox for same-repository publication, so consumers do not configure `ACCESS_TOKEN`. `OPENAI_API_KEY` is an optional workflow secret and is required only for a live OpenAI run; skipped and dry-run calls do not require it. `EXTERNAL_PACKAGE_SOURCE_POLICY` remains a separate required v1 JSON secret. Migrate its value to the exact one-line JSON in the root README: it authorizes the selected Docs Agent package, the pinned Agents API component, the pinned PHP AI Client overlay, and the checksum-pinned OpenAI provider artifact. Both secrets are forwarded to WP Codebox without serialization into the task descriptor. -Docs Agent consumes the reusable WP Codebox workflow and helper implementation at immutable revision `823e68cbb180579cd9dfd7d861be7bdc4074ff91` and passes `wp_codebox_release_ref: v0.33.5` and `wp_codebox_workflow_ref: 823e68cbb180579cd9dfd7d861be7bdc4074ff91`. That revision is the commit the annotated `v0.33.5` tag resolves to, so the reusable workflow, its helper scripts, and the release tag all name the same producer code; the fixed Docs Agent package revision stays separate. WP Codebox checks that the helper checkout matches `wp_codebox_workflow_ref` and that its `package.json` version equals the release tag, then installs its runtime from that checkout. WP Codebox materializes the declared native runtime closure, executes the selected package, applies bounded workspace changes, runs verification, and publishes approved host changes. The v0.33.5 release assets are `wp-codebox-cli-linux-x64.tar.gz`, `wp-codebox-workspace-0.33.5.tgz`, and `wp-codebox.zip`; `tests/wp-codebox-release.fixture.json` records their published SHA-256 digests. +Docs Agent consumes the reusable WP Codebox workflow and helper implementation at immutable revision `4875fb1550a34e4f07c44cff20bad477b83115de` and passes `wp_codebox_release_ref: v0.33.6` and `wp_codebox_workflow_ref: 4875fb1550a34e4f07c44cff20bad477b83115de`. That revision is the commit the annotated `v0.33.6` tag resolves to, so the reusable workflow, its helper scripts, and the release tag all name the same producer code; the fixed Docs Agent package revision stays separate. WP Codebox checks that the helper checkout matches `wp_codebox_workflow_ref` and that its `package.json` version equals the release tag, then installs its runtime from that checkout. WP Codebox materializes the declared native runtime closure, executes the selected package, applies bounded workspace changes, runs verification, and publishes approved host changes. The v0.33.6 release assets are `wp-codebox-cli-linux-x64.tar.gz`, `wp-codebox-workspace-0.33.6.tgz`, and `wp-codebox.zip`; `tests/wp-codebox-release.fixture.json` records their published SHA-256 digests. Provider artifacts retain only allowlisted review artifacts, controlled workflow envelopes, and canonical runtime-source and seed provenance. WP Codebox uploads a reviewer-safe workflow-result projection: public control, verification, workspace-apply, publication, output-projection, access, failure, artifact-declaration, and canonical transcript-provenance fields remain, while raw `runtime_result`, `outputs.engine_data`, model/provider/tool payloads, source content, private paths, and secrets are excluded. Before persistence or upload, it sanitizes private runtime paths from nested values, object keys, diagnostics, and command arguments. WP Codebox captures one trusted canonical `codebox-transcript` through a pre-sanitization reviewer-evidence descriptor, validates its artifact-root containment, schema, digest, and size, then emits the compact reviewer transcript as a `wp-codebox/reviewer-agent-transcript/v1` projection. Before apply-back, it compares the seed identity with the host workspace identity; rejected patches preserve the expected and actual identities plus patch and changed-file evidence for upload. Its pre-redaction trusted apply input preserves machine-applicable patch bytes in a private channel that is removed before durable artifact sanitization, as fixed in [WP Codebox #1842](https://github.com/Automattic/wp-codebox/pull/1842). Lifecycle and downstream failures retain runtime evidence in their internal normalized failed result even when artifact preparation cannot complete. Diagnostic messages that name runtime classes remain reviewable, while PHP-shaped runtime source remains blocked. See [WP Codebox #1767](https://github.com/Automattic/wp-codebox/issues/1767), [WP Codebox #1814](https://github.com/Automattic/wp-codebox/issues/1814), [WP Codebox #1815](https://github.com/Automattic/wp-codebox/pull/1815), and [WP Codebox #1823](https://github.com/Automattic/wp-codebox/pull/1823). Successful canonical reviewer-evidence reference: [run `29350690551`](https://github.com/Automattic/build-with-wordpress/actions/runs/29350690551). The [hosted failure `29468956857`](https://github.com/Automattic/agents-api/actions/runs/29468956857) executed WP Codebox v0.12.20, published [Agents API #430](https://github.com/Automattic/agents-api/pull/430), then failed during upload preparation; it motivated #1814/#1815. Publication integrity snapshots exclude Git-ignored verification artifacts, such as pnpm's symlinked `node_modules` tree, and mutable `.codebox` runtime control files, while tracked or otherwise publishable symlinks stay rejected. Integrity failures report bounded added, modified, and deleted paths, and non-Git workspaces keep a bounded filesystem snapshot fallback. Canonical GitHub repository identity is compared case-insensitively, while pull-request URL, pull number, target binding, and API resolution checks stay strict. Successful pull-request verification returns `{ valid: true }` without a failure-only `error`. These came from [WP Codebox #1845](https://github.com/Automattic/wp-codebox/pull/1845), [#1848](https://github.com/Automattic/wp-codebox/pull/1848), [#1852](https://github.com/Automattic/wp-codebox/pull/1852), [#1875](https://github.com/Automattic/wp-codebox/pull/1875), and [#1885](https://github.com/Automattic/wp-codebox/pull/1885). +WP Codebox v0.33.6 reports why a failed agent runtime failed: every non-zero exit or unreadable native result now produces `failure` with `stage: agent`, a `code` and a `message`, and the canonical transcript plus `tool_observability` are uploaded on failure too ([WP Codebox #2590](https://github.com/Automattic/wp-codebox/pull/2590)). It also raises the native result bound from 1 MiB to 32 MiB and the tool-observability bound from 64 to 512 calls, because 40-turn runs exceeded both and lost all of their evidence. + WP Codebox v0.33.5 honors the caller's `max_turns` over an imported package's `default_max_turns` ([WP Codebox #2589](https://github.com/Automattic/wp-codebox/pull/2589)), so this workflow's `max_turns` input actually reaches the agent loop. A run that exhausts its turn budget while still calling tools now fails at `stage: agent` with `max_turns_exceeded` (`terminal_status: max_turns`, `agent_turn_limit` in the result) instead of finishing as a green no-op; partial work is not applied. WP Codebox v0.33.4 made the runner-workspace apply step observable; see [WP Codebox #2588](https://github.com/Automattic/wp-codebox/pull/2588) and [WP Codebox #2567](https://github.com/Automattic/wp-codebox/issues/2567). Earlier revisions could finish a run with agent writes that never reached the host workspace, and the uploaded transcript could be a stub. In v0.33.4 and later: diff --git a/.github/workflows/maintain-docs.yml b/.github/workflows/maintain-docs.yml index d54ca38..15a6854 100644 --- a/.github/workflows/maintain-docs.yml +++ b/.github/workflows/maintain-docs.yml @@ -2,7 +2,7 @@ name: Maintain Docs env: # Advance this revision and all package digests together when package bytes change. - DOCS_AGENT_PACKAGE_REVISION: f3d965758c6318bd900b32d7fb91ccae125c3204 + DOCS_AGENT_PACKAGE_REVISION: 667a3d7e43b938cae157235131da4462b09eebb5 # Advance independently when the post-command completion validator changes. DOCS_AGENT_COMPLETION_CONTRACT_REVISION: b136f9bc84e6f0ad9d5d0d5cdbb3df9c62e382e2 @@ -182,14 +182,14 @@ jobs: user:bootstrap) package_path="bundles/user-docs-agent/native/user-docs-bootstrap-agent.agent.json" agent_slug="user-docs-bootstrap-agent" - package_digest="sha256-bytes-v1:526ff81a024f75445ab44fcad16910c0b9b8f8765c3cba930490469eb1af74d3" + package_digest="sha256-bytes-v1:d22cf858b4413e150226989ff8cf253e2cfa7ef88b041d8ce14360f22df9d3a4" lane_requires_pr=true default_prompt="Bootstrap source-grounded product documentation for onboarding, setup, common tasks, expected outcomes, permissions, compatibility, troubleshooting, and FAQs." ;; user:maintenance) package_path="bundles/user-docs-agent/native/user-docs-maintenance-agent.agent.json" agent_slug="user-docs-maintenance-agent" - package_digest="sha256-bytes-v1:747de10fdb52d7c1543b404030e0e0a2604b6496e95d50143149f72c975a98fb" + package_digest="sha256-bytes-v1:c93ce43cd7e057759779d36499fd26de45f8c7d3395bbf08583bbc83121e80e6" lane_requires_pr=false default_prompt="Maintain source-grounded product documentation for onboarding, setup, common tasks, expected outcomes, permissions, compatibility, troubleshooting, and FAQs." ;; @@ -356,10 +356,10 @@ jobs: contents: write pull-requests: write issues: write - uses: Automattic/wp-codebox/.github/workflows/run-agent-task.yml@823e68cbb180579cd9dfd7d861be7bdc4074ff91 + uses: Automattic/wp-codebox/.github/workflows/run-agent-task.yml@4875fb1550a34e4f07c44cff20bad477b83115de with: - wp_codebox_release_ref: v0.33.5 - wp_codebox_workflow_ref: 823e68cbb180579cd9dfd7d861be7bdc4074ff91 + wp_codebox_release_ref: v0.33.6 + wp_codebox_workflow_ref: 4875fb1550a34e4f07c44cff20bad477b83115de external_package_source: ${{ needs.prepare.outputs.external_package_source }} runtime_sources: ${{ needs.prepare.outputs.runtime_sources }} workload_id: docs-agent-${{ inputs.audience }}-${{ inputs.run_kind }} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 8ed0a4f..80ccc9f 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v4 with: repository: Automattic/wp-codebox - ref: 823e68cbb180579cd9dfd7d861be7bdc4074ff91 + ref: 4875fb1550a34e4f07c44cff20bad477b83115de path: .wp-codebox - name: Validate Docs Agent env: diff --git a/README.md b/README.md index 4fa3fe5..bdbefc7 100644 --- a/README.md +++ b/README.md @@ -139,9 +139,9 @@ Docs Agent declares the review artifacts it expects the runner to materialize as `maintain-docs.yml` writes `expected_artifacts` and `artifact_declarations` into a portable Docs Agent recipe and exposes the same declaration objects as `declared_artifacts_json`. The runtime declaration for `docs_agent_completion_report` remains `required: false` because WP Codebox may evaluate runtime-level required artifacts before post-command validation. The final completion drift entry is mandatory and declares `{name,type,path}`; after deterministic host validation, the validator atomically writes canonical JSON to `.codebox/agent-task-artifacts/docs-agent-completion-report.json`, and WP Codebox stages that declared command artifact for reviewers. -The reusable workflow and helper implementation are pinned to WP Codebox `v0.33.5`: `wp_codebox_release_ref: v0.33.5` and `wp_codebox_workflow_ref` both resolve to the tag commit `823e68cbb180579cd9dfd7d861be7bdc4074ff91`. This producer revision is independent of the fixed Docs Agent package revision. +The reusable workflow and helper implementation are pinned to WP Codebox `v0.33.6`: `wp_codebox_release_ref: v0.33.6` and `wp_codebox_workflow_ref` both resolve to the tag commit `4875fb1550a34e4f07c44cff20bad477b83115de`. This producer revision is independent of the fixed Docs Agent package revision. -WP Codebox v0.33.5 uploads a reviewer-safe workflow-result projection with public control, workspace-apply, and publication fields plus canonical transcript provenance. It excludes raw `runtime_result`, `outputs.engine_data`, model/provider/tool payloads, source content, private paths, secrets, Git-ignored verification artifacts such as pnpm's symlinked `node_modules` tree, and mutable `.codebox` runtime control files. Tracked or otherwise publishable symlinks remain rejected. Integrity failures retain bounded added, modified, and deleted path evidence, and non-Git workspaces retain a bounded filesystem snapshot fallback. Canonical GitHub repository identity is compared case-insensitively while pull-request URL syntax, pull number, target binding, and API resolution remain strict. The canonical `codebox-transcript` remains the bounded tool-observability surface: its pre-sanitization reviewer-evidence descriptor records the trusted artifact-relative path, schema, verified source digest, and size, which the uploader revalidates before producing the `wp-codebox/reviewer-agent-transcript/v1` projection. Since v0.33.5 that projection decodes the runtime output, so it includes tool observability and the content-free sandbox write ledger instead of a stub. Before apply-back, WP Codebox validates that the runner seed and host workspace identities match; rejected patches retain identity, patch, and changed-file evidence for review. The pre-redaction trusted apply input fixed by [WP Codebox #1842](https://github.com/Automattic/wp-codebox/pull/1842) retains machine-applicable patch bytes privately, then removes them before durable artifact sanitization. +WP Codebox v0.33.6 uploads a reviewer-safe workflow-result projection with public control, workspace-apply, and publication fields plus canonical transcript provenance. It excludes raw `runtime_result`, `outputs.engine_data`, model/provider/tool payloads, source content, private paths, secrets, Git-ignored verification artifacts such as pnpm's symlinked `node_modules` tree, and mutable `.codebox` runtime control files. Tracked or otherwise publishable symlinks remain rejected. Integrity failures retain bounded added, modified, and deleted path evidence, and non-Git workspaces retain a bounded filesystem snapshot fallback. Canonical GitHub repository identity is compared case-insensitively while pull-request URL syntax, pull number, target binding, and API resolution remain strict. The canonical `codebox-transcript` remains the bounded tool-observability surface: its pre-sanitization reviewer-evidence descriptor records the trusted artifact-relative path, schema, verified source digest, and size, which the uploader revalidates before producing the `wp-codebox/reviewer-agent-transcript/v1` projection. Since v0.33.6 that projection decodes the runtime output, so it includes tool observability and the content-free sandbox write ledger instead of a stub. Before apply-back, WP Codebox validates that the runner seed and host workspace identities match; rejected patches retain identity, patch, and changed-file evidence for review. The pre-redaction trusted apply input fixed by [WP Codebox #1842](https://github.com/Automattic/wp-codebox/pull/1842) retains machine-applicable patch bytes privately, then removes them before durable artifact sanitization. The workflow result records the runner-workspace apply outcome as `workspace_apply` (`wp-codebox/runner-workspace-apply-outcome/v1`): applied, rejected, and unapplied paths plus write-tool call counts. Sandbox and host now share one writable-path glob matcher, so `docs/**` and `docs/**/*.md` behave the same on both sides. If the agent made successful write calls but the canonical patch declared no changes, the run fails at `stage: apply` with `writes-not-applied` instead of passing as a no-op. See [WP Codebox #2588](https://github.com/Automattic/wp-codebox/pull/2588) and [WP Codebox #2567](https://github.com/Automattic/wp-codebox/issues/2567). @@ -237,7 +237,7 @@ Docs Agent has one canonical architecture: five standalone native Agents API pac - `bundles/user-docs-agent/native/user-docs-maintenance-agent.agent.json` - `bundles/skills-agent/native/skills-maintenance-agent.agent.json` -These five `.agent.json` files are the complete executable package surface. Each package is the sole executable instruction authority for its lane. The reusable workflow maps `audience` and `run_kind` to exactly one package and its canonical agent slug; it does not select a separate manifest, flow, pipeline, or memory envelope. Every descriptor uses the package-source revision `f3d965758c6318bd900b32d7fb91ccae125c3204`, independently of the revision that invokes the reusable workflow, and supplies a byte-level `sha256-bytes-v1` digest. +These five `.agent.json` files are the complete executable package surface. Each package is the sole executable instruction authority for its lane. The reusable workflow maps `audience` and `run_kind` to exactly one package and its canonical agent slug; it does not select a separate manifest, flow, pipeline, or memory envelope. Every descriptor uses the package-source revision `667a3d7e43b938cae157235131da4462b09eebb5`, independently of the revision that invokes the reusable workflow, and supplies a byte-level `sha256-bytes-v1` digest. Package updates advance the package-source revision and all five declared digests atomically. The immutable-source validator reads each package blob from that Git revision, recomputes its digest and canonical slug, and rejects a descriptor that does not match those historical bytes. diff --git a/bundles/user-docs-agent/native/user-docs-bootstrap-agent.agent.json b/bundles/user-docs-agent/native/user-docs-bootstrap-agent.agent.json index 906dee7..8106c81 100644 --- a/bundles/user-docs-agent/native/user-docs-bootstrap-agent.agent.json +++ b/bundles/user-docs-agent/native/user-docs-bootstrap-agent.agent.json @@ -2,8 +2,8 @@ "schema_version": 1, "bundle_slug": "user-docs-bootstrap-agent", "bundle_version": "0.1.0", - "source_ref": "Automattic/docs-agent@f3d965758c6318bd900b32d7fb91ccae125c3204", - "source_revision": "f3d965758c6318bd900b32d7fb91ccae125c3204", + "source_ref": "Automattic/docs-agent@667a3d7e43b938cae157235131da4462b09eebb5", + "source_revision": "667a3d7e43b938cae157235131da4462b09eebb5", "agent": { "agent_slug": "user-docs-bootstrap-agent", "agent_name": "User Docs Bootstrap Agent", @@ -150,7 +150,7 @@ "meta": { "source_type": "runtime-agent-package", "source_package": "user-docs-agent", - "source_version": "f3d965758c6318bd900b32d7fb91ccae125c3204", + "source_version": "667a3d7e43b938cae157235131da4462b09eebb5", "role": "user-docs-bootstrap", "runtime": "agents-api-native-chat", "default_provider": "openai", diff --git a/bundles/user-docs-agent/native/user-docs-maintenance-agent.agent.json b/bundles/user-docs-agent/native/user-docs-maintenance-agent.agent.json index 76458ca..53271b5 100644 --- a/bundles/user-docs-agent/native/user-docs-maintenance-agent.agent.json +++ b/bundles/user-docs-agent/native/user-docs-maintenance-agent.agent.json @@ -2,8 +2,8 @@ "schema_version": 1, "bundle_slug": "user-docs-maintenance-agent", "bundle_version": "0.1.0", - "source_ref": "Automattic/docs-agent@02e01e6d72ee158e45413185c32fcf30a5a04724", - "source_revision": "02e01e6d72ee158e45413185c32fcf30a5a04724", + "source_ref": "Automattic/docs-agent@667a3d7e43b938cae157235131da4462b09eebb5", + "source_revision": "667a3d7e43b938cae157235131da4462b09eebb5", "agent": { "agent_slug": "user-docs-maintenance-agent", "agent_name": "User Docs Maintenance Agent", @@ -35,7 +35,7 @@ "meta": { "source_type": "runtime-agent-package", "source_package": "user-docs-agent", - "source_version": "02e01e6d72ee158e45413185c32fcf30a5a04724", + "source_version": "667a3d7e43b938cae157235131da4462b09eebb5", "role": "user-docs-maintenance", "runtime": "agents-api-native-chat", "default_provider": "openai", diff --git a/ci/docs-agent-runner-recipe.json b/ci/docs-agent-runner-recipe.json index 56bea06..604cf38 100644 --- a/ci/docs-agent-runner-recipe.json +++ b/ci/docs-agent-runner-recipe.json @@ -5,7 +5,7 @@ "docsAgent": { "externalPackageSource": { "repository": "Automattic/docs-agent", - "revision": "f3d965758c6318bd900b32d7fb91ccae125c3204", + "revision": "667a3d7e43b938cae157235131da4462b09eebb5", "path": "bundles/technical-docs-agent/native/technical-docs-maintenance-agent.agent.json", "digest": "sha256-bytes-v1:975c7b0a0a7aff52897c52be5ac903a7fb110ea3c33e16227f8694c74c932519" }, diff --git a/examples/runner-recipe.example.json b/examples/runner-recipe.example.json index 942053e..8d6bc4d 100644 --- a/examples/runner-recipe.example.json +++ b/examples/runner-recipe.example.json @@ -5,7 +5,7 @@ "docsAgent": { "externalPackageSource": { "repository": "Automattic/docs-agent", - "revision": "f3d965758c6318bd900b32d7fb91ccae125c3204", + "revision": "667a3d7e43b938cae157235131da4462b09eebb5", "path": "bundles/technical-docs-agent/native/technical-docs-maintenance-agent.agent.json", "digest": "sha256-bytes-v1:975c7b0a0a7aff52897c52be5ac903a7fb110ea3c33e16227f8694c74c932519" }, diff --git a/tests/native-agent.validate-package-spec.json b/tests/native-agent.validate-package-spec.json index 4b1bcfa..2305ad4 100644 --- a/tests/native-agent.validate-package-spec.json +++ b/tests/native-agent.validate-package-spec.json @@ -83,7 +83,7 @@ "user-docs-bootstrap-agent.agent.json": { "package": "user-docs-agent", "agent_slug": "user-docs-bootstrap-agent", - "source_revision": "f3d965758c6318bd900b32d7fb91ccae125c3204", + "source_revision": "667a3d7e43b938cae157235131da4462b09eebb5", "required_tools": ["get_github_file", "workspace_read", "workspace_grep", "workspace_write", "workspace_git_status", "workspace_git_diff"], "permitted_workspace_tools": ["workspace_show", "workspace_ls", "workspace_read", "workspace_grep", "workspace_write", "workspace_edit", "workspace_apply_patch", "workspace_git_status", "workspace_git_diff"], "required_tool_call_rule": { @@ -103,7 +103,7 @@ "user-docs-maintenance-agent.agent.json": { "package": "user-docs-agent", "agent_slug": "user-docs-maintenance-agent", - "source_revision": "02e01e6d72ee158e45413185c32fcf30a5a04724", + "source_revision": "667a3d7e43b938cae157235131da4462b09eebb5", "required_tools": ["get_github_file", "workspace_read", "workspace_grep", "workspace_edit", "workspace_git_status", "workspace_git_diff"], "permitted_workspace_tools": ["workspace_show", "workspace_ls", "workspace_read", "workspace_grep", "workspace_write", "workspace_edit", "workspace_apply_patch", "workspace_git_status", "workspace_git_diff"], "instructions_must_contain": ["non-technical product documentation", "maintenance pass", "work page by page", "product-facing evidence", "docs/user/", "consumer-declared writable paths", "no_changes", "required documentation write", "workspace_git_status", "workspace_git_diff"] diff --git a/tests/reusable-workflow-empty-called-workflow-context.fixture.json b/tests/reusable-workflow-empty-called-workflow-context.fixture.json index 0e5ab9f..3a086fb 100644 --- a/tests/reusable-workflow-empty-called-workflow-context.fixture.json +++ b/tests/reusable-workflow-empty-called-workflow-context.fixture.json @@ -3,5 +3,5 @@ "called_workflow_context": { "job_workflow_sha": "" }, - "expected_package_revision": "f3d965758c6318bd900b32d7fb91ccae125c3204" + "expected_package_revision": "667a3d7e43b938cae157235131da4462b09eebb5" } diff --git a/tests/validate-docs-agent-packages.php b/tests/validate-docs-agent-packages.php index 26828a2..52dde6d 100644 --- a/tests/validate-docs-agent-packages.php +++ b/tests/validate-docs-agent-packages.php @@ -45,7 +45,7 @@ $assert( 'docs-agent/runner-recipe/v1' === ( $recipe['schema'] ?? null ), 'Runner recipe must use the portable Docs Agent runner recipe schema.' ); $expected_package_source = array( 'repository' => 'Automattic/docs-agent', - 'revision' => 'f3d965758c6318bd900b32d7fb91ccae125c3204', + 'revision' => '667a3d7e43b938cae157235131da4462b09eebb5', 'path' => 'bundles/technical-docs-agent/native/technical-docs-maintenance-agent.agent.json', 'digest' => 'sha256-bytes-v1:975c7b0a0a7aff52897c52be5ac903a7fb110ea3c33e16227f8694c74c932519', ); @@ -73,10 +73,10 @@ $assert( str_contains( $maintain_docs_workflow, 'The host generates and stages the completion report from caller inputs, Git, and filesystem checks' ), 'maintain-docs.yml must make host-owned completion generation explicit.' ); $assert( ! str_contains( $maintain_docs_workflow, 'DOCS_AGENT_COMPLETION_REPORT' ), 'maintain-docs.yml must not request model-authored completion reports.' ); -$wp_codebox_producer_revision = '823e68cbb180579cd9dfd7d861be7bdc4074ff91'; +$wp_codebox_producer_revision = '4875fb1550a34e4f07c44cff20bad477b83115de'; $generic_codebox_agent_task_workflow = 'uses: Automattic/wp-codebox/.github/workflows/run-agent-task.yml@' . $wp_codebox_producer_revision; $assert( str_contains( $maintain_docs_workflow, $generic_codebox_agent_task_workflow ), 'maintain-docs.yml must call the immutable generic Codebox agent-task workflow candidate.' ); -$assert( str_contains( $maintain_docs_workflow, 'wp_codebox_release_ref: v0.33.5' ), 'maintain-docs.yml must pass the matching WP Codebox release tag.' ); +$assert( str_contains( $maintain_docs_workflow, 'wp_codebox_release_ref: v0.33.6' ), 'maintain-docs.yml must pass the matching WP Codebox release tag.' ); $assert( str_contains( $maintain_docs_workflow, 'wp_codebox_workflow_ref: ' . $wp_codebox_producer_revision ), 'maintain-docs.yml must execute helpers from the accepted producer revision.' ); $assert( str_contains( $maintain_docs_workflow, '--arg writablePaths "$INPUT_WRITABLE_PATHS"' ), 'maintain-docs.yml must include writable paths in the portable recipe.' ); @@ -103,7 +103,7 @@ foreach ( array( 'Docs Agent Runner Recipe', 'portable recipe', 'Docs Agent owns the native package' ) as $migration_note_text ) { $assert( str_contains( $workflow_readme, $migration_note_text ), "Workflow README missing agent runtime note: {$migration_note_text}" ); } -$assert( str_contains( $workflow_readme, 'v0.33.5' ), 'Workflow README must record the WP Codebox release tag.' ); +$assert( str_contains( $workflow_readme, 'v0.33.6' ), 'Workflow README must record the WP Codebox release tag.' ); $assert( str_contains( $workflow_readme, 'Diagnostic messages that name runtime classes remain reviewable' ), 'Workflow README must document diagnostic-versus-source detection.' ); $assert( str_contains( $workflow_readme, 'allowlisted review artifacts' ), 'Workflow README must document the WP Codebox upload allowlist.' ); $assert( str_contains( $workflow_readme, 'normalized failed result' ), 'Workflow README must document normalized WP Codebox failures.' ); diff --git a/tests/validate-external-native-package-sources.php b/tests/validate-external-native-package-sources.php index 71d7f95..32d1fc9 100644 --- a/tests/validate-external-native-package-sources.php +++ b/tests/validate-external-native-package-sources.php @@ -30,12 +30,12 @@ return $contents; }; -$package_revision = 'f3d965758c6318bd900b32d7fb91ccae125c3204'; +$package_revision = '667a3d7e43b938cae157235131da4462b09eebb5'; $packages = array( 'technical:bootstrap' => array( 'path' => 'bundles/technical-docs-agent/native/technical-docs-bootstrap-agent.agent.json', 'slug' => 'technical-docs-bootstrap-agent', 'digest' => '21b4efe1323ace3fd9c445c3eae36d42c128bc1e3d2dd0b575b89ecb38b02eae' ), 'technical:maintenance' => array( 'path' => 'bundles/technical-docs-agent/native/technical-docs-maintenance-agent.agent.json', 'slug' => 'technical-docs-maintenance-agent', 'digest' => '975c7b0a0a7aff52897c52be5ac903a7fb110ea3c33e16227f8694c74c932519' ), - 'user:bootstrap' => array( 'path' => 'bundles/user-docs-agent/native/user-docs-bootstrap-agent.agent.json', 'slug' => 'user-docs-bootstrap-agent', 'digest' => '526ff81a024f75445ab44fcad16910c0b9b8f8765c3cba930490469eb1af74d3' ), - 'user:maintenance' => array( 'path' => 'bundles/user-docs-agent/native/user-docs-maintenance-agent.agent.json', 'slug' => 'user-docs-maintenance-agent', 'digest' => '747de10fdb52d7c1543b404030e0e0a2604b6496e95d50143149f72c975a98fb' ), + 'user:bootstrap' => array( 'path' => 'bundles/user-docs-agent/native/user-docs-bootstrap-agent.agent.json', 'slug' => 'user-docs-bootstrap-agent', 'digest' => 'd22cf858b4413e150226989ff8cf253e2cfa7ef88b041d8ce14360f22df9d3a4' ), + 'user:maintenance' => array( 'path' => 'bundles/user-docs-agent/native/user-docs-maintenance-agent.agent.json', 'slug' => 'user-docs-maintenance-agent', 'digest' => 'c93ce43cd7e057759779d36499fd26de45f8c7d3395bbf08583bbc83121e80e6' ), 'skills:maintenance' => array( 'path' => 'bundles/skills-agent/native/skills-maintenance-agent.agent.json', 'slug' => 'skills-maintenance-agent', 'digest' => '0f8d35fe0026aa62b9ddf2e86c4f9432b4d8aae90757dfbaf334d4a0671fb8a3' ), ); diff --git a/tests/validate-wp-codebox-run-agent-task-contract.php b/tests/validate-wp-codebox-run-agent-task-contract.php index 6c3464a..c3a0694 100644 --- a/tests/validate-wp-codebox-run-agent-task-contract.php +++ b/tests/validate-wp-codebox-run-agent-task-contract.php @@ -58,10 +58,10 @@ $published_assets = $release['published_assets'] ?? null; $assert( is_array( $published_assets ), 'WP Codebox release fixture must record published release assets.' ); $assert( array( - 'wp-codebox-cli-linux-x64.tar.gz' => 'sha256:98ecf24593e9d0e5d01826e6327702e7f30ad8a0e133d630d35a71c61b628260', - 'wp-codebox-workspace-0.33.5.tgz' => 'sha256:3a6ecdd5e1a3ba93544fc8e3ffbf8895f3312cddf10e921aab776b50ec1f1f15', - 'wp-codebox.zip' => 'sha256:2e35008606ca08de9b0aa86a52da7f167973dae098fe0ce3b6d5c6fd6fc418b6', -) === $published_assets, 'WP Codebox release fixture must retain the published v0.33.5 asset digests.' ); + 'wp-codebox-cli-linux-x64.tar.gz' => 'sha256:8f63a453ac3ac5a96b49c467a1b94c1aaa92829ee5d57cac8ddf1f2b5be06fe6', + 'wp-codebox-workspace-0.33.6.tgz' => 'sha256:da7dbc7c5249e84a521d4c3b06a10e81a0b83432933f1a0aee9677ba67d331cb', + 'wp-codebox.zip' => 'sha256:2edb4394ffa54cc42d603506630bc9825bc5dce0b22261c6c04778640f5f7f56', +) === $published_assets, 'WP Codebox release fixture must retain the published v0.33.6 asset digests.' ); $run = $release['run'] ?? null; $assert( is_string( $run ) && preg_match( '/^\d+$/', $run ) === 1, 'WP Codebox release fixture must retain the regression run reference.' ); $diagnostic_regression_run = $release['diagnostic_regression_run'] ?? null; @@ -245,7 +245,7 @@ $assert( isset( $caller_inputs['external_package_source'] ), 'Docs Agent must provide the required external package descriptor.' ); $assert( ! isset( $caller_inputs['agent_bundle'] ), 'Docs Agent must not pass the removed agent_bundle input.' ); -$assert( str_contains( $workflow, 'DOCS_AGENT_PACKAGE_REVISION: f3d965758c6318bd900b32d7fb91ccae125c3204' ), 'Docs Agent must use the fixed native package source revision.' ); +$assert( str_contains( $workflow, 'DOCS_AGENT_PACKAGE_REVISION: 667a3d7e43b938cae157235131da4462b09eebb5' ), 'Docs Agent must use the fixed native package source revision.' ); $assert( ! str_contains( $workflow, 'github.job_workflow_sha' ), 'Docs Agent must not depend on unavailable called-workflow provenance.' ); preg_match( "/runtime_sources='(?[^']+)'/", $workflow, $runtime_sources_match ); diff --git a/tests/wp-codebox-release.fixture.json b/tests/wp-codebox-release.fixture.json index 57451a8..5d65ec4 100644 --- a/tests/wp-codebox-release.fixture.json +++ b/tests/wp-codebox-release.fixture.json @@ -1,12 +1,12 @@ { - "tag": "v0.33.5", - "revision": "823e68cbb180579cd9dfd7d861be7bdc4074ff91", - "producer_revision": "823e68cbb180579cd9dfd7d861be7bdc4074ff91", - "package_version": "0.33.5", + "tag": "v0.33.6", + "revision": "4875fb1550a34e4f07c44cff20bad477b83115de", + "producer_revision": "4875fb1550a34e4f07c44cff20bad477b83115de", + "package_version": "0.33.6", "published_assets": { - "wp-codebox-cli-linux-x64.tar.gz": "sha256:98ecf24593e9d0e5d01826e6327702e7f30ad8a0e133d630d35a71c61b628260", - "wp-codebox-workspace-0.33.5.tgz": "sha256:3a6ecdd5e1a3ba93544fc8e3ffbf8895f3312cddf10e921aab776b50ec1f1f15", - "wp-codebox.zip": "sha256:2e35008606ca08de9b0aa86a52da7f167973dae098fe0ce3b6d5c6fd6fc418b6" + "wp-codebox-cli-linux-x64.tar.gz": "sha256:8f63a453ac3ac5a96b49c467a1b94c1aaa92829ee5d57cac8ddf1f2b5be06fe6", + "wp-codebox-workspace-0.33.6.tgz": "sha256:da7dbc7c5249e84a521d4c3b06a10e81a0b83432933f1a0aee9677ba67d331cb", + "wp-codebox.zip": "sha256:2edb4394ffa54cc42d603506630bc9825bc5dce0b22261c6c04778640f5f7f56" }, "run": "29350690551", "diagnostic_regression_run": "29307978522",