Skip to content

[DOCS] Read NOT_FOUND suggestions and the on_repeated_failure argument matching #896

Closed

Description

@edenreich

Summary

inference-gateway/cli#1468 changes two behaviours that cli.md documents:

  • The Read tool no longer returns a bare NOT_FOUND: <path> for a missing file. It appends up to five candidate paths: siblings of the nearest existing directory ranked by name similarity, and, when none shares the missing base name, files with that base name found under the containing sandbox directory.
  • The on_repeated_failure reminder trigger no longer requires byte-identical arguments. For Read it keys on the file path alone. For every other tool it keys on the canonical JSON of the arguments with offset and limit removed, so retries that only change pagination, key order or whitespace count toward the threshold.

Source: inference-gateway/cli#1468 (closes inference-gateway/cli#1453).

Acceptance Criteria

  • The Read section of cli.md (#### Read) describes the NOT_FOUND suggestions and shows an example error with candidate paths
  • The trigger catalog row for on_repeated_failure in cli.md says the match ignores offset, limit, key order and whitespace, and that Read matches on the file path only
  • The built-in reminder text quoted anywhere in the docs reads "with the same arguments" instead of "with identical arguments"

Activity

  1. added
    documentation
    on Oct 1, 2026
  2. added theissue type on Oct 1, 2026
  3. edenreich commented on Oct 2, 2026

    @edenreich
    ContributorAuthor

    @claude can you document this?

  4. inference-gateway-maintainer commented on Oct 2, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 11m 15s —— View job • docs/issue-896-20261002-0237 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-896-20261002-0237?quick_pull=1&title=Issue%20%23896%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23896%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented Read NOT_FOUND suggestions and on_repeated_failure matching

    • Gather context (read cli.md, verified behaviour against upstream CLI source)
    • Understand the request - implementation (docs change)
    • #### Read: document NOT_FOUND candidate paths + example error
    • Trigger catalog: add on_repeated_failure row with the normalized-argument matching rules
    • Reminders schema: document threshold
    • Validate (lint:md, format:check, build - all pass)
    • Commit and open PR

    What changed in cli.md

    #### Read now explains that a missing file no longer returns a bare NOT_FOUND: <path> - the error appends up to five candidate paths (siblings of the nearest existing directory ranked by name similarity, plus files carrying the missing base name found under the containing sandbox directory when no sibling matches it) - and shows an example error with candidates.

    Trigger catalog: on_repeated_failure was not in the catalog at all, so this is a new row rather than an edit. It states that matching is on normalized arguments (offset, limit, key order and whitespace ignored, so pagination-only retries and re-serialized arguments still count), that Read matches on file_path alone, plus the post_tool hook requirement, the built-in default threshold of 3, and the reset-on-success behaviour.

    Supporting edits so that row makes sense: the reminders YAML schema table gains the threshold field; the built-in repeated-failure reminder text is now quoted - it reads "with the same arguments" - along with its {tool_name} / {count} placeholders; and the built-in-defaults precedence row mentions repeated-failure alongside memory-consult.

    I did not reference the upstream PR or issue numbers anywhere in the doc content, per the repo convention against tracker references in docs.

    PR: #900
    | Branch

  5. inference-gateway-releaser commented on Oct 4, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.21 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions