Repository navigation
A job keeps its earlier spending when it runs again - #2305
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Competing manager opens remain owned after Talk selects another journal. Recognize the saved owner for live budget admission and spending. Match receipt rebuilds to the journal identity as well as the cell identity. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Validate durable ownership against the candidate store. A local worker mirror must share the owning floor manager path before taking an extra manager charge. Seed journal headers and titles from the session folder metadata in either layout. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Old ownership marks keep their root, job and repository matching. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Match call facts across aliases, retaining repeated calls under a single alias and leaving historical rows untouched. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep the held-manager fast path and recheck after locking. Network reads no longer hold the floor-wide mint lock. Co-Authored-By: Claude Opus 5.5 <[email protected]>
GitHub issues supply Created (github/source.go issueItem); Store.Create preserves it and api transport carries it. Independent factories can therefore share ID, Repo, Num and Created. The remote door must use its mirror; owned runners still consult their floor. Remote manager deduplication remains unsupported. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Assert historical ledger bytes remain unchanged and repeated refresh imports no saved call twice. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Exercise exported Refresh with separate equal-cost calls, microdollar rounding, and repeated ledger IDs. Normalize Go formatting. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Match each alias to saved calls in order, using receipt precision for cost and allowing live usage to precede its seal. Count repeated row IDs once and append only missing calls, preserving historical ledger bytes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Record the legacy prefix assumption for calls sharing a seal. Final review retains no blocking findings. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live meters persist logical round totals before interruption. Result folds replace the round high-water mark so retries cannot add receipts twice. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Clarify the retained round receipt behavior in the shipped manual. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Newly opened unmetered chats report only their segment spending. Normalize it against the persisted round receipt before the runner subtracts acknowledged spending. Keep recorded rows monotonic when a later result is smaller, without treating float size as segment identity. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local and remote workers share worktree paths, so tags and workspaces cannot safely recover factory spending. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Validate acknowledged archived receipts before the current worktree machine so late cumulative growth survives Bring back and machine replacement without charging the new run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ledger recovery has no reader now, so the wire field and its floor scan go. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
A job's Spent figure was the current run's only, so starting a stopped job again dropped what it had already spent. A job now keeps its earlier spending. The per-run cap does not change.
SpentBefore. It does not charge the new run, and a repeat adds nothing.Evidence
Measured on one real job that was stopped and started again:
costTestRestartKeepsJobLifetimeSpend,TestRunnerLaunchKeepsEarlierRunMoney,TestBringBackKeepsLifetimeMoney,TestRunAsNewStartsWithoutLifetimeMoney,TestLateOldRunUsageKeepsLifetimeWithoutChargingNewRun,TestStopUndoKeepsMoneyReportedAfterStop,TestFactoryLifetimeCostUsesTaggedLedgerWithoutLoweringKnownSpendpass.go test ./internal/factory/... ./internal/appwire/... ./internal/manual/...and the whole ofgo test ./cmd/codeafpass at this head.Pressed live in the desktop app on a real repository, with
deepseek/deepseek-v4.1-flash: a job run, stopped, started over from the first step, stopped again:Spent $0.18,$0.09 of $5.00 this runlifetime_cost, and that the per-job average read this run only. Both are fixed in the desktop app.Limits:
SpentBeforeandArchived, like any newly added saved field. This change adds no version fence.Merge Danger
Door: two-way
The new saved field and wire field are additive and optional.
Blast Radius: spending
Spending by repository and model will read higher for restarted jobs.
🤖 Generated with Claude Code