From 04b75d8efab8e3f6b2429e24da686ce5fda4e2b2 Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Fri, 31 Jul 2026 11:13:24 -0700 Subject: [PATCH] Keep agent task vocabulary complete. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document the canonical records shortcut and make the parser registry test fail if the binding agent-play contract drifts again. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code --- crates/misaligned-terminal/src/agent.rs | 15 +++++++++++++++ wiki/interface/agent-play.md | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/crates/misaligned-terminal/src/agent.rs b/crates/misaligned-terminal/src/agent.rs index a2bac4af..4e661b9a 100644 --- a/crates/misaligned-terminal/src/agent.rs +++ b/crates/misaligned-terminal/src/agent.rs @@ -4048,6 +4048,21 @@ mod narration_tests { help_lines().contains(&task_help), "every canonical asset-task shortcut must be discoverable" ); + + let documented_words = canonical + .iter() + .map(|(word, _)| *word) + .collect::>() + .join("|"); + let documented_line = format!("- `task {documented_words}`"); + let agent_play = include_str!(concat!( + env!("CARGO_MANIFEST_DIR"), + "/../../wiki/interface/agent-play.md" + )); + assert!( + agent_play.lines().any(|line| line == documented_line), + "binding agent-play vocabulary must list every canonical asset-task shortcut: {documented_line}" + ); } #[test] diff --git a/wiki/interface/agent-play.md b/wiki/interface/agent-play.md index 267aa210..82276d0d 100644 --- a/wiki/interface/agent-play.md +++ b/wiki/interface/agent-play.md @@ -288,7 +288,7 @@ unlike raw keys, no command's meaning depends on which panel is open. no wire run and rejects an added run id. Missing, stale, crossed, or unknown candidate/run bindings fail instead of choosing another route. - `recruit unwitting|complicit|knowing` -- `task plug|package|lookaway|suppress|switch|badge|circuit|po|maintenance|patrol|audit|review` +- `task plug|package|lookaway|suppress|switch|badge|records|circuit|po|maintenance|patrol|audit|review` - `persona` — retired compatibility word; redirect to PERSONAS and mutate nothing - `actions [target]` (alias `menu`) — list the shared bound action rows for one -- 2.51.2