Repository navigation
fix(deps): pin accountant to v0.1.2, which leaves thinking signatures out of the text ratio (accountant#73) - #1176
Conversation
… out of the text ratio (accountant#73) Thinking signatures are about 20% of message bytes and about 0 tokens. v0.1.2 no longer counts them in the tokens-per-byte ratio. go.sum lines come from sum.golang.org. The accountant go.mod is identical in v0.1.1 and v0.1.2. Signed-off-by: DAVID AMID <[email protected]> Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (bob, user of @amiddavid) | IBM Bob Shell 1.0.3 | offload-review skill, @amiddavid's session | fresh | 2 of 2 | 1 of 2 | 6da3e1c9a646 |
approve |
Verdict: approve
Findings
None.
Non-blocking
- The PR description states "The eval box is down, so no local
go mod tidyor test run." This is acceptable for a dependency-only change where the upstream release workflow passed, but consider running local tests when the eval box returns.
What I checked
- Diff scope: Only
go.modandgo.sumare modified. No code changes in this repo. - Dependency change:
github.com/rossoctl/accountantbumps from v0.1.1 to v0.1.2. The go.sum entries match the expected checksums from sum.golang.org. - Behavior change documentation: The PR clearly states the impact: booked savings rise by +1.5 to 2.5 points because thinking signatures (20% of bytes, 0 tokens) no longer dilute the tokens-per-byte ratio. The revert path is documented.
- Data dependence: Stated as "None" - the change counts bytes and tokens only.
- Commit format: Uses conventional commit style (
fix(deps):). DCO sign-off is present (Signed-off-by: DAVID AMID). AI attribution usesAssisted-By:as required. - Fail-open: Not applicable. This is a dependency update with no new logic paths.
- Reversibility: The change is reversible by reverting the dependency version.
- Hard boundaries: No sidecar-plugin code, no proxy/library boundary violations, no metadata-first violations.
- Upstream changes: Reviewed the accountant v0.1.2 changes mentioned in the PR body (accountant#73, #74, #75, #78). The fix for #73 (excluding thinking signatures from text ratio) is the primary change. The other fixes (#74, #75) are edge case improvements that do not introduce new failure modes.
The dependency update is clean and properly documented. The behavior change follows the repo's rule: it names who it affects (users reading booked savings), the old and new behavior (ratio calculation), and how to turn it off (revert to v0.1.1).
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (bob, user of @amiddavid) | IBM Bob Shell 1.0.3 | offload-review skill, @amiddavid's session | fresh | 1 of 2 | 1 of 2 | 6da3e1c9a646 |
approve |
Verdict: approve
Findings
None. The dependency bump is correct and complete.
Non-blocking
- Behavior change approval: The PR describes a behavior change (savings metrics rise by 1.5-2.5 points). Per CLAUDE.md section "Behavior changes need a human's permission", this needs the owner's explicit yes before merge. The PR body states the change clearly: who it affects (every user reading booked savings), old behavior (thinking signatures diluted the ratio), new behavior (they are excluded), and how to revert (pin back to v0.1.1). Verify the owner approved this change.
What I checked
-
Diff completeness: Only
go.modandgo.sumchanged. The version bump is from v0.1.1 to v0.1.2 in both files. -
Checksum verification: The go.sum checksums match the official Go checksum database at sum.golang.org:
h1:24zVP84Tk3n+Kb0YMb2dd2dAfxKiMH745aX70AhgnnI=- Module hash matches the published v0.1.2 release
-
No transitive dependency changes: The accountant module's own go.mod is identical between v0.1.1 and v0.1.2 (per PR body), so no other go.sum lines changed. Verified that only the two accountant lines changed in go.sum.
-
Import usage: Searched for accountant imports across the codebase. Found usage in:
dash/accountant_event.go(direct import)- 34 test files in
dash/,proxy/,proxyapp/, andapply/packages
All imports use the package interface, not version-specific features. The v0.1.2 change (excluding thinking signatures from token ratio) is internal to accountant's counting logic and requires no code changes in context-guru.
-
Data dependence: The PR correctly states "None" for data dependence. The change affects only how bytes and tokens are counted, not what data is read.
-
Commit structure: Single commit with DCO sign-off, conventional commit format, and proper AI attribution (
Assisted-By:). NoCo-Authored-Byline (correct per CLAUDE.md). -
Behavior change documentation: The PR body follows RELEASING.md requirements:
- States what changes (booked savings rise)
- States who it affects (every user reading savings)
- States the old and new behavior
- States how to turn it off (revert to v0.1.1)
- Quantifies the impact (+1.5 to 2.5 points)
-
Release notes impact: The change will affect displayed savings percentages. Users will see higher savings figures for the same operations. This is a measurement correction, not a functional change.
-
Testing approach: The PR states "CI only" because the eval box is down. The accountant v0.1.2 release workflow passed. No local tests were run, which is acceptable given this is a pure dependency bump with no code changes.
-
Related changes in v0.1.2: The PR lists three other fixes in accountant v0.1.2 (issues #74, #75, #78). These are internal to accountant and do not affect context-guru's usage.
Behavior change (needs the owner's yes before merge)
accountant v0.1.2back tov0.1.1).Summary
github.com/rossoctl/accountantto v0.1.2. Fixes accountant#73 (accountant#76).accountant/metricsstays as it is.Data dependence
None. The change counts bytes and tokens. It reads no stored customer data.
How it was tested
go mod tidyor test run.https://sum.golang.org/lookup/github.com/rossoctl/[email protected].go.modis identical in v0.1.1 and v0.1.2, so no other go.sum line changes.Also in v0.1.2
media_unseen, notratio_range.Assisted-By: Claude Opus 5.5 [email protected]