Skip to content

Comprehend ​

Parity grade: A · SDK aws-sdk-go-v2/service/comprehend@v1.49.3 · last audited 2026-10-07 (a2084957b)

Category: Machine Learning · View PARITY.md on GitHub · All Services

Parity & Coverage ​

MetricValue
PARITY entries audited28 (28 ok)
Feature families1 (1 ok)
Known gapsnone
Structural gaps (can't be emulated)1
Deferred items1
Resource leaksclean

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.

  • ClassifyDocument/DetectEntities Bytes of PDF, Word and image documents (DocumentReaderConfig effect): text extraction needs Amazon Textract; plain-text Bytes are decoded and DocumentReaderConfig is validated, binary documents are rejected.

Deferred Items ​

  • ALREADY COVERED BY CHAOS (verified gopherstack-sw2q): ResourceLimitExceededException/ResourceUnavailableException/TooManyRequestsException/ConcurrentModificationException are real modeled errors for several ops here (confirmed against deserializers.go's per-op error-case switches) but have no non-fabricated deterministic backend-state trigger in this emulator: no rate limiting is implemented anywhere in gopherstack per-service, no fixed per-account resource quota is documented precisely enough to emulate without risking false failures on legitimate high-volume test/integration usage, and ConcurrentModificationException describes a real-AWS eventual-consistency race that cannot occur under this backend's single coarse lock. Concretely verified this pass: comprehend.Handler implements ChaosServiceName() -> "comprehend" and ChaosOperations() -> h.GetSupportedOperations() (handler.go), and pkgs/chaos.Middleware is wired globally via registry.Use(chaos.Middleware(faultStore)) in internal/app/cli.go, matching purely on the request's SigV4 service name + X-Amz-Target operation + region and injecting an arbitrary caller-specified FaultError{Code, StatusCode} without touching backend state. A fault rule such as {"service":"comprehend","error":{"code":"TooManyRequestsException","statusCode":429}} deterministically returns that exact typed error to a real aws-sdk-go-v2 client on any operation, with zero backend code changes -- proven end-to-end against a real containerized client in test/integration/chaos_test.go. Error-code wiring in errors.go/handler.go intentionally does not include backend sentinels for these four; the chaos mechanism is the correct, non-fabricated way to exercise them, not a backend-state workaround.

Audited Operations ​

28 audited operations
OperationWireErrorsStatePersist
DetectSentimentokokokn/a
DetectEntitiesfixedokokn/a
DetectKeyPhrasesokokokn/a
DetectPiiEntitiesokokokn/a
DetectSyntaxokokokn/a
DetectDominantLanguageokokokn/a
DetectToxicContentokokokn/a
DetectTargetedSentimentokokokn/a
ClassifyDocumentokokokn/a
ContainsPiiEntitiesokokokn/a
BatchDetect-family (Sentiment/Entities/KeyPhrases/Syntax/DominantLanguage/TargetedSentiment -- 6 families excluding PiiEntities)okokokn/a
StartDetectionJob-family (9 families)okokokok
DescribeDetectionJob-familyokokokok
ListDetectionJobs-familyokokokok
StopDetectionJob-family (7 of 9 families -- NOT DocumentClassificationJob or TopicsDetectionJob)okokokok
CreateDocumentClassifier/CreateEntityRecognizerokokokok
DescribeDocumentClassifier/DescribeEntityRecognizerokokokok
ListDocumentClassifiers/ListEntityRecognizersokokokok
DeleteDocumentClassifier/DeleteEntityRecognizerokokokok
CreateEndpoint/DescribeEndpoint/ListEndpoints/UpdateEndpoint/DeleteEndpointokokokok
CreateFlywheel/DescribeFlywheel/ListFlywheels/UpdateFlywheel/DeleteFlywheelokokokok
CreateDataset/DescribeDataset/ListDatasetsokokokok
StartFlywheelIteration/DescribeFlywheelIteration/ListFlywheelIterationHistoryokokokok
TagResource/UntagResource/ListTagsForResourceokokokok
ImportModelokokokok
ListDocumentClassifierSummaries/ListEntityRecognizerSummariesokokokn/a
StopTrainingDocumentClassifier/StopTrainingEntityRecognizerokokokok
Put/Describe/DeleteResourcePolicyokokokok

Audited Feature Families ​

Feature FamilyStatus
routingok

Released under the MIT License.