fix(plugins): keep startup convergence read-only (#122330)

Prevent gateway startup verification from re-persisting an unchanged plugin install-record baseline. This keeps startup convergence read-only while preserving update-time persistence and the existing fail-closed check for real migration input changes.
This commit is contained in:
Mariano
2026-08-12 00:49:26 +02:00
committed by GitHub
parent 585503896d
commit 3851849eea
2 changed files with 1 additions and 3 deletions
@@ -97,7 +97,6 @@ export async function runStartupUpgradeConvergence(params: {
cfg: params.cfg,
env: params.env,
compatibilityHostVersion: resolveCompatibilityHostVersion(params.env),
baselineInstallRecords: plan.installRecords,
}),
params.measure,
);
@@ -647,7 +647,7 @@ describe("runDoctorConfigPreflight state migration", () => {
expect(startupMigrationLeaseRelease).toHaveBeenCalledOnce();
});
it("pins startup plugin convergence to the explicit compatibility host version", async () => {
it("pins startup plugin convergence without re-persisting the installed record snapshot", async () => {
needsStartupMigrationCheckpoint.mockReturnValue(true);
const previousHostVersion = process.env.OPENCLAW_COMPATIBILITY_HOST_VERSION;
process.env.OPENCLAW_COMPATIBILITY_HOST_VERSION = "2026.7.2-beta.7";
@@ -670,7 +670,6 @@ describe("runDoctorConfigPreflight state migration", () => {
cfg: { gateway: { mode: "local", port: 19091 } },
env: expect.any(Object),
compatibilityHostVersion: "2026.7.2-beta.7",
baselineInstallRecords: {},
});
});