FE-1556: Constraint authoring prototypes with margins, sampling, and STL - #9451
Draft
kube wants to merge 1 commit into
Draft
FE-1556: Constraint authoring prototypes with margins, sampling, and STL#9451kube wants to merge 1 commit into
kube wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
kube
force-pushed
the
cf/fe-1518-optimization-constraints
branch
from
August 30, 2026 13:33
4e368fc to
cabed47
Compare
kube
force-pushed
the
cf/fe-1556-constraint-authoring-prototypes
branch
from
August 30, 2026 13:33
c21d86b to
72121a5
Compare
kube
force-pushed
the
cf/fe-1556-constraint-authoring-prototypes
branch
from
August 30, 2026 16:52
72121a5 to
a618723
Compare
kube
force-pushed
the
cf/fe-1518-optimization-constraints
branch
from
August 30, 2026 16:52
cabed47 to
b520b68
Compare
kube
force-pushed
the
cf/fe-1518-optimization-constraints
branch
from
August 30, 2026 17:57
b520b68 to
f4b5096
Compare
kube
force-pushed
the
cf/fe-1556-constraint-authoring-prototypes
branch
from
August 30, 2026 17:57
a618723 to
1589141
Compare
kube
force-pushed
the
cf/fe-1518-optimization-constraints
branch
from
August 30, 2026 18:35
f4b5096 to
cdcb7ac
Compare
kube
force-pushed
the
cf/fe-1556-constraint-authoring-prototypes
branch
from
August 30, 2026 18:35
1589141 to
0766427
Compare
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.
🌟 What is the purpose of this PR?
Stacked on #9371. Five playable Storybook prototypes for how optimization constraints get defined, so we can compare directions and pick one. Parameter constraints aim at sampling inside the safe region rather than pruning; state constraints aim at a margin-based robustness that feeds the objective as a continuous multiplier dropping to zero outside the safe region.
🔗 Related links
🔍 What does this change?
Everything lives under
src/ui/dev/constraint-prototypes/(Storybook-only, nothing ships; see its README for the tour). Open Dev / Constraint Prototypes:&&= min, worst step). Includes the min-vs-mean-violation aggregation toggle that shows how min masks all but the worst constraint.80 - temperature, must stay ≥ 0), with the RFC's canonical rewrite offered when a comparison is typed, and the normalisation scale as an explicit control.always,eventually,during,within,until,atEndas plain functions with STL quantitative robustness, plus a logsumexp smoothing temperature (exact at 0).margin()on FE-1518, trace robustness, penalty multipliers, seeded samplers, and a linear-form extractor for the router.Pre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
Files are inside
@hashintel/petrinautbut Storybook-only (stories + a dev folder that no shipped entry point imports), so nothing publishes differently.📜 Does this require a change to the docs?
The changes in this PR:
🕸️ Does this require a change to the Turbo Graph?
The changes in this PR:
🐾 Next steps
🛡 What tests cover this?
expr.test.ts,robustness.test.ts,sampling.test.ts(37 tests): parser/evaluator, margin signs vs boolean semantics, STL operators incl. windows anduntil, soft min/max bounds, penalty shapes, router classification, all four samplers, hit-and-run containment, toy-model determinism.❓ How to test this?
yarn exec turbo run dev --filter @hashintel/petrinautand open Storybook (port 6006).📹 Demo
Screenshots pending — placeholder for drag-drop.