@christang/keel 5.187.0 → 5.188.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/.claude-plugin/plugin.json +1 -1
- package/assets/bootstrap/AGENTS.md +1 -1
- 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/scripts/validation/common.py +2 -2
- package/scripts/validation/evidence.py +12 -3
- package/scripts/validation/selfcheck.py +5 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.188.0",
|
|
4
4
|
"description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TanglmChris",
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christang/keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.188.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@christang/keel",
|
|
9
|
-
"version": "5.
|
|
9
|
+
"version": "5.188.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@fission-ai/openspec": "^1.4.1"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.188.0",
|
|
4
4
|
"description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TanglmChris",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.188.0",
|
|
4
4
|
"description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TanglmChris",
|
|
@@ -35,10 +35,10 @@ os.environ["KEEL_UPDATE_CLAUDE"] = str(Path(tempfile.gettempdir()) / "keel-suite
|
|
|
35
35
|
os.environ["KEEL_UPDATE_CODEX"] = str(Path(tempfile.gettempdir()) / "keel-suite-has-no-codex")
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
PACKAGE_VERSION = "5.
|
|
38
|
+
PACKAGE_VERSION = "5.188.0"
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
PROTOCOL_VERSION = "5.
|
|
41
|
+
PROTOCOL_VERSION = "5.188.0"
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
LEGACY_MANAGED_START = "<!-- keel:start version=2.1 -->"
|
|
@@ -6,8 +6,8 @@ directory, a hook payload — and none of it against a real one. Every
|
|
|
6
6
|
registered scenario is classified as deterministic or stand-in host, from
|
|
7
7
|
markers derived from Keel's own sources, through the validation helpers and
|
|
8
8
|
scripts it reaches. The classification is static and over-approximates: a
|
|
9
|
-
scenario that
|
|
10
|
-
less real evidence, never more.
|
|
9
|
+
scenario that sets a marker counts as stand-in host even when the value is
|
|
10
|
+
never used, which claims less real evidence, never more.
|
|
11
11
|
"""
|
|
12
12
|
from __future__ import annotations
|
|
13
13
|
|
|
@@ -76,16 +76,25 @@ def reached_text(function: str, found: dict[str, tuple[set[str], str]]) -> tuple
|
|
|
76
76
|
return text, seen
|
|
77
77
|
|
|
78
78
|
|
|
79
|
+
def sets(mark: str) -> re.Pattern:
|
|
80
|
+
"""Where code sets a marker rather than names it: a dict key, an item
|
|
81
|
+
assignment, `NAME=` in shell or keyword form, or an attribute assignment.
|
|
82
|
+
Naming a variable to remove or read it is not a stand-in (5.188.0)."""
|
|
83
|
+
name = re.escape(mark)
|
|
84
|
+
return re.compile(r"[\"']" + name + r"[\"']\s*:|\[\s*[\"']" + name + r"[\"']\s*\]\s*=|\b" + name + r"=|\." + name + r"\s*=")
|
|
85
|
+
|
|
86
|
+
|
|
79
87
|
def classify(scenarios) -> dict:
|
|
80
88
|
"""{"markers", "stand-in host", "deterministic", "can skip"} for the registered scenarios, in registry order."""
|
|
81
89
|
marks = markers()
|
|
90
|
+
setters = [sets(mark) for mark in marks]
|
|
82
91
|
found = definitions()
|
|
83
92
|
standin, deterministic, skippable = [], [], []
|
|
84
93
|
for name, function in scenarios:
|
|
85
94
|
defined = getattr(function, "__name__", None)
|
|
86
95
|
text, seen = reached_text(defined, found) if defined in found else ("", set())
|
|
87
96
|
# A scenario whose code cannot be read cannot be shown deterministic.
|
|
88
|
-
if defined not in found or any(
|
|
97
|
+
if defined not in found or any(setter.search(text) for setter in setters) or SHADOWED_PROGRAM.search(text):
|
|
89
98
|
standin.append(name)
|
|
90
99
|
else:
|
|
91
100
|
deterministic.append(name)
|
|
@@ -1497,6 +1497,11 @@ def validate_release_evidence_classes_scenario() -> int:
|
|
|
1497
1497
|
if "version-alignment" not in deterministic:
|
|
1498
1498
|
report(f"{label} version-alignment is not counted as deterministic.")
|
|
1499
1499
|
return 1
|
|
1500
|
+
# chat-core reaches the host's variables only through chat_environment,
|
|
1501
|
+
# which names them to remove them: a mention is not a stand-in (5.188.0).
|
|
1502
|
+
if "chat-core" not in deterministic:
|
|
1503
|
+
report(f"{label} chat-core is counted as run against a stand-in host for removing host variables.")
|
|
1504
|
+
return 1
|
|
1500
1505
|
registered = {name for name, _ in registry.SCENARIOS}
|
|
1501
1506
|
if standin & deterministic:
|
|
1502
1507
|
report(f"{label} scenarios are counted in both classes: {sorted(standin & deterministic)!r}")
|