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
kube
force-pushed
the
cf/fe-1556-constraint-authoring-prototypes
branch
from
August 31, 2026 00:50
0766427 to
ae3749b
Compare
kube
force-pushed
the
cf/fe-1518-optimization-constraints
branch
from
August 31, 2026 00:50
cdcb7ac to
0a42048
Compare
kube
force-pushed
the
cf/fe-1518-optimization-constraints
branch
from
August 31, 2026 02:20
a2d2855 to
5af8666
Compare
kube
force-pushed
the
cf/fe-1556-constraint-authoring-prototypes
branch
from
August 31, 2026 02:20
db80a19 to
019e3a5
Compare
kube
force-pushed
the
cf/fe-1518-optimization-constraints
branch
from
August 31, 2026 03:03
5af8666 to
663d298
Compare
kube
force-pushed
the
cf/fe-1556-constraint-authoring-prototypes
branch
from
August 31, 2026 03:03
019e3a5 to
57a4a54
Compare
kube
force-pushed
the
cf/fe-1556-constraint-authoring-prototypes
branch
from
August 31, 2026 03:53
57a4a54 to
dca91b5
Compare
kube
changed the base branch from
cf/fe-1518-optimization-constraints
to
cf/fe-778-ad-hoc-form-editing-and-layout-fixes
August 31, 2026 16:51
kube
force-pushed
the
cf/fe-1556-constraint-authoring-prototypes
branch
from
August 31, 2026 16:51
dca91b5 to
ef2c313
Compare
kube
force-pushed
the
cf/fe-1556-constraint-authoring-prototypes
branch
from
August 31, 2026 17:21
ef2c313 to
704a0eb
Compare
kube
force-pushed
the
cf/fe-778-ad-hoc-form-editing-and-layout-fixes
branch
from
August 31, 2026 17:21
1990608 to
51b10fa
Compare
kube
force-pushed
the
cf/fe-1556-constraint-authoring-prototypes
branch
from
August 31, 2026 17:50
704a0eb to
fb3ffbd
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.