fix: respect nonadditive token counters, finer importance steps, galaxy live-limit guard - #169
Merged
Merged
Conversation
…xy live-limit guard Three small fixes salvaged from local review-worktree iteration: - core/context.py: the compact-header retry path recomputed available budget as `budget - self._count(base)` without guarding against nonadditive custom token counters (a header-aware counter can make base grow after compaction, driving `available` negative). Clamp to zero and skip the excerpt when no positive room remains; also propagate `compact_available` after adopting a compact header so subsequent accounting stays truthful. Covered by a new deterministic regression test. - dashboard editor: importance slider step 0.05 -> 0.025 for finer memory weighting; asserted in test_dashboard_v2. - ledger.js: galaxy engine selection now requires the scene to be within GRAPH_INITIAL_NODE_LIMIT/EDGE_LIMIT before engaging full physics; oversized complete scenes fall back to the lightweight Every renderer. Folded into main's transactional candidate pipeline (scene-marker keyed detection kept; the stale pre-refactor graphIsGalaxy() condition dropped).
Coding-Dev-Tools
force-pushed
the
fix/w153-packer-galaxy-salvage
branch
from
August 25, 2026 15:38
e948fb8 to
a3e9668
Compare
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.
Three small fixes salvaged from local review-worktree iteration (uncommitted work in the w153 orca worktree), re-based onto main's current transactional graph pipeline: