Skip to content

Create auto-documenting workflow - #69391

Merged
wtgodbe merged 14 commits into
dotnet:mainfrom
DeagleGross:deaglegross-assess-docs-workflow
Sep 21, 2026
Merged

wtgodbe merged 14 commits into
dotnet:mainfrom
DeagleGross:deaglegross-assess-docs-workflow

Conversation

@DeagleGross

@DeagleGross DeagleGross commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

The workflow was validated against five merged dotnet/aspnetcore pull requests:

Source PR Workflow run Decision Confidence Result
dotnet/aspnetcore#68795 Run 35362362993 Documentation required 85% Draft docs PR
dotnet/aspnetcore#69350 Run 35362370394 Documentation required 75% Draft docs PR
dotnet/aspnetcore#69240 Run 35362378998 No documentation required 15% No docs PR
dotnet/aspnetcore#69310 Run 35362386418 No documentation required 15% No docs PR
dotnet/aspnetcore#69384 Run 35362394109 No documentation required 5% No docs PR

All five agent, validation, and safe-output paths completed successfully (posting comment on dotnet/aspnetcore from fork is what failed and its OK for my validation).

DeagleGross and others added 12 commits September 18, 2026 11:47
…kflow

Use workflow token for source PR reads
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Add deterministic version resolution, safe reuse of existing documentation drafts, trusted outcome validation, and a bounded agent turn budget.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Allow up to 100 model invocations and report preflight validation failures without an assertion traceback.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Allow ordinary security-related features and behavior changes to be documented at the level already established in the docs while continuing to exclude vulnerability details and abuse analysis.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
@DeagleGross DeagleGross self-assigned this Sep 18, 2026
@DeagleGross DeagleGross added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Sep 18, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Use the configured Client ID secret and reject inconsistent or failed documentation mutations before reporting success.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
@DeagleGross
DeagleGross marked this pull request as ready for review September 21, 2026 18:19
@DeagleGross
DeagleGross requested review from a team and wtgodbe as code owners September 21, 2026 18:19
Copilot AI lite review requested due to automatic review settings September 21, 2026 18:19
@wtgodbe
wtgodbe merged commit 89c6e2e into dotnet:main Sep 21, 2026
10 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Three moderate issues remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 3 Medium severity

Open (3)
What changed in this PR

Adds a manually dispatched workflow that analyzes merged ASP.NET Core PRs and creates or updates documentation drafts.

Changes:

  • Adds version resolution and existing-draft detection helpers.
  • Adds outcome validation and tests.
  • Adds the workflow definition and generated lock files.

Review findings remain unresolved:

  • .github/workflows/pr-docs-check.md: enforce the merged-state requirement before agent and safe-output execution (moderate, 2 votes).
  • .github/workflows/pr-docs-check.md: stop execution when outcome canonicalization fails (moderate, 2 votes).
  • .github/workflows/pr-docs-check/validate_outcome.py: normalize or constrain accepted pull-request target aliases (moderate, 2 votes).
File Description
.github/​workflows/​pr-docs-check/​version-policy.json Version policy configuration
.github/​workflows/​pr-docs-check/​validate_outcome.py Validates workflow outcomes
.github/​workflows/​pr-docs-check/​test_validate_outcome.py Tests outcome validation
.github/​workflows/​pr-docs-check/​test_resolvers.py Tests resolver behavior
.github/​workflows/​pr-docs-check/​resolve_target_version.py Resolves target documentation versions
.github/​workflows/​pr-docs-check/​find_existing_draft.py Finds trusted existing documentation drafts
.github/​workflows/​pr-docs-check.md Defines the documentation workflow
.github/​workflows/​pr-docs-check.lock.yml Generated workflow
.github/​aw/​actions-lock.json Updates the gh-aw action lock

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +337 to +339
if (!outcome.allow_comment) {
core.setFailed(`Outcome validation failed: ${outcome.diagnostic || 'unknown reason'}`);
}
Comment on lines +501 to +502
gh api "/repos/${SOURCE_REPOSITORY}/pulls/${SOURCE_PR_NUMBER}" \
> "${CONTEXT_DIR}/source-pr.json"
def _validate_update_targets(payload: Any, expected_number: int) -> None:
for item_type in ("push_to_pull_request_branch", "update_pull_request"):
item = _one_item(payload, item_type)
actual_number = _positive_int(item.get("pull_request_number"), f"{item_type} pull_request_number")
@DeagleGross
DeagleGross deleted the deaglegross-assess-docs-workflow branch September 21, 2026 18:31
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants