Skip to content

AWS.AgentGovernance.Bedrock: project scaffold and shared guardrail client (1/5) - #43

Closed
GarrettBeatty wants to merge 1 commit into
devfrom
gcbeatty/agent-gov-bedrock-scaffold
Closed

AWS.AgentGovernance.Bedrock: project scaffold and shared guardrail client (1/5)#43
GarrettBeatty wants to merge 1 commit into
devfrom
gcbeatty/agent-gov-bedrock-scaffold

Conversation

@GarrettBeatty

Copy link
Copy Markdown
Contributor

First of a stack of 5 draft PRs adding AWS.AgentGovernance.Bedrock, AWS backends for Microsoft's Agent Governance Toolkit.

Stack (merge bottom-up): 1) scaffold (this, base dev) 2) policy 3) audit 4) sanitizer 5) setup.

This PR

  • Package project: net8.0, signed, packable, AOT-compatible, 0.1.0 preview.
  • BedrockGuardrailClient: shared wrapper over ApplyGuardrailAsync with timing.
  • GuardrailResponseMapper: pure helpers (intervened, redacted text, PII types, summary).
  • xUnit v3 test project; registered in AWS.DotNetAI.slnx and .autover.

Introduces the package project (net8.0, signed, packable, 0.1.0 preview) plus
the two internals shared by every feature that follows:

- BedrockGuardrailClient: thin wrapper over IAmazonBedrockRuntime.ApplyGuardrailAsync
  that builds the request and times the round-trip. No error handling by design;
  callers choose fail-closed (policy) vs never-throw (audit).
- GuardrailResponseMapper: pure helpers over the response (intervened flag,
  redacted text, detected PII types, assessment summary) so the policy and
  sanitizer features can't drift in how they read a guardrail assessment.

Adds a xUnit v3 unit test project with mapper coverage, and registers both
projects in AWS.DotNetAI.slnx and .autover/autover.json.
@GarrettBeatty
GarrettBeatty force-pushed the gcbeatty/agent-gov-bedrock-scaffold branch from 6eff196 to a5ab636 Compare August 17, 2026 18:53
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.

1 participant