Bedrock Runtime
Parity grade: A · SDK aws-sdk-go-v2/service/bedrockruntime@v1.63.3 · last audited 2026-10-10 (d4dc4a723)
Category: Machine Learning · View PARITY.md on GitHub · All Services
Parity & Coverage
| Metric | Value |
|---|---|
| PARITY entries audited | 11 (10 ok, 1 partial) |
| Feature families | 6 (6 ok) |
| Known gaps | none |
| Structural gaps (can't be emulated) | 5 |
| Deferred items | 0 |
| 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.
- Default (GOPHERSTACK_BEDROCK_BACKEND=mock) inference is deterministic placeholder output, not a model: CountTokens estimates from byte length, Converse/InvokeModel return a canned reply (real completions are opt-in via the ollama backend), InvokeGuardrailChecks contentFilter/promptAttack return empty results and sensitiveInformation matches only the literal-format entity types (EMAIL/PHONE/IP_ADDRESS/URL/AWS_ACCESS_KEY/MAC_ADDRESS/US_SSN/CREDIT_DEBIT_CARD_NUMBER), never NER-based ones.
- No model behind the default mock Converse/ConverseStream/InvokeModel: InvokeModel.Body is never interpreted; AdditionalModelRequestFields, AdditionalModelResponseFieldPaths, OutputConfig, PromptVariables and RequestMetadata (invocation-log filtering) are accepted but cannot change a canned reply.
- InvokeModel/InvokeModelWithResponseStream Trace is enum-validated but no guardrail trace is produced without a classifier.
- ApplyGuardrail.OutputScope FULL has no extra output to add: only word-policy assessments exist, and the SDK says FULL does not apply to word filters.
- Converse/InvokeModel serviceTier and performanceConfig latency are echoed from the request: no tiers or latency-optimized hosting exist to negotiate.
Audited Operations
11 audited operations
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
InvokeModel | ok | ok | ok | n/a |
InvokeModelWithResponseStream | ok | ok | ok | n/a |
InvokeModelWithBidirectionalStream | ok | ok | ok | n/a |
Converse | ok | ok | ok | n/a |
ConverseStream | ok | ok | ok | n/a |
CountTokens | ok | ok | ok | n/a |
ApplyGuardrail | ok | ok | ok | n/a |
StartAsyncInvoke | ok | ok | ok | ok |
GetAsyncInvoke | fixed | ok | ok | ok |
ListAsyncInvokes | fixed | ok | ok | ok |
InvokeGuardrailChecks | partial | ok | partial | n/a |
Audited Feature Families
| Feature Family | Status |
|---|---|
model-path-routing | ok |
guardrail-path-routing | ok |
async-invoke | ok |
error-codes | ok |
event-stream-chunk-payload | ok |
chaos-fault-injection | ok |
