Skip to content

.NET: Also include citations and error details in purview checks. - #9375

Merged
westey (westey-m) merged 2 commits into
microsoft:mainfrom
westey-m:purview-citations-improvement
Oct 14, 2026
Merged

westey (westey-m) merged 2 commits into
microsoft:mainfrom
westey-m:purview-citations-improvement

Conversation

@westey-m

Copy link
Copy Markdown
Collaborator

Motivation & Context

Send further details to purview.

Description & Review Guide

Send further details to purview.

Related Issue

Fixes #

AI Assistance

  • No material AI assistance was used.
  • This is an AI-assisted contribution. I reviewed, understood, and verified all submitted content and accept responsibility for it.

AI assistance details:

Contribution Checklist

  • The code builds clean without any errors or warnings
  • All unit tests pass, and I have added new tests where possible
  • The PR follows the Contribution Guidelines
  • This PR links to an agreed issue with no competing open PR, or the Related Issue section documents a trivial-change or repository-automation exception.
  • This is not a breaking change. If it is a breaking change, add the breaking change label (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.

Copilot AI balanced review requested due to automatic review settings October 14, 2026 12:30
@agent-framework-automation agent-framework-automation Bot added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs python Usage: [Issues, PRs], Target: Python .NET Usage: [Issues, PRs], Target: .Net labels Oct 14, 2026
@github-actions github-actions Bot changed the title Also include citations and error details in purview checks. Python: Also include citations and error details in purview checks. Oct 14, 2026
@github-actions github-actions Bot changed the title Python: Also include citations and error details in purview checks. .NET: Also include citations and error details in purview checks. Oct 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Empty binary content can still bypass evaluation of a sensitive DataContent.Name.

1 open finding
What changed in this PR

Extends Purview checks to evaluate supplemental metadata across Python and .NET.

Changes:

  • Submits text annotations, error details, and data names for evaluation.
  • Adds tests and updates evaluation documentation.
File Description
python/​.../​_processor.py Evaluates text annotations separately.
python/​.../​test_processor.py Tests citation submission.
python/​.../​README.md Documents annotation evaluation.
dotnet/​.../​ScopedContentProcessor.cs Adds supplemental-content mapping.
dotnet/​.../​ScopedContentProcessorTests.cs Tests supplemental metadata.
dotnet/​.../​README.md Documents evaluated metadata.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread dotnet/src/Microsoft.Agents.AI.Purview/ScopedContentProcessor.cs Outdated

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

MAF Automated Review — Iteration 1

Result: Findings reported
Scope: full PR (1 commit(s)): 7936d9192c2b
Model: gpt-5.6-sol

Overview

The PR extends the existing per-content Purview mapping with separately addressable entries for citations and other supplemental metadata, and the new tests verify the main non-empty cases. Existing unique identifiers, sequence ordering, and fail-closed middleware behavior provide strong guardrails. One residual gap allows a zero-byte .NET data item to bypass evaluation of a non-empty filename.

Reviewed the supplied pull-request change set across correctness, security/reliability, architecture, and failure behavior.
1 verified finding remained after source verification (1 medium) across 1 file. Details are attached to the affected lines below.

Affected areas: dotnet/src/Microsoft.Agents.AI.Purview/ScopedContentProcessor.cs

Comment thread dotnet/src/Microsoft.Agents.AI.Purview/ScopedContentProcessor.cs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@westey-m
westey (westey-m) added this pull request to the merge queue Oct 14, 2026
Merged via the queue into microsoft:main with commit 5abdadf Oct 14, 2026
54 checks passed
@westey-m
westey (westey-m) deleted the purview-citations-improvement branch October 14, 2026 16:51

This branch was successfully deployed

2 active deployments
github-app-auth — 16b4984f Deployed Oct 14, 2026 by westey-m via add_label #25310
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net python Usage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants