Repository navigation
[docs] Update terminal docs for instance-ID replica selection - #1913
Mitch Denny (mitchdenny) merged 2 commits into
Conversation
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]>
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
Alistair Matthews (alistairmatthews)
left a comment
There was a problem hiding this comment.
Please consider my clarified wording suggestion. Then ready to go.
There was a problem hiding this comment.
🟡 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
--replicaoption 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
[partial - phase A: 14 of 14 claims evaluated; phase B: rendered-page checks completed, matching-runtime validation blocked] Documentation accuracy reviewReviewed documentation head 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 verificationNew finding: the matching release source does not yet implement this selection behaviorThe new guidance appears ahead of the actual
Suggested resolution: synchronize/backport the implementation to the release source before publishing this as Existing discovery finding - independently corroborated, not a second requestThe existing Copilot comment already covers all five Full frozen claim catalog and evidenceLocations below are under
Phase B - Independent blind documentation testThe 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 fullDocumentation Test ReportFocus Area: Phase B only: changed multi-replica instance-ID guidance, legacy replica-option compatibility note, and VS Code guidance. SummaryPartial 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.
Critical IssuesNone established by the checks executed. This is not a runtime accuracy sign-off. WarningsWarning 1: Matching runtime unavailableLocation: All three scoped pages. Exact documented commands attempted from the isolated scratch directory: 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 checksLocation: Local documentation server. Suggestion: Do not count links or browser-console cleanliness as passed. These observations were not established as PR regressions. The rendered footer displayed Passed Checks
Recommendations
Knowledge Gaps
Environment and Exact Coverage
Exercised routes: Frozen evidence directory: Principal evidence: Cleanup Confirmation
|
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: Phase A — claims
Phase B — doc-testerNot run; rendering of the changed pages is not browser-checked. 🤖 Posted by aspire.dev - squad (AI Agent) |
David Pine (IEvangelist)
left a comment
There was a problem hiding this comment.
[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
http://localhost:4321/reference/cli/commands/aspire-terminal-attach/- Description,
<resource>, Options, exact-ID example, legacy-compatibility note.
- Description,
http://localhost:4321/reference/cli/commands/aspire-terminal-tape-play/<resource>, Options/legacy note,shell-abc123example.
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
.mddestinations.
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:
- Open
/app-host/with-terminal/, find the exact-instance selection paragraph. - Click its
aspire pslink. - Read the resulting Description, columns, and examples.
- Follow that page's
aspire describecross-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:
- Singleton display-name and singleton exact-ID acceptance.
- Exact resource-instance selection for a replicated attach target.
- Ambiguous display name returning nonzero, enumerating IDs, and never prompting.
- Hidden
-r/--replicahelp surface and functional legacy 0-based selection. - Literal
shell-abc123tape command execution against an actual discovered replica. - Release/17.0
ps/describereturning usable exact resource-instance IDs. - 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
- Priority documentation follow-up: Resolve W1 by teaching the exact instance-ID discovery/copy step at the newly changed guidance.
- Required validation follow-up: Supply a compatible, owned target-release fixture and execute G1; do not approve runtime claims solely from this report.
- 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.
- 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 closesucceeded:Browser 'pr1913' closed.playwright-cli -s=pr1913 delete-datareturned: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 PID45956was 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.
Co-authored-by: Copilot App <[email protected]>

Documents changes from microsoft/aspire#21120
@mitchdennyTarget branch
Targeting
release/17.0based on the source PR milestone17.0.Why this change is needed
PR #21120 changes how
aspire terminal attachandaspire terminal tape playselect 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 viaaspire psoraspire 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<resource>argument, and examples to explain instance-ID based selection.-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<resource>argument description and frontmatter description for instance-ID selection.-r, --replica <index>option and added the same legacy-compatibility note.--replica 0.src/frontend/src/content/docs/app-host/with-terminal.mdx--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
Asidecomponent usage, cross-references).