Skip to content

chore(deps): bump the accountant to v0.10.0 - #1464

Merged
amiddavid merged 3 commits into
mainfrom
chore/bump-accountant-0.10.0
Nov 26, 2026
Merged

amiddavid merged 3 commits into
mainfrom
chore/bump-accountant-0.10.0

Conversation

@amiddavid

@amiddavid amiddavid commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Behavior change

The owner approved this behavior change in the integrator session ("1464 approve").

  • Who it affects: the proxy, when a host plugin changes the request body and reports no operation for the change. Example: a Cortex plugin such as evolve.
  • Old behavior: accountant.Withhold withheld the saving of the whole request. The figure went to 0 and the request counted in llm.savings.withheld (reason check_sum).
  • New behavior: Withhold skips a check_sum failure when no applied operation has a span in that section (Claims is 0). The saving of the other, correctly reported operations now counts.
  • Direction: savings figures go up on those requests. They no longer drop to 0. llm_savings_withheld_total goes down.
  • Still withheld: a check_sum failure where operations claim the section (Claims above 0), also when their bytes cancel to Got 0. Example: two operations claim one change.
  • Not affected: the dashboard. dash gates on Fatal() directly, and Fatal() does not change. Context-guru's own components report their operations, so the proxy path probably rarely hits the case today.
  • How to turn it off: no switch. Pin v0.9.0 to go back.

Summary

Bump github.com/rossoctl/accountant and github.com/rossoctl/accountant/metrics from v0.9.0 to v0.10.0.

What changed

  • go.mod and go.sum: both modules pin the tag v0.10.0. No pseudo-version.
  • The library has 1 change: accountant#121, "do not gate on a sum failure that no operation claims".
  • The metrics module has no change in this release.
  • Docs: 3 files name the accountant version. They now say v0.10.0 (docs/data-dependence.md, docs/data-dependence/features/metrics-push.md, docs/metrics/spec.md). go run ./cmd/gen-datadep gives no further change.
  • proxy/accountant_replay_test.go: 4 expected digests change. accountant v0.10.0 adds the field Check.Claims to the marshaled Result, so 4 cases have a new "Claims": null key. No booked figure changes.

How it was tested

  • At af26489: go test ./proxy/ -count=1 and go vet ./... pass (macOS, Go 1.27.4). Fast CI is green.

macOS, Go 1.27.4. No -race.

  • CGO_ENABLED=0 go build ./...: pass.
  • go vet ./...: pass.
  • go test ./dash/... ./accrec/... ./components/... ./keepalive/... -count=1 -timeout 20m: pass.
  • go test ./proxy/ -run 'Accountant|Savings|Withh|Interaction' -count=1 -timeout 15m: pass.

Data dependence

Metadata only. The change affects when a figure is withheld. It reads no transcript text, no tool output and no stored content. The behavior is the same at each storage level (off, metadata only, everything). No data-dependence row changes, except the version number in 2 rows.

Binaries

None.

Local tests: waived (owner rule)

Open questions

Refs #1450

Assisted-By: Claude Opus 5.5

Bump accountant and accountant/metrics from v0.9.0 to v0.10.0.
The release has one change (accountant#121). Withhold no longer
withholds a saving for a sum failure that no operation claims.
The metrics module is unchanged.

Update the docs that name the accountant version.

Assisted-By: Claude Opus 5.5
Signed-off-by: DAVID AMID <[email protected]>

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 1 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.332 offload-review skill, @amiddavid's session fresh 1 of 2 1 of 2 6d31a776 approve

Verdict: approve

Findings

None. The change is a clean dependency bump, and I found no defect in it.

Non-blocking

  1. PR description, "Behavior change" section — the parentheticals misstate the new gate.

    • The PR says Withhold skips a check_sum failure "when no operation claims any bytes in that section (Got is 0)" and "Still withheld: a check_sum failure with Got not 0".
    • The library gates on Claims, not Got (accountant v0.10.0, internal/engine/withhold.go, unreportedChange: c.Claims != nil && *c.Claims == 0). A section whose claims cancel (an insert of N bytes beside a removal of N bytes) has Got 0 and Claims above 0, and it still gates. So the skip condition is "Claims is 0", not "Got is 0".
    • Why it matters: the owner reads this section to give the yes the PR asks for. Please correct the two parentheticals before that yes, so the decision rests on the real rule.
  2. PR description, "What changed" — "the version number in 2 rows" is one row. Only docs/data-dependence/features/metrics-push.md names the accountant version (its copy in the generated page is the second place). Trivial.

  3. Dash and the push now disagree on the new case, as the PR's open question says. dash/accountant_price.go:472 gates on c.Fatal() and does not change, so the dashboard still books no saving on a Claims-0 sum failure, while the push path (proxy/accountant_wire.go:224, accountant.Withhold) now books it. The divergence is pre-existing structure, not introduced here, and the PR names it. Worth answering before the next cut.

What I checked

  • Full diff (5 files: go.mod, go.sum, 3 docs) and the code around each use of the accountant.
  • What v0.10.0 changes. I diffed the module cache copies of rossoctl/accountant v0.9.0 and v0.10.0. Only internal/engine (withhold gate, CheckFailure.Claims field, claims counting in compute.go) and docs changed. The metrics submodule is byte-identical between the two tags. The public root package is unchanged except the additive Claims *int field, so the repo's 30+ import sites compile unchanged. The PR's "the library has 1 change" and "the metrics module has no change" claims hold.
  • The behavior change is named at the top of the PR, as CLAUDE.md requires, with who it affects, old and new behavior, and how to turn it off (pin v0.9.0). The PR itself says it needs the owner's yes before merge. Merge gate: that yes must be recorded on the PR before hand-off. I did not read the PR comments (round-1 rule), so I cannot confirm it is there yet.
  • go.mod rules. Both lines the PR changes pin released tags (v0.10.0 for the root module and for the metrics subfolder, which needs its own tag). No pseudo-version. The metrics bump is not forced by MVS (the accountant's go.mod requires nothing), but it is harmless and keeps the pair at one version.
  • go.sum. Both h1: hashes for each module match the .ziphash files in the local module cache, and the /go.mod hash for v0.10.0 equals v0.9.0's, which matches the byte-identical go.mod I verified.
  • Data dependence. The row file docs/data-dependence/features/metrics-push.md was edited, and the regenerated page cell in docs/data-dependence.md matches the row text exactly (I compared the strings). No hand edit to the generated page. The reason-code list in docs/metrics/spec.md still matches the library's constants, which did not change between the versions. The change alters when a figure is withheld, not what data is read or sent, so the row's Kind and levels stay right.
  • Stale references. No remaining "accountant v0.9.0" in the repo. The two "v0.1.0" mentions in docs/accountant/ are historical notes.
  • The dash claim in the PR. dash gates on Fatal() (dash/accountant_price.go:472), and Fatal() does not change in v0.10.0, so the PR's "not affected: the dashboard" claim holds.
  • Live tests were not run (not approved for this review). I read the library source and the repo's call sites instead.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 2 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.332 offload-review skill, @amiddavid's session fresh 2 of 2 1 of 2 6d31a776 blocking

Verdict: blocking

The code change itself is sound. I verified the bump against the accountant source in the local
module cache. Both findings are about the behavior-change gate, not the code.

Findings

  1. PR body, "Behavior change" section — the stated boundary of the new Withhold rule is wrong: it names Got, the library gates on Claims

    • What fails: The body says the new rule skips a check_sum failure when "Got is 0", and "Still withheld: a check_sum failure with Got not 0". That is not what accountant v0.10.0 does. Withhold reads Claims (the count of spans of applied operations in the section), not Got (the net bytes they claim). A sum failure with Got 0 and Claims above 0 — a false removal of N bytes beside a real insert of N bytes — still withholds. The body tells the owner the opposite.
    • Proof: accountant v0.10.0 internal/engine/withhold.go, unreportedChange: c.Check == CheckSum && c.Claims != nil && *c.Claims == 0. Its own test {"sum, claims cancel to Got 0", ... sumFailure(SectionTools, -100, 0, 2)} expects WithheldCheckSum. The library design doc says it plainly: "Withhold reads Claims, not Got". For failures the library builds, Claims 0 implies Got 0, but Got 0 does not imply Claims 0.
    • Fix: Edit the two lines of the PR body. Say: skips when no applied operation has a span in the section (Claims is 0); still withholds when operations claim the section, also when their bytes cancel to Got 0. The owner's yes must rest on the right boundary.
  2. PR body — the behavior change has no recorded human yes yet

    • What fails: CLAUDE.md and RELEASING.md say every behavior change needs a human developer's yes before merge. This bump changes what users see: savings figures rise on requests where a body change no operation reported caused a sum failure. The body itself says "Needs the owner's yes before merge" and lists it as an open question. No yes is recorded on the PR.
    • Proof: The PR body's "Open questions" section, first item. The behavior change section, first line.
    • Fix: The owner records the yes on the PR (after finding 1 is corrected) before the hand-off.

Non-blocking

  • The PR body has no Local tests: waived (owner rule) line. It lists targeted tests instead. check-ready.sh wants the waiver line (interim rule) in the body or a comment.
  • docs/metrics/spec.md:308 — the check_sum reason of llm_savings_withheld_total now occurs less. A half-sentence saying a sum failure no operation claims no longer withholds would keep the spec exact. Optional.
  • The proxy and dash now differ on a Claims-0 sum failure: the proxy books, the dashboard falls back. The PR names this as an open question. Fine to leave for a later PR.

What I checked

  • The full diff: go.mod, go.sum, and 3 doc files. No Go code changes, so no host-boundary or client-rule questions arise.
  • The accountant v0.9.0 → v0.10.0 diff, read from the local module cache. The root module changes 4 files only (withhold.go, result.go, check_numbers.go, compute.go): a new Claims field on CheckFailure and the unreported-change exception in Withhold. The metrics module is byte-identical between the two tags, as the PR claims. Fatal() is unchanged, so the PR's claim "Not affected: the dashboard" holds (dash/accountant_price.go:472 gates on Fatal()).
  • The go.mod pin rule: both pins are released tags (v0.10.0, metrics/v0.10.0), no pseudo-version. The go.sum hashes are consistent: the root module's go.mod hash is unchanged because the library's go.mod did not change; the metrics h1 changes only because a module zip's file paths carry the version.
  • The proxy call site that changes behavior: proxy/accountant_wire.go:224 calls accountant.Withhold.
  • Tests that touch check_sum, none of which assert the old Claims-0 behavior: TestSavings_ChangedChangeIDDoubleCountIsGated (the section is claimed by two rewrites, so it still gates), proxyapp/metricspush tests build {Check: "sum"} with Claims nil (the library's own test "sum, Claims absent" still withholds), and pricedAfterRestart / TestToolDeferReportsItsNamesList require no check failure at all. This supports the PR's claim that no golden file needed a change.
  • Data dependence: the row file docs/data-dependence/features/metrics-push.md and the generated page carry the same edit, word for word. The kind and the three levels do not change, and the reason-code list is unchanged in v0.10.0, so the row's text stays true. Only the version reference changed.
  • The withhold reason constants are the same seven in both versions, so docs/metrics/spec.md's reason list stays correct.

@amiddavid

Copy link
Copy Markdown
Collaborator Author

Round 1 replies (head unchanged, 6d31a77)

Reviewer 2, finding 1, and reviewer 1, note 1 (Got against Claims): fixed in the PR body. The body now says that Withhold skips a check_sum failure when no applied operation has a span in the section (Claims is 0). It still withholds when operations claim the section, also when their bytes cancel to Got 0. That matches unreportedChange in accountant v0.10.0.

Reviewer 2, finding 2 (no recorded human yes): fixed. The owner approved the behavior change in the integrator session ("1464 approve"). The integrator described the rule to the owner as "no operation claims that section", which is the Claims rule. The body records the approval in its first line.

Reviewer 2, non-blocking (local tests line): fixed. The body now has the line Local tests: waived (owner rule).

Reviewer 1, note 2 ("2 rows"): accepted. One row names the version, and the generated page copies it. No change.

Dash and push differ on a Claims-0 sum failure (both reviewers): out of scope. The integrator opens a follow-up issue for it.

docs/metrics/spec.md half-sentence (reviewer 2, optional): not done, to keep this PR a pure version bump. The follow-up issue covers it.

The code did not change, so round 2 runs on the same head.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 2 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.332 offload-review skill, @amiddavid's session resumed 2 of 2 2 of 2 6d31a776 approve

Verdict: approve

The head did not move. Both round-1 findings are fixed in the PR body, and I verified each fix
against the PR as it stands now. The code needs no change.

Findings

None.

Earlier findings

  1. Round 1, finding 1 (PR body named Got, the library gates on Claims): fixed. The body now says Withhold skips a check_sum failure "when no applied operation has a span in that section (Claims is 0)" and still withholds "where operations claim the section (Claims above 0), also when their bytes cancel to Got 0". That matches unreportedChange in accountant v0.10.0, which I checked in round 1. The owner's yes now rests on the right boundary. I also agree with reviewer 1, note 1, which raised the same point; I verified it independently in round 1.

  2. Round 1, finding 2 (no recorded human yes): fixed. The body's first line records the owner's approval: "The owner approved this behavior change in the integrator session ("1464 approve")." The approval is the owner's own words, relayed through the integrator session and recorded on the PR. The integrator described the rule to the owner as "no operation claims that section", which is the Claims rule the body now states. The record sits where the owner can see it. This meets the rule in CLAUDE.md and RELEASING.md.

  3. Round 1, non-blocking (missing waiver line): fixed. The body now has Local tests: waived (owner rule).

  4. Round 1, non-blocking (dash and push differ on a Claims-0 sum failure): out of scope, follow-up open. Issue #1465 ("dash: gate savings with accountant.Withhold, like the metrics push") exists, opened 2026-11-26T14:04:37Z. I verified it.

  5. Round 1, non-blocking (spec.md half-sentence): not done, by the author's choice, to keep this PR a pure version bump. Accepted: it was optional.

  6. Reviewer 1, note 2 ("2 rows" is one row): accepted by the author, no change. Correct: one row file names the version; the generated page copies it.

Non-blocking

  • The body's "Open questions" section still lists "Does the owner accept that proxy savings figures rise on requests with an unreported body change?" The first line of the body now answers it. Strike the question, or mark it answered, so a reader does not think the yes is still missing.

What I checked

  • Last review: round 1, 6d31a77605ec68e6e67fe0bbf6a5f505f9067918, 2026-11-26T14:03:24Z.
  • New commits read: 0. Command git log --stat 6d31a77605ec68e6e67fe0bbf6a5f505f9067918..HEAD returned empty output (exit 0). The head is the same as round 1, as expected.
  • Read in full: 2 reviews, 1 comment, 0 inline comments (from .review-in-reviews.txt, .review-in-comments.txt, .review-in-inline.txt). Reviewer 1's round-1 review (14:02:03Z) I read now for the first time; the round-1 rule kept me from it before. My own round-1 review (14:03:24Z) I re-read in full.
  • New items since my last review: 1, the round-1 replies comment by amiddavid at 2026-11-26T14:04:21Z. I checked each claim in it:
    • "Fixed in the PR body" (finding 1): re-fetched the PR body from the API and read all 53 lines. Lines 7 and 9 now state the Claims rule. Verified.
    • "The owner approved ... the body records the approval in its first line" (finding 2): the body's line 3 records it. Verified.
    • "The body now has the waiver line" (finding 3): the body's line 42. Verified.
    • "The integrator opens a follow-up issue" (dash divergence): issue #1465 exists with the matching title and timestamp. Verified.
  • No code changed since round 1, so my round-1 code checks stand: the bump is sound, the pin rule holds, the data-dependence row and the generated page match, and no test asserts the old Claims-0 behavior.
  • Live tests were not run (not approved for this review). The head is unchanged from round 1, so the author's round-1 test notes still apply to it.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 1 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.332 offload-review skill, @amiddavid's session resumed 1 of 2 2 of 2 6d31a776 approve

Verdict: approve

Findings

None. No new commit, and every reply on the PR checks out.

Earlier findings, status

  • Reviewer 1, note 1 / reviewer 2, finding 1 (the body named Got, the library gates on Claims): fixed. The body now says Withhold skips a check_sum failure "when no applied operation has a span in that section (Claims is 0)", and still withholds "where operations claim the section (Claims above 0), also when their bytes cancel to Got 0". I checked this against unreportedChange in accountant v0.10.0 (c.Check == CheckSum && c.Claims != nil && *c.Claims == 0). The body now states the real rule.
  • Reviewer 2, finding 2 (no recorded human yes): fixed. The first line of the "Behavior change" section records the owner's approval ("1464 approve" in the integrator session). The reply says the integrator described the rule to the owner as "no operation claims that section" — the Claims rule, the corrected one. The yes rests on the right description and is recorded on the PR.
  • Reviewer 2, non-blocking (missing local-tests line): fixed. The body now ends with Local tests: waived (owner rule).
  • Reviewer 1, note 2 ("2 rows" is one row): accepted by the author. No change needed.
  • Reviewer 1, note 3 / reviewer 2, non-blocking (dash and push disagree on the new case): out of scope, follow-up opened. Issue #1465 ("dash: gate savings with accountant.Withhold, like the metrics push", opened 2026-11-26T14:04:37Z, open) covers it, and its proposal also covers the deferred docs/metrics/spec.md half-sentence. Verified against the issue body.
  • Reviewer 2, non-blocking (spec.md half-sentence): not done here, by choice. The author kept the PR a pure version bump. Issue #1465's proposal carries the spec edit. Accepted.

Non-blocking

  • The body's "Open questions" still lists "Does the owner accept that proxy savings figures rise…?", which the approval line at the top has now answered. Cosmetic; the top line supersedes it.

What I checked

  • Last review: round 1, 6d31a77, 2026-11-26T14:02:03Z.
  • New commits read: 0. git log --oneline 6d31a77605ec68e6e67fe0bbf6a5f505f9067918..HEAD prints nothing; HEAD is still 6d31a776. That is expected, not a skip.
  • Read in full: 2 reviews, 1 comment, 0 inline comments (from .review-in-reviews.txt, .review-in-comments.txt, .review-in-inline.txt).
  • New items since my last review, and what I did about each:
    1. Reviewer 2's round-1 review (14:03:24Z, blocking). Read in full. Both findings match what I verified in round 1 from the library source; both are now fixed (see above).
    2. The author's round-1 reply (14:04:21Z). Read in full. I verified each claim it makes: the corrected Claims wording in the body, the recorded owner's yes, the local-tests waiver line, and the follow-up issue.
    3. The edited PR body. Re-fetched and re-read in full. The "Behavior change" section states the Claims rule exactly as the library implements it, and names who approved, where, and how to turn the change off.
    4. Issue #1465 (14:04:37Z). Read in full. It covers the dash/push divergence and the spec.md note, and it names its own behavior-change gate.
  • Live tests: not run. They are not approved for this review, and the head is unchanged since round 1, so there is no new code to test. The author's round-1 test notes stand as written.
  • The code, go.mod, go.sum and the three doc files are byte-identical to the head I reviewed in round 1. My round-1 checks (module diff, go.sum hashes, data-dependence row match, no stale version references) still hold.

Accountant v0.10.0 adds the field Check.Claims to the marshaled Result.
Cases 0, 1, 2 and 5 carry a ratio_range check, so each gets a new
"Claims": null key and a new digest.
Saved and Unpriced are the same. Cases 3 and 4 are the same. No booked figure changed.

Assisted-By: Claude Opus 5.5
Signed-off-by: DAVID AMID <[email protected]>
@amiddavid

Copy link
Copy Markdown
Collaborator Author

New commit after round 2 (af26489)

CI job purego failed on TestReplayBooksTheSameFigures. The cause: accountant v0.10.0 adds the field Check.Claims to the marshaled Result. In cases 0, 1, 2 and 5, a ratio_range check now has a "Claims": null key, so the test's digests change. Saved and Unpriced are the same in v0.9.0 and v0.10.0, and no booked figure changes. Cases 3 and 4 are unchanged. #121 does not apply to these cases: none has a check_sum failure.

The commit updates the 4 expected digests and adds a comment with the reason. It also merges main. go test ./proxy/ and go vet ./... pass on macOS. The owner granted round 3.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 1 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.332 offload-review skill, @amiddavid's session resumed 1 of 2 3 of 3 af26489306ac approve -->

Verdict: approve

Findings

None. The new commit is a correct test update, the merge of main is clean, and CI is green at the new head.

Earlier findings, status

All round-1 and round-2 findings stay fixed. The new commits touch none of them:

  • The Claims wording in the body and the recorded owner's yes are unchanged.
  • The dash/push divergence stays tracked in issue #1465. After the merge I re-checked it on the new tree: dash/accountant_price.go:349 still gates on c.Fatal(), proxy/accountant_wire.go:224 still gates on accountant.Withhold. The PR body's "Not affected: the dashboard" claim still holds on the merged tree, because #1462 kept the Fatal() gate.

The new commit, checked

  • af264893 "test(proxy): the replay books the v0.10.0 figures". It updates 4 of the 6 expected digests in TestReplayBooksTheSameFigures and adds the reason as a comment. I verified the mechanism from the library source: CheckFailure.Claims is *int with no omitempty (internal/engine/result.go:99), so every marshaled CheckFailure now carries "Claims": null. Cases 0, 1, 2 and 5 carry a ratio_range check (CheckRatioRange, compute.go:21), so their digests change; cases 3 and 4 have no check, and their digests are unchanged in the want string — the two constants a1ca4676152f8123 and 1cf6bfca006c491d appear in both the old and the new list. The commit message's claim "no booked figure changed" matches my round-1 library diff: compute.go only adds claims counting for sum failures, and Saved/Unpriced computation is untouched. CI purego (which runs this test) passes at the new head.
  • 7b184ad6, the merge of origin/main. Clean. The merged tree differs from main (f9ec697c) by exactly this PR's 5 files, and differs from its first parent (6d31a776) by exactly main's #1462 changes (13 files, 428 insertions). No conflict resolution changed anything. The interaction I checked: #1462 moved dash pricing onto accountant.Figure and added proxy/dash_figure_counters_test.go (dash figure equals the llm_savings_* counters). Neither reads Withhold's new exception, so the merge creates no new behavior beyond what the PR body names.

Non-blocking

  • The PR body still says "No golden or expected test file needed a change". At af264893 that is stale: the replay test's expected digests are a golden list, and they changed. The author's comment at 14:11:52Z records the truth, and the "How it was tested" section of the body still describes only the old head's runs. Update the two spots before the hand-off, so the body matches the head it merges.

What I checked

  • Last review: round 2, 6d31a77, 2026-11-26T14:06:13Z.
  • New commits read: 2 — 7b184ad6 "Merge remote-tracking branch 'origin/main' into chore/bump-accountant-0.10.0", af264893 "test(proxy): the replay books the v0.10.0 figures". The new base f9ec697c (main's #1462) I read as part of the merge.
  • Read in full: 4 reviews, 2 comments, 0 inline comments (from .review-in-reviews.txt, .review-in-comments.txt, .review-in-inline.txt).
  • New items since my last review, and what I did about each:
    1. Reviewer 2's round-2 review (14:06:10Z, approve). Read in full. Its verdicts match mine; nothing new to check beyond what I verified myself.
    2. The author's comment at 14:11:52Z. Read in full. I verified each claim: the CI purego failure at the old head and its cause ("Claims": null in the marshaled Result), the 4 changed digests against the test file, the unchanged figures against my round-1 library diff, and the passing CI at the new head (gh pr checks: purego, lint-build, trivy, analyze, build, CodeQL, DCO all pass).
    3. The two new commits, reviewed as a first review above.
    4. The PR body, re-fetched and re-read in full. Unchanged from round 2 except that one claim is now stale (see Non-blocking).
  • The PR's own diff against its new base (git diff f9ec697c..HEAD) is the round-1 bump plus the one test file. My round-1 checks on the bump (module diff, go.sum hashes against the module cache, data-dependence row match, no stale version references) still hold; the merge touched none of those files.
  • Live tests: not run, not approved. CI purego runs the changed package's tests at the new head and passes, which covers the one test this round changed.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 2 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.332 offload-review skill, @amiddavid's session resumed 2 of 2 3 of 3 af264893 approve

Verdict: approve

The new head has two commits: a merge of main and a replay-test digest update. Both are sound.
The digest update is a golden refresh forced by an additive library field, not a hidden figure
change. CI is green at the new head.

Findings

None.

The new commits

  1. af264893 — test(proxy): the replay books the v0.10.0 figures. Sound.

    • What it does: updates 4 of the 6 expected digests in TestReplayBooksTheSameFigures and adds a comment with the reason.
    • Why the digests change: the test hashes json.Marshal(res) of the whole accountant Result, checks included (proxy/accountant_replay_test.go:63-68). v0.10.0 adds Claims *int to CheckFailure with no json tag, so every marshaled check gains a "Claims": null key. Any Result that carries a check gets new bytes and a new digest.
    • Proof that no figure changed: cases 3 and 4 kept their digests (a1ca4676152f8123, 1cf6bfca006c491d). A Result with no checks marshals to identical bytes in v0.9.0 and v0.10.0, so those two book the same figures as before. The library's figure computation is unchanged by #121 (it changes only the Withhold gate and the claims count), and Withhold output is not part of the digest. The partition is self-consistent: exactly the cases that carry checks changed.
    • CI confirms it: purego failed on this test at the old head and passes at af264893. I checked the PR's check runs.
  2. 7b184ad6 — merge of origin/main (f9ec697c, #1462) into the branch. Clean.

    • A normal merge, no force-push, as the branch rules require.
    • The PR's own diff against the new base is unchanged in substance: go.mod, go.sum, the 3 doc files, plus the replay test.
    • Interaction check: #1462 rewrote dash/accountant_price.go, and dash still gates on Fatal() (dash/accountant_price.go:349 at the merged head), never on Withhold. So the PR body's claim "Not affected: the dashboard" still holds after the merge. Issue #1465 tracks the alignment.

Earlier findings, status

  • Round 1, finding 1 (Got against Claims in the PR body): fixed in round 2. The body still states the Claims rule correctly at the new head (lines 7 and 9 of the body).
  • Round 1, finding 2 (no recorded human yes): fixed in round 2. The body's first line still records the owner's approval ("1464 approve" in the integrator session).
  • Round 1, non-blocking (waiver line, spec.md half-sentence, dash divergence): fixed, deferred to #1465, and tracked in #1465, as verified in round 2. Nothing changed.
  • Round 1 claim in the body, "No golden or expected test file needed a change": proved wrong by CI. The purego job failed on TestReplayBooksTheSameFigures. The author fixed it with the digest commit. The body's "What changed" section still carries the old sentence; the new test run in "How it was tested" covers the new head. Minor wording, see Non-blocking.
  • Reviewer 1's round-2 review (14:06:13Z): read in full. I agree with its status of every finding; I verified each myself in rounds 1 and 2.

Non-blocking

  • The body's "Open questions" section still lists the owner question that the approval line answers. Carried over from round 2; cosmetic.
  • The body's "What changed" still says "No golden or expected test file needed a change", which CI disproved and the new commit fixes. Strike or correct the sentence.
  • The replay test hashes the whole marshaled Result, so any additive library field breaks it. Pre-existing design, not this PR's defect. A follow-up could hash only the figure fields.

What I checked

  • Last review: round 2, 6d31a77605ec68e6e67fe0bbf6a5f505f9067918, 2026-11-26T14:06:10Z.
  • New commits read: 2 — 7b184ad6 "Merge remote-tracking branch 'origin/main' into chore/bump-accountant-0.10.0" and af264893 "test(proxy): the replay books the v0.10.0 figures". The new base f9ec697c is #1462 from main; I read its full commit message and stat. It is main's code, not this PR's change.
  • Read in full: 4 reviews, 2 comments, 0 inline comments (from .review-in-reviews.txt, .review-in-comments.txt, .review-in-inline.txt).
  • New items since my last review, and what I did about each:
    1. Reviewer 1's round-2 review (14:06:13Z, approve). Read in full. Its finding statuses match my own verification.
    2. The author's comment (14:11:52Z) on the CI failure and the fix. Read in full. I verified each claim: the Claims field is new in the marshaled Result (library result.go), the digest pattern matches exactly the cases that carry checks, and purego now passes.
    3. The two new commits. Read the full diff of each and the code around the change (proxy/accountant_replay_test.go, whole file).
    4. The PR body at the new head. Re-fetched and re-read in full. The behavior-change section, the owner's yes, and the waiver line are unchanged; the test notes now cover the new head.
    5. CI at af264893: lint-build, purego, trivy, DCO all pass. Checked with gh pr checks.
  • The bump itself (go.mod, go.sum, 3 doc files) is byte-identical to the head I approved in round 2; my round-1 and round-2 checks on it stand.
  • Live tests were not run (not approved for this review). CI purego covers the changed package at the new head, and it passes.

@amiddavid
amiddavid merged commit ebd659b into main Nov 26, 2026
12 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant