feat(ai): MEAI Phase 4 — policy-gated AWS Bedrock targets - #234
Draft
IanFrelinger wants to merge 5 commits into
Draft
feat(ai): MEAI Phase 4 — policy-gated AWS Bedrock targets#234IanFrelinger wants to merge 5 commits into
IanFrelinger wants to merge 5 commits into
Conversation
Map current model invocation, sanitization, audit, policy packs, RAG, and host DI seams to proposed Microsoft.Extensions.AI concepts for the governed pipeline migration. Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
Add Nexo.AI.Pipeline with keyed local:ollama and local:onnx chat clients, wire optional registration through hosting Phase 13b when Nexo:UseMeaiPipeline is enabled (default off), and cover registration with FakeChatClient tests. Legacy IProviderFactory path remains default. Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
Introduce UseNexoGovernance with fixed PolicyGate → Sanitizing → Auditing order on every keyed IChatClient, plus unit tests for deny short-circuit, PII redaction, audit outcomes, and composition/architecture guarantees. Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
Introduce policy × availability routing outside per-target governance stacks, with audited route decisions and a table-driven matrix of local/cloud fallback scenarios. Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
Register cloud:bedrock:{fast,balanced,heavy} with configurable model ids,
reuse the default AWS credential chain, keep Bedrock SDK clients out of DI,
and cover routing/sanitization/audit with fake-transport tests.
Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
4 tasks
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
Phase 4 of the MEAI migration: policy-gated AWS Bedrock cloud targets
cloud:bedrock:{fast,balanced,heavy}with configurable model ids, full governance stack, and default AWS credential chain reuse.Stacks Phases 0–3. Prefer merging prior MEAI PRs first, or take this PR alone.
Changes
AWSSDK.BedrockRuntime,AWSSDK.Extensions.Bedrock.MEAIAwsBedrockChatClientFactoryusesAsIChatClient(modelId); SDK client never registered in DINexo:Meai:Bedrock:{Enabled,Region,FastModelId,BalancedModelId,HeavyModelId}BlockOnSecretRedactOnPii)NEXO_TEST_BEDROCK=1Testing
Checklist