Skip to content

fix(cli-search): ranks Zero Trust organization writes ahead of lookup #692

Open

Description

@coygeek

Summary of the issue

Searching for a read of the Zero Trust organization puts organization write commands ahead of the command that reads it. A lookup phrasing leaves the read command out of all five matches.

Expected behaviour

The coding-agent guide describes search results as best match first. The task query should put cf zero-trust organization get first. The control query should still put cf zero-trust organization get first.

Version of cf used

1.0.0-rc.1

System information and package versions

macOS 27.2 (arm64), Node.js 26.13.1, npm 12.2.2. Tested the public npm package and the default branch commit’s Continuous Releases package. Both were run in an isolated shell.

Reproduction (optional)

Run the following local searches in a directory without a project-local cf. A Cloudflare account and API credentials are unnecessary. The last query is a control. Inspect the JSON command values in result order. The searches are the complete reproduction.

CF_SEND_TELEMETRY=false cf cli search 'look up the Zero Trust organization'
CF_SEND_TELEMETRY=false cf cli search 'read Zero Trust organization'
CF_SEND_TELEMETRY=false cf cli search 'get Zero Trust organization'

Relevant error logs (optional)

Both artifacts exited 0 and returned five JSON matches with the same order shown below. The commands in the output were left unexecuted.

Query First match Intended command rank
look up the Zero Trust organization cf zero-trust organization update Absent from all five
read Zero Trust organization cf zero-trust organization update 4
get Zero Trust organization cf zero-trust organization get 1

Evidence

  • Expected source: Use cf with coding agents, Help your agent find commands describes discovery by task and result order.
  • Failure source: the executed searches in Reproduction produced the result rows in Relevant error logs on both tested artifacts.
  • Evidence provenance: observed
  • Local verification: reproduced
  • Reproduction completeness: complete

Restoration check

Rerun the task searches and confirm that cf zero-trust organization get is the first match. Confirm that the control still leads with cf zero-trust organization get.

References

Triage assessment

  • Impact level: P2
  • Assessment status: supported
  • Impact basis: A caller relying on the documented best match must recognize that update, create, or edit is a different operation. A paused search can be retried using the control wording.
  • Workaround status: available
  • Workaround basis: The control query ranks cf zero-trust organization get first.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions