Repository navigation
docs: fix comments citing unrelated issue #17 for cache-write-token work - #717
Merged
anilmurty merged 2 commits intoAug 12, 2026
Conversation
…he-write-token work Four source comments cited Metabuilder-Labs#17 ("Fix pricing file not included in pip wheel") for cache-write-token visibility work, which Metabuilder-Labs#17 does not document. Per Critical Rule 23 in CLAUDE.md, describe the thing plainly rather than cite a number that doesn't match. Closes Metabuilder-Labs#594
Contributor
|
| Filename | Overview |
|---|---|
| tokenjam/api/routes/traces.py | Removes the unrelated issue reference from the cache_write_tokens serialization comment without changing behavior. |
| tokenjam/cli/cmd_cost.py | Rewords the cache-write column explanation without changing CLI output or control flow. |
| tokenjam/core/db.py | Rewords the cache-write aggregation comment without changing the query or returned data. |
| tokenjam/core/models.py | Removes the unrelated issue reference from the CostRow.cache_write_tokens field comment without changing its definition. |
Reviews (2): Last reviewed commit: "Merge branch 'main' into docs/issue-594-..." | Re-trigger Greptile
anilmurty
approved these changes
Aug 12, 2026
Contributor
|
Thanks for the contribution @laishettikarthik-tech and welcome! |
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.
Fixes source comments that cite issue #17 for work #17 doesn't describe.
Summary
Four source comments referenced
#17("Fix pricing file not included inpip wheel") to explain cache-write-token visibility work, which #17 is
unrelated to. Per Critical Rule 23 in
CLAUDE.md, a bare#Nreferencethat doesn't match what it sits beside should describe the thing plainly
rather than cite the wrong number.
Fixed sites
tokenjam/core/db.py—get_cost_summarycommenttokenjam/cli/cmd_cost.py— CACHE R / CACHE W columns commenttokenjam/core/models.py—CostRow.cache_write_tokensfield commenttokenjam/api/routes/traces.py—_span_to_dict'scache_write_tokenskey commentEach now describes the cache-write-tokens visibility fact in plain
language, with the
#17reference removed. No other reference nearthese sites was touched (e.g.
#209,#249remain — confirmed correctagainst their actual issue content).
Tests / Verification
python -m py_compileon all four modified files — clean.grep -rn '#17[^0-9]' tokenjam/after the fix — zero remaining#17references anywhere in the codebase.What's NOT in this PR
The issue's second "Done when" criterion asks for a repo-wide grep to
check for any other reference whose target doesn't match its comment —
not just
#17. I ran the grep (grep -rn '#[0-9]\+' --include='*.py' tokenjam/) and it surfaced several hundred#Nreferences across thecodebase. Verifying each of those against its actual issue content is a
much larger audit than this issue's four named sites, and requires
issue-tracker access I don't have as an external contributor. I've
confirmed no other
#17citation exists; a broader audit is bettersuited to a maintainer with tracker access, or a dedicated follow-up
issue if warranted.
Closes #594