Skip to content

Commit 41db530

Browse files
authored
Pin stable Docs Agent provenance (#440)
1 parent ca089ce commit 41db530

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ jobs:
5353
uses: actions/checkout@v6.0.3
5454
with:
5555
repository: Automattic/docs-agent
56-
ref: a39d9db230eb9e0b72ed84465f4d61bd8dda1bab
56+
ref: d1bf324154b4604099ae3209f64519386caf1f48
5757
path: .docs-agent-producer
5858

5959
- name: Checkout WP Codebox producer schema
6060
uses: actions/checkout@v6.0.3
6161
with:
6262
repository: Automattic/wp-codebox
63-
ref: 12a5bb19a97b89d0a78b502fc71adede5b122359
63+
ref: 0227ca7551d8cd98f14242b31e142b50f78dff13
6464
path: .wp-codebox-producer
6565

6666
- name: Set up PHP

.github/workflows/docs-agent.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020
jobs:
2121
docs-agent:
2222
name: Maintain Technical Documentation
23-
uses: Automattic/docs-agent/.github/workflows/maintain-docs.yml@a39d9db230eb9e0b72ed84465f4d61bd8dda1bab
23+
uses: Automattic/docs-agent/.github/workflows/maintain-docs.yml@d1bf324154b4604099ae3209f64519386caf1f48
2424
with:
2525
audience: technical
2626
run_kind: maintenance

docs/docs-agent-workflow.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Agents API publishes its canonical documentation updates through the repository-
77
The consumer workflow is named **Docs Agent** and dispatches the reusable Docs Agent workflow from Automattic/docs-agent at the exact pinned revision:
88

99
```text
10-
Automattic/docs-agent/.github/workflows/maintain-docs.yml@a39d9db230eb9e0b72ed84465f4d61bd8dda1bab
10+
Automattic/docs-agent/.github/workflows/maintain-docs.yml@d1bf324154b4604099ae3209f64519386caf1f48
1111
```
1212

1313
The workflow contract is intentionally narrow:
@@ -33,21 +33,21 @@ DOCS_AGENT_DIR=/path/to/docs-agent WP_CODEBOX_DIR=/path/to/wp-codebox php tests/
3333

3434
The required producer checkouts are:
3535

36-
- Docs Agent revision `a39d9db230eb9e0b72ed84465f4d61bd8dda1bab`.
37-
- WP Codebox reusable-workflow producer revision `12a5bb19a97b89d0a78b502fc71adede5b122359`; packaged runtime release `v0.12.29` resolves to `bc982947ec33c78160125026e16d357b7ece3ea1`.
36+
- Docs Agent revision `d1bf324154b4604099ae3209f64519386caf1f48`.
37+
- WP Codebox reusable-workflow producer revision `0227ca7551d8cd98f14242b31e142b50f78dff13`; packaged runtime release `v0.12.29` resolves to `bc982947ec33c78160125026e16d357b7ece3ea1`.
3838

3939
At that Docs Agent revision, the `technical:maintenance` lane maps to the native package:
4040

4141
```text
4242
bundles/technical-docs-agent/native/technical-docs-maintenance-agent.agent.json
4343
```
4444

45-
with agent slug `technical-docs-maintenance-agent`, package-source revision `85f0d162a7d499fdc1286891371342727d084c88`, package digest `sha256-bytes-v1:975c7b0a0a7aff52897c52be5ac903a7fb110ea3c33e16227f8694c74c932519`, and `lane_requires_pr=false`.
45+
with agent slug `technical-docs-maintenance-agent`, package-source revision `a39d9db230eb9e0b72ed84465f4d61bd8dda1bab`, package digest `sha256-bytes-v1:975c7b0a0a7aff52897c52be5ac903a7fb110ea3c33e16227f8694c74c932519`, and `lane_requires_pr=false`.
4646

4747
Docs Agent then calls WP Codebox's reusable workflow:
4848

4949
```text
50-
Automattic/wp-codebox/.github/workflows/run-agent-task.yml@12a5bb19a97b89d0a78b502fc71adede5b122359
50+
Automattic/wp-codebox/.github/workflows/run-agent-task.yml@0227ca7551d8cd98f14242b31e142b50f78dff13
5151
```
5252

5353
The contract test verifies that this WP Codebox producer exposes the `wp-codebox/reusable-workflow-interface/v1` schema and preserves the release, external-package, runtime-source, target repository, writable path, verification, drift-check, publication, access-repository, and allowed-repository chain. The completion contract requires one evidence-backed report item for the `workflow-run-awaiter` source delta and rejects a no-change disposition until that known drift is documented. WP Codebox returns the reviewer-safe result projection and stages the validated completion report as a declared command artifact.

tests/docs-agent-native-workflow-contract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
declare( strict_types=1 );
1414

15-
const AGENTS_API_DOCS_AGENT_REVISION = 'a39d9db230eb9e0b72ed84465f4d61bd8dda1bab';
15+
const AGENTS_API_DOCS_AGENT_REVISION = 'd1bf324154b4604099ae3209f64519386caf1f48';
1616
const AGENTS_API_WP_CODEBOX_RELEASE_REF = 'v0.12.29';
17-
const AGENTS_API_WP_CODEBOX_PRODUCER_REVISION = '12a5bb19a97b89d0a78b502fc71adede5b122359';
17+
const AGENTS_API_WP_CODEBOX_PRODUCER_REVISION = '0227ca7551d8cd98f14242b31e142b50f78dff13';
1818

1919
$root = dirname( __DIR__ );
2020
$failures = array();

0 commit comments

Comments
 (0)