Skip to content

research: 搜索输出预算与 FFF 的收益、漏检及累计成本验证 #686

Open

Description

@tt-a1i

Question

OpenPI 当前是否存在搜索结果消耗 Context 的风险?收窄原生查询、硬输出预算或替换 FFF 是否在同一任务上有正收益,是否可能漏检或增加累计成本?

Frozen exploratory evidence (2026-10-05)

Source: OpenPI main 3cb2ecfe1bfbb98252651885311d309f83749428; installed Pi 1.0.2; isolated npm @ff-labs/[email protected] (gitHead=95fd777c2529fc7b4d7572dabff64cc07268f2c5). No live installation/config changes or benchmark model calls. These are deterministic tool-output experiments, not a model task-success Benchmark.

  • Original 33-match sample: native returns33; FFF default20 returns32 on first page and33 after2 calls. The limit is soft.
  • One file300 plus another file1: native limit302 finds301; FFF exhausts its cursor after201, missing100 in the dense file.
  • 60 files ×1 match: FFF first521 bytes vs native1369, but all pages1550 bytes and3 calls vs native1. First-page savings are not cumulative savings.
  • Public OpenPI TypeScript snapshot, same rooted file universe,57 AgentSession matches: native4427 bytes/1 call; FFF first1572 bytes, cumulative3337 bytes/3 calls. Both find all57. Fresh history DB; no ranking-quality or model-success claim.
  • 60 long matches with context20: native caps output around50KiB with notice; FFF emits1,038,142 bytes in one response.
  • FFF directory segment scopes, automatic regex/fuzzy fallback, invalid-cursor behavior differ from native semantics; not a drop-in correctness equivalence.

Direction, not an adopted Decision

Do not switch the default search backend from a promotional example. First define and enforce model-visible output budgets and truthful continuation/completeness evidence. Keep model choice of query, path and strategy. Evaluate optional FFF only after correcting/explicitly accepting its search semantics and verifying its child-session boundary.

A later model-task comparison must freeze provider/model/thinking, task repository and verifier, total budget and prompt surface. Include missed matches, unnecessary rounds, actual usage/cache accounting and successful verifier results; do not equate fewer bytes or faster warm search with better model accuracy.

可复查报告:冻结提交 c6c4e997。原始实验身份和脚本、结果索引见报告;独立复核通过,bun run check / bun run test 通过。此次只有研究文档,没有改变默认工具或当前安装。

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