1[Use this Markdown structure. Replace bracketed text.]23````markdown4# Microsoft Foundry Agent Validation56## Summary78**Report ID:** `[report ID]`<br>9**Hosted agent:** [service name]<br>10**Agent path:** [the unchanged agent path used for this validation run]<br>11**Generated:** [ISO date-time]1213**Results:** [failed count] feedbacks · [passed count] passed · [inconclusive count] inconclusive · [not applicable count] not applicable1415[Filter final JSON `results` into `fail`, `pass`, `inconclusive`, and `skipped` lists. Fill Summary from their exact lengths, never from a partial list. Omit zero-count statuses and require displayed counts to sum to `results.length`. Omit this table when there are no failed results.]1617[Attach each result's original merged-rule index. Stable-sort every list by `(level rank, merged-rule index)` with `error=0`, `warning=1`, and `recommendation=2`. Use the sorted `fail` list for this table.]
23[Create nonempty sections in this order: `fail` → `## Feedbacks`; `pass` → `## Passed checks`; `inconclusive` → `## Inconclusive`; `skipped` → `## Not applicable`. Render each list item exactly once in its matching section. Count the `- **Rule:**` blocks in each section; replace any differing Summary number before output.]
24
25[After rendering, extract rule IDs from the table and each section. Compare them with the corresponding sorted list and correct any difference. Repeat this collapsed block for each result.]
26
27<details>
28<summary>[rule title]</summary>
29
30- **Rule:** `[rule ID]`
31- **Level:** [error | warning | recommendation]
32
33#### Rationale
34
35[Copy `rationale` from the rule.]
36
37#### Source code
38
39[Omit if absent. Render each array item as inline code, separated by `, `. Items use `file:line` or `file:start-end`.]
40
41`main.py:7-9`, `infra/main.bicep:44`
42
43#### Details
44
45[For `fail`, explain the result and cite redacted `file:line` evidence when available. For `pass`, explain the evidence that proves the check passed. For `inconclusive`, explain why evidence cannot prove pass or fail and what is missing. For `skipped`, explain why the rule does not apply.]
46
47#### Recommended action
48
49[For `fail` only, state the concrete action required. Otherwise omit.]
50
51#### Guidance
52
53[Copy every guidance item exactly from the result without rewording, normalizing, or translating. Preserve object titles and links, and render legacy URL strings unchanged. Repeat each item.]
54
55[For a `{ title, link }` object:]
56
57- [guidance title](<[guidance link]>)
58
59[For a legacy URL string:]
60
61- <[guidance URL]>
62
63</details>
64
65## Limitation
66
67This is an automated, repository-based best-practice review. It is not Microsoft certification, a compliance attestation, penetration testing, or validation of the deployed Azure environment.