Skip to content

Prepare Project v2 migration skill bundle integration - #20158

Merged
Karol Zadora-Przylecki (karolz-ms) merged 6 commits into
mainfrom
dev/karolz/project-v2-skill
Sep 23, 2026
Merged

Karol Zadora-Przylecki (karolz-ms) merged 6 commits into
mainfrom
dev/karolz/project-v2-skill

Conversation

@karolz-ms

@karolz-ms Karol Zadora-Przylecki (karolz-ms) commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Prepare the Aspire CLI integration for the approval-first aspire-project-v2-migration skill described in #19818.

The official attested microsoft/aspire-skills v0.0.3 release is now embedded and validated through the production fallback path.

Dependencies

Changes included

  • Embed the official attestation-verified v0.0.3 skills archive and update its metadata, installer version, project resource, and canonical telemetry hooks.
  • Extend the shared test bundle with the migration skill and its reference files.
  • Verify default and explicit-name installation, complete reference-file contents, exclusion of evaluation assets, and supported project/user skill locations.
  • Validate the real embedded archive through EmbeddedAspireSkillsBundleProvider and the production installer fallback, including recognizable content from SKILL.md and both migration references.
  • Cover skill selection in interactive and chained agent-init flows.
  • Cover the migration skill and both reference paths in the Bash and PowerShell telemetry-hook behavior tests.
  • Allow a complete generated bundle refresh to carry synchronized hook changes outside the dedicated synchronization branch; hook-only and incomplete refreshes remain blocked, and canonical content is still verified independently.
  • Add focused workflow tests for synchronization-branch, complete-refresh, hook-only, and incomplete-refresh behavior.
  • Link the migration skill from the .NET hosting integration README.
  • Rebase the PR onto the current main branch and address the Copilot review findings.

The product API changes belong to #20157, and the skill implementation belongs to microsoft/aspire-skills#65. Neither is duplicated here.

Required before merging

  • Land the product prerequisites and canonical skill changes.
  • Publish the official attested microsoft/aspire-skills v0.0.3 release.
  • Run eng/scripts/update-aspire-skills-bundle.ps1 -Version 0.0.3 and review the generated archive, metadata, installer/project, and hook updates.
  • Verify the artifact with eng/scripts/verify-aspire-skills-bundle.ps1.
  • Validate installation from the actual embedded bundle, not only the injected test fixture.
  • Rebase onto the current main branch.
  • Complete final integration review and CI.

Validation

  • ./restore.sh
  • dotnet test --project tests/Aspire.Cli.Tests/Aspire.Cli.Tests.csproj --no-launch-profile -- --filter-class "*.AspireSkillsInstallerTests" --filter-class "*.AspireSkillsBundleTests" --filter-class "*.AgentInitCommandTests" --filter-class "*.TelemetryHookInstallerTests" --filter-class "*.TelemetryHookScriptTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"
    • 175 passed, 0 failed, 1 platform-specific skip.
  • dotnet test --project tests/Infrastructure.Tests/Infrastructure.Tests.csproj --no-launch-profile -- --filter-class "*.SelectTestsWorkflowTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"
    • 11 passed, 0 failed, 0 skipped.
  • dotnet test --project tests/Infrastructure.Tests/Infrastructure.Tests.csproj --no-launch-profile -- --filter-class "*.VerifyTelemetryHookChangesWorkflowTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"
    • 8 passed, 0 failed, 0 skipped.
  • eng/scripts/verify-aspire-skills-bundle.ps1
    • Verified aspire-skills-v0.0.3.tgz against its GitHub artifact attestation.
    • Verified both embedded telemetry hooks against microsoft/aspire-skills commit a83ca78b9d35b8238f9c4fdba72cb779defe2a90.
  • dotnet run --project tools/SelectTests -- --changed-files <full PR file list> --explain
    • All changed files were attributed; selected Aspire.Cli.Tests, Aspire.Cli.EndToEnd.Tests, Infrastructure.Tests, and the expected CLI-dependent jobs.
  • git diff --check

No container validation is required for this bundle integration.

Part of #19818.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship after final review and CI.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20158

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20158"

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

Base automatically changed from dev/karolz/project-v2-publish to main September 16, 2026 22:08
@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot September 16, 2026 22:08
@github-actions

This comment has been minimized.

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.

🟡 Changes recommended

The production bundle refresh and embedded-install validation remain pending, alongside the review findings.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Prepares CLI test coverage and documentation for the Project v2 migration skill without updating the production bundle.

Changes:

  • Adds the migration skill to the test bundle.
  • Tests installation, references, locations, and selection flows.
  • Adds migration guidance to the .NET hosting README.
File summaries
File Description
FakePlaywrightServices.cs Adds the migration skill fixture and excluded evaluation asset.
AgentInitCommandTests.cs Covers default, explicit, interactive, and chained installation.
README.md Links to the migration skill and summarizes its scope.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Balanced (auto)

Note

Copilot is running an experiment and ran this review at Balanced.

Comment thread src/Aspire.Hosting.Dotnet/README.md Resolved
@github-actions

This comment has been minimized.

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

Embed and verify the attested v0.0.3 bundle through the production installation path before merging.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 High severity

Open (1)
Resolved since last review (2)

Comment thread src/Aspire.Hosting.Dotnet/README.md Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

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

The telemetry-hook workflow’s new acceptance path needs coverage for hook-only rejection and complete bundle-update acceptance.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
Resolved since last review (3)

@github-actions

This comment has been minimized.

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.

I reviewed the v0.0.3 bundle integration, migration guidance, installation and cache paths, telemetry hooks, related regression coverage, and the complete-bundle refresh exception.

I found no remaining correctness or architectural issues to raise. The telemetry branch-policy issue is addressed by the final workflow change.

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

3 / 99 PR test projects · 4 PR jobs, from 14 changed files.

Selected PR test projects (3 / 99)

Aspire.Cli.EndToEnd.Tests, Aspire.Cli.Tests, Infrastructure.Tests

Selected PR jobs (4)

cli-starter-validation, extension-e2e, polyglot, typescript-api-compat


How these were chosen — grouped by what changed

📦 affected project Aspire.Cli
→ 1 test: Aspire.Cli.EndToEnd.Tests

📄 .github/workflows/verify-telemetry-hook-changes.yml (changed)
→ 1 directly: Infrastructure.Tests

🧪 tests/Aspire.Cli.Tests/Agents/AspireSkillsInstallerTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Agents/TelemetryHookScriptTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Commands/AgentInitCommandTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/TestServices/FakePlaywrightServices.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Infrastructure.Tests/WorkflowScripts/VerifyTelemetryHookChangesWorkflowTests.cs (changed test)
→ 1 directly: Infrastructure.Tests

Job reasons

Job Triggered by
cli-starter-validation affected project Aspire.Cli
extension-e2e • src/Aspire.Cli/Agents/AspireSkills/AspireSkillsInstaller.cs, src/Aspire.Cli/Agents/AspireSkills/Embedded/aspire-skills-v0.0.2.tgz, src/Aspire.Cli/Agents/AspireSkills/Embedded/aspire-skills-v0.0.3.tgz, src/Aspire.Cli/Agents/AspireSkills/Embedded/aspire-skills.metadata.json, src/Aspire.Cli/Agents/Hooks/TelemetryHookConfigurator.cs, src/Aspire.Cli/Agents/Hooks/track-telemetry.ps1, src/Aspire.Cli/Agents/Hooks/track-telemetry.sh, src/Aspire.Cli/Aspire.Cli.csproj
• affected project Aspire.Cli
polyglot affected project Aspire.Cli
typescript-api-compat affected project Aspire.Cli

Selection computed for commit 84b2372.

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

🔵 Needs a closer look

The embedded bundle and workflow-policy changes warrant final human review.

Review effort: Balanced
Findings: None

Resolved since last review (4)

@karolz-ms

Copy link
Copy Markdown
Contributor Author

PR Testing Report

PR Information

Artifact Version Verification

  • Expected Commit: 84b237289e90e0a53fe91e09ba7b2adaad57d595
  • Installed Version: 14.0.0-pr.20158.g84b23728
  • Workflow Run: 35920767010
  • Artifact: cli-native-archives-osx-arm64
  • Status: ✅ Verified

The dogfood installer selected the latest PR CI run and installed the macOS ARM64 CLI plus the PR NuGet hive. The reported short SHA matches the live PR head and local checkout.

Changes Analyzed

Files Changed

  • .github/workflows/verify-telemetry-hook-changes.yml
  • src/Aspire.Cli/Agents/AspireSkills/AspireSkillsInstaller.cs
  • src/Aspire.Cli/Agents/AspireSkills/Embedded/aspire-skills-v0.0.2.tgz
  • src/Aspire.Cli/Agents/AspireSkills/Embedded/aspire-skills-v0.0.3.tgz
  • src/Aspire.Cli/Agents/AspireSkills/Embedded/aspire-skills.metadata.json
  • src/Aspire.Cli/Agents/Hooks/TelemetryHookConfigurator.cs
  • src/Aspire.Cli/Agents/Hooks/track-telemetry.ps1
  • src/Aspire.Cli/Agents/Hooks/track-telemetry.sh
  • src/Aspire.Cli/Aspire.Cli.csproj
  • src/Aspire.Hosting.Dotnet/README.md
  • tests/Aspire.Cli.Tests/Agents/AspireSkillsInstallerTests.cs
  • tests/Aspire.Cli.Tests/Agents/TelemetryHookScriptTests.cs
  • tests/Aspire.Cli.Tests/Commands/AgentInitCommandTests.cs
  • tests/Aspire.Cli.Tests/TestServices/FakePlaywrightServices.cs
  • tests/Infrastructure.Tests/WorkflowScripts/VerifyTelemetryHookChangesWorkflowTests.cs

Change Categories

  • CLI changes detected
  • Hosting runtime changes
  • Dashboard changes
  • Template implementation changes
  • Client/component changes
  • GitHub Actions infrastructure changes
  • Azure DevOps pipeline changes
  • VS Code extension changes
  • Test changes
  • Documentation changes

Test Scenarios Executed

Scenario 1: Dogfood artifact identity

Objective: Prove the tested native CLI was built from the PR's latest commit.

Coverage Type: Artifact integrity

Status: ✅ Passed

Steps:

  1. Waited for the latest Build native CLI archive (macOS) job to publish its artifact.
  2. Installed PR Prepare Project v2 migration skill bundle integration #20158 with get-aspire-cli-pr.sh, using an isolated install path and skipping PATH/extension changes.
  3. Ran the installer-reported binary directly.
  4. Compared its version suffix with the live PR head.

Evidence:

  • version.txt
  • install.log

Observations:

  • Installed version was 14.0.0-pr.20158.g84b23728.
  • The installer used workflow run 35920767010 and the PR-specific package hive.

Scenario 2: Default interactive migration-skill installation

Objective: Verify the production-default embedded bundle installs aspire-project-v2-migration when the user accepts the default skill selection.

Coverage Type: Happy path / interactive

Status: ✅ Passed

Steps:

  1. Started aspire agent init in an ANSI-capable Hex1b virtual terminal with a fresh workspace and isolated home directory.
  2. Selected the default skills by accepting the preselected prompt values.
  3. Verified the final summary includes aspire-project-v2-migration.
  4. Compared installed files byte-for-byte with the attested v0.0.3 embedded archive.

Evidence:

  • default-install/prompt-screen.png
  • default-install/final-screen.png
  • default-install/default-install.cast
  • default-install/final-screen.txt
  • default-install/cli.log

Observations:

  • The production feature value was aspireSkillsRemoteFetchEnabled = False (default: False), exercising the embedded fallback path.
  • The skill was installed at both .agents/skills and ~/.agents/skills.
  • Each location contained exactly:
    • SKILL.md
    • references/compatibility-and-validation.md
    • references/migration-patterns.md
  • No evals content was installed.
  • The three files matched the embedded archive byte-for-byte and contained the expected recognizable headings.

Scenario 3: Explicit chained installation from aspire new

Objective: Verify a fresh project can explicitly select the migration skill through the chained agent-init flow and install it everywhere supported.

Coverage Type: Happy path / boundary

Status: ✅ Passed

Steps:

  1. Created a fresh C# aspire-empty project from the PR package hive.
  2. Used --suppress-agent-init=false, --skill-locations all, and --skills aspire-project-v2-migration.
  3. Verified the generated file-based AppHost at apphost.cs.
  4. Compared all installed skill files with the embedded v0.0.3 archive.

Evidence:

  • chained-install/aspire-new.log
  • chained-install/result.txt
  • chained-install/cli.log

Observations:

  • The chained flow completed successfully and selected only aspire-project-v2-migration.
  • Exact files were installed at five locations: project .agents, .claude, .github, .opencode, and user .agents.
  • No excluded evaluation assets were installed.

Scenario 4: Invalid explicit skill selection

Objective: Confirm an invalid combined skill selection fails safely without a partial migration-skill installation.

Coverage Type: Unhappy path

Status: ✅ Passed

Steps:

  1. Ran aspire agent init in fresh workspace/home directories with --skills aspire-project-v2-migration,not-a-skill.
  2. Captured the exit code and validation message.
  3. Checked both project and user skill locations for partial output.

Expected Unhappy-Path Outcome: A clear validation error, non-zero exit code, and no partial installation.

Evidence:

  • invalid-skill/invalid-skill.log
  • invalid-skill/result.txt

Observations:

  • Exit code was 21.
  • The CLI reported the invalid --skills value and listed valid choices, including the migration skill.
  • Neither project nor user migration-skill directories were created.

Scenario 5: Bash and PowerShell telemetry-hook behavior

Objective: Verify the actual v0.0.3 hook scripts recognize the migration skill and both reference files without recording arbitrary paths.

Coverage Type: Happy path / unhappy path

Status: ✅ Passed

Steps:

  1. Extracted both hook scripts from aspire-skills-v0.0.3.tgz.
  2. Confirmed the archive scripts match the checked-in copies byte-for-byte.
  3. Invoked Bash and PowerShell hooks with migration-skill events and one reference event per shell.
  4. Invoked both hooks with an unlisted private-notes.md reference.

Expected Unhappy-Path Outcome: Unknown reference files must continue safely without invoking telemetry.

Evidence:

  • telemetry-hooks/hooks.log

Observations:

  • Both shells forwarded --skill-name aspire-project-v2-migration.
  • Bash forwarded migration-patterns.md; PowerShell forwarded compatibility-and-validation.md.
  • Both unknown-reference cases returned {"continue":true} without invoking the telemetry recorder.

Scenario 6: Telemetry workflow policy boundaries

Objective: Verify the workflow allows complete generated bundle refreshes while continuing to reject incomplete/manual hook updates.

Coverage Type: CI infrastructure / happy path / unhappy path

Status: ✅ Passed

Steps:

  1. Parsed the workflow YAML and extracted PowerShell policy script.
  2. Parsed the PowerShell script for syntax errors.
  3. Ran the policy against synthetic two-commit repositories.
  4. Ran the new focused VerifyTelemetryHookChangesWorkflowTests class locally.
  5. Inspected the actual PR workflow log for the intended marker.

Expected Unhappy-Path Outcome: Hook-only or archive-missing changes on feature branches must fail; the synchronization branch remains allowed.

Evidence:

  • workflow-policy/results.log
  • workflow-policy/static-validation.log
  • workflow-policy/infrastructure-tests.log
  • ci/telemetry-workflow.log

Observations:

  • Complete bundle update on a feature branch: passed.
  • Hook-only feature branch update: rejected.
  • Complete companion changes without an archive: rejected.
  • Hook-only update on update-aspire-skills-bundle: passed.
  • Focused Infrastructure tests: 8 passed, 0 failed, 0 skipped.
  • The live PR run emitted Telemetry hook changes are part of a complete generated bundle update and Telemetry hook branch policy satisfied.

Scenario 7: Focused CLI regression tests

Objective: Run the exact CLI test classes covering the modified bundle, agent-init, installer, and telemetry-hook behavior.

Coverage Type: Automated regression

Status: ✅ Passed

Evidence:

  • cli-focused-tests.log

Observations:

  • 175 passed, 0 failed, 1 Windows-specific skip.
  • The matching PR CI jobs passed on macOS, Ubuntu, and Windows.

CI Infrastructure Validation

GitHub Actions:

  • What runs on this PR: The changed Verify Telemetry Hook Changes workflow ran and passed. The path-triggered Verify Aspire Skills Bundle workflow passed. The relevant Aspire CLI and Infrastructure CI jobs passed across their configured operating systems.
  • Automated tests: Local VerifyTelemetryHookChangesWorkflowTests: 8/8 passed. Local focused CLI classes: 175 passed, 1 platform-specific skip. Corresponding PR CI jobs passed.
  • Manual triggers: None required. The changed workflow runs on pull_request and executed the changed policy directly. Additional negative cases were exercised with local synthetic git fixtures.
  • Results validation: The workflow log contains the complete-bundle and policy-satisfied markers. Bundle verification confirmed aspire-skills-v0.0.3.tgz against GitHub artifact attestation and confirmed both hook scripts against microsoft/aspire-skills commit a83ca78b9d35b8238f9c4fdba72cb779defe2a90.
  • Dependency graph: The changed policy job has no needs, outputs, or uploaded artifacts. The separate path-triggered bundle-verification workflow consumes the changed embedded archive/metadata/hooks and passed. No downstream artifact consumers were changed.
  • gh-aw: Not applicable; no agentic workflow source or lock file changed.
  • Failure-modes scan: No trigger narrowing, workflow deletion, continue-on-error, needs, permission, token, fork-secret, runner-label, artifact-layout, or action-pin changes. permissions: contents: read, github.head_ref, merge-result checkout, fetch-depth: 2, and persist-credentials: false were retained and are covered by the new YAML contract test. The existing pinned actions/checkout SHA is unchanged. Coverage-loss audit: not applicable.

Azure DevOps: Not applicable; no Azure DevOps pipeline or shared pipeline plumbing changed.

Relevant workflow evidence:

At report time, GitHub showed 165 passing checks, 13 skipped checks, and 10 checks still pending. Every check directly relevant to the changed CLI, bundle, hooks, workflow policy, and macOS dogfood artifact had passed.

Summary

Scenario Status Notes
Dogfood artifact identity ✅ Passed Latest head 84b237289e; version 14.0.0-pr.20158.g84b23728
Default interactive installation ✅ Passed Exact migration files at project/user defaults
Explicit chained installation ✅ Passed Fresh AppHost; exact files at five locations
Invalid explicit selection ✅ Passed Exit 21; no partial installation
Bash and PowerShell hooks ✅ Passed Skill/references forwarded; unknown reference ignored
Workflow policy boundaries ✅ Passed Complete refresh allowed; incomplete updates rejected
Focused CLI regression tests ✅ Passed 175 passed, 1 platform skip
Focused Infrastructure tests ✅ Passed 8 passed

Overall Result

✅ PR VERIFIED

No functional or CI-policy issues were found in the tested surfaces. The remaining pending GitHub checks should still complete before merge, but all checks and scenarios directly affected by this PR passed.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@karolz-ms
Karol Zadora-Przylecki (karolz-ms) merged commit bcdcd4b into main Sep 23, 2026
374 of 377 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 14.0 milestone Sep 23, 2026
@karolz-ms

Copy link
Copy Markdown
Contributor Author

/backport to release/13.6

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/13.6 (link to workflow run)

aspire-repo-bot Bot added a commit to microsoft/aspire.dev that referenced this pull request Sep 23, 2026
Documents the aspire-project-v2-migration agent skill introduced by
microsoft/aspire#20158, which was embedded into the Aspire CLI's skill
bundle in that PR.

- Add a 'Migrate from legacy project resources' section to the .NET
  project resources reference page, mirroring the summary added to
  src/Aspire.Hosting.Dotnet/README.md in the source PR.
- List aspire-project-v2-migration in the companion skills table on
  the Aspire skills get-started page, with a cross-reference to the
  new migration section.

Co-authored-by: Copilot <[email protected]>
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Pull request created: #1738

Generated by PR Documentation Check · copilot · auto · 91.1 AIC · ⌖ 22.1 AIC · ⊞ 18.7K

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

📝 Documentation has been drafted in microsoft/aspire.dev#1738 targeting release/13.6.

Triggered signals (2): integration_readme_changed (evidence: src/Aspire.Hosting.Dotnet/README.md matched the hosting-integration README pattern, adding a "Migrating from legacy project resources" section for the new aspire-project-v2-migration skill) and pr_body_has_cli_flag_mention (evidence: the PR body's validation section references dotnet test --project tests/Aspire.Cli.Tests/...).

Docs gap: no existing page on aspire.dev mentioned aspire-project-v2-migration by name, so the "already documented" exception did not apply.

Changes made on docs_work_branch:

  • src/frontend/src/content/docs/integrations/dotnet/project-resources.mdx — added a new "Migrate from legacy project resources" section mirroring the README addition, describing the approval-first migration skill, what it preserves/flags (Azure Functions, custom ProjectResource-based integrations), and that it requires Aspire 13.6+ first.
  • src/frontend/src/content/docs/get-started/aspire-skills.mdx — added aspire-project-v2-migration as a companion-skill table row and cross-referenced the new project-resources section.

Target branch resolution: milestone 14.0 had no matching release/14.0 branch on aspire.dev, so it fell back to the latest available release branch, release/13.6.

Note

This draft PR needs human review before merging.

Jose Perez Rodriguez (joperezr) pushed a commit that referenced this pull request Sep 24, 2026
…20405)

Backport of #20158 to release/13.6

/cc @karolz-ms

## Customer Impact

## Testing

## Risk

## Regression?

---------

Co-authored-by: Karol Zadora-Przylecki <[email protected]>
Co-authored-by: Copilot App <[email protected]>
David Pine (IEvangelist) added a commit to microsoft/aspire.dev that referenced this pull request Sep 28, 2026
…ps (#1780)

## Summary

<!-- Describe what this pull request changes and why. -->

Reconcile the 13.6 wiki audit and **all 25 open `docs-from-code`
proposals targeting `release/13.6`** against the actual release source.
Add missing canonical guidance rather than putting all coverage in
What's new. This is a new, isolated feature PR into `release/13.6`; it
does not update the release rollup #1599, merge or close another
proposal, or push directly to a release branch.

**Draft with explicit remaining packaging/validation gates:** the six
REPL walkthroughs are source-verified, but current publicly available
13.6 packages do not contain the late `WithRepl` exports. Generated API
catalogs have deliberately not been fabricated or refreshed from 14.x.
See the open checklist below.

### Evidence baseline

- Documentation base: `717442f6666948bcf77f3d704dc2dadf7c080ec2`.
- Product source of truth:
[`microsoft/aspire@e8fd6fbb954f50ccd2e66479538392f65e13e71d`](https://github.com/microsoft/aspire/tree/e8fd6fbb954f50ccd2e66479538392f65e13e71d),
current `release/13.6` at audit time. Source was read from that Git
object, not the stale source working directory.
- [13.6 wiki](https://github.com/microsoft/aspire/wiki/13.6-Change-log)
snapshot `8e01a371d4f16a1306e48174d4cf1fdeca714348`, whose cutoff is
product PR 20511. Later backports 20541/20546/20548 are included here.
- Proposal base branches alone were **not** used as proof of release
membership. Direct ancestry and known release backports were checked.
Four fallback-targeted proposals are excluded below.
- Wiki link corrections: its REPL link #1752 actually covers Sandboxes;
the REPL proposal is #1740. Its AOT link #1714 covers PFX certificates,
not AOT.

### Complete audit-gap checklist

Checked items mean documentation coverage is implemented, not that cloud
deployment or every product runtime scenario was executed.

- [x] **1. Dotnet API graduation:** correct removal to **13.6**, not
14.0, in What's new, both Dotnet guides, and the diagnostic page;
preserve the prerelease package caveat. This applies to core
`AddDotnetProject`, `DotnetProjectResource`, and related
`WithBuildEnvironment` overloads, not all uses of the diagnostic.
Source: microsoft/aspire#20496.
- [x] **2. Sandboxes:** remove obsolete API suppressions in the article
and deployment guide while preserving Azure service preview/access and
prerelease package limitations. Source: microsoft/aspire#20483.
- [x] **3. Docked REPL documentation:** all six
PostgreSQL/MySQL/MongoDB/SQL Server/Redis/Valkey guides plus the article
now cover opt-in `WithRepl`/`withRepl`, run-only availability, actual
client privileges, credential handling, and explicit exit versus closing
a viewer. Source: microsoft/aspire#20419, backport of
microsoft/aspire#20231. Package-backed checks remain open below.
- [x] **4. Terminal CLI flag:** update current 13.6 article,
`with-terminal`, and all three terminal command references. Preserve
`terminals.v1` and experimental hosting API distinctions. Current
configuration/schema data had no flag entry to remove; historical 13.5
notes remain historical. Source: microsoft/aspire#20548.
- [x] **5. First-party Rust:** rewrite both canonical Rust guides around
`Aspire.Hosting.Rust`; document Cargo versus application arguments,
typed targets, debugging, generated Dockerfiles, workspace context, ABI
constraints, and Toolkit migration. Bacon remains explicitly
Toolkit-only. Add exact first-party package mapping. Source:
microsoft/aspire#18906 and current Rust README.
- [x] **6. Agent setup:** align command reference, skills guide,
AI-agent guide, and article on MCP opt-in, `--mcp`,
chained/non-interactive behavior, seven-skill catalog, Project v2
migration, and Copilot app detection. Also fix stale default-selection
text: all applicable bundle skills are preselected; companion tools
remain opt-in. Sources: microsoft/aspire#19893, microsoft/aspire#20405,
microsoft/aspire#19820.
- [x] **7. Deno AppHost runtime:** document Deno 2+ detection, commands,
permissions, native watch/type checking, doctor, and `DENO_CERT`,
separately from Deno guest hosting. Source: microsoft/aspire#18627,
distinct from microsoft/aspire#18628.
- [x] **8. Native AOT / Fluent UI v5:** concise article, dashboard
exploration, and standalone guidance; automatic packaged-dashboard
selection, no invented performance figures. Source:
microsoft/aspire#19565 and release packaging sources.
- [x] **9. NuGet:** document bundled in-process operations, credential
providers, non-interactive authentication, and realistic
troubleshooting. Correct the proposal's `dotnet nuget locals`
authentication advice: cache commands do not authenticate a feed.
Source: microsoft/aspire#20391.
- [x] **10. Multithreaded builds:** article and coordinated-build guide
explain `-mt`, SDK detection, distinct project/file-based SDK floors,
and fallback. Source: microsoft/aspire#20441.
- [x] **11. Radius:** add a real deployment guide with C#/TypeScript
setup, recipe-backed connections versus local endpoints, per-resource
credential behavior, unauthenticated Redis limitation, secret exposure
boundaries, and actionable runtime diagnostics 070–091. Wire navigation
and exact package mapping. Source: microsoft/aspire#19555 and release
README.
- [x] **12. Connection aliases:** replace contradictory no-encoding
guidance, retain composed logical-key-first lookup and portable-target
behavior, explain collision detection and custom-publisher metadata.
Source: microsoft/aspire#19729.
- [x] **13. Connector Namespace / Toolbox / provisioning:** add
Connector Namespace walkthrough, security/consent/revocation limits and
mapping/sidebar; add Foundry Toolbox walkthrough, connection properties,
roles, index prerequisites, approval enforcement boundaries, immutable
versions, and existing-resource behavior. Extend existing Azure
provisioning guide without a duplicate page. Sources:
microsoft/aspire#19024, microsoft/aspire#17742, microsoft/aspire#20131.
- [x] **14. Remaining high-impact items:** article covers opt-in
manifest-aware DNX and new-template CLI bundling (existing SDK guides
retained), migration skill and Copilot app detection; canonical inline
`CsiVolumeSourceV1`/`VolumeV1.Csi` example, management links, Cosmos
vNext telemetry, and AI Inference `GetModelInfoAsync`/`/info` health
checks with `DisableHealthChecks`. No Azure OpenAI health-check claim.
Sources: microsoft/aspire#19310, microsoft/aspire#19076,
microsoft/aspire#19826, microsoft/aspire#20070, microsoft/aspire#15671,
microsoft/aspire#15969.
- [x] **15. All 25 proposal dispositions:** listed below, including
newer dashboard backports and four exclusions. Existing Sandbox
inference coverage is retained rather than copied from a stale draft.
- [ ] **16. Refresh generated API/catalog/Twoslash data from an official
post-backport 13.6 build.** Existing `26473.12`/`a11eca96` data remains
untouched. The newest public `dotnet9` feed package checked,
`13.6.0-preview.1.26474.10` at
`43496a2a306c81c862c947b11b4f4e5494b6fe08`, still has no Redis
`WithRepl` in its actual package XML. Do not use 14.x, hand-edit
declarations, or attribute source changes to older binaries.
- [ ] **Validate the six REPL examples against that actual post-backport
SDK and running clients.** Their new TypeScript fences are plain
TypeScript, not annotated with unsupported Twoslash data. No existing
diagnostics are allowlisted or suppressed; no generated API exports are
fabricated. Enable Twoslash when the genuine catalog catches up.

### All 25 open proposal dispositions and provenance

Text is selectively adapted from these proposals, not merged wholesale.
#1778 and #1748 are authored by @sebastienros; the other proposals are
authored by the Aspire repo bot. The table credits the associated
product-change authors where supplied by the proposals. Existing PRs
remain open and unchanged.

| Docs PR | Release source / credited product author | Disposition |
| --- | --- | --- |
| #1778 | microsoft/aspire#19729 — @sebastienros | **Adopted:**
canonical connection-string alias correction, including logical-first
resolution and migration. |
| #1771 | microsoft/aspire#20481 — @sebastienros | **Excluded:** flat
polyglot feature keys are not in the audited release tip; no verified
backport. Preserve release key names. |
| #1770 | microsoft/aspire#20525 → microsoft/aspire#20548 — @mitchdenny
| **Corrected/adopted:** command guides plus the still-current 13.6
article, which the proposal incorrectly treats as historical. |
| #1769 | microsoft/aspire#20416 — @JamesNK | **Excluded:** brand hover
change has no verified 13.6 membership/backport. |
| #1768 | microsoft/aspire#20523 → microsoft/aspire#20546 — @JamesNK |
**Adopted:** run pin/unpin preserves selector and current selection. |
| #1766 | microsoft/aspire#20537 → microsoft/aspire#20541 — @mitchdenny
| **Adopted:** terminal dock empty state. |
| #1761 | microsoft/aspire#20490 → microsoft/aspire#20496 — @eerhardt |
**Corrected:** graduation is 13.6, package remains prerelease,
Blazor-specific exception retained. |
| #1760 | microsoft/aspire#20436 — @eerhardt | **Excluded:** CLI
net11/tools-any retarget is not in the audited release; no fallback-base
inference. |
| #1748 | microsoft/aspire#20131 — @sebastienros | **Adopted:** extend
existing provisioning guide with service-specific models/lookups and
projection limits. |
| #1744 | microsoft/aspire#20337 → microsoft/aspire#20441 — @karolz-ms |
**Adopted:** precise SDK-conditional multithreaded build coverage. |
| #1740 | microsoft/aspire#20231 → microsoft/aspire#20419 — @mitchdenny
| **Adapted:** all six guides; TypeScript-first tabs, source-verified
lifecycle/security. Actual post-backport SDK/runtime gate is open above.
|
| #1738 | microsoft/aspire#20158 → microsoft/aspire#20405 — @karolz-ms |
**Partly already covered / completed:** existing seven-skill catalog
retained; add project migration guidance and correct command
catalog/defaults. Do not misclassify the bundled skill as a companion
tool. |
| #1735 | microsoft/aspire#20334 — @karolz-ms | **Excluded:** enhanced
startup errors are not in the audited release; no verified backport. |
| #1731 | microsoft/aspire#19847 → microsoft/aspire#20391 — @eerhardt |
**Corrected/adopted:** in-process NuGet and real authenticated-restore
troubleshooting, not cache-command authentication. |
| #1719 | microsoft/aspire#20299 → microsoft/aspire#20407 — @JamesNK |
**Corrected/adopted:** cookie naming/scoping; identical names can
collide but do not guarantee cross-dashboard cookie decryptability or
shared sign-in. |
| #1664 | microsoft/aspire#20011 — @maddymontaquila | **Adopted:**
concise Azure environment icon release note. |
| #1628 | microsoft/aspire#17742 — @davidfowl | **Adapted/expanded:**
canonical Toolbox examples, consumer contract, role/index prerequisites,
approval/security and concurrency limits. |
| #1623 | microsoft/aspire#19810 — @mitchdenny | **Already covered:**
current Sandbox guide/article already describe compute inference,
explicit selection and external endpoints. Preserve that guidance while
removing obsolete suppressions. |
| #1620 | microsoft/aspire#19243 — @sebastienros | **Adapted:** AKS
credential-before-Helm cleanup and destructive-operation warning; omit
misleading ambient-context workaround. |
| #1614 | microsoft/aspire#19870 — @sebastienros | **Adopted:** typed
callback handle behavior in extension authoring and article. |
| #1574 | microsoft/aspire#19430 — @mitchdenny | **Adapted:** canonical
hostname inheritance, explicit-host precedence, catch-all default
backend. |
| #1570 | microsoft/aspire#19590 — @karolz-ms | **Adopted:** Dev Tunnel
URL regression troubleshooting. |
| #1565 | microsoft/aspire#19429 — @mitchdenny | **Corrected/adopted:**
Helm embedded parameters with real `refExpr` and `addParameter(name, {
value })`, not stringifying a handle or using an invalid actual-SDK
overload. |
| #1564 | microsoft/aspire#19026 — @karolz-ms | **Corrected/adopted:**
C#/TypeScript Dotnet gateway walkthrough. Retain both experimental
diagnostics; remove obsolete run-only restriction after
microsoft/aspire#19997 publishing support. Avoid imported ambiguous API
reference. |
| #1499 | microsoft/aspire#19248 — @IEvangelist | **Adopted:** describe
exact secret-value redaction and embedded-secret limit; release article
already covered the fix. |

### Important source-verified corrections to proposals / earlier audit
assumptions

-
[`BlazorGatewayExtensions.cs`](https://github.com/microsoft/aspire/blob/e8fd6fbb954f50ccd2e66479538392f65e13e71d/src/Aspire.Hosting.Blazor/BlazorGatewayExtensions.cs):
`AddDotnetProjectBlazorGateway` and the Dotnet `WithBlazorClientApp`
overload still carry `ASPIREDOTNETPROJECT001`; the class carries
`ASPIREBLAZOR001`. They share `WithBlazorClientAppCore`/`WithBlazorApp`
and the publish-companion path. Thus neither blanket diagnostic
retirement nor the proposal's old run-only claim is correct.
-
[`SkillDefinition.cs`](https://github.com/microsoft/aspire/blob/e8fd6fbb954f50ccd2e66479538392f65e13e71d/src/Aspire.Cli/Agents/SkillDefinition.cs)
sets bundled skills' `IsDefault=true`;
[`AgentInitCommand.cs`](https://github.com/microsoft/aspire/blob/e8fd6fbb954f50ccd2e66479538392f65e13e71d/src/Aspire.Cli/Commands/AgentInitCommand.cs)
selects the applicable catalog defaults for both flows. MCP has its own
standalone-only binding.
-
[`TypeScriptAppHostToolchainResolver.cs`](https://github.com/microsoft/aspire/blob/e8fd6fbb954f50ccd2e66479538392f65e13e71d/src/Aspire.Cli/Projects/TypeScriptAppHostToolchainResolver.cs)
is the source for Deno flags and certificate variable; guest Deno
hosting is separate.
- [`Radius
README`](https://github.com/microsoft/aspire/blob/e8fd6fbb954f50ccd2e66479538392f65e13e71d/src/Aspire.Hosting.Radius/README.md)
supplies the resource-specific credential rules and publish diagnostics,
not assumptions about local endpoints.

## Third-party links and affiliations

<!-- List third-party links and disclose material affiliations. -->

Links point to official Microsoft Learn, VS Code Marketplace debugger
extensions, Rust/Cargo/Bacon documentation, Radius documentation, and
source repositories. No sponsorship, commercial endorsement, or
affiliation claim is introduced. Maintainers should supply any personal
affiliation disclosure required by policy; automation has not inferred
one.

## Validation

<!-- List the checks you ran or explain why validation isn't needed. -->

- **97 passing focused unit checks** across API-reference
authoring/rendering, Twoslash blocks, file-tree formatting, CLI
configuration schema, SEO lengths, and resource catalog.
- **82 passing structured-data checks**, including exact integration
mapping uniqueness and page resolution.
- **11 C# samples compile**, zero warnings/errors, using genuine
`13.6.0-preview.1.26473.12` packages. Scope: Rust, Connector Namespace,
Radius, Toolbox, inline CSI, Helm, Blazor gateway, and provisioning.
`Projects.Api/Worker/Client` use compile-only `IProjectMetadata`
stand-ins; no claim of running those apps or provisioning cloud
resources.
- **10 TypeScript samples pass `tsc`** under `strict`, `NodeNext`, and
`ES2022` against three **unmodified actual SDK files**, not just the
site's declaration bundle. The fixture uses the exact `e8fd6fbb` release
`AtsCapabilityScanner` and genuine `26473.12`
TypeSystem/code-generator/integration binaries, whose informational
source is `a11eca96`. This is an isolated local generation fixture,
**not** a claim that official CLI generation or a new packaged release
was tested. An attempted restore with the older handed-off local CLI
could not discover an AppHost server; the bounded direct generator
fixture was used instead.
- The SDK scan is **not globally warning-free**: it reports a Radius
`withContainerImage` collision on `CSharpAppResource` and an App
Configuration `createRoleAssignment` overload collision. None of the
compiled examples calls those colliding methods; the warnings are
retained in evidence, not suppressed, and no generated declarations were
edited.
- Browser: Connector Namespace, Radius, both Rust pages, Foundry
hosting, and What's new return **HTTP 200**, correct headings, and no
rendered Twoslash errors. New guide/article page-local anchors and the
cross-page Blazor anchor resolve. Connector/Radius mobile layouts have
no horizontal overflow; Connector language-tab interaction works.
Standalone Astro preview emits expected `/api/live` 404s because
StaticHost is not running.
- `git diff --check` passes. No production `pnpm build`, cloud
deployment, REPL runtime session, full product suite, or blanket
validation of every pre-existing example was performed.
- Generated C#/TypeScript API data, declaration bundles, integration
catalogs, image catalogs, and contributor data are unchanged. Only the
authored package-to-guide mapping is updated.

**Before merging:** complete the two packaging/REPL checkboxes above,
inspect CI, and obtain human review. This PR intentionally does not
close or merge the source documentation proposals.

---------

Co-authored-by: David Pine <[email protected]>
Co-authored-by: Copilot App <[email protected]>
@karolz-ms
Karol Zadora-Przylecki (karolz-ms) deleted the dev/karolz/project-v2-skill branch September 30, 2026 18:13
David Pine (IEvangelist) pushed a commit that referenced this pull request Oct 1, 2026
…20405)

Backport of #20158 to release/13.6

/cc @karolz-ms

## Customer Impact

## Testing

## Risk

## Regression?

---------

Co-authored-by: Karol Zadora-Przylecki <[email protected]>
Co-authored-by: Copilot App <[email protected]>
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants