FE-711: Add Metrics to Experiments#8751
Conversation
PR SummaryMedium Risk Overview
Reviewed by Cursor Bugbot for commit 079dd75. Bugbot is set up for automated code reviews on this repo. Configure here. |
🤖 Augment PR SummarySummary: This PR introduces first-class Monte Carlo “experiment metrics” for Petrinaut experiments, including runtime/user-defined metric evaluation and UI controls to configure and view metric outputs. Changes:
Technical Notes: Worker-backed experiments remain distribution-only; experiments with expression/aggregated metrics run locally to avoid posting JS code across the worker boundary. 🤖 Was this summary useful? React with 👍 or 👎 |
1e2973a to
74a64da
Compare
- Remove seed input - Single line for Runs and Time inputs - Remove Scenario label
f1bcecf to
e766adc
Compare
788b0e7 to
457e39a
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 079dd75. Configure here.

🌟 What is the purpose of this PR?
Adds Monte Carlo experiment metrics to Petrinaut, so experiments can define metric outputs, run them in a worker, and inspect scalar/distribution timelines.
🔗 Related links
🚫 Blocked by
None.
🔍 What does this change?
@hashintel/petrinaut-core.@hashintel/petrinautto require explicit metrics, validate metric LSP diagnostics, and default to model scenarios when present.Pre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
📜 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?
@hashintel/petrinaut-coreMonte Carlo simulator, runtime, and accumulator tests.@hashintel/petrinautexperiment provider and metric LSP validation tests.❓ How to test this?
📹 Demo
Not included.