@christang/keel 5.102.0 → 5.102.1

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,4 +1,4 @@
1
- <!-- keel:start version=5.102.0 -->
1
+ <!-- keel:start version=5.102.1 -->
2
2
  ## Keel Bootstrap
3
3
 
4
4
  - Start every session with `keel context`; OpenSpec artifacts and Git are the only durable authority — never native memory, goals, or transcripts.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@christang/keel",
3
- "version": "5.102.0",
3
+ "version": "5.102.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@christang/keel",
9
- "version": "5.102.0",
9
+ "version": "5.102.1",
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.102.0",
5
+ "version": "5.102.1",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keel",
3
- "version": "5.102.0",
3
+ "version": "5.102.1",
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.102.0",
3
+ "version": "5.102.1",
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",
@@ -47,8 +47,8 @@ REQUIRED_SCRIPTS = [
47
47
  "scripts/validate_plugin.py",
48
48
  ]
49
49
 
50
- PACKAGE_VERSION = "5.102.0"
51
- PROTOCOL_VERSION = "5.102.0"
50
+ PACKAGE_VERSION = "5.102.1"
51
+ PROTOCOL_VERSION = "5.102.1"
52
52
  LEGACY_MANAGED_START = "<!-- keel:start version=2.1 -->"
53
53
  OPENSPEC_SCHEMA_NAME = "keel-spec-driven"
54
54
  # Mirrors KEEL_PACKAGE_NAME in scripts/install_to_repo.py, one of the two
@@ -12052,6 +12052,93 @@ def validate_inline_code_is_concrete_scenario() -> int:
12052
12052
  return 0
12053
12053
 
12054
12054
 
12055
+ def validate_marker_words_in_capitals_scenario() -> int:
12056
+ """Issue #271: a marker word reads as a slot only in capitals.
12057
+
12058
+ `task-complete` refused Evidence reading "post and todo" because the
12059
+ unfilled-slot test matched its marker words in any case, so the name of a
12060
+ `keel chat` record kind read as an unfilled slot. Lowercase prose is
12061
+ concrete; `TODO`, `PLACEHOLDER` and `<value>` outside inline code are not.
12062
+ """
12063
+ def start(repo: Path, change: str, m1: str):
12064
+ write_text(
12065
+ repo / f"openspec/changes/{change}/tasks.md",
12066
+ task_capsule_compact_fixture().replace(
12067
+ " - M1: node test.js\n", f" - M1: {m1}\n"
12068
+ ),
12069
+ )
12070
+ return run_keel(
12071
+ repo, "gate", "task-start", "--change", change, "--task", "1.1", "--json"
12072
+ )
12073
+
12074
+ with tempfile.TemporaryDirectory(prefix="keel-marker-words-") as raw_tmp:
12075
+ repo = Path(raw_tmp)
12076
+ prose = start(repo, "prose", "node test.js lists each todo and its placeholder text")
12077
+ if prose.returncode != 0:
12078
+ report(
12079
+ "marker-words-in-capitals: a check naming a todo and a "
12080
+ "placeholder in lowercase prose was judged unfilled."
12081
+ )
12082
+ report((prose.stdout or prose.stderr).strip())
12083
+ return 1
12084
+
12085
+ # The reporter's shape: Evidence written after the task started.
12086
+ write_text(
12087
+ repo / "openspec/changes/evidence/tasks.md", task_capsule_compact_fixture()
12088
+ )
12089
+ if not record_contract_anchor(repo, "evidence"):
12090
+ report("marker-words-in-capitals: the fixture could not record its anchor.")
12091
+ return 1
12092
+ path = repo / "openspec/changes/evidence/tasks.md"
12093
+ path.write_text(
12094
+ path.read_text(encoding="utf-8").replace(
12095
+ " - M1: pending\n",
12096
+ " - M1: pass. With `--ack` on post and todo, the record is acknowledged.\n",
12097
+ ),
12098
+ encoding="utf-8",
12099
+ )
12100
+ completed = run_keel(
12101
+ repo, "gate", "task-complete", "--change", "evidence", "--task", "1.1", "--json"
12102
+ )
12103
+ slots = [
12104
+ problem.get("message", "")
12105
+ for problem in json.loads(completed.stdout).get("problems", [])
12106
+ if "unfilled" in problem.get("message", "")
12107
+ ]
12108
+ if slots:
12109
+ report(
12110
+ "marker-words-in-capitals: Evidence reading 'post and todo' was "
12111
+ f"refused as an unfilled slot: {slots}"
12112
+ )
12113
+ return 1
12114
+
12115
+ for change, m1, token in (
12116
+ ("todo", "node test.js TODO", "TODO"),
12117
+ ("upper", "node test.js PLACEHOLDER", "PLACEHOLDER"),
12118
+ ("angle", "node test.js <value>", "<value>"),
12119
+ ):
12120
+ result = start(repo, change, m1)
12121
+ problems = json.loads(result.stdout).get("problems", [])
12122
+ named = [
12123
+ problem
12124
+ for problem in problems
12125
+ if problem.get("code") == "non-concrete-verify"
12126
+ and f"`{token}`" in problem.get("message", "")
12127
+ ]
12128
+ if not named:
12129
+ report(
12130
+ f"marker-words-in-capitals: a bare {token} was not reported "
12131
+ "as non-concrete-verify naming it."
12132
+ )
12133
+ report(result.stdout.strip())
12134
+ return 1
12135
+ if "marker-words-in-capitals" not in {name for name, _ in SCENARIOS}:
12136
+ report("marker-words-in-capitals: the scenario registry does not include it.")
12137
+ return 1
12138
+ report("marker-words-in-capitals scenario passed.")
12139
+ return 0
12140
+
12141
+
12055
12142
  def validate_covers_separator_collision_scenario() -> int:
12056
12143
  """Issue #7 example 2: a requirement name containing the hierarchy separator.
12057
12144
 
@@ -37777,6 +37864,7 @@ SCENARIOS: tuple = (
37777
37864
  validate_non_concrete_verify_diagnostic_scenario,
37778
37865
  ),
37779
37866
  ("inline-code-is-concrete", validate_inline_code_is_concrete_scenario),
37867
+ ("marker-words-in-capitals", validate_marker_words_in_capitals_scenario),
37780
37868
  ("covers-separator-collision", validate_covers_separator_collision_scenario),
37781
37869
  (
37782
37870
  "unresolved-covers-names-what-failed",
@@ -26,7 +26,10 @@ const SUPPORTED_MODES = new Set([
26
26
  // rather than merely tolerated.
27
27
  const NO_WRITE_MODES = new Set(["diagnose-only", "repo-action"]);
28
28
 
29
- const UNFILLED_TOKEN = /(<[^>]+>|\bTODO\b|\bTBD\b|\bplaceholder\b)/i;
29
+ // Marker words count only in capitals, the form people write to mark something
30
+ // unfinished. In lowercase they are prose — "a todo", "the placeholder text" —
31
+ // and matching them in any case refused concrete Evidence (issue #271).
32
+ const UNFILLED_TOKEN = /(<[^>]+>|\bTODO\b|\bTBD\b|\bPLACEHOLDER\b)/;
30
33
 
31
34
  function normalizeFieldText(value) {
32
35
  return String(value || "")
@@ -726,8 +729,8 @@ function requiredFieldProblems(task) {
726
729
  `Verify contains the unfilled token \`${token}\`; compact v4 `
727
730
  + "detection requires a concrete Verify. Replace or remove that "
728
731
  + "token — the expanded v3 fields are not required. Angle "
729
- + "brackets, TODO, TBD, and the word placeholder all read as "
730
- + "unfilled, including inside prose.",
732
+ + "brackets, and TODO, TBD, or PLACEHOLDER written in capitals, "
733
+ + "read as unfilled, including inside prose.",
731
734
  },
732
735
  ];
733
736
  }