core: filter status compressible ranges via billion-context-kit viableRanges - #19
Merged
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First (minimal) adoption of billion-context-kit — the new host-agnostic layer shared by the omp and pi adapters.
What
packages/core/src/status-tool.tslistednudge.compressibleRangesunfiltered. Fragmented ranges (<200 tokens) cannot carry a meaningful >=50-char summary, and the kernel validates compress batches atomically — one tiny range in a model-followed batch rejects the whole call. Observed live on the omp adapter: a 14-range recommendation containing a 16-token range → every batch attempt failed with "Summary too short".This wires the shared
viableRangesfilter (200-token floor, same constant the other adapters use) onto the status recommendation surface.Scope (deliberately minimal)
viableRangesis dependency-free, so the kit's own acp-kernel pin does not affect this package's resolution semantics.buildStatusPanel,topicFallback, prompt/tool surface) can follow once this repo stabilizes — the kit is the intended shared home for that surface.Verification
npm run typecheck --workspacesclean;npm test54/54 pass (pre-existing suite, node --test).