Repository navigation
feat(workflows): hand off on page drift - #40
Merged
wolfqing merged 3 commits intoNov 29, 2026
Merged
Conversation
wolfqing
approved these changes
Nov 29, 2026
wolfqing
left a comment
Owner
There was a problem hiding this comment.
Clean, well-tested slice — thank you @bferanmi806-sketch!
- Drift handoff is strictly gated to genuine locator timeouts (
target_not_found) andurl_mismatch, while popups (including during locator waits), Vault checks, cancellations, closed/replaced pages, and action errors still fail closed immediately. - Redaction covers prompts, URLs, native replay blocks, repeat-guard previews, persisted guardrail approvals, messages, and action logs without leaking runtime bindings or Vault secrets.
- Pinned-page execution,
tainted/allowStandingRules: falseisolation, andexpectedOriginre-verification before approved guardrail actions are all solid.
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.
Summary
This is the first scoped slice of #1. When deterministic workflow playback stops because a recorded target or URL has drifted, continue the operator-requested task with a browser-only agent handoff on the workflow's pinned page. The handoff includes the redacted saved workflow title and any workflow or step intent.
The handoff preserves the caller's turn origin and browser action guardrails. It keeps runtime bindings out of prompts, logs, and persisted approval data; private expected origins remain in the live continuation and are redacted in saved approval metadata. Popup, Vault, cancellation, and browser-availability failures still stop immediately. Approved clicks are recorded as successful if the page closes after the click, and no later actions are attempted.
Routine-trigger support is a separate follow-up and is not included here.
Related issue
Part of #1 (first slice only; does not close the umbrella issue).
Verification
corepack pnpm typecheck— passed.corepack pnpm build— passed for web, gateway, and desktop.git diff --check— passed.corepack pnpm test— 1,311 passed and 8 skipped. Three Windows symlink tests could not create symlinks and failed withEPERM(builtin-skills.test.ts,computer-local.test.ts, andspill.test.ts).