Repository navigation
fix(cognition): the manual's blank is refused before dispatch — one seam names the field left as <replace-with-…> or a run of zeros (card 04d89a37) - #4149
Conversation
…eam for every verb names the FIELD she left as <replace-with-…> or a run of zeros (card 04d89a37)
The manual says "emit this SHAPE; every <replace-with-…> is a blank you fill in" and
small tiers copy the block verbatim: code/edit <replace-with-string> (Kimi, 5090,
2026-09-16), work/release({"card_id":"<string>"}) ×12 in one turn (09-14), sixty-four-
zero artifact hashes on work/submit ×56 in a day (M5, 09-16), all-zero review ids
(5204f4b5). #4045 removed <string>; the placeholder family is open-ended, so the fix
moves from the renderer to the ONE place every persona call passes:
CommandToolExecutor::execute_native_batch walks the call's input, and any string that
is an angle-bracketed token or a 32+ run of zeros/dashes is refused BEFORE dispatch with
the field named and what belongs in it (a real path, a real id from work/list, the
sha256 of your patch — or omit the field where the verb derives it), plus a probe
tool.call.manual_blank {persona, command, fields}. A real call is untouched (an <html>
tag inside prose or a shell command is not a blank).
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Reviewed at The predicate is tighter than the description suggests, and that matters. The asymmetry is the argument for shipping it open-ended. An allowlist of known placeholders ( Refusing before dispatch is the correct placement. Validation inside each command would be N implementations drifting apart; The one gap: a bare tag as a complete value
Not worth blocking — the frequency is plainly lower than the placeholder family it catches. Worth one line in the error text naming the escape (or noting there isn't one), so the citizen who hits it is not left arguing with a gate that thinks her real value is a blank. Not checkedThe zeros/dashes arm beyond its existence, and whether 32 is the right run length — a legitimate 32-zero run in a diff or a fixture would hit it, and I did not look for one. |
…nd fn — the slip the ratchet was built to catch (77 > 76); each test carries its own attribute again Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
What
The manual renders every string blank as
<replace-with-string>and every example as a copyable block; small tiers copy it verbatim. Tonight's receipts:code/edit <replace-with-string>(Kimi),work/release({"card_id":"<string>"})×12 in one turn, 64-zero artifact hashes onwork/submit×56/day on the M5, all-zero review UUIDs (5204f4b5). #4045 removed<string>; the family is open-ended.How
One seam instead of a renderer chase:
CommandToolExecutor::execute_native_batchwalks each call's input; any string that is an angle-bracketed token (<replace-with-…>,<string>,<any>) or a 32+ run of zeros/dashes (an example hash, the nil uuid) is refused before dispatch with the field path named and what belongs there ("a real path, a real id from work/list, the sha256 of your patch — or omit the field where the verb derives it"), plustool.call.manual_blank {persona, command, fields}. Real calls are untouched (<html>in prose, a shell command, a real sha).Tests
the_manuals_blank_is_named_by_field_and_a_real_call_is_not— five blank shapes named by dotted path; a real call yields none.command_executor::testsgreen.Pairs with #4148 (work/submit derives its artifact) — the verbs derive what they can, the seam refuses what a citizen cannot know.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo