fix(skills): the launcher never starts a CLI older than its security floor (#8125)

The skill launcher raises its floor to 0.9.64, the oldest release with every
protection for projects received from someone else. The floor applies to a
plugin pin, to --cli-version and to HYPERFRAMES_STANDALONE_CLI_VERSION. A
release below it is refused with a message that names the floor.

The skill lifecycle reference no longer sends the agent back to the project's
pinned release after a failed check. The agent stops and reports, and runs
the old release only when the person asks for it. The CLI notice for a
project that pins a newer release now says the pin is the person's choice.
This commit is contained in:
Michael Wang
2026-11-18 00:56:38 +00:00
committed by GitHub
parent 59fbb22eba
commit 63c8f8ef66
9 changed files with 70 additions and 22 deletions
+12
View File
@@ -125,6 +125,18 @@ test("the launcher rules cover standalone installs and never send the agent to a
assert.doesNotMatch(cli, /then use the wrapper/);
});
// fails without the fix: after a failed check the lifecycle reference sent the agent back to the
// release the project's own package.json pinned.
test("the project upgrade flow stops on a failed check instead of running the project's pin", () => {
const lifecycle = readFileSync(
new URL("../skills/hyperframes/references/skill-lifecycle.md", import.meta.url),
"utf8",
);
assert.doesNotMatch(lifecycle, /continue with the original exact version/);
assert.match(lifecycle, /report the old version, the new version and the failure, and stop/);
assert.match(lifecycle, /unless the person asks for that release/);
});
test("reads the registered commands, quoted or not", () => {
const source = `const commandLoaders = {\n init: () => x,\n "catch-up": () => y,\n};`;
assert.deepEqual([...registeredCommands(source)], ["init", "catch-up"]);