@christang/keel 5.88.0 → 5.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -4
- package/README.zh-CN.md +5 -1
- package/assets/bootstrap/AGENTS.md +1 -1
- package/bin/keel.js +237 -38
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/plugins/keel/.claude-plugin/plugin.json +1 -1
- package/plugins/keel/.codex-plugin/plugin.json +1 -1
- package/plugins/keel/scripts/forward.js +126 -0
- package/plugins/keel/scripts/mail-hook.js +12 -0
- package/plugins/keel/scripts/pretooluse-guard.js +24 -2
- package/plugins/keel/scripts/session-start.js +84 -1
- package/scripts/validate_codex_receiving.py +155 -1
- package/scripts/validate_plugin.py +649 -2
|
@@ -21,6 +21,12 @@ from pathlib import Path
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
ROOT = Path(__file__).resolve().parents[1]
|
|
24
|
+
# No scenario may reach the developer's real Claude Code or Codex: `keel
|
|
25
|
+
# --update` drives both through their own CLIs (#204), and a scenario that ran
|
|
26
|
+
# it unguarded updated the real plugins of whoever ran the suite. A scenario
|
|
27
|
+
# that wants a host plants a fake and names it in its own environment.
|
|
28
|
+
os.environ["KEEL_UPDATE_CLAUDE"] = str(Path(tempfile.gettempdir()) / "keel-suite-has-no-claude")
|
|
29
|
+
os.environ["KEEL_UPDATE_CODEX"] = str(Path(tempfile.gettempdir()) / "keel-suite-has-no-codex")
|
|
24
30
|
|
|
25
31
|
REQUIRED_DIRECTORIES = [
|
|
26
32
|
"bin",
|
|
@@ -41,8 +47,8 @@ REQUIRED_SCRIPTS = [
|
|
|
41
47
|
"scripts/validate_plugin.py",
|
|
42
48
|
]
|
|
43
49
|
|
|
44
|
-
PACKAGE_VERSION = "5.
|
|
45
|
-
PROTOCOL_VERSION = "5.
|
|
50
|
+
PACKAGE_VERSION = "5.89.0"
|
|
51
|
+
PROTOCOL_VERSION = "5.89.0"
|
|
46
52
|
LEGACY_MANAGED_START = "<!-- keel:start version=2.1 -->"
|
|
47
53
|
OPENSPEC_SCHEMA_NAME = "keel-spec-driven"
|
|
48
54
|
# Mirrors KEEL_PACKAGE_NAME in scripts/install_to_repo.py, one of the two
|
|
@@ -18834,6 +18840,642 @@ def validate_drift_names_a_pending_reload_scenario() -> int:
|
|
|
18834
18840
|
return 0
|
|
18835
18841
|
|
|
18836
18842
|
|
|
18843
|
+
# A hook stub that reports which copy ran, with what input. Used as the newer
|
|
18844
|
+
# install's copy of a script so the scenario can tell a hand-off from the
|
|
18845
|
+
# loaded script's own logic, which prints none of this.
|
|
18846
|
+
HANDOFF_STUB = r"""const fs = require("fs");
|
|
18847
|
+
const path = require("path");
|
|
18848
|
+
let input = "";
|
|
18849
|
+
try { input = fs.readFileSync(0, "utf8"); } catch {}
|
|
18850
|
+
const manifest = path.join(__dirname, "..", ".claude-plugin", "plugin.json");
|
|
18851
|
+
process.stdout.write(JSON.stringify({
|
|
18852
|
+
stub: JSON.parse(fs.readFileSync(manifest, "utf8")).version,
|
|
18853
|
+
script: path.basename(__filename),
|
|
18854
|
+
argv: process.argv.slice(2),
|
|
18855
|
+
input,
|
|
18856
|
+
forwarded: process.env.KEEL_HOOK_FORWARDED || null,
|
|
18857
|
+
root: process.env.CLAUDE_PLUGIN_ROOT || null,
|
|
18858
|
+
}) + "\n");
|
|
18859
|
+
const sleep = Number(process.env.HANDOFF_STUB_SLEEP_MS || 0);
|
|
18860
|
+
if (sleep) Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, sleep);
|
|
18861
|
+
process.exit(Number(process.env.HANDOFF_STUB_STATUS || 0));
|
|
18862
|
+
"""
|
|
18863
|
+
|
|
18864
|
+
|
|
18865
|
+
def plant_handoff_package(root: Path, version: str, *, stubs: tuple[str, ...] = ()) -> Path:
|
|
18866
|
+
"""One cached Claude install: the package root with both manifests and the
|
|
18867
|
+
plugin's real hook scripts, of which `stubs` are replaced by HANDOFF_STUB."""
|
|
18868
|
+
manifest = json.dumps({"name": "keel", "version": version}, indent=2) + "\n"
|
|
18869
|
+
write_text(root / ".claude-plugin/plugin.json", manifest)
|
|
18870
|
+
write_text(root / "plugins/keel/.claude-plugin/plugin.json", manifest)
|
|
18871
|
+
write_text(
|
|
18872
|
+
root / "package.json",
|
|
18873
|
+
json.dumps({"name": "@christang/keel", "version": version}) + "\n",
|
|
18874
|
+
)
|
|
18875
|
+
scripts = ROOT / PLUGIN_ROOT / "scripts"
|
|
18876
|
+
for source in sorted(scripts.glob("*.js")):
|
|
18877
|
+
body = HANDOFF_STUB if source.name in stubs else source.read_text(encoding="utf-8")
|
|
18878
|
+
write_text(root / "plugins/keel/scripts" / source.name, body)
|
|
18879
|
+
return root
|
|
18880
|
+
|
|
18881
|
+
|
|
18882
|
+
def write_install_record(plugins_dir: Path, install_path: Path | None) -> None:
|
|
18883
|
+
entries = {}
|
|
18884
|
+
if install_path is not None:
|
|
18885
|
+
entries["keel@m"] = [{"scope": "user", "installPath": str(install_path), "version": "x"}]
|
|
18886
|
+
write_text(
|
|
18887
|
+
plugins_dir / "installed_plugins.json",
|
|
18888
|
+
json.dumps({"version": 2, "plugins": entries}) + "\n",
|
|
18889
|
+
)
|
|
18890
|
+
|
|
18891
|
+
|
|
18892
|
+
def run_hook_script(
|
|
18893
|
+
script: Path,
|
|
18894
|
+
args: list[str],
|
|
18895
|
+
stdin: str,
|
|
18896
|
+
cwd: Path,
|
|
18897
|
+
extra_env: dict[str, str] | None = None,
|
|
18898
|
+
) -> subprocess.CompletedProcess[str]:
|
|
18899
|
+
env = dict(os.environ)
|
|
18900
|
+
for name in ("KEEL_HOOK_FORWARDED", "HANDOFF_STUB_STATUS", "HANDOFF_STUB_SLEEP_MS",
|
|
18901
|
+
"KEEL_HOOK_FORWARD_TIMEOUT_MS"):
|
|
18902
|
+
env.pop(name, None)
|
|
18903
|
+
env["CLAUDE_PLUGIN_ROOT"] = str(script.parents[1])
|
|
18904
|
+
if extra_env:
|
|
18905
|
+
env.update(extra_env)
|
|
18906
|
+
return subprocess.run(
|
|
18907
|
+
["node", str(script), *args], cwd=cwd, env=env, input=stdin, text=True,
|
|
18908
|
+
encoding="utf-8", errors="replace", capture_output=True, check=False, timeout=60,
|
|
18909
|
+
)
|
|
18910
|
+
|
|
18911
|
+
|
|
18912
|
+
def stub_output(result: subprocess.CompletedProcess[str]) -> dict | None:
|
|
18913
|
+
for line in result.stdout.splitlines():
|
|
18914
|
+
try:
|
|
18915
|
+
value = json.loads(line)
|
|
18916
|
+
except json.JSONDecodeError:
|
|
18917
|
+
continue
|
|
18918
|
+
if isinstance(value, dict) and "stub" in value:
|
|
18919
|
+
return value
|
|
18920
|
+
return None
|
|
18921
|
+
|
|
18922
|
+
|
|
18923
|
+
def validate_hook_hands_off_to_installed_update_scenario() -> int:
|
|
18924
|
+
"""Issue #204: a Claude hook runs the newest installed compatible copy.
|
|
18925
|
+
|
|
18926
|
+
Claude binds a session's hooks to the version directory it loaded and keeps
|
|
18927
|
+
that directory after an update, so without a hand-off a running session
|
|
18928
|
+
executes the old scripts until `/reload-plugins`. The loaded script reads
|
|
18929
|
+
the host's install record and hands the event to the newer install's copy
|
|
18930
|
+
of itself when, and only when, that copy is a compatible one.
|
|
18931
|
+
"""
|
|
18932
|
+
label = "hook-hands-off-to-installed-update:"
|
|
18933
|
+
with tempfile.TemporaryDirectory(prefix="keel-handoff-", ignore_cleanup_errors=True) as raw:
|
|
18934
|
+
tmp = Path(raw)
|
|
18935
|
+
cwd = tmp / "work"
|
|
18936
|
+
cwd.mkdir()
|
|
18937
|
+
plugins_dir = tmp / "plugins"
|
|
18938
|
+
cache = plugins_dir / "cache/m/keel"
|
|
18939
|
+
stubs = ("session-start.js", "mail-hook.js")
|
|
18940
|
+
loaded = plant_handoff_package(cache / "5.0.0", "5.0.0")
|
|
18941
|
+
newer = plant_handoff_package(cache / "5.1.0", "5.1.0", stubs=stubs)
|
|
18942
|
+
plant_handoff_package(cache / "6.0.0", "6.0.0", stubs=stubs)
|
|
18943
|
+
lacking = plant_handoff_package(cache / "5.2.0", "5.2.0")
|
|
18944
|
+
(lacking / "plugins/keel/scripts/mail-hook.js").unlink()
|
|
18945
|
+
(lacking / "plugins/keel/scripts/session-start.js").unlink()
|
|
18946
|
+
# The loaded copy's own logic must print nothing a stub prints: an
|
|
18947
|
+
# empty CLI for mail-hook, and no `openspec/` for session-start.
|
|
18948
|
+
quiet_cli = tmp / "quiet-cli.js"
|
|
18949
|
+
write_text(quiet_cli, "process.exit(0);\n")
|
|
18950
|
+
base_env = {"KEEL_CLI": f'node "{quiet_cli}"'}
|
|
18951
|
+
event = json.dumps({"hook_event_name": "SessionStart", "cwd": str(cwd), "probe": "stdin-bytes"})
|
|
18952
|
+
|
|
18953
|
+
def run(script: str, extra: dict[str, str] | None = None) -> subprocess.CompletedProcess[str]:
|
|
18954
|
+
args = ["session-start"] if script == "mail-hook.js" else []
|
|
18955
|
+
env = dict(base_env)
|
|
18956
|
+
env.update(extra or {})
|
|
18957
|
+
return run_hook_script(loaded / "plugins/keel/scripts" / script, args, event, cwd, env)
|
|
18958
|
+
|
|
18959
|
+
# M1 — an installed, newer, same-major copy runs, with the same input.
|
|
18960
|
+
write_install_record(plugins_dir, newer)
|
|
18961
|
+
for script in stubs:
|
|
18962
|
+
result = run(script, {"HANDOFF_STUB_STATUS": "3"})
|
|
18963
|
+
seen = stub_output(result)
|
|
18964
|
+
if seen is None:
|
|
18965
|
+
report(f"{label} {script} 5.0.0 did not hand off to installed 5.1.0: "
|
|
18966
|
+
f"stdout={result.stdout!r} stderr={result.stderr!r}")
|
|
18967
|
+
return 1
|
|
18968
|
+
expected_args = ["session-start"] if script == "mail-hook.js" else []
|
|
18969
|
+
problems = []
|
|
18970
|
+
if seen["stub"] != "5.1.0" or seen["script"] != script:
|
|
18971
|
+
problems.append(f"ran {seen['script']} at {seen['stub']}")
|
|
18972
|
+
if seen["argv"] != expected_args:
|
|
18973
|
+
problems.append(f"argv {seen['argv']!r}")
|
|
18974
|
+
if seen["input"] != event:
|
|
18975
|
+
problems.append(f"stdin {seen['input']!r}")
|
|
18976
|
+
if seen["forwarded"] != "5.0.0":
|
|
18977
|
+
problems.append(f"KEEL_HOOK_FORWARDED={seen['forwarded']!r}")
|
|
18978
|
+
if Path(seen["root"] or "").resolve() != newer.resolve():
|
|
18979
|
+
problems.append(f"CLAUDE_PLUGIN_ROOT={seen['root']!r}")
|
|
18980
|
+
if result.returncode != 3:
|
|
18981
|
+
problems.append(f"exit {result.returncode}, not the stub's 3")
|
|
18982
|
+
if problems:
|
|
18983
|
+
report(f"{label} {script} handed off wrongly: {'; '.join(problems)}")
|
|
18984
|
+
return 1
|
|
18985
|
+
|
|
18986
|
+
# Every other case runs the loaded script's own logic.
|
|
18987
|
+
cases = [
|
|
18988
|
+
("the record names the loaded install", lambda: write_install_record(plugins_dir, loaded), {}),
|
|
18989
|
+
("the record names a different major", lambda: write_install_record(plugins_dir, cache / "6.0.0"), {}),
|
|
18990
|
+
("the recorded path does not exist", lambda: write_install_record(plugins_dir, cache / "5.9.0"), {}),
|
|
18991
|
+
("the recorded tree lacks the script", lambda: write_install_record(plugins_dir, lacking), {}),
|
|
18992
|
+
("there is no install record", lambda: (plugins_dir / "installed_plugins.json").unlink(), {}),
|
|
18993
|
+
("the run is already a hand-off", lambda: write_install_record(plugins_dir, newer),
|
|
18994
|
+
{"KEEL_HOOK_FORWARDED": "4.9.0"}),
|
|
18995
|
+
]
|
|
18996
|
+
for name, arrange, extra in cases:
|
|
18997
|
+
arrange()
|
|
18998
|
+
for script in stubs:
|
|
18999
|
+
result = run(script, extra)
|
|
19000
|
+
if stub_output(result) is not None:
|
|
19001
|
+
report(f"{label} {script} handed off although {name}: {result.stdout!r}")
|
|
19002
|
+
return 1
|
|
19003
|
+
|
|
19004
|
+
# Codex resolves the plugin root per hook call, so a Codex-shaped
|
|
19005
|
+
# install — the plugin directory itself is the cached root — never hands off.
|
|
19006
|
+
codex_cache = tmp / "codex-home/plugins/cache/m/keel"
|
|
19007
|
+
for version, stubbed in (("5.0.0", ()), ("5.1.0", stubs)):
|
|
19008
|
+
plugin = codex_cache / version
|
|
19009
|
+
write_text(plugin / ".codex-plugin/plugin.json",
|
|
19010
|
+
json.dumps({"name": "keel", "version": version}) + "\n")
|
|
19011
|
+
write_text(plugin / ".claude-plugin/plugin.json",
|
|
19012
|
+
json.dumps({"name": "keel", "version": version}) + "\n")
|
|
19013
|
+
for source in sorted((ROOT / PLUGIN_ROOT / "scripts").glob("*.js")):
|
|
19014
|
+
body = HANDOFF_STUB if source.name in stubbed else source.read_text(encoding="utf-8")
|
|
19015
|
+
write_text(plugin / "scripts" / source.name, body)
|
|
19016
|
+
write_install_record(tmp / "codex-home/plugins", codex_cache / "5.1.0")
|
|
19017
|
+
result = run_hook_script(codex_cache / "5.0.0/scripts/session-start.js", [], event, cwd, base_env)
|
|
19018
|
+
if stub_output(result) is not None:
|
|
19019
|
+
report(f"{label} a Codex-shaped install handed off: {result.stdout!r}")
|
|
19020
|
+
return 1
|
|
19021
|
+
|
|
19022
|
+
if "hook-hands-off-to-installed-update" not in {name for name, _ in SCENARIOS}:
|
|
19023
|
+
report(f"{label} scenario is not registered.")
|
|
19024
|
+
return 1
|
|
19025
|
+
report("hook-hands-off-to-installed-update scenario passed.")
|
|
19026
|
+
return 0
|
|
19027
|
+
|
|
19028
|
+
|
|
19029
|
+
def validate_guard_keeps_loaded_logic_under_manifest_scenario() -> int:
|
|
19030
|
+
"""Issue #204: the write guard waits for the active task before adopting.
|
|
19031
|
+
|
|
19032
|
+
While a task's guard manifest exists, the guard the session loaded keeps
|
|
19033
|
+
deciding, so a mid-task update cannot change what is allowed. The first
|
|
19034
|
+
check after the manifest is gone runs the installed copy, and a copy that
|
|
19035
|
+
cannot run leaves the loaded guard's decision in place.
|
|
19036
|
+
"""
|
|
19037
|
+
label = "guard-keeps-loaded-logic-under-manifest:"
|
|
19038
|
+
with tempfile.TemporaryDirectory(prefix="keel-handoff-guard-", ignore_cleanup_errors=True) as raw:
|
|
19039
|
+
tmp = Path(raw)
|
|
19040
|
+
plugins_dir = tmp / "plugins"
|
|
19041
|
+
cache = plugins_dir / "cache/m/keel"
|
|
19042
|
+
loaded = plant_handoff_package(cache / "5.0.0", "5.0.0")
|
|
19043
|
+
newer = plant_handoff_package(cache / "5.1.0", "5.1.0", stubs=("pretooluse-guard.js",))
|
|
19044
|
+
write_install_record(plugins_dir, newer)
|
|
19045
|
+
|
|
19046
|
+
repo = tmp / "repo"
|
|
19047
|
+
repo.mkdir()
|
|
19048
|
+
write_text(repo / "openspec/changes/demo/tasks.md", guard_task_fixture())
|
|
19049
|
+
write_text(repo / "src/feature.js", "// fixture\n")
|
|
19050
|
+
gate = run_keel(repo, "gate", "task-start", "--change", "demo", "--task", "1.1", "--json")
|
|
19051
|
+
manifest = repo / "keel/guard.json"
|
|
19052
|
+
if gate.returncode != 0 or not manifest.is_file():
|
|
19053
|
+
report(f"{label} the fixture task did not start a guard: {gate.stdout}{gate.stderr}")
|
|
19054
|
+
return 1
|
|
19055
|
+
guard = loaded / "plugins/keel/scripts/pretooluse-guard.js"
|
|
19056
|
+
event = json.dumps(edit_event(repo, repo / "b.txt", "Write"))
|
|
19057
|
+
|
|
19058
|
+
under = run_hook_script(guard, [], event, repo)
|
|
19059
|
+
decision = pretooluse_decision(under) if stub_output(under) is None else None
|
|
19060
|
+
if stub_output(under) is not None:
|
|
19061
|
+
report(f"{label} the guard handed off while a manifest was active: {under.stdout!r}")
|
|
19062
|
+
return 1
|
|
19063
|
+
if not decision or decision.get("permissionDecision") != "deny":
|
|
19064
|
+
report(f"{label} the loaded guard did not deny b.txt under the manifest: {decision!r}")
|
|
19065
|
+
return 1
|
|
19066
|
+
|
|
19067
|
+
manifest.unlink()
|
|
19068
|
+
after = run_hook_script(guard, [], event, repo)
|
|
19069
|
+
if stub_output(after) is None:
|
|
19070
|
+
report(f"{label} the guard did not hand off once the manifest was gone: "
|
|
19071
|
+
f"stdout={after.stdout!r} stderr={after.stderr!r}")
|
|
19072
|
+
return 1
|
|
19073
|
+
|
|
19074
|
+
# A copy that cannot finish in time leaves the loaded guard's decision.
|
|
19075
|
+
# With no manifest the loaded guard allows silently, so the fallback is
|
|
19076
|
+
# observable as empty output rather than the stub's.
|
|
19077
|
+
slow = run_hook_script(guard, [], event, repo,
|
|
19078
|
+
{"HANDOFF_STUB_SLEEP_MS": "5000", "KEEL_HOOK_FORWARD_TIMEOUT_MS": "300"})
|
|
19079
|
+
if stub_output(slow) is not None:
|
|
19080
|
+
report(f"{label} a timed-out hand-off still relayed the newer guard: {slow.stdout!r}")
|
|
19081
|
+
return 1
|
|
19082
|
+
if slow.returncode != 0:
|
|
19083
|
+
report(f"{label} a timed-out hand-off made the guard exit {slow.returncode}: {slow.stderr!r}")
|
|
19084
|
+
return 1
|
|
19085
|
+
if slow.stdout.strip():
|
|
19086
|
+
report(f"{label} a timed-out hand-off did not leave the loaded guard's silent allow: {slow.stdout!r}")
|
|
19087
|
+
return 1
|
|
19088
|
+
|
|
19089
|
+
if "guard-keeps-loaded-logic-under-manifest" not in {name for name, _ in SCENARIOS}:
|
|
19090
|
+
report(f"{label} scenario is not registered.")
|
|
19091
|
+
return 1
|
|
19092
|
+
report("guard-keeps-loaded-logic-under-manifest scenario passed.")
|
|
19093
|
+
return 0
|
|
19094
|
+
|
|
19095
|
+
|
|
19096
|
+
def plant_real_package(root: Path, version: str) -> Path:
|
|
19097
|
+
"""A cached Claude install made from this working tree's real package,
|
|
19098
|
+
stamped with `version`, so its hooks run their real logic end to end."""
|
|
19099
|
+
for part in ("bin", "src", "scripts", "plugins", "assets", ".claude-plugin"):
|
|
19100
|
+
shutil.copytree(ROOT / part, root / part,
|
|
19101
|
+
ignore=shutil.ignore_patterns("__pycache__", "*.pyc"))
|
|
19102
|
+
pkg = json.loads((ROOT / "package.json").read_text(encoding="utf-8"))
|
|
19103
|
+
pkg["version"] = version
|
|
19104
|
+
write_text(root / "package.json", json.dumps(pkg, indent=2) + "\n")
|
|
19105
|
+
for manifest in (root / ".claude-plugin/plugin.json",
|
|
19106
|
+
root / "plugins/keel/.claude-plugin/plugin.json"):
|
|
19107
|
+
data = json.loads(manifest.read_text(encoding="utf-8"))
|
|
19108
|
+
data["version"] = version
|
|
19109
|
+
write_text(manifest, json.dumps(data, indent=2) + "\n")
|
|
19110
|
+
if (ROOT / "node_modules").exists():
|
|
19111
|
+
(root / "node_modules").symlink_to(ROOT / "node_modules", target_is_directory=True)
|
|
19112
|
+
return root
|
|
19113
|
+
|
|
19114
|
+
|
|
19115
|
+
def validate_adopted_update_is_silent_unless_reload_scenario() -> int:
|
|
19116
|
+
"""Issue #204: an adopted update says nothing unless a reload is needed.
|
|
19117
|
+
|
|
19118
|
+
A handed-off SessionStart runs as the installed version, so with the CLI
|
|
19119
|
+
and protocol at that version there is no drift to report. What the hand-off
|
|
19120
|
+
cannot bring forward is what the host loaded at session start — skills,
|
|
19121
|
+
agents, and declared hooks — and only a difference there earns a line,
|
|
19122
|
+
naming `/reload-plugins` and nothing else.
|
|
19123
|
+
"""
|
|
19124
|
+
label = "adopted-update-is-silent-unless-reload:"
|
|
19125
|
+
event = {"hook_event_name": "SessionStart", "source": "clear"}
|
|
19126
|
+
with tempfile.TemporaryDirectory(prefix="keel-adopt-", ignore_cleanup_errors=True) as raw:
|
|
19127
|
+
tmp = Path(raw)
|
|
19128
|
+
plugins_dir = tmp / "plugins"
|
|
19129
|
+
cache = plugins_dir / "cache/m/keel"
|
|
19130
|
+
loaded = plant_real_package(cache / "5.0.0", "5.0.0")
|
|
19131
|
+
newer = plant_real_package(cache / "5.1.0", "5.1.0")
|
|
19132
|
+
write_install_record(plugins_dir, newer)
|
|
19133
|
+
|
|
19134
|
+
repo = tmp / "repo"
|
|
19135
|
+
write_text(repo / "openspec/changes/demo/tasks.md", task_contract_fixture())
|
|
19136
|
+
write_text(
|
|
19137
|
+
repo / "AGENTS.md",
|
|
19138
|
+
"# Keel v5.1.0 Agent Protocol\n\n<!-- keel:start version=5.1.0 -->\n"
|
|
19139
|
+
"## Session Start\n<!-- keel:end -->\n",
|
|
19140
|
+
)
|
|
19141
|
+
subprocess.run(["git", "init", "-q", str(repo)], check=True)
|
|
19142
|
+
# No `keel` on PATH, so the suite rather than the developer's global
|
|
19143
|
+
# install decides whether a PATH copy is compared.
|
|
19144
|
+
bin_dir = tmp / "bin"
|
|
19145
|
+
bin_dir.mkdir()
|
|
19146
|
+
for tool in ("node", "git"):
|
|
19147
|
+
found = shutil.which(tool)
|
|
19148
|
+
if found:
|
|
19149
|
+
(bin_dir / tool).symlink_to(found)
|
|
19150
|
+
env = {"PATH": str(bin_dir) + os.pathsep + "/usr/bin" + os.pathsep + "/bin"}
|
|
19151
|
+
|
|
19152
|
+
def channels() -> tuple[str, str]:
|
|
19153
|
+
run = run_session_start_hook(
|
|
19154
|
+
repo, event, keel_cli=None, plugin_root=loaded / "plugins/keel", extra_env=env
|
|
19155
|
+
)
|
|
19156
|
+
return session_start_context(run) or "", session_start_message(run) or ""
|
|
19157
|
+
|
|
19158
|
+
context, human = channels()
|
|
19159
|
+
for name, text in (("additionalContext", context), ("systemMessage", human)):
|
|
19160
|
+
lowered = text.lower()
|
|
19161
|
+
if "fallback" in lowered:
|
|
19162
|
+
report(f"{label} {name} is the hook's fallback, so the handed-off SessionStart "
|
|
19163
|
+
f"did not reach a working CLI: {text!r}")
|
|
19164
|
+
return 1
|
|
19165
|
+
if "projection" not in lowered and "keel:" not in lowered:
|
|
19166
|
+
report(f"{label} {name} carries no projection: {text!r}")
|
|
19167
|
+
return 1
|
|
19168
|
+
if "versions disagree" in lowered or "/reload-plugins" in lowered or "5.0.0" in text:
|
|
19169
|
+
report(f"{label} {name} reported versions or a reload after a compatible, "
|
|
19170
|
+
f"identical update: {text!r}")
|
|
19171
|
+
return 1
|
|
19172
|
+
|
|
19173
|
+
skill = next((newer / "plugins/keel/skills").rglob("SKILL.md"))
|
|
19174
|
+
skill.write_text(skill.read_text(encoding="utf-8") + "\nChanged in 5.1.0.\n", encoding="utf-8")
|
|
19175
|
+
context, human = channels()
|
|
19176
|
+
for name, text in (("additionalContext", context), ("systemMessage", human)):
|
|
19177
|
+
lowered = text.lower()
|
|
19178
|
+
lines = [line for line in text.splitlines() if "/reload-plugins" in line]
|
|
19179
|
+
if len(lines) != 1:
|
|
19180
|
+
report(f"{label} {name} carries {len(lines)} lines naming /reload-plugins "
|
|
19181
|
+
f"after a skill changed, not one: {text!r}")
|
|
19182
|
+
return 1
|
|
19183
|
+
line = lines[0].lower()
|
|
19184
|
+
if "5.1.0" not in line or "skill" not in line:
|
|
19185
|
+
report(f"{label} {name} does not name 5.1.0 and the skills: {lines[0]!r}")
|
|
19186
|
+
return 1
|
|
19187
|
+
if "claude plugin update" in lowered:
|
|
19188
|
+
report(f"{label} {name} named an update command for an installed update: {text!r}")
|
|
19189
|
+
return 1
|
|
19190
|
+
|
|
19191
|
+
if "adopted-update-is-silent-unless-reload" not in {name for name, _ in SCENARIOS}:
|
|
19192
|
+
report(f"{label} scenario is not registered.")
|
|
19193
|
+
return 1
|
|
19194
|
+
report("adopted-update-is-silent-unless-reload scenario passed.")
|
|
19195
|
+
return 0
|
|
19196
|
+
|
|
19197
|
+
|
|
19198
|
+
# One fake for npm, claude, and codex. It appends its argv to FAKE_LOG and keeps
|
|
19199
|
+
# each host's installed Keel version in FAKE_STATE, so `plugin list --json`
|
|
19200
|
+
# answers 5.0.0 before the host's update command and 5.1.0 after it.
|
|
19201
|
+
UPDATE_FAKE = r"""const fs = require("fs");
|
|
19202
|
+
const path = require("path");
|
|
19203
|
+
const host = process.env.FAKE_HOST;
|
|
19204
|
+
const args = process.argv.slice(2);
|
|
19205
|
+
fs.appendFileSync(process.env.FAKE_LOG, JSON.stringify([host, ...args]) + "\n");
|
|
19206
|
+
const stateFile = process.env.FAKE_STATE;
|
|
19207
|
+
const state = fs.existsSync(stateFile) ? JSON.parse(fs.readFileSync(stateFile, "utf8")) : {};
|
|
19208
|
+
const save = () => fs.writeFileSync(stateFile, JSON.stringify(state));
|
|
19209
|
+
const version = state[host] || "5.0.0";
|
|
19210
|
+
const failOn = process.env[`FAKE_FAIL_${host.toUpperCase()}`] || "";
|
|
19211
|
+
if (failOn && args.join(" ").includes(failOn)) process.exit(1);
|
|
19212
|
+
if (host === "npm") {
|
|
19213
|
+
if (args[0] === "pack") {
|
|
19214
|
+
const dest = args[args.indexOf("--pack-destination") + 1];
|
|
19215
|
+
fs.writeFileSync(path.join(dest, "christang-keel-5.1.0.tgz"), "");
|
|
19216
|
+
process.stdout.write(JSON.stringify([{ filename: "christang-keel-5.1.0.tgz" }]));
|
|
19217
|
+
}
|
|
19218
|
+
process.exit(0);
|
|
19219
|
+
}
|
|
19220
|
+
const joined = args.join(" ");
|
|
19221
|
+
if (joined === "plugin list --json") {
|
|
19222
|
+
if (host === "claude") {
|
|
19223
|
+
process.stdout.write(JSON.stringify([{ id: "keel@keel-marketplace", version,
|
|
19224
|
+
installPath: `/fake/claude/cache/keel-marketplace/keel/${version}` }]));
|
|
19225
|
+
} else {
|
|
19226
|
+
process.stdout.write(JSON.stringify({ installed: [{ pluginId: "keel@keel-marketplace", name: "keel",
|
|
19227
|
+
marketplaceName: "keel-marketplace", version, installed: true,
|
|
19228
|
+
source: { source: "local", path: process.env.FAKE_CODEX_SOURCE },
|
|
19229
|
+
marketplaceSource: { sourceType: process.env.FAKE_CODEX_MARKET_TYPE || "git",
|
|
19230
|
+
source: "https://github.com/TanglmChris/keel.git" } }], available: [] }));
|
|
19231
|
+
}
|
|
19232
|
+
process.exit(0);
|
|
19233
|
+
}
|
|
19234
|
+
if (joined === "plugin update keel@keel-marketplace" || joined === "plugin add keel@keel-marketplace") {
|
|
19235
|
+
state[host] = "5.1.0";
|
|
19236
|
+
save();
|
|
19237
|
+
}
|
|
19238
|
+
process.exit(0);
|
|
19239
|
+
"""
|
|
19240
|
+
|
|
19241
|
+
|
|
19242
|
+
def validate_update_covers_installed_hosts_scenario() -> int:
|
|
19243
|
+
"""Issue #204: one owner-run `keel --update` covers every installed component.
|
|
19244
|
+
|
|
19245
|
+
After the CLI, it updates the Claude and Codex plugins through each host's
|
|
19246
|
+
own documented commands, and reports one line per component that says what
|
|
19247
|
+
changed, when it applies, and what the owner must still do.
|
|
19248
|
+
"""
|
|
19249
|
+
label = "update-covers-installed-hosts:"
|
|
19250
|
+
with tempfile.TemporaryDirectory(prefix="keel-update-hosts-", ignore_cleanup_errors=True) as raw:
|
|
19251
|
+
tmp = Path(raw)
|
|
19252
|
+
fake = tmp / "fake.js"
|
|
19253
|
+
write_text(fake, UPDATE_FAKE)
|
|
19254
|
+
launchers = {}
|
|
19255
|
+
for host in ("npm", "claude", "codex"):
|
|
19256
|
+
launcher = tmp / f"fake-{host}"
|
|
19257
|
+
write_text(launcher, f'#!/bin/sh\nFAKE_HOST={host} exec node "{fake}" "$@"\n')
|
|
19258
|
+
launcher.chmod(0o755)
|
|
19259
|
+
launchers[host] = launcher
|
|
19260
|
+
codex_home = tmp / "codex-home"
|
|
19261
|
+
installed_hooks = codex_home / "plugins/cache/keel-marketplace/keel/5.0.0/hooks/codex.json"
|
|
19262
|
+
source = tmp / "codex-source"
|
|
19263
|
+
hooks = (ROOT / PLUGIN_ROOT / "hooks/codex.json").read_text(encoding="utf-8")
|
|
19264
|
+
write_text(installed_hooks, hooks)
|
|
19265
|
+
write_text(source / "hooks/codex.json", hooks)
|
|
19266
|
+
|
|
19267
|
+
def update(*extra: str, env_extra: dict[str, str] | None = None):
|
|
19268
|
+
log = tmp / "log.jsonl"
|
|
19269
|
+
state = tmp / "state.json"
|
|
19270
|
+
for stale in (log, state):
|
|
19271
|
+
if stale.exists():
|
|
19272
|
+
stale.unlink()
|
|
19273
|
+
log.write_text("")
|
|
19274
|
+
env = dict(os.environ)
|
|
19275
|
+
env.update({
|
|
19276
|
+
"KEEL_UPDATE_NPM": str(launchers["npm"]),
|
|
19277
|
+
"KEEL_UPDATE_CLAUDE": str(launchers["claude"]),
|
|
19278
|
+
"KEEL_UPDATE_CODEX": str(launchers["codex"]),
|
|
19279
|
+
"CODEX_HOME": str(codex_home),
|
|
19280
|
+
"FAKE_LOG": str(log), "FAKE_STATE": str(state),
|
|
19281
|
+
"FAKE_CODEX_SOURCE": str(source),
|
|
19282
|
+
})
|
|
19283
|
+
env.pop("KEEL_UPDATE_SOURCE", None)
|
|
19284
|
+
env.update(env_extra or {})
|
|
19285
|
+
result = subprocess.run(["node", str(ROOT / "bin/keel.js"), "--update", *extra], cwd=tmp, env=env,
|
|
19286
|
+
text=True, capture_output=True, check=False, timeout=60)
|
|
19287
|
+
calls = [json.loads(line) for line in log.read_text().splitlines() if line.strip()]
|
|
19288
|
+
return result, [c for c in calls if c[1:] != ["plugin", "list", "--json"]]
|
|
19289
|
+
|
|
19290
|
+
def line_for(output: str, component: str) -> str:
|
|
19291
|
+
found = [l for l in output.splitlines() if l.startswith(f"keel update: {component}:")]
|
|
19292
|
+
return found[0] if len(found) == 1 else ""
|
|
19293
|
+
|
|
19294
|
+
result, calls = update()
|
|
19295
|
+
expected = [
|
|
19296
|
+
["npm", "pack"], ["npm", "install", "-g"],
|
|
19297
|
+
["claude", "plugin", "marketplace", "update", "keel-marketplace"],
|
|
19298
|
+
["claude", "plugin", "update", "keel@keel-marketplace"],
|
|
19299
|
+
["codex", "plugin", "marketplace", "upgrade", "keel-marketplace"],
|
|
19300
|
+
["codex", "plugin", "add", "keel@keel-marketplace"],
|
|
19301
|
+
]
|
|
19302
|
+
got = [c[:len(e)] for c, e in zip(calls, expected)]
|
|
19303
|
+
if result.returncode != 0 or got != expected or len(calls) != len(expected):
|
|
19304
|
+
report(f"{label} the update did not run the CLI then each host's commands once, in order: "
|
|
19305
|
+
f"exit={result.returncode} calls={calls!r} stderr={result.stderr!r}")
|
|
19306
|
+
return 1
|
|
19307
|
+
claude_line = line_for(result.stdout, "claude plugin")
|
|
19308
|
+
codex_line = line_for(result.stdout, "codex plugin")
|
|
19309
|
+
cli_line = line_for(result.stdout, "cli")
|
|
19310
|
+
for name, line, needles in (
|
|
19311
|
+
("cli", cli_line, ["next command"]),
|
|
19312
|
+
("claude plugin", claude_line, ["5.0.0 -> 5.1.0", "next hook call", "/reload-plugins"]),
|
|
19313
|
+
("codex plugin", codex_line, ["5.0.0 -> 5.1.0", "next hook call"]),
|
|
19314
|
+
):
|
|
19315
|
+
missing = [n for n in needles if n not in line]
|
|
19316
|
+
if not line or missing:
|
|
19317
|
+
report(f"{label} the {name} line is missing or lacks {missing!r}: {result.stdout!r}")
|
|
19318
|
+
return 1
|
|
19319
|
+
if "/hooks" in codex_line:
|
|
19320
|
+
report(f"{label} the Codex line asked for hook review with unchanged hooks: {codex_line!r}")
|
|
19321
|
+
return 1
|
|
19322
|
+
|
|
19323
|
+
result, calls = update(env_extra={"KEEL_UPDATE_CODEX": str(tmp / "no-such-codex")})
|
|
19324
|
+
codex_line = line_for(result.stdout, "codex plugin")
|
|
19325
|
+
if result.returncode != 0:
|
|
19326
|
+
report(f"{label} a missing Codex failed the update: exit={result.returncode} {result.stdout!r}")
|
|
19327
|
+
return 1
|
|
19328
|
+
if "absent" not in codex_line:
|
|
19329
|
+
report(f"{label} a missing Codex was not reported absent: {codex_line!r}")
|
|
19330
|
+
return 1
|
|
19331
|
+
if any(c[0] == "codex" for c in calls):
|
|
19332
|
+
report(f"{label} a missing Codex still received commands: {calls!r}")
|
|
19333
|
+
return 1
|
|
19334
|
+
|
|
19335
|
+
result, calls = update(env_extra={"FAKE_CODEX_MARKET_TYPE": "local"})
|
|
19336
|
+
codex_line = line_for(result.stdout, "codex plugin")
|
|
19337
|
+
if "manual" not in codex_line:
|
|
19338
|
+
report(f"{label} a local Codex marketplace was not reported manual: {codex_line!r}")
|
|
19339
|
+
return 1
|
|
19340
|
+
if "codex plugin marketplace add TanglmChris/keel --ref main" not in codex_line:
|
|
19341
|
+
report(f"{label} the manual Codex line does not name the Git marketplace command: {codex_line!r}")
|
|
19342
|
+
return 1
|
|
19343
|
+
if any(c[0] == "codex" for c in calls):
|
|
19344
|
+
report(f"{label} a local Codex marketplace still received commands: {calls!r}")
|
|
19345
|
+
return 1
|
|
19346
|
+
|
|
19347
|
+
write_text(source / "hooks/codex.json", hooks.replace('"timeout": 15', '"timeout": 16'))
|
|
19348
|
+
result, calls = update()
|
|
19349
|
+
write_text(source / "hooks/codex.json", hooks)
|
|
19350
|
+
if "/hooks" not in line_for(result.stdout, "codex plugin"):
|
|
19351
|
+
report(f"{label} changed Codex hook definitions were not named: {result.stdout!r}")
|
|
19352
|
+
return 1
|
|
19353
|
+
|
|
19354
|
+
result, calls = update(env_extra={"FAKE_FAIL_CLAUDE": "plugin update"})
|
|
19355
|
+
claude_line = line_for(result.stdout, "claude plugin")
|
|
19356
|
+
codex_line = line_for(result.stdout, "codex plugin")
|
|
19357
|
+
if result.returncode == 0:
|
|
19358
|
+
report(f"{label} a failed Claude update left the exit status 0: {result.stdout!r}")
|
|
19359
|
+
return 1
|
|
19360
|
+
if "failed" not in claude_line:
|
|
19361
|
+
report(f"{label} a failed Claude update was not reported failed: {claude_line!r}")
|
|
19362
|
+
return 1
|
|
19363
|
+
if "5.0.0 -> 5.1.0" not in codex_line:
|
|
19364
|
+
report(f"{label} Codex did not still update after Claude failed: {codex_line!r}")
|
|
19365
|
+
return 1
|
|
19366
|
+
|
|
19367
|
+
result, calls = update("--dry-run")
|
|
19368
|
+
if result.returncode != 0:
|
|
19369
|
+
report(f"{label} --dry-run failed: exit={result.returncode} {result.stderr!r}")
|
|
19370
|
+
return 1
|
|
19371
|
+
if calls:
|
|
19372
|
+
report(f"{label} --dry-run ran commands: {calls!r}")
|
|
19373
|
+
return 1
|
|
19374
|
+
for planned in ("claude plugin update keel@keel-marketplace", "codex plugin add keel@keel-marketplace"):
|
|
19375
|
+
if planned not in result.stdout:
|
|
19376
|
+
report(f"{label} --dry-run did not print `{planned}`: {result.stdout!r}")
|
|
19377
|
+
return 1
|
|
19378
|
+
|
|
19379
|
+
if "update-covers-installed-hosts" not in {name for name, _ in SCENARIOS}:
|
|
19380
|
+
report(f"{label} scenario is not registered.")
|
|
19381
|
+
return 1
|
|
19382
|
+
report("update-covers-installed-hosts scenario passed.")
|
|
19383
|
+
return 0
|
|
19384
|
+
|
|
19385
|
+
|
|
19386
|
+
OVERLAY_START_RE = re.compile(r"<!--\s*keel:openspec-surface-overlay version=([^ ]+) -->")
|
|
19387
|
+
OVERLAY_BLOCK_RE = re.compile(
|
|
19388
|
+
r"<!--\s*keel:openspec-surface-overlay(?:\s+[^>]*)?\s*-->[\s\S]*?"
|
|
19389
|
+
r"<!--\s*keel:openspec-surface-overlay:end\s*-->"
|
|
19390
|
+
)
|
|
19391
|
+
|
|
19392
|
+
|
|
19393
|
+
def validate_refresh_covers_every_target_scenario() -> int:
|
|
19394
|
+
"""Issue #204: a protocol refresh brings every installed target forward.
|
|
19395
|
+
|
|
19396
|
+
Each project's own session refreshes its protocol, usually through the one
|
|
19397
|
+
target that session runs on. A refresh that touched only that target left
|
|
19398
|
+
another target's overlays at an old version (TanglmChris/rtl_ppa_prj, Codex
|
|
19399
|
+
at 5.84.0 after a Claude refresh to 5.88.0), and doctor called them
|
|
19400
|
+
missing, which sends the reader looking for files that are there.
|
|
19401
|
+
"""
|
|
19402
|
+
label = "refresh-covers-every-target:"
|
|
19403
|
+
version = json.loads((ROOT / "package.json").read_text(encoding="utf-8"))["version"]
|
|
19404
|
+
with tempfile.TemporaryDirectory(prefix="keel-refresh-targets-", ignore_cleanup_errors=True) as raw:
|
|
19405
|
+
repo = Path(raw) / "repo"
|
|
19406
|
+
repo.mkdir()
|
|
19407
|
+
subprocess.run(["git", "init", "-q", str(repo)], check=True)
|
|
19408
|
+
# `--install` per target after both inits, because before this change
|
|
19409
|
+
# `--init --target codex` rewrote Claude's surfaces through OpenSpec and
|
|
19410
|
+
# put back only Codex's overlays.
|
|
19411
|
+
for action, target in (("--init", "claude"), ("--init", "codex"),
|
|
19412
|
+
("--install", "claude"), ("--install", "codex")):
|
|
19413
|
+
setup = run_keel(repo, action, "--target", target)
|
|
19414
|
+
if setup.returncode != 0:
|
|
19415
|
+
report(f"{label} {action} --target {target} failed: {setup.stdout}{setup.stderr}")
|
|
19416
|
+
return 1
|
|
19417
|
+
surfaces = sorted(
|
|
19418
|
+
[p for p in (repo / ".claude").rglob("*.md") if OVERLAY_START_RE.search(p.read_text(encoding="utf-8"))]
|
|
19419
|
+
+ [p for p in (repo / ".agents/skills").rglob("SKILL.md")
|
|
19420
|
+
if OVERLAY_START_RE.search(p.read_text(encoding="utf-8"))]
|
|
19421
|
+
)
|
|
19422
|
+
codex = [p for p in surfaces if ".agents" in p.parts]
|
|
19423
|
+
if not codex or len(codex) == len(surfaces):
|
|
19424
|
+
report(f"{label} the fixture does not carry overlays on both targets: {surfaces!r}")
|
|
19425
|
+
return 1
|
|
19426
|
+
bodies = {}
|
|
19427
|
+
for surface in surfaces:
|
|
19428
|
+
text = OVERLAY_START_RE.sub("<!-- keel:openspec-surface-overlay version=5.0.0 -->",
|
|
19429
|
+
surface.read_text(encoding="utf-8"))
|
|
19430
|
+
surface.write_text(text, encoding="utf-8")
|
|
19431
|
+
bodies[surface] = OVERLAY_BLOCK_RE.sub("", text)
|
|
19432
|
+
|
|
19433
|
+
doctor = run_keel(repo, "--doctor", "--target", "claude")
|
|
19434
|
+
codex_line = next((l for l in doctor.stdout.splitlines() if l.startswith("Codex Keel")), "")
|
|
19435
|
+
if "stale" not in codex_line:
|
|
19436
|
+
report(f"{label} doctor did not report the old Codex overlays stale: {codex_line!r}")
|
|
19437
|
+
return 1
|
|
19438
|
+
if "missing" in codex_line:
|
|
19439
|
+
report(f"{label} doctor called present Codex overlays missing: {codex_line!r}")
|
|
19440
|
+
return 1
|
|
19441
|
+
if "keel --install" not in codex_line:
|
|
19442
|
+
report(f"{label} doctor's stale Codex line names no refresh command: {codex_line!r}")
|
|
19443
|
+
return 1
|
|
19444
|
+
|
|
19445
|
+
refresh = run_keel(repo, "--install", "--target", "claude")
|
|
19446
|
+
if refresh.returncode != 0:
|
|
19447
|
+
report(f"{label} --install --target claude failed: {refresh.stdout}{refresh.stderr}")
|
|
19448
|
+
return 1
|
|
19449
|
+
for surface in surfaces:
|
|
19450
|
+
text = surface.read_text(encoding="utf-8")
|
|
19451
|
+
versions = OVERLAY_START_RE.findall(text)
|
|
19452
|
+
if versions != [version]:
|
|
19453
|
+
report(f"{label} {surface.relative_to(repo)} carries overlay versions {versions!r} "
|
|
19454
|
+
f"after a Claude refresh, not one at {version}.")
|
|
19455
|
+
return 1
|
|
19456
|
+
if OVERLAY_BLOCK_RE.sub("", text) != bodies[surface]:
|
|
19457
|
+
report(f"{label} the refresh changed upstream content in {surface.relative_to(repo)}.")
|
|
19458
|
+
return 1
|
|
19459
|
+
|
|
19460
|
+
with tempfile.TemporaryDirectory(prefix="keel-refresh-one-target-", ignore_cleanup_errors=True) as raw:
|
|
19461
|
+
repo = Path(raw) / "repo"
|
|
19462
|
+
repo.mkdir()
|
|
19463
|
+
subprocess.run(["git", "init", "-q", str(repo)], check=True)
|
|
19464
|
+
run_keel(repo, "--init", "--target", "claude")
|
|
19465
|
+
refresh = run_keel(repo, "--install", "--target", "claude")
|
|
19466
|
+
created = [name for name in (".agents", ".opencode", ".codex") if (repo / name).exists()]
|
|
19467
|
+
if refresh.returncode != 0 or created:
|
|
19468
|
+
report(f"{label} a Claude-only repository gained {created!r} from a refresh "
|
|
19469
|
+
f"(exit {refresh.returncode}).")
|
|
19470
|
+
return 1
|
|
19471
|
+
|
|
19472
|
+
if "refresh-covers-every-target" not in {name for name, _ in SCENARIOS}:
|
|
19473
|
+
report(f"{label} scenario is not registered.")
|
|
19474
|
+
return 1
|
|
19475
|
+
report("refresh-covers-every-target scenario passed.")
|
|
19476
|
+
return 0
|
|
19477
|
+
|
|
19478
|
+
|
|
18837
19479
|
def validate_official_directory_entry_scenario() -> int:
|
|
18838
19480
|
"""Each release states the entry Anthropic's official directory would list.
|
|
18839
19481
|
|
|
@@ -34711,6 +35353,11 @@ SCENARIOS: tuple = (
|
|
|
34711
35353
|
("runtime-version-drift", validate_runtime_version_drift_scenario),
|
|
34712
35354
|
("plugin-runs-its-own-cli", validate_plugin_runs_its_own_cli_scenario),
|
|
34713
35355
|
("drift-names-a-pending-reload", validate_drift_names_a_pending_reload_scenario),
|
|
35356
|
+
("hook-hands-off-to-installed-update", validate_hook_hands_off_to_installed_update_scenario),
|
|
35357
|
+
("guard-keeps-loaded-logic-under-manifest", validate_guard_keeps_loaded_logic_under_manifest_scenario),
|
|
35358
|
+
("adopted-update-is-silent-unless-reload", validate_adopted_update_is_silent_unless_reload_scenario),
|
|
35359
|
+
("update-covers-installed-hosts", validate_update_covers_installed_hosts_scenario),
|
|
35360
|
+
("refresh-covers-every-target", validate_refresh_covers_every_target_scenario),
|
|
34714
35361
|
("official-directory-entry", validate_official_directory_entry_scenario),
|
|
34715
35362
|
("init-declares-plugin-auto-update", validate_init_declares_plugin_auto_update_scenario),
|
|
34716
35363
|
("context-names-the-protocol-refresh", validate_context_names_the_protocol_refresh_scenario),
|