Skip to content

feat: parity batch 18 (Resource Explorer finds untagged resources of every tagging-wired service; Timestream Query checked arithmetic and casts) - #2554

Merged
agbishop merged 5 commits into
mainfrom
feat/parity-next18r
Nov 22, 2026
Merged

agbishop merged 5 commits into
mainfrom
feat/parity-next18r

Conversation

@agbishop

@agbishop agbishop commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Two changes. Each feature commit was followed by an independent review pass; the review fixes are separate commits.

Resource Explorer: untagged resources are searchable

  • About 100 services that feed the tagging aggregation now expose their full resource list beside their tagged one. Resource Explorer search and listing use it, so a resource no longer needs a tag to be found.
  • In each service the tagged and full listings come from one enumerator, so they cannot drift.
  • A guard fails when a service has a tagged listing without an inventory, and a wiring test counts providers against inventory providers.
  • The Resource Groups Tagging API is unchanged. The review read the diff of every service's tagged listing; a round-trip test tags and untags a resource in 30 services through the tagging API and checks the inventory and GetResources agree at each step.
  • The review added kinds that accept tags but were missing: MediaConvert jobs, GuardDuty rule associations, ECS daemon task definitions and express services, RDS integrations, Timestream scheduled queries.

Timestream Query: checked arithmetic and casts

  • Typed integer arithmetic and SUM raise an error on overflow instead of widening. Integer division or modulo by zero is an error; for doubles it gives Infinity or NaN.
  • Casting a double to an integer rounds and rejects out-of-range values. Casting an unparsable string fails. TRY_CAST and try return NULL in those cases.
  • A query whose checked form cannot be prepared is retried once without the checked edits, so nothing that ran before stops running. Overflow and division by zero are never swallowed by that retry.
  • max(x, n), min(x, n) and approx_percentile with an array of percentages return arrays; they returned NULL.
  • PrepareQuery returns named parameters typed by their use.

Behaviour to be aware of: integer division by zero was NULL and is now an error; TRY_CAST('x' AS bigint) was 0 and is now NULL; CAST(1.6 AS bigint) was 1 and is now 2. These follow the engine family's semantics; the exact error wording is unverified against the real service and is listed as open.

Still open in the touched services

Resource Explorer 1 (ECS daemons keep their tags on the daemon record, so neither listing sees them). Timestream Query: constructs the type pass cannot parse still use value-based typing; CAST('NaN' AS double) travels as text; a constant 1/0 is evaluated eagerly; interval plus interval fails; several documented functions are not implemented; integer literal typing and error wording unverified.

Test plan

  • go build ./..., go vet ./... (plus e2e, integration and terraform tags), go fix -diff empty
  • Guards, persistence golden, parity lint
  • All 101 touched service packages and ./dashboard/... with -race -shuffle on -short
  • ./internal/app with -race -shuffle on -short, leak suite
  • golangci-lint on touched packages, ./internal/app/..., ./dashboard/..., ./test/guards/...
  • desktop module tidy and build
  • Docker integration subset (Timestream, tagging, Resource Explorer, ECS, RDS) and Terraform suites (GCP, AWS subset)

🤖 Generated with Claude Code

https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY


Devin Review

Witness Patrol and others added 5 commits November 21, 2026 20:24
…ng casts, TRY_CAST and try, named parameters

Typed integer arithmetic and SUM raise an error on overflow instead of
widening, and integer division or modulo by zero is an error. Casting a
double to an integer rounds and rejects out-of-range values, casting an
unparsable string fails, and TRY_CAST and try return NULL in those cases.
PrepareQuery returns named parameters typed by their use. random(n) keeps
its argument's type and e() exists.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…rvice are searchable

Each service in the tagging aggregation exposes its full resource list
beside its tagged one, both from one enumerator. Resource Explorer search
and listing use it, so a resource no longer needs a tag to be found. A
guard fails when a service has a tagged listing without an inventory.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…run, NaN no longer corrupts results, n-ary max, min and percentile arrays are real

A query whose checked-arithmetic form failed to prepare failed outright;
it is now retried once without the checked edits, while overflow and
division by zero stay errors. NaN carried as text made comparisons true
and sums zero. Casting a timestamp string with an offset regressed.
max(x, n), min(x, n) and approx_percentile with an array of percentages
returned NULL.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…ations, ECS daemon task definitions and express services, RDS integrations and Timestream scheduled queries

These kinds accept tags but were missing from their service's inventory,
so an untagged one could not be found while a tagged one could.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 140 files, which is 40 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

CodeRabbit couldn't verify your organization's usage billing state, so no usage-priced review was started. Retry after the billing service recovers.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2345859f-370b-4e1f-88c8-fb05021fd481
Commits

Reviewing files that changed from the base of the PR and between 7941125 and 0f25c4e.

Files selected for processing: 140

  • README.md
  • internal/app/cli.go
  • internal/app/cross_region.go
  • internal/app/globalaccelerator_wiring.go
  • internal/app/inventory_tagging_roundtrip_test.go
  • internal/app/inventory_untagged_data_cases_test.go
  • internal/app/inventory_untagged_infra_cases_test.go
  • internal/app/inventory_untagged_platform_cases_test.go
  • internal/app/inventory_untagged_test.go
  • internal/app/inventory_untagged_timestreamquery_case_test.go
  • internal/app/resourceexplorer_inventory.go
  • internal/app/rgtapi_extra_wiring.go
  • internal/app/timestreamquery_wiring.go
  • services/accessanalyzer/tags.go
  • services/acm/inventory.go
  • services/amplify/tags.go
  • services/apigateway/tags.go
  • services/apigatewayv2/tagged_resources.go
  • services/appconfig/tags.go
  • services/applicationautoscaling/tags.go
  • services/appmesh/tags.go
  • services/apprunner/tags.go
  • services/appstream/tags.go
  • services/appsync/tags.go
  • services/athena/tags.go
  • services/awsconfig/tags.go
  • services/backup/tags.go
  • services/batch/tags.go
  • services/ce/tags.go
  • services/cleanrooms/tags.go
  • services/cloudfront/tags.go
  • services/cloudwatchlogs/inventory.go
  • services/codeartifact/tags.go
  • services/codecommit/tags.go
  • services/codeconnections/tags.go
  • services/codedeploy/tags.go
  • services/codepipeline/tags.go
  • services/cognitoidp/tags.go
  • services/comprehend/store.go
  • services/connect/tagged.go
  • services/databrew/tagged_resources.go
  • services/datasync/tags.go
  • services/dax/tags.go
  • services/detective/tags.go
  • services/directconnect/tagging.go
  • services/dlm/tags.go
  • services/docdb/tags.go
  • services/ecr/tags.go
  • services/ecs/inventory_test.go
  • services/ecs/tags.go
  • services/efs/tags.go
  • services/eks/tags.go
  • services/elasticache/tags.go
  • services/emr/tags.go
  • services/emrserverless/tags.go
  • services/firehose/tags.go
  • services/fis/tags.go
  • services/globalaccelerator/cloudformation.go
  • services/glue/tags.go
  • services/grafana/tags.go
  • services/guardduty/inventory_test.go
  • services/guardduty/tags.go
  • services/inspector2/tags.go
  • services/iot/tagged_resources.go
  • services/iotanalytics/tagged_resources.go
  • services/kafka/tagged_resources.go
  • services/kinesis/tags.go
  • services/kinesisanalyticsv2/tags.go
  • services/lightsail/tagging_vpc_misc.go
  • services/macie2/tags.go
  • services/managedblockchain/tags.go
  • services/mediaconvert/inventory_test.go
  • services/mediaconvert/tags.go
  • services/mediapackage/tags.go
  • services/mediastore/tags.go
  • services/mediatailor/tags.go
  • services/memorydb/tags.go
  • services/mgn/tagging.go
  • services/mq/tags.go
  • services/mwaa/tags.go
  • services/neptune/tags.go
  • services/networkmanager/tagging.go
  • services/opsworks/tags.go
  • services/organizations/tags.go
  • services/outposts/tagging.go
  • services/personalize/tags.go
  • services/pinpoint/tags.go
  • services/pipes/tags.go
  • services/ram/tags.go
  • services/rds/inventory_test.go
  • services/rds/tags.go
  • services/rekognition/tags.go
  • services/resiliencehub/tagging.go
  • services/resourceexplorer2/PARITY.md
  • services/resourceexplorer2/README.md
  • services/route53resolver/tags.go
  • services/s3control/tags.go
  • services/s3tables/store.go
  • services/sagemaker/tags.go
  • services/scheduler/tags.go
  • services/securityhub/tags.go
  • services/servicediscovery/tags.go
  • services/sesv2/tags.go
  • services/shield/tags.go
  • services/ssoadmin/tags.go
  • services/stepfunctions/inventory.go
  • services/swf/tags.go
  • services/textract/tagged_resources.go
  • services/timestreamquery/PARITY.md
  • services/timestreamquery/README.md
  • services/timestreamquery/query_execution.go
  • services/timestreamquery/ts_aggs.go
  • services/timestreamquery/ts_annotate.go
  • services/timestreamquery/ts_arith.go
  • services/timestreamquery/ts_arith_corpus_test.go
  • services/timestreamquery/ts_cast.go
  • services/timestreamquery/ts_checked_sdk_test.go
  • services/timestreamquery/ts_engine.go
  • services/timestreamquery/ts_funcs.go
  • services/timestreamquery/ts_infer.go
  • services/timestreamquery/ts_infer_checked.go
  • services/timestreamquery/ts_infer_funcs.go
  • services/timestreamquery/ts_infer_robust_internal_test.go
  • services/timestreamquery/ts_result.go
  • services/timestreamquery/ts_rewrite_fallback_internal_test.go
  • services/timestreamquery/ts_sdk_insights_test.go
  • services/timestreamquery/ts_sqlast.go
  • services/timestreamquery/ts_sqlexpr.go
  • services/timestreamquery/ts_static_types_test.go
  • services/timestreamwrite/tags.go
  • services/transcribe/tags.go
  • services/transfer/tags.go
  • services/translate/tags.go
  • services/verifiedpermissions/tags.go
  • services/vpclattice/tags.go
  • services/waf/tags.go
  • services/wafv2/tags.go
  • services/workmail/tags.go
  • services/xray/tags.go
  • test/guards/inventory_source_guard_test.go

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

Comment thread internal/app/cli.go
return out
},
func() []taggedARNEntry { return taggedEntries(apigwBk.TaggedResources()) },
func(_ context.Context) []taggedARNEntry { return taggedEntries(apigwBk.InventoryResources()) },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Missing REST APIs outside home Region

When users create a REST API outside us-east-1, wireTaggingAPIGateway searches only the home backend. BackendFor keeps the new API in a separate backend, so Resource Explorer never finds it.

Learn more

API Gateway dispatches regional requests to sibling handlers with separate stores in regional dispatch. Resource Explorer gathers inventory separately for each indexed Region in gather. The inventory closure always reads the home store. A second constraint is that apigwResourceArn hardcodes us-east-1, so even a peer's inventory would be discarded as out of Region.

Example: Create an untagged REST API in us-west-2, then search from a us-west-2 index. The API exists in the west backend, but the inventory reads the east backend, so the search omits it.

Recommended fix: Resolve the inventory backend from awsmeta.Region(ctx) using BackendFor. Construct inventory ARNs from that backend's Region, and test both a local index and an aggregator with an API in a sibling Region.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +239 to +245
registerInventoryProvider(bk, func(ctx context.Context) []rgtapibackend.TaggedResource {
b := backendFor(ctx, "")
if b == nil {
return nil
}

return toTaggedResources(b.InventoryResources(), apigatewayResourceType)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 API Gateway resource type filters miss

For newly indexed API Gateway resources, registerInventoryProvider supplies types that taggingResourceSource discards. splitResource reads the leading slash as an empty type, so supported type filters miss both REST and HTTP APIs.

Learn more

API Gateway ARNs start their resource path with a slash, as shown by taggingARN and apigwResourceArn. The tagging bridge computes a type, but taggingResourceSource passes only ARN and tags to Resource Explorer. toCandidate reconstructs the type with splitResource, which splits at the first slash. That returns an empty type segment for both API Gateway versions, unlike the advertised supported resource types.

Example: Create an untagged HTTP API and search for resourcetype:apigateway:apis. The API has an ARN ending in :/apis/<id> and receives the type apigateway:, so the filter misses it.

Recommended fix: Parse API Gateway paths explicitly in splitResource, preserving supported nested kinds as well as top-level kinds, or pass authoritative Resource Explorer types across the bridge. Add type-filter assertions for each API version.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread services/acm/inventory.go
Comment on lines +35 to +37
certs := drainPages(func(token string) (page.Page[Certificate], error) {
return h.Backend.ListCertificates(ctx, ListCertificatesParams{NextToken: token, MaxItems: inventoryPageSize})
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Missing untagged ECDSA certificates

After users request an untagged ECDSA certificate, resourceARNs omits it because ListCertificates defaults to RSA-1024 and RSA-2048. The certificate stays missing from Resource Explorer until it gets a tag.

Learn more

The ACM listing API defaults to RSA-1024 and RSA-2048 when KeyTypes is empty, as enforced by buildListCertFilters. The inventory separately merges tagged ARNs in InventoryResources, so certificates with other supported algorithms appear only when tagged.

Example: Request an EC_prime256v1 certificate without tags. The request succeeds, but the certificate never enters the inventory's certificate pages and Resource Explorer omits it.

Recommended fix: Pass every accepted key algorithm from the ACM listing contract or read the Region's unfiltered certificate store. Test discovery of an untagged ECDSA certificate while preserving the public ListCertificates default.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@codecov

codecov Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

@agbishop

Copy link
Copy Markdown
Collaborator Author

📊 Code Coverage Report

Metric Value Status
Total Coverage 100.0%
0.0%
0.0%
0.0%
100.0%
75.0%
100.0%
100.0%
100.0%
100.0%
0.0%
86.8% ✅
New Code Coverage 79.5% (2019/2541 stmts) ⚠️

📄 Impacted Files Breakdown

File New Code Coverage Lines
internal/app/cli.go 100.0% 133/133
internal/app/cross_region.go 100.0% 10/10
internal/app/globalaccelerator_wiring.go 100.0% 2/2
internal/app/resourceexplorer_inventory.go 0.0% 0/0
internal/app/rgtapi_extra_wiring.go 95.0% 19/20
internal/app/timestreamquery_wiring.go 84.6% 11/13
services/accessanalyzer/tags.go 76.5% 13/17
services/acm/inventory.go 69.2% 27/39
services/amplify/tags.go 77.8% 7/9
services/apigateway/tags.go 60.0% 9/15
services/apigatewayv2/tagged_resources.go 100.0% 3/3
services/appconfig/tags.go 74.2% 23/31
services/applicationautoscaling/tags.go 100.0% 4/4
services/appmesh/tags.go 65.5% 19/29
services/apprunner/tags.go 81.5% 22/27
services/appstream/tags.go 65.5% 19/29
services/appsync/tags.go 80.0% 8/10
services/athena/tags.go 91.3% 21/23
services/awsconfig/tags.go 67.6% 25/37
services/backup/tags.go 62.5% 10/16
services/batch/tags.go 41.7% 5/12
services/ce/tags.go 63.6% 7/11
services/cleanrooms/tags.go 62.9% 22/35
services/cloudfront/tags.go 100.0% 5/5
services/cloudwatchlogs/inventory.go 82.4% 14/17
services/codeartifact/tags.go 94.1% 16/17
services/codecommit/tags.go 100.0% 8/8
services/codeconnections/tags.go 63.6% 7/11
services/codedeploy/tags.go 57.1% 4/7
services/codepipeline/tags.go 50.0% 4/8
services/cognitoidp/tags.go 94.4% 17/18
services/comprehend/store.go 73.7% 14/19
services/connect/tagged.go 100.0% 36/36
services/databrew/tagged_resources.go 100.0% 3/3
services/datasync/tags.go 69.6% 16/23
services/dax/tags.go 81.8% 9/11
services/detective/tags.go 73.3% 11/15
services/directconnect/tagging.go 15.4% 2/13
services/dlm/tags.go 100.0% 4/4
services/docdb/tags.go 77.8% 21/27
services/ecr/tags.go 100.0% 17/17
services/ecs/tags.go 83.8% 31/37
services/efs/tags.go 90.0% 9/10
services/eks/tags.go 58.8% 10/17
services/elasticache/tags.go 100.0% 9/9
services/emr/tags.go 66.7% 4/6
services/emrserverless/tags.go 66.7% 4/6
services/firehose/tags.go 91.7% 11/12
services/fis/tags.go 55.6% 5/9
services/globalaccelerator/cloudformation.go 87.5% 7/8
services/glue/tags.go 43.8% 7/16
services/grafana/tags.go 100.0% 8/8
services/guardduty/tags.go 75.8% 25/33
services/inspector2/tags.go 76.5% 13/17
services/iot/tagged_resources.go 47.6% 20/42
services/iotanalytics/tagged_resources.go 70.8% 17/24
services/kafka/tagged_resources.go 100.0% 3/3
services/kinesis/tags.go 100.0% 4/4
services/kinesisanalyticsv2/tags.go 100.0% 3/3
services/lightsail/tagging_vpc_misc.go 100.0% 13/13
services/macie2/tags.go 66.7% 16/24
services/managedblockchain/tags.go 100.0% 4/4
services/mediaconvert/tags.go 91.3% 21/23
services/mediapackage/tags.go 73.7% 14/19
services/mediastore/tags.go 100.0% 5/5
services/mediatailor/tags.go 64.5% 20/31
services/memorydb/tags.go 100.0% 4/4
services/mgn/tagging.go 50.0% 11/22
services/mq/tags.go 94.7% 18/19
services/mwaa/tags.go 100.0% 5/5
services/neptune/tags.go 74.2% 23/31
services/networkmanager/tagging.go 16.7% 3/18
services/opsworks/tags.go 61.1% 11/18
services/organizations/tags.go 100.0% 15/15
services/outposts/tagging.go 90.9% 10/11
services/personalize/tags.go 72.9% 35/48
services/pinpoint/tags.go 100.0% 4/4
services/pipes/tags.go 100.0% 5/5
services/ram/tags.go 100.0% 4/4
services/rds/tags.go 75.9% 41/54
services/rekognition/tags.go 68.0% 17/25
services/resiliencehub/tagging.go 69.2% 9/13
services/route53resolver/tags.go 62.1% 18/29
services/s3control/tags.go 65.5% 19/29
services/s3tables/store.go 73.7% 14/19
services/sagemaker/tags.go 21.4% 6/28
services/scheduler/tags.go 93.3% 14/15
services/securityhub/tags.go 66.7% 28/42
services/servicediscovery/tags.go 66.7% 4/6
services/sesv2/tags.go 66.7% 18/27
services/shield/tags.go 100.0% 4/4
services/ssoadmin/tags.go 80.0% 8/10
services/stepfunctions/inventory.go 88.2% 30/34
services/swf/tags.go 100.0% 8/8
services/textract/tagged_resources.go 75.0% 3/4
services/timestreamquery/query_execution.go 100.0% 15/15
services/timestreamquery/ts_aggs.go 87.8% 72/82
services/timestreamquery/ts_annotate.go 100.0% 5/5
services/timestreamquery/ts_arith.go 94.9% 150/158
services/timestreamquery/ts_cast.go 97.4% 114/117
services/timestreamquery/ts_engine.go 100.0% 15/15
services/timestreamquery/ts_funcs.go 100.0% 3/3
services/timestreamquery/ts_infer_checked.go 96.5% 83/86
services/timestreamquery/ts_infer_funcs.go 76.7% 23/30
services/timestreamquery/ts_infer.go 90.0% 45/50
services/timestreamquery/ts_result.go 100.0% 1/1
services/timestreamquery/ts_sqlast.go 100.0% 3/3
services/timestreamquery/ts_sqlexpr.go 100.0% 13/13
services/timestreamwrite/tags.go 85.7% 12/14
services/transcribe/tags.go 63.6% 21/33
services/transfer/tags.go 69.2% 18/26
services/translate/tags.go 73.7% 14/19
services/verifiedpermissions/tags.go 76.5% 13/17
services/vpclattice/tags.go 65.9% 29/44
services/waf/tags.go 65.9% 29/44
services/wafv2/tags.go 75.0% 6/8
services/workmail/tags.go 81.0% 17/21
services/xray/tags.go 100.0% 19/19

Tip

This project maintains a minimum coverage threshold of 85%. Maintain or improve coverage on new code to ensure long-term stability.


Last updated: Sun, 22 Nov 2026 04:05:08 GMT

@agbishop
agbishop merged commit 2b0616d into main Nov 22, 2026
50 checks passed
@agbishop
agbishop deleted the feat/parity-next18r branch November 22, 2026 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant