@christang/keel 5.96.0 → 5.96.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.96.0 -->
1
+ <!-- keel:start version=5.96.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.
@@ -20,4 +20,4 @@ Prefer behavior evidence appropriate to the layer: simulation or testbench evide
20
20
 
21
21
  ## Execution and review checks
22
22
 
23
- While implementing and reviewing, prove behavior at the interface: drive reset entry and exit, valid-ready handshakes including stall and backpressure, and ordering through simulation before trusting lint; a protocol or CSR field change needs testbench evidence for both legal and illegal accesses. Watch for silent X-propagation, unregistered CDC crossings, and new reset-domain assumptions introduced by the change. In review, reject waveform screenshots without a repeatable run command, require assertion or formal evidence for invariants simulation cannot exhaustively cover, and confirm any golden trace update carries an explicit rationale tied to Acceptance.
23
+ While implementing and reviewing, prove behavior at the interface: drive reset entry and exit, valid-ready handshakes including stall and backpressure, and ordering through simulation before trusting lint; a protocol or CSR field change needs testbench evidence for both legal and illegal accesses. Watch for silent X-propagation, unregistered CDC crossings, and new reset-domain assumptions introduced by the change. Some tools silently accept a broken reference — Verilator binds an SVA to a missing signal as a dangling constant without a warning, so the assertion never fires — and a passing run proves nothing about them; such a reference needs a check of its own, such as a static name check of every bind target. In review, reject waveform screenshots without a repeatable run command, require assertion or formal evidence for invariants simulation cannot exhaustively cover, and confirm any golden trace update carries an explicit rationale tied to Acceptance.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@christang/keel",
3
- "version": "5.96.0",
3
+ "version": "5.96.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@christang/keel",
9
- "version": "5.96.0",
9
+ "version": "5.96.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.96.0",
5
+ "version": "5.96.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.96.0",
3
+ "version": "5.96.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.96.0",
3
+ "version": "5.96.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",
@@ -25,6 +25,8 @@ Read the selected task's compiled capsule: resolved Acceptance, Verify strategy
25
25
 
26
26
  Red-green strategies (`vertical-tdd`, `regression-first`) must record concrete per-label `.red` and `.green` Evidence entries for the same check; `keel gate task-complete` rejects absent or pending entries.
27
27
 
28
+ A check's `Fails with:` declares one literal its red must show. Declare one that every red of the check shares — the scenario or test label the check prints, a stable message prefix — rather than one exception type: a first red is often mixed, mostly one error with a few others, and a literal only some of them carry forces a re-record that predicts nothing new.
29
+
28
30
  A check's Evidence may read `artifact <path> sha256:<digest>` instead of retelling the output. `keel gate task-complete` checks the file exists and the digest matches, and refuses a path outside the change's own directory — archiving moves that directory, so a pointer outside it breaks. Keel hashes the bytes and reads nothing inside them: the claim the artifact supports stays yours.
29
31
 
30
32
  ## Domain lenses
@@ -47,8 +47,8 @@ REQUIRED_SCRIPTS = [
47
47
  "scripts/validate_plugin.py",
48
48
  ]
49
49
 
50
- PACKAGE_VERSION = "5.96.0"
51
- PROTOCOL_VERSION = "5.96.0"
50
+ PACKAGE_VERSION = "5.96.1"
51
+ PROTOCOL_VERSION = "5.96.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
@@ -3311,7 +3311,9 @@ def validate_chat_bridge_inbound_scenario() -> int:
3311
3311
  if " - verify" not in owner_record:
3312
3312
  report(f"{label} the owner's @verify did not become a mention:\n{owner_record}")
3313
3313
  return 1
3314
- if not signal.exists() or not signal.stat().st_size:
3314
+ # The record is written before the signal is appended (#231), so
3315
+ # wait for the signal rather than reading it once.
3316
+ if not slack.wait_for(lambda: signal.exists() and signal.stat().st_size, 5):
3315
3317
  report(f"{label} the owner's mention did not touch verify's signal file.")
3316
3318
  return 1
3317
3319
 
@@ -4321,6 +4323,9 @@ def validate_chat_owner_mention_scenario() -> int:
4321
4323
  if "decide" not in told:
4322
4324
  report(f"{label} the notice does not say which messages need @owner: {told!r}")
4323
4325
  return 1
4326
+ if "its own message" not in told:
4327
+ report(f"{label} the notice does not say a risk or decision goes in its own message: {told!r}")
4328
+ return 1
4324
4329
 
4325
4330
  run_keel(rtl, "chat", "bridge", "add", env=benv)
4326
4331
  record_id = chat_json(run_keel(rtl, "chat", "post", "soc", "@owner 需要你决定 CSR 复位值", "--json", env=benv)).get("id", "")
@@ -4353,6 +4358,38 @@ def validate_chat_owner_mention_scenario() -> int:
4353
4358
  return 0
4354
4359
 
4355
4360
 
4361
+ def validate_collected_feedback_is_recorded_scenario() -> int:
4362
+ """Feedback from rtl_ppa_prj sessions on 2026-10-05 reaches Keel's surfaces.
4363
+
4364
+ The codex catalog warns that a run can exit non-zero after its products
4365
+ exist, the general pitfalls warn against `pkill -f`, the bundled hardware
4366
+ lens names tools that silently accept a missing signal, and the tdd skill
4367
+ advises a `Fails with:` literal every red of the check shares.
4368
+ """
4369
+ label = "collected-feedback-is-recorded:"
4370
+ with tempfile.TemporaryDirectory(prefix="keel-feedback-") as raw:
4371
+ repo = Path(raw)
4372
+ subprocess.run(["git", "init", "-q"], cwd=repo, check=True)
4373
+ shown = run_keel(repo, "agents", "codex").stdout or ""
4374
+ for needle in ("result file", "non-zero", "pkill -f"):
4375
+ if needle not in shown:
4376
+ report(f"{label} `keel agents codex` does not mention {needle!r}.")
4377
+ return 1
4378
+ lens = (ROOT / "assets/lenses/hardware.md").read_text(encoding="utf-8")
4379
+ if "silently" not in lens or "missing signal" not in lens:
4380
+ report(f"{label} the hardware lens does not name tools that silently accept a missing signal.")
4381
+ return 1
4382
+ skill = (ROOT / PLUGIN_ROOT / "skills/keel-tdd-or-test-first/SKILL.md").read_text(encoding="utf-8")
4383
+ if "Fails with:" not in skill or "every red" not in skill:
4384
+ report(f"{label} the tdd skill does not advise a Fails with: literal every red shares.")
4385
+ return 1
4386
+ if "collected-feedback-is-recorded" not in {name for name, _ in SCENARIOS}:
4387
+ report(f"{label} scenario is not registered.")
4388
+ return 1
4389
+ report("collected-feedback-is-recorded scenario passed.")
4390
+ return 0
4391
+
4392
+
4356
4393
  def validate_chat_archive_scenario() -> int:
4357
4394
  """Issue #187: chat history is archived to an orphan branch, never exposed.
4358
4395
 
@@ -20774,6 +20811,9 @@ def _protocol_refresh_m2(tmp: Path) -> str | None:
20774
20811
  lines = _protocol_lines(repo)
20775
20812
  if len(lines) != 1 or "standing-authorized" not in lines[0]:
20776
20813
  return f"M2 context did not read protocol-refresh as authorized: {lines!r}"
20814
+ # Issue #238: the authorization covers the refresh, not its commit.
20815
+ if "committing it is a separate action" not in lines[0]:
20816
+ return f"M2 context does not say committing the refresh is a separate action: {lines!r}"
20777
20817
  doctor = run_keel(repo, "--doctor").stdout or ""
20778
20818
  if "protocol-refresh: authorized" not in doctor or "commit: not authorized" not in doctor:
20779
20819
  return (
@@ -32388,6 +32428,14 @@ def validate_coverage_claim_is_compared_scenario() -> int:
32388
32428
  f"{problem_text(quiet)!r}."
32389
32429
  )
32390
32430
  return 1
32431
+ # Issue #239: the warning names the identifiers that make an entry
32432
+ # compared, so a reader can tell how to make it count.
32433
+ if "D<n>, F<n>, A<n>, or Q<n>" not in said(quiet):
32434
+ report(
32435
+ f"{label}: the uncompared-entry warning does not name the "
32436
+ f"identifiers that count; {said(quiet)!r}."
32437
+ )
32438
+ return 1
32391
32439
 
32392
32440
  # D3: the report's second suggestion is unnecessary, because the
32393
32441
  # comparison already refuses the case it was aimed at.
@@ -36803,6 +36851,7 @@ SCENARIOS: tuple = (
36803
36851
  ("directory-tree-is-the-package-renamed", validate_directory_tree_is_the_package_renamed_scenario),
36804
36852
  ("init-declares-plugin-auto-update", validate_init_declares_plugin_auto_update_scenario),
36805
36853
  ("context-names-the-protocol-refresh", validate_context_names_the_protocol_refresh_scenario),
36854
+ ("collected-feedback-is-recorded", validate_collected_feedback_is_recorded_scenario),
36806
36855
  ("init-never-downgrades-openspec", validate_init_never_downgrades_openspec_scenario),
36807
36856
  ("native-plugin-marketplaces", validate_native_plugin_marketplaces_scenario),
36808
36857
  ("native-plugin-install-matrix", validate_native_plugin_install_matrix_scenario),
@@ -62,6 +62,11 @@ const BUNDLED = {
62
62
  source: "codex exec --help, codex-cli 0.159.3",
63
63
  text: "`-s` takes read-only, workspace-write, or danger-full-access. `-C` sets the directory it works in and `-o` the file its last message is written to.",
64
64
  },
65
+ {
66
+ date: "2026-10-05",
67
+ source: "rtl_ppa_prj design session, codex_wcmux run",
68
+ text: "A run can exit non-zero after its products exist: one hit its quota while tidying up and never wrote its result file. Have the brief write the result file before any cleanup, and on a non-zero exit read the products before calling the run failed.",
69
+ },
65
70
  ],
66
71
  },
67
72
  dsh: {
@@ -96,6 +101,11 @@ const BUNDLED = {
96
101
 
97
102
  // Pitfalls of handing work to any external process, whichever CLI it is.
98
103
  const GENERAL_PITFALLS = [
104
+ {
105
+ date: "2026-10-05",
106
+ source: "rtl_ppa_prj verify session",
107
+ text: "Stop a delegate by its PID or by its own output directory, never `pkill -f <pattern>`: a pattern matched other sessions' processes of the same command and killed them, twice in one day.",
108
+ },
99
109
  {
100
110
  date: "2026-10-04",
101
111
  source: RTL_TOOLCHAIN,
@@ -148,7 +148,8 @@ function bridgeLine(where) {
148
148
  // the owner only for a mention, and the bridge mentions them only for
149
149
  // `@owner`, so whether a message reaches their phone is the session's choice.
150
150
  const OWNER_RULE = "Slack notifies the owner only for messages that write `@owner`: write it in any message the owner "
151
- + "needs to see or decide on, and leave it out of routine discussion.";
151
+ + "needs to see or decide on, and leave it out of routine discussion. Send a risk or decision as its own message "
152
+ + "with `@owner` rather than inside a status update.";
152
153
 
153
154
  const HOST_EVENTS = {
154
155
  "session-start": "SessionStart",
@@ -792,7 +792,8 @@ function renderProtocol(protocol) {
792
792
  }
793
793
  return protocol.authorized
794
794
  ? `${head} — standing-authorized (authorize: protocol-refresh); run it `
795
- + "before other work and leave the diff for the owner to commit"
795
+ + "before other work and leave the diff uncommitted: the authorization "
796
+ + "covers the refresh, and committing it is a separate action"
796
797
  : `${head} — ask before running it; keel/config.yaml does not `
797
798
  + "standing-authorize protocol-refresh";
798
799
  }
package/src/core/gates.js CHANGED
@@ -2137,8 +2137,9 @@ function expectationProblems(repo, content, tasks, change) {
2137
2137
  ? `Expectation Coverage: compared ${compared} of ${compared + uncited} `
2138
2138
  + `\`Covered by:\` ${compared + uncited === 1 ? "entry" : "entries"} `
2139
2139
  + `against the Covers of the task named; ${uncited} cited no `
2140
- + `expectation identifier and ${uncited === 1 ? "was" : "were"} not `
2141
- + "compared."
2140
+ + "D<n>, F<n>, A<n>, or Q<n> identifier before `Covered by:` and "
2141
+ + `${uncited === 1 ? "was" : "were"} not compared`
2142
+ + (uncited > 0 ? " (cite one there, as in `E1: … (D2). Covered by: 1.1`)." : ".")
2142
2143
  : null;
2143
2144
  return { problems, report };
2144
2145
  }