Repository navigation
Separating browser-agent execution from completion validation #2176
Replies: 2 comments
|
Use Stagehand's result as execution evidence, not as the completion gate. The pattern I would use is: So the boundary is: Stagehand decides and performs the browser action; your workflow advances only after a separate assertion passes. Natural-language output and traces are useful for debugging/retry decisions, but they are too soft to be the source of truth for completion. |
|
barry166's split is the right one, the agent's own report is execution evidence, never the completion gate. One addition from the browser side: for side effect tasks there's a layer between "DOM says Saved" and "target system record", which is what the browser actually sent and received. If the browser exposes an immutable readback of the session (requests made, responses received, who held the tab) the validator can check that instead of trusting the model's narration or re-querying a DOM the site controls. The target system record is still the final word when you can get it. The readback is the fallback, and it's what lets you tell "the agent thinks it submitted" from "the server accepted it" afterwards. |
Uh oh!
There was an error while loading. Please reload this page.
Hi Stagehand community — I’m testing a browser-agent reliability boundary.
When Stagehand/AI performs an action, what should confirm completion before the workflow moves forward?
Natural-language result, action trace, UI assertion, Playwright check, target-system record, or external validator?
I’m exploring whether browser agents should execute, while a separate validator confirms task completion.
All reactions