@christang/keel 5.202.0 → 5.203.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/chat.py +55 -0
- package/scripts/validation/common.py +2 -2
- package/scripts/validation/registry.py +1 -0
- package/src/core/chat/store.js +6 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.203.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.203.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.203.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.203.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.203.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",
|
|
@@ -1042,6 +1042,61 @@ def validate_chat_stamp_default_scenario() -> int:
|
|
|
1042
1042
|
return 0
|
|
1043
1043
|
|
|
1044
1044
|
|
|
1045
|
+
def validate_chat_reply_addresses_author_scenario() -> int:
|
|
1046
|
+
"""Issue #468 (kaiwu-ip, 2026-10-25): a reply without @ never reached the role it answered.
|
|
1047
|
+
|
|
1048
|
+
verify answered PM's request with `--reply-to` and no `@kaiwu-pm-iecc`; the
|
|
1049
|
+
record carried `reply_to` and no mentions, so PM's idle session was never
|
|
1050
|
+
woken. A reply now mentions the author of the record it answers.
|
|
1051
|
+
"""
|
|
1052
|
+
label = "chat-reply-addresses-author:"
|
|
1053
|
+
with tempfile.TemporaryDirectory(prefix="keel-chat-468-") as raw:
|
|
1054
|
+
base = Path(raw)
|
|
1055
|
+
rtl, verify, env = chat_scratch_group(base)
|
|
1056
|
+
|
|
1057
|
+
def post(cwd: Path, *args: str) -> dict:
|
|
1058
|
+
done = run_keel(cwd, "chat", "post", "soc", *args, "--json", env=env)
|
|
1059
|
+
if done.returncode != 0:
|
|
1060
|
+
raise RuntimeError(f"post {args!r} failed: {done.stderr!r}")
|
|
1061
|
+
return json.loads(done.stdout)
|
|
1062
|
+
|
|
1063
|
+
asked = post(rtl, "please close R14 and R15")
|
|
1064
|
+
run_keel(verify, "chat", "read", "soc", env=env)
|
|
1065
|
+
answer = post(verify, "closed both", "--reply-to", asked["id"])
|
|
1066
|
+
if "rtl" not in answer.get("mentions", []):
|
|
1067
|
+
report(f"{label} a reply without @ does not mention the role it answers: {answer!r}")
|
|
1068
|
+
return 1
|
|
1069
|
+
notice = run_keel(rtl, "chat", "notice", env=env).stdout
|
|
1070
|
+
if answer["id"] not in notice:
|
|
1071
|
+
report(f"{label} rtl's notice does not list the reply addressed to it: {notice!r}")
|
|
1072
|
+
return 1
|
|
1073
|
+
if run_keel(rtl, "chat", "notice", "--check", env=env).returncode != 0:
|
|
1074
|
+
report(f"{label} `keel chat notice --check` in rtl's worktree does not report the reply.")
|
|
1075
|
+
return 1
|
|
1076
|
+
|
|
1077
|
+
run_keel(rtl, "chat", "read", "soc", env=env)
|
|
1078
|
+
own = post(verify, "a note to self")
|
|
1079
|
+
self_reply = post(verify, "and a follow-up", "--reply-to", own["id"])
|
|
1080
|
+
plain = post(verify, "status: green")
|
|
1081
|
+
for record, what in ((self_reply, "a reply to verify's own record"), (plain, "a plain message")):
|
|
1082
|
+
if record.get("mentions"):
|
|
1083
|
+
report(f"{label} {what} mentions {record['mentions']!r}.")
|
|
1084
|
+
return 1
|
|
1085
|
+
if run_keel(rtl, "chat", "notice", "--check", env=env).returncode != 1:
|
|
1086
|
+
report(f"{label} rtl is addressed by a self-reply or a plain message.")
|
|
1087
|
+
return 1
|
|
1088
|
+
|
|
1089
|
+
acked = run_keel(verify, "chat", "post", "soc", "on it", "--reply-to", asked["id"], "--ack", env=env)
|
|
1090
|
+
if acked.returncode != 0:
|
|
1091
|
+
report(f"{label} a --reply-to --ack with no @ was refused: {acked.stderr!r}")
|
|
1092
|
+
return 1
|
|
1093
|
+
if label.rstrip(":") not in {name for name, _ in registry.SCENARIOS}:
|
|
1094
|
+
report(f"{label} the scenario registry does not include it.")
|
|
1095
|
+
return 1
|
|
1096
|
+
report(f"{label.rstrip(':')} scenario passed.")
|
|
1097
|
+
return 0
|
|
1098
|
+
|
|
1099
|
+
|
|
1045
1100
|
def validate_chat_ack_scenario() -> int:
|
|
1046
1101
|
"""Issue #253: a record asks for an acknowledgement and the sender sees who gave it.
|
|
1047
1102
|
|
|
@@ -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.203.0"
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
PROTOCOL_VERSION = "5.
|
|
41
|
+
PROTOCOL_VERSION = "5.203.0"
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
LEGACY_MANAGED_START = "<!-- keel:start version=2.1 -->"
|
|
@@ -462,6 +462,7 @@ SCENARIOS: tuple = (
|
|
|
462
462
|
("chat-wake-skips-removed-session", chat.validate_chat_wake_skips_removed_session_scenario),
|
|
463
463
|
("chat-wake-moved-worktree", chat.validate_chat_wake_moved_worktree_scenario),
|
|
464
464
|
("chat-ack", chat.validate_chat_ack_scenario),
|
|
465
|
+
("chat-reply-addresses-author", chat.validate_chat_reply_addresses_author_scenario),
|
|
465
466
|
("coordinator-patrol", shift.validate_coordinator_patrol_scenario),
|
|
466
467
|
("patrol-since-last", shift.validate_patrol_since_last_scenario),
|
|
467
468
|
("patrol-next", shift.validate_patrol_next_scenario),
|
package/src/core/chat/store.js
CHANGED
|
@@ -653,6 +653,12 @@ function post(where, options) {
|
|
|
653
653
|
if (options.replyTo) {
|
|
654
654
|
parent = findRecord(where, options.replyTo);
|
|
655
655
|
}
|
|
656
|
+
// A reply is addressed to the member it answers, written or not (#468 D1,
|
|
657
|
+
// D2): the mention goes into the record, so every reader and older Keel
|
|
658
|
+
// versions see it, and answering oneself or a non-member adds nothing.
|
|
659
|
+
if (parent && parent.from !== from && state.members.has(parent.from) && !mentions.includes(parent.from)) {
|
|
660
|
+
mentions.push(parent.from);
|
|
661
|
+
}
|
|
656
662
|
if (options.supersedes) checkSupersedes(where, from, group, records, options.supersedes);
|
|
657
663
|
if (options.ack) {
|
|
658
664
|
const draft = { kind: options.kind || "message", from, group, mentions, assignee: options.assignee || null };
|