feat: Citadel integration - docs, exporter, policy binding, example#1778
Merged
imran-siddique merged 1 commit intomicrosoft:mainfrom May 6, 2026
Merged
Conversation
Add integration between AGT and the Foundry Citadel Platform: - docs/integrations/citadel-integration.md: Architecture reference explaining how AGT maps to Citadel's 4-layer model, data flow, policy precedence, and coverage boundaries. - agent_os/exporters/citadel_exporter.py: Azure Event Hub and Application Insights exporter with correlation IDs, hash-chain evidence preservation, batching, and fail-open behavior. - agent_os/integrations/citadel/policy_bundle.py: Policy bundle resolver that loads AGT bundles from file, Key Vault, or URL. Supports Citadel Access Contract binding and validation. - examples/citadel-governed-agent/: End-to-end example showing an agent governed by both Citadel (gateway) and AGT (runtime) with mock mode for local testing. Closes microsoft#1770, closes microsoft#1771, closes microsoft#1772, closes microsoft#1773 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🤖 AI Agent: code-reviewer — Action Items:TL;DR: 1 blocker, 2 warnings. Needs fixes for critical security gap in policy validation.
Action Items:
Warnings (fine as follow-up PRs):
|
🤖 AI Agent: docs-sync-checker — Docs SyncDocs Sync
|
🤖 AI Agent: security-scanner — View detailsNo security issues found. |
🤖 AI Agent: breaking-change-detector — API CompatibilityAPI Compatibility
|
🤖 AI Agent: test-generator — `agent_os/exporters/citadel_exporter.py`
|
PR Review Summary
Verdict: ❌ Changes needed |
This was referenced May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Integrates AGT with the Foundry Citadel Platform, Microsoft's layered AI governance architecture. AGT provides agent-level governance (per-action policy evaluation, trust scoring, cryptographic identity) that complements Citadel's gateway-level controls (rate limiting, content filtering, identity validation).
What's Included
Architecture Documentation
docs/integrations/citadel-integration.md: Reference architecture explaining how AGT maps to Citadel's 4 layers, data flow, policy precedence, coverage boundaries, and failure modes.Citadel Audit Exporter
agent_os/exporters/citadel_exporter.py: Exports governance events to Azure Event Hub and Application Insights with:Policy Bundle Resolver
agent_os/integrations/citadel/policy_bundle.py: Loads AGT policy bundles bound to Citadel Access Contracts from file, Azure Key Vault, or URL. Validates bundle/contract compatibility.End-to-End Example
examples/citadel-governed-agent/: Working example with mock mode showing dual-layer governance (Citadel gateway + AGT runtime policies).Design Decisions
Testing
Example runs successfully in mock mode:
Related Issues
Closes #1770, closes #1771, closes #1772, closes #1773
Phase 2 (deferred): #1774 (Entra identity federation), #1775 (APIM metadata fragment)