Skip to content

Consolidate version-aware MTP guidance for agents and CI tools #12275

Description

Problem

The #8824 investigation found that most output proposals are implemented, documented, or declined. Useful guidance is spread across terminal-output, runner-mode, reporting, OpenTelemetry and troubleshooting references. Agent authors need a short, accurate path to run the right host and retrieve complete diagnostics, rather than another output format or guessed flags.

Scope

  • Add a concise, discoverable guide for MTP agent/CI consumers, linking authoritative public documentation rather than duplicating it wholesale.
  • Distinguish ordinary VSTest, MTP through the legacy MSBuild/VSTest wrapper, and native MTP dotnet test; explain which options and output-capture properties apply to each.
  • Separate shipped MTP 2.x behavior from upcoming 3.0 changes. In shipped 2.5.2, captured output defaults to Failed only in detected agent environments; the universal Failed default is an unreleased 3.0 change. Progress is independently controlled.
  • Explain existing diagnostic drill-down, result identity/retries, coarse exit codes, opt-in CTRF/TRX, OTel for live observability, and the limits of telemetry completeness and string truncation versus redaction.
  • Add a pointer from the unmanaged part of root AGENTS.md to repository contribution/build/test instructions. Preserve the curated skills block and keep repository-specific contribution commands distinct from public consumer guidance.

Non-goals

No new JsonReport package, automatic footer, stack-frame deny-list, lossy failure deduplication, arbitrary new error-code catalog, or changes to runner defaults. #8827 already tracks the separate clipped-log retrieval hypothesis and must not be duplicated.

Acceptance

Every example identifies its runner mode and relevant version/extension prerequisites. Verify commands and links against actual source and official documentation, including the oldest applicable supported syntax. Guidance must retain full-diagnostic fallback and not equate a missing result/index or zero exit with proof that all intended tests executed.

Follow-up to #8824. This task is documentation/repository guidance, not a claimed runtime performance or energy improvement.

Activity

  1. added
    area/mtp
    on Nov 9, 2026
  2. Evangelink commented on Nov 9, 2026

    @Evangelink
    MemberAuthor

    Implemented locally in commit e8eef67cd9d53fce18bd42fee436d720114d55b0; it is not pushed and no PR has been opened. This issue remains open pending delivery/merge.

    The new docs/mtp-for-agents.md guide is linked from the documentation index. It distinguishes VSTest, the legacy MTP/MSBuild wrapper and native MTP dotnet test; explains explicit output preferences, shipped 2.x versus upcoming 3.0 behavior, report selection and diagnostic drill-down, result/retry identity, OTel's observability/privacy/completeness limits, and existing exit/completion signals.

    Root AGENTS.md now points contributors to the repository instructions and consumers to the guide. The addition is outside the gh-copilot-curate managed block, whose content was verified unchanged. No runner defaults or product configuration changed.

    Validation: all PowerShell examples parsed successfully, relative documentation links resolved, and git diff --check passed. Command-mode/version statements were checked against source, the v4.5.2 implementation and official documentation. The packed-report regression also exercised native argument forwarding; its discovery explicitly used --list-tests text to avoid optional-format parsing ambiguity.

    This is repository documentation ready for review, not a claim that a new Microsoft Learn page has been published or that the guide produces measured model-cost/energy savings. #8827 retains the separate clipped-log retrieval experiment; no automatic footer is included here.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/mtp

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions