refactor(context-engine): retire legacy host param default (#122434)

This commit is contained in:
Peter Steinberger
2026-08-11 21:57:46 -07:00
committed by GitHub
parent 141f943a41
commit 7ecad45a7d
28 changed files with 57 additions and 96 deletions
+5 -6
View File
@@ -13,18 +13,17 @@ export const PLUGIN_COMPAT_RECORDS = [
MEDIA_LEGACY_PROJECTION_COMPAT_RECORD,
{
code: "context-engine-legacy-host-param-default",
status: "deprecated",
status: "removed",
owner: "sdk",
introduced: "2026-07-29",
deprecated: "2026-07-29",
warningStarts: "2026-07-29",
removeAfter: "2026-08-12",
replacement:
"declare `ContextEngineInfo.acceptedHostParams`; full host params after the window",
"`ContextEngineInfo.acceptedHostParams` for restricted projection; omitted declarations receive full host params",
docsPath: "/concepts/context-engine#the-contextengine-interface",
surfaces: ["ContextEngineInfo.acceptedHostParams and undeclared-engine default projection"],
diagnostics: ["plugin compatibility registry and dated runtime removal marker"],
diagnostics: ["plugin compatibility registry and context engine guide"],
tests: ["src/context-engine/host-param-projection.test.ts"],
releaseNote:
"The undeclared context-engine host-parameter compatibility default was removed; engines without `acceptedHostParams` now receive all current host fields.",
},
{
code: "removed-global-api-provider-publication",
+5 -5
View File
@@ -176,17 +176,17 @@ describe("plugin compatibility registry", () => {
);
});
it("tracks the context-engine legacy host-param default through its two-week window", () => {
it("keeps the removed context-engine host-param default as a migration tombstone", () => {
const record = listPluginCompatRecords().find(
(candidate) => candidate.code === "context-engine-legacy-host-param-default",
);
expect(record).toMatchObject({
status: "deprecated",
deprecated: "2026-07-29",
warningStarts: "2026-07-29",
removeAfter: "2026-08-12",
status: "removed",
replacement:
"`ContextEngineInfo.acceptedHostParams` for restricted projection; omitted declarations receive full host params",
});
expect(record?.removeAfter).toBeUndefined();
});
it("keeps deprecated explicit target parser calls inside compatibility shims", () => {