DOC-363: Run MVP docs agents automatically with GitHub Actions#818
Open
HarshCasper wants to merge 1 commit into
Open
DOC-363: Run MVP docs agents automatically with GitHub Actions#818HarshCasper wants to merge 1 commit into
HarshCasper wants to merge 1 commit into
Conversation
HarshCasper
requested review from
quetzalliwrites and
remotesynth
as code owners
July 24, 2026 17:52
Deploying localstack-docs with
|
| Latest commit: |
d22e70c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b95d5698.localstack-docs.pages.dev |
| Branch Preview URL: | https://doc-363-docs-run-mvp-agents.localstack-docs.pages.dev |
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
Adds a
workflow_dispatchGitHub Actions workflow (docs-ci-agent.yml) that takes a Linear ticket ID and has an AI agent implement the docs ticket end to end, modeled on thrau/auto-code and this repo's existing bot workflows.Flow: dispatch with
ticket_id(e.g.DOC-362) → regex validation → checkout + Node 22 +npm ci→ Claude Code CLI (pinned2.1.218, model pinnedclaude-sonnet-4-5-20250929,--max-turns 75, 30-min job timeout) runs with the Linear MCP and LocalStack MCP wired in → the agent reads the ticket via Linear MCP, followsagents.md, edits docs, and writes a PR title/body (with the agents.md audit trail) to/tmp→ the workflow fails loudly if the tree is unchanged, otherwise opens a ready-for-review PR via pinnedpeter-evans/create-pull-requeston branchdocs-agent/<ticket-id>with the LocalStack Bot identity.Design decisions
PRO_ACCESS_TOKEN(so the created PR triggers normal CI).agents.md(the agent reads that file as instruction docs: move snowflake docs into new IA structure #2); it carries only CI-specific rules: halt rule adaptation, file-scope allowlist, PR output contract, git prohibitions, MCP usage limits.Verified end to end
Ran the exact production command locally against real ticket DOC-362 (Kinesis Rust Mock v0.1.6):
src/content/docs/), matched repo conventionsactionlintpasses (including shellcheck on all run blocks)Before first dispatch
CLAUDE_CODE_OAUTH_TOKEN(generate viaclaude setup-token) andLINEAR_API_KEY. (PRO_ACCESS_TOKENandLOCALSTACK_AUTH_TOKENalready exist.)npm run buildcurrently fails onmainwith 28 pre-existing invalid links in 15 files (verified unrelated to any agent change). The agent verifies its work with the build peragents.md, so real runs will halt-and-report until those links are fixed. Fixing them is a good first candidate ticket.Future work (deliberately out of scope)