Skip to content

Add ARM library doc updater config and prompt#4281

Open
tadelesh wants to merge 4 commits intomainfrom
arm-doc-update
Open

Add ARM library doc updater config and prompt#4281
tadelesh wants to merge 4 commits intomainfrom
arm-doc-update

Conversation

@tadelesh
Copy link
Copy Markdown
Member

Add ARM library doc updater config and prompt

Adds the agentic workflow configuration and prompt for automated ARM library documentation updates.

Changes

  • eng/scripts/doc-updater/configs/azure-resource-manager.yaml — New config defining source code paths (lib, src, samples) and allowed modification paths for the doc updater agent.
  • eng/scripts/doc-updater/prompts/azure-resource-manager.md — New prompt instructing the agent how to audit and fix ARM library documentation against authoritative sources.

Key design decisions

  • Source .tsp/.ts over unit tests: ARM lib is primarily templates and decorators, so the TSP library declarations and TypeScript source are the primary references (not unit tests).
  • Samples as ground truth: packages/samples/specs/resource-manager/ is referenced as an authoritative source for idiomatic ARM spec patterns.
  • No Spector test coverage: ARM lib doc updater focuses only on documentation — Spector test specs are out of scope.

Testing

Tested on a private fork:

@azure-sdk
Copy link
Copy Markdown
Collaborator

No changes needing a change description found.

@azure-sdk
Copy link
Copy Markdown
Collaborator

azure-sdk commented Apr 17, 2026

You can try these changes here

🛝 Playground 🌐 Website

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds doc-updater agent configuration and a dedicated prompt for the @azure-tools/typespec-azure-resource-manager library, so the agentic workflow can audit and update ARM documentation using ARM library source/templates and samples as primary references.

Changes:

  • Added a doc-updater config for ARM defining source analysis paths and allowed modification scopes.
  • Added an ARM-specific doc-updater prompt describing authoritative sources, doc areas, and a 3-step audit/fix workflow.

Reviewed changes

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

File Description
eng/scripts/doc-updater/configs/azure-resource-manager.yaml New ARM doc-updater config (source paths + allowedPaths) for the agentic workflow.
eng/scripts/doc-updater/prompts/azure-resource-manager.md New ARM-specific agent prompt to guide documentation audits and updates.

Comment thread eng/scripts/doc-updater/configs/azure-resource-manager.yaml Outdated
Comment thread eng/scripts/doc-updater/prompts/azure-resource-manager.md
Comment thread eng/scripts/doc-updater/prompts/azure-resource-manager.md Outdated
tadelesh and others added 2 commits April 17, 2026 13:59
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Member

@markcowl markcowl left a comment

Choose a reason for hiding this comment

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

Marked some things that were incorrect in the local run of this. We should correct before deploying this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants