Add LegacyPolicyLoopStrategy and shared legacy patch utilities#18
Merged
Bol-C14 merged 1 commit intodev-feat-interactive-optimizationfrom Jan 30, 2026
Merged
Conversation
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.
Motivation
sim_runsaccounting consistent with existing strategies and legacy reporting formats.Description
LegacyPolicyLoopStrategyinsrc/eesizer_core/strategies/legacy_policy_loop.pyto run legacy-mappedCircuitSpecs with either an explicitlegacy_patch_planor a configurable policy, reusingattempt_pipeline.run_attemptand the standard guard chain and measurement flow.src/eesizer_core/strategies/legacy_patch_utils.pyprovidingextract_patch_plan,parse_patch_step,netlist_to_patch, andguard_failure_reportto convert netlist-style steps into parameter-onlyPatchops and to centralize validation logic.legacy_patch_planto use the new utilities (extract_patch_plan,parse_patch_step,netlist_to_patch,guard_failure_report) instead of duplicate parsing logic, and export the new strategy fromsrc/eesizer_core/strategies/__init__.py.docs/devlog/2026-02-11_0900_legacy_policy_loop_strategy.mddescribing behavior and usage; preserve legacy-compatible history/report outputs via the existingLegacyReportOperatorand manifest entries.Testing
Codex Task