Skip to content

Add experimental docs agent workflow - #260

Merged
theletterf merged 5 commits into
mainfrom
docs-agent-experimental
Aug 4, 2026
Merged

theletterf merged 5 commits into
mainfrom
docs-agent-experimental

Conversation

@theletterf

@theletterf theletterf commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add docs-agent-experimental, a staged documentation drafting workflow triggered by the docs-agent issue label or manual issue number
  • use a context-gathering, structured-drafting, and fresh-reader-testing sequence before proposing a draft PR
  • read applicable AGENTS.md, CLAUDE.md, contribution guides, navigation, and nearby pages before editing
  • classify substantive work by Elastic content type and ground drafting in current Contribution guidelines and published docs through the Elastic Docs MCP server
  • install the docs-content-type-checker, docs-applies-to-tagging, docs-syntax-help, and docs-frontmatter-description authoring skills from elastic/elastic-docs-skills
  • prefer canonical source pages, detect generated or federated docs, and stop when required source or companion files are protected
  • leave Vale, docs-builder validation, documentation review, and reviewer assignment to separate automation
  • retain documentation-only file restrictions, draft-only PR creation, staged safe outputs, and the no-merge rule
  • allow up to 45 minutes and 2,000 AI credits for linked-evidence research, conditional skill use, drafting, and at most two reader-test rounds
  • register the generated lockfile in the repository's existing zizmor exceptions for compiler-owned template expansion and GitHub-script tag-SHA findings

Compiler version

Validation

  • latest gh aw compile docs-agent-experimental --strict — 0 errors and 0 warnings
  • pre-commit run --all-files — passed
  • git diff --check — passed
  • GitHub zizmor — initial run identified the new lockfile was absent from the repository's existing gh-aw lockfile exceptions; after adding it to both documented exception lists, the follow-up run passed

Compiler warning and security review

The first strict compilation after adding the authoring-skill import reported:

  • restricted secret: GH_AW_PLUGINS_TOKEN
  • action: microsoft/[email protected], pinned in the compiled lockfile to b48dd081eb0050f6d7f32d0e7caa0a59a2d419fd

Both are supplied by the repository's existing shared/apm.md component, which is already used by the documentation scope and sweep workflows. The token is passed only to the APM packaging step to retrieve the four declared public skill packages, with fallbacks to the existing gh-aw or repository token. The action installs and bundles those packages in an isolated temporary workspace, uploads the short-lived bundle, and restores it for the agent job. Its pinned action.yml uses the pinned APM CLI default rather than latest. No action or secret was removed, and no redirect changed. The initial warning was reviewed and reported rather than silenced with --approve; subsequent strict compilation against the updated lockfile completes with no warnings.

Experimental behavior

All safe outputs use staged: true, so issue comments, labels, and draft PR creation remain preview-only. The workflow deliberately does not configure github-token-for-extra-empty-commit; when live writes are enabled later, a maintainer must trigger PR checks manually.

@theletterf theletterf self-assigned this Aug 3, 2026
@theletterf theletterf added the enhancement New feature or request label Aug 3, 2026
@theletterf theletterf mentioned this pull request Aug 3, 2026
@theletterf
theletterf force-pushed the docs-agent-experimental branch from a0fa801 to d4ead27 Compare August 3, 2026 14:49
@theletterf
theletterf changed the base branch from main to bump-gh-aw-v0.83.4 August 3, 2026 14:49
Base automatically changed from bump-gh-aw-v0.83.4 to main August 3, 2026 14:49
@theletterf
theletterf force-pushed the docs-agent-experimental branch from d4ead27 to af18bd5 Compare August 3, 2026 14:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new experimental “docs agent” Agentic Workflows pipeline that can be triggered from issues labeled docs-agent (or via manual dispatch) to draft documentation PRs using a staged/safe-output approach, with Elastic Docs MCP-backed context gathering and reader-testing steps.

Changes:

  • Introduces docs-agent-experimental workflow definition with staged safe-outputs, Elastic Docs MCP configuration, and APM-installed authoring skills.
  • Commits the compiled .lock.yml for the new workflow.
  • Updates zizmor suppression lists to include the new compiler-owned lockfile; adjusts the generated maintenance workflow’s schedule comment to reflect the new minimum expiration window.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
.github/zizmor.yml Adds the new lockfile to existing zizmor ignore lists for compiler-owned files.
.github/workflows/docs-agent-experimental.md New experimental docs drafting workflow (prompt + guardrails + staged safe outputs).
.github/workflows/docs-agent-experimental.lock.yml Compiler-generated lockfile for the new workflow.
.github/workflows/agentics-maintenance.yml Updates the cron comment to match the new minimum safe-output expiration (14 days).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@theletterf
theletterf marked this pull request as ready for review August 4, 2026 10:51
@theletterf
theletterf requested a review from a team as a code owner August 4, 2026 10:51
@theletterf
theletterf requested a review from cotti August 4, 2026 10:51
@theletterf
theletterf merged commit 3642f8a into main Aug 4, 2026
5 checks passed
@theletterf
theletterf deleted the docs-agent-experimental branch August 4, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants