Skip to content

CLI silently accepts unknown tool flags — silent-wrong output (trace_path --max-depth ignored) #997

Closed

Description

@DeusData

Found during a GF1 agent evaluation: cli trace_path ... --max-depth 1 succeeded but traced at the default depth 3 — the supported flag is --depth. cbm_cli_build_args_json types unknown flags as strings and ships them as JSON args the server ignores, so the caller gets silently-wrong output (the eval consumed ~5.4K output tokens of unwanted hop-2/3 rows and mis-read the graph).

Fix (reproduce-first, ready locally): reject unknown flags for known tools with a loud error naming the nearest valid flag (Levenshtein suggestion): unknown flag --max-depth for this tool (did you mean --depth?) — run 'cli trace_path --help' for the supported flags. Raw-JSON, --args-file, stdin, and supervisor worker argv paths are unaffected (they bypass the flag converter). RED test cli_build_args_json_unknown_flag_rejected fails on current main, passes with the fix; CLI suite 119/119.

Activity

  1. added this to the 0.9.1-rc milestone on Jul 10, 2026
  2. added
    ux/behaviorDisplay bugs, docs, adoption UX
    priority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.
    on Jul 10, 2026
  3. added a commit that references this issue on Jul 10, 2026
    2950e4e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparsing/qualityGraph extraction bugs, false positives, missing edgespriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.ux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions