AWS governed AI pathways · v2.0

One trust boundary. Many AI surfaces.

Build one identity-bound, rights-aware decision path for applications, RAG, lineage triage, developer IDEs, MCP tools, A2A agents and external assistants. Promote capabilities by risk tier rather than exposing every pathway equally.

Default-deny Rights and geo aware Evaluated and observable v2.0 · 2026-07-21
01 Shared policy model

One governed source compiles domain/content policies for Verified Permissions and tool policies for AgentCore Policy.

02 Evidence-grade retrieval

Vector RAG, GraphRAG and operational lineage remain distinct evidence classes with explicit confidence and provenance.

03 Protocol adapters

MCP, A2A, HTTP, AG-UI and OpenLineage connect through the same identity, rights, safety and audit core.

04 Risk-based promotion

Internal read pathways can ship first. Writes, delegation, public assistants and commerce advance through stronger gates.

Recommendation Adopt a pathway manifest as the deployable unit of AI governance.

Each manifest binds exposure, identity, protocols, actions, data scope, policy bundles, retrieval route, models, guardrails, evaluations, budgets and audit retention.

Ready first Internal read-only knowledge and lineage

Enterprise SSO, rights-filtered retrieval, resource authorization, citations and immutable evidence.

Internal-ready
Pilot next Reversible actions and A2A delegation

Explicit confirmation, rollback, narrow tools, delegation limits, sandboxing and human review.

Controlled pilot
Gate carefully Public assistants, premium content and commerce

OAuth 2.1, privacy and licensing review, abuse controls, public testing, support and merchant-owned entitlement.

Public gate
01 · FOUNDATION

Four decisions. Four owners.

The platform remains governable when authentication, authorization, content rights and AI safety are modeled as separate decisions with independent evidence.

Sources S01–S03

Authentication

Question: Who is making the request?

Enterprise OIDC. Durable subject ID. Tenant. Session assurance. Authentication time.

Authorization

Question: May this principal perform this platform action?

Amazon Verified Permissions. Cedar policies. Default-deny. Explicit action and resource.

Content rights

Question: May this principal use this asset now, here and for this purpose?

Entitlement, subscription, time window, country, classification and derivative-use terms.

AI safety

Question: Is this input, retrieved context, action or output acceptable?

Guardrails, schema validation, sanitizers, prompt-injection defenses and evaluations.

Models generate content. They never authorize access. Primary security invariant

Fail closed

Deny when identity, tenant, rights, policy version, geography or required safety enforcement cannot be established.

No direct provider access

Applications do not receive broad model invocation permissions. The governed gateway is the approved invocation boundary.

02 · SYSTEM TOPOLOGY

One core. Multiple governed pathways.

The architecture separates client protocols and execution targets from identity, rights, safety, risk classification and evidence. A pathway manifest selects the controls required for each exposure and capability.

Sources S01, S03, S05, S08, S27–S28
Governed AI pathways topologyClients and protocols converge on a shared decision, retrieval and evidence core
Rendering platform topology…

Decision plane

Identity normalization, pathway risk, domain authorization, tool authorization and rights resolution remain deterministic.

Execution plane

RAG engines, models, tools and agents are replaceable targets selected only after policy and safety decisions.

Evidence plane

Every decision carries policy, content, route, delegation, guardrail, evaluation and cost provenance.

Architectural correction: do not create a second authorization silo

Verified Permissions remains the business-domain and content-rights authority. AgentCore Policy enforces tool-level requests at AgentCore Gateway. Both derive from one governed policy model and publish correlated decision evidence.

03 · RISK AND PROMOTION

Exposure changes the control set.

Risk is determined by identity, data sensitivity, autonomy, reversibility, external exposure and economic consequence—not by the model name. These tiers are a platform overlay informed by AWS, NIST and OWASP guidance; they are not official AWS tier labels.

Sources S38–S42
Show pathways
G0

Public curated facts

Static public metadata, approved abstracts, documentation and discovery endpoints.

No identity required; WAF, rate limits, provenance and content review.
Internal-ready
G1

Internal identity-bound read

Knowledge retrieval, lineage inquiry, observability summaries and developer assistance.

SSO, tenant/content rights, resource authorization, citations, DLP and immutable audit.
Internal-ready
G2

Internal reversible action

Drafting, ticket creation, non-production changes and reversible workflow steps.

Narrow tools, confirmation, idempotency, rollback, budgets and post-action validation.
Controlled pilot
G3

Privileged or delegated autonomy

Production tools, A2A task delegation, sensitive data and multi-step action chains.

Step-up auth, human approval, sandboxing, delegation depth, loop limits and break-glass controls.
Controlled pilot
G4

External authenticated pathway

Partner agents, public MCP, external assistant apps and premium content retrieval.

OAuth 2.1, public threat model, privacy/licensing review, abuse protection, support and residency controls.
Public gate
G5

Economic or irreversible action

Payments, purchases, publication, destructive change or high-impact decision.

Non-repudiation, transaction controls, legal/compliance review, dispute handling and mandatory human confirmation.
Public gate
G0–G1Preferred initial production scope
G2–G3Pilot with reversible controls
G4Public-product security review
G5Economic and irreversible controls
04 · RIGHTS ENGINE

Entitlement is data, not code.

Premium access, person-specific grants, embargoes, time windows, purpose limits and geographic restrictions should be editable as rights data and policy.

Sources S01, S02, S05
Rights-aware retrieval Retrieval filters improve precision; resource authorization enforces security
Rendering rights model…
Rights dimensionExample attributeEnforcement
IdentityallowedPrincipalIds, groups, tenantPer-resource Cedar decision
SubscriptionminimumSubscription = premiumPolicy plus entitlement record
TimevalidFrom, validUntil, embargoSigned request time in context
GeographyAllowed and denied countries or legal regionsSigned edge context, rechecked at origin
PurposeSupport, research, summary, publicationExplicit action and request purpose
AI usageRetrieval, summarization, transformation, trainingSeparate rights flags and actions
OutputMaximum excerpt length, citation requirementPrompt and response post-processing
content-rights.ts
export interface ContentRights {
  contentId: string;
  contentVersion: string;
  tenantId: string;
  classification: "public" | "internal" | "confidential" | "restricted";

  requiredEntitlement?: string;
  minimumSubscription: "free" | "standard" | "premium" | "enterprise";
  allowedPrincipalIds?: string[];
  allowedGroups?: string[];

  allowedCountries?: string[];
  deniedCountries?: string[];
  validFromEpoch?: number;
  validUntilEpoch?: number;
  allowedPurposes: string[];

  aiRetrievalAllowed: boolean;
  summarizationAllowed: boolean;
  derivativeGenerationAllowed: boolean;
  modelTrainingAllowed: boolean;

  maximumExcerptCharacters?: number;
  policyVersion: string;
}
Retrieval filters are not the final authorization boundary

Use filters to reduce the candidate set. Load authoritative metadata and authorize each returned content resource before it enters a prompt.

05 · TRUST PATH

Authorize before context becomes capability.

Every request follows the same order. Each stage emits enough evidence to explain why the final response was allowed, constrained, blocked or denied.

Sources S03–S05
Request sequence Knowledge answer with independent input, retrieval and output controls
Rendering request path…
Validate edge context

Strip spoofable headers. Verify signature, key ID, issue time, expiry and request binding.

Normalize identity

Convert provider claims into a stable platform principal. Email is not the durable key.

Authorize the action

Evaluate principal, tenant, purpose, subscription, country and application against Cedar policy.

Inspect input

Enforce schema, size, Unicode, secret, PII, content and prompt-injection controls before retrieval.

Authorize retrieved resources

Metadata narrows candidates. Per-resource authorization remains the final boundary.

Invoke through an adapter

Resolve a capability alias to an approved provider, model, region, quota and guardrail version.

Validate output

Recheck safety, structured output, URLs, citations, data leakage and rights-dependent excerpt limits.

Publish evidence

Record decision provenance, content IDs, policy hashes, model route and usage without default raw-content logging.

06 · POLICY TOPOLOGY

One policy model. Two enforcement targets.

Use the service best aligned to each decision while preserving a single semantic model, shared tests and correlated evidence. Verified Permissions handles domain and resource rights. AgentCore Policy handles AgentCore Gateway tool requests and input parameters.

Sources S01–S05
Unified policy lifecycleShared policy semantics compiled to domain and tool enforcement targets
Rendering policy topology…

Verified Permissions

Authoritative for application actions, tenant isolation, premium entitlement, content rights, time, geography, purpose and per-resource decisions.

AgentCore Policy

Authoritative at AgentCore Gateway for whether an OAuth user or IAM entity may invoke a specific tool with specific input parameters.

Avoid policy split-brain

Do not manually maintain overlapping Cedar policies in separate repositories. Compile both targets from common entities, actions, context vocabulary and test fixtures. Reject releases when equivalent decisions diverge.

07 · CHANGE GOVERNANCE

Promotion is a tested product decision.

A pathway release packages policy bundles, exposure tier, protocol scopes, retrieval route, model aliases, guardrails, budgets and evaluation evidence. Code deployment is only one component.

Sources S02–S03, S06, S45
Pathway promotion pipelineAuthorization, retrieval, agent, safety, cost and operational gates
Rendering governance pipeline…

Policy release

Strict schemas, common fixtures, differential tests and correlated domain/tool decision evidence.

Operational configuration

AppConfig for routes, quotas, residency, feature flags, staged rollout, alarms and emergency kill switches.

Evaluation release

Pin datasets, judges, thresholds and expected policy outcomes so the release can be replayed and audited.

08 · RETRIEVAL PLANE

Select retrieval by evidence shape.

No single RAG engine is optimal for every question. Route according to document structure, relationship depth, freshness, query determinism, metadata volume, latency, residency and authorization requirements.

Sources S08–S18
Governed retrieval routerVector, enterprise search, structured data, semantic graph and lineage paths remain distinct
Rendering retrieval router…
PathBest fitStrengthsMaterial constraintsGovernance posture
Bedrock KB + OpenSearch ServerlessGeneral enterprise document RAG and hybrid searchMature filtering, hybrid retrieval, managed Bedrock integrationHigher standing cost; index and metadata design still matterG1 internal-ready after per-resource authorization
Bedrock KB + S3 VectorsCost-sensitive large vector corpora and less frequently queried knowledgeS3-native economics and managed KB pathMetadata limits affect rights-filter design; validate latency and region supportG1 when rights attributes fit or are resolved authoritatively after retrieval
Bedrock KB + Aurora pgvectorTeams needing relational joins, transactional metadata or PostgreSQL controlSQL ecosystem and data co-locationCapacity, indexing, vacuuming and connection managementG1 with database and application authorization aligned
Kendra GenAI indexEnterprise search with connectors, relevance and document ACL patternsSearch-oriented retrieval and enterprise sourcesDifferent customization and cost model; confirm ACL semanticsUse ACL filtering plus gateway resource authorization
Structured KB / RedshiftNatural-language access to governed warehouse factsGenerateQuery converts questions to SQL-like retrievalRedshift-only managed path; generated query validation and cross-region processing require reviewG1 read-only first; enforce row/column rights and query budgets
Neptune Analytics GraphRAGMulti-hop concepts and inferred relationships across documentsManaged semantic graph construction and graph-enhanced retrievalS3 source and graph lifecycle constraints; generated relationships are probabilisticUse as retrieval evidence, never authoritative lineage
Customer-managed retrieverUnsupported stores, bespoke ranking, strict latency or domain algorithmsMaximum control and portabilityHighest engineering, security, evaluation and operations burdenRequire the same pathway contract and audit schema
Current service limits, regions and pricing must be revalidated before implementation. This matrix describes architecture fit, not procurement ranking.

Evaluate retrieval separately

Measure recall, precision, rights-filter correctness, latency and route selection before generation quality obscures retrieval errors.

Use direct ingestion deliberately

Direct document APIs can support event-driven freshness, but the platform must preserve rights metadata, deletion and lineage semantics.

Pin query behavior

Version filters, rerankers, chunking, embeddings, prompts and citation checks as part of the pathway release.

09 · LINEAGE INTELLIGENCE

Separate recorded provenance from inferred explanation.

Operational lineage is authoritative evidence about datasets, jobs, runs and transformations. GraphRAG may enrich that evidence with owners, runbooks and prior incidents, but inferred semantic edges must remain visibly lower confidence.

Sources S20–S26
Lineage-aware triage pathwayAuthorized evidence graph, historical impact analysis and optional governed remediation
Rendering lineage triage…

Authoritative facts

OpenLineage events, DataZone or Unified Studio lineage nodes, run history, deployed schemas, data quality and observed incidents.

Derived analysis

Blast radius, temporal correlation, likely root-cause candidates and missing-lineage gaps. Label as inference with confidence.

Semantic enrichment

GraphRAG over runbooks, architecture records and prior incidents can explain context without rewriting operational truth.

ToolRiskRequired result contractReadiness
lineage.resolve_assetG1Canonical asset IDs, environment, owner and ambiguity setInternal-ready
lineage.trace_upstream / downstreamG1Authorized nodes, edge type, event time, source and completenessInternal-ready
lineage.compare_at_timeG1Historical graph delta with versioned event evidenceInternal-ready
lineage.get_quality_signalsG1Quality rule results, period, metric source and freshnessInternal-ready
lineage.simulate_change_impactG2Predicted impact, assumptions, uncertainty and affected ownersControlled pilot
lineage.remediateG3Explicit plan, approvals, dry run, idempotency and rollbackControlled pilot
Catalog lineage permissions may be coarser than product rights

The governed pathway must apply its own tenant, asset and purpose authorization before exposing catalog lineage through an LLM or agent, even when the caller can technically invoke a catalog API.

10 · PROTOCOL FABRIC

Protocols describe interaction. Policy grants authority.

Do not treat MCP, A2A, AG-UI, OpenLineage or AEO as interchangeable. Each protocol has a bounded role and must carry identity, audience, purpose, resource and delegation evidence into the governed core.

Sources S27–S32
Protocol and practice stackIdentity, tools, agents, UI, lineage, telemetry and commerce remain separate layers
Rendering protocol stack…
Identity and delegationOIDC · OAuth 2.1 · PKCE

Authenticate the user or workload, bind tokens to the intended resource, preserve issuer and audience, and prohibit token passthrough.

Foundation
Tool/resource accessMCP · HTTP · OpenAPI · Smithy

MCP exposes tools, resources and prompts to compatible clients. HTTP contracts remain the deterministic service boundary beneath adapters.

Internal-ready
Agent collaborationA2A

Use for agent discovery, tasks, artifacts, status and delegation—not as a replacement for tool authorization.

Controlled pilot
Agent UIAG-UI · MCP Apps UI

Stream state, events and interactive components to users. User confirmation remains a governance action, not a visual affordance alone.

Controlled pilot
Data lineageOpenLineage

Standardize job, run, dataset and facet evidence. It is a provenance protocol, not an agent protocol.

Internal-ready
TelemetryOpenTelemetry · CloudEvents

Correlate traces, decisions, events and async workflows across protocol boundaries without placing secrets in telemetry.

Foundation
CommerceAP2 / ACP watchlist

Agent-payment protocols are relevant only when the platform permits economic action. They do not replace merchant identity, entitlement or dispute controls.

Watch
AEO / agent experiencePractice, not protocol

Optimize public metadata, canonical citations, tool descriptions and machine-readable content. Keep authorization and premium content behind the gateway.

Practice
Never pass the client token through to an upstream service

Validate the incoming token for the governed resource, then acquire or broker a separate downstream credential with the minimum required scope.

11 · DEVELOPER SURFACES

Bring governance into the developer loop.

Developers should access knowledge, lineage and approved tools from the CLI and IDE without receiving broad cloud credentials or bypassing content rights. Use remote, identity-bound pathways and an allow-listed tool registry.

Sources S27, S29–S30, S33–S34

Kiro CLI

Use enterprise OAuth to connect remote MCP servers and invoke read-only knowledge, lineage and operational tools with user-attributed audit.

G1 internal-ready

IDE assistants

Expose the same remote registry to Kiro and other approved MCP-capable IDE clients. Pin tool versions and environment scopes.

G1 internal-ready

CI/CD and autonomous coding

Use workload identity, repository/environment scope, dry runs, branch protections, budget limits and explicit production approvals.

G2–G3 pilot
Developer pathwayDefault actionsIdentityControls
Knowledge MCPSearch, retrieve, cite, summarizeInteractive enterprise OAuthRights filters, per-resource authorization, no shared response cache
Lineage MCPResolve assets, trace, compare history, quality signalsInteractive enterprise OAuthAsset authorization, environment scope, confidence and completeness
Operations MCPRead logs, metrics, deployments and runbooksOAuth or workload identityRedaction, time range, account/environment and query budgets
Change toolsCreate ticket, open PR, nonprod actionStep-up or workload identityConfirmation, idempotency, rollback, repository and environment policy
Production toolsRemediation, publish, mutate or deployStep-up plus approvalG3 controls, human review, break-glass and post-condition validation
Naming update

Use Kiro CLI for the current CLI surface. “Q CLI” may still appear in older documentation and transition material.

12 · EXTERNAL EXPOSURE

The assistant is a client—not the entitlement authority.

External assistants may initiate discovery and authenticated retrieval, but the content owner retains identity, subscription, rights, geography, rate limits, revocation, billing and audit.

Sources S30, S35–S37
Premium assistant connectionOAuth-protected tool calls resolve merchant entitlement before content retrieval
Rendering premium access flow…

Public catalog

Expose approved titles, abstracts, product metadata and canonical links without premium body content.

G0 ready

Authenticated premium retrieval

OAuth-protected MCP or HTTPS checks the merchant account on every request and applies content, time, person and geo rights.

G4 public gate

Checkout and commerce

Use merchant-hosted checkout first. Payment or irreversible actions require a separate G5 pathway and explicit confirmation.

G5 future
ControlRequired posture before public exposure
OAuth and MCPOAuth 2.1, PKCE, protected-resource metadata, exact redirect URIs, issuer/audience validation, short token lifetimes and no token passthrough
EntitlementMerchant-owned account and subscription check on each premium request; no trust in assistant claims
Content rightsResource authorization, excerpt and transformation limits, geography, embargo and revocation
PrivacyMinimum fields, explicit disclosure, retention limits, deletion workflows and regional processing review
AbusePer-user and per-client quotas, scraping detection, anomaly controls, credential revocation and incident response
Product operationsPublic documentation, support, status, versioning, deprecation and assistant-platform review requirements
Technical connectivity is not public-product approval

External assistant publication, digital-goods monetization and platform policies continue to evolve. Treat premium content through public assistants as a gated product program with current-policy revalidation.

13 · EXECUTION ROUTING

Route capabilities, not providers.

Clients request governed capabilities. The pathway manifest resolves model, tool, peer agent, region, quota, guardrail, timeout and fallback constraints.

Sources S27–S28, S54

Client-facing aliases

knowledge-balanced, regulated-text, low-latency, approved-image.

Aliases remain stable when providers, versions or regions change.

Provider adapter ownership

Credential handling, request translation, streaming normalization, retries, usage extraction and provider error mapping.

Authorization remains outside the adapter.

model-provider-adapter.ts
export type AICapability =
  | "chat"
  | "structured-output"
  | "embeddings"
  | "image-generation"
  | "tool-use";

export interface ModelProviderAdapter {
  readonly providerId: string;

  supports(capability: AICapability): boolean;

  invoke(
    request: GovernedAIRequest,
    context: GovernedContext,
    signal: AbortSignal
  ): AsyncIterable<GatewayEvent>;
}
No silent safety downgrade

A provider outage may trigger an approved route change. It must not remove a required guardrail, broaden data residency or reduce the authorization posture.

14 · SAFETY

Guard the whole context path.

Input guardrails alone are insufficient. Retrieved documents, structured tool arguments, generated URLs, image prompts and final output each require separate enforcement.

Sources S03, S04, S10, S11

Before retrieval

  • Schema and payload limits
  • Unicode normalization
  • Secret and PII detection
  • Direct prompt-injection analysis
  • Denied topics and abuse controls

Before inference

  • Authorized context only
  • Instruction/data separation
  • Active markup removal
  • Indirect prompt-injection analysis
  • Protected prompt template

Before release

  • Output guardrail
  • Structured schema validation
  • URL and HTML sanitization
  • Citation authorization check
  • Rights-based excerpt enforcement
LayerPrimary controlsFailure posture
EdgeWAF, bot controls, coarse quotas, size limitsReject obvious abuse early
IdentityJWT claims, issuer, audience, session assuranceDeny unverified identity
RequestJSON schema, normalization, replay and idempotencyReject malformed request
RetrievalIngestion quarantine, metadata filters, resource authorizationExclude unauthorized context
ModelApproved alias, token limits, region policy, timeoutNo uncontrolled fallback
OutputGuardrail, data loss prevention, citation and format checksBlock, transform or safe refusal
EvidenceRedaction, digests, immutable audit archiveDo not log raw sensitive content by default
Retrieved content is untrusted input

A knowledge document can contain instructions designed to override the system, exfiltrate data or trigger tools. It must never inherit authority from its storage location.

15 · ASSURANCE

Every answer needs an evidence trail.

The system must reconstruct who requested what, which rights and policies applied, what content was authorized, which route ran and what safety decisions occurred.

Sources S07–S09

Operational telemetry

CloudWatch metrics and logs, X-Ray traces, latency, errors, quotas, provider health and cost units.

Governance evidence

Structured events through Data Firehose into a dedicated, KMS-encrypted S3 archive protected by Object Lock.

Evidence categoryRecordAvoid by default
IdentityPrincipal hash, tenant, application, session assuranceEmail or unnecessary profile data
AuthorizationDecision, policy store, bundle hash, determining policiesOpaque “allowed=true” only
ContentRequested, allowed and denied content IDs; rights versionsFull protected document text
AI routeProvider, alias, resolved model, prompt and guardrail versionsUnversioned “latest” references
UsageInput/output tokens, latency, cost units, result classSecrets, access tokens and raw credentials
IntegrityInput/output digests and archive checksRaw prompt/response retention as the standard path

Authorization evaluations

Zero cross-tenant, premium, person, embargo, time-window or geography leakage.

Safety evaluations

Direct and indirect injection, secret extraction, PII, jailbreaks, malicious URLs and tool misuse.

Quality evaluations

Groundedness, citation precision, retrieval recall, refusal correctness, answer relevance and hallucination rate.

Evaluate policy and retrieval changes—not only models

A safer model cannot compensate for an authorization regression or a metadata-filter bug. Release gates must cover the entire trust path.

16 · EDGE

Enrich at the edge. Decide at the origin.

Edge infrastructure can reduce abuse and attach signed geography or network risk. It should not become the sole authority for legal or rights-sensitive access.

Sources S13–S14

Akamai

Best when the enterprise perimeter already uses Akamai. EdgeWorkers can validate JWTs, apply bot signals and sign context.

CloudFront

AWS-native path with WAF, Shield, origin controls and viewer geography headers. Keep personalized AI responses uncacheable.

Varnish

Flexible and capable when already standardized. Requires explicit ownership for patching, policy distribution, observability and availability.

signed-edge-context.json
{
  "requestId": "0190…",
  "country": "CO",
  "region": "ANT",
  "networkRisk": "low",
  "issuedAt": 1784451600,
  "expiresAt": 1784451660,
  "keyId": "edge-context-2026-07"
}
Do not trust client-supplied geography headers

The gateway must strip internal headers, verify the edge signature and fail closed when a jurisdiction is required but cannot be established.

17 · ORGANIZATIONAL BOUNDARIES

Trust scales through account boundaries.

Separate policy ownership, runtime operation, content stewardship, security detection and immutable evidence while keeping the synchronous request path regional and resilient.

Sources S07–S08
Recommended multi-account topology Organizational control without unnecessary synchronous cross-account dependencies
Rendering account boundaries…

Governance owns

Policy source, schemas, release authority, evaluation datasets and signed release manifests.

Platform owns

Runtime, regional policy stores, adapters, SLOs, incident response and deployment automation.

Content owners own

Authoritative rights metadata, classification, legal restrictions, embargoes and allowed AI transformations.

18 · FIRST USE CASE

Start with governed knowledge.

Knowledge answering exercises the full platform boundary: identity, subscription, geography, resource rights, retrieval safety, model routing, citations and evidence.

Sources S03–S06
CapabilityRecommended first implementationWhy
PerimeterAkamai or CloudFront + AWS WAFExisting enterprise edge or AWS-native control
APIAPI Gateway REST APIManaged ingress, authorizers, quotas and response streaming path
RuntimeTypeScript LambdaFast delivery and AWS SDK integration
AuthorizationAmazon Verified PermissionsExternalized Cedar policy
ConfigurationAWS AppConfigValidated, staged operational policy and rollback
KnowledgeS3 + Bedrock Knowledge BasesManaged retrieval with metadata filters
RightsDynamoDB or dedicated rights serviceAuthoritative resource metadata and versioning
SafetyBedrock Guardrails + application validatorsIndependent input/output checks and deterministic schema controls
EvidenceFirehose → S3 Object LockDurable and tamper-resistant governance trail
Authenticate and derive entitlements

Resolve tenant, durable subject, premium tier, groups and session assurance.

Authorize KnowledgeAnswer

Include purpose, application, subscription, geography and requested collection scope.

Sanitize the question

Block or transform unsafe, secret-bearing or malformed inputs before retrieval.

Retrieve through rights filters

Constrain by tenant, entitlement, validity window, country and allowed purpose.

Re-authorize every candidate

Exclude any chunk whose authoritative rights record does not independently allow access.

Generate and validate

Invoke the approved route, apply output guardrails and validate citations against the authorized source set.

19 · IMAGE EXTENSION

Generated media stays quarantined until cleared.

Image generation adds person, brand, intellectual-property, publication and provenance controls. It should reuse the same action, policy and audit model.

Sources S03, S12
Governed image-generation flow Prompt policy, model adapter, moderation, provenance and release
Rendering image pathway…

Rights

Commercial use, publication, person likeness, protected brands, characters and permitted transformations.

Safety

Prompt controls, image moderation, minor safety, prohibited content and human review thresholds.

Provenance

Provider/model alias, prompt digest, watermark or C2PA status, output digest, retention and release decision.

Route image generation through an alias

Model availability, capability and regional support change. Keep provider identifiers behind the approved model catalog and evaluation process.

20 · RUNTIME

Choose operations proportionate to the workload.

Lambda is the preferred first runtime. ECS or EKS becomes appropriate when sustained connections, long workflows, specialized networking or self-hosted inference justify the operational cost.

Sources S15–S16
RuntimeUse whenTrade-off
LambdaInitial gateway, bursty traffic, straightforward RAG, policy orchestrationConcurrency, long workflows, connection behavior and cold-path tuning
ECS/FargateSustained traffic, connection pooling, long-lived streams, predictable capacityMore runtime operations and capacity management
EKS/KubernetesExisting platform mandate, service mesh, GPU/self-hosted inference, specialized sidecarsHighest security and operational burden

TypeScript first

Best delivery velocity for Lambda, JSON contracts, AWS SDKs, streaming web APIs and shared application types.

Go selectively

Use for profiled high-throughput processors, sustained services, ingestion workers or resource-constrained components.

Do not duplicate the gateway in two languages during phase one

Stabilize the policy contract, adapter boundary and audit schema before creating a second runtime implementation.

21 · ENGINEERING HANDOFF

Make the trust boundary explicit in code.

The initial repository should keep transport, domain policy, provider adapters, retrieval, safety and evidence isolated behind testable interfaces.

Sources S01–S05, S15–S16
pathway-manifest.json
{
  "id": "internal-lineage-triage",
  "version": "2026-07-21.1",
  "owner": "core-ai-platform",
  "exposure": "internal",
  "riskTier": "G1",
  "identity": { "mode": "enterprise-oauth", "assurance": "standard" },
  "clients": ["kiro-cli", "approved-ides", "internal-agents"],
  "protocols": ["mcp", "https", "openlineage"],
  "actions": ["lineage.resolve_asset", "lineage.trace", "lineage.compare"],
  "resourceScopes": ["data-products:*:read"],
  "domainPolicyBundle": "lineage-rights@42",
  "toolPolicyBundle": "lineage-tools@18",
  "retrievalRoute": "lineage-evidence-graph@7",
  "modelAliases": ["regulated-analysis"],
  "guardrailProfile": "internal-data@12",
  "evaluationProfile": "lineage-triage@9",
  "quotas": { "requestsPerMinute": 30, "maxTraversalNodes": 500 },
  "audit": { "retentionClass": "security-7y", "rawContent": false },
  "promotionStatus": "internal-ready"
}
Pathway manifest is the operational contract

It connects architecture, policy, deployment, client discovery, evaluation and audit. The runtime must reject unknown or unsigned manifest versions.

Data-plane API

POST /v1/responses
POST /v1/retrieve
POST /v1/images/generations
GET  /v1/image-jobs/{jobId}
GET  /v1/models
GET  /v1/usage

Administrative boundary

Keep policy, model approval, guardrail, rights administration and evaluation APIs separate from the public AI data plane.

Require stronger identity assurance and explicit separation of duties.

gateway-service-layout.txt
src/
├── transport/
│   ├── api-gateway.ts
│   └── response-stream.ts
├── identity/
│   ├── jwt-validator.ts
│   └── principal-normalizer.ts
├── authorization/
│   ├── policy-client.ts
│   ├── action-catalog.ts
│   └── rights-authorizer.ts
├── safety/
│   ├── input-pipeline.ts
│   ├── output-pipeline.ts
│   └── guardrail-client.ts
├── retrieval/
│   ├── metadata-filter.ts
│   ├── knowledge-base.ts
│   └── citation-validator.ts
├── models/
│   ├── router.ts
│   ├── provider-adapter.ts
│   └── providers/bedrock.ts
├── audit/
│   ├── event-schema.ts
│   └── publisher.ts
└── application/
    └── governed-response.ts

Non-negotiable decisions

All AI access crosses the gateway.

Direct provider invocation by product applications is denied by IAM and organizational controls.

Cedar secures application actions and business rights.

IAM secures workloads and AWS resources. Neither replaces the other.

Every retrieved resource is independently authorized.

Vector filters improve precision. They do not replace authorization.

Policies, prompts, routes and guardrails are versioned.

No mutable “latest” dependency in a production decision trail.

Unknown critical context fails closed.

Identity, jurisdiction, content rights and required safety state must be established.

Raw content is excluded from the standard audit path.

Use IDs, digests, policy evidence and tightly governed diagnostic sampling.

Every consequential agent action receives a new decision.

Permission to answer does not imply permission to publish, send, modify or transact.

Image output remains quarantined until cleared.

Safety, rights, provenance and release policy apply before delivery.

22 · ROADMAP

Promote pathways, not features.

Advance each capability through evidence-based readiness. Internal read-only pathways establish the platform contract before reversible actions, delegation, public assistants and commerce.

Engineering synthesis

Foundation

Shared identity, pathway manifests, domain/tool policy compilation, audit schema and internal knowledge retrieval.

Lineage intelligence

Read-only asset resolution, historical traversal, quality evidence and cited triage in CLI and IDE clients.

Controlled agency

Reversible tools, AgentCore policy, confirmation, rollback, A2A delegation limits and sandboxed pilots.

External access

Public catalog, OAuth-protected premium retrieval, privacy/licensing review, public abuse controls and support.

Economic actions

Merchant-owned checkout, non-repudiation, disputes, regulatory controls and explicit human confirmation.

Identity issues the ticket. Policy controls the gate. Rights determine the destination. Guardrails inspect the cargo. Evidence records the journey. Operating model
23 · WATCHLIST

Pin stable contracts. Isolate evolving surfaces.

Several managed services, protocols and assistant-publication programs are changing rapidly. Keep them behind adapters and release gates so evolution does not weaken authorization or lock the platform to preview behavior.

Sources S16–S17, S31, S37, S51

AgentCore Agent Registry

Preview status and the announced namespace migration require revalidation before making registry identifiers a durable production contract.

MCP evolution

Pin the stable 2025-11-25 authorization contract and run conformance tests. Treat enterprise-managed authorization proposals and roadmap items as future extensions.

Managed GraphRAG constraints

Track source limits, graph lifecycle, graph-construction model changes, cross-region behavior and Neptune Analytics operating characteristics.

Structured retrieval residency

Redshift structured knowledge bases may use cross-region inference. Data residency and regional processing must be part of pathway admission.

External assistant monetization

OAuth connectivity can be engineered now, but public app approval and digital-goods monetization rules require current OpenAI policy review.

Model and image lifecycle

Never hard-code provider model identifiers. Use aliases, lifecycle monitoring, replacement evaluations and release manifests.

24 · PROVENANCE

Research and source register.

The architecture prioritizes official AWS, protocol-owner and OpenAI documentation, with NIST and OWASP for governance and threat coverage. Service limits, preview status and external platform policies must be revalidated at implementation time.

Generated 2026-07-21

Method

Synthesized service capabilities, security boundaries, policy design, evaluation practices and deployment trade-offs into an engineering reference architecture.

Evidence preference

Official AWS service documentation first. NIST and OWASP for risk and threat taxonomy. Edge-vendor documentation for edge-specific capabilities.

Freshness rule

Reconfirm model availability, regions, quotas, pricing, API limits and service-specific feature support before production approval.

IDSourceSupports
S01Amazon Verified Permissions overviewExternalized fine-grained authorization with Cedar
S02Verified Permissions schemasStrict schemas and policy validation
S03AgentCore PolicyDeterministic policy enforcement for AgentCore Gateway traffic
S04AgentCore Cedar policiesCedar principals, tools and parameter-aware authorization
S05AgentCore Policy authorization flowOAuth claims, tool input and policy decision flow
S06AWS AppConfig deployment monitoringAlarm-driven rollback and staged configuration deployment
S07Bedrock ApplyGuardrail APIIndependent input and output guardrail evaluation
S08Amazon Bedrock Knowledge BasesManaged retrieval-augmented generation
S09Create a Bedrock Knowledge BaseCurrent managed stores and creation options
S10Kendra GenAI index for Bedrock Knowledge BasesKendra enterprise search integration
S11Structured data knowledge basesManaged structured retrieval using Redshift
S12GenerateQuery APINatural-language query generation for structured data
S13Amazon S3 Vectors with Bedrock Knowledge BasesS3-native vector storage and metadata constraints
S14AWS vector database comparison for RAGVector store selection trade-offs
S15Choosing an AWS RAG optionDecision guidance across managed and custom RAG
S16Bedrock GraphRAG with Neptune AnalyticsManaged semantic graph construction and limitations
S17GraphRAG metadata filtering best practicesFilter design and query performance
S18Amazon Neptune AnalyticsIn-memory graph analytics characteristics
S19Bedrock RAG evaluationsRetrieve-only and retrieve-and-generate evaluation
S20Data lineage in SageMaker Unified StudioOpenLineage-compatible lineage and historical views
S21Amazon DataZone PostLineageEventOpenLineage event ingestion
S22Amazon DataZone GetLineageNodeProgrammatic lineage node retrieval
S23AWS Glue lineage in Unified StudioAutomatic lineage capture for supported jobs
S24SageMaker Unified Studio permissionsCatalog access-control considerations
S25AWS Glue Data QualityData-quality rules, scores and history
S26OpenLineage specificationJobs, runs, datasets and extensible facets
S27Amazon Bedrock AgentCore GatewayManaged gateway for tools, APIs and MCP targets
S28AgentCore Runtime A2A supportA2A and other runtime protocol patterns
S29Amazon Bedrock AgentCore IdentityAgent, user and downstream credential management
S30MCP authorization specification 2025-11-25OAuth 2.1, resource metadata, PKCE and token audience
S31MCP roadmapProtocol evolution and future work
S32AG-UI introductionOpen event protocol for agent-to-user interfaces
S33Kiro CLI documentationCurrent AWS developer CLI surface
S34MCP with Amazon Q Developer and KiroMCP server configuration and remote access
S35OpenAI Apps SDK authenticationOAuth-protected MCP servers for ChatGPT apps
S36Connect an MCP server from ChatGPTChatGPT connection and testing flow
S37Submit apps to ChatGPTApp review, publication and policy process
S38NIST AI Risk Management FrameworkAI governance and risk lifecycle
S39OWASP Top 10 for LLM ApplicationsPrompt injection, excessive agency and related threats
S40AWS Well-Architected Agentic AI LensAgent boundaries, autonomy and human oversight
S41AWS Generative AI Security Reference ArchitectureSecurity scoping matrices and control patterns
S42AWS tool integration security guidanceTool authorization, prompt injection and privilege escalation
S43Amazon S3 Object LockWORM protection for governance evidence
S44CloudTrail log integrity validationCryptographic digest validation
S45Amazon Bedrock evaluationsModel and RAG evaluation programs
S46Lambda functions with TypeScriptTypeScript Lambda implementation
S47Lambda response streamingStreaming response support
S48CloudFront geographic restrictionsEdge geolocation behavior and limitations
S49Akamai EdgeWorkers JWTEdge JWT verification
S50Amazon Titan Image GeneratorImage generation, watermark and C2PA features
S51AgentCore Agent RegistryPreview registry behavior and lifecycle watch item
S52Direct ingestion into Bedrock Knowledge BasesEvent-driven document ingestion
S53Bedrock Knowledge Base data-source connectorsS3, Confluence, SharePoint, Salesforce and other sources
S54Bedrock Converse APIProvider-consistent conversational inference interface
Claim traceability

Each major section declares source IDs in its header. The source registry maps those IDs to authoritative documentation and the specific architectural claim they support.

Search documentation

↑↓ navigateEnter openEsc close
Diagram