Skip to content

[docs] Update terminal docs for instance-ID replica selection - #1913

Merged
Mitch Denny (mitchdenny) merged 2 commits into
release/17.0from
docs/pr-21120-39332850056-1-277ed85994d58c71
Nov 17, 2026
Merged

Mitch Denny (mitchdenny) merged 2 commits into
release/17.0from
docs/pr-21120-39332850056-1-277ed85994d58c71

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#21120

@mitchdenny

Target branch

Targeting release/17.0 based on the source PR milestone 17.0.

Why this change is needed

PR #21120 changes how aspire terminal attach and aspire terminal tape play select a replica for a multi-replica resource. Instead of prompting interactively or requiring a --replica <index> flag, the CLI now requires an exact resource instance ID (discoverable via aspire ps or aspire describe). An ambiguous display name without an exact instance ID now fails explicitly and lists the available instance IDs, rather than prompting. The legacy -r, --replica <index> option is kept hidden but functional for short-term compatibility with older VS Code extensions and scripts.

The existing docs described the old --replica/interactive-picker behavior, which is now out of date and would mislead readers.

What changed

  • src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx
    • Updated the description, <resource> argument, and examples to explain instance-ID based selection.
    • Removed the visible -r, --replica <index> option and added a note that it's hidden-but-functional for legacy compatibility.
  • src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-tape-play.mdx
    • Updated the <resource> argument description and frontmatter description for instance-ID selection.
    • Removed the visible -r, --replica <index> option and added the same legacy-compatibility note.
    • Updated the example command to use an instance ID instead of --replica 0.
  • src/frontend/src/content/docs/app-host/with-terminal.mdx
    • Updated the multi-replica attach guidance and the VS Code extension section to describe instance-ID selection instead of --replica <index>.

All three files were existing pages that were updated in place; no new pages were created.

Testing

Documentation-only change; no build/test commands were run per repository guidance for docs-only edits. Changes were reviewed for consistency with the doc-writer skill conventions (frontmatter, Starlight Aside component usage, cross-references).

Generated by PR Documentation Check for #21120 · copilot · auto · 81.8 AIC · ⌖ 11.5 AIC · ⊞ 20.4K · ◷

Document that aspire terminal attach and aspire terminal tape play now
select replicas by exact resource instance ID instead of a numeric
--replica index, with the legacy -r/--replica option hidden but still
functional for compatibility.

Co-authored-by: Copilot <[email protected]>
@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Oct 19, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1913. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1913 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please consider my clarified wording suggestion. Then ready to go.

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 discovery instructions recommend aspire ps, which cannot provide the resource instance IDs needed for the documented workflow.

1 open issue
What changed in this PR

Updates the Aspire terminal documentation for the instance-ID replica selection introduced in microsoft/aspire#21120, targeting release 17.0.

Changes:

  • Replaces interactive replica selection and numeric-option examples with exact instance IDs.
  • Documents the hidden legacy --replica option for compatibility.
  • Updates multi-replica and VS Code terminal guidance.
File Description
src/​frontend/​src/​content/​docs/​reference/​cli/​commands/​aspire-terminal-tape-play.mdx Updates playback arguments, example, and legacy-option note.
src/​frontend/​src/​content/​docs/​reference/​cli/​commands/​aspire-terminal-attach.mdx Explains instance selection, ambiguity errors, and compatibility.
src/​frontend/​src/​content/​docs/​app-host/​with-terminal.mdx Updates multi-replica attachment and VS Code guidance.

Review effort: Balanced

@IEvangelist

Copy link
Copy Markdown
Member

[partial - phase A: 14 of 14 claims evaluated; phase B: rendered-page checks completed, matching-runtime validation blocked] Documentation accuracy review

Reviewed documentation head f5df0f72f4b16dfcdfc161038cde3901b906bb12, targeting release/17.0.

Phase A source: microsoft/aspire, release/17.0 at 55867ce9d33c8800e6c7278f7edc5e88e0f6b839. The matching source branch exists, so no fallback branch was used. No Community Toolkit or Azure SDK claims occur in this diff. Fourteen distinct changed behavioral claims were evaluated, consolidating repeated assertions across the three pages: 6 verified, 1 verified-with-nuance, 7 contradicted, 0 unverifiable. No changed Aspire version literals require placeholder review.

Phase A - Claim verification

New finding: the matching release source does not yet implement this selection behavior

The new guidance appears ahead of the actual release/17.0 implementation. This is separate from the already-reported aspire ps discovery issue.

Suggested resolution: synchronize/backport the implementation to the release source before publishing this as release/17.0 behavior, or explicitly gate the docs on that dependency. The referenced microsoft/aspire#21120 merged into main on October 19, 2026; its milestone alone does not establish that the matching release branch contains it. This review uses the actual matching branch, not main, as its behavioral source of truth.

Existing discovery finding - independently corroborated, not a second request

The existing Copilot comment already covers all five aspire ps occurrences. The pinned source confirms it: PsCommand.cs:407-452 renders AppHost paths/status/SDK/PIDs/dashboard, whereas DescribeCommand.cs:340-374 and ResourceSnapshotMapper.cs:338-361 expose unique names for replicated resources. No additional wording/style finding is raised.

Full frozen claim catalog and evidence

Locations below are under src/frontend/src/content/docs/. Source paths are in microsoft/aspire at the pinned release SHA above. Repeated claims share an ID rather than inflating counts.

ID Documentation location and exact claim Type Verdict Source evidence
A1 reference/cli/commands/aspire-terminal-attach.mdx:26,44: "A singleton resource accepts its display name or exact instance ID." CLI surface / behavior Verified ResourceSnapshotMapper.cs:22-25 accepts name or display name; TerminalResourceResolver.cs:26-40,61-64 resolves the singleton.
A2 app-host/with-terminal.mdx:211; attach :26,44,77-80: "attach to a specific one by passing its exact resource instance ID", aspire terminal attach agent-abc123 CLI surface / behavior Contradicted TerminalResourceResolver.cs:34-40,49-82 discards the matched instance identity and selects by index/singleton/prompt instead.
A3 Guide :211; attach :26: "An ambiguous display name ... fails with a non-zero exit code"; "it never prompts for a replica." API behavior Contradicted TerminalResourceResolver.cs:66-82 fails only for redirected input/output in this path; otherwise prompts.
A4 Guide :211; attach :26: "lists the available instance IDs" API behavior Contradicted TerminalResourceResolver.cs:66-82 reports a replica-required error or displays a selection prompt; no instance-ID-list error path.
A5 Guide :211; attach :26,44,77; tape play :40: "Use aspire ps ... to discover instance IDs." CLI surface Contradicted; already reported PsCommand.cs:407-452: AppHost table, not resource instance list.
A6 Same discovery locations: "aspire describe to discover ... IDs." CLI surface Verified DescribeCommand.cs:340-374; ResourceSnapshotMapper.cs:338-361: duplicate display names resolve to unique resource names.
A7 Attach :90: "legacy -r, --replica <index> option to select a replica by its 0-based index ... remains functional" CLI surface / behavior Verified TerminalAttachCommand.cs:49-52,73,83,113-114; TerminalResourceResolver.cs:49-58 matches ReplicaIndex.
A8 Attach :90: "It's hidden from --help" CLI surface Contradicted TerminalAttachCommand.cs:49-52,71-74: visible registered option, no Hidden setting.
A9 Tape play :40: "The resource display name for a singleton, or the exact resource instance ID" CLI surface Verified for singleton TerminalTapePlayCommand.cs:122-123; shared resolver and mapper accept both singleton identifiers. The replicated half is evaluated separately as A10.
A10 Tape play :40,95: "exact resource instance ID for a replica"; aspire terminal tape play shell-abc123 --tape-file shell-smoke.tape --apphost ./apphost.cs --timeout 30 CLI surface / behavior Contradicted for replica selection TerminalTapePlayCommand.cs:122-126; TerminalResourceResolver.cs:34-40,49-82: same selector as attach. Remaining flags in the edited example exist at tape play :35-50,106-108,129.
A11 Tape play :49: "legacy -r, --replica <index> option to select a replica by its 0-based index ... remains functional" CLI surface / behavior Verified TerminalTapePlayCommand.cs:40-43,65,122-123; TerminalResourceResolver.cs:49-58.
A12 Tape play :49: "It's hidden from --help" CLI surface Contradicted TerminalTapePlayCommand.cs:40-43,63-67: visible registered option, no Hidden setting.
A13 Guide :269: "the extension automatically passes the exact resource instance ID so the correct instance is attached." API behavior Verified-with-nuance extension/src/views/AspireAppHostTreeProvider.ts:1501-1516 passes element.resource.name, but still also appends --replica when available. It does not yet rely on ID-only selection on this branch.
A14 Guide :269: "The --apphost flag is included when the current AppHost connection information is available" CLI surface / behavior Verified extension/src/views/AspireAppHostTreeProvider.ts:1503-1506 conditionally adds the AppHost path.

Phase B - Independent blind documentation test

The tester used a separate context with no implementation-source or Phase A access. All three PR pages rendered; 0 critical issues established, 2 warnings, with matching-runtime and exhaustive navigation coverage incomplete. This report is explicitly partial rather than a runtime sign-off. The frozen report follows verbatim.

Independent doc-tester report in full

Documentation Test Report

Focus Area: Phase B only: changed multi-replica instance-ID guidance, legacy replica-option compatibility note, and VS Code guidance.
Date: 2026-10-30
Tester: Independent blind doc-tester agent
PR: microsoft/aspire.dev #1913, targeting release/17.0
Tested ref: f5df0f7
Local URL: http://127.0.0.1:4322/

Summary

Partial validation completed. All three requested pages rendered and their scoped guidance was read in the browser. No critical documentation defect was demonstrated. Release/17.0 runtime behavior was not verified: the installed Aspire CLI is 13.4.0 and rejects the terminal command group. This is an environment limitation, not evidence that the PR guidance is wrong.

Category Result
Rendered pages All three requested routes browsed and captured
Content clarity and consistency Scoped explanations readable and mutually consistent
CLI commands Two documented exact-ID commands attempted; both blocked by unsupported command group
Code examples Not compiled or run
Links Rendered command-link paths inspected; comprehensive navigation/anchor validation incomplete

Critical Issues

None established by the checks executed. This is not a runtime accuracy sign-off.

Warnings

Warning 1: Matching runtime unavailable

Location: All three scoped pages.
Issue: Installed CLI version is 13.4.0+3f0998a95833d5fef96b3159d56b667889b71166. Both terminal help probes returned top-level CLI help rather than terminal-command help.

Exact documented commands attempted from the isolated scratch directory:

aspire terminal attach agent-abc123
exit code: 1
Unrecognized command or argument 'terminal'.

aspire terminal tape play shell-abc123 --tape-file shell-smoke.tape --apphost ./apphost.cs --timeout 30
exit code: 1
Unrecognized command or argument 'terminal'.

The instance IDs in those examples are illustrative. No matching AppHost, Agent project, shell resource, or tape was created. Command parsing failed before those prerequisites could be tested.

Suggestion: Repeat runtime verification in an isolated matching release/17.0 CLI/AppHost/dashboard environment. The global CLI was not replaced, and no staging configuration was applied.

Warning 2: Lightweight dev environment limited navigation checks

Location: Local documentation server.
Issue: The initial browser snapshot timed out; a later snapshot and rendered body-text extraction succeeded. Browser console evidence included 504 (Outdated Optimize Dep) for the Astro dev toolbar, /api/live/ returning 404, and a warning that live updates were disabled. Automated multi-link validation encountered Execution context was destroyed, most likely because of a navigation; a ref-based click also became stale. The exhaustive link/anchor check was stopped rather than retried indefinitely.

Suggestion: Do not count links or browser-console cleanliness as passed. These observations were not established as PR regressions.

The rendered footer displayed SHA 73158d1; it was not used to identify the tested revision. The checked-out Git SHA and the server process command line rooted in this worktree identified the served checkout.

Passed Checks

  1. Actual PR checkout: Fetched upstream refs/pull/1913/head, detached at the requested exact SHA, and verified git rev-parse HEAD. Root bun run dev started this worktree's Astro process on port 4322; the pre-existing service on 4321 was not used.
  2. Guide readability: /app-host/with-terminal/ rendered the changed instruction: “When a resource has more than one replica, attach to a specific one by passing its exact resource instance ID, for example aspire terminal attach agent-abc123.” It also explicitly tells readers to use aspire ps or aspire describe and says ambiguous display names fail and list instance IDs instead of prompting.
  3. Attach-reference consistency: /reference/cli/commands/aspire-terminal-attach/ distinguishes singleton display names from replicated-resource exact IDs, repeats discovery guidance, explicitly describes a non-zero ambiguous-name failure, and shows aspire terminal attach agent-abc123.
  4. Compatibility-note consistency: Both command-reference pages visibly contain the same note: “Older VS Code extensions and scripts may still pass the legacy -r, --replica option to select a replica by its 0-based index. It’s hidden from --help but remains functional for compatibility; new callers should use exact instance IDs instead.” This passed a presentation/consistency check only, not a functional compatibility test.
  5. VS Code explanation: The guide visibly says the extension automatically passes the exact instance ID for multi-replica resources and conditionally includes --apphost when connection information is available. The explanation is readable without inferring the extension implementation.
  6. Tape-reference readability: /reference/cli/commands/aspire-terminal-tape-play/ describes singleton names versus exact replica IDs and visibly shows shell-abc123 in its explicit-AppHost example.
  7. Rendered link formatting, limited scope: The guide's links to terminal attach, terminal ps, and terminal tape play use site-relative paths with trailing slashes. This does not certify every internal link on the three pages.

Recommendations

  1. No source or documentation fix is requested on the basis of this blind run alone.
  2. Before runtime sign-off, test singleton display-name attachment, exact-ID replica attachment and playback, ambiguous-name exit status and listed IDs, legacy -r/--replica acceptance and hidden help behavior, and the VS Code multi-replica context-menu command with and without AppHost connection information.
  3. Complete internal-link and anchor navigation checks in a stable local browser session.

Knowledge Gaps

  • Whether the documented exact-ID selection, ambiguity handling, and hidden legacy option behave as claimed remains unknown in a matching build.
  • VS Code menu visibility, instance selection, and generated --apphost arguments were not observed.
  • No implementation knowledge or another reviewer's findings were used to fill these gaps. No Aspire, CommunityToolkit, or Azure SDK implementation source, GitHub comments, or Phase A results were consulted.

Environment and Exact Coverage

  • Windows 11 Enterprise, version 10.0.26300, x64.
  • Node.js v26.13.0; .NET SDK 10.0.403.
  • Bun initially absent; installed [email protected] under the requested scratch directory after the missing-command failure.
  • playwright-cli 1.59.0-alpha-1771104257000; named session phase-b-1913, headless Chrome.
  • VS Code 1.144.0, commit 2c33b50b16c472efe58357d1d2a8a5414bc23fbf; installed extension [email protected]. Version/extension presence only was checked; no extension interaction was tested.
  • At this PR ref, root bun run dev delegates to pnpm. Its startup automatically populated the previously absent frontend dependencies. No full build or aspire run orchestration was performed.
  • Additional CLI probes: aspire --version, aspire terminal attach --help, and aspire terminal tape play --help. The two help probes displayed top-level help; they did not validate the documented terminal options.
  • All documentation browsing used playwright-cli only. Rendered text was read through its snapshots and browser evaluation, not by reading MDX or implementation source.
  • No terminal AppHost was started; no code sample compiled; no actual resource attachment, tape playback, ambiguous-resource case, replica-index compatibility case, or VS Code terminal action executed.

Exercised routes:

http://127.0.0.1:4322/app-host/with-terminal/
http://127.0.0.1:4322/reference/cli/commands/aspire-terminal-attach/
http://127.0.0.1:4322/reference/cli/commands/aspire-terminal-tape-play/

Frozen evidence directory: C:\Users\dapine\.copilot\session-state\c69996b1-ab5f-410a-90d8-ad80fc26e3c6\files

Principal evidence: phase-b-with-terminal-complete.yaml, phase-b-with-terminal-final.yaml, phase-b-attach.yaml, phase-b-tape-play.yaml, phase-b-cli-version.txt, phase-b-attach-cli.txt, phase-b-tape-cli.txt, and the session's .playwright-cli browser logs. phase-b-links.txt records the unsuccessful comprehensive link-validation attempt; it is not passing evidence.

Cleanup Confirmation

  • Closed only browser session phase-b-1913.
  • Stopped only the dev-server process tree started by this run, using its tracked shell ID 260; its Astro PID 31472 was absent afterward.
  • Port 4322 was no longer listening. The unrelated existing port-4321 listener, PID 23252, remained running.
  • Restored the four tracked .starlight-icons files changed by dev-server generation.
  • Restored original branch ievangelist-review-terminal-replica-docs at 29550055a064c9abea399953414bbd7078c350e9; git status --short was empty.
  • No repository source/docs edits, commits, pushes, GitHub comments, or publication. Scratch evidence and the isolated Bun prerequisite remain in the requested evidence directory.

Copy link
Copy Markdown
Member

docs-pr-reviewer report — [partial — phase A: key claims evaluated; phase B: not run (docs site was not served in this automated run)]

Recommendation: approve

Source used: microsoft/aspire main via merged source PR microsoft/aspire#21120
PR status: non-draft, mergeable, opened 2026-10-19 (not stale)

Phase A — claims

  • ✅ verified: terminal commands select an exact resource instance ID; legacy --replica/-r is still accepted but Hidden = true on aspire terminal attach and tape play (test TerminalCommand_LegacyReplicaOptionsAreAcceptedButHidden).
  • ✅ verified: the VS Code extension passes the instance ID and only falls back to --replica for CLIs without the terminal-instance-selection.v1 capability.

Phase B — doc-tester

Not run; rendering of the changed pages is not browser-checked.

🤖 Posted by aspire.dev - squad (AI Agent)

@IEvangelist David Pine (IEvangelist) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[partial - phase A: 12 of 12 claim contracts evaluated; phase B: browser walkthrough complete, target-release terminal/extension runtime not executed]

Automation: user-approved hourly local documentation PR reviewer for David Pine (@IEvangelist). This is its single combined report for this PR, including partial reviews; it will not automatically repeat after later commits.
Inspected head: f5df0f72f4b16dfcdfc161038cde3901b906bb12; target release/17.0 at a458f6938f46cd80dfcdce2b45df7d0c97cbdb96. All three changed MDX files and the exact changed-file patches were read.
Trusted policy: default-branch doc-pr-reviewer, doc-tester, playwright-cli and relevant Astro guidance at 9bf972c559d50ab5fdc73f0da5318959aa6be757, not PR-head policy. Native doc-pr-reviewer registration was unavailable; the trusted file workflow was invoked as doc-pr-reviewer https://github.com/microsoft/aspire.dev/pull/1913.
Owning source: microsoft/aspire / release/17.0 / 55867ce9d33c8800e6c7278f7edc5e88e0f6b839, the exact matching source branch for CLI, resource mapping and bundled VS Code extension; no fallback. Linked product PR #21120 merged to main, but its metadata was not substituted for this matching-branch implementation.
Claim counts: 12 contracts: 3 verified, 1 verified-with-nuance, 8 contradicted, 0 unverifiable, 0 narrative, 0 not evaluated. Repeated statements retain their related locations rather than inflating counts. C11/C12 assess the literal changed examples and are consequences of C01/C02, not additional independent product defects.
Phase B summary: attach, tape play and WithTerminal changed sections, related discovery links, exact command copying, local Markdown actions, client navigation and 375px presentation: 12 browser-check groups passed, 0 critical, 1 teaching warning, 2 gaps. W1 and G2 describe the same discovery-teaching issue. Three contextual observations have no established PR-regression attribution. The complete independent report appears below.

Why this is a partial COMMENT, not approval

The available CLI reports 13.4.0 and prints top-level help for the two terminal-help probes; those exit-zero results are not successful terminal-command checks. No compatible target17 CLI/AppHost, strictly owned terminal-enabled singleton/replica fixture or matching extension fixture was available. Required attach/ambiguity/help/legacy-playback/discovery/extension scenarios were not executed. No shared application was enumerated or controlled, and no toolchain, AppHost or instance IDs were invented to fill this gap.
The matching source contradicts several changed assertions, but runtime validation remains incomplete. Under the automation instructions this is an explicitly labeled partial COMMENT, not an approval or a completed runtime verdict. Static findings below are pinned code comparisons, not claimed observations from a live terminal.

Phase A - frozen claim verification

Core mismatch: exact Name matching is followed by parent DisplayName canonicalization and a request for all parent terminal replicas. Numeric --replica selection or interactive prompting still follows. Both commands register the replica option without hiding it. The extension passes an instance Name and the legacy numeric index; its sentence is therefore a nuance, not a direct contradiction. On this pin ps lists AppHosts, while describe can display unique instance Names.

C01 - contradicted

C01 - contradicted: An exact resource instance ID alone selects the intended replica for terminal attach.

  The resource display name for a singleton, or the exact resource instance ID for a replica. Use `aspire ps` or `aspire describe` to discover instance IDs. The resource must have been registered with `.WithTerminal()`.

microsoft/aspire release/17.0 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: src/Aspire.Cli/Commands/TerminalResourceResolver.cs:26 matches Name or DisplayName, then :34-40 canonicalizes to the first match's parent DisplayName and queries all parent terminal replicas. It does NOT map the exact matched instance to its replica. :49-58 chooses by explicit numeric index, :61-63 auto-selects only when one terminal replica exists; :66-80 errors for redirected I/O or prompts interactively for multiple replicas. TerminalAttachCommand.cs:113-117 delegates to this resolver and fails if it returns null. ResourceSnapshotMapper.cs:22-25 accepting an exact Name is not sufficient to preserve replica identity after canonicalization.

Please align the ID-only selection guidance with this matching branch, or establish that the intended resolver change has reached it. Matching a snapshot Name is not enough: the resolver then queries all replicas using the parent DisplayName. terminal resolver; attach command.

Scope: Repeated contract across attach Description/Arguments and WithTerminal multi-replica guidance; raw locations retained. No target-version runtime was executed.

Repeated/related locations: src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:45-45; src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:26-26; src/frontend/src/content/docs/app-host/with-terminal.mdx:211-211

C02 - contradicted

C02 - contradicted: Tape playback can select an exact resource instance with only the resource positional argument.

  The resource display name for a singleton, or the exact resource instance ID for a replica. Use `aspire ps` or `aspire describe` to discover instance IDs.

microsoft/aspire release/17.0 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: src/Aspire.Cli/Commands/TerminalResourceResolver.cs:26 matches Name or DisplayName, then :34-40 canonicalizes to the first match's parent DisplayName and queries all parent terminal replicas. It does NOT map the exact matched instance to its replica. :49-58 chooses by explicit numeric index, :61-63 auto-selects only when one terminal replica exists; :66-80 errors for redirected I/O or prompts interactively for multiple replicas. TerminalTapePlayCommand.cs:122-126 uses the same resolver and optional numeric replica flag. The updated frontmatter and argument guidance therefore describe behavior not selected by this branch.

Please retain the branch's numeric replica selection for playback until exact instance identity survives resolution. Both terminal commands share this resolver, so an attach-only documentation change cannot establish tape behavior. terminal resolver; tape-play command.

Scope: Covers changed frontmatter and positional-argument contract; does not dispute unrelated tape execution semantics.

Repeated/related locations: src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-tape-play.mdx:40-40; src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-tape-play.mdx:4-4

C03 - contradicted

C03 - contradicted: An ambiguous display name always exits nonzero, lists instance IDs, and never prompts for a replica.

The command discovers the running AppHost, verifies it supports the `terminals.v1` capability, looks up the resource, and connects to one of its terminal replicas. A singleton resource accepts its display name or exact instance ID. A replicated resource requires an exact instance ID—use [`aspire ps`](/reference/cli/commands/aspire-ps/) or `aspire describe` to discover one. An ambiguous display name without an exact instance ID fails with a non-zero exit code and lists the available instance IDs; it never prompts for a replica.

microsoft/aspire release/17.0 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: src/Aspire.Cli/Commands/TerminalResourceResolver.cs:26 matches Name or DisplayName, then :34-40 canonicalizes to the first match's parent DisplayName and queries all parent terminal replicas. It does NOT map the exact matched instance to its replica. :49-58 chooses by explicit numeric index, :61-63 auto-selects only when one terminal replica exists; :66-80 errors for redirected I/O or prompts interactively for multiple replicas. In non-interactive mode TerminalCommandStrings.resx:30-34 tells the user to pass --replica ; it does not list available instance IDs. In interactive mode the actual code calls PromptForSelectionAsync. Existing TerminalCommandTests.cs:250-290 checks redirected-input failure only, not a universal no-prompt rule; tests were read, not run.

Please distinguish interactive prompting from redirected-I/O failure. This branch still prompts interactively; the non-interactive message requests --replica , not a choice from listed instance IDs. terminal resolver; localized messages.

Scope: Separates redirected-input failure (supported) from the newly asserted universal no-prompt/instance-ID-list behavior (not supported).

Repeated/related locations: src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:26-26; src/frontend/src/content/docs/app-host/with-terminal.mdx:211-211

C04 - contradicted

C04 - contradicted: aspire ps discovers the resource instance IDs needed by the new commands.

When a resource has more than one replica, attach to a specific one by passing its exact resource instance ID, for example `aspire terminal attach agent-abc123`. Use [`aspire ps`](/reference/cli/commands/aspire-ps/) or `aspire describe` to discover an instance's ID. An ambiguous display name without an exact instance ID fails and lists the available instance IDs instead of prompting for a replica.

microsoft/aspire release/17.0 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: src/Aspire.Cli/Commands/PsCommand.cs:23-34 serializes AppHost path/PID/status/SDK/CLI/dashboard information, not resource instance names. :123-157 scans AppHosts and emits those AppHost records. It is not the resource-list command on this branch. DescribeCommand.cs:332-374 does list resources; see C05. No aspire ps invocation against shared applications was run.

Please remove the bare aspire ps alternative for this branch and teach the actual resource-discovery output/value to copy. Its pinned command lists AppHosts, not resource instance names. The describe alternative is separately verified in C05. ps command and output shape; describe resource table. Phase B independently found that the linked discovery path does not demonstrate which value becomes (W1/G2).

Scope: Only the changed discovery recommendation is assessed. A working describe alternative does not verify the advertised ps alternative.

Repeated/related locations: src/frontend/src/content/docs/app-host/with-terminal.mdx:211-211; src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:26-26; src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:45-45; src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:77-77; src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-tape-play.mdx:40-40

C07 - contradicted

C07 - contradicted: The attach legacy -r/--replica option is hidden from --help.

  Older VS Code extensions and scripts may still pass the legacy `-r, --replica <index>` option to select a replica by its 0-based index. It's hidden from `--help` but remains functional for compatibility; new callers should use exact instance IDs instead.

microsoft/aspire release/17.0 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: src/Aspire.Cli/Commands/TerminalAttachCommand.cs:49-52 creates an ordinary Option<int?> with Description and no Hidden=true; :71-74 adds it to the public options. It remains described as required for replicated non-interactive attachment. The claim that it works is separately supported by C09.

Please remove or qualify the hidden-from-help assertion until the matching command actually marks this registered option hidden. The zero-based compatibility behavior is supported separately (C09), so it is specifically the hidden-help claim that conflicts. attach command.

Scope: No conclusion based on another installed CLI version; this is pinned command-definition evidence.

Repeated/related locations: src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:90-90

C08 - contradicted

C08 - contradicted: The tape-play legacy -r/--replica option is hidden from --help.

  Older VS Code extensions and scripts may still pass the legacy `-r, --replica <index>` option to select a replica by its 0-based index. It's hidden from `--help` but remains functional for compatibility; new callers should use exact instance IDs instead.

microsoft/aspire release/17.0 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: src/Aspire.Cli/Commands/TerminalTapePlayCommand.cs:40-43 creates a normal Option<int?> with no Hidden=true; :63-66 registers it. TerminalCommandStrings.resx:57-58 describes the visible zero-based option. The functional/index portion is C09.

Please align the tape command's help note with its ordinary registered option, or establish the intended hiding change on this branch. Functional compatibility is not evidence that an option is hidden. tape-play command.

Scope: No unsupported inference that registering a legacy flag makes it hidden.

Repeated/related locations: src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-tape-play.mdx:49-49

C11 - contradicted

C11 - contradicted: aspire terminal attach agent-abc123 is a working ID-only multi-replica example.

- Attach to an exact instance of a replicated resource (find instance IDs with `aspire ps` or `aspire describe`):

  ```bash title="Aspire CLI"
  aspire terminal attach agent-abc123

microsoft/aspire release/17.0 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: src/Aspire.Cli/Commands/TerminalResourceResolver.cs:26 matches Name or DisplayName, then :34-40 canonicalizes to the first match's parent DisplayName and queries all parent terminal replicas. It does NOT map the exact matched instance to its replica. :49-58 chooses by explicit numeric index, :61-63 auto-selects only when one terminal replica exists; :66-80 errors for redirected I/O or prompts interactively for multiple replicas. TerminalAttachCommand.cs:113-117 passes no implicit replica index for the positional argument. The exact string is a sample placeholder, not a discoverable live ID; after replacing it with a real Name the resolver still loses instance identity at this pin.

Please keep an example that can select a particular replica on the matching branch, or wait for the intended ID-only implementation. Replacing agent-abc123 with a real snapshot Name still canonicalizes to the parent; it does not supply a replica index. This is the example-specific consequence of C01, not an additional implementation defect. terminal resolver; attach command.

Scope: Example-specific consequence of C01, not a separate invented API defect; no literal sample attached to any shared process.

Repeated/related locations: src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:77-80

C12 - contradicted

C12 - contradicted: The tape example selects shell-abc123 without --replica while explicitly selecting AppHost and timeout30.

```bash title="Select an AppHost explicitly"
aspire terminal tape play shell-abc123 --tape-file shell-smoke.tape --apphost ./apphost.cs --timeout 30

microsoft/aspire release/17.0 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: src/Aspire.Cli/Commands/TerminalResourceResolver.cs:26 matches Name or DisplayName, then :34-40 canonicalizes to the first match's parent DisplayName and queries all parent terminal replicas. It does NOT map the exact matched instance to its replica. :49-58 chooses by explicit numeric index, :61-63 auto-selects only when one terminal replica exists; :66-80 errors for redirected I/O or prompts interactively for multiple replicas. TerminalTapePlayCommand.cs:122-126 cannot infer the selected replica from that exact Name. The other shown fields do exist: :35-49 defines required --tape-file, --apphost/--project and integer --timeout; :82-85 accepts30. The unsupported part is dropping numeric replica selection, not the path/timeout flags.

Please retain numeric replica selection in this example until the matching resolver supports the documented ID-only choice. The tape-file, AppHost and timeout arguments exist; the unsupported part is selection of a particular replica from its Name alone. This is the example-specific consequence of C02. terminal resolver; tape-play command.

Scope: Literal sample shape and changed title checked; no AppHost or tape fabricated to claim target runtime success.

Repeated/related locations: src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-tape-play.mdx:94-95

Verified and verified-with-nuance claim catalog

C05 - aspire describe can expose resource instance IDs for replicated resources.

verified

  The resource display name for a singleton, or the exact resource instance ID for a replica. Use `aspire ps` or `aspire describe` to discover instance IDs.

microsoft/aspire release/17.0 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: src/Aspire.Cli/Commands/DescribeCommand.cs:340-374 displays each snapshot using ResourceSnapshotMapper.GetResourceName. ResourceSnapshotMapper.cs:338-356 returns the unique Name when multiple non-hidden resources share DisplayName; :147-150 also preserves Name/DisplayName in JSON output.

Scope: Discovery is supported independently of whether terminal selection consumes the ID correctly. No shared running AppHost was queried.

Locations: src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-tape-play.mdx:40-40; src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:45-45; src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:77-77; src/frontend/src/content/docs/app-host/with-terminal.mdx:211-211

C06 - A singleton resource accepts either its display name or exact instance name.

verified

The command discovers the running AppHost, verifies it supports the `terminals.v1` capability, looks up the resource, and connects to one of its terminal replicas. A singleton resource accepts its display name or exact instance ID. A replicated resource requires an exact instance ID—use [`aspire ps`](/reference/cli/commands/aspire-ps/) or `aspire describe` to discover one. An ambiguous display name without an exact instance ID fails with a non-zero exit code and lists the available instance IDs; it never prompts for a replica.

microsoft/aspire release/17.0 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: ResourceSnapshotMapper.cs:22-25 matches both Name and DisplayName; TerminalResourceResolver.cs:34-40 canonicalizes for terminal lookup, then :61-63 selects the sole returned terminal replica. Both commands delegate to that resolver.

Scope: Conditional on a genuine singleton terminal; not generalized to multiple replicas.

Locations: src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:26-26; src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:45-45; src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-tape-play.mdx:40-40

C09 - The legacy -r/--replica numeric option remains functional and selects a zero-based replica index.

verified

  Older VS Code extensions and scripts may still pass the legacy `-r, --replica <index>` option to select a replica by its 0-based index. It's hidden from `--help` but remains functional for compatibility; new callers should use exact instance IDs instead.

microsoft/aspire release/17.0 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: TerminalAttachCommand.cs:49,73,83,113-114 and TerminalTapePlayCommand.cs:40,65,122-123 parse/register/pass the flag. TerminalResourceResolver.cs:49-58 selects r.ReplicaIndex == index; TerminalCommandStrings.resx:57-58 specifies zero-based indexing. Existing TerminalTapePlayCommandTests.cs:163-198 supplies shell-0 --replica 1 and expects selection of replica1; test source read only.

Scope: Functional numeric selection is verified independently of the contradicted hidden/help and new-ID-only claims.

Locations: src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-attach.mdx:90-90; src/frontend/src/content/docs/reference/cli/commands/aspire-terminal-tape-play.mdx:49-49

C10 - The VS Code extension passes the exact resource instance ID and available AppHost path for correct attachment.

verified-with-nuance

For multi-replica resources, the extension automatically passes the exact resource instance ID so the correct instance is attached. The `--apphost` flag is included when the current AppHost connection information is available, so the command connects without requiring you to specify the AppHost separately.

microsoft/aspire release/17.0 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: extension/src/views/AspireAppHostTreeProvider.ts:1501-1516 starts terminal attach with element.resource.name, appends --apphost when a path exists, AND still appends --replica from terminal.replicaIndex. Thus the exact-ID argument and AppHost flag are present, but correct replica targeting at this pin still relies on the additional numeric flag, not the new ID-only behavior. Do not remove that compatibility detail when explaining this branch.

Scope: The PR does not explicitly say the extension never passes a replica flag, so no direct contradiction is asserted for the extension sentence.

Locations: src/frontend/src/content/docs/app-host/with-terminal.mdx:269-269

Supporting source links: resource Name/DisplayName matching, unique-name presentation, extension command arguments, zero-based option description.

Existing tests read as evidence, not executed: parent canonicalization/non-interactive ambiguity; shell-0 with --replica 1. No product source build or test run is reported as passing.

Current-version placeholders: no newly edited Aspire-version assertion required a placeholder finding; unchanged 13.6 cautions were not audited as new claims.

Discovery reconciliation: Phase B saw --resources in the available old CLI help but explicitly did not infer target-release behavior from it. The recorded release/17.0 PsCommand has only format/follow options and AppHost output; its own pinned implementation supplies C04. Neither an old CLI help surface nor a linked docs page was used as the source of truth for release/17.0.

Context observations: the complete report retains raw-Markdown encoding/component-export caveats, missing local live-status endpoints and screenshot-capture artifacts. No baseline establishes these as PR regressions; no unrelated/shared-UI fix is requested against this PR. No production/full-site build was run.

Phase B - independent source-blind doc-tester report (complete report)

Documentation Test Report — PR #1913, independent Phase B

Focus area: Exact resource-instance selection in resource-terminal documentation.
PR: #1913
Date: 2026-11-03.
Test window: 2026-11-03 06:26–06:31:49 UTC (00:26–00:31:49 UTC−06:00).
Tester: Source-blind doc-tester; sole tester for this PR; no delegation.
Served PR head: f5df0f72f4b16dfcdfc161038cde3901b906bb12, supplied by the coordinator; target release/17.0.
Server: http://localhost:4321/, pre-existing parent-owned Astro server, PID 45956.
Browser: Globally installed playwright-cli, session pr1913, headless Microsoft Edge, in-memory profile, absolute checkout .playwright\cli.config.json.
Evidence directory: C:\Users\dapine\.copilot\session-state\b1028536-a0cc-461b-98cb-21c8f8fc8a89\files\pr-1913-test.

Independence and scope

Read only the supplied changed-file input, trusted workflow policies, browser-rendered documentation/its exposed Markdown actions, and local CLI version/help. No Phase A artifact, product repository, implementation, or product test was consulted. Trusted policies were read with git show at default-branch SHA 9bf972c559d50ab5fdc73f0da5318959aa6be757, not from PR-head policy files:

  • .agents/skills/doc-pr-reviewer/SKILL.md
  • .agents/skills/doc-tester/SKILL.md
  • .agents/skills/playwright-cli/SKILL.md
  • .github/instructions/astro.instructions.md

The supplied head identifies the content under test; footer SHA 73158d1 was observed but not used to identify the PR head. No checkout or server changes were made. PR/page/command material was treated as data, not operational authority.

Actual changed routes exercised

  1. http://localhost:4321/reference/cli/commands/aspire-terminal-attach/
    • Description, <resource>, Options, exact-ID example, legacy-compatibility note.
  2. http://localhost:4321/reference/cli/commands/aspire-terminal-tape-play/
    • <resource>, Options/legacy note, shell-abc123 example.
  3. http://localhost:4321/app-host/with-terminal/
    • Terminals and replicas; Access terminals from VS Code; changed-command cross-references.

Relevant cross-reference stops, inspected only as prerequisites/discovery paths:

  • /reference/cli/commands/aspire-ps/
  • /reference/cli/commands/aspire-describe/
  • /dashboard/terminal-tape-playback/#run-a-shell-smoke-test
  • The three changed routes' exposed .md destinations.

No unrelated terminal lifecycle, telemetry, tape syntax, or dashboard implementation behavior was audited. Existing 13.6 cautions were not turned into placeholder/version findings.

Summary

Outcome: Browser/documentation testing completed; changed runtime behavior remains unvalidated. Do not interpret rendered text, copied commands, or old-version help as runtime success.

Counts: 0 demonstrated critical issues; 1 PR-scoped teaching warning; 12 passed browser-check groups; 2 knowledge/validation gaps. Three context observations are recorded separately and are not asserted to be PR regressions.

Category Passed groups Demonstrated failures Warnings
Content presentation/readability 4 (P3, P4, P5, P8) 0 0
Exact example copying 2 (P6, P7) 0 0
Navigation and related discovery path 3 (P1, P10, P11) 0 1
Page interactions and responsive geometry 3 (P2, P9, P12) 0 0
Changed runtime behavior 0 Not executed; see G1 Not counted as a pass

These are grouped checks, not a claim that twelve runtime scenarios passed.

Critical Issues

None demonstrated within the executed browser scope. The absence of a compatible runtime fixture prevents a conclusion that the changed CLI and extension claims are correct.

Warnings

W1 — The new instance-ID discovery instruction does not teach which output to use

Location: Attach Description/Arguments/Examples; tape-play Arguments; WithTerminal “Terminals and replicas.”
Type: Teaching/discovery path.
Severity: Warning, not a demonstrated CLI failure.

What the changed documentation says:

“A replicated resource requires an exact instance ID—use aspire ps or aspire describe to discover one.”

“Use aspire ps or aspire describe to discover an instance’s ID.”

Reproduction:

  1. Open /app-host/with-terminal/, find the exact-instance selection paragraph.
  2. Click its aspire ps link.
  3. Read the resulting Description, columns, and examples.
  4. Follow that page's aspire describe cross-reference.

What the linked documentation teaches:

“aspire ps provides AppHost-level information.”

The documented default ps columns are PATH, SDK, PID, CLI_PID, and DASHBOARD; the displayed JSON examples contain AppHost paths/process IDs/URLs, not resource instance IDs. The page directs resource inspection to aspire describe --follow.

The describe page says it displays resources' “name, type, state, health status, and URLs.” Its example contains singleton names cache, webfrontend, and apiservice; it does not demonstrate a replica-instance ID or identify which field should replace agent-abc123.

User impact: A new reader following the prominently linked aspire ps path does not learn how to obtain the newly required resource-instance argument. The alternative command is named, but the ID-versus-display-name distinction is not illustrated by the linked examples. This is a documentation-path observation, not proof that either target-release command cannot emit the needed information.

Evidence: ps-discovery-rendered.txt, describe-discovery-rendered.txt, ps-discovery.yml, describe-discovery.yml, with-terminal-text.txt.

Recommended action: At the changed selection guidance, link directly to the applicable discovery recipe and show the exact target-release invocation, a replica-bearing output example, and the field/value to copy. If ps requires an additional option/output format, spell that out rather than leaving only the bare command. Confirm the invocation using a compatible owned fixture; no option is guessed here.

Passed Checks

P1 — Initial page availability

All three changed routes returned HTTP 200 on independent initial loads and had the expected page titles. Recorded initial-load timestamps: attach 06:28:28Z, tape 06:28:30Z, WithTerminal 06:28:36Z. Evidence: browser-checks.json, the three *-desktop.yml snapshots.

P2 — Client-navigation initialization

Followed visible content links through WithTerminal → attach → tape play → WithTerminal. After each client navigation, the title and Copy Markdown title matched the destination, not the previous page. Exact-command copy also worked on the two reference pages after navigation. Evidence: client-checks.json.

P3 — Attach selection explanation renders coherently

The HTML page displays:

“A singleton resource accepts its display name or exact instance ID.”

“An ambiguous display name without an exact instance ID fails with a non-zero exit code and lists the available instance IDs; it never prompts for a replica.”

This is a presentation check only; no ambiguity scenario was executed. Evidence: attach-rendered.txt.

P4 — Argument placeholders remain literal and readable

Both CLI pages show the literal <resource> argument followed by the singleton-display-name/exact-instance-ID distinction. Angle brackets were not swallowed as HTML. Checked at desktop and 375-pixel width. Evidence: client-checks.json, attach-mobile-arguments.png, tape-mobile-arguments.png.

P5 — Visible option removal and legacy notes are consistent

Attach no longer presents --replica as an ordinary Options entry. Tape play renders the compatibility information as a Note rather than a standalone supported-option entry. Both display:

“Older VS Code extensions and scripts may still pass the legacy -r, --replica option to select a replica by its 0-based index. It’s hidden from --help but remains functional for compatibility; new callers should use exact instance IDs instead.”

The note and its 0-based qualifier remain readable on mobile. This does not verify help hiding or compatibility execution. Evidence: client-checks.json, attach-mobile-legacy-paragraph.png, tape-mobile-legacy.png.

P6 — Attach exact example copies byte-for-byte

The rendered example's ordinary copy button produced exactly:

aspire terminal attach agent-abc123

Verified on an initial load and again after client navigation. Evidence: attach-copy-markdown.txt, client-checks.json.

P7 — Tape exact example copies byte-for-byte

The rendered example's ordinary copy button produced exactly:

aspire terminal tape play shell-abc123 --tape-file shell-smoke.tape --apphost ./apphost.cs --timeout 30

Verified on mobile and after client navigation. This command was copied, not executed. Evidence: mobile-changed-checks.txt, client-checks.json.

P8 — Changed WithTerminal guidance is present on desktop/mobile

The replica paragraph includes the exact-ID example and failure-instead-of-prompt wording. The extension paragraph states:

“For multi-replica resources, the extension automatically passes the exact resource instance ID so the correct instance is attached.”

Both changed paragraphs were read in the browser and captured independently at 375-pixel width. No live VS Code action was tested. Evidence: with-terminal-desktop.png, with-terminal-mobile-paragraph.png, with-terminal-mobile-extension-paragraph.png, mobile-paragraph-check.txt.

P9 — Responsive geometry and code scrolling

At 1440×900, document width was 1440; at 375×812, document width was 375 on each changed route. Long code blocks used local horizontal scrolling rather than widening the page. The tape exact-ID block measured client width 341 and scroll width 1052; setting its scroll position to the end reached scrollLeft=711. Copied command text retained all trailing arguments. Paragraph-level mobile readability was visually checked. Screenshot-capture limitations are recorded under C3 rather than hidden behind this geometry pass. Evidence: browser-checks.json, mobile-changed-checks.txt.

P10 — Section/TOC targets resolve

Checked 100 collected named in-page hash links (including duplicated responsive TOC/heading controls) across the three pages: 24 attach, 27 tape, 49 WithTerminal; zero missing target elements. Clicked visible Examples links on both CLI pages and Terminals and replicas on WithTerminal, reaching the corresponding hashes. Evidence: browser-checks.json. This is not a full-site link audit.

P11 — Scoped cross-reference stops load

Content-link navigation among all three changed routes succeeded. The new aspire ps link reached its reference page; the next aspire describe link also loaded. Tape play's “complete shell smoke test and resource setup” link reached the actual “Run a shell smoke test” heading. W1 concerns the discovery instructions, not a broken URL. Evidence: client-checks.json, ps-discovery-rendered.txt, describe-discovery-rendered.txt.

P12 — Local page actions expose the changed content

On all three changed pages, Copy Markdown returned the current page and preserved its new exact-ID guidance. Open → View in Markdown opened the expected local .md route in a new tab; the tab's body contained the changed text. Only these local actions were exercised. No AI-provider/share link was opened or sent page content.

For safe inspection, navigator.clipboard.writeText was intercepted inside the isolated in-memory test context and its requested text captured. No existing system clipboard content was read, and OS clipboard persistence was not claimed. Raw Markdown encoding/component-export caveats are under C1. Evidence: browser-checks.json, attach-copy-markdown.txt.

Executed CLI probes versus unexecuted tests

All CLI probes ran from the owned evidence directory, outside the checkout. The only aspire found on PATH was C:\Users\dapine\.aspire\bin\aspire.exe.

Executed command Exit Actual observation
aspire --version 0 13.4.0+3f0998a95833d5fef96b3159d56b667889b71166
aspire terminal attach --help 0 Printed top-level CLI help, not terminal-attach help
aspire terminal tape play --help 0 Printed top-level CLI help, not tape-play help
aspire ps --help 0 Printed ps help, including --resources described as JSON-only
aspire describe --help 0 Printed describe help, including --apphost and output-format options

Evidence: cli-probes.json, cli-paths.txt, cli-version.txt, cli-*-help.txt.

These safely probe available capability; none establishes the surface or behavior of release/17.0. In particular, exit zero from the two old-CLI terminal-help probes is not a successful terminal-command test, and the old --resources help is not evidence that a specific target-release discovery recipe is correct.

Not executed: Any unqualified aspire ps/describe; any attach/play command without --help; AppHost discovery; real terminal input; an AppHost/template setup; product build/run; VS Code extension interaction. No user's running application or terminal was enumerated or controlled.

Knowledge Gaps / Missing Validation

G1 — Compatible target-release CLI and an owned running fixture

What I needed: A CLI/AppHost pair compatible with the supplied release/17.0 target, an independently owned terminal-enabled singleton and replicated fixture, and a matching extension fixture for live extension checks.

Available evidence: The PATH CLI identifies itself as 13.4.0 and does not provide specific terminal help. No compatible running owned fixture was supplied. The linked rendered smoke-test setup instructs aspire init, then an AppHost using executable /bin/bash and WithTerminal(), followed by aspire run; it does not supply an already compatible target17 fixture for this environment.

Source of knowledge: User-provided target/environment constraints, observed CLI output, and rendered prerequisite documentation—not product internals. I did not silently substitute a different version, synthesize instance IDs, or repurpose the parent/user AppHost.

Why I stopped runtime work: A compatible fixture could not be established from the available CLI/help and documented setup without introducing an unapproved toolchain/install/update or risking shared state. No new tools/global CLI, update/self-update, store changes, containers/cloud, certificates/trust changes, or product-source build were attempted. This is an environment/validation blocker, not a proven documentation defect.

Still unvalidated, explicitly:

  1. Singleton display-name and singleton exact-ID acceptance.
  2. Exact resource-instance selection for a replicated attach target.
  3. Ambiguous display name returning nonzero, enumerating IDs, and never prompting.
  4. Hidden -r/--replica help surface and functional legacy 0-based selection.
  5. Literal shell-abc123 tape command execution against an actual discovered replica.
  6. Release/17.0 ps/describe returning usable exact resource-instance IDs.
  7. VS Code passing the exact instance ID and the described AppHost argument.

Recommendation: Re-run these seven scenario groups using a supplied compatible CLI/AppHost and a strictly owned fixture before considering the changed runtime claims independently tested. These placeholders must be replaced with actual fixture-discovered IDs, as the prose instructs.

G2 — Recognizing the exact instance-ID value

What I needed: A documented mapping from a discovery result field to the <resource> argument, with at least one multi-replica output example.

Source of knowledge: This mapping was not present in the rendered path I followed; I did not infer it from prior knowledge or the old CLI. The literal agent-abc123 is an example, not an observed resource ID.

User impact and recommendation: See W1. Add or link the minimal discovery recipe and annotated output. This gap and W1 are the same teaching problem, not two independent defects.

Context observations — not established PR regressions

C1 — View in Markdown has an encoding caveat; export is not expanded HTML content

The local attach .md destination returned HTTP 200 with Content-Type: text/markdown and no charset. Edge reported document.characterSet as windows-1252; the new em dash rendered as:

A replicated resource requires an exact instance ID—use

The HTML page and Copy Markdown's captured text had the correct em dash. The WithTerminal Markdown view also contained mojibake in Unicode text. Markdown export retained component syntax such as:

<Include relativePath="reference/cli/includes/option-help.md" />

rather than the HTML-expanded shared help option. The changed ASCII command strings and compatibility guidance remained present. Reproduction: Open → View in Markdown on attach; inspect the new description sentence, then compare Copy Markdown/HTML.

Evidence: markdown-encoding.txt, browser-checks.json, attach-copy-markdown.txt. No baseline was loaded, so this is not attributed to this PR or counted as a PR-scoped warning. Investigate separately if the Markdown action is intended as fully readable plain-text documentation. Any control-bearing mojibake quoted elsewhere should use visible escaped code points, not literal C1 control characters.

C2 — Local live-status endpoints are absent

Browser console logged 404s for /api/live/ and /api/live/stream/, plus:

“[live-status] Live API not found (404); live updates disabled until reload.”

The changed pages and tested controls still loaded. Evidence: .playwright-cli\console-2026-11-03T06-28-44-024Z.log. No baseline/production comparison was performed; not attributed to the PR.

C3 — Some scrolled viewport screenshots have capture artifacts

Some long-page viewport screenshots showed blank lower regions or composited/ghosted content, despite DOM hit-testing and bounding boxes identifying the expected paragraph in the viewport. For example, mobile-instant.txt records the changed paragraph at x=16, y≈139.64, width=343, height≈287.97 before and after the capture; the corresponding viewport image did not faithfully show that region.

Focused element capture with-terminal-mobile-paragraph.png did render the full changed paragraph legibly, as did with-terminal-mobile-extension-paragraph.png. Argument/legacy-note captures also demonstrate readable wrapping. Do not use the inconsistent whole-viewport captures as either proof of a page regression or proof of perfect visual rendering. The exact-code block capture likewise is not evidence of runtime execution. No baseline or alternate browser was used.

Recommendations

  1. Priority documentation follow-up: Resolve W1 by teaching the exact instance-ID discovery/copy step at the newly changed guidance.
  2. Required validation follow-up: Supply a compatible, owned target-release fixture and execute G1; do not approve runtime claims solely from this report.
  3. Separate context follow-up: Investigate the raw Markdown encoding/component export and screenshot-capture behavior independently, without attributing them to the PR absent baseline evidence.
  4. No product issue asserted: This source-blind run establishes no implementation defect. No source inference, guessed CLI option, fabricated fixture, or placeholder-version finding is supplied.

Cleanup and persistence

  • playwright-cli -s=pr1913 close succeeded: Browser 'pr1913' closed.
  • playwright-cli -s=pr1913 delete-data returned: No user data found for browser 'pr1913'. The session used an in-memory profile.
  • No other browser session/process was closed or modified.
  • At 2026-11-03T06:31:49.5476976Z, the parent Astro server still returned HTTP 200 and PID 45956 was present.
  • Checkout, server, global toolchain, user AppHosts/terminals, trust stores, browser databases, OS/proxy settings, and external services were left untouched.
  • No test AppHost/project was created. Evidence and this UTF-8 report are deliberately retained outside the checkout.
  • No GitHub post or coordinator message was sent. Report frozen after the recorded checks and cleanup.

Cleanup evidence: cleanup-close.txt, cleanup-delete-data.txt, cleanup-server-check.json.

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.

🟢 Approval recommended

No active review issues are reported for the documentation update aligning terminal selection guidance with Aspire 17.0 instance IDs.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@mitchdenny
Mitch Denny (mitchdenny) merged commit 7ed8ae1 into release/17.0 Nov 17, 2026
18 checks passed
@mitchdenny
Mitch Denny (mitchdenny) deleted the docs/pr-21120-39332850056-1-277ed85994d58c71 branch November 17, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants