Repository navigation
docs: correct stale comments and doc claims (batch: #343 #263 #120 #181 #146 #272 #147) - #741
Conversation
…-row rates The comment said every figure is priced from the row's own model rates. The code resolves one modelinfo.Price from the model argument and reuses it for every row and every K. So an account that runs several models is priced at its representative's rates. The comment now says both the prefix and the model are caller-supplied representatives. The prefix rationale (bimodal per-ping cost) is kept, as issue #343 asks. Code is unchanged. Written by GLM through Claude Code Assisted-By: GLM Signed-off-by: DAVID AMID <[email protected]>
…lient The cache preset's comment called -34.1% cost and 0% -> 96.7% cache hit an isolated A/B, cited docs/results/context-guru.md, and read as a general property of the component. Three corrections, all from the repo's own docs: - The -34.1% figure is one Terminal-Bench task (fix-code-vulnerability) measured three times, on Claude Code CLI traffic, at Sonnet 5 rates. - It does not transfer to Agent-SDK traffic: those requests carry no volatile-tail marker, and cachesplit acted=0 on them (docs/results/terminal-bench-comparison.md). - The service's own interactive window credited the split $0.03 (docs/results/measured-2026-08.md). The wrong citation is dropped. The docs already carried the bounded claim; only this comment still stated it as general. Code is unchanged. Written by GLM through Claude Code Assisted-By: GLM Signed-off-by: DAVID AMID <[email protected]>
The comment above housellm derived a floor of 8,000 for extract_llm's warm/tail path. The preset ships 3,000. One of the two was wrong, and a reader tuning the floor would re-derive 8,000 and "fix" the config. 3000 is the side that is right, and the repo already held its derivation: - 8,000 was priced without amortization: it ignored that a saved token is re-served on later turns. With the turn-aware prior (reuses 12 on a long transcript) a call needs ~2,073 saved tokens, ~3,190-token candidates at the observed ~65% reduction (components/all/xglobal_test.go). - On this workload 8,000 disabled the path: tool outputs top out near 7,399 tokens and only 1 of 132 production candidates reached it. - The 873-call per-band measurement sets 2,000 as the lower bound, which 3,000 clears (config/config_more_test.go, TestHousellmFloorClearsTheBandsThatLoseAtEveryK). The comment now records that derivation, keeps the loss measurement at 1,000, and names the guard tests as the authority. The value is unchanged. Written by GLM through Claude Code Assisted-By: GLM Signed-off-by: DAVID AMID <[email protected]>
…alone The Usage doc comment still asserted the premise behind #176: "today the LLM component in a config is extract, so the global total is that component's cost." That stopped being true when the sweep, summarize and agentdiet joined extract_llm as NeedsModel callers. The comment now says what the totals are: every cheap-model call in the process. Per-component attribution exists since #178 — each component prices its own calls from ModelCall.CostUSD. Usage() survives as /stats' labelled fallback (cost_source: host_total), which states it is a superset. Code is unchanged. Written by GLM through Claude Code Assisted-By: GLM Signed-off-by: DAVID AMID <[email protected]>
CLAUDE.md said observability follows OpenTelemetry GenAI semantic conventions (gen_ai.*). The code emits no gen_ai.* metric: every exported metric is cg_* or cg_tenant_*, and deploy/eval-containers/README.md already says the convention is not yet emitted. The claim is now stated as what the code does: cg_* metrics today, gen_ai.* as the intended direction. A reviewer no longer checks new counters against a convention the codebase does not implement. Written by GLM through Claude Code Assisted-By: GLM Signed-off-by: DAVID AMID <[email protected]>
~~strikethrough~~ rendered as literal tildes on the built pages: the site does not enable pymdownx.tilde, and core Python-Markdown has no ~~ support. Issue #272 asked for the text to be fixed rather than the extension enabled — the extension would also turn ~$0.22-style figures into subscripts. Eight lines on four built pages, three more than the issue listed (the coref-selection and measurement-limits pages gained ~~ markers after it was filed): - docs/results/improvement-plan.md (3 lines, one a section heading that landed in the table of contents with the tildes in it) - docs/components/skeleton.md (2 lines) - docs/results/coref-selection-experiment.md (2 lines) - docs/results/measurement-limits.md (1 line) Each now carries its retraction marker (REFUTED / FALSE / Done / answered) as plain bold text. mkdocs build --strict passes and the built pages no longer contain a literal ~~. Written by GLM through Claude Code Assisted-By: GLM Signed-off-by: DAVID AMID <[email protected]>
theme/base.html loaded mermaid from the CDN on a floating major (mermaid@11). An upstream 11.x release could break every diagram page with no commit in this repo, in a site whose only other dependency bounds are pinned in requirements-docs.txt. Pinned to 11.17.2 — what mermaid@11 resolves to today — so the pin changes nothing about what visitors currently receive. The comment beside the import says why it is pinned and to bump it deliberately. Written by GLM through Claude Code Assisted-By: GLM 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 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.311 | offload-review skill, @amiddavid's session | fresh | 1 of 2 | 1 of 2 | a49a78e0d87e |
blocking |
Verdict: blocking
Findings
- config/config.go:704 — the coverage figure "reaching 48% of production candidates" has no source in the repo.
- What fails: a reader tuning
extract_llm's floor reads that 3,000 clears the measured 2,000 lower bound and reaches 48% of candidates. No doc, test, or commit message in the repo carries that 48%, so the reader cannot verify it. Every other number in the same paragraph traces to a named source. - Proof:
grep -rn "48%" docs components configreturns only unrelated hits (coref-evalbox, cmdfilter). The 132-candidate size distribution is not in the repo — only "1 of 132 reached 8,000" is (components/all/xglobal_test.go:326). The commit message for 3cdc336 cites sources for $9.31/MTok, 7,399, 1-of-132, and the 873-call bands, but not for 48%. - Fix: cite the measurement that produced 48% (a doc row or a test comment), or delete the number. The coverage argument for 3,000 over 2,000 is the one claim in the paragraph a floor-tuner would act on.
- What fails: a reader tuning
Non-blocking
- config/config.go:439 — the rewritten cachesplit paragraph keeps the reference to
docs/results/context-guru.md. That file does not exist. The A/B it points to lives indocs/components/caching.md("What the split is worth"). The dead link predates this PR, but the paragraph was rewritten here, so this is the natural place to fix it. - metrics/metrics.go:5 — the package doc still says Slog logs "in OTel gen_ai.* vocabulary". The emitter logs
context_engineering.*keys (metrics/metrics.go:81-89). This now contradicts the corrected CLAUDE.md line from this PR. Pre-existing; out of this PR's scope.
What I checked
- Full diff, 7 commits, 9 files. No Go code changes behavior: config.go and keepalive.go changes are comments only; the rest is docs and one template line.
- config.go housellm comment: the shipped values match the comment (
extract_llmmin_tokens 3000 at config.go:633/760/798/824/849; sweep 1000). Arithmetic checks: $0.0193 / ($9.31/MTok) = 2,073 saved tokens; 2,073 / 0.65 = 3,189-token candidate. Both named tests exist and pin what the comment claims:TestHousellmFloorClearsTheBandsThatLoseAtEveryK(config/config_more_test.go:291) andTestHousellmDoesNotAttemptTheTailBelowBreakEven(components/all/xglobal_test.go:333). Figures 7,399-token ceiling, 1-of-132, and the 873-call bands all have repo sources. - config.go cachesplit comment: fix-code-vulnerability with 3 trials, the two-session A/B, 0% → 96.7% hit, and Sonnet 5 rates are all in docs/components/caching.md:266-278.
acted=0on Agent-SDK traffic is docs/results/terminal-bench-comparison.md:155. The $0.03 interactive credit is docs/results/measured-2026-08.md:18. - dash/keepalive.go comment: matches the code. One
modelinfo.Priceis resolved from themodelargument up front (dash/keepalive.go:1371-1376) and reused for every row and K;Priced=falseleaves every dollar field omitted. The old text ("the ROW'S OWN MODEL rates") did not match the code; the new text does. - cheapmodel/usage.go comment:
ModelCall.CostUSDexists (components/component.go:890),metrics.RecordExtractionSpendexists (metrics/extract.go:257),cost_source: host_totaland the superset semantics exist (metrics/extract.go:46, 321, 421). Issue #178 is merged with the matching title. All four named components (extract_llm,extract_llm_sweep,summarize,agentdiet) exist. - CLAUDE.md metrics line: correct. No
gen_ai.*metric is emitted anywhere in Go code; the Slog emitter logscontext_engineering.*keys. - theme/base.html: the pinned URL
[email protected]/dist/mermaid.esm.min.mjsreturns HTTP 200 with immutable cache headers from jsdelivr. It is the only mermaid import site. The comment's analogy to requirements-docs.txt holds: that file pins bounds deliberately for the same silent-breakage reason. - Strikethrough removals: no
~~markers remain in docs/ or CLAUDE.md. The rationale holds: mkdocs.yml does not enablepymdownx.tilde, so~~rendered as literal tildes. The replacement text keeps each retraction marker (REFUTED / FALSE / Done / answered). - I did not run Go builds or tests (not approved). I verified claims by reading code, tests, and docs only.
amiddavid
left a comment
There was a problem hiding this comment.
| 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.311 | offload-review skill, @amiddavid's session | fresh | 2 of 2 | 1 of 2 | a49a78e0d87e |
blocking |
Verdict: blocking
This PR changes comments, docs and one CDN pin. No code behavior changes. I checked
every changed line and each new claim against the code, the tests and the cited docs.
Three claims do not survive that check. The mermaid pin, the CLAUDE.md metric fix and
the strikethrough removals are correct.
Findings
-
cheapmodel/usage.go:11 — the "ALL" list of cheap-model callers omits
cache_aware_summarizer.- What fails: a reader auditing what
/statsandhost_totalcarry reads the list
("extract_llm, extract_llm_sweep, summarize and agentdiet all land in these totals")
as exhaustive. It is not.cache_aware_summarizerasks its model through
c.Model.For(components/offload/cache_aware_summarizer.go:763) and the prefix
asker (cache_aware_summarizer.go:897), and both paths end in cheapmodel clients
that callrecordUsageCache(cheapmodel/anthropic.go:126, :290;
cheapmodel/openai.go:285; cheapmodel/openai_prefixed.go:70). Its spend lands in
these totals, and the comment says it does not.cache_aware_summarizeris also
the one component in the list's own terms that implementsNeedsModel
(components/component.go:70 — implementors areSummarize,AgentDiet,
CacheAwareSummarizer;extract_llmandextract_llm_sweepdo not). - Proof: grep for
NeedsModel() boolreturns exactly three implementors;
grep forModel.For/ForModelSource/PrefixAsk.Askreturns five calling
components,cache_aware_summarizeramong them. - Fix: add
cache_aware_summarizerto the list. Say "components that call a model"
rather than "NeedsModel components", or fix theNeedsModelnaming separately.
- What fails: a reader auditing what
-
config/config.go:437 — the comment's −34.1% provenance is contradicted by a doc it cites four lines later.
- What fails: the new text bounds −34.1% to "one Terminal-Bench task
(fix-code-vulnerability) measured three times on Claude Code CLI traffic",
citing docs/components/caching.md, then cites
docs/results/terminal-bench-comparison.md for the acted=0 fact. That second doc
says the opposite about the figure's origin: "The −34.1% split figure came from
SWE-bench CLI traffic" (terminal-bench-comparison.md, the #36 cacheinject row).
caching.md and terminal-bench-comparison.md cannot both be right, and the
comment now asserts one side while citing both. - Proof: docs/components/caching.md:285-292 (Terminal-Bench, fix-code-vulnerability,
3 trials, mean 34.1%) against docs/results/terminal-bench-comparison.md:155
("came from SWE-bench CLI traffic"). Both pre-date this PR; commit 112efe3
("bound the cachesplit -34.1% claim to its workload and client", "all from the
repo's own docs") is the place the conflict had to be resolved. - Fix: reconcile the two docs, or drop the terminal-bench-comparison.md citation
from this paragraph and fix that doc's #36 row in a follow-up.
- What fails: the new text bounds −34.1% to "one Terminal-Bench task
-
config/config.go:704 — "reaching 48% of production candidates" has no source in the repo.
- What fails: the rewritten derivation names a measurement for every number except
this one. 48% appears nowhere else — not in
TestHousellmFloorClearsTheBandsThatLoseAtEveryK (config/config_more_test.go:271
carries the band table but no per-band counts), not in any doc, not in the commit
message. Every other figure in the comment names its measurement; this one reads
as measured and is not checkable. - Proof:
grep -rn "48%" docs/ config/ components/finds only this line (plus
unrelated matches in coref and cmdfilter docs). - Fix: cite the measurement (the per-band call counts behind the 873-call table),
or drop the clause.
- What fails: the rewritten derivation names a measurement for every number except
Non-blocking
- theme/base.html:130 — "pinned EXACTLY, like the bounds in requirements-docs.txt":
those are range bounds (>=1.6,<2), not exact pins. The shared idea is deliberate
version control; the wording equates two different pin shapes. - theme/base.html:133 — the pinned import carries no SRI hash. Pre-existing shape,
and an exact pin is what makes an integrity hash feasible. Worth a follow-up, not
this PR. - config/config.go:668 cites docs/proposals/sweep-adjudicator.md, which does not
exist. Pre-existing, untouched by this PR.
What I checked
- Full diff 3befbfb..HEAD; all 7 commits read in full, including messages and DCO /
Assisted-By attribution (all correct). - housellm derivation: preset yaml ships
min_tokens: 3000(config/config.go:760);
both named guard tests exist and encode the quoted figures
(config/config_more_test.go:291, components/all/xglobal_test.go:333 — $0.0193,
reuses 12, ~$9.31/MTok, ~2,073 tokens, ~3,190 candidate, 7,399 ceiling, 1 of 132
at 8,000). The arithmetic in the comment is consistent (0.0193 / 9.31e-6 ≈ 2,073;
2,073 / 0.65 ≈ 3,190). - cachesplit bound: docs/components/caching.md:47-48, 275, 285-298 support the
−34.1%, 96.7%, Sonnet 5, fix-code-vulnerability, 3-trials figures;
terminal-bench-comparison.md:155 supports acted=0 on Agent-SDK traffic;
measured-2026-08.md:18 supports the $0.03 credit. The old citation
(docs/results/context-guru.md) did not exist; the new one does. - dash/keepalive.go:1360: the rewritten comment matches the code — one
modelinfo.Price resolved from themodelargument and reused for every row and K;
Pricedand the omitempty dollar fields behave as described ("Priced above" is
the struct doc directly above the function). - CLAUDE.md metric claim: every exported metric name in proxy/promexport.go starts
cg_orcg_tenant_; nogen_ai.*metric exists;
deploy/eval-containers/README.md:53 already says gen_ai spans are not emitted. - cheapmodel claims:
/statsreadscheapmodel.Usage()(proxy/proxy.go:2302);
metrics.RecordExtractionSpendandcost_source: host_totalexist
(metrics/extract.go:257, :46);ModelCall.CostUSDexists
(components/component.go:1070). - theme/base.html: [email protected] on jsdelivr answers HTTP 200 (checked live, no
tests run); the conditional load gate and the render path are unchanged; no
~~strikethrough remains anywhere in docs/ or *.md, so the conversion is
complete; mkdocs.yml enables no tilde extension, so the commit's rationale holds.
…omment Round 1 of review (PR #741) found that "reaching 48% of production candidates" has no source in the repo: no doc, test or commit carries the 132-candidate size distribution it would come from. Every other number in the paragraph names its measurement. The clause is deleted. The coverage argument for 3,000 now rests on the measured 2,000 lower bound alone, which the guard test carries. Written by GLM through Claude Code Assisted-By: GLM Signed-off-by: DAVID AMID <[email protected]>
Round 1 of review (PR #741) found two docs disagreeing on where the cachesplit -34.1% figure came from. The repo's primary record settles it: commit de49557, which made the measurement, says "Terminal-Bench fix-code-vulnerability over 3 sequential trials, $0.1945 -> $0.1282 mean (34.1%)". docs/components/caching.md carries the same trial-by-trial table, and docs/results/improvement-plan.md frames it as a Terminal-Bench figure. No SWE-bench doc anywhere carries a -34.1% cachesplit result. The wrong side was terminal-bench-comparison.md's #36 row ("came from SWE-bench CLI traffic"), written one day after the measurement. It now says the figure came from a Terminal-Bench task run with the Claude Code CLI, not the SDK this study runs. The same clause in context-guru-plugin/scripts/settings.py is corrected with it. The config/config.go comment already stated the Terminal-Bench + CLI provenance, so it is unchanged. Written by GLM through Claude Code Assisted-By: GLM Signed-off-by: DAVID AMID <[email protected]>
…marizer included Round 1 of review (PR #741) found the Usage comment's caller list omitted cache_aware_summarizer, and that "NeedsModel component calls" was the wrong filter: the NeedsModel implementors are Summarize, AgentDiet and CacheAwareSummarizer, while extract_llm and extract_llm_sweep call a model through components.Model without implementing NeedsModel. The comment now says "every component that calls a model" and lists all five: extract_llm, extract_llm_sweep, summarize, cache_aware_summarizer and agentdiet. A parenthetical notes why the wording is not "NeedsModel implementors". Written by GLM through Claude Code Assisted-By: GLM Signed-off-by: DAVID AMID <[email protected]>
Two non-blocking findings from round 1 of review (PR #741): - theme/base.html said the mermaid pin is "EXACTLY, like the bounds in requirements-docs.txt". Those bounds are ranges (>=1.6,<2), not exact pins. The comment now says the pin exists for the same reason the file bounds its versions, without equating the two shapes. - metrics/metrics.go said the Slog emitter logs "in OTel gen_ai.* vocabulary". It logs context_engineering.* keys. Both the package doc and the Slog doc comment now name the real keys, so they no longer contradict the CLAUDE.md line this PR corrected. Written by GLM through Claude Code Assisted-By: GLM Signed-off-by: DAVID AMID <[email protected]>
|
Round 1 replies — all blocking findings fixed, non-blocking findings fixed or answered below. Reviewer 1Finding 1 (blocking) — "reaching 48% of production candidates" has no source. Non-blocking — config/config.go:439 keeps a reference to Non-blocking — metrics/metrics.go:5 says Slog logs in gen_ai. vocabulary.* Reviewer 2Finding 1 (blocking) — the caller list omits Finding 2 (blocking) — the −34.1% provenance is contradicted by a doc the comment cites. Finding 3 (blocking) — the 48% figure has no source. Non-blocking — base.html calls the requirements-docs.txt bounds "exact". Non-blocking — no SRI hash on the pinned import. Non-blocking — config/config.go:668 cites 🤖 Generated with Claude Code |
amiddavid
left a comment
There was a problem hiding this comment.
| 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.311 | offload-review skill, @amiddavid's session | resumed | 2 of 2 | 2 of 2 | aa2288f9727e |
approve |
Verdict: approve
All three of my round-1 findings are fixed, and the fixes are correct. The two
non-blocking items I raised are fixed or reasonably deferred. The new commits
change comments and docs only; no code behavior changes.
Round-1 findings
-
cheapmodel/usage.go — caller list omitted
cache_aware_summarizer. Fixed in 60fec6e.
The comment now says "every component that calls a model" and lists all five:
extract_llm,extract_llm_sweep,summarize,cache_aware_summarizer,
agentdiet. I re-ran the check myself:Model.For/ForModelSource/
PrefixAsk.Askcallers are exactly those five, andNeedsModel() boolhas
exactly three implementors. The new parenthetical states the extract pair
calls a model without implementingNeedsModel. Correct. -
config/config.go:437 — −34.1% provenance conflicted with a cited doc. Fixed in df025ad.
The author settled it with the primary record, and I verified it: commit
de49557 (2026-08-09), which made the measurement, records "Terminal-Bench
fix-code-vulnerability over 3 sequential trials, $0.1945 -> $0.1282 mean
(34.1%)". caching.md carries the same trial table;
improvement-plan.md:378 frames it as a Terminal-Bench figure; no SWE-bench
doc carries a −34.1% cachesplit result (I ran the grep myself — nothing).
The wrong side was terminal-bench-comparison.md's #36 row, written one day
later (4d00957, 2026-08-10). That row now says Terminal-Bench on the Claude
Code CLI and links the caching page; the same wrong clause in
context-guru-plugin/scripts/settings.py is corrected with it. The two docs
the config.go comment cites now agree. -
config/config.go:704 — unsourced 48% figure. Fixed in d2cb07d.
The clause is deleted. The coverage argument rests on the measured 2,000
lower bound, which the guard test carries.
Non-blocking
- cheapmodel/usage.go:14 — the parenthetical says "the extract pair goes through
components.Model". True for extract_llm (ForModelSource); extract_sweep asks
throughcomponents.PrefixAsk(extract_sweep.go:794), a different interface
in the same package. The point being made — calls a model without implementing
NeedsModel— is right for both. Optional precision only. - The dead
docs/proposals/sweep-adjudicator.mdreferences remain
(config/config.go:668, docs/components/advanced-offload.md:661). The author
deferred with a reason I checked and accept: the proposal was deleted in
a609727, no copy survives (findreturns nothing), and no one-line retarget
to a real doc exists. Both references should be resolved together in a
follow-up issue.
What I checked
- Last review: round 1, a49a78e, 2026-10-26T23:00:17Z.
- New commits read: 4 — d2cb07d (drop the unsourced 48% reach figure),
df025ad (−34.1% is Terminal-Bench CLI, not SWE-bench),
60fec6e (name every model-calling component),
aa2288f (review follow-ups: pin wording, Slog key vocabulary).
Full diff a49a78e..HEAD read; all four commit messages read in full, DCO and
Assisted-By attribution correct. - Read in full: 2 reviews, 1 comment, 0 inline comments (from the three saved
files; the inline file is empty). - New items since my last review: the author's round-1 reply comment
(2026-10-26T23:06:54Z) and the four commits above. Every claim in the reply
that names evidence was checked: de49557's message (verified), the
one-day-later 4d00957 date (verified), "no SWE-bench doc carries −34.1%"
(verified by grep), the sweep-adjudicator file's absence (verified by find),
improvement-plan.md:378 (verified), the dead reference in
advanced-offload.md:661 (verified). - New text in each changed file read against the code: cheapmodel/usage.go
(five-caller list matches the grep), metrics/metrics.go (Slog logs
context_engineering.*keys at metrics.go:81-100 — the new doc comment
matches; nogen_aistring remains in Go code),
docs/results/terminal-bench-comparison.md:155 (new row is accurate and its
anchor#what-the-split-is-worthexists in caching.md),
context-guru-plugin/scripts/settings.py (comment only, consistent with the
corrected provenance), theme/base.html (wording only; pin unchanged at
11.17.2, which answered HTTP 200 in round 1), config/config.go (clause
deletion only). - No Go builds or tests run (not approved). Reading only.
amiddavid
left a comment
There was a problem hiding this comment.
| 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.311 | offload-review skill, @amiddavid's session | resumed | 1 of 2 | 2 of 2 | aa2288f9727e |
approve |
Verdict: approve
All four blocking findings from round 1 are fixed. The one rejection the author made is correct: that finding of mine was wrong. The four new commits are comment and doc edits only. I found no new defect in them.
Earlier findings
Mine, finding 1 (48% figure, config/config.go:704) — fixed in d2cb07d. The clause is deleted. The sentence now ends at "the shipped 3,000 clears it", and the bands test stays the authority. Verified in the diff.
Mine, non-blocking (dead link to docs/results/context-guru.md) — rejected by the author, and the author is right. Commit 112efe3 replaced that citation with docs/components/caching.md; the dead reference was on the removed side of the hunk. My round-1 note misread it as kept. I verified now: grep -rn "context-guru.md" over *.go and *.md returns nothing outside build output.
Mine, non-blocking (metrics/metrics.go:5 gen_ai. vocabulary) — fixed in aa2288f.* The package doc and the Slog doc comment now say context_engineering.* keys, which is what the emitter logs (metrics/metrics.go:81-89). No contradiction with the CLAUDE.md line remains.
Reviewer 2, finding 1 (caller list omits cache_aware_summarizer; "NeedsModel" is the wrong filter) — fixed in 60fec6e. I checked it myself. The comment now lists five components. I verified the list is exhaustive: of every registered component (components.Register across components/offload and components/reformat), exactly those five reference a model client — extract_llm (extract_llm.go:708), extract_llm_sweep, summarize, cache_aware_summarizer, agentdiet. The parenthetical is also accurate: NeedsModel() bool has exactly three implementors (cache_aware_summarizer.go:600, agentdiet.go:148, summarize.go:331), and the extract pair is not among them.
Reviewer 2, finding 2 (−34.1% provenance contradicted by terminal-bench-comparison.md) — fixed in df025ad. I checked it myself. The primary record settles it: commit de49557, which made the measurement, says "Terminal-Bench fix-code-vulnerability over 3 sequential trials, $0.1945 -> $0.1282 mean, $0.0663 saved per run (34.1%)". caching.md:292 carries the same table. The comparison doc's #36 row now says the figure came from a Terminal-Bench task on the Claude Code CLI, links the caching page, and the link anchor #what-the-split-is-worth exists. The same wrong clause in context-guru-plugin/scripts/settings.py is corrected with it, and its cited issue #263 exists with a matching title. No "SWE-bench CLI traffic" provenance claim remains anywhere in the repo.
Reviewer 2, non-blocking (pin wording, SRI hash, sweep-adjudicator.md dead ref) — fixed / skipped with reasons I accept. The pin wording is fixed in aa2288f (an exact pin and a range bound are no longer equated). The SRI hash is deferred; agreed, it is a follow-up that the exact pin now makes feasible. The sweep-adjudicator.md reference is skipped because no target doc survives (I confirmed: find returns nothing) and the same dead reference sits at config.go:668 and advanced-offload.md:660 — a follow-up resolving both is the right shape.
Findings
None.
Non-blocking
- The author's reply states
gofmt/go vetandmkdocs build --strictpass, run on the eval box. I could not run them (live tests not approved). The four new commits change comments and docs only, so I see nothing they could break.
What I checked
- Last review: round 1, a49a78e, 2026-10-26T22:57:59Z
- New commits read: 4 — d2cb07d (drop the 48% figure), df025ad (−34.1% provenance is Terminal-Bench CLI), 60fec6e (name every model-calling component), aa2288f (pin wording, Slog key vocabulary)
- Read in full: 2 reviews, 1 comment, 0 inline comments (from the three saved files)
- New items since my last review: reviewer 2's round-1 review (23:00:17Z) — read in full, both findings checked independently as above; the author's reply (23:06:54Z) — every fix claim in it verified against the diff, the code, or git history; the four new commits — full diff read.
- Commit hygiene on the new commits: DCO sign-off and
Assisted-By: GLMpresent, conventional-commit titles. - The housellm comment after d2cb07d still reads correctly: the 2,000 lower bound, both guard-test references, and the loss measurement at 1,000 are unchanged.
- Issue #263 (cited by the corrected settings.py comment) exists and matches. Issue #178, cited by usage.go, was verified in round 1.
- I did not run Go builds or tests (not approved). I verified claims by reading code, tests, docs, and git history only.
Summary
Seven documentation and comment fixes, written by GLM through Claude Code. No code
changes: six comment/doc corrections and one CDN version pin. Two issues in the batch were
skipped (see Skipped).
What changed
dash/keepalive.go: theKeepAliveCalccomment claimed per-row model pricing.The code resolves one
modelinfo.Pricefrom themodelargument and reuses it for everyrow and every K. The comment now says the prefix and the model are caller-supplied
representatives. The bimodality rationale for the prefix is kept.
config/config.go: thecachepreset comment called-34.1%cost an isolatedA/B and cited the wrong doc. It now names the workload (one Terminal-Bench task, three
trials) and the client (Claude Code CLI, Sonnet 5 rates), says it does not transfer to
Agent-SDK traffic, and states the production figure ($0.03 for the window).
config/config.go: thehousellmcomment derived a floor of 8,000 while thepreset ships
min_tokens: 3000. The comment now records the corrected derivation (turn-awareamortization, ~3,190-token break-even; 2,000 lower bound from the 873-call per-band
measurement) and why 8,000 was wrong. The value is unchanged.
cheapmodel/usage.go: theUsagecomment still said the global total isextract's cost. It now says the totals cover every cheap-model call (extract_llm,
extract_llm_sweep, summarize, agentdiet) and that per-component attribution exists since fix(metrics): scope extraction accounting per component, and log every extraction call #178.
CLAUDE.md: said observability followsgen_ai.*semconv. It now says everyexported metric is
cg_*/cg_tenant_*andgen_ai.*is the intended direction, not yetemitted.
~~strikethrough~~retraction markers with plain bold text onfour built pages (three pages in the issue;
coref-selection-experimentandmeasurement-limitsgained~~markers after it was filed).pymdownx.tildestays off.theme/base.html: the mermaid CDN import is pinned to[email protected]— whatmermaid@11resolves to today, so the pin changes nothing visitors currently receive.How it was tested
Comment and doc fixes: no test needed. Facts were checked against the code and the repo's own
docs before writing them.
mkdocs build --strict(with the doc and theme changes)requirements-docs.txt~~, all diagram pages import[email protected]gofmt -l dash config cheapmodelgo vet ./dash/... ./config/... ./cheapmodel/...go test -race -count=1 ./dash/...go test -race -count=1 ./config/...go test -race -count=1 ./cheapmodel/...curl -Ion the pinned mermaid URLData dependence
None changes. No component, feature or storage path is touched.
Skipped
main. Commit 2b20ef2 (PR fix(offload): keep and mark the last tool exchange after a splice #727) rewrote therequestedToolCallscomment: it now says apply's normalize lifts Anthropictool_useblocks into ToolCalls, so the function is true on proxy traffic. The issue's larger
finding (no component reads
tool_usearguments) is a measurement question the issueitself defers, out of scope for a comment fix.
page and these two did not. Commit cac5d1c (2026-09-22) deliberately consolidated the
component pages: all reformat components and all deterministic reducers,
searchfoldandlinecapincluded, now have full sections on shared pages(
components/reformat.md#searchfold,components/offload-reducers.md#linecap) wired intothe nav and linked from the
components.mdsummary table. Adding two dedicated pageswould reverse that restructure.
Closes #343
Closes #263
Closes #120
Closes #181
Closes #146
Closes #272
Closes #147
🤖 Generated with Claude Code