feat(overflow_graph): support extra lines to cut without overload styling#76
Merged
Conversation
…ling OverFlowGraph accepts an extra_lines_to_cut argument naming a subset of lines_to_cut that the operator chose to disconnect to prevent flow increase elsewhere. Those edges keep their natural flow colour (coral/blue), are stamped is_extra_cut=True, and are excluded from is_overload / is_monitored. The interactive HTML viewer exposes a dedicated "Extra lines to prevent flow increase" layer with a dashed-blue swatch, and the before% → after% annotation still fires so operators see how their cut materialises. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- TestExtraLinesToCut: 6 cases covering default empty extras, set storage, natural coral/blue colour for extras, ``is_extra_cut`` + ``constrained`` flagging, exclusion from ``is_overload`` / ``is_monitored`` while keeping the loading-rate annotation, and the legacy "no extras" path. - test_layer_index_emits_extra_cut_layer_with_endpoints: the new semantic layer carries the edge endpoints, the ``extra-cut`` swatch, the operator-facing label, and lands in the "Individual entities properties" section. - test_layer_index_skips_semantic_layer_when_no_match: extend the no-noise contract to ``semantic:is_extra_cut``. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
marota
added a commit
that referenced
this pull request
May 7, 2026
Post-release tag for the operator-supplied "extra lines to cut" feature landed via PR #76. PEP 440 ``.post2`` suffix follows the convention used by 0.3.2.post1 — a packaging refresh on top of the 0.3.2 line that extends the public API (``OverFlowGraph(extra_lines_to_cut=...)``) and ships a new interactive viewer layer without breaking existing callers. Updates ``setup.py`` (version + download_url), ``docs/conf.py`` (release), and prepends a CHANGELOG entry summarising the change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
extra_lines_to_cutargument toOverFlowGraphfor operator-selected lines that should be cut alongside contingencies (e.g. ExpertAgent'sadditionalLinesToCut) but shouldn't be classified as overloads.is_extra_cut=Trueon those edges; keep their natural flow colour (coral/blue) instead of the black/yellow overload styling; skip them inis_overload/is_monitoredflagging.is_extra_cut, dashed-blue swatch).before% → after%annotation still fires on extras so the operator sees how their choice materialises.Test plan
pytest alphaDeesp/tests/test_overflow_graph.py alphaDeesp/tests/test_null_flow.py(78 passed)OverFlowGraph(..., extra_lines_to_cut=[i]): extra edges retain coral/blue colour, are stampedis_extra_cut=Trueandconstrained=True, skipis_overload/is_monitoredafterhighlight_significant_line_loading, and still get the loading-rate annotation.🤖 Generated with Claude Code