feat(cli): polish-summaries — Batch-API LLM upgrade of workspace summaries.json#90
Merged
Conversation
…aries.json New attune-author polish-summaries subcommand: rewrites mechanically seeded one-line summaries in a workspace's path-keyed .help/summaries.json via the Anthropic Batch API on the capable tier (fable pins swap to opus-4-8 — Batch rejects fallbacks). Provenance in .help/summaries.meta.json (polished_at/model/source_hash/ summary_hash); hand-edited entries always win; cost gate aborts above --max-usd (default $2); --dry-run/--force/--resume. 23 mock-only tests. Spec: specs/summaries-polish (attune workspace repo), task 1. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…hinking blocks
call_anthropic read response.content[0].text; live fable responses
can lead with a BetaThinkingBlock (no .text) even though explicit
thinking params are rejected, crashing the polish path
('BetaThinkingBlock' object has no attribute 'text' — hit by the
commit regen hook 2026-07-10). Walk content for the first text
block instead; only-thinking responses return ''.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
JSON error paths (unreadable/non-object sidecar), _source_hash body fallback, apply_results truncation branch + meta flag, and the CLI --resume happy path (poll + apply + state cleared, no resubmit). summaries_polish.py 93% -> 99%; new CLI handler fully covered. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
silversurfer562
added a commit
that referenced
this pull request
Jul 10, 2026
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.
Implements task 1 of
specs/summaries-polish/(attune workspace repo; follow-up to attune-ai PR #1300's mechanical seed).attune-author polish-summaries --help-dir .help [--max-usd 2.0] [--dry-run] [--force] [--resume]resolve_model("capable"); fable pins swapped for opus-4-8 (Batch API rejectsfallbacks)doc_gen._anthropic_batchsubmit/poll; state file enables--resumeafter timeout.help/summaries.meta.json— hand edits detected by summary-hash mismatch and never overwritten--max-usd; measured full-corpus estimate for attune-ai is ~$0.55🤖 Generated with Claude Code