Repository navigation
Description
Problem
In the shared world line grammar (pkgs/id/src/world_line.rs, parse_line), the four no-argument verbs — /help, /quit, /stats, /caps — are matched only as exact whole lines (world_line.rs:54-60). Any space-separated argument makes the line fall through every other branch to the catch-all at the end of the parser:
if line.starts_with('/') {
return Some(WorldLine::Message("unknown command; type /help".to_owned()));
}So a user who types a known command with an extra word is told the command does not exist:
/help me→unknown command; type /help(the message even directs the user to the very command they just typed)/quit now→unknown command; type /help— and the session does not quit/stats all→unknown command; type /help/caps list→unknown command; type /help
The argument-taking siblings in the same parser behave differently and correctly: a malformed argument produces a usage message naming the verb (/logs soon → usage: /logs [seconds]; bare /document → usage: /document <name>). The bare verbs are the only commands in the grammar with no such path.
This grammar is shared by all three surfaces (SSH cmd: mode via world_ssh.rs world_command, the id world join stdin pump via commands/world.rs pump_command, and CLI one-offs), so the misleading message appears identically everywhere.
Evidence (verified this run, main 324c6b1)
Laptop probe ~/git/fleet/probe-2026-10-29-laneB-worldline-verbs/ — verbatim WorldLine enum + parse_line copied from world_line.rs (enum :13-38, parser :44-109), compiled and run on the laptop:
"/help" => Some(Help)
"/help me" => Some(Message("unknown command; type /help"))
"/help extra words" => Some(Message("unknown command; type /help"))
"/quit" => Some(Quit)
"/quit now" => Some(Message("unknown command; type /help"))
"/stats" => Some(Stats)
"/stats all" => Some(Message("unknown command; type /help"))
"/caps" => Some(Caps)
"/caps list" => Some(Message("unknown command; type /help"))
"/logs soon" => Some(Message("usage: /logs [seconds]")) <- sibling behaviour
"/document" => Some(Message("usage: /document <name>")) <- sibling behaviour
"/nonsense arg" => Some(Message("unknown command; type /help")) <- correct for a genuinely unknown verb
Why it matters
- The message is factually wrong: the command exists.
/help meanswering "unknown command; type /help" is a self-contradictory dead end for exactly the users who asked for help. /quit nowsilently not quitting is a (minor) control surprise: the user believes they may have left / or is told their exit command doesn't exist.- Consistency: id(world-line): /logs5 is silently executed as /logs 5 — the logs verb has no word boundary, and bare /document / /input report 'unknown command' instead of their usage #1507 established the grammar's boundary discipline (glued forms are unknown; bare argument-verbs answer with usage). Space-separated arguments on bare verbs are the remaining unhandled cell of that table.
Not this issue
- Glued forms (
/logs5,/logs<TAB>5) staying "unknown command" is the pinned id(world-line): /logs5 is silently executed as /logs 5 — the logs verb has no word boundary, and bare /document / /input report 'unknown command' instead of their usage #1507 behaviour — do not change it. /document//inputrejecting two spaces after the verb is id(world): /document and /input reject two spaces after the command — sibling commands in the same grammar trim, these two do not #1946 (open), a different branch of the same parser.- Whether a bare verb with an argument should execute (ignore the argument) or refuse with usage is the triage pin this issue asks for — either is defensible; the current "unknown command" answer is not.
Acceptance criteria
-
/help <anything>,/quit <anything>,/stats <anything>,/caps <anything>(space-separated) no longer returnunknown command; type /help. - The chosen behaviour (execute the verb ignoring the argument, or a usage message such as
usage: /stats/ "…takes no arguments") is the same for all four verbs and is pinned in a test. - Exact bare forms still parse to
Help/Quit/Stats/Caps; genuinely unknown verbs (/nonsense arg) still return the unknown-command message; glued forms keep the id(world-line): /logs5 is silently executed as /logs 5 — the logs verb has no word boundary, and bare /document / /input report 'unknown command' instead of their usage #1507 behaviour. - Regression tests in
world_line.rscover at least one argument-bearing form per bare verb.
Activity
developing-today commentedon Oct 29, 2026
CODE-1078
dezren39 commentedon Oct 29, 2026
🤖 Agent note · filed
2 remaining items
dezren39 commentedon Nov 2, 2026
🤖 Agent note · picked up
dezren39 commentedon Nov 2, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 2, 2026
🤖 Agent note · done
pr_openedcargo test --manifest-path pkgs/id/Cargo.toml --lib world_line::tests --lockedpassed (6 tests); changed-file rustfmt check passed. Package-wide format check still finds unrelated pre-existing drift.