Repository navigation
LCORE-4764: size the compaction tiers with the summarizer model's context window - #3356
Conversation
…text window The agent builder's CompactionFactory attached TieredCompaction with no context window, so every tier sized its work against the harness default instead of the model's. Resolve the window for the summarizer model the settings name, through resolve_context_window (LCORE-4765): catalog metadata first, then the configured map, then the bundled model data, then the default. Settings that name no provider and model leave the window to the harness, as before. The factory tests patch the resolver and check that its result reaches build_tiered_compaction, and that nothing is looked up without a model.
|
No actionable comments were generated in the recent review. WalkthroughThe compaction factory now resolves the summarizer model’s context window when provider and model settings are available. It passes the resolved value to the tiered builder. Without both settings, it passes ChangesCompaction context window
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Possibly related PRs
Suggested reviewers: Merge Risk:
|
Description
LCORE-4764: the agent builder's
CompactionFactory(#3204) attachedTieredCompactionwithcontext_window = None, so every tier sized its work against the harness default instead of the selected model's window. This resolves the window for the summarizer model the settings name, throughresolve_context_windowfrom LCORE-4765: catalog metadata first, then the configuredcontext_windowsmap, then the bundled model data, then the default. Settings that name no provider and model leave the window to the harness, as before.With this, the attach the ticket asks for is complete on the new builder: the capability comes from
build_tiered_compaction(LCORE-4692), announces itself on the run stream (LCORE-4693), and now knows the model's window. What still does not exist is a request going through the new builder; that is the endpoint switch-over (LCORE-4727 to 4729), and the live check of compaction waits for it and for continuation (LCORE-4719).One commit, 43 lines, no API or configuration change.
Type of change
pyproject.toml+uv.lock]requirements.*.txtfor Konflux]Tools used to create PR
Identify any AI code assistants used in this PR (for transparency and review context)
Related Tickets & Documents
Checklist before requesting a review
Testing
41 passed. The factory tests now patch the resolver and check that it is called with
provider/modeland the inference configuration and that its result reachesbuild_tiered_compaction; a new test checks that settings without a provider and model look nothing up and passNone. ruff, black, pydocstyle, mypy and pylint (10.00) are clean on the two files; the two pyright errors in the test file are onmainalready. No stack run: no request reaches the new builder yet.Summary by CodeRabbit