From 9d81228e8aee37de55f8ae066f57e6d93a0e1e4b Mon Sep 17 00:00:00 2001 From: Brian O'Kelley Date: Mon, 26 Oct 2026 18:00:01 +0000 Subject: [PATCH] test(mcp): set parity and model-context bounds once for the 3.3.0-beta.1 window Several decided beta.1 PRs stopped on PARITY_COMPILE_LIMIT, as instructed, each adding a few KB to the comply_test_controller closure. Set the bound once (1,375,000; media-buy model context 476 KiB) for the window instead of raising it PR by PR, and resume per-PR bounding after the cut. Co-Authored-By: Claude Opus 5.5 (1M context) --- tests/mcp-schema-projection.test.cjs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/mcp-schema-projection.test.cjs b/tests/mcp-schema-projection.test.cjs index 6639d45b95b..c86b7949b58 100644 --- a/tests/mcp-schema-projection.test.cjs +++ b/tests/mcp-schema-projection.test.cjs @@ -124,8 +124,12 @@ const ACTIVE_SURFACE_VERSION = semver.prerelease(PACKAGE_VERSION) // Experimental purchase rights add rights-scope and two right-use values to the // purchase graph reached through buy_products (+941 bytes measured, 473,582 -> // 474,523 bytes / 463.4 KiB), bounded at 464 KiB. +// 3.3.0-beta.1 window: the queued account, pricing, seller-terms and creative +// PRs each add a few hundred bytes to a few KiB (measured 465-467 KiB each on +// top of main). Bound at 476 KiB once for the window; resume per-PR bounding +// after the beta.1 cut. const MODEL_CONTEXT_BUDGET_KIB = { - 'media-buy': 464, + 'media-buy': 476, creative: 410, }; // Keep parity compilation materially tighter than the 4 MiB protocol schema @@ -183,7 +187,14 @@ const MODEL_CONTEXT_BUDGET_KIB = { // and scoped control action to the controller closure. After condensing shared // field prose, it measures 1_318_217 bytes; bound it at 1_320_000. The 4 MiB // schema and 22 MiB projection caps and all fixture parity checks remain. -const PARITY_COMPILE_LIMIT = 1_320_000; +// 3.3.0-beta.1 window: set the bound once for the decided beta.1 queue +// instead of per PR. Queued work measured on top of 1_318_217: price +// adjustments (#7955) 1_326_489, provider-initiated signals (#8044) 1_324_027, +// signal pricing groups (#8058) 1_321_133, capabilities bounds (#8505) about +// +2.2 KB, plus the account and creative PRs. Bound at 1_375_000 for the +// window; resume per-PR bounding after the beta.1 cut, and track shrinking +// the controller closure separately. +const PARITY_COMPILE_LIMIT = 1_375_000; function readJson(filename) { return JSON.parse(fs.readFileSync(filename, 'utf8'));