FE-1793: Keep experiment runs and results in their originating conversation - #9857
Merged
kostandinang merged 17 commits intoOct 1, 2026
Merged
kostandinang merged 17 commits into
kostandinang merged 17 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
This was referenced Sep 28, 2026
kostandinang
force-pushed
the
ka/fe-1793-experiment-lifecycle
branch
from
September 28, 2026 17:19
27fe33b to
a4fa526
Compare
kostandinang
added this pull request to stack #9861
September 28, 2026 18:43
3 of 5 tasks
kostandinang
force-pushed
the
ka/fe-1793-experiment-lifecycle
branch
from
September 28, 2026 19:19
6083a1d to
4fe0bde
Compare
kostandinang
removed this pull request from stack #9861
September 28, 2026 19:19
kostandinang
added this pull request to stack #9863
September 28, 2026 19:19
kostandinang
force-pushed
the
ka/fe-1793-experiment-lifecycle
branch
from
September 29, 2026 18:30
fab60c9 to
ace9efb
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 2abc566. Configure here.
Restore the experiment feature from the published UI snapshot as a complete layer: draft lifecycle, neutral execution cards, completion delivery to the originating conversation, retry handling, composer activity reporting, tests and documentation. Keep result submission distinct from the original draft-tool result, preserve unsent text, and leave stopped responses stopped. No candidate-progress or petrinaut-core changes. Refs FE-1793
Clear the model review once its accepted model starts a run, so a later failure shows the run error and Retry run instead of an empty model-change notice. Send the next unsent completed result even when an earlier result summary failed, and keep Retry result summary for the failed one. Co-authored-by: Cursor <cursoragent@cursor.com>
The experiment host resolves failures with an error result instead of rejecting, so the draft treated them as finished and never offered Retry. An error result now becomes a failed run with its message and the existing Retry run action. Co-authored-by: Cursor <cursoragent@cursor.com>
The Run branch waited for the finished experiment with the default one-second timeout, but it runs a real 20-run Monte Carlo experiment, which a loaded CI runner can take longer to complete.
… run Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: Amp <amp@ampcode.com>
lunelson
reviewed
Sep 30, 2026
Co-authored-by: Amp <amp@ampcode.com>
lunelson
previously approved these changes
Sep 30, 2026
lunelson
left a comment
Contributor
There was a problem hiding this comment.
Thanks — all threads addressed.
3 tasks done
kube
previously approved these changes
Sep 30, 2026
lunelson
approved these changes
Oct 1, 2026
This branch was successfully deployed
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?
Keep an experiment proposal, its execution state and its result follow-up in the originating conversation. This is a complete experiment feature extracted from #9829, not a change to the simulation engine.
🔗 Related links
🚫 Blocked by
ka/fe-1793-conversation-permissions.Stack: main → #9829 → #9856 → this PR → #9836. Voice steering #9826 is independent; mediation follows as a separate comparison.
🔍 What does this change?
Pre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
@hashintel/petrinautexecution cards and host activity reporting.📜 Does this require a change to the docs?
🕸️ Does this require a change to the Turbo Graph?
unauthorized: access to the requested resource is not authorized); this is not a result for the current head.🐾 Next steps
Review this feature independently from the mediation layer above it. Live voice/provider verification remains separate. This PR remains draft.
🛡 What tests cover this?
git diff --checkpassed.❓ How to test this?
turbo run build test:unit lint:tsc lint:eslint --filter @hashintel/petrinaut --filter @apps/petrinaut-website.RunningSimulation,RunningExperimentandFinishedExperimentfixtures. Check the original blue/purple styling, progress, cancellation and unboxed finished metrics.📹 Demo
Controlled Storybook recordings using deterministic data, not a real optimizer or provider.
Running
pr-9857-running-experiment.mp4
Finished
pr-9857-finished-experiment.mp4