Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

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.

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.

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.

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.
Expand All @@ -22,4 +24,6 @@ The recipe boundary covers standalone native package selection, complete native

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.

Run `php tests/validate-docs-agent-bundle.php` after workflow changes so workflow routing and runner config stay aligned.
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.

Run `php tests/validate-docs-agent-packages.php` after workflow changes so package structure, workflow routing, and runner config stay aligned.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
test:
name: Validate bundles and native imports
name: Validate native packages and imports
runs-on: ubuntu-24.04
steps:
- name: Check out Docs Agent
Expand All @@ -29,9 +29,9 @@ jobs:
token: ${{ github.token }}
persist-credentials: false

- name: Run structural, link, and native importer tests
- name: Run package, link, and native importer tests
run: |
php tests/validate-docs-agent-bundle.php
php tests/validate-docs-agent-packages.php
php tests/validate-external-native-package-sources.php
php tests/repair-docs-links-smoke.php
AGENTS_API_DIR="$GITHUB_WORKSPACE/agents-api" php tests/native-agent-import.php
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
env:
WP_CODEBOX_DIR: ${{ github.workspace }}/.wp-codebox
run: |
php tests/validate-docs-agent-bundle.php
php tests/validate-docs-agent-packages.php
php tests/validate-external-native-package-sources.php
php tests/validate-wp-codebox-run-agent-task-contract.php
php tests/repair-docs-links-smoke.php
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,19 +180,23 @@ Run skills upkeep as its own scheduled lane with `verification_commands`, `drift

## Native Packages

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

- `bundles/technical-docs-agent/native/technical-docs-bootstrap-agent.agent.json`
- `bundles/technical-docs-agent/native/technical-docs-maintenance-agent.agent.json`
- `bundles/user-docs-agent/native/user-docs-bootstrap-agent.agent.json`
- `bundles/user-docs-agent/native/user-docs-maintenance-agent.agent.json`
- `bundles/skills-agent/native/skills-maintenance-agent.agent.json`

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

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.

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

### Compatibility Impact

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.

## Workflow Operation

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

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

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.

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).
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).
23 changes: 0 additions & 23 deletions bundles/skills-agent/flows/skills-maintenance-flow.json

This file was deleted.

42 changes: 0 additions & 42 deletions bundles/skills-agent/manifest.json

This file was deleted.

40 changes: 0 additions & 40 deletions bundles/skills-agent/memory/agent/MEMORY.md

This file was deleted.

7 changes: 0 additions & 7 deletions bundles/skills-agent/memory/agent/SOUL.md

This file was deleted.

17 changes: 0 additions & 17 deletions bundles/skills-agent/pipelines/skills-pipeline.json

This file was deleted.

Loading
Loading