The housellm preset sets the warm-path floor to 3000 while the comment above it documents
8000 as that floor, derived from measurement:
config/config.go:463 — min_tokens: 3000
config/config.go:518 — "min_tokens: 8000 is that path's floor, and it is DERIVED, not
chosen. Measured on real warm sessions through a local proxy, an extraction call costs
~$0.015-0.018 and the cost is OUTPUT-dominated…"
One of the two is wrong, and which one decides whether the live deployment is correct.
Why this is not a comment typo
The comment does not merely mention a number — it records a derivation from measured call cost,
and states the floor is not a matter of taste. If the derivation is right, the shipped value is
2.7x below the measured break-even, which means the warm path is making calls the measurement
says do not pay for themselves. If the shipped value is right, then a documented derivation is
wrong and the next person to tune this floor will re-derive 8000 and "fix" the config back.
Either way the preset and its justification disagree, and this is the preset the one live
deployment runs.
What to check
Whether the 8000 derivation was superseded. Two things nearby could have moved it: min_tokens
was later joined by the derived pressure floor (pressureFloor), so an explicit floor is now one
of two mechanisms rather than the only one; and the cost basis in the comment (~$0.015-0.018 per
call, output-dominated) predates DefaultMaxTokens moving from 2048 to 4096, which changes what
an output-dominated call costs.
If 3000 is deliberate, the comment needs the reasoning that replaced the derivation, not just a
new number.
Found by
The implementation pass for #118, while migrating housellm to extract_llm_sweep. Preserved
rather than silently reconciled, because picking one of the two values is a measurement question
and guessing would bury it.
The
housellmpreset sets the warm-path floor to 3000 while the comment above it documents8000 as that floor, derived from measurement:
config/config.go:463—min_tokens: 3000config/config.go:518— "min_tokens: 8000 is that path's floor, and it is DERIVED, notchosen. Measured on real warm sessions through a local proxy, an extraction call costs
~$0.015-0.018 and the cost is OUTPUT-dominated…"
One of the two is wrong, and which one decides whether the live deployment is correct.
Why this is not a comment typo
The comment does not merely mention a number — it records a derivation from measured call cost,
and states the floor is not a matter of taste. If the derivation is right, the shipped value is
2.7x below the measured break-even, which means the warm path is making calls the measurement
says do not pay for themselves. If the shipped value is right, then a documented derivation is
wrong and the next person to tune this floor will re-derive 8000 and "fix" the config back.
Either way the preset and its justification disagree, and this is the preset the one live
deployment runs.
What to check
Whether the 8000 derivation was superseded. Two things nearby could have moved it:
min_tokenswas later joined by the derived pressure floor (
pressureFloor), so an explicit floor is now oneof two mechanisms rather than the only one; and the cost basis in the comment (~$0.015-0.018 per
call, output-dominated) predates
DefaultMaxTokensmoving from 2048 to 4096, which changes whatan output-dominated call costs.
If 3000 is deliberate, the comment needs the reasoning that replaced the derivation, not just a
new number.
Found by
The implementation pass for #118, while migrating
housellmtoextract_llm_sweep. Preservedrather than silently reconciled, because picking one of the two values is a measurement question
and guessing would bury it.