Skip to content

fix(runtime): stop hosting unpublished 3.3.0-rc.1 and the 3.2.0 prereleases - #9095

Merged
bokelley merged 3 commits into
mainfrom
fix/drop-unpublished-rc1-from-runtime
Nov 19, 2026
Merged

bokelley merged 3 commits into
mainfrom
fix/drop-unpublished-rc1-from-runtime

Conversation

@bokelley

@bokelley bokelley commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Release sequencing: #9091 (Version Packages, rc.2) was approved on a base this PR and #9092 move. The maintainer chose to merge both first and then regenerate #9091 through the documented supersession dispatch (release.yml, release_commit=<new main SHA>, prepare_next=true), followed by a fresh approval. Do not merge #9091 at its current head.

Why

Every production deploy from main fails the image-size gate:

#36 2.382 Runtime application size: 7439 MiB (limit: 7424 MiB)

(deploy run 44353722716, attempt 2, head 859ea919be)

Head Image
b5ac0e1bf7 (live) 7281 MiB
5eb0b201f4 7266 MiB
859ea919be (after #9073 and #9090) 7439 MiB

Every entry in static/compliance/published-versions.json anchors that version's schema and compliance bundle in the runtime image, at about 145–175 MiB per recent version. #9073 registered 3.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

  1. Drop the unpublished 3.3.0-rc.1. It never released, and the manifest's own policy registers a version only once release provenance is available.
  2. Drop the 3.2.0 prereleases: 3.2.0-beta.6 and 3.2.0-rc.0 through rc.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.

  • Artifacts are not retired. Their schema and compliance bundles stay in the repository and resolve from the artifact CDN. Checked schemas/ and compliance/ 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.
  • What stops: hosted grading at those exact versions. 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.
  • Who's affected: none of the 36 registry-listed agents' latest runs requested a 3.2 prerelease target; all requested 3.0, 3.1 or 3.2. Stored runs are not re-derived (deriveStoryboardStatuses runs only when a run is recorded). Unlisted agents weren't checked: I had no database access.
  • docs/reference/3-2-beta.mdx now says what changed. The old text said RC artifacts are never retired; that still holds for the repository and CDN.
  • Tests:
    • storyboards.test.ts and hosted-compliance-version.test.ts now assert the new hosted set.
    • compliance-authored-tool-gates graded runs as package.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.
  • No changeset. This changes no protocol content, and the release-supersession gate requires the pending changeset set to match exactly. The gate compares only rc.1's dist/ surfaces, which are unchanged.

Follow-ups (not in this PR)

  • Addie's compliance_target tool 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.
  • The durable fix: strip schemas/bundled/ and schemas/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 tags adcp-3.0, adcp-3.1, adcp-3.2, latest, rc.
  • Pruner manifest: 65 schema versions, 62 compliance versions.
  • Suites:
Suite Result
hosted-compliance-version 11/11
storyboards 64/64
compliance-authored-tool-gates 66/66
runtime-artifact, published-compliance, storyboard-lint, docs-nav, owned-links, release-supersession, schema-discovery and immutable-artifact node tests all pass
target-discovery, route-storyboard, schema-compat, hosted-run-test-kit all pass
  • cdn-artifacts "historical JSONL" fails identically on main's files: the local tar can't read dist/protocol/3.2.0-rc.0.tgz.
  • docs-indexer timed out in setup at host load above 200.
  • The second commit was made with --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

bokelley and others added 2 commits November 19, 2026 03:09
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]>
@bokelley
bokelley force-pushed the fix/drop-unpublished-rc1-from-runtime branch from b08db86 to a6af311 Compare November 19, 2026 03:09
@bokelley bokelley changed the title fix(runtime): stop hosting the unpublished 3.3.0-rc.1 compliance bundle fix(runtime): stop hosting unpublished 3.3.0-rc.1 and the 3.2.0 prereleases Nov 19, 2026
@bokelley
bokelley marked this pull request as ready for review November 19, 2026 03:10
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Nov 19, 2026

@aao-secretariat aao-secretariat 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.

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.mdx edit 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.mdx is (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]>

@aao-secretariat aao-secretariat 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.

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.

@bokelley
bokelley merged commit 212d7c2 into main Nov 19, 2026
33 checks passed
@bokelley
bokelley deleted the fix/drop-unpublished-rc1-from-runtime branch November 19, 2026 14:25
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