Commit 24323cb
committed
fix: deduct tier header tokens from budget in _build_package
The '### Relevant files' and '### Depends on' headers plus their
trailing blank lines were appended without subtracting their token
cost from remaining. Three unaccounted headers compound to ~30-40
tokens of budget overrun. Now each tier deducts header_cost before
iterating entries.
Skipped singleton accessor nitpick: dependency_analyzer.py,
style_analyzer.py, and dna_extractor.py are all plain classes
instantiated in dependencies.py -- no get_*() accessor pattern
exists in the project. ContextAssembler already matches.1 parent 6301f99 commit 24323cb
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
241 | 244 | | |
242 | 245 | | |
243 | 246 | | |
| |||
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
260 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
261 | 267 | | |
262 | 268 | | |
263 | 269 | | |
| |||
0 commit comments