Skip to content

Commit 494ca4c

Browse files
authored
Remove legacy Data Machine Docs Agent bundles (#136)
1 parent 5b7028e commit 494ca4c

27 files changed

Lines changed: 85 additions & 892 deletions

.github/workflows/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
The consumer workflow supports separate lanes for technical docs, user docs, and live skills maintenance. Use `audience: skills` with skills/package writable paths instead of broad docs paths.
66

7+
The canonical execution architecture consists of exactly five native Agents API packages: technical bootstrap, technical maintenance, user bootstrap, user maintenance, and skills maintenance. Each `.agent.json` package is the sole executable instruction authority for its lane; `maintain-docs.yml` selects one immutable package without a separate manifest, flow, pipeline, or memory envelope.
8+
79
Schedule skills upkeep separately from docs upkeep. The skills lane should use a dedicated branch such as `docs-agent/skills-upkeep`, skill/package writable paths, verification commands, and drift checks through the portable recipe.
810

911
When validation setup, verification commands, or drift checks are needed, pass them through the reusable workflow inputs above. `validation_dependencies` is an optional caller-owned command that runs before verification during a live execution. The reusable workflow includes those executable inputs in the portable recipe and keeps the target repository as the writable Docs Agent workspace.
@@ -22,4 +24,6 @@ The recipe boundary covers standalone native package selection, complete native
2224

2325
Native package selection is expressed through recipe `docsAgent.externalPackageSource`. Workspace boundaries are expressed through recipe `runner` fields so agents remain workspace editors while caller-owned execution handles sandboxing and publication handoff.
2426

25-
Run `php tests/validate-docs-agent-bundle.php` after workflow changes so workflow routing and runner config stay aligned.
27+
Direct consumers of the removed legacy manifests, flows, pipelines, or memory envelopes must migrate to the corresponding native `.agent.json` package. Existing `maintain-docs.yml` consumers already select native packages and are unaffected.
28+
29+
Run `php tests/validate-docs-agent-packages.php` after workflow changes so package structure, workflow routing, and runner config stay aligned.

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99

1010
jobs:
1111
test:
12-
name: Validate bundles and native imports
12+
name: Validate native packages and imports
1313
runs-on: ubuntu-24.04
1414
steps:
1515
- name: Check out Docs Agent
@@ -29,9 +29,9 @@ jobs:
2929
token: ${{ github.token }}
3030
persist-credentials: false
3131

32-
- name: Run structural, link, and native importer tests
32+
- name: Run package, link, and native importer tests
3333
run: |
34-
php tests/validate-docs-agent-bundle.php
34+
php tests/validate-docs-agent-packages.php
3535
php tests/validate-external-native-package-sources.php
3636
php tests/repair-docs-links-smoke.php
3737
AGENTS_API_DIR="$GITHUB_WORKSPACE/agents-api" php tests/native-agent-import.php

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
env:
2424
WP_CODEBOX_DIR: ${{ github.workspace }}/.wp-codebox
2525
run: |
26-
php tests/validate-docs-agent-bundle.php
26+
php tests/validate-docs-agent-packages.php
2727
php tests/validate-external-native-package-sources.php
2828
php tests/validate-wp-codebox-run-agent-task-contract.php
2929
php tests/repair-docs-links-smoke.php

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,19 +180,23 @@ Run skills upkeep as its own scheduled lane with `verification_commands`, `drift
180180

181181
## Native Packages
182182

183-
Docs Agent ships standalone native Agents API packages selected by the reusable workflow:
183+
Docs Agent has one canonical architecture: five standalone native Agents API packages selected by the reusable workflow:
184184

185185
- `bundles/technical-docs-agent/native/technical-docs-bootstrap-agent.agent.json`
186186
- `bundles/technical-docs-agent/native/technical-docs-maintenance-agent.agent.json`
187187
- `bundles/user-docs-agent/native/user-docs-bootstrap-agent.agent.json`
188188
- `bundles/user-docs-agent/native/user-docs-maintenance-agent.agent.json`
189189
- `bundles/skills-agent/native/skills-maintenance-agent.agent.json`
190190

191-
The reusable workflow maps `audience` and `run_kind` to exactly one package and its canonical agent slug. Every descriptor uses the package-source revision `7b2df969c34de112ec7ad13189ba94226a7f76f3`, independently of the revision that invokes the reusable workflow, and supplies a byte-level `sha256-bytes-v1` digest.
191+
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 `7b2df969c34de112ec7ad13189ba94226a7f76f3`, independently of the revision that invokes the reusable workflow, and supplies a byte-level `sha256-bytes-v1` digest.
192192

193193
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.
194194

195-
Each lane also ships native Agents API runtime packages for direct import through `wp_agent_import_runtime_bundles()`: technical docs bootstrap and maintenance, user docs bootstrap and maintenance, and skills maintenance. These packages retain the same source-grounded workspace-only editing boundary and required workspace-write gate as their corresponding bundle lanes.
195+
All five packages support direct import through `wp_agent_import_runtime_bundles()` and retain the source-grounded workspace-only editing boundary and required workspace-write gate.
196+
197+
### Compatibility Impact
198+
199+
Direct consumers of the removed legacy `manifest.json`, `flows/`, `pipelines/`, or memory envelopes must migrate to the corresponding native `.agent.json` package listed above. Consumers of `maintain-docs.yml` already use these native packages and require no workflow migration.
196200

197201
## Workflow Operation
198202

@@ -215,7 +219,7 @@ For skills PRs, also confirm the live instructions match current upstream tool b
215219
## Validation
216220

217221
```bash
218-
php tests/validate-docs-agent-bundle.php
222+
php tests/validate-docs-agent-packages.php
219223
php tests/validate-external-native-package-sources.php
220224
php tests/repair-docs-links-smoke.php
221225
WP_CODEBOX_DIR=/path/to/wp-codebox php tests/validate-wp-codebox-run-agent-task-contract.php
@@ -231,4 +235,4 @@ AGENTS_API_DIR=/path/to/agents-api php tests/native-agent-import.php
231235

232236
It imports every native package through `wp_agent_import_runtime_bundles()`, verifies registration and preserved write-gate defaults, and invokes the default native chat handler far enough to resolve each registered agent. It intentionally fails when `AGENTS_API_DIR` is unavailable rather than treating an unexecuted importer as a passing test. It does not execute a model turn because the packages intentionally leave provider/model selection to the caller.
233237

234-
The `Docs Agent Tests` GitHub Actions workflow runs on pull requests and pushes. It fetches Docs Agent history so it can run the immutable native package source validator, then runs the structural bundle validator, docs-link repair smoke test, and native importer integration test against `Automattic/agents-api` at `fbd5641d412af76a1b8288426a577e750838b4be`, the merged commit from [Agents API #425](https://github.com/Automattic/agents-api/pull/425).
238+
The `Docs Agent Tests` GitHub Actions workflow runs on pull requests and pushes. It fetches Docs Agent history so it can run the immutable native package source validator, then runs the structural package validator, docs-link repair smoke test, and native importer integration test against `Automattic/agents-api` at `fbd5641d412af76a1b8288426a577e750838b4be`, the merged commit from [Agents API #425](https://github.com/Automattic/agents-api/pull/425).

bundles/skills-agent/flows/skills-maintenance-flow.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

bundles/skills-agent/manifest.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

bundles/skills-agent/memory/agent/MEMORY.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

bundles/skills-agent/memory/agent/SOUL.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

bundles/skills-agent/pipelines/skills-pipeline.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)