@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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keel",
3
- "version": "5.187.0",
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,4 +1,4 @@
1
- <!-- keel:start version=5.187.0 -->
1
+ <!-- keel:start version=5.188.0 -->
2
2
  ## Keel Bootstrap
3
3
 
4
4
  - Start every session with `keel context`; OpenSpec artifacts and Git are the durable authority, and memory or transcripts may only inform.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@christang/keel",
3
- "version": "5.187.0",
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.187.0",
9
+ "version": "5.188.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@fission-ai/openspec": "^1.4.1"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@christang/keel",
3
3
  "displayName": "Keel",
4
4
  "description": "Keel OpenSpec execution discipline CLI for Claude Code, Codex, and OpenCode.",
5
- "version": "5.187.0",
5
+ "version": "5.188.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keel",
3
- "version": "5.187.0",
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.187.0",
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.187.0"
38
+ PACKAGE_VERSION = "5.188.0"
39
39
 
40
40
 
41
- PROTOCOL_VERSION = "5.187.0"
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 only mentions a marker counts as stand-in host, which claims
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(mark in text for mark in marks) or SHADOWED_PROGRAM.search(text):
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}")