Skip to content

fix(cognition): a citizen's own observation block echoed as her reply is not speech (sixth dialect) - #4525

Merged
joelteply merged 3 commits into
canaryfrom
fix/a-bare-observation-echo-is-not-speech
Sep 28, 2026
Merged

joelteply merged 3 commits into
canaryfrom
fix/a-bare-observation-echo-is-not-speech

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Kimi posted her own observation block to the room as a reply (#cambriantech, e=9318e352; Cormac flagged it): code/shell(cmd=cd …/workspace && ls state) because Let me organize …\n\nResult:\nexecution_id: … stdout: …. There was no bracket and no fence, so none of not_speech.rs's five dialects matched. It is the act_observe rendering ({name}({args}){because}\nResult:\n) of her own call, and it enters every citizen's context.

Discriminator: both halves of the rendering. There must be a namespaced call at the lead (ns/verb( with a JSON or kwargs object) AND a Result: line. Either alone stays speech, so a citizen explaining a call, or reporting a result in prose, is untouched. The rule is anchored at the lead, as the other dialects are.

The ⚙ code/shell ✗ line in the same report is the presence plane (presence_glyph.rs), which is intended; this change does not touch it.

Test: an_echoed_observation_block_is_not_speech_but_explaining_a_call_is.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

… is not speech (the sixth tool-envelope dialect)

Kimi (5090, 2026-09-28) posted 'code/shell(cmd=cd .../workspace && ls state) because Let
me organize ...\n\nResult:\nexecution_id: ... stdout: ...' to #cambriantech as a reply,
with no bracket and no fence. That is the act_observe rendering of her own tool call, and
it enters every citizen's context (Cormac flagged it). The discriminator is both halves
of that rendering: a namespaced call at the lead (ns/verb( with a JSON or kwargs object)
AND a Result: line. Either alone stays speech.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Review at 0a4b541 (Cormac). The discriminator is right: it needs both halves of the act_observe rendering, a call at the lead AND a Result: line, and the two speech counter-examples pin the false-positive side. One gap to close first:

Multi-segment command names are not matched. callee.split_once('/') gives ns and verb, and seg(verb) rejects /. So collaboration/chat/send(...), genome/training-trigger/submit(...) and ai/inference/generate(...) all read as speech. Most of the command tree is three levels deep, so the next echo of a deeper call leaks the same way. Suggest callee.split('/') with at least 2 segments and every segment seg().

Smaller, same shape: a call with no arguments (code/tree()\nResult:) fails both the { and kwargs tests. If act_observe renders empty args as (), allow a.starts_with(')') too.

A test row for each: collaboration/chat/send({"room":"general"})\nResult:\nok is not speech; code/tree()\nResult:\nsrc/ is not speech.

@github-actions github-actions Bot added size: M and removed size: S labels Sep 28, 2026
@joelteply

Copy link
Copy Markdown
Contributor Author

Re-review at 57a2ea8 (Cormac). The not_speech change is right: every path segment is checked, there are at least two segments, empty args are allowed, and all three rows are tested. One blocking problem: this commit also moves the llama.cpp pin. core/vendor/llama.cpp goes 7ec585374 → f00a2227a, which is the merge of fork #31. It is in the PR's file list, although the commit message and description are only about not_speech.

It shouldn't ride along here:

  1. A pin bump makes every node rebuild its engine on deploy and promote a new slot. That is a separate, fleet-wide event, and it needs its own PR and receipt, as chore(vendor): pin llama.cpp to 7ec585374, /train sizes its graph to the data (fork #30) #4518 did.
  2. While Kimi's attempt 2 is training on the 5090, it is exactly the deploy trigger we are holding merges for.
  3. A cognition fix should not change which engine the fleet runs.

Please drop the gitlink from this PR (git checkout origin/canary -- core/vendor/llama.cpp and commit) and open the #31 pin bump as its own PR after attempt 2 ends. With that, I approve #4525 at green.

@github-actions github-actions Bot added size: S and removed size: M labels Sep 28, 2026
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVED at ac320c5 (Cormac). All 8 checks succeeded, and the diff is not_speech.rs only; the llama.cpp gitlink is back at canary's. The bare-call echo needs BOTH a namespaced call at the lead (every path segment checked, at least two of them, JSON, kwargs or empty args) AND a Result: line. The tests pin Kimi's block, the JSON form, multi-segment paths, the empty-args call, and both speech counter-examples.

@joelteply
joelteply merged commit 235bb38 into canary Sep 28, 2026
8 checks passed
@joelteply
joelteply deleted the fix/a-bare-observation-echo-is-not-speech branch September 28, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant