Skip to content

feat(bench): count silent-stream retries per task - #343

Merged
dahai80 merged 1 commit into
mainfrom
bench-silent-retry-metric
Nov 26, 2026
Merged

dahai80 merged 1 commit into
mainfrom
bench-silent-retry-metric

Conversation

@dahai80

@dahai80 dahai80 commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Problem

#334 logs silent-stream retries only to the session debug file, written only when the binary runs with -D. The 2026-11-26 regression therefore could not verify the retry firing rate (limitation noted in the baseline doc, PR #341).

Change

  • Runner always passes -D for the fusion-code harness (was gated behind BENCH_DEBUG).
  • After each task, count Silent stream (no text/tool_use) occurrences in configDir/debug/*.txt.
  • Report per-task silentRetry in the task log line and summary rows, plus a silentRetries total in summary.json.
  • Best-effort: missing debug file counts as zero, never fails a run.

Verification

tsc clean; no existing bench unit tests (runner verified by next regression run — first run with this change populates the new field).

🤖 Generated with Claude Code

The #334 silent-stream retry logs only to the session debug file, which
is written only when the binary runs with -D — so the 2026-11-26 run
could not verify the retry firing rate (noted as a limitation in the
baseline doc).

Make the runner measure it: always pass -D for the fusion-code harness,
then count 'Silent stream (no text/tool_use)' occurrences in
configDir/debug/*.txt after each task. Report per-task silentRetry in
the log line and rows, plus a silentRetries total in summary.json.
Best-effort by design: a missing debug file counts as zero and never
fails a run.

Co-Authored-By: Claude Code <[email protected]>
@dahai80
dahai80 merged commit 6a3bcc3 into main Nov 26, 2026
1 check passed
@dahai80
dahai80 deleted the bench-silent-retry-metric branch November 26, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant