mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
The partition-literal gate only saw ARNs that name a partition. Code that
builds, checks or cuts an ARN by hand names none, so it passed the gate while
bypassing the helpers that get every partition right, and the number of
startsWith("arn:") probes grew from 84 to 98 in two weeks.
Three code-scope categories join the per-file baseline:
- arn-concat: "arn:" + ..., except a pattern built from PARTITION_REGEX
- arn-probe: startsWith("arn:")
- arn-split: split(":") on a value named like an ARN
The baseline starts with today's 159 sites, so new ones fail and migrating
existing ones to AwsArnUtils shrinks it. AwsArnUtils's own formatter and
parser carry partition-literal escapes. PartitionSmokeInventoryTest also
counts a concatenated ARN as minting, and AGENTS.md names the categories.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>