From bb04294c6d7412a08881716cf327f8846b6e6b12 Mon Sep 17 00:00:00 2001 From: Brian O'Kelley Date: Sun, 6 Dec 2026 17:06:07 +0000 Subject: [PATCH 1/2] fix(runtime): drop superseded prerelease trees from the Fly image The runtime image measured 7471 MiB with the 3.3.4 forward merge, over the 7424 MiB ceiling. Every superseded prerelease shipped a full schema tree of about 147 MB, and consecutive versions share no files. prune-runtime-artifacts now computes the superseded set: a prerelease whose GA (same major.minor.patch) is in published-versions.json and that no docs snapshot, schema alias target or training bundle names. Its schema and compliance trees leave the image. They stay in Git and on the R2 CDN, and published-versions.json is unchanged. Every GA, every anchor and any prerelease line without a GA stays, and the closure check refuses to drop anything else. Hosted grading refuses a pin to a dropped version with SupersededComplianceTargetError. The message names the version, the GA line to use and the CDN URLs. The registry storyboard routes return it as a 400 with error_kind superseded_compliance_target, and Addie's tools return the same message. A checkout that still holds the trees keeps grading them. The image smoke now asserts the refusal for every dropped published version. Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 7 +- scripts/prune-runtime-artifacts.cjs | 100 +++++++++++-- scripts/smoke-hosted-compliance-runtime.mjs | 27 +++- server/src/addie/mcp/member-tools.ts | 6 +- server/src/routes/registry-api.ts | 41 ++++-- .../src/services/hosted-compliance-version.ts | 77 +++++++++- ...d-compliance-superseded-prerelease.test.ts | 113 +++++++++++++++ ...superseded-compliance-target-route.test.ts | 85 +++++++++++ tests/runtime-artifact-pruning.test.cjs | 135 +++++++++++++++++- 9 files changed, 554 insertions(+), 37 deletions(-) create mode 100644 server/tests/unit/hosted-compliance-superseded-prerelease.test.ts create mode 100644 server/tests/unit/registry-superseded-compliance-target-route.test.ts diff --git a/Dockerfile b/Dockerfile index 7923e334218..912d6816865 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,11 @@ RUN NODE_OPTIONS=--max-old-space-size=4096 npm run build RUN node scripts/deduplicate-runtime-artifacts.cjs # Historical releases remain immutable in git and in the public R2 artifact -# CDN. Fly retains every compliance bundle, configured docs snapshot and required -# schema bundle. Versioned protocol tarball bodies are offloaded only after byte +# CDN. Fly retains every hosted compliance bundle, configured docs snapshot and +# required schema bundle. A superseded prerelease (its GA is published and no +# docs snapshot, schema alias or training bundle names it) leaves the image; +# hosted grading refuses it by name and points at the GA line and the CDN copy. +# Versioned protocol tarball bodies are offloaded only after byte # verification against the CDN; a required release's archive that R2 does not # list yet stays local, and every sidecar plus a discovery inventory stays local. # Prune only the builder copy, never Git records. diff --git a/scripts/prune-runtime-artifacts.cjs b/scripts/prune-runtime-artifacts.cjs index 76608955937..f94de9221cd 100644 --- a/scripts/prune-runtime-artifacts.cjs +++ b/scripts/prune-runtime-artifacts.cjs @@ -247,23 +247,53 @@ function schemaDiscoveryAliasTargets(repoRoot) { return targets; } +// The GA release a prerelease leads to (3.3.0 for 3.3.0-rc.2), or undefined +// for a GA version. +function gaReleaseOf(version) { + const parsed = semver.parse(version); + if (!parsed || parsed.prerelease.length === 0) return undefined; + return `${parsed.major}.${parsed.minor}.${parsed.patch}`; +} + +// A prerelease is superseded once its GA (same major.minor.patch) is in the +// hosted publication manifest. A prerelease line whose GA has not shipped yet +// (a future 4.0.0-beta.N before 4.0.0) is never superseded. +function isSupersededPrerelease(version, published) { + const ga = gaReleaseOf(version); + return ga !== undefined && published.has(ga); +} + +// Superseded prereleases that no runtime anchor names. Their schema and +// compliance trees stay immutable in Git and published on the artifact CDN +// (R2); only the Fly image stops carrying them, and hosted grading refuses +// them by name (server/src/services/hosted-compliance-version.ts). +function supersededRuntimeVersions(candidates, published, anchors) { + return new Set([...candidates].filter((version) => + isSupersededPrerelease(version, published) && !anchors.has(version))); +} + function runtimeArtifactManifest(repoRoot = resolve(__dirname, "..")) { const published = publishedComplianceVersions(repoRoot); const docs = docsSnapshotVersions(repoRoot); const schemaAliases = schemaDiscoveryAliasTargets(repoRoot); const trainingSchemas = retainedTrainingSchemaVersions(repoRoot); + // Every tree the runtime reads by exact version, whatever its release + // state: docs snapshots, schema discovery alias targets and the training + // agent's retained bundles. A superseded prerelease named here keeps both + // its schema and its compliance tree and stays hosted. + const anchors = new Set([...docs, ...schemaAliases, ...trainingSchemas]); + const superseded = supersededRuntimeVersions(published, published, anchors); + const hosted = new Set([...published].filter((version) => !superseded.has(version))); return { published, + hosted, + superseded, docs, schemaAliases, trainingSchemas, - schemaVersions: new Set([ - ...published, - ...docs, - ...schemaAliases, - ...trainingSchemas, - ]), + anchors, + schemaVersions: new Set([...hosted, ...anchors]), }; } @@ -281,11 +311,24 @@ function verifyRequiredArtifacts(repoRoot, manifest = runtimeArtifactManifest(re for (const version of manifest.schemaVersions) { requireArtifact(schemaRoot, version, "index.json"); } - for (const version of manifest.published) { + for (const version of manifest.hosted) { requireArtifact(complianceRoot, version, "index.json"); // hostedComplianceOptions() requires the same-version schema bundle. requireArtifact(schemaRoot, version, "index.json"); } + // Only a prerelease whose own GA stays hosted may leave the image: every GA + // release and every prerelease line without a GA stays hosted. + for (const version of manifest.superseded) { + const ga = gaReleaseOf(version); + if (!ga || !manifest.hosted.has(ga) || manifest.anchors.has(version)) { + throw new Error(`Refusing to drop ${version}: it is not a superseded prerelease`); + } + } + for (const version of manifest.published) { + if (manifest.hosted.has(version) === manifest.superseded.has(version)) { + throw new Error(`Published release ${version} must be either hosted or superseded`); + } + } for (const version of manifest.docs) { if (!existsSync(join(docsRoot, version))) { throw new Error(`Required runtime docs snapshot is missing: ${join(docsRoot, version)}`); @@ -317,6 +360,22 @@ function pruneVersionDirectories(rootPath, keep) { return removed; } +// Compliance trees are otherwise retained wholesale. Remove only superseded +// prereleases that no runtime anchor names, published or not. +function pruneSupersededComplianceDirectories(rootPath, manifest) { + const removed = [...supersededRuntimeVersions( + versionDirectories(rootPath), manifest.published, manifest.anchors, + )].sort(semver.compare); + for (const version of removed) rmSync(join(rootPath, version), { recursive: true }); + return removed; +} + +function versionDirectories(rootPath) { + return readdirSync(rootPath, { withFileTypes: true }) + .filter((entry) => entry.isDirectory() && semver.valid(entry.name) !== null) + .map((entry) => entry.name); +} + function rewriteSchemaDiscovery(repoRoot, keep) { const indexPath = join(repoRoot, "dist", "schemas", "index.json"); const index = readJson(indexPath); @@ -329,11 +388,7 @@ function rewriteSchemaDiscovery(repoRoot, keep) { function verifyPrunedTree(repoRoot, manifest) { verifyRequiredArtifacts(repoRoot, manifest); - const actual = new Set( - readdirSync(join(repoRoot, "dist", "schemas"), { withFileTypes: true }) - .filter((entry) => entry.isDirectory() && semver.valid(entry.name) !== null) - .map((entry) => entry.name), - ); + const actual = new Set(versionDirectories(join(repoRoot, "dist", "schemas"))); const unexpected = [...actual].filter((version) => !manifest.schemaVersions.has(version)); const missing = [...manifest.schemaVersions].filter((version) => !actual.has(version)); if (unexpected.length || missing.length) { @@ -342,6 +397,13 @@ function verifyPrunedTree(repoRoot, manifest) { ); } + const leftover = [...supersededRuntimeVersions( + versionDirectories(join(repoRoot, "dist", "compliance")), manifest.published, manifest.anchors, + )]; + if (leftover.length) { + throw new Error(`Runtime compliance closure retains superseded prereleases: ${leftover.join(",")}`); + } + const schemaIndex = readJson(join(repoRoot, "dist", "schemas", "index.json")); const indexed = new Set(schemaIndex.versions.map((entry) => entry.version)); const stale = [...indexed].filter((version) => !manifest.schemaVersions.has(version)); @@ -371,6 +433,10 @@ function pruneRuntimeArtifacts(repoRoot = resolve(__dirname, ".."), verifiedProt join(repoRoot, "dist", "schemas"), manifest.schemaVersions, ); + const complianceRemoved = pruneSupersededComplianceDirectories( + join(repoRoot, "dist", "compliance"), + manifest, + ); rewriteSchemaDiscovery(repoRoot, manifest.schemaVersions); verifyPrunedTree(repoRoot, manifest); if (protocolFiles.length) { @@ -378,7 +444,7 @@ function pruneRuntimeArtifacts(repoRoot = resolve(__dirname, ".."), verifiedProt `${JSON.stringify({ schema_version: 1, files: protocolFiles }, null, 2)}\n`); for (const name of verifiedProtocolFiles) rmSync(join(repoRoot, "dist", "protocol", name)); } - return { manifest, schemasRemoved, protocolFilesOffloaded: verifiedProtocolFiles }; + return { manifest, schemasRemoved, complianceRemoved, protocolFilesOffloaded: verifiedProtocolFiles }; } async function run() { @@ -391,8 +457,11 @@ async function run() { const result = pruneRuntimeArtifacts(repoRoot, verified); console.log( `Runtime artifact closure retained ${result.manifest.schemaVersions.size} schema releases; ` + - `pruned ${result.schemasRemoved.length}; offloaded ${verified.length} CDN-verified protocol archives. ` + - "Compliance, docs, latest.tgz, archives not yet in R2 and all sidecars were left intact.", + `pruned ${result.schemasRemoved.length}; dropped superseded prereleases ` + + `${[...result.manifest.superseded].sort(semver.compare).join(", ") || "none"} ` + + `(compliance trees removed: ${result.complianceRemoved.join(", ") || "none"}); ` + + `offloaded ${verified.length} CDN-verified protocol archives. ` + + "Other compliance trees, docs, latest.tgz, archives not yet in R2 and all sidecars were left intact.", ); } @@ -405,6 +474,7 @@ if (require.main === module) { module.exports = { docsSnapshotVersions, + isSupersededPrerelease, pruneRuntimeArtifacts, retainedTrainingSchemaVersions, runtimeArtifactManifest, diff --git a/scripts/smoke-hosted-compliance-runtime.mjs b/scripts/smoke-hosted-compliance-runtime.mjs index c530d342050..70cba3e0c2d 100644 --- a/scripts/smoke-hosted-compliance-runtime.mjs +++ b/scripts/smoke-hosted-compliance-runtime.mjs @@ -27,12 +27,36 @@ process.chdir(appRoot); const { hostedComplianceOptions, hostedComplianceTarget, + isRetiredSupersededPrerelease, resolveHostedComplianceVersion, + SupersededComplianceTargetError, } = await import(servicePath); const { loadComplianceIndex, listAllComplianceStoryboards } = await import('@adcp/sdk/testing'); +// scripts/prune-runtime-artifacts.cjs leaves superseded prereleases out of the +// image. Each must be refused by name, pointing at its GA line and the CDN. +const retired = []; for (const version of manifest.published_versions) { + if (isRetiredSupersededPrerelease(version)) { + const ga = version.replace(/-(?:beta|rc)\.\d+$/, ''); + assert.ok(manifest.published_versions.includes(ga), `${version} left the image before its GA ${ga} was published`); + assert.throws(() => hostedComplianceTarget(version), (error) => { + assert.ok(error instanceof SupersededComplianceTargetError, `${version} must be refused as superseded`); + for (const text of [ + version, + 'superseded prerelease', + `"${ga.split('.').slice(0, 2).join('.')}"`, + `https://adcontextprotocol.org/schemas/${version}/`, + `https://adcontextprotocol.org/compliance/${version}/`, + ]) { + assert.ok(error.message.includes(text), `${version} refusal must mention ${text}: ${error.message}`); + } + return true; + }); + retired.push(version); + continue; + } assert.equal(resolveHostedComplianceVersion(version), version); const target = hostedComplianceTarget(version); assert.equal(target.version, version); @@ -51,5 +75,6 @@ for (const version of manifest.published_versions) { } console.log( - `Hosted compliance runtime smoke passed for ${manifest.published_versions.length} published versions.`, + `Hosted compliance runtime smoke passed: ${manifest.published_versions.length - retired.length} published versions graded; ` + + `${retired.length} superseded prereleases refused (${retired.join(', ') || 'none'}).`, ); diff --git a/server/src/addie/mcp/member-tools.ts b/server/src/addie/mcp/member-tools.ts index b6b472be09f..0a41e8e0285 100644 --- a/server/src/addie/mcp/member-tools.ts +++ b/server/src/addie/mcp/member-tools.ts @@ -97,6 +97,7 @@ import { import { hostedComplianceTarget, hostedComplianceOptions, + SupersededComplianceTargetError, HOSTED_INTERACTIVE_COMPLIANCE_TIMEOUT_MS, hostedAuthProbeTaskForProfile, withHostedStoryboardRunOptions, @@ -195,8 +196,9 @@ function targetFromInput(input: Record): ReturnType ({ badge_eligible_adcp_versions: [...eligibleVersions], }); const INVALID_COMPLIANCE_TARGET_MESSAGE = - "Invalid compliance_target. Use 3.3, 3.2, 3.1, 3.0, 3.3-rc, 3.3-beta, or an exact bundled version."; + "Invalid compliance_target. Use 3.3, 3.2, 3.1, 3.0, 3.3-rc, or an exact bundled version."; class InvalidComplianceTargetError extends Error {} @@ -702,11 +703,35 @@ function targetFromRequestValue(value: unknown): ReturnType, category?: string, @@ -10204,9 +10229,7 @@ export function createRegistryApiRouters(config: RegistryApiConfig): { count: results.length, }); } catch (error) { - if (error instanceof InvalidComplianceTargetError) { - return res.status(400).json({ error: INVALID_COMPLIANCE_TARGET_MESSAGE }); - } + if (sendComplianceTargetRejection(res, error)) return; logger.error({ err: error, path: req.path }, "Failed to list storyboards"); res.status(500).json({ error: "Failed to list storyboards" }); } @@ -10233,9 +10256,7 @@ export function createRegistryApiRouters(config: RegistryApiConfig): { test_kit: testKit || null, }); } catch (error) { - if (error instanceof InvalidComplianceTargetError) { - return res.status(400).json({ error: INVALID_COMPLIANCE_TARGET_MESSAGE }); - } + if (sendComplianceTargetRejection(res, error)) return; logger.error({ err: error, path: req.path }, "Failed to get storyboard"); res.status(500).json({ error: "Failed to get storyboard" }); } @@ -10554,9 +10575,7 @@ export function createRegistryApiRouters(config: RegistryApiConfig): { step: preview, }); } catch (error) { - if (error instanceof InvalidComplianceTargetError) { - return res.status(400).json({ error: INVALID_COMPLIANCE_TARGET_MESSAGE }); - } + if (sendComplianceTargetRejection(res, error)) return; logger.error({ err: error, path: req.path }, "Failed to get first step preview"); res.status(500).json({ error: "Failed to get first step preview" }); } diff --git a/server/src/services/hosted-compliance-version.ts b/server/src/services/hosted-compliance-version.ts index d782475ba64..77bbb36d09d 100644 --- a/server/src/services/hosted-compliance-version.ts +++ b/server/src/services/hosted-compliance-version.ts @@ -198,6 +198,66 @@ function requirePublishedComplianceVersion(version: string): string { ); } +/** Public origin that serves every released schema and compliance bundle from R2. */ +export const ADCP_ARTIFACT_CDN_ORIGIN = 'https://adcontextprotocol.org'; + +/** The GA release a `-beta.N`/`-rc.N` build leads to (3.3.0 for 3.3.0-rc.2). */ +function gaReleaseForPrerelease(version: string): string | undefined { + return version.match(/^([1-9][0-9]*\.[0-9]+\.[0-9]+)-(?:beta|rc)\.[0-9]+$/)?.[1]; +} + +/** + * Whether `version` is a prerelease the hosted service no longer grades: its + * GA release is published and the runtime image does not carry its bundles. + * scripts/prune-runtime-artifacts.cjs drops exactly these trees from the Fly + * image; they stay published on the artifact CDN. A checkout that still holds + * the bundles (local development, tests) keeps grading them. + */ +export function isRetiredSupersededPrerelease(version: string): boolean { + const ga = gaReleaseForPrerelease(version); + return ga !== undefined + && isPublishedComplianceVersion(ga) + && !existsSync(join(hostedComplianceDir(version), 'index.json')); +} + +export function supersededPrereleaseRefusalMessage(requested: string, version: string): string { + const ga = gaReleaseForPrerelease(version) ?? version; + const line = complianceReleaseLine(ga) ?? ga; + const subject = requested === version ? `"${version}"` : `"${requested}" (${version})`; + return `AdCP compliance target ${subject} is a superseded prerelease: AdCP ${ga} has shipped, ` + + `so ${version} is no longer graded on the hosted service. Use the GA line instead ` + + `(compliance_target "${line}"). The ${version} bundles are still published at ` + + `${ADCP_ARTIFACT_CDN_ORIGIN}/schemas/${version}/ and ${ADCP_ARTIFACT_CDN_ORIGIN}/compliance/${version}/.`; +} + +/** + * A request pinned to a superseded prerelease the hosted service no longer + * grades (isRetiredSupersededPrerelease). Its message names the version, the + * GA line to use instead and the CDN URLs that still publish its bundles. + */ +export class SupersededComplianceTargetError extends Error { + readonly code = 'superseded_compliance_target' as const; + readonly releaseLine: string; + readonly schemasUrl: string; + readonly complianceUrl: string; + + constructor(readonly requested: string, readonly version: string) { + super(supersededPrereleaseRefusalMessage(requested, version)); + this.name = 'SupersededComplianceTargetError'; + const ga = gaReleaseForPrerelease(version) ?? version; + this.releaseLine = complianceReleaseLine(ga) ?? ga; + this.schemasUrl = `${ADCP_ARTIFACT_CDN_ORIGIN}/schemas/${version}/`; + this.complianceUrl = `${ADCP_ARTIFACT_CDN_ORIGIN}/compliance/${version}/`; + } +} + +function requireGradedComplianceVersion(requested: string, version: string): string { + if (isRetiredSupersededPrerelease(version)) { + throw new SupersededComplianceTargetError(requested, version); + } + return version; +} + function prereleaseComplianceLine(version: string): string | undefined { const fullSemver = version.match(/^([1-9][0-9]*)\.([0-9]+)\.[0-9]+-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*(?:\+[0-9A-Za-z.-]+)?$/); if (fullSemver) return `${fullSemver[1]}.${fullSemver[2]}`; @@ -253,7 +313,13 @@ function latestStableComplianceVersionForLine(line: string): string { function latestPrereleaseComplianceVersionForLine(line: string, label: 'beta' | 'rc'): string { const complianceRoot = repoPath('dist', 'compliance'); const prereleaseRe = new RegExp(`^${escapeRegex(line)}\\.0-${label}\\.\\d+$`); - const publishedCeiling = latestPublishedComplianceVersion(`${line}-${label}`); + // The channel alias names its newest published checkpoint. Once that + // checkpoint is superseded and no longer bundled, refuse the alias rather + // than silently grading an older checkpoint. + const publishedCeiling = requireGradedComplianceVersion( + `${line}-${label}`, + latestPublishedComplianceVersion(`${line}-${label}`), + ); const versions = complianceVersions() .filter(name => prereleaseRe.test(name)) .filter(isPublishedComplianceVersion) @@ -332,15 +398,15 @@ export function resolveHostedComplianceVersion(target: string = DEFAULT_HOSTED_C } const wirePrereleaseMatch = target.match(/^([1-9][0-9]*\.[0-9]+)-(beta|rc)\.([0-9]+)$/); if (wirePrereleaseMatch) { - return requirePublishedComplianceVersion( + return requireGradedComplianceVersion(target, requirePublishedComplianceVersion( `${wirePrereleaseMatch[1]}.0-${wirePrereleaseMatch[2]}.${wirePrereleaseMatch[3]}`, - ); + )); } if (/^[1-9][0-9]*\.[0-9]+\.[0-9]+(?:-(?:beta|rc)\.[0-9]+)?$/.test(target)) { - return requirePublishedComplianceVersion(target); + return requireGradedComplianceVersion(target, requirePublishedComplianceVersion(target)); } throw new Error( - `Unsupported AdCP compliance target "${target}". Use a line alias like 3.0, a prerelease alias like 3.1-rc or 3.1-beta, or an exact bundled version like 3.0.12.`, + `Unsupported AdCP compliance target "${target}". Use a line alias like 3.0, a prerelease alias like 3.3-rc, or an exact bundled version like 3.0.12.`, ); } @@ -529,6 +595,7 @@ export function hostedSchemaArtifactsExist(version: string): boolean { function assertHostedArtifacts(version: string): void { const complianceDir = hostedComplianceDir(version); const schemaRoot = hostedSchemaRoot(version); + requireGradedComplianceVersion(version, version); if (!existsSync(join(complianceDir, 'index.json'))) { throw new Error( diff --git a/server/tests/unit/hosted-compliance-superseded-prerelease.test.ts b/server/tests/unit/hosted-compliance-superseded-prerelease.test.ts new file mode 100644 index 00000000000..8ff0af6016a --- /dev/null +++ b/server/tests/unit/hosted-compliance-superseded-prerelease.test.ts @@ -0,0 +1,113 @@ +import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; +import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; + +type HostedComplianceVersionModule = typeof import('../../src/services/hosted-compliance-version.js'); + +// The Fly image drops superseded prerelease bundles +// (scripts/prune-runtime-artifacts.cjs). This fixture is that image: 3.3.0 has +// shipped, its betas and rc.2 are gone, rc.3 stays (a runtime anchor), and the +// 4.0 prerelease line has no GA yet. +const PUBLISHED = ['3.0.1', '3.3.0', '3.3.0-beta.1', '3.3.0-rc.2', '3.3.0-rc.3', '4.0.0-beta.1']; +const BUNDLED = ['3.0.1', '3.3.0', '3.3.0-rc.3', '4.0.0-beta.1']; + +describe('hosted grading of superseded prereleases the image no longer carries', () => { + let fixtureRoot: string; + let hosted: HostedComplianceVersionModule; + + beforeAll(async () => { + fixtureRoot = mkdtempSync(join(tmpdir(), 'hosted-compliance-superseded-')); + mkdirSync(join(fixtureRoot, 'static', 'compliance'), { recursive: true }); + writeFileSync( + join(fixtureRoot, 'static', 'compliance', 'published-versions.json'), + JSON.stringify({ schema_version: 1, published_versions: PUBLISHED }), + ); + for (const version of BUNDLED) { + mkdirSync(join(fixtureRoot, 'dist', 'compliance', version), { recursive: true }); + writeFileSync(join(fixtureRoot, 'dist', 'compliance', version, 'index.json'), '{}'); + mkdirSync(join(fixtureRoot, 'dist', 'schemas', version, 'core'), { recursive: true }); + writeFileSync(join(fixtureRoot, 'dist', 'schemas', version, 'index.json'), '{}'); + } + vi.spyOn(process, 'cwd').mockReturnValue(fixtureRoot); + vi.resetModules(); + hosted = await import('../../src/services/hosted-compliance-version.js'); + }); + + afterAll(() => { + vi.restoreAllMocks(); + rmSync(fixtureRoot, { recursive: true, force: true }); + }); + + function refusal(requested: string): InstanceType { + try { + hosted.hostedComplianceTarget(requested); + } catch (error) { + expect(error).toBeInstanceOf(hosted.SupersededComplianceTargetError); + return error as InstanceType; + } + throw new Error(`${requested} was not refused`); + } + + it('refuses an exact pin by name, pointing at the GA line and the CDN copy', () => { + const error = refusal('3.3.0-beta.1'); + expect(error.code).toBe('superseded_compliance_target'); + expect(error.version).toBe('3.3.0-beta.1'); + expect(error.releaseLine).toBe('3.3'); + expect(error.message).toBe( + 'AdCP compliance target "3.3.0-beta.1" is a superseded prerelease: AdCP 3.3.0 has shipped, ' + + 'so 3.3.0-beta.1 is no longer graded on the hosted service. Use the GA line instead ' + + '(compliance_target "3.3"). The 3.3.0-beta.1 bundles are still published at ' + + 'https://adcontextprotocol.org/schemas/3.3.0-beta.1/ and ' + + 'https://adcontextprotocol.org/compliance/3.3.0-beta.1/.', + ); + expect(error.schemasUrl).toBe('https://adcontextprotocol.org/schemas/3.3.0-beta.1/'); + expect(error.complianceUrl).toBe('https://adcontextprotocol.org/compliance/3.3.0-beta.1/'); + }); + + it('refuses a wire-precision pin and keeps the requested spelling', () => { + const error = refusal('3.3-rc.2'); + expect(error.requested).toBe('3.3-rc.2'); + expect(error.version).toBe('3.3.0-rc.2'); + expect(error.message).toContain('"3.3-rc.2" (3.3.0-rc.2) is a superseded prerelease'); + expect(error.message).toContain('compliance_target "3.3"'); + }); + + it('refuses a channel alias whose newest checkpoint is gone rather than grading an older one', () => { + const error = refusal('3.3-beta'); + expect(error.version).toBe('3.3.0-beta.1'); + expect(error.message).toContain('"3.3-beta" (3.3.0-beta.1)'); + }); + + it('refuses the same pin on every path that loads hosted artifacts', () => { + expect(() => hosted.resolveHostedComplianceVersion('3.3.0-beta.1')) + .toThrow(hosted.SupersededComplianceTargetError); + const target = { requested: '3.3', version: '3.3.0', complianceDir: '', schemaRoot: '' }; + expect(() => hosted.withHostedTestOptions({ adcpVersion: '3.3.0-beta.1' }, target)) + .toThrow(hosted.SupersededComplianceTargetError); + expect(() => hosted.withHostedStoryboardRunOptions({ adcpVersion: '3.3-beta.1' }, target)) + .toThrow(hosted.SupersededComplianceTargetError); + }); + + it('keeps grading the GA line, a retained prerelease and a prerelease line with no GA yet', () => { + expect(hosted.hostedComplianceTarget('3.3').version).toBe('3.3.0'); + expect(hosted.hostedComplianceTarget('3.3-rc').version).toBe('3.3.0-rc.3'); + expect(hosted.hostedComplianceTarget('3.3.0-rc.3').version).toBe('3.3.0-rc.3'); + expect(hosted.hostedComplianceTarget('4.0-beta').version).toBe('4.0.0-beta.1'); + expect(hosted.isRetiredSupersededPrerelease('3.3.0-rc.3')).toBe(false); + expect(hosted.isRetiredSupersededPrerelease('4.0.0-beta.1')).toBe(false); + expect(hosted.isRetiredSupersededPrerelease('3.3.0')).toBe(false); + }); + + it('never refuses a prerelease whose GA has not been published, even if its bundle is missing', () => { + // Not superseded: a missing 4.0 prerelease is a broken build, not a retirement. + expect(hosted.isRetiredSupersededPrerelease('4.0.0-beta.2')).toBe(false); + }); + + it('leaves retired checkpoints out of automatic target selection', () => { + expect(hosted.hostedComplianceTargetPreference().map(target => target.requested)) + .not.toContain('3.3-beta'); + expect(hosted.selectHostedComplianceTargetForSupportedVersions(['3.3-beta.1']).requested).toBe('3.0'); + expect(hosted.selectHostedComplianceTargetForSupportedVersions(['3.3-rc.3']).version).toBe('3.3.0-rc.3'); + }); +}); diff --git a/server/tests/unit/registry-superseded-compliance-target-route.test.ts b/server/tests/unit/registry-superseded-compliance-target-route.test.ts new file mode 100644 index 00000000000..af2be5a6a0f --- /dev/null +++ b/server/tests/unit/registry-superseded-compliance-target-route.test.ts @@ -0,0 +1,85 @@ +import { describe, expect, it, vi } from 'vitest'; +import express from 'express'; +import request from 'supertest'; + +// The repository checkout carries every bundle, so stand in for the runtime +// image, which no longer carries the superseded 3.3.0-beta.1 tree. +vi.mock('../../src/services/hosted-compliance-version.js', async (importActual) => { + const actual = await importActual(); + return { + ...actual, + hostedComplianceTarget: (requested?: string) => { + if (requested === '3.3.0-beta.1' || requested === '3.3-beta') { + throw new actual.SupersededComplianceTargetError(requested, '3.3.0-beta.1'); + } + return actual.hostedComplianceTarget(requested); + }, + }; +}); + +import { createRegistryApiRouter, type RegistryApiConfig } from '../../src/routes/registry-api.js'; + +function buildApp(): express.Express { + const app = express(); + const passAuth: express.RequestHandler = (_req, _res, next) => next(); + const config = { + brandManager: {} as RegistryApiConfig['brandManager'], + brandDb: {} as RegistryApiConfig['brandDb'], + propertyDb: {} as RegistryApiConfig['propertyDb'], + adagentsManager: {} as RegistryApiConfig['adagentsManager'], + healthChecker: {} as RegistryApiConfig['healthChecker'], + crawler: {} as RegistryApiConfig['crawler'], + capabilityDiscovery: {} as RegistryApiConfig['capabilityDiscovery'], + registryRequestsDb: { + trackRequest: async () => {}, + markResolved: async () => true, + }, + requireAuth: passAuth, + optionalAuth: passAuth, + }; + app.use('/api', createRegistryApiRouter(config)); + return app; +} + +const SUPERSEDED_BODY = { + error: 'AdCP compliance target "3.3.0-beta.1" is a superseded prerelease: AdCP 3.3.0 has shipped, ' + + 'so 3.3.0-beta.1 is no longer graded on the hosted service. Use the GA line instead ' + + '(compliance_target "3.3"). The 3.3.0-beta.1 bundles are still published at ' + + 'https://adcontextprotocol.org/schemas/3.3.0-beta.1/ and ' + + 'https://adcontextprotocol.org/compliance/3.3.0-beta.1/.', + error_kind: 'superseded_compliance_target', + requested_compliance_target: '3.3.0-beta.1', + adcp_version: '3.3.0-beta.1', + ga_compliance_target: '3.3', + schemas_url: 'https://adcontextprotocol.org/schemas/3.3.0-beta.1/', + compliance_url: 'https://adcontextprotocol.org/compliance/3.3.0-beta.1/', +}; + +describe('storyboard catalog routes pinned to a superseded prerelease', () => { + const app = buildApp(); + + it.each([ + '/api/storyboards?compliance_target=3.3.0-beta.1', + '/api/storyboards/media_buy_seller?compliance_target=3.3.0-beta.1', + '/api/storyboards/media_buy_seller/first-step?compliance_target=3.3.0-beta.1', + ])('refuses %s by name with the GA line and CDN copy', async (path) => { + const response = await request(app).get(path); + expect(response.status).toBe(400); + expect(response.body).toEqual(SUPERSEDED_BODY); + }); + + it('names the alias the caller sent', async () => { + const response = await request(app).get('/api/storyboards?compliance_target=3.3-beta'); + expect(response.status).toBe(400); + expect(response.body.requested_compliance_target).toBe('3.3-beta'); + expect(response.body.error).toContain('"3.3-beta" (3.3.0-beta.1) is a superseded prerelease'); + }); + + it('keeps the generic refusal for a target that never existed', async () => { + const response = await request(app).get('/api/storyboards?compliance_target=3.1-latest'); + expect(response.status).toBe(400); + expect(response.body).toEqual({ + error: 'Invalid compliance_target. Use 3.3, 3.2, 3.1, 3.0, 3.3-rc, or an exact bundled version.', + }); + }); +}); diff --git a/tests/runtime-artifact-pruning.test.cjs b/tests/runtime-artifact-pruning.test.cjs index 1c19fc1c5f0..bb3a38f0dcd 100644 --- a/tests/runtime-artifact-pruning.test.cjs +++ b/tests/runtime-artifact-pruning.test.cjs @@ -10,6 +10,7 @@ const { const { tmpdir } = require("node:os"); const { join, resolve } = require("node:path"); const test = require("node:test"); +const semver = require("semver"); const { pruneRuntimeArtifacts, @@ -87,7 +88,7 @@ function fixture() { return root; } -test("runtime closure includes every published hosted compliance bundle and paired schema", () => { +test("runtime closure includes every hosted compliance bundle and paired schema", () => { const manifest = runtimeArtifactManifest(repoRoot); const published = JSON.parse( readFileSync(join(repoRoot, "static", "compliance", "published-versions.json")), @@ -95,6 +96,8 @@ test("runtime closure includes every published hosted compliance bundle and pair for (const version of published) { assert.ok(manifest.published.has(version), `missing compliance ${version}`); + assert.notEqual(manifest.hosted.has(version), manifest.superseded.has(version), version); + if (manifest.superseded.has(version)) continue; assert.ok(manifest.schemaVersions.has(version), `missing schema ${version}`); assert.ok(existsSync(join(repoRoot, "dist", "compliance", version, "index.json"))); assert.ok(existsSync(join(repoRoot, "dist", "schemas", version, "index.json"))); @@ -402,3 +405,133 @@ test("malformed offload inventory and missing sidecars fail before any pruning", assert.ok(existsSync(join(root, "dist", "protocol", "3.0.0.tgz"))); } finally { rmSync(root, { recursive: true, force: true }); } }); + +test("the repository keep set holds every GA, runtime anchor and 3.3.0-rc.3; only superseded prereleases leave", () => { + const manifest = runtimeArtifactManifest(repoRoot); + const schemaIndex = JSON.parse(readFileSync(join(repoRoot, "dist", "schemas", "index.json"))); + const aliasTargets = [ + ...Object.values(schemaIndex.aliases), + schemaIndex.latest, + schemaIndex.latest_stable, + ...Object.values(schemaIndex.latest_by_major ?? {}), + ...Object.values(schemaIndex.latest_by_minor ?? {}), + ]; + const mustKeep = new Set([ + ...[...manifest.published].filter((version) => semver.prerelease(version) === null), + ...aliasTargets, + ...manifest.docs, + ...manifest.trainingSchemas, + "3.3.0-rc.3", + ]); + for (const version of mustKeep) { + assert.ok(manifest.schemaVersions.has(version), `runtime schema closure dropped ${version}`); + assert.equal(manifest.superseded.has(version), false, `${version} must not be superseded`); + if (manifest.published.has(version)) assert.ok(manifest.hosted.has(version), `${version} must stay hosted`); + } + assert.ok(manifest.superseded.size > 0, "the 3.1 and 3.3 prereleases are superseded"); + for (const version of manifest.superseded) { + const parsed = semver.parse(version); + assert.ok(parsed.prerelease.length > 0, `${version} is not a prerelease`); + assert.ok(manifest.hosted.has(`${parsed.major}.${parsed.minor}.${parsed.patch}`), `${version} has no hosted GA`); + assert.equal(manifest.schemaVersions.has(version), false, `${version} must leave the runtime schemas`); + } +}); + +function writeSupersessionFixture() { + const root = fixture(); + // 3.1.0 has shipped. Its beta.2 is superseded with no anchor; rc.1 is a docs + // snapshot, rc.2 a schema alias target and beta.1 a training bundle. 3.1.0-rc.0 + // was never hosted but is superseded too. 4.0 has no GA yet, and 3.2.0 was + // never published, so neither prerelease line is superseded. + writeJson(join(root, "static", "compliance", "published-versions.json"), { + schema_version: 1, + published_versions: ["3.1.0", "3.1.0-beta.2", "3.1.0-rc.1", "3.1.0-rc.2", "3.1.1", "4.0.0-beta.1"], + }); + writeJson(join(root, "docs.json"), { + navigation: { + versions: [ + { version: "3.1", default: true, groups: ["dist/docs/3.1.2/intro"] }, + { version: "3.1 preview", groups: ["dist/docs/3.1.0-rc.1/intro"] }, + ], + }, + }); + mkdirSync(join(root, "dist", "docs", "3.1.0-rc.1"), { recursive: true }); + for (const version of ["3.1.0", "3.1.0-rc.1", "3.1.0-rc.2", "4.0.0-beta.1"]) { + writeArtifact(root, "schemas", version); + } + for (const version of ["3.1.0", "3.1.0-rc.0", "3.1.0-rc.1", "3.1.0-rc.2", "3.2.0-rc.5", "4.0.0-beta.1"]) { + writeArtifact(root, "compliance", version); + } + const indexPath = join(root, "dist", "schemas", "index.json"); + const index = JSON.parse(readFileSync(indexPath)); + index.aliases["v3.1-rc"] = "3.1.0-rc.2"; + index.versions.push( + { version: "3.1.0" }, { version: "3.1.0-rc.1" }, { version: "3.1.0-rc.2" }, { version: "4.0.0-beta.1" }, + ); + writeJson(indexPath, index); + return root; +} + +test("superseded prereleases leave the image; anchors, every GA and an unshipped line stay", () => { + const root = writeSupersessionFixture(); + try { + const result = pruneRuntimeArtifacts(root); + assert.deepEqual([...result.manifest.superseded], ["3.1.0-beta.2"]); + assert.deepEqual(result.schemasRemoved, ["3.1.0-beta.2"]); + assert.deepEqual(result.complianceRemoved, ["3.1.0-beta.2", "3.1.0-rc.0"]); + for (const version of ["3.1.0", "3.1.0-beta.1", "3.1.0-rc.1", "3.1.0-rc.2", "3.1.1", "3.1.2", "4.0.0-beta.1"]) { + assert.ok(existsSync(join(root, "dist", "schemas", version, "index.json")), `schema ${version}`); + } + for (const version of ["3.1.0", "3.1.0-rc.1", "3.1.0-rc.2", "3.1.1", "3.1.2", "3.2.0-rc.5", "4.0.0-beta.1"]) { + assert.ok(existsSync(join(root, "dist", "compliance", version, "index.json")), `compliance ${version}`); + } + for (const kind of ["schemas", "compliance"]) { + assert.equal(existsSync(join(root, "dist", kind, "3.1.0-beta.2")), false, `${kind} 3.1.0-beta.2`); + } + assert.equal(existsSync(join(root, "dist", "compliance", "3.1.0-rc.0")), false); + assert.ok(!JSON.parse(readFileSync(join(root, "dist", "schemas", "index.json"))).versions + .some((entry) => entry.version === "3.1.0-beta.2")); + } finally { rmSync(root, { recursive: true, force: true }); } +}); + +test("a future GA retires its prerelease line only once its own trees are in place", () => { + const root = writeSupersessionFixture(); + try { + const manifestPath = join(root, "static", "compliance", "published-versions.json"); + const manifest = JSON.parse(readFileSync(manifestPath)); + manifest.published_versions.push("4.0.0"); + writeJson(manifestPath, manifest); + // 4.0.0 registered without its bundles: fail before pruning 4.0.0-beta.1. + assert.throws(() => pruneRuntimeArtifacts(root), /Required runtime artifact is missing: .*4\.0\.0\//); + for (const kind of ["schemas", "compliance"]) { + assert.ok(existsSync(join(root, "dist", kind, "4.0.0-beta.1", "index.json"))); + } + + writeArtifact(root, "schemas", "4.0.0"); + writeArtifact(root, "compliance", "4.0.0"); + const indexPath = join(root, "dist", "schemas", "index.json"); + const index = JSON.parse(readFileSync(indexPath)); + index.versions.push({ version: "4.0.0" }); + writeJson(indexPath, index); + const result = pruneRuntimeArtifacts(root); + assert.deepEqual([...result.manifest.superseded].sort(), ["3.1.0-beta.2", "4.0.0-beta.1"]); + assert.ok(existsSync(join(root, "dist", "schemas", "4.0.0", "index.json"))); + assert.ok(existsSync(join(root, "dist", "compliance", "4.0.0", "index.json"))); + for (const kind of ["schemas", "compliance"]) { + assert.equal(existsSync(join(root, "dist", kind, "4.0.0-beta.1")), false); + } + } finally { rmSync(root, { recursive: true, force: true }); } +}); + +test("an anchored superseded prerelease stays hosted with both of its trees", () => { + const root = writeSupersessionFixture(); + try { + const manifest = runtimeArtifactManifest(root); + for (const version of ["3.1.0-rc.1", "3.1.0-rc.2"]) { + assert.ok(manifest.hosted.has(version), `${version} must stay hosted`); + assert.equal(manifest.superseded.has(version), false); + } + rmSync(join(root, "dist", "compliance", "3.1.0-rc.2"), { recursive: true }); + assert.throws(() => verifyRequiredArtifacts(root), /dist\/compliance\/3\.1\.0-rc\.2\/index\.json/); + } finally { rmSync(root, { recursive: true, force: true }); } +}); From 728304dab9b5d9defb8a163c8b42d0f0d64dd378 Mon Sep 17 00:00:00 2001 From: Brian O'Kelley Date: Sun, 6 Dec 2026 17:44:58 +0000 Subject: [PATCH 2/2] fix(runtime): keep the creative 3.3 sandbox bundle and address review The frozen creative 3.3 sandbox validates against dist/schemas/3.3.0-beta.1, which the first round classed as superseded. Its first request in the image would throw, and every later request too. - prune-runtime-artifacts imports CREATIVE33_SCHEMA_VERSION and any configured TRAINING_AGENT_HOSTED_PREVIEW bundle from the TypeScript source, the way it imports RETAINED_SCHEMA_BUNDLES, and anchors them. The router's bundle constant now reads the catalog's. - verify-training-agent-runtime-assets resolves the creative 3.3 tree, so the final image fails to build without it. - A new pruning test finds every resolveRetainedSchemaRoot call site in server/src, imports the constants they read, and requires each one to stay in the runtime closure. - Runs recorded against a dropped prerelease read step metadata from their GA release's bundle through hostedComplianceOptionsForRecordedVersion, in compliance-testing, storyboard-skip-details and v4-readiness. - Addie tool descriptions and the OpenAPI compliance_target descriptions stop suggesting 3.3-beta. The three storyboard catalog routes document the 400 ComplianceTargetRejection body. The OpenAPI spec, the Addie tool-surface inventory and its reviewed profile hash are regenerated. Co-Authored-By: Claude Opus 5.5 --- scripts/addie-tool-surface-budget.json | 2 +- scripts/prune-runtime-artifacts.cjs | 32 ++- .../tool-surface-inventory.generated.json | 218 +++++++++--------- server/src/addie/mcp/member-tools.ts | 10 +- .../src/addie/services/compliance-testing.ts | 3 +- .../src/compliance/storyboard-skip-details.ts | 4 +- server/src/compliance/v4-readiness.ts | 4 +- server/src/routes/registry-api.ts | 26 ++- .../verify-training-agent-runtime-assets.ts | 14 ++ .../src/services/hosted-compliance-version.ts | 19 ++ .../src/training-agent/creative33/catalog.ts | 5 + .../src/training-agent/creative33/router.ts | 10 +- ...d-compliance-superseded-prerelease.test.ts | 13 ++ static/openapi/registry.yaml | 62 ++++- tests/runtime-artifact-pruning.test.cjs | 104 +++++++++ 15 files changed, 388 insertions(+), 138 deletions(-) diff --git a/scripts/addie-tool-surface-budget.json b/scripts/addie-tool-surface-budget.json index 60712331902..7a6f4005a3b 100644 --- a/scripts/addie-tool-surface-budget.json +++ b/scripts/addie-tool-surface-budget.json @@ -1,7 +1,7 @@ { "schema_version": 4, "profile_ids_sha256": "5c4b3378b3d01fbcf75aeb0a40a6b83f460060fbc3e7ec37dc8444647d804faa", - "profile_contract_sha256": "f5b6ce9565dc7bf027ee95d7fc2e962e2440d0bcf3a419a0aadae880dffcb1a4", + "profile_contract_sha256": "a3c7e11fc7c588c3ba0f1a1596a0e1a069a051a494034b9753ab6c8d1ecc42a0", "baseline": { "id": "2026-08-26-pre-domain-consolidation", "metrics": { diff --git a/scripts/prune-runtime-artifacts.cjs b/scripts/prune-runtime-artifacts.cjs index f94de9221cd..9227b025141 100644 --- a/scripts/prune-runtime-artifacts.cjs +++ b/scripts/prune-runtime-artifacts.cjs @@ -194,6 +194,26 @@ function retainedTrainingSchemaVersions(repoRoot) { return versions; } +// Other exact-version schema trees the runtime resolves through +// resolveRetainedSchemaRoot(): the frozen AdCP 3.3 creative sandbox and, when +// one is configured, the training agent's hosted preview. Imported from the +// same TypeScript constants the server reads. +function runtimeSandboxSchemaVersions(repoRoot) { + const { require: requireTypeScript } = require("tsx/cjs/api"); + const agentRoot = join(repoRoot, "server", "src", "training-agent"); + const catalogPath = join(agentRoot, "creative33", "catalog.ts"); + const previewPath = join(agentRoot, "candidate-version.ts"); + const { CREATIVE33_SCHEMA_VERSION: creative33 } = requireTypeScript(catalogPath, __filename); + const previewModule = requireTypeScript(previewPath, __filename); + if (!Object.hasOwn(previewModule, "TRAINING_AGENT_HOSTED_PREVIEW")) { + throw new Error(`${previewPath} must export TRAINING_AGENT_HOSTED_PREVIEW`); + } + const preview = previewModule.TRAINING_AGENT_HOSTED_PREVIEW; + const versions = new Set([assertVersion(creative33, catalogPath)]); + if (preview !== undefined) versions.add(assertVersion(preview?.bundle, previewPath)); + return versions; +} + function publishedComplianceVersions(repoRoot) { const manifestPath = join( repoRoot, @@ -277,11 +297,13 @@ function runtimeArtifactManifest(repoRoot = resolve(__dirname, "..")) { const docs = docsSnapshotVersions(repoRoot); const schemaAliases = schemaDiscoveryAliasTargets(repoRoot); const trainingSchemas = retainedTrainingSchemaVersions(repoRoot); + const sandboxSchemas = runtimeSandboxSchemaVersions(repoRoot); // Every tree the runtime reads by exact version, whatever its release - // state: docs snapshots, schema discovery alias targets and the training - // agent's retained bundles. A superseded prerelease named here keeps both - // its schema and its compliance tree and stays hosted. - const anchors = new Set([...docs, ...schemaAliases, ...trainingSchemas]); + // state: docs snapshots, schema discovery alias targets, the training + // agent's retained bundles, the creative 3.3 sandbox and any hosted preview. + // A superseded prerelease named here keeps both its schema and its + // compliance tree and stays hosted. + const anchors = new Set([...docs, ...schemaAliases, ...trainingSchemas, ...sandboxSchemas]); const superseded = supersededRuntimeVersions(published, published, anchors); const hosted = new Set([...published].filter((version) => !superseded.has(version))); @@ -292,6 +314,7 @@ function runtimeArtifactManifest(repoRoot = resolve(__dirname, "..")) { docs, schemaAliases, trainingSchemas, + sandboxSchemas, anchors, schemaVersions: new Set([...hosted, ...anchors]), }; @@ -478,6 +501,7 @@ module.exports = { pruneRuntimeArtifacts, retainedTrainingSchemaVersions, runtimeArtifactManifest, + runtimeSandboxSchemaVersions, verifyPrunedTree, verifyRequiredArtifacts, protocolOffloadCandidates, diff --git a/server/src/addie/generated/tool-surface-inventory.generated.json b/server/src/addie/generated/tool-surface-inventory.generated.json index e2cfe0e7433..108ce9845aa 100644 --- a/server/src/addie/generated/tool-surface-inventory.generated.json +++ b/server/src/addie/generated/tool-surface-inventory.generated.json @@ -365,7 +365,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 35099, + "wire_schema_bytes": 35086, "tool_reference_bytes": 10413, "tool_reference_sha256": "5dd5d324afda23ec07ad43c8be34d029720f417e81f4caae1aefa2f3da868377", "overridden_tool_count": 1, @@ -405,7 +405,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "73abab5089ccb852acc97e2fb69990e5e9f4ac728f5bde8a45e3ea111e80243c", - "wire_schema_sha256": "c3df2815c7098441a1d5f51f2856f395fd63ebd8ead98eba2b54cf1c1815b451", + "wire_schema_sha256": "9fe5be4178c4d492a0489fe3de140950a24da33e4be5adfad46309eb66c78b1b", "target_exception_category": "bounded_multi_domain_plan" }, { @@ -601,7 +601,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 32806, + "wire_schema_bytes": 32793, "tool_reference_bytes": 10345, "tool_reference_sha256": "ac5a6aa8355228d26ad1a9a443f94a528fafa857da3ca05098c34234d1d7f202", "overridden_tool_count": 1, @@ -639,7 +639,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "df467c098799dcca23efc3b2f2c2ee195f182324f30d9940d353362b39bbaee0", - "wire_schema_sha256": "c3e3b1efbcc79715996c8c76b0ee5eb836923439e3c81305c57c1ff7dd47983e", + "wire_schema_sha256": "9b031858cf0cd0afb22c8c1d9c97fdcec92848db2c9afbe6eb8820c72fd27727", "target_exception_category": "bounded_multi_domain_plan" }, { @@ -833,7 +833,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 32333, + "wire_schema_bytes": 32320, "tool_reference_bytes": 10327, "tool_reference_sha256": "35f6b70e5f6f60a214f5ddcbbd8da0d57b03755733024870833db594f4a8ca69", "overridden_tool_count": 1, @@ -870,7 +870,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "a42710087f34067b1b24becd7853d7f300b42dc72c08fff32fb6cdf385540548", - "wire_schema_sha256": "077d3ce2cb8da2f72cede3e0e23abb9d39d76a8f3626d100f58ad9c81a5c81ba", + "wire_schema_sha256": "7fa1a42caf37414712eee33afe2aac2b5ab231dfbdf1e649956415a043b51951", "target_exception_category": "bounded_multi_domain_plan" }, { @@ -1064,7 +1064,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 32333, + "wire_schema_bytes": 32320, "tool_reference_bytes": 10327, "tool_reference_sha256": "35f6b70e5f6f60a214f5ddcbbd8da0d57b03755733024870833db594f4a8ca69", "overridden_tool_count": 1, @@ -1101,7 +1101,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "a42710087f34067b1b24becd7853d7f300b42dc72c08fff32fb6cdf385540548", - "wire_schema_sha256": "077d3ce2cb8da2f72cede3e0e23abb9d39d76a8f3626d100f58ad9c81a5c81ba", + "wire_schema_sha256": "7fa1a42caf37414712eee33afe2aac2b5ab231dfbdf1e649956415a043b51951", "target_exception_category": "bounded_multi_domain_plan" }, { @@ -1514,7 +1514,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 35099, + "wire_schema_bytes": 35086, "tool_reference_bytes": 10413, "tool_reference_sha256": "5dd5d324afda23ec07ad43c8be34d029720f417e81f4caae1aefa2f3da868377", "overridden_tool_count": 1, @@ -1554,7 +1554,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "73abab5089ccb852acc97e2fb69990e5e9f4ac728f5bde8a45e3ea111e80243c", - "wire_schema_sha256": "c3df2815c7098441a1d5f51f2856f395fd63ebd8ead98eba2b54cf1c1815b451", + "wire_schema_sha256": "9fe5be4178c4d492a0489fe3de140950a24da33e4be5adfad46309eb66c78b1b", "target_exception_category": "bounded_multi_domain_plan" }, { @@ -2542,7 +2542,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 19764, + "wire_schema_bytes": 19751, "tool_reference_bytes": 6636, "tool_reference_sha256": "d02b3eff67be7a38f952ebe0196ddb996dc932aa9e501167b0b1d71e454da1e4", "overridden_tool_count": 1, @@ -2568,7 +2568,7 @@ "validate_adagents" ], "ordered_tool_names_sha256": "85c84ea52a5aa43067389e7e17605be6a93ddcf1ba596f619729779fccbe10bc", - "wire_schema_sha256": "5a531af087a880e6ef86b77d5cced573ddc41da6617e1d3c4999b676edd024e9", + "wire_schema_sha256": "501ca79e3802b746971aa20232d49bef7da9ca2900553eb31e0adc959bd2a0f2", "target_exception_category": "explicit_multi_step_workflow" }, { @@ -2637,7 +2637,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 14601, + "wire_schema_bytes": 14588, "tool_reference_bytes": 6139, "tool_reference_sha256": "ecf8f60600a263d6a3120321ab1f65e138a08b082a96153eed01d1968552a91f", "overridden_tool_count": 0, @@ -2656,7 +2656,7 @@ "resolve_escalation" ], "ordered_tool_names_sha256": "f527be89fee5e5536b0b51b8c6c72924fbb8d3d9f3fee080986890437ae83065", - "wire_schema_sha256": "749210caf1e34750da098c47f9c3d17390257b29b93e0f2a56a722d8a4320005" + "wire_schema_sha256": "4c8ff20c487589b786ca561ab0e04a3c27a2e1693f7fecf4ba5d49ecb52ea2d5" }, { "id": "slack_bolt:admin_dm:routed:agent_registry", @@ -2725,7 +2725,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 12367, + "wire_schema_bytes": 12311, "tool_reference_bytes": 4875, "tool_reference_sha256": "fb29689bce177518a1e5750ff2039182242b5b31fd2edb6ec226b91c2da62f37", "overridden_tool_count": 0, @@ -2745,7 +2745,7 @@ "resolve_escalation" ], "ordered_tool_names_sha256": "c69fbb0a7e8b043c0dc67ab5ccee3ef54989aaf7b9c125d831f0b8886a6ed99f", - "wire_schema_sha256": "51a69500e0661f0542d4c1bd00fd58cdc7a33f54e3d90afad5e2032b5f139f61" + "wire_schema_sha256": "cdb66be1b003077207da42b53fde91a607ed9cc6eb4f4c58166dde9968690564" }, { "id": "slack_bolt:admin_dm:routed:brand_registry_identity", @@ -5648,7 +5648,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 19764, + "wire_schema_bytes": 19751, "tool_reference_bytes": 6636, "tool_reference_sha256": "d02b3eff67be7a38f952ebe0196ddb996dc932aa9e501167b0b1d71e454da1e4", "overridden_tool_count": 1, @@ -5674,7 +5674,7 @@ "validate_adagents" ], "ordered_tool_names_sha256": "85c84ea52a5aa43067389e7e17605be6a93ddcf1ba596f619729779fccbe10bc", - "wire_schema_sha256": "5a531af087a880e6ef86b77d5cced573ddc41da6617e1d3c4999b676edd024e9", + "wire_schema_sha256": "501ca79e3802b746971aa20232d49bef7da9ca2900553eb31e0adc959bd2a0f2", "target_exception_category": "explicit_multi_step_workflow" }, { @@ -5743,7 +5743,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 14601, + "wire_schema_bytes": 14588, "tool_reference_bytes": 6139, "tool_reference_sha256": "ecf8f60600a263d6a3120321ab1f65e138a08b082a96153eed01d1968552a91f", "overridden_tool_count": 0, @@ -5762,7 +5762,7 @@ "resolve_escalation" ], "ordered_tool_names_sha256": "f527be89fee5e5536b0b51b8c6c72924fbb8d3d9f3fee080986890437ae83065", - "wire_schema_sha256": "749210caf1e34750da098c47f9c3d17390257b29b93e0f2a56a722d8a4320005" + "wire_schema_sha256": "4c8ff20c487589b786ca561ab0e04a3c27a2e1693f7fecf4ba5d49ecb52ea2d5" }, { "id": "slack_bolt:admin_working_group:agent_registry", @@ -5831,7 +5831,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 12367, + "wire_schema_bytes": 12311, "tool_reference_bytes": 4875, "tool_reference_sha256": "fb29689bce177518a1e5750ff2039182242b5b31fd2edb6ec226b91c2da62f37", "overridden_tool_count": 0, @@ -5851,7 +5851,7 @@ "resolve_escalation" ], "ordered_tool_names_sha256": "c69fbb0a7e8b043c0dc67ab5ccee3ef54989aaf7b9c125d831f0b8886a6ed99f", - "wire_schema_sha256": "51a69500e0661f0542d4c1bd00fd58cdc7a33f54e3d90afad5e2032b5f139f61" + "wire_schema_sha256": "cdb66be1b003077207da42b53fde91a607ed9cc6eb4f4c58166dde9968690564" }, { "id": "slack_bolt:admin_working_group:all_valid_sets_maximum", @@ -5943,7 +5943,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 176977, + "wire_schema_bytes": 176908, "tool_reference_bytes": 40379, "tool_reference_sha256": "e29d9ad879206c971e260e8e9b2d5d622e22a6912c64b971d63b695a847a4c89", "overridden_tool_count": 11, @@ -6174,7 +6174,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "ffd97c28755c02acca5bd0e8b405d6cc8d6543c91e5d002bf5725aab1deb7c86", - "wire_schema_sha256": "e584ee645d4138bc067e853352c11e0ef3dfba0963eb302b7bf536dbcb6d9e81", + "wire_schema_sha256": "ae4f7a6bc513398a6e1ad2f709452052f0023bc7a1a32fb84170fbfc861ffa0e", "target_exception_category": "synthetic_all_sets_maximum" }, { @@ -8455,7 +8455,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 32806, + "wire_schema_bytes": 32793, "tool_reference_bytes": 10345, "tool_reference_sha256": "ac5a6aa8355228d26ad1a9a443f94a528fafa857da3ca05098c34234d1d7f202", "overridden_tool_count": 1, @@ -8493,7 +8493,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "df467c098799dcca23efc3b2f2c2ee195f182324f30d9940d353362b39bbaee0", - "wire_schema_sha256": "c3e3b1efbcc79715996c8c76b0ee5eb836923439e3c81305c57c1ff7dd47983e", + "wire_schema_sha256": "9b031858cf0cd0afb22c8c1d9c97fdcec92848db2c9afbe6eb8820c72fd27727", "target_exception_category": "bounded_multi_domain_plan" }, { @@ -8682,7 +8682,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 17471, + "wire_schema_bytes": 17458, "tool_reference_bytes": 6568, "tool_reference_sha256": "724c570df0c1afbfc5474f247fa2d289e56582171e19ca033a263bf4a38a8591", "overridden_tool_count": 1, @@ -8706,7 +8706,7 @@ "validate_adagents" ], "ordered_tool_names_sha256": "01a4e47a1d56a06a49d88c67cef7541d40b7a79d196a034be57130c9182aec3a", - "wire_schema_sha256": "2849be6a3e65392948fb3f4ff07e12e10fe3611fc58318853916b9ae29748cef", + "wire_schema_sha256": "b91226d23ed4092cccebc6876c108ac1b66e2b77b9ff4e015a4dd6e6fb02dede", "target_exception_category": "explicit_multi_step_workflow" }, { @@ -8773,7 +8773,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 12308, + "wire_schema_bytes": 12295, "tool_reference_bytes": 6071, "tool_reference_sha256": "815eb22df22b1d8f37c869018b9c5e49c83178001b26f1e7523ce09aec7b230e", "overridden_tool_count": 0, @@ -8790,7 +8790,7 @@ "capture_learning" ], "ordered_tool_names_sha256": "32ee638aa5b9177bbea802803498f87f715d059b195e4d0492e56312ff6c9cbe", - "wire_schema_sha256": "e9dbc6a7c353f138f219094f030e3864ffef38d61c1f3727c020b38a1191a76c" + "wire_schema_sha256": "bc8b0bea1ad77c16c0df4efc69bd724c255edd88e45ee64ebf146f56cc42fabc" }, { "id": "slack_bolt:member_dm:routed:agent_registry", @@ -8857,7 +8857,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 10074, + "wire_schema_bytes": 10018, "tool_reference_bytes": 4807, "tool_reference_sha256": "e5b7a9892d965bbf6348824c60b4e8e5ccdf41b0a7f786a62841b8eb992e9080", "overridden_tool_count": 0, @@ -8875,7 +8875,7 @@ "capture_learning" ], "ordered_tool_names_sha256": "d88e4e8ce593613f4fe94c03b7f8a9b27cb2ff52e20d060877af7f46930f3ab6", - "wire_schema_sha256": "50b15bf409447c9b21604c6b276ea80268a1ae06d49e62cbc5e739bb9c8755e9" + "wire_schema_sha256": "2cb919d2e66a94cf92157049d2bb8fcd59a389a0687d294f634d3a5ff5e660c9" }, { "id": "slack_bolt:member_dm:routed:brand_registry_identity", @@ -11611,7 +11611,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 19764, + "wire_schema_bytes": 19751, "tool_reference_bytes": 6636, "tool_reference_sha256": "d02b3eff67be7a38f952ebe0196ddb996dc932aa9e501167b0b1d71e454da1e4", "overridden_tool_count": 1, @@ -11637,7 +11637,7 @@ "validate_adagents" ], "ordered_tool_names_sha256": "85c84ea52a5aa43067389e7e17605be6a93ddcf1ba596f619729779fccbe10bc", - "wire_schema_sha256": "5a531af087a880e6ef86b77d5cced573ddc41da6617e1d3c4999b676edd024e9", + "wire_schema_sha256": "501ca79e3802b746971aa20232d49bef7da9ca2900553eb31e0adc959bd2a0f2", "target_exception_category": "explicit_multi_step_workflow" }, { @@ -11706,7 +11706,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 14601, + "wire_schema_bytes": 14588, "tool_reference_bytes": 6139, "tool_reference_sha256": "ecf8f60600a263d6a3120321ab1f65e138a08b082a96153eed01d1968552a91f", "overridden_tool_count": 0, @@ -11725,7 +11725,7 @@ "resolve_escalation" ], "ordered_tool_names_sha256": "f527be89fee5e5536b0b51b8c6c72924fbb8d3d9f3fee080986890437ae83065", - "wire_schema_sha256": "749210caf1e34750da098c47f9c3d17390257b29b93e0f2a56a722d8a4320005" + "wire_schema_sha256": "4c8ff20c487589b786ca561ab0e04a3c27a2e1693f7fecf4ba5d49ecb52ea2d5" }, { "id": "slack_bolt:private_channel_admin:agent_registry", @@ -11794,7 +11794,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 12367, + "wire_schema_bytes": 12311, "tool_reference_bytes": 4875, "tool_reference_sha256": "fb29689bce177518a1e5750ff2039182242b5b31fd2edb6ec226b91c2da62f37", "overridden_tool_count": 0, @@ -11814,7 +11814,7 @@ "resolve_escalation" ], "ordered_tool_names_sha256": "c69fbb0a7e8b043c0dc67ab5ccee3ef54989aaf7b9c125d831f0b8886a6ed99f", - "wire_schema_sha256": "51a69500e0661f0542d4c1bd00fd58cdc7a33f54e3d90afad5e2032b5f139f61" + "wire_schema_sha256": "cdb66be1b003077207da42b53fde91a607ed9cc6eb4f4c58166dde9968690564" }, { "id": "slack_bolt:private_channel_admin:all_valid_sets_maximum", @@ -11906,7 +11906,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 176977, + "wire_schema_bytes": 176908, "tool_reference_bytes": 40379, "tool_reference_sha256": "e29d9ad879206c971e260e8e9b2d5d622e22a6912c64b971d63b695a847a4c89", "overridden_tool_count": 11, @@ -12137,7 +12137,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "ffd97c28755c02acca5bd0e8b405d6cc8d6543c91e5d002bf5725aab1deb7c86", - "wire_schema_sha256": "e584ee645d4138bc067e853352c11e0ef3dfba0963eb302b7bf536dbcb6d9e81", + "wire_schema_sha256": "ae4f7a6bc513398a6e1ad2f709452052f0023bc7a1a32fb84170fbfc861ffa0e", "target_exception_category": "synthetic_all_sets_maximum" }, { @@ -14250,7 +14250,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 17471, + "wire_schema_bytes": 17458, "tool_reference_bytes": 6568, "tool_reference_sha256": "724c570df0c1afbfc5474f247fa2d289e56582171e19ca033a263bf4a38a8591", "overridden_tool_count": 1, @@ -14274,7 +14274,7 @@ "validate_adagents" ], "ordered_tool_names_sha256": "01a4e47a1d56a06a49d88c67cef7541d40b7a79d196a034be57130c9182aec3a", - "wire_schema_sha256": "2849be6a3e65392948fb3f4ff07e12e10fe3611fc58318853916b9ae29748cef", + "wire_schema_sha256": "b91226d23ed4092cccebc6876c108ac1b66e2b77b9ff4e015a4dd6e6fb02dede", "target_exception_category": "explicit_multi_step_workflow" }, { @@ -14341,7 +14341,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 12308, + "wire_schema_bytes": 12295, "tool_reference_bytes": 6071, "tool_reference_sha256": "815eb22df22b1d8f37c869018b9c5e49c83178001b26f1e7523ce09aec7b230e", "overridden_tool_count": 0, @@ -14358,7 +14358,7 @@ "capture_learning" ], "ordered_tool_names_sha256": "32ee638aa5b9177bbea802803498f87f715d059b195e4d0492e56312ff6c9cbe", - "wire_schema_sha256": "e9dbc6a7c353f138f219094f030e3864ffef38d61c1f3727c020b38a1191a76c" + "wire_schema_sha256": "bc8b0bea1ad77c16c0df4efc69bd724c255edd88e45ee64ebf146f56cc42fabc" }, { "id": "slack_bolt:private_channel_member:agent_registry", @@ -14425,7 +14425,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 10074, + "wire_schema_bytes": 10018, "tool_reference_bytes": 4807, "tool_reference_sha256": "e5b7a9892d965bbf6348824c60b4e8e5ccdf41b0a7f786a62841b8eb992e9080", "overridden_tool_count": 0, @@ -14443,7 +14443,7 @@ "capture_learning" ], "ordered_tool_names_sha256": "d88e4e8ce593613f4fe94c03b7f8a9b27cb2ff52e20d060877af7f46930f3ab6", - "wire_schema_sha256": "50b15bf409447c9b21604c6b276ea80268a1ae06d49e62cbc5e739bb9c8755e9" + "wire_schema_sha256": "2cb919d2e66a94cf92157049d2bb8fcd59a389a0687d294f634d3a5ff5e660c9" }, { "id": "slack_bolt:private_channel_member:all_valid_sets_maximum", @@ -14515,7 +14515,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 134537, + "wire_schema_bytes": 134468, "tool_reference_bytes": 35731, "tool_reference_sha256": "86f1bdcae1b000fdd32f5bbcf1d21c55c5edaee1cf9ff9483f7e65641e4d68c7", "overridden_tool_count": 11, @@ -14680,7 +14680,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "9052b3eed416dc212756329cd4b31b2b0a90da22fc8eb6d93b45923df728e62a", - "wire_schema_sha256": "7fbedaeb9b239e9cbc57c6a592079611808ec1c6370f1e9c409ff7b9695147d8", + "wire_schema_sha256": "3e488dd7bab6087a5f4ef992e5ca8cd8232aeb1ee799c92c24a3b0573e319907", "target_exception_category": "synthetic_all_sets_maximum" }, { @@ -16595,7 +16595,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 35099, + "wire_schema_bytes": 35086, "tool_reference_bytes": 10413, "tool_reference_sha256": "5dd5d324afda23ec07ad43c8be34d029720f417e81f4caae1aefa2f3da868377", "overridden_tool_count": 1, @@ -16635,7 +16635,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "73abab5089ccb852acc97e2fb69990e5e9f4ac728f5bde8a45e3ea111e80243c", - "wire_schema_sha256": "c3df2815c7098441a1d5f51f2856f395fd63ebd8ead98eba2b54cf1c1815b451", + "wire_schema_sha256": "9fe5be4178c4d492a0489fe3de140950a24da33e4be5adfad46309eb66c78b1b", "target_exception_category": "bounded_multi_domain_plan" }, { @@ -17623,7 +17623,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 19764, + "wire_schema_bytes": 19751, "tool_reference_bytes": 6636, "tool_reference_sha256": "d02b3eff67be7a38f952ebe0196ddb996dc932aa9e501167b0b1d71e454da1e4", "overridden_tool_count": 1, @@ -17649,7 +17649,7 @@ "validate_adagents" ], "ordered_tool_names_sha256": "85c84ea52a5aa43067389e7e17605be6a93ddcf1ba596f619729779fccbe10bc", - "wire_schema_sha256": "5a531af087a880e6ef86b77d5cced573ddc41da6617e1d3c4999b676edd024e9", + "wire_schema_sha256": "501ca79e3802b746971aa20232d49bef7da9ca2900553eb31e0adc959bd2a0f2", "target_exception_category": "explicit_multi_step_workflow" }, { @@ -17718,7 +17718,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 14601, + "wire_schema_bytes": 14588, "tool_reference_bytes": 6139, "tool_reference_sha256": "ecf8f60600a263d6a3120321ab1f65e138a08b082a96153eed01d1968552a91f", "overridden_tool_count": 0, @@ -17737,7 +17737,7 @@ "resolve_escalation" ], "ordered_tool_names_sha256": "f527be89fee5e5536b0b51b8c6c72924fbb8d3d9f3fee080986890437ae83065", - "wire_schema_sha256": "749210caf1e34750da098c47f9c3d17390257b29b93e0f2a56a722d8a4320005" + "wire_schema_sha256": "4c8ff20c487589b786ca561ab0e04a3c27a2e1693f7fecf4ba5d49ecb52ea2d5" }, { "id": "slack_bolt:private_mention_admin:routed:agent_registry", @@ -17806,7 +17806,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 12367, + "wire_schema_bytes": 12311, "tool_reference_bytes": 4875, "tool_reference_sha256": "fb29689bce177518a1e5750ff2039182242b5b31fd2edb6ec226b91c2da62f37", "overridden_tool_count": 0, @@ -17826,7 +17826,7 @@ "resolve_escalation" ], "ordered_tool_names_sha256": "c69fbb0a7e8b043c0dc67ab5ccee3ef54989aaf7b9c125d831f0b8886a6ed99f", - "wire_schema_sha256": "51a69500e0661f0542d4c1bd00fd58cdc7a33f54e3d90afad5e2032b5f139f61" + "wire_schema_sha256": "cdb66be1b003077207da42b53fde91a607ed9cc6eb4f4c58166dde9968690564" }, { "id": "slack_bolt:private_mention_admin:routed:brand_registry_identity", @@ -19897,7 +19897,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 32806, + "wire_schema_bytes": 32793, "tool_reference_bytes": 10345, "tool_reference_sha256": "ac5a6aa8355228d26ad1a9a443f94a528fafa857da3ca05098c34234d1d7f202", "overridden_tool_count": 1, @@ -19935,7 +19935,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "df467c098799dcca23efc3b2f2c2ee195f182324f30d9940d353362b39bbaee0", - "wire_schema_sha256": "c3e3b1efbcc79715996c8c76b0ee5eb836923439e3c81305c57c1ff7dd47983e", + "wire_schema_sha256": "9b031858cf0cd0afb22c8c1d9c97fdcec92848db2c9afbe6eb8820c72fd27727", "target_exception_category": "bounded_multi_domain_plan" }, { @@ -20124,7 +20124,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 17471, + "wire_schema_bytes": 17458, "tool_reference_bytes": 6568, "tool_reference_sha256": "724c570df0c1afbfc5474f247fa2d289e56582171e19ca033a263bf4a38a8591", "overridden_tool_count": 1, @@ -20148,7 +20148,7 @@ "validate_adagents" ], "ordered_tool_names_sha256": "01a4e47a1d56a06a49d88c67cef7541d40b7a79d196a034be57130c9182aec3a", - "wire_schema_sha256": "2849be6a3e65392948fb3f4ff07e12e10fe3611fc58318853916b9ae29748cef", + "wire_schema_sha256": "b91226d23ed4092cccebc6876c108ac1b66e2b77b9ff4e015a4dd6e6fb02dede", "target_exception_category": "explicit_multi_step_workflow" }, { @@ -20215,7 +20215,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 12308, + "wire_schema_bytes": 12295, "tool_reference_bytes": 6071, "tool_reference_sha256": "815eb22df22b1d8f37c869018b9c5e49c83178001b26f1e7523ce09aec7b230e", "overridden_tool_count": 0, @@ -20232,7 +20232,7 @@ "capture_learning" ], "ordered_tool_names_sha256": "32ee638aa5b9177bbea802803498f87f715d059b195e4d0492e56312ff6c9cbe", - "wire_schema_sha256": "e9dbc6a7c353f138f219094f030e3864ffef38d61c1f3727c020b38a1191a76c" + "wire_schema_sha256": "bc8b0bea1ad77c16c0df4efc69bd724c255edd88e45ee64ebf146f56cc42fabc" }, { "id": "slack_bolt:private_mention_member:routed:agent_registry", @@ -20299,7 +20299,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 10074, + "wire_schema_bytes": 10018, "tool_reference_bytes": 4807, "tool_reference_sha256": "e5b7a9892d965bbf6348824c60b4e8e5ccdf41b0a7f786a62841b8eb992e9080", "overridden_tool_count": 0, @@ -20317,7 +20317,7 @@ "capture_learning" ], "ordered_tool_names_sha256": "d88e4e8ce593613f4fe94c03b7f8a9b27cb2ff52e20d060877af7f46930f3ab6", - "wire_schema_sha256": "50b15bf409447c9b21604c6b276ea80268a1ae06d49e62cbc5e739bb9c8755e9" + "wire_schema_sha256": "2cb919d2e66a94cf92157049d2bb8fcd59a389a0687d294f634d3a5ff5e660c9" }, { "id": "slack_bolt:private_mention_member:routed:brand_registry_identity", @@ -22975,7 +22975,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 16998, + "wire_schema_bytes": 16985, "tool_reference_bytes": 6550, "tool_reference_sha256": "0ab8109a2f0f25348122080fb7f64fe305ccfad798a7b74533903b50fb916084", "overridden_tool_count": 1, @@ -22998,7 +22998,7 @@ "validate_adagents" ], "ordered_tool_names_sha256": "0e5db57c4d45f9244087dbefbe8cbdc0427aa9c4367b7f64d7bef050db0f61de", - "wire_schema_sha256": "6fa359baf6a660b089052664e1353e1778c5ca0132c12fa7e337fb5f119861da", + "wire_schema_sha256": "dc22c2de7eb95d6d4699915fa20abbe534511668a112d6035b13287f9dfd5f69", "target_exception_category": "explicit_multi_step_workflow" }, { @@ -23064,7 +23064,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 11835, + "wire_schema_bytes": 11822, "tool_reference_bytes": 6053, "tool_reference_sha256": "623c78700d4c24b2b99574e33c8af9cd61c60f6fcf74b1ac59f49ca20eb8a164", "overridden_tool_count": 0, @@ -23080,7 +23080,7 @@ "capture_learning" ], "ordered_tool_names_sha256": "22b683ae113338a0d0437c1172eca780abe22103df94c4c4addf2dca3f6da300", - "wire_schema_sha256": "be05bd392c8322ec1e58b59414ea16a2c71157cd3024435be34725d77156ed3c" + "wire_schema_sha256": "14bae747b65d7bbad0b29ab1c1bdf4ba8b19cea10bf4e45e9f5620a0e5910345" }, { "id": "slack_bolt:public_channel_admin:agent_registry", @@ -23146,7 +23146,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 9601, + "wire_schema_bytes": 9545, "tool_reference_bytes": 4789, "tool_reference_sha256": "ac1bee3884e81f74378fe545a90fb872f17a108694986c51383f8f19aecb057a", "overridden_tool_count": 0, @@ -23163,7 +23163,7 @@ "capture_learning" ], "ordered_tool_names_sha256": "bc14fcbbed83e613746c65649ebb6a63e815fba7fd5e15ba3169c709eb20d007", - "wire_schema_sha256": "6af33c1e831bc51b80e238392d24d91a312de2d361449322dc85974f3e472dda" + "wire_schema_sha256": "404cbecb8da87c2c3217fafb289d27745b202566c748ce027053cebb539bc290" }, { "id": "slack_bolt:public_channel_admin:all_valid_sets_maximum", @@ -23255,7 +23255,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 164304, + "wire_schema_bytes": 164235, "tool_reference_bytes": 39037, "tool_reference_sha256": "3027551ef1cb14e96a9f7e48fb55ee1526a82a6b2dbe76701b7877fda4697a2b", "overridden_tool_count": 11, @@ -23469,7 +23469,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "2e00c4c22c4e8bf5855f5ce7daf7845cf71801389a2c6b6f3f0a1f82c16beb56", - "wire_schema_sha256": "948a759a62227cfca6dd6ee21d97c31a7c3742c26dee1d677d64f578ab820e86", + "wire_schema_sha256": "fff347671bfc53b1e78915d7f744ebc029addd23a748474ae89bc7acb2a8beab", "target_exception_category": "synthetic_all_sets_maximum" }, { @@ -25444,7 +25444,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 16998, + "wire_schema_bytes": 16985, "tool_reference_bytes": 6550, "tool_reference_sha256": "0ab8109a2f0f25348122080fb7f64fe305ccfad798a7b74533903b50fb916084", "overridden_tool_count": 1, @@ -25467,7 +25467,7 @@ "validate_adagents" ], "ordered_tool_names_sha256": "0e5db57c4d45f9244087dbefbe8cbdc0427aa9c4367b7f64d7bef050db0f61de", - "wire_schema_sha256": "6fa359baf6a660b089052664e1353e1778c5ca0132c12fa7e337fb5f119861da", + "wire_schema_sha256": "dc22c2de7eb95d6d4699915fa20abbe534511668a112d6035b13287f9dfd5f69", "target_exception_category": "explicit_multi_step_workflow" }, { @@ -25533,7 +25533,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 11835, + "wire_schema_bytes": 11822, "tool_reference_bytes": 6053, "tool_reference_sha256": "623c78700d4c24b2b99574e33c8af9cd61c60f6fcf74b1ac59f49ca20eb8a164", "overridden_tool_count": 0, @@ -25549,7 +25549,7 @@ "capture_learning" ], "ordered_tool_names_sha256": "22b683ae113338a0d0437c1172eca780abe22103df94c4c4addf2dca3f6da300", - "wire_schema_sha256": "be05bd392c8322ec1e58b59414ea16a2c71157cd3024435be34725d77156ed3c" + "wire_schema_sha256": "14bae747b65d7bbad0b29ab1c1bdf4ba8b19cea10bf4e45e9f5620a0e5910345" }, { "id": "slack_bolt:public_channel_member:agent_registry", @@ -25615,7 +25615,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 9601, + "wire_schema_bytes": 9545, "tool_reference_bytes": 4789, "tool_reference_sha256": "ac1bee3884e81f74378fe545a90fb872f17a108694986c51383f8f19aecb057a", "overridden_tool_count": 0, @@ -25632,7 +25632,7 @@ "capture_learning" ], "ordered_tool_names_sha256": "bc14fcbbed83e613746c65649ebb6a63e815fba7fd5e15ba3169c709eb20d007", - "wire_schema_sha256": "6af33c1e831bc51b80e238392d24d91a312de2d361449322dc85974f3e472dda" + "wire_schema_sha256": "404cbecb8da87c2c3217fafb289d27745b202566c748ce027053cebb539bc290" }, { "id": "slack_bolt:public_channel_member:all_valid_sets_maximum", @@ -25704,7 +25704,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 131264, + "wire_schema_bytes": 131195, "tool_reference_bytes": 34859, "tool_reference_sha256": "665e824afa7c27b745f7fcf414b1d5188b8aef6530fcb400079a97a6d70982f4", "overridden_tool_count": 11, @@ -25864,7 +25864,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "f379a084a6410c744dd492a778c4735a6d3330785bdfe101f514dd189be48bf6", - "wire_schema_sha256": "1470988912e3de0da8f090fe09f9911aa1d9b50d54b05e1b9b282f6d29dbc991", + "wire_schema_sha256": "1f82402055108ae6fac95683405fe2f1c44817306b4065366f3d4ce84898fe41", "target_exception_category": "synthetic_all_sets_maximum" }, { @@ -31815,7 +31815,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 176977, + "wire_schema_bytes": 176908, "tool_reference_bytes": 40379, "tool_reference_sha256": "e29d9ad879206c971e260e8e9b2d5d622e22a6912c64b971d63b695a847a4c89", "overridden_tool_count": 11, @@ -32046,7 +32046,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "ffd97c28755c02acca5bd0e8b405d6cc8d6543c91e5d002bf5725aab1deb7c86", - "wire_schema_sha256": "e584ee645d4138bc067e853352c11e0ef3dfba0963eb302b7bf536dbcb6d9e81", + "wire_schema_sha256": "ae4f7a6bc513398a6e1ad2f709452052f0023bc7a1a32fb84170fbfc861ffa0e", "target_exception_category": "synthetic_all_sets_maximum" }, { @@ -32139,7 +32139,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 176977, + "wire_schema_bytes": 176908, "tool_reference_bytes": 40379, "tool_reference_sha256": "e29d9ad879206c971e260e8e9b2d5d622e22a6912c64b971d63b695a847a4c89", "overridden_tool_count": 11, @@ -32370,7 +32370,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "ffd97c28755c02acca5bd0e8b405d6cc8d6543c91e5d002bf5725aab1deb7c86", - "wire_schema_sha256": "e584ee645d4138bc067e853352c11e0ef3dfba0963eb302b7bf536dbcb6d9e81", + "wire_schema_sha256": "ae4f7a6bc513398a6e1ad2f709452052f0023bc7a1a32fb84170fbfc861ffa0e", "target_exception_category": "synthetic_all_sets_maximum" }, { @@ -32463,7 +32463,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 176977, + "wire_schema_bytes": 176908, "tool_reference_bytes": 40506, "tool_reference_sha256": "a5dd0947915ea29698a6e99c6b81c40506eb9e7663c531176e47521bd149a659", "overridden_tool_count": 11, @@ -32694,7 +32694,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "ffd97c28755c02acca5bd0e8b405d6cc8d6543c91e5d002bf5725aab1deb7c86", - "wire_schema_sha256": "e584ee645d4138bc067e853352c11e0ef3dfba0963eb302b7bf536dbcb6d9e81", + "wire_schema_sha256": "ae4f7a6bc513398a6e1ad2f709452052f0023bc7a1a32fb84170fbfc861ffa0e", "target_exception_category": "synthetic_all_sets_maximum" }, { @@ -32786,7 +32786,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 176977, + "wire_schema_bytes": 176908, "tool_reference_bytes": 40379, "tool_reference_sha256": "e29d9ad879206c971e260e8e9b2d5d622e22a6912c64b971d63b695a847a4c89", "overridden_tool_count": 11, @@ -33017,7 +33017,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "ffd97c28755c02acca5bd0e8b405d6cc8d6543c91e5d002bf5725aab1deb7c86", - "wire_schema_sha256": "e584ee645d4138bc067e853352c11e0ef3dfba0963eb302b7bf536dbcb6d9e81", + "wire_schema_sha256": "ae4f7a6bc513398a6e1ad2f709452052f0023bc7a1a32fb84170fbfc861ffa0e", "target_exception_category": "synthetic_all_sets_maximum" }, { @@ -33111,7 +33111,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 176977, + "wire_schema_bytes": 176908, "tool_reference_bytes": 40541, "tool_reference_sha256": "8fe3961f518611ffdaa6232f859ecce925d5c025720ac62b0d1d6e2dbcef7e0c", "overridden_tool_count": 11, @@ -33342,7 +33342,7 @@ "save_learner_feedback" ], "ordered_tool_names_sha256": "ffd97c28755c02acca5bd0e8b405d6cc8d6543c91e5d002bf5725aab1deb7c86", - "wire_schema_sha256": "e584ee645d4138bc067e853352c11e0ef3dfba0963eb302b7bf536dbcb6d9e81", + "wire_schema_sha256": "ae4f7a6bc513398a6e1ad2f709452052f0023bc7a1a32fb84170fbfc861ffa0e", "target_exception_category": "synthetic_all_sets_maximum" }, { @@ -34219,7 +34219,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 35099, + "wire_schema_bytes": 35086, "tool_reference_bytes": 10413, "tool_reference_sha256": "5dd5d324afda23ec07ad43c8be34d029720f417e81f4caae1aefa2f3da868377", "overridden_tool_count": 1, @@ -34259,7 +34259,7 @@ "resolve_escalation" ], "ordered_tool_names_sha256": "035d6c5c0b1f63eb610c9cfda234f3e362dab45a806d0b63b3498833b937e77a", - "wire_schema_sha256": "ed8ed705d8f9d2e2cad0ff91cdb461009b23f95eeb9325fdc9373730487d80be", + "wire_schema_sha256": "82b70086f2a8a527bca675241deacf5b49471e3bfa5db2575e9364362401dc41", "target_exception_category": "bounded_multi_domain_plan" }, { @@ -35283,7 +35283,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 19764, + "wire_schema_bytes": 19751, "tool_reference_bytes": 6636, "tool_reference_sha256": "d02b3eff67be7a38f952ebe0196ddb996dc932aa9e501167b0b1d71e454da1e4", "overridden_tool_count": 1, @@ -35309,7 +35309,7 @@ "resolve_escalation" ], "ordered_tool_names_sha256": "38cc0a34bdeb0b27e32fc731aab76c06cd76603a03930b877377db96c6605530", - "wire_schema_sha256": "8447af4a1546c0a2a331b7c5bdb8cdd31e0ccd1f4062f705e5e1d39a7552ab36", + "wire_schema_sha256": "eb413aa5400670f07acf4c38e8d4f26e36b9e2b576ec8b9335fb48e14e6cb327", "target_exception_category": "explicit_multi_step_workflow" }, { @@ -35370,7 +35370,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 14601, + "wire_schema_bytes": 14588, "tool_reference_bytes": 6139, "tool_reference_sha256": "ecf8f60600a263d6a3120321ab1f65e138a08b082a96153eed01d1968552a91f", "overridden_tool_count": 0, @@ -35389,7 +35389,7 @@ "resolve_escalation" ], "ordered_tool_names_sha256": "f527be89fee5e5536b0b51b8c6c72924fbb8d3d9f3fee080986890437ae83065", - "wire_schema_sha256": "749210caf1e34750da098c47f9c3d17390257b29b93e0f2a56a722d8a4320005" + "wire_schema_sha256": "4c8ff20c487589b786ca561ab0e04a3c27a2e1693f7fecf4ba5d49ecb52ea2d5" }, { "id": "web_chat:authenticated_admin:routed:agent_registry", @@ -35450,7 +35450,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 12367, + "wire_schema_bytes": 12311, "tool_reference_bytes": 4875, "tool_reference_sha256": "fb29689bce177518a1e5750ff2039182242b5b31fd2edb6ec226b91c2da62f37", "overridden_tool_count": 0, @@ -35470,7 +35470,7 @@ "resolve_escalation" ], "ordered_tool_names_sha256": "c69fbb0a7e8b043c0dc67ab5ccee3ef54989aaf7b9c125d831f0b8886a6ed99f", - "wire_schema_sha256": "51a69500e0661f0542d4c1bd00fd58cdc7a33f54e3d90afad5e2032b5f139f61" + "wire_schema_sha256": "cdb66be1b003077207da42b53fde91a607ed9cc6eb4f4c58166dde9968690564" }, { "id": "web_chat:authenticated_admin:routed:brand_registry_identity", @@ -37442,7 +37442,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 32806, + "wire_schema_bytes": 32793, "tool_reference_bytes": 10345, "tool_reference_sha256": "ac5a6aa8355228d26ad1a9a443f94a528fafa857da3ca05098c34234d1d7f202", "overridden_tool_count": 1, @@ -37480,7 +37480,7 @@ "diagnose_agent_auth" ], "ordered_tool_names_sha256": "54bb29cdfed132a628339b1ea52dd208dd7b9ab7200cdb05de82053913899542", - "wire_schema_sha256": "a2e0f813182ceee0963376e90aaab4590ec255ba77ab0632feac5d5909023abd", + "wire_schema_sha256": "e2e48febc9460b3c378ae8782ae5e30f7820177421d9c81b9869241dfd0704a1", "target_exception_category": "bounded_multi_domain_plan" }, { @@ -37775,7 +37775,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 17471, + "wire_schema_bytes": 17458, "tool_reference_bytes": 6568, "tool_reference_sha256": "724c570df0c1afbfc5474f247fa2d289e56582171e19ca033a263bf4a38a8591", "overridden_tool_count": 1, @@ -37799,7 +37799,7 @@ "diagnose_agent_auth" ], "ordered_tool_names_sha256": "fca82ce62ad0b9e6ae281a723c4fde4a64f62054db1fed015fedbd24cccf44c4", - "wire_schema_sha256": "5e5cf9d3bdb63c04eacbc64f54eac6546bcb9ee551d972e12da839f9ccbf7bd9", + "wire_schema_sha256": "e74b3cac119b24a37b1e1f882347263e55b75885b07faaec231b8745e9e96a19", "target_exception_category": "explicit_multi_step_workflow" }, { @@ -37858,7 +37858,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 12308, + "wire_schema_bytes": 12295, "tool_reference_bytes": 6071, "tool_reference_sha256": "815eb22df22b1d8f37c869018b9c5e49c83178001b26f1e7523ce09aec7b230e", "overridden_tool_count": 0, @@ -37875,7 +37875,7 @@ "capture_learning" ], "ordered_tool_names_sha256": "32ee638aa5b9177bbea802803498f87f715d059b195e4d0492e56312ff6c9cbe", - "wire_schema_sha256": "e9dbc6a7c353f138f219094f030e3864ffef38d61c1f3727c020b38a1191a76c" + "wire_schema_sha256": "bc8b0bea1ad77c16c0df4efc69bd724c255edd88e45ee64ebf146f56cc42fabc" }, { "id": "web_chat:authenticated_member:routed:agent_registry", @@ -37934,7 +37934,7 @@ ], "maximum_provider_tool_wire_bytes": 52, "maximum_provider_tool_wire_sha256": "41862a9288a9f94aa80bd76a6d113c5217ffb3b495e3b96e9ab3db014d52b275", - "wire_schema_bytes": 10074, + "wire_schema_bytes": 10018, "tool_reference_bytes": 4807, "tool_reference_sha256": "e5b7a9892d965bbf6348824c60b4e8e5ccdf41b0a7f786a62841b8eb992e9080", "overridden_tool_count": 0, @@ -37952,7 +37952,7 @@ "capture_learning" ], "ordered_tool_names_sha256": "d88e4e8ce593613f4fe94c03b7f8a9b27cb2ff52e20d060877af7f46930f3ab6", - "wire_schema_sha256": "50b15bf409447c9b21604c6b276ea80268a1ae06d49e62cbc5e739bb9c8755e9" + "wire_schema_sha256": "2cb919d2e66a94cf92157049d2bb8fcd59a389a0687d294f634d3a5ff5e660c9" }, { "id": "web_chat:authenticated_member:routed:brand_registry_identity", @@ -39606,7 +39606,7 @@ "maximum_slack_public_tools": -3, "maximum_slack_member_schema_bytes": -89970, "maximum_slack_admin_schema_bytes": -129635, - "maximum_slack_public_schema_bytes": 4187, + "maximum_slack_public_schema_bytes": 4118, "web_anonymous_tools": 0, "web_authenticated_admin_tools": -202 } @@ -39791,11 +39791,11 @@ } }, "profile_ids_sha256": "5c4b3378b3d01fbcf75aeb0a40a6b83f460060fbc3e7ec37dc8444647d804faa", - "profile_contract_sha256": "f5b6ce9565dc7bf027ee95d7fc2e962e2440d0bcf3a419a0aadae880dffcb1a4", + "profile_contract_sha256": "a3c7e11fc7c588c3ba0f1a1596a0e1a069a051a494034b9753ab6c8d1ecc42a0", "status": "within_budget" }, "profile_contract": { "profile_ids_sha256": "5c4b3378b3d01fbcf75aeb0a40a6b83f460060fbc3e7ec37dc8444647d804faa", - "profile_contract_sha256": "f5b6ce9565dc7bf027ee95d7fc2e962e2440d0bcf3a419a0aadae880dffcb1a4" + "profile_contract_sha256": "a3c7e11fc7c588c3ba0f1a1596a0e1a069a051a494034b9753ab6c8d1ecc42a0" } } diff --git a/server/src/addie/mcp/member-tools.ts b/server/src/addie/mcp/member-tools.ts index 0a41e8e0285..61e27734424 100644 --- a/server/src/addie/mcp/member-tools.ts +++ b/server/src/addie/mcp/member-tools.ts @@ -2083,7 +2083,7 @@ export const MEMBER_TOOLS: AddieTool[] = [ properties: { agent_url: { type: 'string', description: 'Agent URL to evaluate' }, tracks: { type: 'array', items: { type: 'string', enum: ['core', 'products', 'media_buy', 'creative', 'reporting', 'governance', 'signals', 'si', 'audiences'] }, description: 'Specific compliance tracks to run (default: all applicable, driven by the agent\'s get_adcp_capabilities response)' }, - compliance_target: { type: 'string', description: 'Compliance target to run, e.g. "3.3", "3.2", "3.1", or "3.0" for badge-eligible stable lines, or "3.3-rc"/"3.3-beta" for explicit prerelease diagnostics. Defaults to the canonical badge-eligible target when advertised.' }, + compliance_target: { type: 'string', description: 'Compliance target to run, e.g. "3.3", "3.2", "3.1", or "3.0" for badge-eligible stable lines, or "3.3-rc" for explicit prerelease diagnostics. Defaults to the canonical badge-eligible target when advertised.' }, }, required: ['agent_url'], additionalProperties: false, @@ -2197,7 +2197,7 @@ export const MEMBER_TOOLS: AddieTool[] = [ type: 'object', properties: { agent_url: { type: 'string', description: 'Agent URL to discover and recommend storyboards for' }, - compliance_target: { type: 'string', description: 'Compliance target to inspect, e.g. "3.3", "3.2", "3.1", "3.0", "3.3-rc", or "3.3-beta". Defaults to the canonical badge-eligible target when advertised. Explicit targets only run when the agent advertises support.' }, + compliance_target: { type: 'string', description: 'Compliance target to inspect, e.g. "3.3", "3.2", "3.1", "3.0", or "3.3-rc". Defaults to the canonical badge-eligible target when advertised. Explicit targets only run when the agent advertises support.' }, }, required: ['agent_url'], }, @@ -2211,7 +2211,7 @@ export const MEMBER_TOOLS: AddieTool[] = [ type: 'object', properties: { storyboard_id: { type: 'string', description: 'Storyboard ID (from recommend_storyboards)' }, - compliance_target: { type: 'string', description: 'Compliance target to inspect, e.g. "3.3", "3.2", "3.1", "3.0", "3.3-rc", or "3.3-beta". Defaults to 3.0.' }, + compliance_target: { type: 'string', description: 'Compliance target to inspect, e.g. "3.3", "3.2", "3.1", "3.0", or "3.3-rc". Defaults to 3.0.' }, }, required: ['storyboard_id'], }, @@ -2227,7 +2227,7 @@ export const MEMBER_TOOLS: AddieTool[] = [ agent_url: { type: 'string', description: 'Agent URL to test' }, storyboard_id: { type: 'string', description: 'Storyboard ID to run' }, dry_run: { type: 'boolean', description: 'If true (default), use test data that won\'t affect production state', default: true }, - compliance_target: { type: 'string', description: 'Compliance target to run, e.g. "3.3", "3.2", "3.1", "3.0", "3.3-rc", or "3.3-beta". Defaults to the canonical badge-eligible target when advertised. Explicit prerelease targets are diagnostic-only and only run when the agent advertises support.' }, + compliance_target: { type: 'string', description: 'Compliance target to run, e.g. "3.3", "3.2", "3.1", "3.0", or "3.3-rc". Defaults to the canonical badge-eligible target when advertised. Explicit prerelease targets are diagnostic-only and only run when the agent advertises support.' }, }, required: ['agent_url', 'storyboard_id'], }, @@ -2253,7 +2253,7 @@ export const MEMBER_TOOLS: AddieTool[] = [ additionalProperties: false, }, dry_run: { type: 'boolean', description: 'If true (default), use test data', default: true }, - compliance_target: { type: 'string', description: 'Compliance target to run, e.g. "3.3", "3.2", "3.1", "3.0", "3.3-rc", or "3.3-beta". Defaults to the canonical badge-eligible target when advertised. Explicit prerelease targets are diagnostic-only and only run when the agent advertises support.' }, + compliance_target: { type: 'string', description: 'Compliance target to run, e.g. "3.3", "3.2", "3.1", "3.0", or "3.3-rc". Defaults to the canonical badge-eligible target when advertised. Explicit prerelease targets are diagnostic-only and only run when the agent advertises support.' }, }, required: ['agent_url', 'storyboard_id', 'step_id'], }, diff --git a/server/src/addie/services/compliance-testing.ts b/server/src/addie/services/compliance-testing.ts index 8788f8afcf6..2236a8cf158 100644 --- a/server/src/addie/services/compliance-testing.ts +++ b/server/src/addie/services/compliance-testing.ts @@ -30,6 +30,7 @@ import { getCachedComplianceStoryboardById } from '../../compliance/storyboard-c import { hostedComplianceTarget, hostedComplianceOptions, + hostedComplianceOptionsForRecordedVersion, hostedAuthProbeTaskForProfile, hostedStaticApiKeyForProfile, agentAdvertisesHostedComplianceTarget, @@ -1010,7 +1011,7 @@ function pinnedStoryboard(result: ComplianceResult, storyboardId: string) { if (!context.has(key)) { try { context.set(key, getCachedComplianceStoryboardById(storyboardId, - hostedComplianceOptions(hostedComplianceTarget(result.adcp_version)))); + hostedComplianceOptionsForRecordedVersion(result.adcp_version))); } catch { context.set(key, undefined); } diff --git a/server/src/compliance/storyboard-skip-details.ts b/server/src/compliance/storyboard-skip-details.ts index f4a4244ba78..b2791889d5c 100644 --- a/server/src/compliance/storyboard-skip-details.ts +++ b/server/src/compliance/storyboard-skip-details.ts @@ -16,7 +16,7 @@ import { type ComplianceResult } from '@adcp/sdk/testing'; import { getCachedComplianceStoryboardById } from './storyboard-cache.js'; import { redactForDiagnostics } from '../addie/services/compliance-testing.js'; -import { hostedComplianceOptions, hostedComplianceTarget } from '../services/hosted-compliance-version.js'; +import { hostedComplianceOptionsForRecordedVersion } from '../services/hosted-compliance-version.js'; import type { RecordComplianceRunInput, StoryboardSkippedStep } from '../db/compliance-db.js'; import { classifyComplianceStep } from './step-disposition.js'; @@ -53,7 +53,7 @@ export const pinnedStepRequiredTool: StepRequiredToolResolver = (result, storybo try { const storyboard = getCachedComplianceStoryboardById( storyboardId, - hostedComplianceOptions(hostedComplianceTarget(result.adcp_version)), + hostedComplianceOptionsForRecordedVersion(result.adcp_version), ); const phase = storyboard?.phases.find(candidate => candidate.id === phaseId); const matches = phase?.steps.filter(candidate => step.step_id diff --git a/server/src/compliance/v4-readiness.ts b/server/src/compliance/v4-readiness.ts index e77de5a9ccb..8309e482212 100644 --- a/server/src/compliance/v4-readiness.ts +++ b/server/src/compliance/v4-readiness.ts @@ -24,7 +24,7 @@ import { resolve } from 'node:path'; import YAML from 'yaml'; import { type ComplianceResult } from '@adcp/sdk/testing'; import { getCachedComplianceStoryboardById } from './storyboard-cache.js'; -import { hostedComplianceOptions, hostedComplianceTarget } from '../services/hosted-compliance-version.js'; +import { hostedComplianceOptionsForRecordedVersion } from '../services/hosted-compliance-version.js'; import { createLogger } from '../logger.js'; const logger = createLogger('v4-readiness'); @@ -278,7 +278,7 @@ export const pinnedStepId: V4StepIdResolver = (result, storyboardId, phaseId, st if (!byId.has(storyboardId)) { byId.set(storyboardId, getCachedComplianceStoryboardById( storyboardId, - hostedComplianceOptions(hostedComplianceTarget(result.adcp_version)), + hostedComplianceOptionsForRecordedVersion(result.adcp_version), )); } const storyboard = byId.get(storyboardId); diff --git a/server/src/routes/registry-api.ts b/server/src/routes/registry-api.ts index 4793ed2d327..8deb164b3e5 100644 --- a/server/src/routes/registry-api.ts +++ b/server/src/routes/registry-api.ts @@ -4673,7 +4673,7 @@ registry.registerPath({ provenance: ComplianceRunProvenanceSchema.nullable().optional(), run_id: z.string().optional().openapi({ description: "Compliance run id written by this refresh. Use with /compliance/diagnostics?run_id=... to inspect failing-step wire evidence." }), test_session_id: z.string().optional().openapi({ description: "Fresh test session id used for the compliance run. Useful when matching seller-side logs to the refresh." }), - requested_compliance_target: z.string().optional().openapi({ description: "Requested compliance target before alias resolution, e.g. 3.3, 3.2, 3.1, 3.0, 3.3-rc, or 3.3-beta. Present when `ran` is true." }), + requested_compliance_target: z.string().optional().openapi({ description: "Requested compliance target before alias resolution, e.g. 3.3, 3.2, 3.1, 3.0, or 3.3-rc. Present when `ran` is true." }), adcp_version: z.string().optional().openapi({ description: "Concrete AdCP compliance bundle version used for the run, e.g. 3.3.0, 3.2.12, or 3.3.0-rc.3. Present when `ran` is true." }), badge_eligible: z.boolean().optional().openapi({ description: "True when this run can update public badge state." }), badge_eligible_adcp_versions: z.array(z.string()).optional().openapi({ description: "Public badge versions this run can issue, e.g. ['3.3']." }), @@ -5086,6 +5086,21 @@ registry.registerPath({ // ── Storyboard Catalog ────────────────────────────────────────── +const ComplianceTargetRejectionSchema = z.object({ + error: z.string().openapi({ description: "Why the compliance_target was refused. For a superseded prerelease it names the version, the GA line to use and the CDN URLs that still publish its bundles." }), + error_kind: z.literal("superseded_compliance_target").optional().openapi({ description: "Present when the target is a superseded prerelease: its GA has shipped and the hosted service no longer grades it. Absent for an unknown target." }), + requested_compliance_target: z.string().optional().openapi({ description: "The compliance_target as sent." }), + adcp_version: z.string().optional().openapi({ description: "The superseded prerelease it resolves to, e.g. 3.3.0-beta.1." }), + ga_compliance_target: z.string().optional().openapi({ description: "The GA line to use instead, e.g. 3.3." }), + schemas_url: z.string().url().optional().openapi({ description: "CDN URL that still publishes the prerelease's schema bundle." }), + compliance_url: z.string().url().optional().openapi({ description: "CDN URL that still publishes the prerelease's compliance bundle." }), +}).openapi("ComplianceTargetRejection"); + +const COMPLIANCE_TARGET_REJECTION_RESPONSE = { + description: "compliance_target is unknown, or is a superseded prerelease the hosted service no longer grades", + content: { "application/json": { schema: ComplianceTargetRejectionSchema } }, +}; + registry.registerPath({ method: "get", path: "/api/storyboards", @@ -5097,7 +5112,7 @@ registry.registerPath({ request: { query: z.object({ category: z.string().optional().openapi({ description: "Filter by storyboard category" }), - compliance_target: z.string().optional().openapi({ description: "Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, 3.3-rc, or 3.3-beta" }), + compliance_target: z.string().optional().openapi({ description: "Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, or 3.3-rc. A superseded prerelease (one whose GA has shipped) is refused with 400 and error_kind superseded_compliance_target." }), }), }, responses: { @@ -5114,6 +5129,7 @@ registry.registerPath({ }, }, }, + 400: COMPLIANCE_TARGET_REJECTION_RESPONSE, 500: { description: "Server error", content: { "application/json": { schema: ErrorSchema } } }, }, }); @@ -5131,7 +5147,7 @@ registry.registerPath({ id: z.string().openapi({ description: "Storyboard ID" }), }), query: z.object({ - compliance_target: z.string().optional().openapi({ description: "Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, 3.3-rc, or 3.3-beta" }), + compliance_target: z.string().optional().openapi({ description: "Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, or 3.3-rc. A superseded prerelease (one whose GA has shipped) is refused with 400 and error_kind superseded_compliance_target." }), }), }, responses: { @@ -5148,6 +5164,7 @@ registry.registerPath({ }, }, }, + 400: COMPLIANCE_TARGET_REJECTION_RESPONSE, 404: { description: "Storyboard not found", content: { "application/json": { schema: ErrorSchema } } }, 500: { description: "Server error", content: { "application/json": { schema: ErrorSchema } } }, }, @@ -5408,7 +5425,7 @@ registry.registerPath({ storyboardId: z.string(), }), query: z.object({ - compliance_target: z.string().optional().openapi({ description: "Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, 3.3-rc, or 3.3-beta" }), + compliance_target: z.string().optional().openapi({ description: "Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, or 3.3-rc. A superseded prerelease (one whose GA has shipped) is refused with 400 and error_kind superseded_compliance_target." }), }), }, responses: { @@ -5425,6 +5442,7 @@ registry.registerPath({ }, }, }, + 400: COMPLIANCE_TARGET_REJECTION_RESPONSE, 404: { description: "Storyboard not found or has no steps", content: { "application/json": { schema: ErrorSchema } } }, 500: { description: "Server error", content: { "application/json": { schema: ErrorSchema } } }, }, diff --git a/server/src/scripts/verify-training-agent-runtime-assets.ts b/server/src/scripts/verify-training-agent-runtime-assets.ts index b2a02e3c721..b8247e83860 100644 --- a/server/src/scripts/verify-training-agent-runtime-assets.ts +++ b/server/src/scripts/verify-training-agent-runtime-assets.ts @@ -19,6 +19,7 @@ import { RETAINED_SCHEMA_BUNDLES, } from '../training-agent/schema-compat.js'; import { TRAINING_AGENT_HOSTED_PREVIEW } from '../training-agent/candidate-version.js'; +import { CREATIVE33_SCHEMA_VERSION } from '../training-agent/creative33/catalog.js'; import { SELLER_GOVERNANCE_DISCOVERY_ADCP_VERSION } from '../training-agent/types.js'; import { coverageModelHasZone, resolveCoverageModelDir } from '../training-agent/reporting-coverage-model.js'; import { loadCanonicalDefaultSlots, resolveCanonicalFormatDir } from '../creative-agent/canonical-formats.js'; @@ -91,6 +92,19 @@ if (TRAINING_AGENT_HOSTED_PREVIEW) { console.log(`Training-agent preview schema verified: ${TRAINING_AGENT_HOSTED_PREVIEW.wireVersion} -> ${previewRoot}`); } +// The frozen AdCP 3.3 creative sandbox (ENABLE_ADCP_3_3_CREATIVE_ROUTE) +// validates against its committed bundle. Resolve it here so pruning it from +// the image fails the build instead of the sandbox's first request. +const creative33Root = resolveRetainedSchemaRoot(undefined, undefined, CREATIVE33_SCHEMA_VERSION); +const creative33Index = JSON.parse(await readFile(path.join(creative33Root, 'index.json'), 'utf8')) as { adcp_version?: unknown }; +if (creative33Index.adcp_version !== CREATIVE33_SCHEMA_VERSION) { + throw new Error( + `Creative 3.3 sandbox schema index ${creative33Root} declares ${String(creative33Index.adcp_version)}; ` + + `expected ${CREATIVE33_SCHEMA_VERSION}`, + ); +} +console.log(`Creative 3.3 sandbox schema verified: ${CREATIVE33_SCHEMA_VERSION} -> ${creative33Root}`); + // Reporting-subscription coverage runs the spec's reference model at runtime. const coverageModelDir = resolveCoverageModelDir(); if (!coverageModelHasZone('America/New_York')) { diff --git a/server/src/services/hosted-compliance-version.ts b/server/src/services/hosted-compliance-version.ts index 77bbb36d09d..1703cf93774 100644 --- a/server/src/services/hosted-compliance-version.ts +++ b/server/src/services/hosted-compliance-version.ts @@ -658,6 +658,25 @@ function versionMajor(version: string): string | undefined { return version.match(/^([1-9][0-9]*)\.[0-9]+/)?.[1]; } +/** + * Options for reading storyboard metadata (step ids, required tools) of a run + * already recorded against `version`. A run recorded against a superseded + * prerelease the image no longer carries reads its GA release's bundle + * instead: lookups that match steps by id or by an unambiguous title+task pair + * then resolve wherever the GA kept the step, and come out undefined where it + * did not, as they would for any bundle mismatch. Never use this to grade. + */ +export function hostedComplianceOptionsForRecordedVersion(version: string): HostedResolveOptions { + try { + return hostedComplianceOptions(hostedComplianceTarget(version)); + } catch (error) { + if (!(error instanceof SupersededComplianceTargetError)) throw error; + const ga = gaReleaseForPrerelease(error.version); + if (!ga) throw error; + return hostedComplianceOptions(hostedComplianceTarget(ga)); + } +} + export function hostedComplianceOptions(target: HostedComplianceTarget): HostedResolveOptions { assertHostedArtifacts(target.version); const hostedStableLineAlias = hostedStableLineAliasForVersion(target, target.version); diff --git a/server/src/training-agent/creative33/catalog.ts b/server/src/training-agent/creative33/catalog.ts index 1fb2f23ef48..1602e6212d3 100644 --- a/server/src/training-agent/creative33/catalog.ts +++ b/server/src/training-agent/creative33/catalog.ts @@ -3,6 +3,11 @@ import { createHash } from 'node:crypto'; import { getAgentUrl } from '../config.js'; export const CREATIVE33_WIRE_VERSION = '3.3-beta.1'; +/** + * Committed dist/schemas tree the sandbox validates against + * (creative33/schema.ts). A runtime anchor: scripts/prune-runtime-artifacts.cjs + * imports this constant and keeps the tree in the Fly image. + */ export const CREATIVE33_SCHEMA_VERSION = '3.3.0-beta.1'; export const CREATIVE33_ROUTE = '/beta/3.3/creative'; export const CREATIVE33_SIZES = [{ width: 300, height: 250 }, { width: 728, height: 90 }]; diff --git a/server/src/training-agent/creative33/router.ts b/server/src/training-agent/creative33/router.ts index 82542542bf3..fd9efa5f548 100644 --- a/server/src/training-agent/creative33/router.ts +++ b/server/src/training-agent/creative33/router.ts @@ -22,12 +22,16 @@ import { getCanonicalToolValidator, ValidateInputRequestSchema } from '@adcp/sdk import { createCreative33Sandbox } from './platform.js'; import { CREATIVE33_MCP_ROUTE } from '../lab-route-paths.js'; import { - CREATIVE33_HTML_SCHEMA_BYTES, CREATIVE33_RESPONSIVE_HTML, CREATIVE33_ZIP_BYTES, + CREATIVE33_HTML_SCHEMA_BYTES, CREATIVE33_RESPONSIVE_HTML, CREATIVE33_SCHEMA_VERSION, CREATIVE33_WIRE_VERSION, + CREATIVE33_ZIP_BYTES, } from './catalog.js'; export const CREATIVE33_ROUTE = CREATIVE33_MCP_ROUTE; -export const CREATIVE33_WIRE_VERSION = '3.3-beta.1'; -export const CREATIVE33_BUNDLE_VERSION = '3.3.0-beta.1'; +export { CREATIVE33_WIRE_VERSION }; +// The frozen sandbox reads this committed dist/schemas tree at runtime, so +// scripts/prune-runtime-artifacts.cjs keeps it in the image even after the +// prerelease is superseded. +export const CREATIVE33_BUNDLE_VERSION = CREATIVE33_SCHEMA_VERSION; const NAMESPACE = 'adcp-training-agent:creative33'; const logger = createLogger('training-agent-creative33'); const TOOLS = new Set([ diff --git a/server/tests/unit/hosted-compliance-superseded-prerelease.test.ts b/server/tests/unit/hosted-compliance-superseded-prerelease.test.ts index 8ff0af6016a..e3796e9481c 100644 --- a/server/tests/unit/hosted-compliance-superseded-prerelease.test.ts +++ b/server/tests/unit/hosted-compliance-superseded-prerelease.test.ts @@ -104,6 +104,19 @@ describe('hosted grading of superseded prereleases the image no longer carries', expect(hosted.isRetiredSupersededPrerelease('4.0.0-beta.2')).toBe(false); }); + it('reads a recorded run on a retired checkpoint from its GA bundle, for metadata only', () => { + // compliance-testing, storyboard-skip-details and v4-readiness resolve a + // stored run's adcp_version to look up step ids and required tools. + const retired = hosted.hostedComplianceOptionsForRecordedVersion('3.3.0-beta.1'); + expect(retired.version).toBe('3.3.0'); + expect(retired.complianceDir).toBe(join(fixtureRoot, 'dist', 'compliance', '3.3.0')); + expect(retired.schemaRoot).toBe(join(fixtureRoot, 'dist', 'schemas', '3.3.0')); + expect(hosted.hostedComplianceOptionsForRecordedVersion('3.3.0-rc.3').version).toBe('3.3.0-rc.3'); + expect(hosted.hostedComplianceOptionsForRecordedVersion('3.0.1').version).toBe('3.0.1'); + // Anything else still fails as before; callers treat it as no metadata. + expect(() => hosted.hostedComplianceOptionsForRecordedVersion('3.9.9')).toThrow(/not available from a published/); + }); + it('leaves retired checkpoints out of automatic target selection', () => { expect(hosted.hostedComplianceTargetPreference().map(target => target.requested)) .not.toContain('3.3-beta'); diff --git a/static/openapi/registry.yaml b/static/openapi/registry.yaml index cd74c23f100..9f39cf655e4 100644 --- a/static/openapi/registry.yaml +++ b/static/openapi/registry.yaml @@ -6168,6 +6168,36 @@ components: - examples - phase_count - step_count + ComplianceTargetRejection: + type: object + properties: + error: + type: string + description: Why the compliance_target was refused. For a superseded prerelease it names the version, the GA line to use and the CDN URLs that still publish its bundles. + error_kind: + type: string + enum: + - superseded_compliance_target + description: "Present when the target is a superseded prerelease: its GA has shipped and the hosted service no longer grades it. Absent for an unknown target." + requested_compliance_target: + type: string + description: The compliance_target as sent. + adcp_version: + type: string + description: The superseded prerelease it resolves to, e.g. 3.3.0-beta.1. + ga_compliance_target: + type: string + description: The GA line to use instead, e.g. 3.3. + schemas_url: + type: string + format: uri + description: CDN URL that still publishes the prerelease's schema bundle. + compliance_url: + type: string + format: uri + description: CDN URL that still publishes the prerelease's compliance bundle. + required: + - error StoryboardDetail: type: object properties: @@ -14153,7 +14183,7 @@ paths: description: Fresh test session id used for the compliance run. Useful when matching seller-side logs to the refresh. requested_compliance_target: type: string - description: Requested compliance target before alias resolution, e.g. 3.3, 3.2, 3.1, 3.0, 3.3-rc, or 3.3-beta. Present when `ran` is true. + description: Requested compliance target before alias resolution, e.g. 3.3, 3.2, 3.1, 3.0, or 3.3-rc. Present when `ran` is true. adcp_version: type: string description: Concrete AdCP compliance bundle version used for the run, e.g. 3.3.0, 3.2.12, or 3.3.0-rc.3. Present when `ran` is true. @@ -15088,9 +15118,9 @@ paths: in: query - schema: type: string - description: Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, 3.3-rc, or 3.3-beta + description: Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, or 3.3-rc. A superseded prerelease (one whose GA has shipped) is refused with 400 and error_kind superseded_compliance_target. required: false - description: Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, 3.3-rc, or 3.3-beta + description: Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, or 3.3-rc. A superseded prerelease (one whose GA has shipped) is refused with 400 and error_kind superseded_compliance_target. name: compliance_target in: query responses: @@ -15116,6 +15146,12 @@ paths: - requested_compliance_target - storyboards - count + "400": + description: compliance_target is unknown, or is a superseded prerelease the hosted service no longer grades + content: + application/json: + schema: + $ref: "#/components/schemas/ComplianceTargetRejection" "500": description: Server error content: @@ -15139,9 +15175,9 @@ paths: in: path - schema: type: string - description: Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, 3.3-rc, or 3.3-beta + description: Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, or 3.3-rc. A superseded prerelease (one whose GA has shipped) is refused with 400 and error_kind superseded_compliance_target. required: false - description: Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, 3.3-rc, or 3.3-beta + description: Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, or 3.3-rc. A superseded prerelease (one whose GA has shipped) is refused with 400 and error_kind superseded_compliance_target. name: compliance_target in: query responses: @@ -15163,6 +15199,12 @@ paths: - adcp_version - requested_compliance_target - storyboard + "400": + description: compliance_target is unknown, or is a superseded prerelease the hosted service no longer grades + content: + application/json: + schema: + $ref: "#/components/schemas/ComplianceTargetRejection" "404": description: Storyboard not found content: @@ -15629,9 +15671,9 @@ paths: in: path - schema: type: string - description: Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, 3.3-rc, or 3.3-beta + description: Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, or 3.3-rc. A superseded prerelease (one whose GA has shipped) is refused with 400 and error_kind superseded_compliance_target. required: false - description: Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, 3.3-rc, or 3.3-beta + description: Compliance target to inspect, e.g. 3.3, 3.2, 3.1, 3.0, or 3.3-rc. A superseded prerelease (one whose GA has shipped) is refused with 400 and error_kind superseded_compliance_target. name: compliance_target in: query responses: @@ -15661,6 +15703,12 @@ paths: - adcp_version - requested_compliance_target - storyboard + "400": + description: compliance_target is unknown, or is a superseded prerelease the hosted service no longer grades + content: + application/json: + schema: + $ref: "#/components/schemas/ComplianceTargetRejection" "404": description: Storyboard not found or has no steps content: diff --git a/tests/runtime-artifact-pruning.test.cjs b/tests/runtime-artifact-pruning.test.cjs index bb3a38f0dcd..95f2e9ca5d9 100644 --- a/tests/runtime-artifact-pruning.test.cjs +++ b/tests/runtime-artifact-pruning.test.cjs @@ -8,6 +8,7 @@ const { writeFileSync, } = require("node:fs"); const { tmpdir } = require("node:os"); +const { readdirSync } = require("node:fs"); const { join, resolve } = require("node:path"); const test = require("node:test"); const semver = require("semver"); @@ -16,6 +17,7 @@ const { pruneRuntimeArtifacts, retainedTrainingSchemaVersions, runtimeArtifactManifest, + runtimeSandboxSchemaVersions, verifyRequiredArtifacts, protocolOffloadCandidates, verifyProtocolOffloads, @@ -51,6 +53,15 @@ function fixture() { join(root, "server", "src", "training-agent", "schema-compat.ts"), "export const RETAINED_SCHEMA_BUNDLES = Object.freeze({ '3.1-beta.1': '3.1.0-beta.1' });\n", ); + mkdirSync(join(root, "server", "src", "training-agent", "creative33"), { recursive: true }); + writeFileSync( + join(root, "server", "src", "training-agent", "creative33", "catalog.ts"), + "export const CREATIVE33_SCHEMA_VERSION = '3.1.0-beta.1';\n", + ); + writeFileSync( + join(root, "server", "src", "training-agent", "candidate-version.ts"), + "export const TRAINING_AGENT_HOSTED_PREVIEW = undefined;\n", + ); for (const version of ["3.1.0-beta.1", "3.1.0-beta.2", "3.1.1", "3.1.2"]) { writeArtifact(root, "schemas", version); @@ -535,3 +546,96 @@ test("an anchored superseded prerelease stays hosted with both of its trees", () assert.throws(() => verifyRequiredArtifacts(root), /dist\/compliance\/3\.1\.0-rc\.2\/index\.json/); } finally { rmSync(root, { recursive: true, force: true }); } }); + +// Independent of runtimeArtifactManifest(): find every server call that +// resolves a committed dist/schemas tree by exact version, import the +// constant each one passes, and require the runtime closure to keep it. A new +// reader must be added here, and anchored in prune-runtime-artifacts.cjs, +// before the image can ship without its tree. +const EXACT_SCHEMA_READERS = new Map([ + // resolveRetainedSchemaRoot() with no bundle: RETAINED_SCHEMA_BUNDLE. + ["server/src/scripts/verify-training-agent-runtime-assets.ts", 4], + // RETAINED_SCHEMA_BUNDLES entries, the candidate's built `latest` tree and + // PREVIEW_SCHEMA_BUNDLE. + ["server/src/training-agent/schema-compat.ts", 3], + ["server/src/training-agent/creative33/schema.ts", 1], +]); + +function serverSourceFiles(dir) { + return readdirSync(dir, { withFileTypes: true }).flatMap((entry) => { + const path = join(dir, entry.name); + if (entry.isDirectory()) return serverSourceFiles(path); + return entry.name.endsWith(".ts") && !entry.name.endsWith(".test.ts") ? [path] : []; + }); +} + +test("every runtime exact-version schema reader is in the runtime closure", () => { + const sites = new Map(); + for (const file of serverSourceFiles(join(repoRoot, "server", "src"))) { + const source = readFileSync(file, "utf8"); + const calls = source.match(/resolveRetainedSchemaRoot\(/g)?.length ?? 0; + const declarations = source.match(/export function resolveRetainedSchemaRoot\(/g)?.length ?? 0; + if (calls - declarations > 0) sites.set(file.slice(repoRoot.length + 1), calls - declarations); + } + assert.deepEqual(Object.fromEntries([...sites].sort()), Object.fromEntries([...EXACT_SCHEMA_READERS].sort()), + "a server path resolves a dist/schemas tree by exact version: anchor its version in " + + "scripts/prune-runtime-artifacts.cjs and list it in EXACT_SCHEMA_READERS"); + + const { require: requireTypeScript } = require("tsx/cjs/api"); + const agent = join(repoRoot, "server", "src", "training-agent"); + const { CREATIVE33_SCHEMA_VERSION } = requireTypeScript(join(agent, "creative33", "catalog.ts"), __filename); + const { RETAINED_SCHEMA_BUNDLE, RETAINED_SCHEMA_BUNDLES } = requireTypeScript(join(agent, "schema-compat.ts"), __filename); + const { TRAINING_AGENT_HOSTED_PREVIEW } = requireTypeScript(join(agent, "candidate-version.ts"), __filename); + const readers = new Set([ + CREATIVE33_SCHEMA_VERSION, + RETAINED_SCHEMA_BUNDLE, + ...Object.values(RETAINED_SCHEMA_BUNDLES), + ...(TRAINING_AGENT_HOSTED_PREVIEW ? [TRAINING_AGENT_HOSTED_PREVIEW.bundle] : []), + ]); + assert.ok(readers.has("3.3.0-beta.1"), "the creative 3.3 sandbox reads 3.3.0-beta.1"); + const manifest = runtimeArtifactManifest(repoRoot); + for (const version of readers) { + assert.ok(manifest.schemaVersions.has(version), `runtime closure drops ${version}, which the server reads`); + assert.equal(manifest.superseded.has(version), false, `${version} must not be dropped`); + assert.ok(existsSync(join(repoRoot, "dist", "schemas", version, "index.json")), `missing tree ${version}`); + } +}); + +test("the sandbox anchors fail closed and a configured preview is kept", () => { + // tsx caches each module by path, so every variant gets a fresh checkout. + const variant = (catalog, preview) => { + const root = fixture(); + const agent = join(root, "server", "src", "training-agent"); + if (catalog) writeFileSync(join(agent, "creative33", "catalog.ts"), catalog); + if (preview) writeFileSync(join(agent, "candidate-version.ts"), preview); + return root; + }; + const roots = [ + variant(), + variant(undefined, "export const TRAINING_AGENT_HOSTED_PREVIEW = { wireVersion: '3.1-rc.9', bundle: '3.1.0-rc.9' };\n"), + variant(undefined, "export const SOMETHING_ELSE = 1;\n"), + variant("export const CREATIVE33_SCHEMA_VERSION = undefined;\n"), + ]; + try { + assert.deepEqual([...runtimeSandboxSchemaVersions(roots[0])], ["3.1.0-beta.1"]); + assert.deepEqual([...runtimeSandboxSchemaVersions(roots[1])].sort(), ["3.1.0-beta.1", "3.1.0-rc.9"]); + assert.throws(() => runtimeSandboxSchemaVersions(roots[2]), /must export TRAINING_AGENT_HOSTED_PREVIEW/); + assert.throws(() => runtimeSandboxSchemaVersions(roots[3]), /invalid release version/); + } finally { + for (const root of roots) rmSync(root, { recursive: true, force: true }); + } +}); + +test("a superseded prerelease the creative sandbox reads keeps both of its trees", () => { + const root = writeSupersessionFixture(); + try { + writeFileSync(join(root, "server", "src", "training-agent", "creative33", "catalog.ts"), + "export const CREATIVE33_SCHEMA_VERSION = '3.1.0-beta.2';\n"); + const result = pruneRuntimeArtifacts(root); + assert.equal(result.manifest.superseded.has("3.1.0-beta.2"), false); + assert.ok(result.manifest.hosted.has("3.1.0-beta.2")); + for (const kind of ["schemas", "compliance"]) { + assert.ok(existsSync(join(root, "dist", kind, "3.1.0-beta.2", "index.json")), kind); + } + } finally { rmSync(root, { recursive: true, force: true }); } +});