Skip to content

fix(compaction): retry incomplete streams and report effective failure budgets - #284

Merged
ZouR-Ma merged 1 commit into
mainfrom
fix/compaction-stream-diagnostics
Oct 21, 2026
Merged

ZouR-Ma merged 1 commit into
mainfrom
fix/compaction-stream-diagnostics

Conversation

@ZouR-Ma

@ZouR-Ma ZouR-Ma commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Classify Anthropic EOF/truncated SSE failures as structured transient errors so existing bounded retries apply; preserve cancellation and deterministic malformed-event behavior.
  • Capture safe request-level compaction diagnostics: runtime model limits, selected vs observed payload output cap, estimated input, reasoning, stage, attempts, elapsed time, stop reason and usage.
  • Include diagnostics in manual/automatic failure errors and persist versioned step-compaction-failure session entries without injecting them into model context or saving partial summaries.
  • Remove raw SSE bodies from parse errors and redact credential-shaped failure text.
  • Document macOS IPC path limits and unconfirmed intermittent watcher/source-launch timeouts in the tests, without changing deadlines.

Validation

  • pnpm run check: passed
  • pnpm run build:offline: passed
  • TMPDIR=/tmp ./test.sh: passed on macOS / Node 24.3.0 after rebasing work onto the latest origin/main
  • Focused compaction: 203 passed, 2 skipped; provider SSE/classification/conformance: 22 passed
  • git diff --check: passed

Earlier runs encountered a long macOS IPC path EINVAL and intermittent watcher/source-child timeouts. Short-temp focused and final full-suite reruns passed; the timeout root cause is not confirmed, deadlines were not increased. No real model APIs were invoked.

Scope

Does not increase model token limits, accept incomplete summaries, add length-stop retries, or update installed binaries. Configuration provenance and unobserved custom-stream payload budgets remain explicitly unknown.

@ZouR-Ma
ZouR-Ma merged commit 9cc8064 into main Oct 21, 2026
2 checks passed
@ZouR-Ma
ZouR-Ma deleted the fix/compaction-stream-diagnostics branch October 21, 2026 09:41
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