Application Auto Scaling
Parity grade: A · SDK aws-sdk-go-v2/service/applicationautoscaling@v1.51.4 · last audited 2026-10-07 (d0f3046ef)
Category: Management & Governance · View PARITY.md on GitHub · All Services
Parity & Coverage
| Metric | Value |
|---|---|
| PARITY entries audited | 14 (14 ok) |
| Feature families | 4 (4 ok) |
| Known gaps | none |
| Structural gaps (can't be emulated) | 2 |
| 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.
- DescribeScalingActivities accepts IncludeNotScaledActivities but never reports not-scaled activities: there is no metric-evaluation loop to decide not to scale, and inventing events would be fabrication.
- GetPredictiveScalingForecast returns zero CapacityForecast/LoadForecast points: a genuine forecast needs an ML model over real historical CloudWatch data.
Deferred Items
- TargetTrackingScaling alarms are created only for predefined metric types with a known CloudWatch mapping (ECS CPU/memory, ALB request count, RDS/Neptune reader CPU/connections, SageMaker invocations, Spot Fleet CPU/network, Lambda provisioned concurrency, ElastiCache engine CPU, AppStream capacity, DynamoDB read/write utilization) and customized metrics; other predefined types (Cassandra, Comprehend, Kafka, custom resource, WorkSpaces, ElastiCache memory/evictions) create no alarms, and no alarm state change drives scaling (bd: gopherstack-cefu7.99)
- ConcurrentUpdateException/FailedResourceAccessException: sentinels (ErrConcurrentUpdate/ErrFailedResourceAccess) and correct HTTP statuses exist in errors.go/handler.go, but no backend method returns either -- gopherstack's backend serializes every operation behind one coarse lockmetrics.RWMutex (no update-race window) and has no cross-service CloudWatch permission check (see the deferred alarm-integration item above), so neither has a non-fabricated backend-state trigger. ALREADY COVERED BY CHAOS (verified this pass, gopherstack-cdxe):
pkgs/chaos.Middleware(wired globally viaregistry.Use(chaos.Middleware(faultStore))in internal/app/cli.go) sits in front of every service's handler and matches purely on the request's SigV4 service name ("application-autoscaling") + X-Amz-Target operation + region -- it never inspects backend state, so a fault rule such as{"service":"application-autoscaling","error":{"code":"ConcurrentUpdateException","statusCode":500}}deterministically returns that exact error to a real aws-sdk-go-v2 client on any operation, with zero code changes needed in this service. This is the same generic mechanism proven end-to-end against a real containerized client in test/integration/chaos_test.go. Wiring a fabricated in-backend trigger for either exception would be redundant with, and strictly worse than, this existing mechanism.
Audited Operations
14 audited operations
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
RegisterScalableTarget | fixed | fixed | fixed | ok |
DeregisterScalableTarget | ok | fixed | ok | ok |
DescribeScalableTargets | fixed | fixed | ok | ok |
PutScalingPolicy | fixed | fixed | fixed | ok |
DeleteScalingPolicy | ok | ok | ok | ok |
DescribeScalingPolicies | fixed | fixed | ok | ok |
DescribeScalingActivities | fixed | fixed | ok | n/a |
PutScheduledAction | fixed | fixed | fixed | ok |
DeleteScheduledAction | ok | ok | ok | ok |
DescribeScheduledActions | fixed | fixed | ok | ok |
ListTagsForResource | ok | fixed | ok | ok |
TagResource | ok | fixed | ok | ok |
UntagResource | ok | fixed | ok | ok |
GetPredictiveScalingForecast | fixed | fixed | fixed | n/a |
Audited Feature Families
| Feature Family | Status |
|---|---|
tagging | ok |
error_types | fixed |
quotas | fixed |
dynamodb_wiring | fixed |
