[codex] #87 补充 agent recall 基线报告 - #94
Merged
Merged
Conversation
There was a problem hiding this comment.
1 issue found across 1 file
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="eval/perf-bench.ts">
<violation number="1" location="eval/perf-bench.ts:338">
P2: Baseline metrics can be produced from partially failed syncs without any warning, which makes recall/latency numbers look valid even when indexing failed for part of the corpus. This comes from forcing `sync --best-effort` while not validating the returned failure/error fields; using normal sync behavior here (or explicitly failing when errors > 0) keeps the baseline trustworthy.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
|
||
| // 1. sync | ||
| const syncRun = await runOrThrow(cliCommand("sync", "--source", args.source, "--db", args.db, "--root", args.root, "--json")); | ||
| const syncRun = await runOrThrow(cliCommand("sync", "--source", args.source, "--db", args.db, "--root", args.root, "--best-effort", "--json")); |
There was a problem hiding this comment.
P2: Baseline metrics can be produced from partially failed syncs without any warning, which makes recall/latency numbers look valid even when indexing failed for part of the corpus. This comes from forcing sync --best-effort while not validating the returned failure/error fields; using normal sync behavior here (or explicitly failing when errors > 0) keeps the baseline trustworthy.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At eval/perf-bench.ts, line 338:
<comment>Baseline metrics can be produced from partially failed syncs without any warning, which makes recall/latency numbers look valid even when indexing failed for part of the corpus. This comes from forcing `sync --best-effort` while not validating the returned failure/error fields; using normal sync behavior here (or explicitly failing when errors > 0) keeps the baseline trustworthy.</comment>
<file context>
@@ -287,7 +335,7 @@ if (!args.jsonOnly) {
// 1. sync
-const syncRun = await runOrThrow(cliCommand("sync", "--source", args.source, "--db", args.db, "--root", args.root, "--json"));
+const syncRun = await runOrThrow(cliCommand("sync", "--source", args.source, "--db", args.db, "--root", args.root, "--best-effort", "--json"));
const syncMs = syncRun.ms;
let sessionCount = 0;
</file context>
Suggested change
| const syncRun = await runOrThrow(cliCommand("sync", "--source", args.source, "--db", args.db, "--root", args.root, "--best-effort", "--json")); | |
| const syncRun = await runOrThrow(cliCommand("sync", "--source", args.source, "--db", args.db, "--root", args.root, "--json")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mainline Intent
Intent:
int_59a088abStatus:
proposedTitle: 补充 agent recall 基线报告
What changed
扩展 eval/perf-bench.ts,使 agent-recall 基线报告覆盖 active Sherlog DB、find 输出尺寸、read-range/read-page 上下文尺寸、SQLite table-size breakdown,以及可选 dogfood scorecard 摘要。
Why
#87 需要在 recall packet、projection、dogfood gate 等后续改动前,先拿到一份可复现、机器可读且人类可扫的现状基线,避免凭感觉判断搜索/上下文/数据库成本。
Decisions
Subsystems: eval, perf, dogfood, sqlite-storage, agent-recall
Summary by cubic
Adds a reproducible baseline report for agent recall, covering DB storage and response sizes, with optional dogfood summary. Addresses #87 by making current recall performance and costs easy to compare before further changes.
better-sqlite3/dbstat.DEFAULT_DB_PATH(still supports --db); sync runs with --best-effort.Written for commit 5dd6eac. Summary will update on new commits.