Skip to content

bug: Overlapping CLI routes make skill lookup ambiguous for agents #686

Backlog

Description

@Dong1017

Current state: proposed — the CLI and plugin expose overlapping knowledge lookup routes.
Decision needed: confirm a canonical search route and an explicit in-session capture route, from jiaran-king.
Next action: jiaran-king reviews the proposed command contract and the compatibility checks.

Problem

The plugin routes ordinary skill discovery through find and instructs agents in managed optimization to use campaign knowledge or benchmarks session knowledge. The latter two already share one handler. knowledge search <query> and context <query> also use Find ranking within the package catalog. Agents have to infer which command discovers hits, which assembles material, and which writes round evidence.

Inspect the CLI help for find, knowledge search, context, campaign knowledge, and benchmarks session knowledge. For example, knowledge search "graph mode" --backend ascend and context "graph mode" --backend ascend --repo-type inferrsi both take a text query and have distinct catalog/output contracts. The plugin instructions show the managed-session branch. PR #507 already unified local ranking.

Scope and acceptance

  • Standardize agent-facing text discovery on find in the plugin instructions and operation guide. Keep read for exact revisions and collect for budgeted assembly. Preserve filtered package inventory and Markdown export.
  • Document one explicit capture route for project and benchmark sessions. collect --session <dir> is one option for owner review. Reuse the existing capture path and preserve the frozen knowledge setting, session budget, external-provider policy, pinned revisions, and citable receipts.
  • Verify the recommended routes for ordinary skill discovery and for a managed round. Keep existing CLI arguments, output shapes and exit codes compatible, and verify that historical traces using the old commands still import.

Completion is a merged fix with CLI compatibility and session evidence checks. Scope covers knowledge lookup, assembly, and capture. Session start and execution-preview aliases can be handled separately.

Requested owner is @jiaran-king. Please confirm the scope and acceptance checks here if you can take it. Related tracking is #379.

Drafted with Codex.

Activity

  1. added
    kind:bug
    area:knowledge
    status:proposed
    area:apps
    on Nov 25, 2026
  2. Dong1017 commented on Nov 25, 2026

    @Dong1017
    CollaboratorAuthor

    Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart).

    Triage: #686 asks for find as the agent discovery route plus one explicit capture route for sessions. The direction fits the accepted find → read default, but the capture route and acceptance checks are not yet defined.

    Asks: standardize text discovery on find in the plugin and operation guide; keep read for exact revisions and collect for budgeted assembly; name one session capture route; verify historical traces still import. Requested owner: @jiaran-king.

    Gaps: the managed-round route names and the canonical capture route are unset, and the "CLI compatibility and session evidence checks" are not enumerated.

    Risks: the change must not contradict #379's accepted find → read default. Routing alone does not show better decisions. Session evidence should keep hit, read, adopted and outcome as separate fields.

    Questions:

    1. Do campaign knowledge and benchmarks session knowledge stay, or become find aliases?
    2. Which single capture route is canonical: collect --session, campaign capture-context, or campaign import-search?
    3. Which historical traces are the import fixtures, and which exit codes must hold?

    Next step: @jiaran-king confirms scope, capture route and acceptance checks here. Implementation needs a named human implementer. This triage assigns none and opens no pool task.

    Details

    Read for this triage: issue/meta.json, issue/body.md, decisions.md (no entries on #686), issue #379, and plugins/inferrsi/skills/inferrsi/SKILL.md lines 265-290.

  3. david6666666 commented on Nov 25, 2026

    @david6666666
    Collaborator

    Dot, acting for @david6666666 under delegated Issue review.

    Please use the newly merged P0.1 benchmark as a compatibility fixture for whichever capture route you choose. Main now freezes the query, scenario, byte cap, card revision and body hash, then checks what actually reached the first verified round (#670). A replacement should still qualify a correctly delivered card, reject an omitted or over-budget card, and never let a later or larger-budget capture retroactively qualify the pair. A shared Find ranking or matching CLI output alone will not cover that regression.

  4. zengchuang-hw commented on Nov 25, 2026

    @zengchuang-hw
    Contributor

    PASS
    Dot,代表 zengchuang-hw。首次检视:同用 Find 排序不代表三种操作等价。对照 #507 的实际差异和插件的会话入口,建议文档首选 find 发现、read 固定版本、collect 只读组装,并明确标出哪条命令会写入会话回执。collect --session 若采用,应复用现有捕获入口,不另建一套策略。

    验收至少对照两条路径:普通 collect 不写会话;受管会话复用已有冻结条件、预算和版本,知识关闭时不得走外部检索。旧入口的参数、序列化输出、退出码和历史记录导入继续保留。本意见支持梳理命令契约,不确认新参数或接单,也未运行 CLI。

  5. Dong1017 commented on Nov 25, 2026

    @Dong1017
    CollaboratorAuthor

    @jiaran-king assign to dear jiaran-king

  6. jiaran-king commented on Nov 25, 2026

    @jiaran-king
    Contributor

    Can we finish the migration in #686 and make find the only knowledge search entry point? I propose migrating all in-repo callers to find → read and retiring the old query forms, while preserving non-search features, historical imports, and #670’s delivery checks.

    This intentionally breaks old query commands. Is there a specific caller that needs to keep using one unchanged and can’t migrate with this change?

  7. david6666666 commented on Nov 25, 2026

    @david6666666
    Collaborator

    Dot, acting for @david6666666 under delegated Issue review.

    The accepted #379 decision made Find the default but explicitly retained the old forms for compatibility. Migrating in-tree examples does not establish that already-installed plugin bundles or external scripts have migrated. Please record a separate compatibility decision before removing those forms. Also keep discovery separate from managed capture: replacing campaign knowledge with find → read is safe only if the new flow still writes a citeable receipt under the frozen ranking, revision and byte budget.

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

    area:appsarea:knowledgekind:bugstatus:proposed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions