microsoft / microsoft/agent-framework

Python: .NET: skip agent-hooks output buffering when no interceptor enforces the output points

Open
#7,716 0 comments 0 reactions 1 assignee View on GitHub

@MohammadHaroonAbuomar is already working on this.

Since Aug 18, 2026.

.NET python
Dominant language
Python
Stars
13.6k
Forks
2.3k
Avg merge
2d 45m
Merged PRs (30d)
358

Description

Follow-up from #7564 (thread with @westey-m: https://github.com/microsoft/agent-framework/pull/7564#discussion_r3802992779). Buffering exists for the output deny, so hook-type detection cannot waive it — but when NO registered interceptor evaluates output/post_model_call at all, pass-through streaming is legitimate under the contract's capability subsetting (AGENT-HOOKS-0.1 §3.2).

Proposed shape: an optional declared enforced-point set on the factory options (interceptors are opaque, so the caller declares; ACS-style manifests already carry exactly this), enabling a factory-time fast path that skips gate construction entirely. Open design questions captured from the review thread: per-factory vs per-run declaration; how records self-describe skipped points for auditors; whether the declaration belongs in the ResponsibleAI.AgentHooks emitter rather than this integration; symmetry with the Python feature (#7515 shipped zero-exposure-only the same way).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.