Run Docs Agent through the native executor#423
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OPENAI_API_KEYandEXTERNAL_PACKAGE_SOURCE_POLICY; Docs Agent publishes with the caller-scoped built-in GitHub token and declared write permissions.Related: Automattic/docs-agent#117, Automattic/docs-agent#120, Automattic/docs-agent#121, Automattic/wp-codebox#1754.
How to test
Automattic/agents-apiand check out this PR branch.composer install --no-interaction --prefer-dist,composer validate --strict, andcomposer test.Automattic/docs-agentat5344a4bfbda4a0553cc92636258e46a715b1c72dandAutomattic/wp-codeboxat54c2f9a7bc3cd1fe20055d496c83efcfb99afb41.DOCS_AGENT_DIR=/path/to/docs-agent WP_CODEBOX_DIR=/path/to/wp-codebox php tests/docs-agent-native-workflow-contract.php. The test fails with this exact command when either producer checkout is absent or not pinned.actionlintandgit diff --check.Required secret setup
Configure only these repository secrets before manually dispatching
Docs Agent:OPENAI_API_KEY: required for a live OpenAI Docs Agent run.EXTERNAL_PACKAGE_SOURCE_POLICY:{"version":1,"repositories":{"automattic/docs-agent":["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"]}}Live-run prerequisites
The
Docs Agentworkflow is manual only. It grantscontents: write,pull-requests: write, andissues: write; merged Docs Agent #121 forwards the caller workflowgithub.tokenfor same-repository branch and pull-request publication. No consumerACCESS_TOKENsecret is required.Compatibility impact
This intentionally removes the consumer
ACCESS_TOKENsecret. Live OpenAI runs requireOPENAI_API_KEY; native package authorization remains separately controlled byEXTERNAL_PACKAGE_SOURCE_POLICY. No Agents API runtime API changes.AI assistance