feat(loops): planner-declared edge lineage — TopologyMove.parentIndex (#82)#85
Merged
Conversation
…#82) Closes #82. The kernel-inferred parentIndex is exact for every topology the current move vocabulary (refine/fanout/stop) can produce, but a future revisit/goto move (or any planner branching off a non-winner) needs the planner to DECLARE the branch source. The hook is now in place, additively: - TopologyMove refine/fanout gain optional `parentIndex` (the iteration this round branches from). - LoopPlanDescription gains `parentIndex`; createDynamicDriver.describePlan surfaces the pending move's value. - run-loop prefers a declared parentIndex over the inferred branchPoint: `planDesc?.parentIndex ?? (round 0 ? root : branchPoint(...))`. Nothing emits a non-trivial parentIndex yet (no revisit/goto move ships), so behavior is unchanged for refine/fanout — but the lineage is now faithful the moment such a move exists. Test: a declared parentIndex=0 overrides the inferred best-valid branch point. Full suite green, tsc + biome clean.
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.
Closes #82. Adds an optional
parentIndexto refine/fanoutTopologyMoves;describePlansurfaces it; the kernel prefers a declared parent over the inferredbranchPoint. Nothing emits a non-trivial value yet (no revisit/goto move ships) so refine/fanout behavior is unchanged — but lineage is faithful the moment such a move exists. Test proves a declaredparentIndex=0overrides the inferred best-valid branch point. Shipped0.40.0.