Refactor compilation around method refinement and facility allocation - #23
Merged
Conversation
marpaia
marked this pull request as ready for review
August 31, 2026 22:12
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
This PR makes facility constraints part of compilation instead of selecting a fixed Protocol before the target laboratory is known.
Lab source describes scientific intent. Portable Methods describe valid Procedure graphs. The planner selects one coherent Method, material, capability offering, Asset, and adapter solution for the target SBOLInventory, then freezes that allocation before device lowering.
What it contains
lab.method-catalog.v1documents and matching Python authoring and planning surfaces.select_protocolpath, duplicate requirement planner, and legacy whole-program backend entry points.The current interchange formats are
lab.planning-problem.v1,lab.facility-planning-solution.v1,lab.adapter-invocations.v1, andlab.execution-plan.v2.End-to-end evidence
The Golden Gate example allocates 22 Method instances and 88 atomic requirements, then schedules 28 OT-2 Procedure tasks into three reviewed runs: assembly, transformation, and plating. It emits three standalone Python protocols, three operator PDFs, and one aggregate plate-map PDF.
The executable comparison against pinned PUDU revision
1214d2f9efd557aa84bc96502379554174355eaepasses all 10 facets across 595 normalized robot actions. Local formatting, Clippy, full Rust workspace tests, Python SDK tests, generated-protocol checks, and exact-head hosted Rust/Python CI all pass.