Skip to content

feat(aws): generation builds from the committed pin archive, not the fetch lottery (#1511) - #1512

Closed
lex00 wants to merge 1 commit into
mainfrom
feat/1511-pin-by-digest
Closed

lex00 wants to merge 1 commit into
mainfrom
feat/1511-pin-by-digest

Conversation

@lex00

@lex00 lex00 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

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 is now committed, content-addressed:
spec-archive/.zip at the package root (outside files:, so the
npm tarball never carries it). fetchSchemaZip loads it first, verifies
the extracted content digests to AWS_SPEC_PIN exactly (a mismatched
archive throws, naming both digests), and only falls back to the live
fetch for force, the accept flow, or a checkout with no archive. The
accept flow (CHANT_ACCEPT_AWS_SPEC=1) now bypasses the 24h cache — it
must sample upstream, not the cache, which is how the #1506 accept
silently re-accepted morning content — and writes the new archive beside
the printed pin block so both land in one commit.

Verified: CHANT_RELEASE_GATE=1 prepack passes all six checks with zero
drift messages — no network involved. Costs ~2.8MB of repo history per
accept; the deferred unpin is filed separately.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01HDqbe9YwXqqpF7VxFp1Drx

…fetch lottery (#1511)

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 is now committed, content-addressed:
spec-archive/<digest12>.zip at the package root (outside files:, so the
npm tarball never carries it). fetchSchemaZip loads it first, verifies
the extracted content digests to AWS_SPEC_PIN exactly (a mismatched
archive throws, naming both digests), and only falls back to the live
fetch for force, the accept flow, or a checkout with no archive. The
accept flow (CHANT_ACCEPT_AWS_SPEC=1) now bypasses the 24h cache — it
must sample upstream, not the cache, which is how the #1506 accept
silently re-accepted morning content — and writes the new archive beside
the printed pin block so both land in one commit.

Verified: CHANT_RELEASE_GATE=1 prepack passes all six checks with zero
drift messages — no network involved. Costs ~2.8MB of repo history per
accept; the deferred unpin is filed separately.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HDqbe9YwXqqpF7VxFp1Drx
@lex00

lex00 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Closing unmerged: committing the 2.8MB archive into git history was the wrong storage choice. The deterministic-build contract (only content whose digest a human accepted, verified at load) returns in a follow-up that keeps the bytes out of git entirely. Main was never touched by this branch.

@lex00 lex00 closed this Aug 5, 2026
@lex00
lex00 deleted the feat/1511-pin-by-digest branch August 5, 2026 23:24
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