FE-1484: Run experiments from Petrinaut AI chat - #9654
Draft
kube wants to merge 7 commits into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Important
Experimental optimization
Optimization requires Parameter sweeps and In-browser optimization. Simulation and the diagnostics API work without these flags.
Summary
Petrinaut AI can create an Experiment from chat, show its progress, and receive a captured result when it finishes. The same request can optimize a parameter range, then finish the requested runs at the best point.
The browser host owns validation and execution. Integrating applications consume a shared contract; Brunch continues to own its tool selection and agent behavior. The website demo uses scripted chat replies and real browser computation, with that boundary stated on screen.
Links
Blocked by
Changes
Contract and browser host
PetrinautExperimentHostinterfaceChat and integration demo
/ai-experimentsdemo with planning turns, streamed replies, and completion figures from the returned experiment resultKnown issues
The architecture guide marks these limits and the future host-orchestration extraction with Important blocks.
Next steps
Brunch adoption needs catalog admission and continuation tests against its real transport. User-guide screenshots remain pending for AI assistant › Experiments from chat and Experiments › Experiments created by the assistant.
Test coverage
Local verification passed: 995 React tests, 399 website tests, TypeScript, lint, package builds, formatting, architecture checks, and the 131-page docs build. Browser checks cover real simulation and optimization, distribution heatmaps and histograms, cancellation, protected controls, captured results, and normal/reduced-motion behavior.
How to test
Simulation
turbo run dev --filter @apps/petrinaut-website/ai-experimentson the printed local URLOptimization
/ai-experimentsand select Edit > Settings > SimulationOwnership and cancellation