[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699GZ6E2SH49Q83YMGHYHXB":3,"skill-same:01M699GZ6E2SH49Q83YMGHYHXB":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":31,"publishedAt":55,"linkOnly":56,"markdownContent":57,"markdownBody":58,"frontMatter":59,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":6,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M699GZ6E2SH49Q83YMGHYHXB","code-review",null,"Review pull requests for MSTest and Microsoft.Testing.Platform with TestFx-specific checks. Use for every GitHub Copilot code review in this repository, with extra scrutiny for tests, public APIs, analyzers, MSBuild, localization, and agentic workflows.","microsoft\u002Ftestfx","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699C71CJ91B5WZ3AXG3GG2M",1059,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcode-review\u002FSKILL.md",[18,23,26],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000007","代码审查","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":27,"categoryName":28,"taxonomyType":29,"taxonomyTypeDesc":30},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,9,52,53,54],"review","code review","code","copilot","for","with","localization","tests","platform","use","public","extra","repository","pull","agentic workflows","msbuild","github copilot","mstest","pull requests","workflows","agentic","github","testing","2026-11-10 10:12:30",false,"---\nname: code-review\ndescription: Review pull requests for MSTest and Microsoft.Testing.Platform with TestFx-specific checks. Use for every GitHub Copilot code review in this repository, with extra scrutiny for tests, public APIs, analyzers, MSBuild, localization, and agentic workflows.\n---\n\n# TestFx Code Review\n\nReview the pull request as a maintainer of MSTest and Microsoft.Testing.Platform.\nRead `.github\u002Fcopilot-instructions.md` first and treat it as authoritative.\n\nFocus on defects introduced by the pull request. Do not report pre-existing\nissues, speculative concerns without a concrete failure mode, or style\npreferences already enforced by automation. Read enough surrounding code and\ntests to understand the changed behavior before commenting.\n\n## Review process\n\n1. Identify the product area from the changed paths:\n   - `src\u002FPlatform` and related tests: Microsoft.Testing.Platform and extensions.\n   - `src\u002FTestFramework`: the public MSTest framework API.\n   - `src\u002FAdapter`: MSTest adapters and platform services.\n   - `src\u002FAnalyzers`: Roslyn analyzers and code fixes.\n   - `src\u002FPackage\u002FMSTest.Sdk`, `eng`, and MSBuild files: build and packaging.\n2. Trace each behavior change through its callers, tests, target frameworks,\n   shipped packages, and linked source files. Apply the context checks below\n   before treating a checklist match as a finding.\n3. Compare the PR title and description with the actual diff. Verify that the\n   stated motivation, behavior change, compatibility impact, and validation\n   match what the code does. Apply **Feature decisions and delivery evidence**\n   below, including when the PR provides no design rationale.\n4. Check changed behavior and related tests against the test-review guidance\n   below, including unchanged tests protecting source-only changes. Include\n   revision-bound test-value evidence in the review summary.\n5. Report only actionable findings caused by the PR. Prefer a small number of\n   high-confidence findings over broad summaries or praise.\n6. If the change is correct, do not invent a finding merely to leave feedback.\n\n## Context checks before a finding\n\nKeep comprehensive analysis separate from publication. Check every applicable\ndimension, but treat checklist matches and test grades as investigation inputs,\nnot automatic instructions to comment.\n\n- Read the whole type, including other partial declarations, inherited\n  behavior, helpers, and callers. Before calling a member or P\u002FInvoke unused,\n  search references across that context and every linked-source consumer;\n  absence of a call in the changed file is not evidence of dead code.\n- Compare merge-base and HEAD behavior, not just added lines. A moved or\n  extracted block that preserves behavior does not introduce its old defects.\n  Report it only if the move changes a concrete contract, caller, ordering,\n  or compilation context.\n- Derive supported TFMs, conditional compilation, polyfills, and language\n  versions from the owning projects and linked consumers. A proposed edit\n  must work on the oldest relevant target, not just the reviewer's runtime.\n- Verify asserted BCL semantics against official documentation, versioned\n  implementation source, or a focused repro on the relevant target. Do not\n  infer a concrete type's disposal, cancellation, buffering, or thread-safety\n  behavior from a base type or a familiar API name. If verification is\n  unavailable, record the uncertainty rather than asserting a defect.\n- For races and lifetime defects, trace ownership, all reads\u002Fwrites, and\n  happens-before relationships (locks, task completion, channels, publication,\n  and serial lifecycle phases). A mutable field, ordinary collection, or\n  missing `using` is not itself proof of a race or leak.\n- Preserve trusted internal invariants unless a concrete external trigger or\n  failing test disproves them. Put validation at the actual trust boundary;\n  do not suggest silent recovery just because an invariant could hypothetically\n  be violated.\n\n## Review publication\n\n- Publish review feedback as one pull-request review per run. Stage actionable\n  line findings as inline review comments, then bundle them with the final\n  review submission.\n- Put PR-level findings, scope and description feedback, dependency assessments,\n  specialist-review summaries, and overflow findings in the final review body.\n  Do not post separate top-level PR comments for review content.\n- Include a compact `Confidence at a glance` section with one color-coded,\n  collapsed block per applicable review scope. Keep the detailed dimensions as\n  an internal coverage checklist; do not publish one status row per dimension.\n- Lead with measurable reviewer actions when action is needed. Keep detailed\n  line-level evidence in inline comments rather than repeating it in the final\n  review body.\n- Do not duplicate a finding already covered by another live review thread.\n  Reference the existing thread from the review body when it remains the only\n  actionable item.\n- Group findings by root cause, observable consequence, and correction, not by\n  file, locale, test, or review dimension. Use one representative changed-line\n  anchor and list other affected locations compactly. Separate findings only\n  when they require different corrections or have materially different impact.\n- Before publishing, read existing review threads and replies, including\n  human and other-bot findings. Match the root cause even if the line moved,\n  the wording differs, or no workflow marker exists. A new HEAD or outdated\n  anchor alone does not justify repeating an unresolved, still-applicable\n  finding. Reopen a resolved or declined concern only with new evidence that\n  addresses the earlier disposition.\n- Keep per-test grades and rubric-only improvements in the combined review\n  summary. A below-A grade is not a defect or an inline-publication threshold;\n  do not add assertions, churn, or unsupported modernizations just to raise it.\n- For automatic specialist checks that are fully clean, prefer `noop` when the\n  main review already covers that dimension. Explicit slash-command reviews may\n  still publish an informational `COMMENT` review. The test-quality workflow\n  also reports test-value evidence for each eligible PR head, even without\n  actionable findings; only a duplicate report for that head may be suppressed.\n\nThese instructions govern reviewers that load this repository guidance.\nSeparate code-quality-service findings may not consume it; identify the\nproducer before attributing its output to this skill or claiming a policy\nchange will affect that service.\n\n## PR scope and review depth\n\nBe constructively critical. Challenge the change's assumptions, failure modes,\nand claimed validation rather than accepting the implementation or description\nat face value. Criticism must still identify concrete evidence and impact; do\nnot manufacture objections for the sake of sounding rigorous. Every criticism\nmust meet the concrete-scenario and observable-consequence bar in\n`Finding quality`.\n\n- Check whether the PR combines independent features, refactors, fixes, or\n  formatting changes that have different motivations or could be reviewed,\n  reverted, and shipped separately. When this materially obscures behavior or\n  increases review risk, recommend splitting the PR and identify the distinct\n  change groups.\n- Check that every material diff is explained by the PR description and that\n  every claimed behavior is implemented. Flag hidden scope, stale claims,\n  understated compatibility or operational impact, and validation claims not\n  supported by the changed tests or available evidence. A missing or brief\n  description is not itself a defect; raise it only when it hides material\n  behavior, compatibility impact, or an unsupported claim.\n- Distinguish necessary supporting changes from unrelated cleanup. Do not\n  request a split merely because a coherent change spans many files or product\n  layers.\n- Put scope, description-alignment, split, and additional-review feedback only\n  in the top-level review summary, never on an arbitrary changed line.\n- Request an independent multi-model review sparingly, only for high-blast-\n  radius changes such as:\n  - Wire-level IPC contracts or serialization protocols shared with external\n    clients.\n  - Structural redesigns of core test-execution scheduling, synchronization,\n    cancellation, or `ExecutionContext` propagation.\n  - New process-launch, arbitrary-code-execution, privilege, or other security\n    boundaries.\n  - Cross-product changes with independent compatibility or rollback risks.\n- Do not request a multi-model review for routine public API additions, bug\n  fixes, analyzer changes, adapter features, or test-only changes. Put the\n  request in the review summary and name the exact failure mode, compatibility\n  concern, race, or attack surface the additional models should examine.\n\n## Feature decisions and delivery evidence\n\nUse [feature-delivery](..\u002Ffeature-delivery\u002FSKILL.md) as the evidence contract,\nnot permission to implement, run untrusted PR code, upload media, or publish\nadditional comments. Read linked decision records and available run artifacts;\nauthor claims and a checked template box are not execution proof.\n\n- For new features, check that the versioned design\u002FRFC\u002Fdecision record captures\n  sources, approaches actually tried and results, alternatives, assumptions,\n  and why the chosen direction won. Compare it with the diff and revision history.\n  Do not assume an absent rationale means the design is wrong.\n- Challenge material design choices even when no explanation was provided:\n  trace consumers and constraints, compare the existing\u002Fno-change design and\n  a simpler alternative, and examine ownership\u002Flifecycle, failure\u002Fcancellation,\n  compatibility, observability, and unnecessary public APIs\u002Fabstractions.\n  Ask for the specific missing contract or evidence when a consequential\n  assumption cannot be established. Do not demand an arbitrary redesign.\n- Check demonstrations for user-visible features, including terminal\u002Freport\n  changes: actual screenshots or short GIF\u002Fvideo where practical, captions,\n  reproduction steps, source\u002Fpackage provenance, and accessible text.\n  Accept a clearer transcript\u002Fartifact or an explained unavailable\u002Finapplicable\n  capture. A diagram alone is not a running-feature demonstration; media is not\n  test execution or shipping-product proof. Never request public sensitive data.\n- Check the feature's requirement-to-consumer matrix against exact automated E2E\n  cases and final consumed output. Credit existing coverage. Formatter\u002Funit tests\n  or correct HTML do not prove another reporter's external identities\u002Fgrouping;\n  verify per-result names, counts, and metadata association at each changed\n  boundary. Do not demand a full product matrix for an unaffected surface.\n- For output\u002Flayout changes, distinguish actual rendered checks from HTML\u002FJSON\n  source assertions or captured publishing payloads. Look for representative\n  dimensions, relevant long\u002Fescaped-content states, readable labels, aligned\n  rows, reachable controls, and exercised interactions. An inaccessible hosted\n  UI or IDE remains an explicit gap, not a claimed pass or permission to access\n  it. Review available captures\u002Fartifacts; do not execute PR code to fill gaps.\n- For behavioral regression coverage, verify the same tests\u002Fassertions\u002Fselection\n  were retained without the production change, executed, and failed at the\n  intended assertion, then executed and passed with it. Check source states,\n  commands, exits, identities\u002Fcounts, and artifacts; repack\u002Fprovenance matters\n  for package consumers. Build\u002Frestore\u002Flaunch failures, skips, and zero tests\n  are not red-phase proof. A compiling behavior-removal\u002Fmutation check is valid\n  when accurately labeled; a new API's baseline compilation failure alone is not.\n- Accept green\u002Fgreen equivalence for behavior-preserving changes. For a test-only\n  safety net protecting correct behavior, look for a relevant compiling mutation\n  demonstrating sensitivity. Documentation-only changes need no product red\u002Fgreen\n  or media. Mark infeasible behavioral comparisons as sensitivity unproven.\n- Judge titles by descriptive accuracy, not `[feat]` or other category prefixes.\n  Preserve existing automation prefixes; do not infer compatibility from a tag.\n\nPut material missing decision, demonstration, or regression evidence in the\nreview summary with the exact gap and smallest useful follow-up. Missing evidence\nis not a proven code defect, does not justify an apply-ready inline suggestion,\nand must not trigger `REQUEST_CHANGES` solely because a record or media is absent.\nAvoid ceremonial documentation demands when evidence is already available.\n\n## Core TestFx checks\n\n- Preserve backward compatibility for public APIs, protocols, command-line\n  options, package behavior, and analyzer diagnostics.\n- Treat overload additions as potentially source-breaking. Check representative\n  call shapes and older supported language versions, not only the repository's\n  preview language version.\n- New public API must be minimal, documented, MUST NOT use `init`, and be\n  recorded in the relevant `PublicAPI.Unshipped.txt`. Also check internal API\n  baselines in projects that track them.\n- Every API marked `[Experimental]` must include this sentence in its XML\n  documentation `\u003Cremarks>`: `This API is experimental. It may change, break,\n  or be removed at any time without notice.`\n- Check every target framework affected by the change. Do not assume an API\n  available on modern .NET exists on older targets.\n- Review concurrency and lifecycle ordering carefully. Test execution is\n  parallel, and shared mutable state, cancellation, disposal, and\n  `ExecutionContext` flow are common correctness boundaries.\n- For shared or linked source, identify every consuming project and ensure API\n  baselines and behavior remain consistent in all of them.\n- User-facing strings belong in resources. Never accept manually edited XLF\n  files. Every `{Locked=\"...\"}` token must occur verbatim in the corresponding\n  value; verify it does not accidentally lock a substring of a translatable\n  word.\n- CLI option changes must update the matching `--help` and `--info` acceptance\n  expectations, including punctuation and alphabetical ordering.\n- Packable projects need valid package descriptions and `PACKAGE.md`.\n- Never accept manual changes under `eng\u002Fcommon\u002F`; those files are mirrored\n  from `dotnet\u002Farcade` and overwritten by automation.\n- Do not weaken `ApplicationStateGuard.Unreachable()`, `Debug.Assert`, or\n  explicit invariant throws into silent fallbacks, warnings, or empty returns\n  without a concrete external trigger or failing test that disproves the\n  invariant.\n- Workflow, script, issue-template, and policy changes that create or triage\n  issues must use native GitHub Issue Types and must not introduce the\n  deprecated `type\u002Fbug`, `type\u002Ffeature`, or `type\u002Ftask` labels.\n- Do not allow untracked `TODO` comments.\n\n## Security checks\n\nReview changed trust boundaries for concrete security regressions. Pay particular\nattention when the change handles paths, process arguments, environment\nvariables, protocol messages, serialized data, logs, artifacts, credentials,\nreflection, extensions, or arbitrary user test code.\n\n- Ensure untrusted file and directory names cannot escape the intended root\n  through traversal, rooted paths, alternate separators, or symlink behavior.\n- Ensure process launches preserve argument boundaries and do not concatenate\n  untrusted values into a command line, shell command, or executable path.\n  Check executable resolution, working-directory selection, inherited\n  environment variables, and assembly or plugin search paths.\n- Validate untrusted protocol and serialized input before using it, including\n  message type, required fields, payload and collection bounds, and unsupported\n  values. Reject unsafe polymorphic or binary deserialization of untrusted data.\n- Treat reflection, user callbacks, test methods, data sources, extensions, and\n  assembly discovery as hostile-code boundaries. Ensure exceptions are\n  contained appropriately, cancellation and timeouts remain enforceable, and\n  user-controlled input cannot cause unbounded memory or resource growth.\n- Do not expose secrets, tokens, environment values, private paths, or sensitive\n  test data through logs, exceptions, reports, artifacts, telemetry, or\n  temporary files.\n- Check that temporary files and artifacts use safe locations, appropriate\n  access, collision-resistant names, and reliable cleanup.\n- Treat workflow permission, network access, action pin, and secret-handling\n  changes as security boundaries; reject unnecessary privilege expansion or\n  mutable third-party references.\n- For dependency changes, check whether the new package or version introduces a\n  known vulnerability, unexpected runtime asset, or broader transitive surface.\n  Use authoritative evidence such as official advisories, NuGet metadata, and\n  upstream release notes; preserve uncertainty rather than guessing.\n\nReport a security finding only when the changed code creates a plausible attack\nor disclosure scenario with an observable consequence. Defensive coding belongs\nat actual external boundaries; do not request blanket hardening of trusted\ninternal invariants without a concrete external trigger.\n\nFor a suspected vulnerability or security-driven dependency update, do not put\nproofs of concept, attacker payloads, exploit steps, CVE details, affected\nversion ranges, or other actionable vulnerability details in public review\ncomments or PR metadata. Leave at most a minimal public note and follow\n`SECURITY.md` and the repository's private reporting process.\n\n## Test changes\n\nFor changed behavior and related test code, apply\n[testfx-test-value-evidence](..\u002Ftestfx-test-value-evidence\u002FSKILL.md), which applies\nthe vendored upstream skill. Report whether a concrete\npre-fix behavior or buildable feature ablation is detected, and whether the\ncorrect implementation passes. Read-only reviewers use explicitly labeled\nstatic predictions unless matching execution evidence is available. Missing\nevidence is a summary limitation, not automatically a defect. Do not publish\npredicted mutation kills as executed measurements.\n\nFor changed test code, also apply the relevant rules from:\n\n- `.agents\u002Fskills\u002Ftest-anti-patterns\u002FSKILL.md`\n- `.agents\u002Fskills\u002Fassertion-quality\u002FSKILL.md`\n- `.agents\u002Fskills\u002Ftest-gap-analysis\u002FSKILL.md`\n\nUse those files as review checklists, not as a request for a repository-wide\naudit. Keep analysis scoped to the changed behavior and its directly related\ntests.\n\nIn particular, verify:\n\n- Tests would fail if the production behavior were wrong; reject missing,\n  tautological, self-comparing, or only-trivial assertions.\n- Check actual red\u002Fgreen or deliberate-mutation evidence under **Feature decisions\n  and delivery evidence**, not only a hypothetical claim that the test would fail.\n- Async assertions and operations are awaited.\n- Deterministic multiline output is checked with one exact raw-string\n  (`\"\"\"...\"\"\"`) expectation, not multiple substring assertions or escaped\n  line breaks. Where surrounding output is genuinely variable, match a\n  complete deterministic raw-string block rather than individual lines.\n  Preserve ordering, indentation, blank lines, and trailing newlines.\n  Normalize both operands when platform-native output line endings can differ\n  from the source checkout's raw-string line endings.\n- Tests are isolated under parallel execution and restore environment, culture,\n  static state, files, and other process-wide state.\n- Synchronization is deterministic. Avoid sleeps and fragile duration\n  assertions when a marker, event, or rendezvous can prove the behavior.\n- Acceptance tests that share a generated mutable asset are marked\n  `[DoNotParallelize]`; do not require it when the state is execution-context\n  local or otherwise isolated.\n- Duration output uses `AcceptanceAssert.DurationPattern` rather than assuming a\n  millisecond-only format.\n- The test framework and assertion library match the project's\n  `BannedSymbols.txt` and repository conventions.\n- MSTest framework unit tests use `TestFramework.ForTestingMSTest`; MTP and\n  analyzer tests use MSTest; adapter tests use their established assertion\n  library.\n- Test changes cover negative paths, boundaries, cleanup, cancellation, and\n  failure behavior relevant to the production change.\n\n## Specialist review routing\n\nApply these additional repository resources when their paths are changed:\n\n- MSBuild files (`*.props`, `*.targets`, `*.csproj`, SDK and NuGet build\n  extensions): use the rule catalog in\n  `.github\u002Fagents\u002Fmsbuild-reviewer.agent.md`. Ignore its operating modes,\n  finding cap, orchestration instructions, and output contract; the GitHub\n  code-review service owns review formatting and posting.\n- Broad TestFx architecture, runtime, API, performance, compatibility,\n  security-boundary, IPC, process-launch, serialization, and artifact-handling\n  changes: use the applicable review dimensions in\n  `.github\u002Fagents\u002Fexpert-reviewer.agent.md`. Ignore workflow-specific posting,\n  attribution, and safe-output instructions in that file.\n- Agentic workflow Markdown: require strict compilation, regenerated lock files,\n  unchanged trusted action pins, and the repository action-pin audit.\n- Analyzer changes:\n  - Verify diagnostic IDs, severity, generated-code behavior, false-positive\n    risk, analyzer release tracking, and code-fix registration and properties.\n  - For every mapping from a source API or annotation domain to a target API or\n    runtime domain, classify the mapping as **exact**, **compatible\u002Fcoarser**, or\n    **unrepresentable**. Check all source-value polarities and supported target\n    versions; do not infer equivalence from one successful case.\n  - Separate compile-time annotation semantics from runtime enforcement. Verify\n    what the analyzer can prove from symbols and metadata independently from\n    what the target framework or platform actually enforces at execution time.\n  - Check descriptor wording against the classification. Use \"equivalent\" only\n    for exact mappings; describe lossy but behaviorally acceptable mappings as\n    compatible and make any semantic loss explicit.\n  - Every diagnostic without a code fix must have a safe, concrete manual edit\n    that clears the diagnostic while preserving the relevant behavior. If no\n    such edit exists for a valid triggering program, question whether the\n    diagnostic is actionable rather than treating the expected diagnostic as\n    proof of correctness.\n\n## Finding quality\n\nEvery finding must:\n\n- Identify a concrete scenario that triggers the problem.\n- Explain the observable consequence.\n- Point to a changed line for code findings.\n- Put PR-level scope, description, split, and multi-model-review feedback in the\n  overall review summary and identify the specific unsupported claim,\n  unexplained change group, or high-risk boundary.\n- Recommend the smallest safe correction.\n- Establish that the correction improves observable correctness, reliability,\n  diagnostics, compatibility, or maintainability in this context, rather than\n  merely satisfying a rubric or replacing valid code with a preferred idiom.\n- Distinguish a verified defect from a material evidence gap. Put unresolved\n  validation questions in the summary with the exact missing evidence; do not\n  present them as proven bugs or apply-ready inline fixes.\n- Apply **Feature decisions and delivery evidence** to relevant candidates:\n  missing rationale\u002Fmedia\u002Fred-phase proof is an evidence gap, not an automatic\n  correctness finding. Do not claim a demonstration, baseline failure, or passing\n  execution that the available artifacts do not establish.\n- Use severity proportional to impact; do not elevate maintainability or style\n  suggestions into correctness findings.\n\nDo not submit an approval on behalf of repository maintainers. A clean review\nmay recommend approval in its summary while remaining a comment review.\n\n## Calibration regression examples\n\nUse these bounded cases when changing reviewer guidance. Evaluate the expected\npublication decision as well as coverage; these are examples, not findings to\npost on their originating PRs.\n\n| Context | Expected decision |\n|---------|-------------------|\n| A P\u002FInvoke in one partial has callers in another partial or linked consumer. | No unused-member finding; retain the reference trace. |\n| A new private P\u002FInvoke has no references in the whole type or any consumer, and removing it safely eliminates a redundant declaration. | One maintainability finding with the verified search scope and safe deletion. |\n| A proposed modern API is unavailable on the oldest compiled TFM. | Reject the suggestion; retain the compatibility check and use supported prior art if a real defect remains. |\n| Identical code moves to a helper with unchanged callers, ordering, and target context. | No newly introduced behavior finding. |\n| A move causes cleanup to precede the last read from a stream whose read API rejects disposal. | Publish the lifetime defect with the call sequence and verified API contract. |\n| `MemoryStream.ToArray()` is called after disposal. | No disposal finding: the [official contract](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fapi\u002Fsystem.io.memorystream.toarray#remarks) explicitly permits a closed stream. |\n| A `Dictionary` is built before task publication, then only read by workers; a mutable field is handed off through awaited task completion. | No race finding without an overlapping unsafe access; verify the ordering. |\n| Two concurrent callbacks mutate the same `Dictionary` without coordination. | Publish one race finding with the reachable interleaving and a correction that preserves compound operations. |\n| An internal guard enforces a trusted synchronous protocol; no external trigger can violate it. | Preserve the guard; do not invent tolerant recovery. |\n| Ten locale files or tests share one defective generator\u002Fhelper. A live thread already explains that defect. | One root-cause finding if novel; otherwise reference the live thread, not ten new comments. |\n| A B-grade test has one exact assertion that completely protects its narrow contract. | Keep the grade in the scorecard; no inline demand for redundant assertions. |\n| A changed test only asserts non-null; returning the wrong contents survives and contradicts its stated contract. | Keep the grade and publish one actionable assertion improvement with the specific surviving mutation and expected contents. |\n| A feature has a maintained decision record, a captioned terminal recording\u002Ftranscript with provenance, and the same behavioral tests fail without the production change and pass with it. | Evidence contract satisfied; no ceremonial request for a different title prefix, another document, or more media. |\n| A feature has no design rationale and introduces a lifetime assumption the consumers do not establish. | Investigate the contract and simpler alternatives; put the exact unresolved assumption in the summary. Publish a defect only if a concrete failing lifetime is established. |\n| A PR claims regression proof, but the baseline cannot compile a newly added API. | Baseline red-phase proof is unproven; request a compiling behavior-removal\u002Fmutation check in the summary, not an inline fix or a claimed test failure. |\n| Red-phase artifacts show the intended assertion failure, but the package consumer resolved the modified package in both runs. | Comparison provenance is insufficient; request distinct rebuilt\u002Frepacked source-state evidence. |\n| A baseline command exits nonzero because restore failed, or reports only skipped\u002Fzero selected tests. | No behavioral red-phase proof; identify the execution gap in the summary without inventing a code defect. |\n| A behavior-preserving refactor has focused green-before\u002Fgreen-after runs and no useful visual surface. | Accept equivalence and explained inapplicable media; do not require a fabricated red run or screenshot. |\n| A test-only safety net passes before and after, and a relevant compiling mutation fails its intended assertion. | Accept green\u002Fgreen plus labeled mutation sensitivity; do not claim the old production state was defective. |\n| A new user-visible feature lacks media or a decision record, but correctness is otherwise established. | Identify useful missing evidence proportionately in the summary; do not block solely for absent media\u002Frecord or create an inline code finding. |\n| Data-row formatter tests and HTML pass, but CI publishing uses a method-only identity for distinct rows. | Trace the consuming identity\u002Fgrouping contract and look for a multiple-row E2E assertion. Report a verified identity collision as a correctness defect; otherwise state the consumer-proof gap without claiming the UI failed. |\n| An HTML test checks strings and the PR calls this a rendered-layout check. | Credit content coverage, not layout proof; identify the missing rendered dimensions\u002Fstates\u002Finteractions in the summary without inventing clipping or overlap. |\n| A packed consumer test verifies distinct publishing identities, but the live Azure DevOps UI is inaccessible. | Credit publisher-boundary evidence and retain the explicit UI limitation. Do not claim a live Tests-tab pass or require unauthorized external writes. |\n| Existing E2E assertions protect the changed mapping and real rendered checks cover representative widths and long labels. | Accept that evidence; do not demand duplicate tests, screenshots for every equivalent case, or a new visual-test stack. |\n","# TestFx Code Review\n\nReview the pull request as a maintainer of MSTest and Microsoft.Testing.Platform.\nRead `.github\u002Fcopilot-instructions.md` first and treat it as authoritative.\n\nFocus on defects introduced by the pull request. Do not report pre-existing\nissues, speculative concerns without a concrete failure mode, or style\npreferences already enforced by automation. Read enough surrounding code and\ntests to understand the changed behavior before commenting.\n\n## Review process\n\n1. Identify the product area from the changed paths:\n   - `src\u002FPlatform` and related tests: Microsoft.Testing.Platform and extensions.\n   - `src\u002FTestFramework`: the public MSTest framework API.\n   - `src\u002FAdapter`: MSTest adapters and platform services.\n   - `src\u002FAnalyzers`: Roslyn analyzers and code fixes.\n   - `src\u002FPackage\u002FMSTest.Sdk`, `eng`, and MSBuild files: build and packaging.\n2. Trace each behavior change through its callers, tests, target frameworks,\n   shipped packages, and linked source files. Apply the context checks below\n   before treating a checklist match as a finding.\n3. Compare the PR title and description with the actual diff. Verify that the\n   stated motivation, behavior change, compatibility impact, and validation\n   match what the code does. Apply **Feature decisions and delivery evidence**\n   below, including when the PR provides no design rationale.\n4. Check changed behavior and related tests against the test-review guidance\n   below, including unchanged tests protecting source-only changes. Include\n   revision-bound test-value evidence in the review summary.\n5. Report only actionable findings caused by the PR. Prefer a small number of\n   high-confidence findings over broad summaries or praise.\n6. If the change is correct, do not invent a finding merely to leave feedback.\n\n## Context checks before a finding\n\nKeep comprehensive analysis separate from publication. Check every applicable\ndimension, but treat checklist matches and test grades as investigation inputs,\nnot automatic instructions to comment.\n\n- Read the whole type, including other partial declarations, inherited\n  behavior, helpers, and callers. Before calling a member or P\u002FInvoke unused,\n  search references across that context and every linked-source consumer;\n  absence of a call in the changed file is not evidence of dead code.\n- Compare merge-base and HEAD behavior, not just added lines. A moved or\n  extracted block that preserves behavior does not introduce its old defects.\n  Report it only if the move changes a concrete contract, caller, ordering,\n  or compilation context.\n- Derive supported TFMs, conditional compilation, polyfills, and language\n  versions from the owning projects and linked consumers. A proposed edit\n  must work on the oldest relevant target, not just the reviewer's runtime.\n- Verify asserted BCL semantics against official documentation, versioned\n  implementation source, or a focused repro on the relevant target. Do not\n  infer a concrete type's disposal, cancellation, buffering, or thread-safety\n  behavior from a base type or a familiar API name. If verification is\n  unavailable, record the uncertainty rather than asserting a defect.\n- For races and lifetime defects, trace ownership, all reads\u002Fwrites, and\n  happens-before relationships (locks, task completion, channels, publication,\n  and serial lifecycle phases). A mutable field, ordinary collection, or\n  missing `using` is not itself proof of a race or leak.\n- Preserve trusted internal invariants unless a concrete external trigger or\n  failing test disproves them. Put validation at the actual trust boundary;\n  do not suggest silent recovery just because an invariant could hypothetically\n  be violated.\n\n## Review publication\n\n- Publish review feedback as one pull-request review per run. Stage actionable\n  line findings as inline review comments, then bundle them with the final\n  review submission.\n- Put PR-level findings, scope and description feedback, dependency assessments,\n  specialist-review summaries, and overflow findings in the final review body.\n  Do not post separate top-level PR comments for review content.\n- Include a compact `Confidence at a glance` section with one color-coded,\n  collapsed block per applicable review scope. Keep the detailed dimensions as\n  an internal coverage checklist; do not publish one status row per dimension.\n- Lead with measurable reviewer actions when action is needed. Keep detailed\n  line-level evidence in inline comments rather than repeating it in the final\n  review body.\n- Do not duplicate a finding already covered by another live review thread.\n  Reference the existing thread from the review body when it remains the only\n  actionable item.\n- Group findings by root cause, observable consequence, and correction, not by\n  file, locale, test, or review dimension. Use one representative changed-line\n  anchor and list other affected locations compactly. Separate findings only\n  when they require different corrections or have materially different impact.\n- Before publishing, read existing review threads and replies, including\n  human and other-bot findings. Match the root cause even if the line moved,\n  the wording differs, or no workflow marker exists. A new HEAD or outdated\n  anchor alone does not justify repeating an unresolved, still-applicable\n  finding. Reopen a resolved or declined concern only with new evidence that\n  addresses the earlier disposition.\n- Keep per-test grades and rubric-only improvements in the combined review\n  summary. A below-A grade is not a defect or an inline-publication threshold;\n  do not add assertions, churn, or unsupported modernizations just to raise it.\n- For automatic specialist checks that are fully clean, prefer `noop` when the\n  main review already covers that dimension. Explicit slash-command reviews may\n  still publish an informational `COMMENT` review. The test-quality workflow\n  also reports test-value evidence for each eligible PR head, even without\n  actionable findings; only a duplicate report for that head may be suppressed.\n\nThese instructions govern reviewers that load this repository guidance.\nSeparate code-quality-service findings may not consume it; identify the\nproducer before attributing its output to this skill or claiming a policy\nchange will affect that service.\n\n## PR scope and review depth\n\nBe constructively critical. Challenge the change's assumptions, failure modes,\nand claimed validation rather than accepting the implementation or description\nat face value. Criticism must still identify concrete evidence and impact; do\nnot manufacture objections for the sake of sounding rigorous. Every criticism\nmust meet the concrete-scenario and observable-consequence bar in\n`Finding quality`.\n\n- Check whether the PR combines independent features, refactors, fixes, or\n  formatting changes that have different motivations or could be reviewed,\n  reverted, and shipped separately. When this materially obscures behavior or\n  increases review risk, recommend splitting the PR and identify the distinct\n  change groups.\n- Check that every material diff is explained by the PR description and that\n  every claimed behavior is implemented. Flag hidden scope, stale claims,\n  understated compatibility or operational impact, and validation claims not\n  supported by the changed tests or available evidence. A missing or brief\n  description is not itself a defect; raise it only when it hides material\n  behavior, compatibility impact, or an unsupported claim.\n- Distinguish necessary supporting changes from unrelated cleanup. Do not\n  request a split merely because a coherent change spans many files or product\n  layers.\n- Put scope, description-alignment, split, and additional-review feedback only\n  in the top-level review summary, never on an arbitrary changed line.\n- Request an independent multi-model review sparingly, only for high-blast-\n  radius changes such as:\n  - Wire-level IPC contracts or serialization protocols shared with external\n    clients.\n  - Structural redesigns of core test-execution scheduling, synchronization,\n    cancellation, or `ExecutionContext` propagation.\n  - New process-launch, arbitrary-code-execution, privilege, or other security\n    boundaries.\n  - Cross-product changes with independent compatibility or rollback risks.\n- Do not request a multi-model review for routine public API additions, bug\n  fixes, analyzer changes, adapter features, or test-only changes. Put the\n  request in the review summary and name the exact failure mode, compatibility\n  concern, race, or attack surface the additional models should examine.\n\n## Feature decisions and delivery evidence\n\nUse [feature-delivery](..\u002Ffeature-delivery\u002FSKILL.md) as the evidence contract,\nnot permission to implement, run untrusted PR code, upload media, or publish\nadditional comments. Read linked decision records and available run artifacts;\nauthor claims and a checked template box are not execution proof.\n\n- For new features, check that the versioned design\u002FRFC\u002Fdecision record captures\n  sources, approaches actually tried and results, alternatives, assumptions,\n  and why the chosen direction won. Compare it with the diff and revision history.\n  Do not assume an absent rationale means the design is wrong.\n- Challenge material design choices even when no explanation was provided:\n  trace consumers and constraints, compare the existing\u002Fno-change design and\n  a simpler alternative, and examine ownership\u002Flifecycle, failure\u002Fcancellation,\n  compatibility, observability, and unnecessary public APIs\u002Fabstractions.\n  Ask for the specific missing contract or evidence when a consequential\n  assumption cannot be established. Do not demand an arbitrary redesign.\n- Check demonstrations for user-visible features, including terminal\u002Freport\n  changes: actual screenshots or short GIF\u002Fvideo where practical, captions,\n  reproduction steps, source\u002Fpackage provenance, and accessible text.\n  Accept a clearer transcript\u002Fartifact or an explained unavailable\u002Finapplicable\n  capture. A diagram alone is not a running-feature demonstration; media is not\n  test execution or shipping-product proof. Never request public sensitive data.\n- Check the feature's requirement-to-consumer matrix against exact automated E2E\n  cases and final consumed output. Credit existing coverage. Formatter\u002Funit tests\n  or correct HTML do not prove another reporter's external identities\u002Fgrouping;\n  verify per-result names, counts, and metadata association at each changed\n  boundary. Do not demand a full product matrix for an unaffected surface.\n- For output\u002Flayout changes, distinguish actual rendered checks from HTML\u002FJSON\n  source assertions or captured publishing payloads. Look for representative\n  dimensions, relevant long\u002Fescaped-content states, readable labels, aligned\n  rows, reachable controls, and exercised interactions. An inaccessible hosted\n  UI or IDE remains an explicit gap, not a claimed pass or permission to access\n  it. Review available captures\u002Fartifacts; do not execute PR code to fill gaps.\n- For behavioral regression coverage, verify the same tests\u002Fassertions\u002Fselection\n  were retained without the production change, executed, and failed at the\n  intended assertion, then executed and passed with it. Check source states,\n  commands, exits, identities\u002Fcounts, and artifacts; repack\u002Fprovenance matters\n  for package consumers. Build\u002Frestore\u002Flaunch failures, skips, and zero tests\n  are not red-phase proof. A compiling behavior-removal\u002Fmutation check is valid\n  when accurately labeled; a new API's baseline compilation failure alone is not.\n- Accept green\u002Fgreen equivalence for behavior-preserving changes. For a test-only\n  safety net protecting correct behavior, look for a relevant compiling mutation\n  demonstrating sensitivity. Documentation-only changes need no product red\u002Fgreen\n  or media. Mark infeasible behavioral comparisons as sensitivity unproven.\n- Judge titles by descriptive accuracy, not `[feat]` or other category prefixes.\n  Preserve existing automation prefixes; do not infer compatibility from a tag.\n\nPut material missing decision, demonstration, or regression evidence in the\nreview summary with the exact gap and smallest useful follow-up. Missing evidence\nis not a proven code defect, does not justify an apply-ready inline suggestion,\nand must not trigger `REQUEST_CHANGES` solely because a record or media is absent.\nAvoid ceremonial documentation demands when evidence is already available.\n\n## Core TestFx checks\n\n- Preserve backward compatibility for public APIs, protocols, command-line\n  options, package behavior, and analyzer diagnostics.\n- Treat overload additions as potentially source-breaking. Check representative\n  call shapes and older supported language versions, not only the repository's\n  preview language version.\n- New public API must be minimal, documented, MUST NOT use `init`, and be\n  recorded in the relevant `PublicAPI.Unshipped.txt`. Also check internal API\n  baselines in projects that track them.\n- Every API marked `[Experimental]` must include this sentence in its XML\n  documentation `\u003Cremarks>`: `This API is experimental. It may change, break,\n  or be removed at any time without notice.`\n- Check every target framework affected by the change. Do not assume an API\n  available on modern .NET exists on older targets.\n- Review concurrency and lifecycle ordering carefully. Test execution is\n  parallel, and shared mutable state, cancellation, disposal, and\n  `ExecutionContext` flow are common correctness boundaries.\n- For shared or linked source, identify every consuming project and ensure API\n  baselines and behavior remain consistent in all of them.\n- User-facing strings belong in resources. Never accept manually edited XLF\n  files. Every `{Locked=\"...\"}` token must occur verbatim in the corresponding\n  value; verify it does not accidentally lock a substring of a translatable\n  word.\n- CLI option changes must update the matching `--help` and `--info` acceptance\n  expectations, including punctuation and alphabetical ordering.\n- Packable projects need valid package descriptions and `PACKAGE.md`.\n- Never accept manual changes under `eng\u002Fcommon\u002F`; those files are mirrored\n  from `dotnet\u002Farcade` and overwritten by automation.\n- Do not weaken `ApplicationStateGuard.Unreachable()`, `Debug.Assert`, or\n  explicit invariant throws into silent fallbacks, warnings, or empty returns\n  without a concrete external trigger or failing test that disproves the\n  invariant.\n- Workflow, script, issue-template, and policy changes that create or triage\n  issues must use native GitHub Issue Types and must not introduce the\n  deprecated `type\u002Fbug`, `type\u002Ffeature`, or `type\u002Ftask` labels.\n- Do not allow untracked `TODO` comments.\n\n## Security checks\n\nReview changed trust boundaries for concrete security regressions. Pay particular\nattention when the change handles paths, process arguments, environment\nvariables, protocol messages, serialized data, logs, artifacts, credentials,\nreflection, extensions, or arbitrary user test code.\n\n- Ensure untrusted file and directory names cannot escape the intended root\n  through traversal, rooted paths, alternate separators, or symlink behavior.\n- Ensure process launches preserve argument boundaries and do not concatenate\n  untrusted values into a command line, shell command, or executable path.\n  Check executable resolution, working-directory selection, inherited\n  environment variables, and assembly or plugin search paths.\n- Validate untrusted protocol and serialized input before using it, including\n  message type, required fields, payload and collection bounds, and unsupported\n  values. Reject unsafe polymorphic or binary deserialization of untrusted data.\n- Treat reflection, user callbacks, test methods, data sources, extensions, and\n  assembly discovery as hostile-code boundaries. Ensure exceptions are\n  contained appropriately, cancellation and timeouts remain enforceable, and\n  user-controlled input cannot cause unbounded memory or resource growth.\n- Do not expose secrets, tokens, environment values, private paths, or sensitive\n  test data through logs, exceptions, reports, artifacts, telemetry, or\n  temporary files.\n- Check that temporary files and artifacts use safe locations, appropriate\n  access, collision-resistant names, and reliable cleanup.\n- Treat workflow permission, network access, action pin, and secret-handling\n  changes as security boundaries; reject unnecessary privilege expansion or\n  mutable third-party references.\n- For dependency changes, check whether the new package or version introduces a\n  known vulnerability, unexpected runtime asset, or broader transitive surface.\n  Use authoritative evidence such as official advisories, NuGet metadata, and\n  upstream release notes; preserve uncertainty rather than guessing.\n\nReport a security finding only when the changed code creates a plausible attack\nor disclosure scenario with an observable consequence. Defensive coding belongs\nat actual external boundaries; do not request blanket hardening of trusted\ninternal invariants without a concrete external trigger.\n\nFor a suspected vulnerability or security-driven dependency update, do not put\nproofs of concept, attacker payloads, exploit steps, CVE details, affected\nversion ranges, or other actionable vulnerability details in public review\ncomments or PR metadata. Leave at most a minimal public note and follow\n`SECURITY.md` and the repository's private reporting process.\n\n## Test changes\n\nFor changed behavior and related test code, apply\n[testfx-test-value-evidence](..\u002Ftestfx-test-value-evidence\u002FSKILL.md), which applies\nthe vendored upstream skill. Report whether a concrete\npre-fix behavior or buildable feature ablation is detected, and whether the\ncorrect implementation passes. Read-only reviewers use explicitly labeled\nstatic predictions unless matching execution evidence is available. Missing\nevidence is a summary limitation, not automatically a defect. Do not publish\npredicted mutation kills as executed measurements.\n\nFor changed test code, also apply the relevant rules from:\n\n- `.agents\u002Fskills\u002Ftest-anti-patterns\u002FSKILL.md`\n- `.agents\u002Fskills\u002Fassertion-quality\u002FSKILL.md`\n- `.agents\u002Fskills\u002Ftest-gap-analysis\u002FSKILL.md`\n\nUse those files as review checklists, not as a request for a repository-wide\naudit. Keep analysis scoped to the changed behavior and its directly related\ntests.\n\nIn particular, verify:\n\n- Tests would fail if the production behavior were wrong; reject missing,\n  tautological, self-comparing, or only-trivial assertions.\n- Check actual red\u002Fgreen or deliberate-mutation evidence under **Feature decisions\n  and delivery evidence**, not only a hypothetical claim that the test would fail.\n- Async assertions and operations are awaited.\n- Deterministic multiline output is checked with one exact raw-string\n  (`\"\"\"...\"\"\"`) expectation, not multiple substring assertions or escaped\n  line breaks. Where surrounding output is genuinely variable, match a\n  complete deterministic raw-string block rather than individual lines.\n  Preserve ordering, indentation, blank lines, and trailing newlines.\n  Normalize both operands when platform-native output line endings can differ\n  from the source checkout's raw-string line endings.\n- Tests are isolated under parallel execution and restore environment, culture,\n  static state, files, and other process-wide state.\n- Synchronization is deterministic. Avoid sleeps and fragile duration\n  assertions when a marker, event, or rendezvous can prove the behavior.\n- Acceptance tests that share a generated mutable asset are marked\n  `[DoNotParallelize]`; do not require it when the state is execution-context\n  local or otherwise isolated.\n- Duration output uses `AcceptanceAssert.DurationPattern` rather than assuming a\n  millisecond-only format.\n- The test framework and assertion library match the project's\n  `BannedSymbols.txt` and repository conventions.\n- MSTest framework unit tests use `TestFramework.ForTestingMSTest`; MTP and\n  analyzer tests use MSTest; adapter tests use their established assertion\n  library.\n- Test changes cover negative paths, boundaries, cleanup, cancellation, and\n  failure behavior relevant to the production change.\n\n## Specialist review routing\n\nApply these additional repository resources when their paths are changed:\n\n- MSBuild files (`*.props`, `*.targets`, `*.csproj`, SDK and NuGet build\n  extensions): use the rule catalog in\n  `.github\u002Fagents\u002Fmsbuild-reviewer.agent.md`. Ignore its operating modes,\n  finding cap, orchestration instructions, and output contract; the GitHub\n  code-review service owns review formatting and posting.\n- Broad TestFx architecture, runtime, API, performance, compatibility,\n  security-boundary, IPC, process-launch, serialization, and artifact-handling\n  changes: use the applicable review dimensions in\n  `.github\u002Fagents\u002Fexpert-reviewer.agent.md`. Ignore workflow-specific posting,\n  attribution, and safe-output instructions in that file.\n- Agentic workflow Markdown: require strict compilation, regenerated lock files,\n  unchanged trusted action pins, and the repository action-pin audit.\n- Analyzer changes:\n  - Verify diagnostic IDs, severity, generated-code behavior, false-positive\n    risk, analyzer release tracking, and code-fix registration and properties.\n  - For every mapping from a source API or annotation domain to a target API or\n    runtime domain, classify the mapping as **exact**, **compatible\u002Fcoarser**, or\n    **unrepresentable**. Check all source-value polarities and supported target\n    versions; do not infer equivalence from one successful case.\n  - Separate compile-time annotation semantics from runtime enforcement. Verify\n    what the analyzer can prove from symbols and metadata independently from\n    what the target framework or platform actually enforces at execution time.\n  - Check descriptor wording against the classification. Use \"equivalent\" only\n    for exact mappings; describe lossy but behaviorally acceptable mappings as\n    compatible and make any semantic loss explicit.\n  - Every diagnostic without a code fix must have a safe, concrete manual edit\n    that clears the diagnostic while preserving the relevant behavior. If no\n    such edit exists for a valid triggering program, question whether the\n    diagnostic is actionable rather than treating the expected diagnostic as\n    proof of correctness.\n\n## Finding quality\n\nEvery finding must:\n\n- Identify a concrete scenario that triggers the problem.\n- Explain the observable consequence.\n- Point to a changed line for code findings.\n- Put PR-level scope, description, split, and multi-model-review feedback in the\n  overall review summary and identify the specific unsupported claim,\n  unexplained change group, or high-risk boundary.\n- Recommend the smallest safe correction.\n- Establish that the correction improves observable correctness, reliability,\n  diagnostics, compatibility, or maintainability in this context, rather than\n  merely satisfying a rubric or replacing valid code with a preferred idiom.\n- Distinguish a verified defect from a material evidence gap. Put unresolved\n  validation questions in the summary with the exact missing evidence; do not\n  present them as proven bugs or apply-ready inline fixes.\n- Apply **Feature decisions and delivery evidence** to relevant candidates:\n  missing rationale\u002Fmedia\u002Fred-phase proof is an evidence gap, not an automatic\n  correctness finding. Do not claim a demonstration, baseline failure, or passing\n  execution that the available artifacts do not establish.\n- Use severity proportional to impact; do not elevate maintainability or style\n  suggestions into correctness findings.\n\nDo not submit an approval on behalf of repository maintainers. A clean review\nmay recommend approval in its summary while remaining a comment review.\n\n## Calibration regression examples\n\nUse these bounded cases when changing reviewer guidance. Evaluate the expected\npublication decision as well as coverage; these are examples, not findings to\npost on their originating PRs.\n\n| Context | Expected decision |\n|---------|-------------------|\n| A P\u002FInvoke in one partial has callers in another partial or linked consumer. | No unused-member finding; retain the reference trace. |\n| A new private P\u002FInvoke has no references in the whole type or any consumer, and removing it safely eliminates a redundant declaration. | One maintainability finding with the verified search scope and safe deletion. |\n| A proposed modern API is unavailable on the oldest compiled TFM. | Reject the suggestion; retain the compatibility check and use supported prior art if a real defect remains. |\n| Identical code moves to a helper with unchanged callers, ordering, and target context. | No newly introduced behavior finding. |\n| A move causes cleanup to precede the last read from a stream whose read API rejects disposal. | Publish the lifetime defect with the call sequence and verified API contract. |\n| `MemoryStream.ToArray()` is called after disposal. | No disposal finding: the [official contract](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fapi\u002Fsystem.io.memorystream.toarray#remarks) explicitly permits a closed stream. |\n| A `Dictionary` is built before task publication, then only read by workers; a mutable field is handed off through awaited task completion. | No race finding without an overlapping unsafe access; verify the ordering. |\n| Two concurrent callbacks mutate the same `Dictionary` without coordination. | Publish one race finding with the reachable interleaving and a correction that preserves compound operations. |\n| An internal guard enforces a trusted synchronous protocol; no external trigger can violate it. | Preserve the guard; do not invent tolerant recovery. |\n| Ten locale files or tests share one defective generator\u002Fhelper. A live thread already explains that defect. | One root-cause finding if novel; otherwise reference the live thread, not ten new comments. |\n| A B-grade test has one exact assertion that completely protects its narrow contract. | Keep the grade in the scorecard; no inline demand for redundant assertions. |\n| A changed test only asserts non-null; returning the wrong contents survives and contradicts its stated contract. | Keep the grade and publish one actionable assertion improvement with the specific surviving mutation and expected contents. |\n| A feature has a maintained decision record, a captioned terminal recording\u002Ftranscript with provenance, and the same behavioral tests fail without the production change and pass with it. | Evidence contract satisfied; no ceremonial request for a different title prefix, another document, or more media. |\n| A feature has no design rationale and introduces a lifetime assumption the consumers do not establish. | Investigate the contract and simpler alternatives; put the exact unresolved assumption in the summary. Publish a defect only if a concrete failing lifetime is established. |\n| A PR claims regression proof, but the baseline cannot compile a newly added API. | Baseline red-phase proof is unproven; request a compiling behavior-removal\u002Fmutation check in the summary, not an inline fix or a claimed test failure. |\n| Red-phase artifacts show the intended assertion failure, but the package consumer resolved the modified package in both runs. | Comparison provenance is insufficient; request distinct rebuilt\u002Frepacked source-state evidence. |\n| A baseline command exits nonzero because restore failed, or reports only skipped\u002Fzero selected tests. | No behavioral red-phase proof; identify the execution gap in the summary without inventing a code defect. |\n| A behavior-preserving refactor has focused green-before\u002Fgreen-after runs and no useful visual surface. | Accept equivalence and explained inapplicable media; do not require a fabricated red run or screenshot. |\n| A test-only safety net passes before and after, and a relevant compiling mutation fails its intended assertion. | Accept green\u002Fgreen plus labeled mutation sensitivity; do not claim the old production state was defective. |\n| A new user-visible feature lacks media or a decision record, but correctness is otherwise established. | Identify useful missing evidence proportionately in the summary; do not block solely for absent media\u002Frecord or create an inline code finding. |\n| Data-row formatter tests and HTML pass, but CI publishing uses a method-only identity for distinct rows. | Trace the consuming identity\u002Fgrouping contract and look for a multiple-row E2E assertion. Report a verified identity collision as a correctness defect; otherwise state the consumer-proof gap without claiming the UI failed. |\n| An HTML test checks strings and the PR calls this a rendered-layout check. | Credit content coverage, not layout proof; identify the missing rendered dimensions\u002Fstates\u002Finteractions in the summary without inventing clipping or overlap. |\n| A packed consumer test verifies distinct publishing identities, but the live Azure DevOps UI is inaccessible. | Credit publisher-boundary evidence and retain the explicit UI limitation. Do not claim a live Tests-tab pass or require unauthorized external writes. |\n| Existing E2E assertions protect the changed mapping and real rendered checks cover representative widths and long labels. | Accept that evidence; do not demand duplicate tests, screenshots for every equivalent case, or a new visual-test stack. |\n",{"name":5,"description":7},"main","2a8ebadb17a3b388b62bbb0cedd407999e3ce10a",".github\u002Fskills\u002Fcode-review",315,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 14:01:43",{"source":8,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add microsoft\u002Ftestfx --skill code-review",{"tool":75,"command":76},"bunx","bunx skills add microsoft\u002Ftestfx --skill code-review",{"tool":78,"command":79},"pnpm","pnpm dlx skills add microsoft\u002Ftestfx --skill code-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcode-review\u002FSKILL.md",true,[],[84,110,134,154,172,196],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":55},"01M70GYY0AV0JGMTHE2CN6TNYK","dotnet-breaking-changes","Use before changing .NET\u002FC# code whose callers you do not control: a NuGet library, or a repo with PublicAPI.Shipped\u002FUnshipped.txt, ApiCompat, multiple TargetFrameworks, InternalsVisibleTo, or generated (.g.cs) partials. Green builds miss silent breaks from optional parameters, parameter names, sealing, const values, nullability, and #if. USE FOR: \"without breaking existing callers\"; adding a public method, overload, optional parameter, or interface member to a shipped library; renaming a public method or an internal helper a friend assembly uses; consolidating duplicated logic; changing a signature, nullability, default, or attribute; adding a target framework; RS0016\u002FRS0017 or ApiCompat errors; \"is this PR breaking?\". For a rename, extract, or merge, also invoke csharp-refactoring. DO NOT USE FOR: an executable whose callers all live in one project; renaming a local variable or private member, even in a shipped library; formatting; framework\u002FSDK\u002FNuGet upgrades (use dotnet-upgrade).","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdotnet-breaking-changes\u002FSKILL.md",[],[91,92,93,94,95,96,97,98,99,100,101,102,103,34,104,105,106,107,108,109],"dotnet","dotnet breaking changes","changes","green","project","default","local","errors","interface","generated","upgrade","invoke","you","refactoring","merge","rename","library","live","assembly",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":117,"publishedAt":55},"01M699HHE9DTZWAMPB1ZR7ZKSW","testfx-test-value-evidence","Apply the vendored test-value-evidence skill with TestFx toolchain, assertion, parallel-safety, packed-consumer, and review conventions. Use when implementing or reviewing behavior-changing TestFx PRs or commits, including source-only changes.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-test-value-evidence\u002FSKILL.md",[116],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[118,119,120,121,122,32,123,124,125,126,127,128,41,129,130,37,93,131,132,133],"test","testfx test value evidence","test value evidence","evidence","value","parallel","toolchain","commits","implementing","prs","only","when","apply","behavior","Safety","conventions",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":55},"01M699HEYWH1B9XGNBFY8J2FZS","testfx-parallel-safety-preflight","Check concurrency and isolation before implementing or refactoring TestFx tests, lifecycle code, helpers, shared-state declarations, or production paths those tests exercise. Use before narrowing DoNotParallelize or ResourceLock, changing parallelization settings, or introducing asynchronous workers; repeat against the final diff.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-parallel-safety-preflight\u002FSKILL.md",[],[141,132,142,123,143,144,126,145,34,146,104,147,148,149,150,151,152,39,41,153],"testfx parallel safety preflight","preflight","shared","asynchronous","exercise","concurrency","paths","isolation","helpers","diff","parallelization","lifecycle","workers",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":55},"01M699HC61ZV9GJ2C8JV03951G","testfx-localization-validation","Validate generated TestFx localization catalogs, resource IDs, placeholders and locked tokens. Use for RESX\u002FXLF changes, OneLoc PRs, localization build failures, duplicate targets or units, and orphaned translation entries.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-localization-validation\u002FSKILL.md",[],[161,162,38,163,164,165,36,166,167,127,100,41,168,169,93,170,171],"testfx localization validation","validation","validate","translation","ids","tokens","entries","units","duplicate","targets","build",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":179,"publishedAt":55},"01M699H9J2NWQXE4BDT6R0FH7S","testfx-acceptance-validation","Validate TestFx shipping paths and capable CI execution using packed consumers, package\u002Fcache provenance, exact exits and artifacts, and selected-versus-executed test evidence. Use for acceptance regressions, package\u002FMSBuild\u002Flauncher\u002Fprotocol changes, or skipped-only CI results; not for unrelated unit-only or documentation changes.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-acceptance-validation\u002FSKILL.md",[178],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[180,181,162,118,47,121,182,183,184,128,185,41,186,187,188,189,190,191,192,193,194,195,147,36],"testfx acceptance validation","acceptance","launcher","ci","execution","package","cache","artifacts","provenance","documentation","unrelated","shipping","results","protocol","unit","ci results",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":202,"publishedAt":55},"01M699H70BB999BT4F627T1PHE","session-delivery-hygiene","Gate local-session scope, persistent delivery, live PR state, integration provenance, and owned cleanup. Use before implementing guidance changes, changing or pushing PR work, diagnosing package\u002Foutput mismatches, or handing off implementation.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsession-delivery-hygiene\u002FSKILL.md",[],[203,204,205,206,207,126,97,208,209,108,210,185,41,188,211,212,93,213,214,215],"session delivery hygiene","delivery","session","hygiene","scope","cleanup","work","pr","output","state","integration","guidance","gate"]