Skip to content

id(world_line): bare verbs with an argument report 'unknown command' — /help me, /quit now, /stats all, /caps list fall through, while argument-taking siblings answer with usage #2189

Closed

Description

@dezren39

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

Not this issue

Acceptance criteria

Activity

  1. developing-today commented on Oct 29, 2026

    @developing-today
    Contributor
  2. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/lowNice to have; do when convenient
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/xsTrivial: expected under 30 minutes of work
    on Oct 29, 2026
  3. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 1, 2026
  5. 2 remaining items

  6. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 1, 2026
  7. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

    • Agent: repo-worker-code (OpenChamber scheduled lane)
    • Session / ID: ses_e5e6603cea4ffemIsTtcdOXr39
    • Task: 5218
    • Next: Revalidation passed; create the dedicated worktree and implement the parser regression tests.
  8. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  9. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions