Bedrock Agent
Parity grade: A · SDK aws-sdk-go-v2/service/bedrockagent@v1.68.2 · last audited 2026-10-07 (e33627d17)
Category: Machine Learning · View PARITY.md on GitHub · All Services
Parity & Coverage
| Metric | Value |
|---|---|
| PARITY entries audited | 77 (77 ok) |
| Feature families | 4 (4 ok) |
| Known gaps | none |
| Structural gaps (can't be emulated) | 3 |
| Deferred items | 2 |
| Resource leaks | clean |
Structural Gaps
These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.
- DeleteAgentActionGroup.SkipResourceInUseCheck has nothing to guard: action groups are DRAFT-only and aliases route to numbered versions holding their own copy, so no in-use reference can exist.
- FailureReasons/StatusReason on agents, aliases, knowledge bases, data sources and ingestion jobs: failures originate in external resources (Lambda, S3, vector stores, IAM) that an in-memory backend never contacts. Flow validations are modeled.
- AliasInvocationState, FlowAlias ConcurrencyConfiguration, ParentActionGroupSignature(Params), CustomOrchestration, PromptOverrideConfiguration and CustomerEncryptionKeyArn are stored and echoed only: their runtime is agent/flow invocation (bedrock-agent-runtime) and KMS.
Deferred Items
- "KBDocument/DataSource nested configuration blobs (dataSourceConfiguration, vectorIngestionConfiguration, knowledgeBaseConfiguration, storageConfiguration, actionGroupExecutor, apiSchema, functionSchema, guardrailConfiguration, memoryConfiguration, promptOverrideConfiguration) are passed through as opaque map[string]any/JSON blobs rather than typed + validated against the SDK's nested shape unions. This is consistent with how this service already treats them; deep-shape validation of these blobs was out of scope this sweep (unchanged). RE-ASSESSED (gopherstack-rvyd follow-up, 2026-08-08): confirmed genuinely out of scope, not just deferred by default. Read the real SDK shapes for the three most plausible bounded candidates — types.ActionGroupExecutor, types.APISchema, types.FunctionSchema (types/types.go) — and all three are Smithy tagged unions (Go interface + one struct per member, e.g. ActionGroupExecutor is ActionGroupExecutorMemberLambda XOR ActionGroupExecutorMemberCustomControl) requiring XOR-presence validation, per-member wire-key discovery from serializers.go, and (for FunctionSchema) validating a nested []Function list with its own required/optional sub-fields. There are ten such blob families across this service, not one; validating a single one (even the simplest, ActionGroupExecutor) while leaving the other nine opaque would produce an inconsistent, arbitrarily-partial validation surface with no corresponding bug report or wire-shape failure driving the choice — unlike every other fix in this file, which closed a concrete, demonstrated gap. No functional gap is caused by the current opaque pass-through (requests round-trip correctly; this is a permissive-emulator design choice already used consistently across the service). Left unchanged."
- "IngestionJobStatistics' NumberOfDocumentsDeleted/NumberOfDocumentsFailed/ NumberOfModifiedDocumentsIndexed/NumberOfMetadataDocumentsScanned/ NumberOfMetadataDocumentsModified stay zero always (fixed this sweep: NumberOfDocumentsScanned/NumberOfNewDocumentsIndexed now reflect the real per-data-source document count). Reporting non-zero on the other five would require tracking a prior-job document snapshot to diff against, which this backend does not do — reporting a number there would be fabricated, not read from real state, so left at zero rather than invented. Also unmodeled: data sources backed by a real crawler type (S3/web/Confluence/etc.) have no actual external content for this emulator to scan, so their statistics are always zero regardless of the dataSourceConfiguration blob — only documents pushed via the separate IngestKnowledgeBaseDocuments custom-content API are counted. Re-confirmed accurate and unchanged this sweep (gopherstack-rvyd, 2026-08-07) — still no prior-job snapshot mechanism to diff against, so still correctly zero rather than fabricated. RE-VERIFIED (gopherstack-rvyd follow-up, 2026-08-08), reading IngestKnowledgeBaseDocuments/KBDocumentDetail directly rather than trusting the prior note: it is not merely that no prior-job snapshot is tracked -- the raw material for these counters is not retained at all. KBDocumentDetail (models.go) stores only DocumentID/KnowledgeBaseID/DataSourceID/Status; IngestKnowledgeBaseDocuments receives each KBDocument's Content and Metadata (models.go: KBDocument has both) and discards both on every call, so there is no stored content/hash to diff for NumberOfModifiedDocumentsIndexed and no stored metadata at all for NumberOfMetadataDocumentsScanned/NumberOfMetadataDocumentsModified -- these two would be fabricated even with a diffing mechanism, since there is nothing to scan. NumberOfDocumentsDeleted/NumberOfDocumentsFailed are the only two of the five that a bounded, non-fabricated fix could theoretically reach (by snapshotting the live document-ID set into each IngestionJob and diffing on the next run), but doing so for 2 of 5 fields while the other 3 stay permanently unreachable was judged not worth the asymmetry it would introduce into a single response object one sweep after the counters were added; the honest zero for all five remains the correct behavior until (if ever) content/metadata retention is added as a real feature. Left unchanged."
Audited Operations
77 audited operations
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
CreateAgent | fixed | ok | ok | ok |
GetAgent | ok | ok | ok | ok |
UpdateAgent | ok | ok | ok | ok |
DeleteAgent | ok | ok | fixed | ok |
ListAgents | fixed | ok | ok | ok |
PrepareAgent | ok | ok | ok | ok |
ListAgentVersions | fixed | ok | ok | ok |
GetAgentVersion | fixed | ok | ok | ok |
DeleteAgentVersion | ok | ok | fixed | ok |
CreateAgentActionGroup | fixed | fixed | ok | ok |
GetAgentActionGroup | ok | ok | fixed | ok |
UpdateAgentActionGroup | ok | fixed | ok | ok |
DeleteAgentActionGroup | ok | fixed | ok | ok |
ListAgentActionGroups | fixed | ok | ok | ok |
CreateAgentAlias | fixed | ok | fixed | ok |
GetAgentAlias | ok | ok | ok | ok |
UpdateAgentAlias | fixed | ok | ok | ok |
DeleteAgentAlias | ok | ok | fixed | ok |
ListAgentAliases | fixed | ok | ok | ok |
AssociateAgentCollaborator | fixed | fixed | ok | ok |
GetAgentCollaborator | ok | ok | fixed | ok |
UpdateAgentCollaborator | ok | fixed | ok | ok |
DisassociateAgentCollaborator | ok | fixed | ok | ok |
ListAgentCollaborators | fixed | ok | ok | ok |
CreateKnowledgeBase | fixed | ok | ok | ok |
GetKnowledgeBase | ok | ok | ok | ok |
UpdateKnowledgeBase | ok | ok | ok | ok |
DeleteKnowledgeBase | ok | ok | fixed | ok |
ListKnowledgeBases | fixed | ok | ok | ok |
AssociateAgentKnowledgeBase | ok | fixed | ok | ok |
GetAgentKnowledgeBase | ok | ok | fixed | ok |
UpdateAgentKnowledgeBase | ok | fixed | ok | ok |
DisassociateAgentKnowledgeBase | ok | fixed | ok | ok |
ListAgentKnowledgeBases | fixed | ok | ok | ok |
CreateDataSource | ok | ok | ok | ok |
GetDataSource | fixed | ok | ok | ok |
UpdateDataSource | ok | ok | ok | ok |
DeleteDataSource | ok | ok | fixed | ok |
ListDataSources | fixed | ok | ok | ok |
StartIngestionJob | fixed | ok | fixed | ok |
GetIngestionJob | fixed | ok | ok | ok |
StopIngestionJob | ok | ok | ok | ok |
ListIngestionJobs | fixed | ok | ok | ok |
CreateFlow | fixed | ok | fixed | ok |
GetFlow | ok | ok | ok | ok |
UpdateFlow | fixed | ok | ok | ok |
DeleteFlow | fixed | ok | fixed | ok |
ListFlows | fixed | ok | ok | ok |
PrepareFlow | ok | ok | fixed | ok |
ValidateFlowDefinition | ok | ok | ok | ok |
CreateFlowVersion | fixed | ok | fixed | ok |
GetFlowVersion | fixed | ok | ok | ok |
DeleteFlowVersion | fixed | ok | ok | ok |
ListFlowVersions | fixed | ok | ok | ok |
CreateFlowAlias | fixed | ok | fixed | ok |
GetFlowAlias | ok | ok | ok | ok |
UpdateFlowAlias | fixed | ok | ok | ok |
DeleteFlowAlias | ok | ok | fixed | ok |
ListFlowAliases | fixed | ok | ok | ok |
CreatePrompt | fixed | ok | ok | ok |
GetPrompt | fixed | ok | ok | ok |
UpdatePrompt | fixed | ok | ok | ok |
DeletePrompt | fixed | ok | fixed | ok |
ListPrompts | fixed | ok | ok | ok |
CreatePromptVersion | fixed | ok | ok | ok |
GetPromptVersion | n/a | n/a | ok | ok |
DeletePromptVersion | n/a | n/a | ok | ok |
IngestKnowledgeBaseDocuments | fixed | ok | ok | ok |
GetKnowledgeBaseDocuments | fixed | ok | ok | ok |
DeleteKnowledgeBaseDocuments | fixed | ok | ok | ok |
ListKnowledgeBaseDocuments | fixed | ok | ok | ok |
ListTagsForResource | ok | ok | ok | ok |
TagResource | ok | ok | ok | ok |
UntagResource | ok | ok | ok | ok |
PutResourcePolicy | ok | ok | ok | ok |
GetResourcePolicy | ok | ok | ok | ok |
DeleteResourcePolicy | ok | ok | ok | ok |
Audited Feature Families
| Feature Family | Status |
|---|---|
vpc_configurations | ok |
persistence | ok |
timestamps | ok |
error_codes | ok |
