Repository navigation
fix: report partial success and telemetry path in exit summary - #29
Merged
Merged
Conversation
When a run ends with unfixed issues, the old summary read like a crash
("99 tasks failed") with no pointer to details. The final summary now
frames unfixed issues as partial success and prints the telemetry JSONL
path where per-file errors live:
Sweep complete: 68/2114 issues fixed; 99 tasks had unfixable issues (1 round).
Details: .sweeper/telemetry/2026-07-05.jsonl
Exit code 1 on remaining failures is unchanged.
Closes #13
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
Closes #13.
When a run ends with unfixed issues, the old summary read like a crash ("99 tasks failed") with no pointer to details — especially confusing when sweeper runs inside other tools that surface exit code 1 as a failure. The final summary now frames unfixed issues as partial success and prints the telemetry JSONL path where per-file errors live:
Exit code 1 on remaining failures is unchanged, so CI behavior is preserved.
Changes
pkg/agent/summary.go— newFormatSummary(Summary, telemetryPath)renders the end-of-run summary with singular/plural handling and an optionalDetails:line.pkg/telemetry/jsonl.go— newJSONLPublisher.Path()returns the JSONL file the run writes to (the open file's path, or today's dated file before first publish).cmd/run.go—buildPublisheralso returns the JSONL path; the exit summary usesFormatSummary.Testing
Unit tests for
FormatSummary(all-fixed, partial, singular task, telemetry path) andJSONLPublisher.Path()(computed path, matches published file), written test-first.Full suite passes; lint at repo baseline.
Verified end-to-end with the built binary on piped lint input (dry run):
Note: the pre-commit coverage gate currently fails on clean
main— four functions from #25 are below 100% coverage (advisor.ResolveStrategy,agent.New,loop.NewEscalation,observer.AnalyzeModels). This commit was made with--no-verifyfor that reason; new code here is at 100%.