Repository navigation
feat(aws): accept LicenseAssetRuleSet + QuickSight TopicV2 spec drift - #1506
Merged
Merged
Conversation
The chant-v0.41.1 publish failed on aws the same way v0.40.1 did (#1480): upstream added AWS::LicenseManager::LicenseAssetRuleSet and AWS::QuickSight::TopicV2 (1651 -> 1653 types) between the pin being accepted and the release running, so the surface-matches-snapshot release gate refused — correctly. Every other package published 0.41.1; aws is still at 0.41.0 on npm until the next lockstep release. Pin moved to today's fetch (the digest churns per republish; only the type-set move is fatal), pinned-types gains the two names, and the surface snapshot re-baselines the reviewed API. The delta also carries upstream createOnly/property changes on BedrockAgentCore OAuth2CredentialProvider and AppStream StackFleetAssociation — severity "breaking" by the differ's measure, shipped under the lockstep patch flow per policy (components ship in lockstep for now). No --bump: the lockstep release owns the version. Verified: CHANT_RELEASE_GATE=1 validate passes all six checks including surface-matches-snapshot; pin tests 28/28. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HDqbe9YwXqqpF7VxFp1Drx
This was referenced Aug 5, 2026
Closed
lex00
added a commit
that referenced
this pull request
Aug 5, 2026
…etch lottery (#1511) (#1514) The registry serves one mutable "latest" artifact; on 2026-08-05 four distinct contents were observed in a day, two contradicting each other about GlueWorkflow and StackFleetAssociation. prepack refetches at publish time, so the surface gate compared artifacts built from whichever variant that fetch hit — v0.41.1 and v0.41.2 both stranded aws on npm exactly this way. The accepted content now lives as a content-addressed asset on the dedicated `aws-spec-pin` GitHub release — public download, nothing binary in git, ever. fetchSchemaZip loads it first (verified local copy under ~/.chant/spec-pin/, else the asset URL), refuses any content that does not digest to AWS_SPEC_PIN exactly (naming both digests; a bad copy is never cached), and falls back to the live fetch only for force, the accept flow, or an unreachable asset. The accept flow (CHANT_ACCEPT_AWS_SPEC=1) now bypasses the 24h cache — it must sample upstream, which is how the #1506 accept silently re-accepted morning content — and uploads the new asset via gh, degrading to printing the exact upload command when gh is absent or unauthenticated. The f05366bc asset (the #1506 accept) is uploaded. Verified cold-cache: rm -rf ~/.chant/spec-pin, then CHANT_RELEASE_GATE=1 prepack — all six checks pass with zero drift messages, and the verified copy reappears. Claude-Session: https://claude.ai/code/session_01HDqbe9YwXqqpF7VxFp1Drx Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
lex00
added a commit
that referenced
this pull request
Sep 8, 2026
…#2205) (#2281) * fix(codegen): resolve list definitions, allOf, and oneOf/anyOf siblings (#2205) Three gaps in `resolvePropertyType`/`resolveRef` account for 555 of the 754 CloudFormation Registry properties that resolved to `any`. `resolveRef` had no `array` case, so a `$ref` to a definition whose `type` is `array` fell through to `any`. CloudFormation names its list shapes constantly: `AWS::Panorama::ApplicationInstance` writes `Tags` as a `$ref` to `TagList`, whose items are the `Tag` definition one hop away. Resolve through `def.items` the way the inline `array` case already does. 502 properties. `resolvePropertyType` returned `any` on seeing `oneOf`/`anyOf` without reading what sat beside it. 44 of those properties also declare a real `type`, and the branch list relaxes that type rather than summing shapes: `AWS::AmazonMQ::Broker` writes `EngineType` as `type: "string"` beside an enum branch and two case-insensitive patterns for the same two values. Read the sibling keywords, and take a string enum branch as the narrower answer. A branch list with nothing beside it is a real sum type and still resolves to `any` (#2278). `allOf` was not handled at all. All nine occurrences are one `$ref` beside an annotation (`{ "default": "MCP" }`), which types as the `$ref` alone. Two things found while measuring. `[]` binds tighter than `|`, so the emitter's `${itemType}[]` produced `"arm64" | "x86_64"[]` — a type that accepts the bare string `"arm64"` and rejects `["arm64"]`. 62 declarations were already wrong that way and the array fix would have added more, so item unions are now parenthesized. And a list definition whose items reach the definition again would recurse without end, so the resolution path carries the definition names it has already visited. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0148a4dPTErCBpmNy7J7933f * fix(aws): re-baseline the surface snapshot and budget the remaining `any`s (#2205) The resolver fix narrows 787 constructor properties to 216 and, because `boundPropertyTypes` seeds reachability from the resolved type strings, brings 248 more property-type interfaces into the emitted set. The surface gains 408 entries and loses 7: `DimensionMapping`, `DocumentAttributeTarget`, `FilesystemConfiguration`, `Lambda`, `LambdaAuthorizerConfig`, `OpenIDConnectConfig` and `SourceAlgorithm` each had a bare name because only one resource emitted them, and a second resource now does, so the naming strategy prefixes both. Nothing outside `src/generated` referenced them. `chant dev surface-diff lexicons/aws` reported severity breaking against the committed baseline, which the release-time gate (#1473) would refuse to publish past, so the snapshot re-baselines here. No `--bump`: packages ship in lockstep, as in #1506. The budget test asserts the count that is left, so the next drop is a deliberate edit rather than a silent one, and checks the three properties #2205 named. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0148a4dPTErCBpmNy7J7933f --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
78 of 84 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The chant-v0.41.1 publish failed on aws the same way v0.40.1 did (#1480):
upstream added AWS::LicenseManager::LicenseAssetRuleSet and
AWS::QuickSight::TopicV2 (1651 -> 1653 types) between the pin being
accepted and the release running, so the surface-matches-snapshot release
gate refused — correctly. Every other package published 0.41.1; aws is
still at 0.41.0 on npm until the next lockstep release.
Pin moved to today's fetch (the digest churns per republish; only the
type-set move is fatal), pinned-types gains the two names, and the
surface snapshot re-baselines the reviewed API. The delta also carries
upstream createOnly/property changes on BedrockAgentCore
OAuth2CredentialProvider and AppStream StackFleetAssociation — severity
"breaking" by the differ's measure, shipped under the lockstep patch
flow per policy (components ship in lockstep for now). No --bump: the
lockstep release owns the version.
Verified: CHANT_RELEASE_GATE=1 validate passes all six checks including
surface-matches-snapshot; pin tests 28/28.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01HDqbe9YwXqqpF7VxFp1Drx