feat(m-decomp): constraint upgrade#556
feat(m-decomp): constraint upgrade#556csbobby wants to merge 21 commits intogenerative-computing:mainfrom
Conversation
Signed-off-by: Tulio Coppola <tuliocoppola@ibm.com>
|
The PR description has been updated. Please fill out the template for your PR to be reviewed. |
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
jakelorocco
left a comment
There was a problem hiding this comment.
Please make sure to run the pre-commit hooks. There's some formatting issues scattered throughout the PR.
I also worry that this is continuing the trend of the decompose module not being melleaic (mostly that it doesn't use components for templating). But I guess it doesn't worsen the problem, so I'm just flagging it now for future consideration.
|
:) The fixes are done @jakelorocco. |
|
Just found a small commit miss, so please ignore the review request today @jakelorocco. I will figure out that later and then rerun the checks. |
M-Decompose Upgrade
Constraint Extraction and Validation
Description
Added whitespace canonicalization, separator unification, and newline-aware block segmentation to eliminate layout- and order-sensitive parsing failures. Produces stable constraint IDs and consistent downstream bindings, significantly improving subtask–constraint determinism and template reproducibility.
Inserted between constraint extraction and code generation, emitting a constraint to validation-type mapping (e.g., llm / code). Validation strategy is now a first-class, inspectable, template-addressable feature, enabling different generation paths per constraint type.
The validation_code_generator binds each constraint to a generated function stub in the V2. The CLI output shifts from a descriptive decomposition result to an importable, runnable validation module, allowing downstream systems to call validations directly and removing manual reinterpretation.