Attest implementation · September 14, 2026
Click and fill through the session’s browser
Add deterministic native web actions with exact CSS targets, verified readiness, and honest evidence. Keep product assertions in drivers and all browser mutation in Stagehand.
One budget, one interaction
Validate & queue→Resolve & guard→Stagehand interaction→Confirm & report
Timeout or cancellation blocks new browser work. An unsettled operation invalidates and closes its resource; neither evidence capture nor a later dispatch repeats the mutation.
The main risk is a late browser command
Stagehand 3.3 has lazy first-match resolution and no AbortSignal. A scoped session adapter must check cancellation before each command, guard final element identity and uniqueness, and drain actual command settlement. A DOM check and a browser input command are separate operations: document the unavoidable scheduling gap.
Use a narrow pinned-library bridge rather than reimplementing pointer or input events. Validate visible/enabled/editable state and click geometry/hit testing at the browser boundary. Never put fill text in labels, keys, raw results or exception messages.
Proof at the right boundaries
Constructor and wire tests cover validation and inference. Chromium tests cover pointerdown, controlled input, form receipts, readiness and failures. Lifecycle tests force late settlement and queued dispatches. A transported generic driver must finish a real Shuru CLI run with parsed report records and evidence bytes.
Run typecheck, lint, full tests, explicit Chromium tests, the selected Shuru proof, build and package checks. Preserve report paths and executed/skipped counts.
Implementation notes
Update src/executors/web.ts and public exports. Add web-interaction schemas and a scoped guest locator bridge using the pinned Stagehand Locator and its session frame; actual click/fill remain library methods. Extend runtime/resources.ts with browser-operation serialization and invalidation. Forward interactions through stagehand-launch.ts, preserving receivers and network resync. Add exact package allowlist entries. Extend executor, dispatch typing, guest, browser and Shuru fixture tests. Update writing-runners.md, runner-catalog.md and skills/attest/references/drivers.md with SDK/wire examples, privacy and limits. Track delivery in sageox-attest-0uj. Source revision: 3a99467bd54062a3d55d846ac747a78340ee0a56. ADR-001/002 retain ownership; ADR-003/004 preserve report/backend contracts. The extraction plan path supplied by the handoff is unavailable in this checkout. Local Stagehand source inspection and official locator/actionability docs inform the guards.

