Repository navigation
fix(runtime): stop hosting unpublished 3.3.0-rc.1 and the 3.2.0 prereleases - #9095
Conversation
The 3.3.0-rc.1 Version Packages merge registered rc.1 in published-versions.json, but release run 44300240363 quarantined it at the provenance gate and #9090 marked it unpublished. The manifest's own policy registers a version only once release provenance is available. Because every published_versions entry anchors its schema and compliance bundle in the runtime image, rc.1 added ~170 MiB and pushed the image to 7439 MiB, over the 7424 MiB cap (deploy run 44353722716). Every deploy from main fails the image-size check until it comes back under. Drop rc.1 from published_versions. Its committed dist bytes, the supersession marker and the pending changeset set are unchanged, so the release-supersession gate still matches. No SDK on a tracked npm tag bundles rc.1 (check-published-compliance-versions passes). compliance-authored-tool-gates graded its synthetic run as package.json's version. Hosted grading resolves pinned storyboards only for published versions, so grade as the channel's newest published version instead; that is rc.0 today and the new candidate once Version Packages cuts it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Dropping the unpublished 3.3.0-rc.1 alone does not keep the image under the 7424 MiB cap: the approved 3.3.0-rc.2 adds another ~150 MiB. Also drop 3.2.0-beta.6 and 3.2.0-rc.0 through rc.7 from published_versions. 3.2 has been GA since 3.2.1 (now 3.2.11), and with rc.1 this frees ~1.1 GiB (estimated from committed blob sizes after dedup). - Their schema and compliance bundles stay in the repository and keep resolving from the artifact CDN (R2, strong ETags, no Fly fallback). The training agent still retains the 3.2.0-beta.6 and 3.2.0-rc.7 schemas through its own anchor. - The "3.2-rc" and "3.2-beta" targets no longer resolve. Target selection already skips missing prerelease aliases, so an agent advertising only a 3.2 prerelease falls back to the canonical 3.0 target. - None of the 36 registry-listed agents' latest runs requested a 3.2 prerelease target (all are 3.0, 3.1 or 3.2), and stored runs are not re-derived, so no listed agent's status or badge changes. - Update the retirement note in docs/reference/3-2-beta.mdx and the hosted-target tests to the new set. Co-Authored-By: Claude Opus 5.5 <[email protected]>
b08db86 to
a6af311
Compare
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean operational PR, no blocking findings.
This PR prunes 3.2.0 prereleases (beta.6, rc.0–rc.7) and the unpublished 3.3.0-rc.1 from static/compliance/published-versions.json to keep the runtime image under the size gate, with the three test files tracking the data-driven fallback behavior exactly (fallback to the 3.0 canonical target, retired-alias throw loops, grading at the channel's newest published version).
Checks performed:
- Immutability: No
dist/**released-artifact files are modified — the pruner strips bundles from the image only; RETAINED_SCHEMA_BUNDLES still anchors the 3.2.0-beta.6 and 3.2.0-rc.7 schemas. No critical immutability violation. - Changeset scope: Operational/deployment-only change with no source or wire modification;
docs/reference/3-2-beta.mdxedit is descriptive and coherent with the code. CI's changeset gate requires none when none is present — correctly no changeset. - High-risk flag:
docs/reference/3-2-beta.mdxis(modified), but the reviewer found no medium-or-higher concern on it, so the modification is presumed safe. Row 5 does not fire (no medium finding). - Documented behavior change: An agent pinned only to a 3.2 prerelease now grades at 3.0 — intended, disclosed fallback; author confirmed none of the 36 listed agents do this. Not a defect.
Decision table: no critical/high/medium findings; gated_paths is false; no (deleted) high-risk reason; no no-auto-approve team match; fewer than three medium findings. Although review_decision is REVIEW_REQUIRED, row 2 only gates when gated_paths is true — it is false here. Falls through to row 9 → approve.
…edit The image build's protocol offload let an archive that R2 discovery does not list stay local only while a runtime anchor retained its version. 3.2.0-rc.5 and 3.3.0-rc.1 were superseded without publication, so their archives never reach R2, and dropping them from published_versions made the pruner throw "Protocol offload candidate is absent from R2 discovery" (Production docs index smoke on this PR). Also accept archives that dist/schemas/index.json records as unpublished; they stay in the image, as before. Move the docs/reference/3-2-beta.mdx note to a follow-up: docs/reference is protocol-scoped, and the changeset it would need would break the release-supersession gate's exact pending-changeset match. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean delta pass, no blocking or medium findings.
This PR touches test files, a runtime-artifact pruning script, a static published-versions JSON, and a docs revert. The pruner change (scripts/prune-runtime-artifacts.cjs) adds unpublishedReleaseVersions so a committed-but-unpublished candidate archive stays local without an R2 anchor; it is never added to the verified files set, so pruneRuntimeArtifacts never deletes it — confirmed by the new test case. The empty-set default preserves the prior fail-closed guard, and the version-string comparison via name.slice(0,-4) is correct. The docs revert restores an accurate retention statement.
Gate checks:
- No no-auto-approve team match.
- gated_paths: false — no hard path gate (REVIEW_REQUIRED does not trigger escalation absent gated paths).
- high_risk: false; no deletions in sensitive paths.
- No schema/docs changes under static/schemas/source/** — no spec-drift, changeset, oneOf, or immutable-artifact concerns.
- No findings (critical/high/medium) in this run; prior run was also clean.
None of decision rows 1–8 fire, so this falls through to row 9 → approve.
Why
Every production deploy from
mainfails the image-size gate:(deploy run 44353722716, attempt 2, head
859ea919be)b5ac0e1bf7(live)5eb0b201f4859ea919be(after #9073 and #9090)Every entry in
static/compliance/published-versions.jsonanchors that version's schema and compliance bundle in the runtime image, at about 145–175 MiB per recent version. #9073 registered3.3.0-rc.1, which the provenance gate then quarantined (#9090 marked it unpublished), and rc.2 will add one more version on top.What
3.3.0-rc.1. It never released, and the manifest's own policy registers a version only once release provenance is available.3.2.0-beta.6and3.2.0-rc.0throughrc.7. 3.2 has been GA since 3.2.1 and is now at 3.2.11.Together these free an estimated ~1.1 GiB, from committed blob sizes after dedup; observed growth has run about 20% above these estimates. That keeps the image under the cap through rc.2 and several more releases.
schemas/andcompliance/for 3.2.0-rc.0, rc.3, rc.6 and beta.6: all 200 from R2, with strong ETags and no Fly fallback. The training agent keeps the 3.2.0-beta.6 and 3.2.0-rc.7 schemas through its own anchor."3.2-rc"and"3.2-beta"targets no longer resolve. Target selection already skips missing prerelease aliases, so an agent advertising only a 3.2 prerelease falls back to the canonical 3.0 target.deriveStoryboardStatusesruns only when a run is recorded). Unlisted agents weren't checked: I had no database access.docs/reference/3-2-beta.mdxnow says what changed. The old text said RC artifacts are never retired; that still holds for the repository and CDN.storyboards.test.tsandhosted-compliance-version.test.tsnow assert the new hosted set.compliance-authored-tool-gatesgraded runs aspackage.json's version (still rc.1). It now grades as the channel's newest published version, because hosted grading resolves pinned storyboards only for published versions.dist/surfaces, which are unchanged.Follow-ups (not in this PR)
compliance_targettool descriptions still give"3.2-rc"and"3.2-beta"as examples (member-tools.ts). Changing them trips the reviewed tool-profile hash, so it needs its own review.schemas/bundled/andschemas/mcp/from older versions in the image. The SDK grader falls back to the per-topic folders, and the CDN serves those files from R2. That's about 4 GiB; see the runtime-image-size proposal.Verification
check-published-compliance-versions: current for npm tagsadcp-3.0,adcp-3.1,adcp-3.2,latest,rc.hosted-compliance-versionstoryboardscompliance-authored-tool-gatescdn-artifacts"historical JSONL" fails identically on main's files: the localtarcan't readdist/protocol/3.2.0-rc.0.tgz.docs-indexertimed out in setup at host load above 200.--no-verify, with maintainer approval. The pre-commit hook failed twice on unrelated suites at load 130–230; the first round's failures (hosted-compliance-echoed-release, training-agent-governance-agent-credentials, hosted-multi-agent-routing-wire, training-agent-controller-caller-cache) all pass when run alone. CI is the full check.🤖 Generated with Claude Code