Skip to content

feat(workflows): hand off on page drift - #40

Merged
wolfqing merged 3 commits into
wolfqing:mainfrom
bferanmi806-sketch:codex/issue-1-intent-drift
Nov 29, 2026
Merged

wolfqing merged 3 commits into
wolfqing:mainfrom
bferanmi806-sketch:codex/issue-1-intent-drift

Conversation

@bferanmi806-sketch

@bferanmi806-sketch bferanmi806-sketch commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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.
  • Focused workflow, agent, guardrail, and loop-guard tests — 80 passed; the final title-fallback regression also passed.
  • git diff --check — passed.
  • Full corepack pnpm test — 1,311 passed and 8 skipped. Three Windows symlink tests could not create symlinks and failed with EPERM (builtin-skills.test.ts, computer-local.test.ts, and spill.test.ts).

@wolfqing wolfqing left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, well-tested slice — thank you @bferanmi806-sketch!

  • Drift handoff is strictly gated to genuine locator timeouts (target_not_found) and url_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: false isolation, and expectedOrigin re-verification before approved guardrail actions are all solid.

@wolfqing
wolfqing merged commit d45e051 into wolfqing:main Nov 29, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants