Skip to content

docs: fix comments citing unrelated issue #17 for cache-write-token work - #717

Merged
anilmurty merged 2 commits into
Metabuilder-Labs:mainfrom
laishettikarthik-tech:docs/issue-594-fix-mismatched-issue-refs
Aug 12, 2026
Merged

anilmurty merged 2 commits into
Metabuilder-Labs:mainfrom
laishettikarthik-tech:docs/issue-594-fix-mismatched-issue-refs

Conversation

@laishettikarthik-tech

Copy link
Copy Markdown
Contributor

Fixes source comments that cite issue #17 for work #17 doesn't describe.

Summary

Four source comments referenced #17 ("Fix pricing file not included in
pip wheel") to explain cache-write-token visibility work, which #17 is
unrelated to. Per Critical Rule 23 in CLAUDE.md, a bare #N reference
that 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_summary comment
  • tokenjam/cli/cmd_cost.py — CACHE R / CACHE W columns comment
  • tokenjam/core/models.py — CostRow.cache_write_tokens field comment
  • tokenjam/api/routes/traces.py — _span_to_dict's cache_write_tokens key comment

Each now describes the cache-write-tokens visibility fact in plain
language, with the #17 reference removed. No other reference near
these sites was touched (e.g. #209, #249 remain — confirmed correct
against their actual issue content).

Tests / Verification

  • python -m py_compile on all four modified files — clean.
  • Repo-wide grep -rn '#17[^0-9]' tokenjam/ after the fix — zero remaining
    #17 references 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 #N references across the
codebase. 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 #17 citation exists; a broader audit is better
suited to a maintainer with tracker access, or a dedicated follow-up
issue if warranted.

Closes #594

…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
@greptile-apps

greptile-apps Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR removes four unrelated #17 citations and replaces them with plain-language descriptions of cache-write-token visibility.

  • Updates comments in the trace API serialization and cost CLI output.
  • Updates comments in the cost-summary database query and CostRow model.
  • Makes no executable code or data-contract changes.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

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

Copy link
Copy Markdown
Contributor

Thanks for the contribution @laishettikarthik-tech and welcome!

@anilmurty
anilmurty merged commit 7da015a into Metabuilder-Labs:main Aug 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Several source comments cite issue #17 for unrelated cache-write-token work

2 participants