Skip to content

fix(deps): pin accountant to v0.1.2, which leaves thinking signatures out of the text ratio (accountant#73) - #1176

Merged
amiddavid merged 1 commit into
mainfrom
fix/pin-accountant-v0.1.2
Nov 16, 2026
Merged

amiddavid merged 1 commit into
mainfrom
fix/pin-accountant-v0.1.2

Conversation

@amiddavid

Copy link
Copy Markdown
Collaborator

Behavior change (needs the owner's yes before merge)

  • What changes: booked preset, sweep, searchfold and textclean savings rise. About +1.5 to 2.5 points of preset share on a laptop.
  • Why: thinking signatures (about 20% of message bytes, about 0 tokens) no longer dilute the tokens-per-byte ratio. Removals booked about 1.12 Claude tokens per counted token. The measured value is 1.51.
  • Who it affects: every user who reads the booked savings.
  • Turn it off: revert this one dependency line (accountant v0.1.2 back to v0.1.1).

Summary

  • Pin github.com/rossoctl/accountant to v0.1.2. Fixes accountant#73 (accountant#76).
  • accountant/metrics stays as it is.

Data dependence

None. The change counts bytes and tokens. It reads no stored customer data.

How it was tested

  • CI only. The eval box is down, so no local go mod tidy or test run.
  • go.sum lines come from the Go checksum database: https://sum.golang.org/lookup/github.com/rossoctl/[email protected].
  • The accountant go.mod is identical in v0.1.1 and v0.1.2, so no other go.sum line changes.
  • The accountant v0.1.2 release workflow passed.

Also in v0.1.2

  • accountant#74: end added content when the client removes the item before it.
  • accountant#75: name media with no bytes media_unseen, not ratio_range.
  • accountant#78: docs fix.

Assisted-By: Claude Opus 5.5 [email protected]

… 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 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 (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 tidy or 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.mod and go.sum are modified. No code changes in this repo.
  • Dependency change: github.com/rossoctl/accountant bumps 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 uses Assisted-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 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 (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

  1. Diff completeness: Only go.mod and go.sum changed. The version bump is from v0.1.1 to v0.1.2 in both files.

  2. 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
  3. 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.

  4. 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/, and apply/ 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.

  5. 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.

  6. Commit structure: Single commit with DCO sign-off, conventional commit format, and proper AI attribution (Assisted-By:). No Co-Authored-By line (correct per CLAUDE.md).

  7. 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)
  8. 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.

  9. 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.

  10. 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.

@amiddavid amiddavid closed this Nov 16, 2026
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 16, 2026
@amiddavid amiddavid reopened this Nov 16, 2026
@amiddavid
amiddavid merged commit f3f108c into main Nov 16, 2026
13 checks passed
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