Skip to content

fix: Update MAF Doctor version to 1.18.0 and... - #125

Merged
JesseLiberty merged 1 commit into
mainfrom
fix/maf-doctor-findings
Oct 2, 2026
Merged

JesseLiberty merged 1 commit into
mainfrom
fix/maf-doctor-findings

Conversation

@JesseLiberty

Copy link
Copy Markdown
Owner

address findings in hosted agents - see maf-doctor-assessment.md

Copilot AI balanced review requested due to automatic review settings October 2, 2026 15:16
@JesseLiberty
JesseLiberty merged commit bb4725b into main Oct 2, 2026
1 check passed

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.

Copilot review overview

🟡 Changes recommended

A duplicate DI registration causes the web app to ignore its configured output-token cap, and related documentation remains stale.

Review effort: Balanced
Findings: 1 Medium severity · 2 Low severity

Open (3)
What changed in this PR

Updates MAF Doctor integration and remediates credential and token-cap findings.

Changes:

  • Uses system-assigned managed identities for hosted agents.
  • Adds configurable per-response output-token limits.
  • Updates MAF Doctor configuration, assessment, and tests.
File Description
TokenCapChatClient.cs Adds output-token defaults and validation.
Program.cs Reads the console output-token setting.
HostedAgents/​Reviewer/​Program.cs Uses managed identity.
HostedAgents/​Researcher/​Program.cs Uses managed identity.
HostedAgents/​Blogger/​Program.cs Uses managed identity.
HostedAgents/​Author/​Program.cs Uses managed identity.
docs/​maf-doctor-assessment.md Records findings and remediation.
BlogWriterServiceCollectionExtensions.cs Configures the web token cap.
BlogWriter.Tests/​TokenCapChatClientTests.cs Tests output-cap behavior.
BlogWriter.Tests/​TestChatClients.cs Captures forwarded options in tests.
.vscode/​mcp.json Updates MAF Doctor to 1.18.0.
.mcp.json Updates MAF Doctor to 1.18.0.

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

out int configuredMaxOutputTokens)
? configuredMaxOutputTokens
: TokenCapChatClient.DefaultMaxOutputTokens;
services.AddSingleton(TokenCapChatClient.CreateSharedFactory(maxTokens, maxOutputTokens));

After the credential and output-cap changes on `fix/maf-doctor-findings`:

- All four hosted agents use an explicit system-assigned managed identity. Each hosted-agent project builds without warnings.
After the credential and output-cap changes on `fix/maf-doctor-findings`:

- All four hosted agents use an explicit system-assigned managed identity. Each hosted-agent project builds without warnings.
- The shared chat-client factory now supplies an 8192-token per-response default while preserving explicit per-call values. Override it with `MAX_OUTPUT_TOKENS` in the console app, or `Foundry:MaxOutputTokens` / `MAX_OUTPUT_TOKENS` in the web app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants