Repository navigation
Conversation
Add RingBuffer-based stderr/stdout tail capture (last 50 lines) to all agent drivers, with automatic error classification into categories (context_overflow, api_error, hook_failure, build_error, timeout, unknown). - AC-1: Drivers capture stderr/stdout via RingBuffer(50) - AC-2: ErrorContext schema added to PhaseLog (backward-compatible optional field) - AC-3: `sequant logs --failed` shows error category and stderr tail (5 lines default, 50 with --verbose) - AC-4: `sequant stats` groups failures by error category instead of truncated strings
4 tasks
…de through pipeline Tighten /429/, /502/, /503/ patterns with \b word boundaries to prevent false positives on embedded numbers. Plumb exitCode from AiderDriver through AgentPhaseResult → PhaseResult → errorContext so the schema field declared in ErrorContextSchema is actually populated at runtime.
admarble
deleted the
feature/447-improve-error-capture-for-tooling-failures-60-of-a
branch
March 26, 2026 13:41
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.
Summary
RingBuffer-based stderr/stdout tail capture (last 50 lines) to ClaudeCodeDriver and AiderDrivercontext_overflow,api_error,hook_failure,build_error,timeout,unknownerrorContextschema field to PhaseLog (backward-compatible optional field)sequant logs --failednow shows error category and stderr tail (5 lines default, 50 with--verbose)sequant statsgroups failures by error category instead of truncated stringsAC Verification
ring-buffer.ts, driver updateserrorContextfield)run-log-schema.ts:ErrorContextSchemasequant logs --failedshows error contextlogs.tsdisplay +--verboseflagstats.tsuseserrorContext.categoryERROR_CATEGORIESreadonly arrayTest plan
npm run buildpassesnpm run lintpasses (0 errors, 0 warnings)npm test— 2199/2200 pass (1 pre-existing timeout instate-utils.test.ts)sequant logs --helpshows--verboseflagCloses #447
🤖 Generated with Claude Code