Open-source AI browser agent for Chrome and Firefox (monorepo) ðŸ§
JavaScript ai-agentai-agentsai-toolsbrowser-aibrowser-automationbrowser-extensionchrome-aichrome-devtoolschrome-extensionchrome-extensionsfirefox-addonfirefox-addonsfirefox-extensionfirefox-extensionsgemmagemma4minimaxoffline-aioffline-llmqwen
Merge main and preserve scroll and typing preparation guards
Barack Sokullue2aaaf357b42
diff --cc package.jsonindex 012310ef1,f51a52219..265268e19--- a/package.json+++ b/package.json@@@ -61,8 -61,8 +61,8 @@@"benchmark:relevance": "node scripts/benchmark-offline-relevance.mjs --verbose","test:social-contract": "node --test test/social-publish-contract.mjs test/publication-quote-markup.mjs","test:social-contract:dom": "node test/social-publish-contract-dom.mjs",- "test:runtime-lifecycle": "node test/bot-memory-dom.mjs && node --test test/agent-lifecycle.mjs test/runtime-startup.mjs test/run-ui-scheduled-lifecycle.mjs test/transport-deadlines.mjs test/cdp-worker-restart.mjs test/bot-memory.mjs test/bot-memory-registries.mjs test/bot-memory-cloud-controller.mjs test/cdp-clear-receipt.mjs test/cdp-field-submit-recovery.mjs test/conversation-persistence.mjs test/history-recovery-state.mjs test/history-recovery-scheduler.mjs test/history-recovery-atomic.mjs test/context-live-tool-group.mjs test/integration-races.mjs test/watch-completion-checkpoint.mjs test/runtime-model-identity.mjs test/provider-message-privacy.mjs test/runtime-task-authority.mjs test/planner-repair-authority.mjs test/runtime-progress-continuation.mjs test/chat-resume-chain.mjs test/chat-resume-completion.mjs test/native-chat-execution-ledger.mjs test/chat-send-dispatch-result.mjs test/chat-reply-dedup-race.mjs test/memcode-lifecycle.mjs test/runtime-peer-review.mjs test/read-continuation-schema.mjs test/completion-submit-acknowledgement.mjs test/completion-live-status.mjs test/completion-iframe-submit.mjs test/form-validation-alert-readings.mjs test/control-effect-readings.mjs test/trusted-retry-readings.mjs test/completion-semantic-commit.mjs test/completion-diagnostics.mjs test/mastodon-publication.mjs test/calculator.mjs test/chat-recovery-protocol.mjs test/chat-pending-reconciliation.mjs test/semantic-page-retry.mjs test/pdf-detection.mjs test/runtime-lifecycle.mjs test/collection-read-progress.mjs test/network-lifecycle.mjs test/text-write-cancellation.mjs test/trusted-field-preparation.mjs test/draftjs-text.mjs test/rich-text-frameworks.mjs test/cdp-managed-text-selection.mjs test/firefox-rich-text-readback.mjs test/contenteditable-beforeinput.mjs test/trusted-field-preparation-ownership.mjs test/typing-preparation-geometry.mjs test/chat-steering.mjs test/lifecycle-steering-restart.mjs test/resource-mutation-guards.mjs test/completion-steering-receipt-authority.mjs test/steering-revision-recovery.mjs test/pending-clarification-hydration.mjs test/permission-steering-wakeup.mjs test/pure-calculation-reply.mjs test/pure-calculation-tools.mjs test/page-feedback.mjs test/page-feedback-progress.mjs test/ask-response-scope.mjs test/ask-completion-churn.mjs test/page-feedback-policy.mjs test/research-escalation-page-feedback.mjs test/page-feedback-transport-races.mjs test/page-feedback-recovery.mjs test/telegram-read-preparation-agent.mjs test/media-download-agent-handler.mjs test/code-scanning-url-recipient.mjs test/apocalypse-comm-parsing.mjs test/apocalypse-scalar-decoding.mjs test/bitgpu-chat-security.mjs test/social-media-url-upgrades.mjs test/downloaded-file-saved-bytes.mjs test/downloaded-file-local-probe.mjs test/formless-verification-recovery.mjs test/file-upload-accept.mjs test/file-upload-accept-agent.mjs test/workflow-route-generic-completion.mjs test/release-publication-completion.mjs test/workflow-implicit-metadata.mjs test/workflow-field-readings.mjs test/workflow-field-anchors.mjs test/user-turn-kind.mjs test/follow-up-task-context.mjs test/completion-current-execution-evidence.mjs test/monitor-intervention-contract.mjs test/monitor-owned-geometry.mjs test/monitor-viewport-remainder.mjs test/monitor-scroll-churn.mjs test/monitor-local-attribution.mjs test/monitor-lifecycle-leaks.mjs test/feedback-automatic-churn.mjs test/feedback-navigation-idle.mjs test/feedback-run-boundaries.mjs test/feedback-ask-viewing.mjs test/lifecycle-terminal-done.mjs test/incomplete-completion-recovery.mjs test/lifecycle-planner-digest.mjs test/lifecycle-vision-fallback.mjs test/guards-control-classification.mjs test/guards-unbound-deletion.mjs test/guards-steering-receipts.mjs && node test/ui-content-lifecycle.mjs && node --test test/native-telegram-chat.mjs test/native-telegram-recipient.mjs test/telegram-native-baseline.mjs test/telegram-native-latest.mjs test/native-chat-pre-enter-draft.mjs test/chat-draft-dispatch-ownership.mjs test/native-telegram-alias-preparation.mjs test/telegram-read-preparation-content.mjs test/queued-composer-ownership.mjs test/onboarding-provider-ready.mjs test/workflow-native-targets.mjs test/native-whatsapp-chat.mjs test/native-chat-context-identity.mjs test/native-whatsapp-contact.mjs test/whatsapp-native-bootstrap.mjs test/whatsapp-drawer-identity.mjs test/whatsapp-read-latest.mjs test/whatsapp-read-preparation.mjs test/whatsapp-chat-completion.mjs test/whatsapp-chat-restart.mjs test/chat-goal-lifecycle.mjs test/chat-completion.mjs test/chat-generic-dispatch.mjs test/completion-live-status-browser.mjs test/native-confirmation-visibility.mjs test/read-continuation-browser.mjs test/iframe-preparation-focus.mjs test/contenteditable-literal.mjs test/native-chat-empty-editor.mjs test/native-chat-trusted-clear.mjs test/chat-steering-ui.mjs test/recipient-confirmation-ui.mjs test/assistant-message-visibility-ui.mjs test/history-recovery.mjs test/history-recovery-ui.mjs test/page-monitor-ui.mjs test/page-monitor-dialog.mjs test/page-monitor-dialog-native.mjs test/page-monitor-inline-post.mjs test/bluesky-composer-context.mjs test/page-monitor-anchored.mjs test/page-monitor-upload-owner.mjs test/page-monitor-upload-release.mjs test/page-monitor-native-controls.mjs test/page-monitor-native-preparation.mjs test/native-preparation-cold.mjs test/page-monitor-navigation.mjs test/page-monitor-main-owner.mjs test/page-monitor-collateral-controls.mjs test/accessibility-tree-scoped-budget.mjs test/ax-reference-origin.mjs test/page-monitor-decorative-hit.mjs test/social-ui-navigation.mjs test/native-resource-deletion-binding.mjs test/native-mastodon-confirmation.mjs test/dropdown-menu-inventory.mjs test/page-monitor-passive-progress.mjs test/page-monitor-feed-items.mjs test/media-download-binding.mjs test/media-download-capture-integration.mjs test/social-media-downloader-reinjection.mjs test/upload-file-local-state-guidance.mjs && node test/message-recipient-upload.mjs && node test/message-recipient-clarify-binding.mjs && node --test test/message-recipient-whatsapp.mjs test/message-control-readings.mjs && node test/quality/integration-mv3.mjs --full-form && node test/quality/literal-calculate-midrun-mv3.mjs && node test/quality/ask-completion-churn-mv3.mjs && node test/quality/ask-person-activity-mv3.mjs && node test/quality/telegram-cold-preparation-mv3.mjs && node test/quality/native-chat-mv3.mjs && node test/quality/native-chat-presubmit-mv3.mjs && node test/quality/cloud-bot-memory-mv3.mjs && node test/quality/whatsapp-contact-matrix.mjs && node test/quality/pdf-detection-mv3.mjs && node test/quality/download-upload-mv3.mjs && node test/quality/upload-release-binding-mv3.mjs && node test/quality/release-review-world-mv3.mjs && node test/quality/downloaded-file-saved-bytes-mv3.mjs && node test/quality/file-upload-accept-mv3.mjs && node test/quality/bulk-resume-mv3.mjs && node test/quality/literal-frame-mv3.mjs && node test/quality/mastodon-publication-mv3.mjs && node test/quality/mastodon-deletion-mv3.mjs && node test/quality/mastodon-delete-confirmation-mv3.mjs && node test/quality/mastodon-delete-confirmation-mv3.mjs --menu-read && node test/quality/mastodon-delete-confirmation-mv3.mjs --vague && node test/quality/unbound-deletion-mv3.mjs && node test/quality/recipient-clarify-mv3.mjs && node test/quality/open-chat-recipients-mv3.mjs && node test/quality/correction-cross-site-mv3.mjs && node test/quality/anchored-action-mv3.mjs && node test/quality/inline-social-composer-mv3.mjs && node test/quality/bluesky-composer-mv3.mjs && node test/quality/dropdown-menu-matrix.mjs && node test/quality/mastodon-deletion-navigation-mv3.mjs && node test/quality/semantic-navigation-matrix.mjs && node test/quality/workflow-replay-mv3.mjs && node test/quality/generative-media-mv3.mjs && node test/quality/cdp-worker-restart-mv3.mjs && node test/quality/steering-worker-restart-mv3.mjs",- "test:page-feedback": "node --test test/trusted-field-preparation.mjs test/draftjs-text.mjs test/rich-text-frameworks.mjs test/cdp-managed-text-selection.mjs test/firefox-rich-text-readback.mjs test/contenteditable-beforeinput.mjs test/trusted-field-preparation-ownership.mjs test/typing-preparation-geometry.mjs test/pure-calculation-reply.mjs test/pure-calculation-tools.mjs test/page-feedback.mjs test/page-feedback-progress.mjs test/ask-response-scope.mjs test/ask-completion-churn.mjs test/page-feedback-policy.mjs test/research-escalation-page-feedback.mjs test/page-feedback-transport-races.mjs test/page-feedback-recovery.mjs test/telegram-read-preparation-agent.mjs test/media-download-agent-handler.mjs test/page-monitor-ui.mjs test/page-monitor-dialog.mjs test/page-monitor-dialog-native.mjs test/page-monitor-inline-post.mjs test/bluesky-composer-context.mjs test/page-monitor-anchored.mjs test/page-monitor-upload-owner.mjs test/page-monitor-upload-release.mjs test/page-monitor-native-controls.mjs test/page-monitor-passive-progress.mjs test/page-monitor-feed-items.mjs test/media-download-binding.mjs test/media-download-capture-integration.mjs test/monitor-intervention-contract.mjs test/monitor-owned-geometry.mjs test/monitor-viewport-remainder.mjs test/monitor-scroll-churn.mjs test/monitor-local-attribution.mjs test/monitor-lifecycle-leaks.mjs test/feedback-automatic-churn.mjs test/feedback-navigation-idle.mjs test/feedback-run-boundaries.mjs test/feedback-ask-viewing.mjs test/delivery-click-ax-response-loss.mjs test/delivery-stop-compound.mjs test/delivery-cdp-input.mjs test/delivery-click-locks.mjs test/delivery-native-button-geometry.mjs test/delivery-hover-transition.mjs test/delivery-dispatch-boundary.mjs && node test/message-recipient-upload.mjs && node test/message-recipient-clarify-binding.mjs && node --test test/message-recipient-whatsapp.mjs",- "test:runtime-lifecycle": "node test/bot-memory-dom.mjs && node --test test/agent-lifecycle.mjs test/runtime-startup.mjs test/run-ui-scheduled-lifecycle.mjs test/transport-deadlines.mjs test/cdp-worker-restart.mjs test/bot-memory.mjs test/bot-memory-registries.mjs test/bot-memory-cloud-controller.mjs test/cdp-clear-receipt.mjs test/cdp-field-submit-recovery.mjs test/conversation-persistence.mjs test/history-recovery-state.mjs test/history-recovery-scheduler.mjs test/history-recovery-atomic.mjs test/context-live-tool-group.mjs test/integration-races.mjs test/watch-completion-checkpoint.mjs test/runtime-model-identity.mjs test/provider-message-privacy.mjs test/runtime-task-authority.mjs test/planner-repair-authority.mjs test/runtime-progress-continuation.mjs test/chat-resume-chain.mjs test/chat-resume-completion.mjs test/native-chat-execution-ledger.mjs test/chat-send-dispatch-result.mjs test/chat-reply-dedup-race.mjs test/memcode-lifecycle.mjs test/runtime-peer-review.mjs test/read-continuation-schema.mjs test/completion-submit-acknowledgement.mjs test/completion-live-status.mjs test/completion-iframe-submit.mjs test/form-validation-alert-readings.mjs test/control-effect-readings.mjs test/trusted-retry-readings.mjs test/completion-semantic-commit.mjs test/completion-diagnostics.mjs test/mastodon-publication.mjs test/calculator.mjs test/chat-recovery-protocol.mjs test/chat-pending-reconciliation.mjs test/semantic-page-retry.mjs test/pdf-detection.mjs test/runtime-lifecycle.mjs test/collection-read-progress.mjs test/network-lifecycle.mjs test/text-write-cancellation.mjs test/trusted-field-preparation.mjs test/draftjs-text.mjs test/rich-text-frameworks.mjs test/cdp-managed-text-selection.mjs test/firefox-rich-text-readback.mjs test/contenteditable-beforeinput.mjs test/trusted-field-preparation-ownership.mjs test/typing-preparation-geometry.mjs test/chat-steering.mjs test/lifecycle-steering-restart.mjs test/resource-mutation-guards.mjs test/completion-steering-receipt-authority.mjs test/steering-revision-recovery.mjs test/pending-clarification-hydration.mjs test/permission-steering-wakeup.mjs test/pure-calculation-reply.mjs test/pure-calculation-tools.mjs test/page-feedback.mjs test/page-feedback-progress.mjs test/page-feedback-unbindable-target.mjs test/rich-text-preflight-page-change.mjs test/keyboard-receiver-frame.mjs test/ask-response-scope.mjs test/ask-completion-churn.mjs test/page-feedback-policy.mjs test/research-escalation-page-feedback.mjs test/page-feedback-transport-races.mjs test/page-feedback-recovery.mjs test/telegram-read-preparation-agent.mjs test/media-download-agent-handler.mjs test/code-scanning-url-recipient.mjs test/apocalypse-comm-parsing.mjs test/apocalypse-scalar-decoding.mjs test/bitgpu-chat-security.mjs test/social-media-url-upgrades.mjs test/downloaded-file-saved-bytes.mjs test/downloaded-file-local-probe.mjs test/formless-verification-recovery.mjs test/file-upload-accept.mjs test/file-upload-accept-agent.mjs test/workflow-route-generic-completion.mjs test/release-publication-completion.mjs test/workflow-implicit-metadata.mjs test/workflow-field-readings.mjs test/workflow-field-anchors.mjs test/user-turn-kind.mjs test/follow-up-task-context.mjs test/completion-current-execution-evidence.mjs test/monitor-intervention-contract.mjs test/monitor-owned-geometry.mjs test/monitor-viewport-remainder.mjs test/monitor-local-attribution.mjs test/monitor-lifecycle-leaks.mjs test/feedback-automatic-churn.mjs test/feedback-navigation-idle.mjs test/feedback-run-boundaries.mjs test/feedback-ask-viewing.mjs test/lifecycle-terminal-done.mjs test/incomplete-completion-recovery.mjs test/lifecycle-planner-digest.mjs test/lifecycle-vision-fallback.mjs test/guards-control-classification.mjs test/guards-unbound-deletion.mjs test/guards-steering-receipts.mjs && node test/ui-content-lifecycle.mjs && node --test test/native-telegram-chat.mjs test/native-telegram-recipient.mjs test/telegram-native-baseline.mjs test/telegram-native-latest.mjs test/native-chat-pre-enter-draft.mjs test/chat-draft-dispatch-ownership.mjs test/native-telegram-alias-preparation.mjs test/telegram-read-preparation-content.mjs test/queued-composer-ownership.mjs test/onboarding-provider-ready.mjs test/workflow-native-targets.mjs test/native-whatsapp-chat.mjs test/native-chat-context-identity.mjs test/native-whatsapp-contact.mjs test/whatsapp-native-bootstrap.mjs test/whatsapp-drawer-identity.mjs test/whatsapp-read-latest.mjs test/whatsapp-read-preparation.mjs test/whatsapp-chat-completion.mjs test/whatsapp-chat-restart.mjs test/chat-goal-lifecycle.mjs test/chat-completion.mjs test/chat-generic-dispatch.mjs test/completion-live-status-browser.mjs test/native-confirmation-visibility.mjs test/read-continuation-browser.mjs test/iframe-preparation-focus.mjs test/contenteditable-literal.mjs test/native-chat-empty-editor.mjs test/native-chat-trusted-clear.mjs test/chat-steering-ui.mjs test/recipient-confirmation-ui.mjs test/assistant-message-visibility-ui.mjs test/history-recovery.mjs test/history-recovery-ui.mjs test/page-monitor-ui.mjs test/x-compose-trusted-typing.mjs test/page-monitor-dialog.mjs test/page-monitor-dialog-native.mjs test/page-monitor-inline-post.mjs test/bluesky-composer-context.mjs test/page-monitor-anchored.mjs test/page-monitor-upload-owner.mjs test/page-monitor-upload-release.mjs test/page-monitor-native-controls.mjs test/page-monitor-native-preparation.mjs test/native-preparation-cold.mjs test/page-monitor-navigation.mjs test/page-monitor-main-owner.mjs test/page-monitor-collateral-controls.mjs test/accessibility-tree-scoped-budget.mjs test/ax-reference-origin.mjs test/page-monitor-decorative-hit.mjs test/social-ui-navigation.mjs test/native-resource-deletion-binding.mjs test/native-mastodon-confirmation.mjs test/dropdown-menu-inventory.mjs test/page-monitor-passive-progress.mjs test/page-monitor-feed-items.mjs test/media-download-binding.mjs test/media-download-capture-integration.mjs test/social-media-downloader-reinjection.mjs test/upload-file-local-state-guidance.mjs && node test/message-recipient-upload.mjs && node test/message-recipient-clarify-binding.mjs && node --test test/message-recipient-whatsapp.mjs test/message-control-readings.mjs && node test/quality/integration-mv3.mjs --full-form && node test/quality/literal-calculate-midrun-mv3.mjs && node test/quality/ask-completion-churn-mv3.mjs && node test/quality/ask-person-activity-mv3.mjs && node test/quality/telegram-cold-preparation-mv3.mjs && node test/quality/native-chat-mv3.mjs && node test/quality/native-chat-presubmit-mv3.mjs && node test/quality/cloud-bot-memory-mv3.mjs && node test/quality/whatsapp-contact-matrix.mjs && node test/quality/pdf-detection-mv3.mjs && node test/quality/download-upload-mv3.mjs && node test/quality/upload-release-binding-mv3.mjs && node test/quality/release-review-world-mv3.mjs && node test/quality/downloaded-file-saved-bytes-mv3.mjs && node test/quality/file-upload-accept-mv3.mjs && node test/quality/bulk-resume-mv3.mjs && node test/quality/literal-frame-mv3.mjs && node test/quality/mastodon-publication-mv3.mjs && node test/quality/mastodon-deletion-mv3.mjs && node test/quality/mastodon-delete-confirmation-mv3.mjs && node test/quality/mastodon-delete-confirmation-mv3.mjs --menu-read && node test/quality/mastodon-delete-confirmation-mv3.mjs --vague && node test/quality/unbound-deletion-mv3.mjs && node test/quality/recipient-clarify-mv3.mjs && node test/quality/open-chat-recipients-mv3.mjs && node test/quality/correction-cross-site-mv3.mjs && node test/quality/anchored-action-mv3.mjs && node test/quality/inline-social-composer-mv3.mjs && node test/quality/x-compose-dialog-mv3.mjs && node test/quality/bluesky-composer-mv3.mjs && node test/quality/dropdown-menu-matrix.mjs && node test/quality/mastodon-deletion-navigation-mv3.mjs && node test/quality/semantic-navigation-matrix.mjs && node test/quality/workflow-replay-mv3.mjs && node test/quality/generative-media-mv3.mjs && node test/quality/cdp-worker-restart-mv3.mjs && node test/quality/steering-worker-restart-mv3.mjs",- "test:page-feedback": "node --test test/trusted-field-preparation.mjs test/draftjs-text.mjs test/rich-text-frameworks.mjs test/cdp-managed-text-selection.mjs test/firefox-rich-text-readback.mjs test/contenteditable-beforeinput.mjs test/trusted-field-preparation-ownership.mjs test/typing-preparation-geometry.mjs test/pure-calculation-reply.mjs test/pure-calculation-tools.mjs test/page-feedback.mjs test/page-feedback-progress.mjs test/page-feedback-unbindable-target.mjs test/rich-text-preflight-page-change.mjs test/keyboard-receiver-frame.mjs test/ask-response-scope.mjs test/ask-completion-churn.mjs test/page-feedback-policy.mjs test/research-escalation-page-feedback.mjs test/page-feedback-transport-races.mjs test/page-feedback-recovery.mjs test/telegram-read-preparation-agent.mjs test/media-download-agent-handler.mjs test/page-monitor-ui.mjs test/x-compose-trusted-typing.mjs test/page-monitor-dialog.mjs test/page-monitor-dialog-native.mjs test/page-monitor-inline-post.mjs test/bluesky-composer-context.mjs test/page-monitor-anchored.mjs test/page-monitor-upload-owner.mjs test/page-monitor-upload-release.mjs test/page-monitor-native-controls.mjs test/page-monitor-passive-progress.mjs test/page-monitor-feed-items.mjs test/media-download-binding.mjs test/media-download-capture-integration.mjs test/monitor-intervention-contract.mjs test/monitor-owned-geometry.mjs test/monitor-viewport-remainder.mjs test/monitor-local-attribution.mjs test/monitor-lifecycle-leaks.mjs test/feedback-automatic-churn.mjs test/feedback-navigation-idle.mjs test/feedback-run-boundaries.mjs test/feedback-ask-viewing.mjs test/delivery-click-ax-response-loss.mjs test/delivery-stop-compound.mjs test/delivery-cdp-input.mjs test/delivery-click-locks.mjs test/delivery-native-button-geometry.mjs test/delivery-hover-transition.mjs test/delivery-dispatch-boundary.mjs && node test/message-recipient-upload.mjs && node test/message-recipient-clarify-binding.mjs && node --test test/message-recipient-whatsapp.mjs",++ "test:runtime-lifecycle": "node test/bot-memory-dom.mjs && node --test test/agent-lifecycle.mjs test/runtime-startup.mjs test/run-ui-scheduled-lifecycle.mjs test/transport-deadlines.mjs test/cdp-worker-restart.mjs test/bot-memory.mjs test/bot-memory-registries.mjs test/bot-memory-cloud-controller.mjs test/cdp-clear-receipt.mjs test/cdp-field-submit-recovery.mjs test/conversation-persistence.mjs test/history-recovery-state.mjs test/history-recovery-scheduler.mjs test/history-recovery-atomic.mjs test/context-live-tool-group.mjs test/integration-races.mjs test/watch-completion-checkpoint.mjs test/runtime-model-identity.mjs test/provider-message-privacy.mjs test/runtime-task-authority.mjs test/planner-repair-authority.mjs test/runtime-progress-continuation.mjs test/chat-resume-chain.mjs test/chat-resume-completion.mjs test/native-chat-execution-ledger.mjs test/chat-send-dispatch-result.mjs test/chat-reply-dedup-race.mjs test/memcode-lifecycle.mjs test/runtime-peer-review.mjs test/read-continuation-schema.mjs test/completion-submit-acknowledgement.mjs test/completion-live-status.mjs test/completion-iframe-submit.mjs test/form-validation-alert-readings.mjs test/control-effect-readings.mjs test/trusted-retry-readings.mjs test/completion-semantic-commit.mjs test/completion-diagnostics.mjs test/mastodon-publication.mjs test/calculator.mjs test/chat-recovery-protocol.mjs test/chat-pending-reconciliation.mjs test/semantic-page-retry.mjs test/pdf-detection.mjs test/runtime-lifecycle.mjs test/collection-read-progress.mjs test/network-lifecycle.mjs test/text-write-cancellation.mjs test/trusted-field-preparation.mjs test/draftjs-text.mjs test/rich-text-frameworks.mjs test/cdp-managed-text-selection.mjs test/firefox-rich-text-readback.mjs test/contenteditable-beforeinput.mjs test/trusted-field-preparation-ownership.mjs test/typing-preparation-geometry.mjs test/chat-steering.mjs test/lifecycle-steering-restart.mjs test/resource-mutation-guards.mjs test/completion-steering-receipt-authority.mjs test/steering-revision-recovery.mjs test/pending-clarification-hydration.mjs test/permission-steering-wakeup.mjs test/pure-calculation-reply.mjs test/pure-calculation-tools.mjs test/page-feedback.mjs test/page-feedback-progress.mjs test/page-feedback-unbindable-target.mjs test/rich-text-preflight-page-change.mjs test/keyboard-receiver-frame.mjs test/ask-response-scope.mjs test/ask-completion-churn.mjs test/page-feedback-policy.mjs test/research-escalation-page-feedback.mjs test/page-feedback-transport-races.mjs test/page-feedback-recovery.mjs test/telegram-read-preparation-agent.mjs test/media-download-agent-handler.mjs test/code-scanning-url-recipient.mjs test/apocalypse-comm-parsing.mjs test/apocalypse-scalar-decoding.mjs test/bitgpu-chat-security.mjs test/social-media-url-upgrades.mjs test/downloaded-file-saved-bytes.mjs test/downloaded-file-local-probe.mjs test/formless-verification-recovery.mjs test/file-upload-accept.mjs test/file-upload-accept-agent.mjs test/workflow-route-generic-completion.mjs test/release-publication-completion.mjs test/workflow-implicit-metadata.mjs test/workflow-field-readings.mjs test/workflow-field-anchors.mjs test/user-turn-kind.mjs test/follow-up-task-context.mjs test/completion-current-execution-evidence.mjs test/monitor-intervention-contract.mjs test/monitor-owned-geometry.mjs test/monitor-viewport-remainder.mjs test/monitor-scroll-churn.mjs test/monitor-local-attribution.mjs test/monitor-lifecycle-leaks.mjs test/feedback-automatic-churn.mjs test/feedback-navigation-idle.mjs test/feedback-run-boundaries.mjs test/feedback-ask-viewing.mjs test/lifecycle-terminal-done.mjs test/incomplete-completion-recovery.mjs test/lifecycle-planner-digest.mjs test/lifecycle-vision-fallback.mjs test/guards-control-classification.mjs test/guards-unbound-deletion.mjs test/guards-steering-receipts.mjs && node test/ui-content-lifecycle.mjs && node --test test/native-telegram-chat.mjs test/native-telegram-recipient.mjs test/telegram-native-baseline.mjs test/telegram-native-latest.mjs test/native-chat-pre-enter-draft.mjs test/chat-draft-dispatch-ownership.mjs test/native-telegram-alias-preparation.mjs test/telegram-read-preparation-content.mjs test/queued-composer-ownership.mjs test/onboarding-provider-ready.mjs test/workflow-native-targets.mjs test/native-whatsapp-chat.mjs test/native-chat-context-identity.mjs test/native-whatsapp-contact.mjs test/whatsapp-native-bootstrap.mjs test/whatsapp-drawer-identity.mjs test/whatsapp-read-latest.mjs test/whatsapp-read-preparation.mjs test/whatsapp-chat-completion.mjs test/whatsapp-chat-restart.mjs test/chat-goal-lifecycle.mjs test/chat-completion.mjs test/chat-generic-dispatch.mjs test/completion-live-status-browser.mjs test/native-confirmation-visibility.mjs test/read-continuation-browser.mjs test/iframe-preparation-focus.mjs test/contenteditable-literal.mjs test/native-chat-empty-editor.mjs test/native-chat-trusted-clear.mjs test/chat-steering-ui.mjs test/recipient-confirmation-ui.mjs test/assistant-message-visibility-ui.mjs test/history-recovery.mjs test/history-recovery-ui.mjs test/page-monitor-ui.mjs test/x-compose-trusted-typing.mjs test/page-monitor-dialog.mjs test/page-monitor-dialog-native.mjs test/page-monitor-inline-post.mjs test/bluesky-composer-context.mjs test/page-monitor-anchored.mjs test/page-monitor-upload-owner.mjs test/page-monitor-upload-release.mjs test/page-monitor-native-controls.mjs test/page-monitor-native-preparation.mjs test/native-preparation-cold.mjs test/page-monitor-navigation.mjs test/page-monitor-main-owner.mjs test/page-monitor-collateral-controls.mjs test/accessibility-tree-scoped-budget.mjs test/ax-reference-origin.mjs test/page-monitor-decorative-hit.mjs test/social-ui-navigation.mjs test/native-resource-deletion-binding.mjs test/native-mastodon-confirmation.mjs test/dropdown-menu-inventory.mjs test/page-monitor-passive-progress.mjs test/page-monitor-feed-items.mjs test/media-download-binding.mjs test/media-download-capture-integration.mjs test/social-media-downloader-reinjection.mjs test/upload-file-local-state-guidance.mjs && node test/message-recipient-upload.mjs && node test/message-recipient-clarify-binding.mjs && node --test test/message-recipient-whatsapp.mjs test/message-control-readings.mjs && node test/quality/integration-mv3.mjs --full-form && node test/quality/literal-calculate-midrun-mv3.mjs && node test/quality/ask-completion-churn-mv3.mjs && node test/quality/ask-person-activity-mv3.mjs && node test/quality/telegram-cold-preparation-mv3.mjs && node test/quality/native-chat-mv3.mjs && node test/quality/native-chat-presubmit-mv3.mjs && node test/quality/cloud-bot-memory-mv3.mjs && node test/quality/whatsapp-contact-matrix.mjs && node test/quality/pdf-detection-mv3.mjs && node test/quality/download-upload-mv3.mjs && node test/quality/upload-release-binding-mv3.mjs && node test/quality/release-review-world-mv3.mjs && node test/quality/downloaded-file-saved-bytes-mv3.mjs && node test/quality/file-upload-accept-mv3.mjs && node test/quality/bulk-resume-mv3.mjs && node test/quality/literal-frame-mv3.mjs && node test/quality/mastodon-publication-mv3.mjs && node test/quality/mastodon-deletion-mv3.mjs && node test/quality/mastodon-delete-confirmation-mv3.mjs && node test/quality/mastodon-delete-confirmation-mv3.mjs --menu-read && node test/quality/mastodon-delete-confirmation-mv3.mjs --vague && node test/quality/unbound-deletion-mv3.mjs && node test/quality/recipient-clarify-mv3.mjs && node test/quality/open-chat-recipients-mv3.mjs && node test/quality/correction-cross-site-mv3.mjs && node test/quality/anchored-action-mv3.mjs && node test/quality/inline-social-composer-mv3.mjs && node test/quality/x-compose-dialog-mv3.mjs && node test/quality/bluesky-composer-mv3.mjs && node test/quality/dropdown-menu-matrix.mjs && node test/quality/mastodon-deletion-navigation-mv3.mjs && node test/quality/semantic-navigation-matrix.mjs && node test/quality/workflow-replay-mv3.mjs && node test/quality/generative-media-mv3.mjs && node test/quality/cdp-worker-restart-mv3.mjs && node test/quality/steering-worker-restart-mv3.mjs",++ "test:page-feedback": "node --test test/trusted-field-preparation.mjs test/draftjs-text.mjs test/rich-text-frameworks.mjs test/cdp-managed-text-selection.mjs test/firefox-rich-text-readback.mjs test/contenteditable-beforeinput.mjs test/trusted-field-preparation-ownership.mjs test/typing-preparation-geometry.mjs test/pure-calculation-reply.mjs test/pure-calculation-tools.mjs test/page-feedback.mjs test/page-feedback-progress.mjs test/page-feedback-unbindable-target.mjs test/rich-text-preflight-page-change.mjs test/keyboard-receiver-frame.mjs test/ask-response-scope.mjs test/ask-completion-churn.mjs test/page-feedback-policy.mjs test/research-escalation-page-feedback.mjs test/page-feedback-transport-races.mjs test/page-feedback-recovery.mjs test/telegram-read-preparation-agent.mjs test/media-download-agent-handler.mjs test/page-monitor-ui.mjs test/x-compose-trusted-typing.mjs test/page-monitor-dialog.mjs test/page-monitor-dialog-native.mjs test/page-monitor-inline-post.mjs test/bluesky-composer-context.mjs test/page-monitor-anchored.mjs test/page-monitor-upload-owner.mjs test/page-monitor-upload-release.mjs test/page-monitor-native-controls.mjs test/page-monitor-passive-progress.mjs test/page-monitor-feed-items.mjs test/media-download-binding.mjs test/media-download-capture-integration.mjs test/monitor-intervention-contract.mjs test/monitor-owned-geometry.mjs test/monitor-viewport-remainder.mjs test/monitor-scroll-churn.mjs test/monitor-local-attribution.mjs test/monitor-lifecycle-leaks.mjs test/feedback-automatic-churn.mjs test/feedback-navigation-idle.mjs test/feedback-run-boundaries.mjs test/feedback-ask-viewing.mjs test/delivery-click-ax-response-loss.mjs test/delivery-stop-compound.mjs test/delivery-cdp-input.mjs test/delivery-click-locks.mjs test/delivery-native-button-geometry.mjs test/delivery-hover-transition.mjs test/delivery-dispatch-boundary.mjs && node test/message-recipient-upload.mjs && node test/message-recipient-clarify-binding.mjs && node --test test/message-recipient-whatsapp.mjs","test:history-recovery": "node --test test/history-recovery.mjs test/history-recovery-ui.mjs test/history-recovery-state.mjs test/history-recovery-scheduler.mjs test/history-recovery-atomic.mjs test/conversation-persistence.mjs","test:chat-steering": "node --test test/chat-steering.mjs test/chat-steering-ui.mjs test/recipient-confirmation-ui.mjs test/lifecycle-steering-latency.mjs test/lifecycle-steering-restart.mjs test/lifecycle-run-ui.mjs test/lifecycle-menu-prompts-held.mjs","test:rich-text-dom": "node test/ui-content-lifecycle.mjs --dom",@@@ -95,13 -95,13 +95,13 @@@"test:chat-draft-recovery": "node --test test/native-chat-pre-enter-draft.mjs test/chat-draft-dispatch-ownership.mjs && node test/quality/native-chat-presubmit-mv3.mjs","test:upload-owner": "node --test test/page-monitor-upload-owner.mjs test/page-monitor-upload-release.mjs","test:shard:quick": "npm run test:cms && npm run test:markdown && npm run test:generative-media && npm run test:systemone && npm run test:systemone:fast && node --test test/browser-dialogs.mjs test/capsolver-cloud-broker.mjs test/captcha-providers.mjs test/captcha-weighted-fallback.mjs test/captcha-hcaptcha-providers.mjs test/captcha-native-providers.mjs test/captcha-runtime-policy.mjs test/captcha-callback-bridge.mjs test/captcha-bridge-registration.mjs test/captcha-aws-recovery.mjs test/captcha-documented-contracts.mjs test/huggingface-signup-recovery.mjs test/trace-full-export.mjs test/feedback-traces.mjs && npm run test:firefox-bidi && npm run test:billing-notice && npm run test:compass-quota && npm run test:provider-limits && npm run test:provider-catalog && npm run test:provider-instances:ui && npm run test:openrouter-capabilities && npm run test:anthropic && npm run test:browser-batch && npm run test:accessibility-tree-benchmark && npm run test:toolbar-guard && npm run test:cloud-bridge-approval && npm run test:discord && npm run test:pdf-read && npm run test:pdf-selection && npm run test:social-contract && npm run test:safesocial && npm run test:build-unpacked && npm run test:attachment-drop && npm run test:workflow-editor && node --test test/profile-sync-stats.mjs && node --test test/memcode-recall.mjs",- "test:shard:runtime-unit": "node --test test/skill-download-wait.mjs && node --test test/agent-lifecycle.mjs test/runtime-startup.mjs test/run-ui-scheduled-lifecycle.mjs test/transport-deadlines.mjs test/cdp-worker-restart.mjs test/bot-memory.mjs test/bot-memory-click-guard.mjs test/bot-memory-registries.mjs test/bot-memory-cloud-controller.mjs test/cdp-clear-receipt.mjs test/cdp-field-submit-recovery.mjs test/conversation-persistence.mjs test/context-live-tool-group.mjs test/integration-races.mjs test/watch-completion-checkpoint.mjs test/runtime-model-identity.mjs test/provider-message-privacy.mjs test/runtime-task-authority.mjs test/planner-repair-authority.mjs test/runtime-progress-continuation.mjs test/chat-resume-chain.mjs test/chat-resume-completion.mjs test/native-chat-execution-ledger.mjs test/chat-send-dispatch-result.mjs test/chat-reply-dedup-race.mjs test/memcode-lifecycle.mjs test/runtime-peer-review.mjs test/read-continuation-schema.mjs test/completion-submit-acknowledgement.mjs test/completion-live-status.mjs test/completion-iframe-submit.mjs test/form-validation-alert-readings.mjs test/control-effect-readings.mjs test/trusted-retry-readings.mjs test/completion-semantic-commit.mjs test/completion-diagnostics.mjs test/mastodon-publication.mjs test/calculator.mjs test/chat-recovery-protocol.mjs test/chat-pending-reconciliation.mjs test/semantic-page-retry.mjs test/pdf-detection.mjs test/runtime-lifecycle.mjs test/collection-read-progress.mjs test/network-lifecycle.mjs test/text-write-cancellation.mjs test/trusted-field-preparation.mjs test/draftjs-text.mjs test/rich-text-frameworks.mjs test/cdp-managed-text-selection.mjs test/firefox-rich-text-readback.mjs test/contenteditable-beforeinput.mjs test/trusted-field-preparation-ownership.mjs test/typing-preparation-geometry.mjs test/chat-steering.mjs test/resource-mutation-guards.mjs test/completion-steering-receipt-authority.mjs test/steering-revision-recovery.mjs test/pending-clarification-hydration.mjs test/permission-steering-wakeup.mjs test/pure-calculation-reply.mjs test/pure-calculation-tools.mjs test/page-feedback.mjs test/page-feedback-progress.mjs test/ask-response-scope.mjs test/ask-completion-churn.mjs test/page-feedback-policy.mjs test/research-escalation-page-feedback.mjs test/page-feedback-transport-races.mjs test/page-feedback-recovery.mjs test/telegram-read-preparation-agent.mjs test/media-download-agent-handler.mjs test/code-scanning-url-recipient.mjs test/apocalypse-comm-parsing.mjs test/apocalypse-scalar-decoding.mjs test/bitgpu-chat-security.mjs test/social-media-url-upgrades.mjs test/downloaded-file-saved-bytes.mjs test/downloaded-file-local-probe.mjs test/formless-verification-recovery.mjs test/file-upload-accept.mjs test/file-upload-accept-agent.mjs test/workflow-route-generic-completion.mjs test/release-publication-completion.mjs test/workflow-implicit-metadata.mjs test/workflow-field-readings.mjs test/workflow-field-anchors.mjs test/user-turn-kind.mjs test/follow-up-task-context.mjs test/completion-current-execution-evidence.mjs test/video-upload-attachment.mjs test/feedback-automatic-churn.mjs test/feedback-navigation-idle.mjs test/feedback-run-boundaries.mjs test/feedback-ask-viewing.mjs test/lifecycle-terminal-done.mjs test/incomplete-completion-recovery.mjs test/lifecycle-planner-digest.mjs test/lifecycle-steering-latency.mjs test/lifecycle-steering-restart.mjs test/lifecycle-vision-fallback.mjs test/delivery-click-locks.mjs test/guards-steering-receipts.mjs test/terminal-user-messages.mjs && npm run test:plan-notifications",- "test:shard:browser-a": "node --test test/captcha-draft-content.mjs test/captcha-challenge-surfaces.mjs && node test/bot-memory-dom.mjs && node test/bot-memory-click-dom.mjs && node test/ui-content-lifecycle.mjs && node --test test/native-telegram-chat.mjs test/native-telegram-recipient.mjs test/telegram-native-baseline.mjs test/telegram-native-latest.mjs test/native-chat-pre-enter-draft.mjs test/chat-draft-dispatch-ownership.mjs test/native-telegram-alias-preparation.mjs test/telegram-read-preparation-content.mjs test/queued-composer-ownership.mjs test/onboarding-provider-ready.mjs test/workflow-native-targets.mjs test/native-whatsapp-chat.mjs test/native-chat-context-identity.mjs test/native-whatsapp-contact.mjs test/whatsapp-native-bootstrap.mjs test/whatsapp-drawer-identity.mjs test/whatsapp-read-latest.mjs test/whatsapp-read-preparation.mjs test/whatsapp-chat-completion.mjs test/whatsapp-chat-restart.mjs test/chat-goal-lifecycle.mjs test/chat-completion.mjs test/chat-generic-dispatch.mjs test/completion-live-status-browser.mjs test/native-confirmation-visibility.mjs test/native-button-preparation.mjs test/read-continuation-browser.mjs test/iframe-preparation-focus.mjs test/contenteditable-literal.mjs test/native-chat-empty-editor.mjs test/native-chat-trusted-clear.mjs test/chat-steering-ui.mjs test/recipient-confirmation-ui.mjs test/assistant-message-visibility-ui.mjs test/page-monitor-ui.mjs test/page-monitor-dialog.mjs test/page-monitor-dialog-native.mjs test/page-monitor-inline-post.mjs test/bluesky-composer-context.mjs test/page-monitor-anchored.mjs test/page-monitor-upload-owner.mjs test/page-monitor-upload-release.mjs test/page-monitor-native-controls.mjs test/page-monitor-native-preparation.mjs test/native-preparation-cold.mjs test/page-monitor-navigation.mjs test/page-monitor-main-owner.mjs test/page-monitor-collateral-controls.mjs test/accessibility-tree-scoped-budget.mjs test/ax-reference-origin.mjs test/page-monitor-decorative-hit.mjs test/social-ui-navigation.mjs test/native-resource-deletion-binding.mjs test/native-mastodon-confirmation.mjs test/dropdown-menu-inventory.mjs test/page-monitor-passive-progress.mjs test/page-monitor-feed-items.mjs test/media-download-binding.mjs test/media-download-capture-integration.mjs test/social-media-downloader-reinjection.mjs test/upload-file-local-state-guidance.mjs test/monitor-intervention-contract.mjs test/monitor-owned-geometry.mjs test/monitor-viewport-remainder.mjs test/monitor-scroll-churn.mjs test/monitor-local-attribution.mjs test/monitor-lifecycle-leaks.mjs test/lifecycle-run-ui.mjs test/lifecycle-menu-prompts-held.mjs test/delivery-cdp-input.mjs test/delivery-click-ax-response-loss.mjs test/delivery-native-button-geometry.mjs test/delivery-hover-transition.mjs test/delivery-dispatch-boundary.mjs test/delivery-stop-compound.mjs test/guards-control-classification.mjs test/guards-unbound-deletion.mjs test/submit-probe-readings.mjs",+ "test:shard:runtime-unit": "node --test test/skill-download-wait.mjs && node --test test/agent-lifecycle.mjs test/runtime-startup.mjs test/run-ui-scheduled-lifecycle.mjs test/transport-deadlines.mjs test/cdp-worker-restart.mjs test/bot-memory.mjs test/bot-memory-click-guard.mjs test/bot-memory-registries.mjs test/bot-memory-cloud-controller.mjs test/cdp-clear-receipt.mjs test/cdp-field-submit-recovery.mjs test/conversation-persistence.mjs test/context-live-tool-group.mjs test/integration-races.mjs test/watch-completion-checkpoint.mjs test/runtime-model-identity.mjs test/provider-message-privacy.mjs test/runtime-task-authority.mjs test/planner-repair-authority.mjs test/runtime-progress-continuation.mjs test/chat-resume-chain.mjs test/chat-resume-completion.mjs test/native-chat-execution-ledger.mjs test/chat-send-dispatch-result.mjs test/chat-reply-dedup-race.mjs test/memcode-lifecycle.mjs test/runtime-peer-review.mjs test/read-continuation-schema.mjs test/completion-submit-acknowledgement.mjs test/completion-live-status.mjs test/completion-iframe-submit.mjs test/form-validation-alert-readings.mjs test/control-effect-readings.mjs test/trusted-retry-readings.mjs test/completion-semantic-commit.mjs test/completion-diagnostics.mjs test/mastodon-publication.mjs test/calculator.mjs test/chat-recovery-protocol.mjs test/chat-pending-reconciliation.mjs test/semantic-page-retry.mjs test/pdf-detection.mjs test/runtime-lifecycle.mjs test/collection-read-progress.mjs test/network-lifecycle.mjs test/text-write-cancellation.mjs test/trusted-field-preparation.mjs test/draftjs-text.mjs test/rich-text-frameworks.mjs test/cdp-managed-text-selection.mjs test/firefox-rich-text-readback.mjs test/contenteditable-beforeinput.mjs test/trusted-field-preparation-ownership.mjs test/typing-preparation-geometry.mjs test/chat-steering.mjs test/resource-mutation-guards.mjs test/completion-steering-receipt-authority.mjs test/steering-revision-recovery.mjs test/pending-clarification-hydration.mjs test/permission-steering-wakeup.mjs test/pure-calculation-reply.mjs test/pure-calculation-tools.mjs test/page-feedback.mjs test/page-feedback-progress.mjs test/page-feedback-unbindable-target.mjs test/rich-text-preflight-page-change.mjs test/keyboard-receiver-frame.mjs test/ask-response-scope.mjs test/ask-completion-churn.mjs test/page-feedback-policy.mjs test/research-escalation-page-feedback.mjs test/page-feedback-transport-races.mjs test/page-feedback-recovery.mjs test/telegram-read-preparation-agent.mjs test/media-download-agent-handler.mjs test/code-scanning-url-recipient.mjs test/apocalypse-comm-parsing.mjs test/apocalypse-scalar-decoding.mjs test/bitgpu-chat-security.mjs test/social-media-url-upgrades.mjs test/downloaded-file-saved-bytes.mjs test/downloaded-file-local-probe.mjs test/formless-verification-recovery.mjs test/file-upload-accept.mjs test/file-upload-accept-agent.mjs test/workflow-route-generic-completion.mjs test/release-publication-completion.mjs test/workflow-implicit-metadata.mjs test/workflow-field-readings.mjs test/workflow-field-anchors.mjs test/user-turn-kind.mjs test/follow-up-task-context.mjs test/completion-current-execution-evidence.mjs test/video-upload-attachment.mjs test/feedback-automatic-churn.mjs test/feedback-navigation-idle.mjs test/feedback-run-boundaries.mjs test/feedback-ask-viewing.mjs test/lifecycle-terminal-done.mjs test/incomplete-completion-recovery.mjs test/lifecycle-planner-digest.mjs test/lifecycle-steering-latency.mjs test/lifecycle-steering-restart.mjs test/lifecycle-vision-fallback.mjs test/delivery-click-locks.mjs test/guards-steering-receipts.mjs test/terminal-user-messages.mjs test/improver-providers.mjs test/improver-providers-agent.mjs test/improver-guards-ledger.mjs test/improver-guards-tools.mjs test/improver-clarify.mjs test/improver-clarify-scheduler.mjs test/improver-misc.mjs test/improver-forms.mjs test/improver-forms-strict-secrets.mjs test/improver-content-press-keys-hint.mjs && npm run test:plan-notifications",- "test:shard:browser-a": "node --test test/captcha-draft-content.mjs test/captcha-challenge-surfaces.mjs && node test/bot-memory-dom.mjs && node test/bot-memory-click-dom.mjs && node test/ui-content-lifecycle.mjs && node --test test/native-telegram-chat.mjs test/native-telegram-recipient.mjs test/telegram-native-baseline.mjs test/telegram-native-latest.mjs test/native-chat-pre-enter-draft.mjs test/chat-draft-dispatch-ownership.mjs test/native-telegram-alias-preparation.mjs test/telegram-read-preparation-content.mjs test/queued-composer-ownership.mjs test/onboarding-provider-ready.mjs test/workflow-native-targets.mjs test/native-whatsapp-chat.mjs test/native-chat-context-identity.mjs test/native-whatsapp-contact.mjs test/whatsapp-native-bootstrap.mjs test/whatsapp-drawer-identity.mjs test/whatsapp-read-latest.mjs test/whatsapp-read-preparation.mjs test/whatsapp-chat-completion.mjs test/whatsapp-chat-restart.mjs test/chat-goal-lifecycle.mjs test/chat-completion.mjs test/chat-generic-dispatch.mjs test/completion-live-status-browser.mjs test/native-confirmation-visibility.mjs test/native-button-preparation.mjs test/read-continuation-browser.mjs test/iframe-preparation-focus.mjs test/contenteditable-literal.mjs test/native-chat-empty-editor.mjs test/native-chat-trusted-clear.mjs test/chat-steering-ui.mjs test/recipient-confirmation-ui.mjs test/assistant-message-visibility-ui.mjs test/page-monitor-ui.mjs test/x-compose-trusted-typing.mjs test/page-monitor-dialog.mjs test/page-monitor-dialog-native.mjs test/page-monitor-inline-post.mjs test/bluesky-composer-context.mjs test/page-monitor-anchored.mjs test/page-monitor-upload-owner.mjs test/page-monitor-upload-release.mjs test/page-monitor-native-controls.mjs test/page-monitor-native-preparation.mjs test/native-preparation-cold.mjs test/page-monitor-navigation.mjs test/page-monitor-main-owner.mjs test/page-monitor-collateral-controls.mjs test/accessibility-tree-scoped-budget.mjs test/ax-reference-origin.mjs test/page-monitor-decorative-hit.mjs test/social-ui-navigation.mjs test/native-resource-deletion-binding.mjs test/native-mastodon-confirmation.mjs test/dropdown-menu-inventory.mjs test/page-monitor-passive-progress.mjs test/page-monitor-feed-items.mjs test/media-download-binding.mjs test/media-download-capture-integration.mjs test/social-media-downloader-reinjection.mjs test/upload-file-local-state-guidance.mjs test/monitor-intervention-contract.mjs test/monitor-owned-geometry.mjs test/monitor-viewport-remainder.mjs test/monitor-local-attribution.mjs test/monitor-lifecycle-leaks.mjs test/lifecycle-run-ui.mjs test/lifecycle-menu-prompts-held.mjs test/delivery-cdp-input.mjs test/delivery-click-ax-response-loss.mjs test/delivery-native-button-geometry.mjs test/delivery-hover-transition.mjs test/delivery-dispatch-boundary.mjs test/delivery-stop-compound.mjs test/guards-control-classification.mjs test/guards-unbound-deletion.mjs test/submit-probe-readings.mjs test/improver-content-account-chrome.mjs test/improver-content-recipient.mjs test/improver-content-truncated-replacement.mjs test/improver-forms-probe.mjs test/improver-misc-trace-browser.mjs",++ "test:shard:browser-a": "node --test test/captcha-draft-content.mjs test/captcha-challenge-surfaces.mjs && node test/bot-memory-dom.mjs && node test/bot-memory-click-dom.mjs && node test/ui-content-lifecycle.mjs && node --test test/native-telegram-chat.mjs test/native-telegram-recipient.mjs test/telegram-native-baseline.mjs test/telegram-native-latest.mjs test/native-chat-pre-enter-draft.mjs test/chat-draft-dispatch-ownership.mjs test/native-telegram-alias-preparation.mjs test/telegram-read-preparation-content.mjs test/queued-composer-ownership.mjs test/onboarding-provider-ready.mjs test/workflow-native-targets.mjs test/native-whatsapp-chat.mjs test/native-chat-context-identity.mjs test/native-whatsapp-contact.mjs test/whatsapp-native-bootstrap.mjs test/whatsapp-drawer-identity.mjs test/whatsapp-read-latest.mjs test/whatsapp-read-preparation.mjs test/whatsapp-chat-completion.mjs test/whatsapp-chat-restart.mjs test/chat-goal-lifecycle.mjs test/chat-completion.mjs test/chat-generic-dispatch.mjs test/completion-live-status-browser.mjs test/native-confirmation-visibility.mjs test/native-button-preparation.mjs test/read-continuation-browser.mjs test/iframe-preparation-focus.mjs test/contenteditable-literal.mjs test/native-chat-empty-editor.mjs test/native-chat-trusted-clear.mjs test/chat-steering-ui.mjs test/recipient-confirmation-ui.mjs test/assistant-message-visibility-ui.mjs test/page-monitor-ui.mjs test/x-compose-trusted-typing.mjs test/page-monitor-dialog.mjs test/page-monitor-dialog-native.mjs test/page-monitor-inline-post.mjs test/bluesky-composer-context.mjs test/page-monitor-anchored.mjs test/page-monitor-upload-owner.mjs test/page-monitor-upload-release.mjs test/page-monitor-native-controls.mjs test/page-monitor-native-preparation.mjs test/native-preparation-cold.mjs test/page-monitor-navigation.mjs test/page-monitor-main-owner.mjs test/page-monitor-collateral-controls.mjs test/accessibility-tree-scoped-budget.mjs test/ax-reference-origin.mjs test/page-monitor-decorative-hit.mjs test/social-ui-navigation.mjs test/native-resource-deletion-binding.mjs test/native-mastodon-confirmation.mjs test/dropdown-menu-inventory.mjs test/page-monitor-passive-progress.mjs test/page-monitor-feed-items.mjs test/media-download-binding.mjs test/media-download-capture-integration.mjs test/social-media-downloader-reinjection.mjs test/upload-file-local-state-guidance.mjs test/monitor-intervention-contract.mjs test/monitor-owned-geometry.mjs test/monitor-viewport-remainder.mjs test/monitor-scroll-churn.mjs test/monitor-local-attribution.mjs test/monitor-lifecycle-leaks.mjs test/lifecycle-run-ui.mjs test/lifecycle-menu-prompts-held.mjs test/delivery-cdp-input.mjs test/delivery-click-ax-response-loss.mjs test/delivery-native-button-geometry.mjs test/delivery-hover-transition.mjs test/delivery-dispatch-boundary.mjs test/delivery-stop-compound.mjs test/guards-control-classification.mjs test/guards-unbound-deletion.mjs test/submit-probe-readings.mjs test/improver-content-account-chrome.mjs test/improver-content-recipient.mjs test/improver-content-truncated-replacement.mjs test/improver-forms-probe.mjs test/improver-misc-trace-browser.mjs","test:shard:browser-b1": "node test/message-recipient-upload.mjs && node test/message-recipient-clarify-binding.mjs && node --test test/message-recipient-whatsapp.mjs test/message-control-readings.mjs && node test/quality/integration-mv3.mjs --full-form && node test/quality/integration-mv3.mjs --batch && node test/quality/literal-calculate-midrun-mv3.mjs && node test/quality/ask-completion-churn-mv3.mjs && node test/quality/ask-person-activity-mv3.mjs && node test/quality/telegram-cold-preparation-mv3.mjs && node test/quality/native-chat-mv3.mjs && node test/quality/native-chat-presubmit-mv3.mjs && node test/quality/cloud-bot-memory-mv3.mjs","test:shard:browser-b2": "node test/quality/whatsapp-contact-matrix.mjs && node test/quality/pdf-detection-mv3.mjs && node test/quality/download-upload-mv3.mjs && node test/quality/upload-release-binding-mv3.mjs && node test/quality/release-review-world-mv3.mjs && node test/quality/downloaded-file-saved-bytes-mv3.mjs && node test/quality/file-upload-accept-mv3.mjs && node test/quality/bulk-resume-mv3.mjs && node test/quality/shared-action-guards-mv3.mjs && node test/quality/video-upload-attachment-mv3.mjs",- "test:shard:browser-c": "node test/quality/literal-frame-mv3.mjs && node test/quality/mastodon-publication-mv3.mjs && node test/quality/mastodon-deletion-mv3.mjs && node test/quality/mastodon-delete-confirmation-mv3.mjs && node test/quality/mastodon-delete-confirmation-mv3.mjs --menu-read && node test/quality/mastodon-delete-confirmation-mv3.mjs --vague && node test/quality/unbound-deletion-mv3.mjs && node test/quality/recipient-clarify-mv3.mjs && node test/quality/open-chat-recipients-mv3.mjs && node test/quality/correction-cross-site-mv3.mjs && node test/quality/anchored-action-mv3.mjs && node test/quality/inline-social-composer-mv3.mjs && node test/quality/bluesky-composer-mv3.mjs && node test/quality/dropdown-menu-matrix.mjs && node test/quality/mastodon-deletion-navigation-mv3.mjs && node test/quality/semantic-navigation-matrix.mjs && node test/quality/workflow-replay-mv3.mjs && node test/quality/generative-media-mv3.mjs && node test/quality/cdp-worker-restart-mv3.mjs && node test/quality/steering-worker-restart-mv3.mjs",+ "test:shard:browser-c": "node test/quality/literal-frame-mv3.mjs && node test/quality/mastodon-publication-mv3.mjs && node test/quality/mastodon-deletion-mv3.mjs && node test/quality/mastodon-delete-confirmation-mv3.mjs && node test/quality/mastodon-delete-confirmation-mv3.mjs --menu-read && node test/quality/mastodon-delete-confirmation-mv3.mjs --vague && node test/quality/unbound-deletion-mv3.mjs && node test/quality/recipient-clarify-mv3.mjs && node test/quality/open-chat-recipients-mv3.mjs && node test/quality/correction-cross-site-mv3.mjs && node test/quality/anchored-action-mv3.mjs && node test/quality/inline-social-composer-mv3.mjs && node test/quality/x-compose-dialog-mv3.mjs && node test/quality/bluesky-composer-mv3.mjs && node test/quality/dropdown-menu-matrix.mjs && node test/quality/mastodon-deletion-navigation-mv3.mjs && node test/quality/semantic-navigation-matrix.mjs && node test/quality/workflow-replay-mv3.mjs && node test/quality/generative-media-mv3.mjs && node test/quality/cdp-worker-restart-mv3.mjs && node test/quality/steering-worker-restart-mv3.mjs","test:shard:tail": "node test/run.js && node test/selection-scope-restoration.mjs && node scripts/benchmark-offline-relevance.mjs && npm run test:security",- "test:composer-context": "node --test test/page-monitor-inline-post.mjs test/bluesky-composer-context.mjs && node test/quality/inline-social-composer-mv3.mjs && node test/quality/bluesky-composer-mv3.mjs",+ "test:composer-context": "node --test test/page-monitor-inline-post.mjs test/bluesky-composer-context.mjs && node test/quality/inline-social-composer-mv3.mjs && node test/quality/x-compose-dialog-mv3.mjs && node test/quality/bluesky-composer-mv3.mjs","test:bot-memory": "node --test test/bot-memory.mjs test/bot-memory-registries.mjs test/bot-memory-cloud-controller.mjs && node test/bot-memory-dom.mjs && node test/quality/cloud-bot-memory-mv3.mjs","test:shared-action-guards": "node --test test/typing-preparation-geometry.mjs test/resource-mutation-guards.mjs test/completion-steering-receipt-authority.mjs test/social-ui-navigation.mjs test/native-resource-deletion-binding.mjs test/native-mastodon-confirmation.mjs test/trusted-field-preparation-ownership.mjs test/guards-control-classification.mjs test/guards-unbound-deletion.mjs test/guards-steering-receipts.mjs && node test/quality/shared-action-guards-mv3.mjs"},diff --cc src/chrome/src/agent/page-feedback.jsindex fec5127b9,1b4278279..7e7fb64d1--- a/src/chrome/src/agent/page-feedback.js+++ b/src/chrome/src/agent/page-feedback.js@@@ -1168,12 -1206,20 +1211,24 @@@ export const pageFeedbackMethods =} catch { return false; }},+ // A typing call's own preparation probes its target before dispatch. A+ // target the certificate cannot bind at all is answered first and+ // precisely: a probe of an ambiguous selector could only pick one of its+ // elements. Anything else is left to the dispatch wrapper.+ async _pageFeedbackUnbindableResult(tabId, name, args = {}) {+ const run = this._pageFeedbackRuns?.get(tabId);+ if (!run || typeof args?.selector !== 'string' || !args.selector.trim() || !this.constructor.STATE_CHANGE_TOOLS?.has(name)+ || pageFeedbackCallPolicy(name, args, run.modelState, run.latestPage).kind !== 'bound_target') return null;+ if (await this._validatePageFeedbackAction(tabId, name, args, run.modelState, null, { answerOnly: true }) !== false) return null;+ return run.actionBindingUnavailable === `${name}:${JSON.stringify(args)}` ? actionBindingUnavailableResult(run) : null;+ },+_pageFeedbackBlocksCall(tabId, name, args = {}) {const run = this._pageFeedbackRuns?.get(tabId);+ if (name === 'scroll' && run?.modelState+ && (this._hasPendingSteering?.(tabId)+ || !this._pageFeedbackStateCurrent(tabId, run, run.modelState, run.url, { rootOnly: true })+ || (run.dispatchCall?.name === name && run.dispatchCall.modelState !== run.modelState))) return true;if (run?.dispatchCall?.expectedModelSnapshot&& (run.modelState !== run.dispatchCall.modelState|| !this._pageFeedbackStateCurrent(tabId, run, run.dispatchCall.modelState))) return true;diff --cc src/chrome/src/content/page-monitor.jsindex 941f04716,18ecb76f6..9377fe373--- a/src/chrome/src/content/page-monitor.js+++ b/src/chrome/src/content/page-monitor.js@@@ -2260,106 -2300,82 +2300,181 @@@function ownedPreparationPhase(op) {return op?.pointerPreparationOnly === true || op?.typingPreparationOnly === true || op?.selectorPreparationOnly === true;}+ // Scrolling is a relative view operation. Feed contents and uncertain DOM+ // attribution are not its authority: the current document, human ownership+ // and requested scroll pane are. Keep this proof separate from certificates+ // for clicks and input, which must still bind the observed page semantics.+ function scrollPaneFor(origin) {+ const documentScrollable = Math.max(document.body?.scrollHeight || 0, document.documentElement?.scrollHeight || 0,+ document.scrollingElement?.scrollHeight || 0) > window.innerHeight + 10;+ const skipOrigin = /^(INPUT|TEXTAREA|SELECT)$/.test(origin?.tagName || '') || origin?.isContentEditable;+ for (let node = skipOrigin ? bindingParent(origin) : origin; node && node !== document.body && node !== document.documentElement; node = bindingParent(node)) {+ const style = getComputedStyle(node);+ if (node.scrollHeight > node.clientHeight + 10 && (/^(auto|scroll|overlay)$/.test(style.overflowY)+ || (!documentScrollable && style.overflowY === 'hidden'))) return node;+ }+ return document.scrollingElement || document.documentElement;+ }+ // Match smartScrollPage's last resort when neither the origin's ancestors+ // nor the window can move. Capture that recipient before dispatch rather+ // than granting arbitrary containers permission to borrow the origin.+ function scrollFallbackPane(origin, direction) {+ const documentHeight = Math.max(document.body?.scrollHeight || 0, document.documentElement?.scrollHeight || 0,+ document.scrollingElement?.scrollHeight || 0);+ const allowHidden = documentHeight <= window.innerHeight + 10;+ const canMove = (position, maximum) => direction === 'down' || direction === 'bottom' ? position < maximum - 1+ : direction === 'up' || direction === 'top' ? position > 1 : false;+ const scrollable = node => {+ if (!node || node === document.body || node === document.documentElement+ || node.scrollHeight <= node.clientHeight + 10) return false;+ const overflow = getComputedStyle(node).overflowY;+ return (/^(auto|scroll|overlay)$/.test(overflow) || (allowHidden && overflow === 'hidden'))+ && canMove(node.scrollTop, Math.max(0, node.scrollHeight - node.clientHeight));+ };+ const skipOrigin = /^(INPUT|TEXTAREA|SELECT)$/.test(origin?.tagName || '') || origin?.isContentEditable;+ for (let node = skipOrigin ? origin.parentElement : origin; node && node !== document.body && node !== document.documentElement; node = node.parentElement) {+ if (scrollable(node)) return null;+ }+ if (canMove(window.scrollY, Math.max(0, documentHeight - window.innerHeight))) return null;+ let best = null, bestArea = 0;+ for (const node of document.querySelectorAll('div, section, main, article, aside, [role="main"], [role="dialog"], [role="region"], [role="listbox"], [role="menu"]')) {+ if (!scrollable(node)) continue;+ const rect = node.getBoundingClientRect();+ if (rect.width < 1 || rect.height < 1 || rect.bottom < 0 || rect.top > window.innerHeight || rect.right < 0 || rect.left > window.innerWidth) continue;+ const area = rect.width * rect.height;+ if (area > bestArea) { best = node; bestArea = area; }+ }+ return bestArea > window.innerWidth * window.innerHeight * 0.15 ? best : null;+ }+ function scrollPaneRectMatches(pane, before) {+ const current = rectFor(pane);+ return !!current && !!before && ['x', 'y', 'width', 'height'].every(key => Math.abs(current[key] - before[key]) <= 2);+ }+ function scrollPreparationBinding(params, target) {+ // A resolved ref wins over coordinates in the actual scroll handler.+ // Keep the supplied fallback fields only for matching the local request.+ const ref = params.ref_id && resolveTarget({ ref_id: params.ref_id }) === target ? params.ref_id : null;+ const point = !ref && Number.isFinite(params.x) && Number.isFinite(params.y) ? { x: params.x, y: params.y } : null;+ const explicit = !!(params.ref_id || params.selector || point);+ const pane = target ? scrollPaneFor(target) : null;+ const direction = params.direction || 'down';+ const fallbackPane = explicit && target ? scrollFallbackPane(target, direction) : null;+ const ancestors = new Set();+ for (let node = target; node; node = bindingParent(node)) ancestors.add(node);+ ancestors.add(document.scrollingElement || document.documentElement);+ return { root: document.documentElement, context: JSON.stringify([location.href, document.baseURI, currentViewport()]),+ request: { ref_id: params.ref_id, selector: params.selector, x: params.x, y: params.y },+ target, ref, explicit, point, pane, paneRect: rectFor(pane), ancestors,+ direction, alsoWindow: params.alsoWindow === true, fallbackPane, fallbackRect: rectFor(fallbackPane),+ invalid: explicit && (!(target instanceof Element) || !target.isConnected || target.ownerDocument !== document) };+ }+ function scrollPreparationMatches(op, params = {}) {+ const binding = op?.scrollIntent;+ if (!binding || binding.invalid || op.tool !== 'scroll' || (params.kind && params.kind !== 'scroll')+ || document.documentElement !== binding.root+ || binding.context !== JSON.stringify([location.href, document.baseURI, currentViewport()])) return false;+ if (binding.explicit) {+ if ((binding.ref || op.selector) && (!binding.target?.isConnected || binding.target.ownerDocument !== document)) return false;+ if (binding.ref && resolveTarget({ ref_id: binding.ref }) !== binding.target) return false;+ if ((binding.ref || op.selector) && binding.pane && binding.pane !== document.scrollingElement+ && binding.pane !== document.documentElement && !binding.pane.contains(binding.target)) return false;+ if (op.selector) {+ const query = queryOpenTargets(op.selector);+ if (!query.complete || query.elements.length !== 1 || query.elements[0] !== binding.target) return false;+ }+ if (binding.point) {+ const hit = deepElementFromPoint(binding.point.x, binding.point.y);+ if (!hit || scrollPaneFor(hit) !== binding.pane || !binding.pane?.isConnected) return false;+ // Recycled rows within the same pane are fine. Moving or replacing the+ // pane under an already prepared coordinate is a different recipient.+ if (!op.dispatched && binding.pane !== document.scrollingElement && binding.pane !== document.documentElement) {+ if (!scrollPaneRectMatches(binding.pane, binding.paneRect)) return false;+ }+ }+ if (binding.fallbackPane && (!binding.fallbackPane.isConnected+ || (!op.dispatched && scrollFallbackPane(binding.target, binding.direction) !== binding.fallbackPane)+ || !scrollPaneRectMatches(binding.fallbackPane, binding.fallbackRect))) return false;+ if (params.element && !binding.ancestors.has(params.element) && params.element !== binding.fallbackPane) return false;+ }+ return !params.element || (params.element instanceof Element && params.element.isConnected && params.element.ownerDocument === document);+ }+ const textEntryInputTypes = new Set(['text', 'search', 'email', 'url', 'tel', 'password', 'number']);+ function textEntryField(el) {+ if (!(el instanceof Element) || !el.isConnected || el.disabled === true || el.readOnly === true+ || el.closest('fieldset[disabled]') || ['aria-disabled', 'aria-readonly'].some(name => el.getAttribute(name) === 'true')) return false;+ if (el.tagName === 'TEXTAREA') return true;+ if (el.tagName === 'INPUT') return textEntryInputTypes.has(el.type);+ return el.isContentEditable === true;+ }+ // A certified typing action may press its own text field once, so that the+ // browser rather than a script focuses it, with trusted events (Chrome's+ // contenteditable fallback does so). Only one single left press whose+ // native receiver is exactly the certified field, before any other input of+ // the action, and its own release on that field qualify. Like hover or+ // scroll preparation it does not use up the certificate: what the page does+ // in reply is judged by the field's footprint, genuine user input still+ // stops the action, and the text needs its own dispatch.+ function typingFocusPhase(op, params) {+ if (!active || !op || op.finished || params.kind !== 'click' || params.fenceOnly === true+ || op.preparedBinding?.model !== true || op.preparedBinding.relaxed || op.allowPassiveRebase !== true+ || op.modelBindingInvalid || op.layoutInvalidated || op.coordinateSensitive+ || !keyboardTypingTools.has(op.modelBindingTool || op.tool)) return false;+ const field = op.preparedBinding.target;+ // Both halves of the press must reach the field itself. A page that draws+ // over the point on mousedown receives the mouseup, so that release is+ // the action's input to the page, not its preparation.+ const receiverIsField = typeof params.nativeTarget === 'string' && !!params.nativeTarget+ && resolveTarget({ nativeTarget: params.nativeTarget }) === field && textEntryField(field);+ if (params.release === true) {+ return op.typingFocusPress === true && op.typingPreparationOnly === true && !op.consequentialInputPending+ && params.x === op.x && params.y === op.y && receiverIsField;+ }+ // One press: a second press of the same action is consequential.+ if (op.consequentialInputPending || op.typingFocusPressed === true || params.pointerPreparationOnly === true+ || params.pointerButton !== 'left' || params.clickCount !== 1) return false;+ return receiverIsField;+ }+ // That press has not used the certificate. Reselecting the same field for+ // the text command still carries it (see beginContentAction).+ function ownedTypingFocus(op) {+ return op?.dispatched === true && !op.finished && op.typingFocusPress === true && op.typingPreparationOnly === true+ && !op.consequentialInputPending && op.preparedBinding?.model === true && !op.preparedBinding.relaxed;+ }+ // After that press, the action's remaining steps (restoring the selection,+ // the text command) are keyboard input to its field. Which node is on top+ // at the field's centre no longer matters to them: a page may draw a+ // formatting bubble right where the press landed, as X does. Every other+ // part of the field's footprint (field, owner, labels, values, visibility,+ // geometry, URL) must hold. Each step focuses the field itself, and the text+ // command still requires the focused node to be that field.+ const keyboardTypingTools = new Set(['type_ax', 'set_field', 'type_text', 'type']);+ // press_keys never presses a field, but its keys go to the focused one: a+ // field certified for keyboard use only (keyboardOnly) serves it as well.+ const keyboardInputTools = new Set([...keyboardTypingTools, 'press_keys']);+ function keyboardBoundField(op) {+ const field = op?.preparedBinding?.target;+ return op?.keyboardBound === true && op.preparedBinding?.model === true && !op.preparedBinding.relaxed+ && keyboardInputTools.has(op.modelBindingTool || op.tool) && textEntryField(field);+ }+ function sameKeyboardBinding(before, after, ownedGeometry = false) {+ if (!before?.model || !after?.model || before.relaxed || after.relaxed || before.target !== after.target) return false;+ return samePreparedBinding(before, { ...after, hit: before.hit,+ ...(ownedGeometry ? { context: withOriginalGeometry(before, after) } : {}) });+ }+ // modelDecisionPredicate for a keyboard-bound field: the field and every+ // semantic part of its footprint must hold, its centre hit is not compared.+ // When only geometry moved, the proof is rebased (keeping its original+ // hit), and exact checks apply from here on.+ function keyboardDecisionPredicate(binding, after) {+ const before = preparedBindingFor(binding);+ if (!sameKeyboardBinding(before, after, true)) {+ return (before && after && bindingPredicate(before, { ...after, hit: before.hit })) || 'semantic_binding_changed';+ }+ if (before.context !== after.context) rebaseOwnedGeometry(binding, { ...after, hit: before.hit });+ return '';+ }function preparedBindingChanged(op, { allowFocusRebind = false } = {}) {+ if (op?.scrollIntent) return authorityChanged(op) || !scrollPreparationMatches(op);if (op?.allowPassiveRebase === true && op.preparedBinding?.model === true && op.focusBound&& !allowFocusRebind && deepActiveElement() !== op.focusTarget) return true;return op?.allowPassiveRebase === true && !!op.preparedBinding@@@ -3302,8 -3314,9 +3424,10 @@@modelBindingInvalid: proofRequired && !certified,modelBindingReason: proofRequired && !certified ? bindingResult?.reason || 'semantic_binding_changed' : '',preparedTargetSignature: operationTarget ? signature(operationTarget) : undefined, kinds: new Set(),- preparedBinding: proofRequired ? certified : allowPassiveRebase && operationTarget ? preparedBinding(operationTarget) : null,+ scrollIntent,+ preparedBinding: proofRequired ? certified : !scrollIntent && allowPassiveRebase && operationTarget ? preparedBinding(operationTarget) : null,+ // A field certified for keyboard input only (see captureTarget).+ keyboardBound: inherited ? previous.keyboardBound === true : certified?.keyboardOnly === true,preparedInterventionRevision: interventionRevision, preparedUncertainRevision: uncertainRevision, localSynthetic: false,preparedPageContext: JSON.stringify([location.href, document.baseURI, currentViewport(), window.scrollX, window.scrollY]),coordinateSensitive, coordinateTarget, coordinateHit, coordinateTargetAtPoint,@@@ -3451,17 -3475,26 +3586,35 @@@|| (kindFor(action) === 'input' ? deepActiveElement() : null);const bindingTool = action === 'ax_prepare_field_for_trusted_type' && params.expectedModelSnapshot&& currentRelaxedGrant(params.relaxedMonitorGrantToken) ? 'set_field' : action;- const approved = [...operations.values()].reverse().find(op => op.allowPassiveRebase === true && !op.dispatched- && op.until >= Date.now()- && (action === 'scroll' && op.scrollIntent ? !op.finished- && ['ref_id', 'selector', 'x', 'y'].every(key => op.scrollIntent.request[key] === params[key])- && op.scrollIntent.direction === (params.direction || 'down')- && op.scrollIntent.alsoWindow === (params.alsoWindow === true)- : lastUserAt <= op.userAt && op.preparedBinding?.target === target && (op.preparedBinding.relaxed ? currentRelaxedGrant(op.preparedBinding.grantToken) && operationBindingMatches(op, target)- : !authorityChanged(op) && (op.preparedBinding.model === true- ? !modelDecisionPredicate(op.preparedBinding, operationBinding(op, target)) : operationBindingMatches(op, target)))));+ // A typing action's own focus press leaves its certificate with the+ // steps that follow it on that field: reselecting it for the text+ // command, or DraftJS's paste. They are keyboard-bound (see+ // keyboardBoundField), so the node on top at its centre does not matter.+ const approved = [...operations.values()].reverse().find(op => {++ // Preserve the original scroll recipient and intervention boundary for++ // the content handler's local preparation, independently of typing.++ if (action === 'scroll' && op.scrollIntent) {++ return op.allowPassiveRebase === true && !op.dispatched && !op.finished && op.until >= Date.now()++ && ['ref_id', 'selector', 'x', 'y'].every(key => op.scrollIntent.request[key] === params[key])++ && op.scrollIntent.direction === (params.direction || 'down')++ && op.scrollIntent.alsoWindow === (params.alsoWindow === true);++ }+ const focusPressed = op.dispatched && afterFocusPress && ownedTypingFocus(op);+ if (op.allowPassiveRebase !== true || (op.dispatched && !focusPressed) || op.preparedBinding?.target !== target+ || !(op.until >= Date.now()) || lastUserAt > op.userAt) return false;+ if (op.preparedBinding.relaxed) return currentRelaxedGrant(op.preparedBinding.grantToken) && operationBindingMatches(op, target);+ if (authorityChanged(op)) return false;+ if (op.preparedBinding.model !== true) return operationBindingMatches(op, target);+ // A keyboard-bound field's input steps are compared without its centre+ // hit (see keyboardBoundField); anything else as a model decision.+ if (kindFor(action) === 'input' && keyboardBoundField(op)) {+ return !keyboardDecisionPredicate(op.preparedBinding, operationBinding(op, target));+ }+ if (focusPressed) return false;+ return !modelDecisionPredicate(op.preparedBinding, actionFootprint(target, op.preparedBinding.readonlyPreparation));+ });prepare({ selector: params.selector, ref_id: params.ref_id, x: params.x, y: params.y,+ ...(action === 'scroll' ? { direction: params.direction, alsoWindow: params.alsoWindow } : {}),textMatch: action === 'click' ? params.text : undefined, tool: bindingTool, operationId, runToken,...(params.expectedModelSnapshot !== undefined || approved?.expectedModelSnapshot !== undefined? { expectedModelSnapshot: params.expectedModelSnapshot ?? approved.expectedModelSnapshot } : {}),diff --cc src/firefox/src/agent/page-feedback.jsindex fec5127b9,1b4278279..7e7fb64d1--- a/src/firefox/src/agent/page-feedback.js+++ b/src/firefox/src/agent/page-feedback.js@@@ -1168,12 -1206,20 +1211,24 @@@ export const pageFeedbackMethods =} catch { return false; }},+ // A typing call's own preparation probes its target before dispatch. A+ // target the certificate cannot bind at all is answered first and+ // precisely: a probe of an ambiguous selector could only pick one of its+ // elements. Anything else is left to the dispatch wrapper.+ async _pageFeedbackUnbindableResult(tabId, name, args = {}) {+ const run = this._pageFeedbackRuns?.get(tabId);+ if (!run || typeof args?.selector !== 'string' || !args.selector.trim() || !this.constructor.STATE_CHANGE_TOOLS?.has(name)+ || pageFeedbackCallPolicy(name, args, run.modelState, run.latestPage).kind !== 'bound_target') return null;+ if (await this._validatePageFeedbackAction(tabId, name, args, run.modelState, null, { answerOnly: true }) !== false) return null;+ return run.actionBindingUnavailable === `${name}:${JSON.stringify(args)}` ? actionBindingUnavailableResult(run) : null;+ },+_pageFeedbackBlocksCall(tabId, name, args = {}) {const run = this._pageFeedbackRuns?.get(tabId);+ if (name === 'scroll' && run?.modelState+ && (this._hasPendingSteering?.(tabId)+ || !this._pageFeedbackStateCurrent(tabId, run, run.modelState, run.url, { rootOnly: true })+ || (run.dispatchCall?.name === name && run.dispatchCall.modelState !== run.modelState))) return true;if (run?.dispatchCall?.expectedModelSnapshot&& (run.modelState !== run.dispatchCall.modelState|| !this._pageFeedbackStateCurrent(tabId, run, run.dispatchCall.modelState))) return true;diff --cc src/firefox/src/content/page-monitor.jsindex 941f04716,18ecb76f6..9377fe373--- a/src/firefox/src/content/page-monitor.js+++ b/src/firefox/src/content/page-monitor.js@@@ -2260,106 -2300,82 +2300,181 @@@function ownedPreparationPhase(op) {return op?.pointerPreparationOnly === true || op?.typingPreparationOnly === true || op?.selectorPreparationOnly === true;}+ // Scrolling is a relative view operation. Feed contents and uncertain DOM+ // attribution are not its authority: the current document, human ownership+ // and requested scroll pane are. Keep this proof separate from certificates+ // for clicks and input, which must still bind the observed page semantics.+ function scrollPaneFor(origin) {+ const documentScrollable = Math.max(document.body?.scrollHeight || 0, document.documentElement?.scrollHeight || 0,+ document.scrollingElement?.scrollHeight || 0) > window.innerHeight + 10;+ const skipOrigin = /^(INPUT|TEXTAREA|SELECT)$/.test(origin?.tagName || '') || origin?.isContentEditable;+ for (let node = skipOrigin ? bindingParent(origin) : origin; node && node !== document.body && node !== document.documentElement; node = bindingParent(node)) {+ const style = getComputedStyle(node);+ if (node.scrollHeight > node.clientHeight + 10 && (/^(auto|scroll|overlay)$/.test(style.overflowY)+ || (!documentScrollable && style.overflowY === 'hidden'))) return node;+ }+ return document.scrollingElement || document.documentElement;+ }+ // Match smartScrollPage's last resort when neither the origin's ancestors+ // nor the window can move. Capture that recipient before dispatch rather+ // than granting arbitrary containers permission to borrow the origin.+ function scrollFallbackPane(origin, direction) {+ const documentHeight = Math.max(document.body?.scrollHeight || 0, document.documentElement?.scrollHeight || 0,+ document.scrollingElement?.scrollHeight || 0);+ const allowHidden = documentHeight <= window.innerHeight + 10;+ const canMove = (position, maximum) => direction === 'down' || direction === 'bottom' ? position < maximum - 1+ : direction === 'up' || direction === 'top' ? position > 1 : false;+ const scrollable = node => {+ if (!node || node === document.body || node === document.documentElement+ || node.scrollHeight <= node.clientHeight + 10) return false;+ const overflow = getComputedStyle(node).overflowY;+ return (/^(auto|scroll|overlay)$/.test(overflow) || (allowHidden && overflow === 'hidden'))+ && canMove(node.scrollTop, Math.max(0, node.scrollHeight - node.clientHeight));+ };+ const skipOrigin = /^(INPUT|TEXTAREA|SELECT)$/.test(origin?.tagName || '') || origin?.isContentEditable;+ for (let node = skipOrigin ? origin.parentElement : origin; node && node !== document.body && node !== document.documentElement; node = node.parentElement) {+ if (scrollable(node)) return null;+ }+ if (canMove(window.scrollY, Math.max(0, documentHeight - window.innerHeight))) return null;+ let best = null, bestArea = 0;+ for (const node of document.querySelectorAll('div, section, main, article, aside, [role="main"], [role="dialog"], [role="region"], [role="listbox"], [role="menu"]')) {+ if (!scrollable(node)) continue;+ const rect = node.getBoundingClientRect();+ if (rect.width < 1 || rect.height < 1 || rect.bottom < 0 || rect.top > window.innerHeight || rect.right < 0 || rect.left > window.innerWidth) continue;+ const area = rect.width * rect.height;+ if (area > bestArea) { best = node; bestArea = area; }+ }+ return bestArea > window.innerWidth * window.innerHeight * 0.15 ? best : null;+ }+ function scrollPaneRectMatches(pane, before) {+ const current = rectFor(pane);+ return !!current && !!before && ['x', 'y', 'width', 'height'].every(key => Math.abs(current[key] - before[key]) <= 2);+ }+ function scrollPreparationBinding(params, target) {+ // A resolved ref wins over coordinates in the actual scroll handler.+ // Keep the supplied fallback fields only for matching the local request.+ const ref = params.ref_id && resolveTarget({ ref_id: params.ref_id }) === target ? params.ref_id : null;+ const point = !ref && Number.isFinite(params.x) && Number.isFinite(params.y) ? { x: params.x, y: params.y } : null;+ const explicit = !!(params.ref_id || params.selector || point);+ const pane = target ? scrollPaneFor(target) : null;+ const direction = params.direction || 'down';+ const fallbackPane = explicit && target ? scrollFallbackPane(target, direction) : null;+ const ancestors = new Set();+ for (let node = target; node; node = bindingParent(node)) ancestors.add(node);+ ancestors.add(document.scrollingElement || document.documentElement);+ return { root: document.documentElement, context: JSON.stringify([location.href, document.baseURI, currentViewport()]),+ request: { ref_id: params.ref_id, selector: params.selector, x: params.x, y: params.y },+ target, ref, explicit, point, pane, paneRect: rectFor(pane), ancestors,+ direction, alsoWindow: params.alsoWindow === true, fallbackPane, fallbackRect: rectFor(fallbackPane),+ invalid: explicit && (!(target instanceof Element) || !target.isConnected || target.ownerDocument !== document) };+ }+ function scrollPreparationMatches(op, params = {}) {+ const binding = op?.scrollIntent;+ if (!binding || binding.invalid || op.tool !== 'scroll' || (params.kind && params.kind !== 'scroll')+ || document.documentElement !== binding.root+ || binding.context !== JSON.stringify([location.href, document.baseURI, currentViewport()])) return false;+ if (binding.explicit) {+ if ((binding.ref || op.selector) && (!binding.target?.isConnected || binding.target.ownerDocument !== document)) return false;+ if (binding.ref && resolveTarget({ ref_id: binding.ref }) !== binding.target) return false;+ if ((binding.ref || op.selector) && binding.pane && binding.pane !== document.scrollingElement+ && binding.pane !== document.documentElement && !binding.pane.contains(binding.target)) return false;+ if (op.selector) {+ const query = queryOpenTargets(op.selector);+ if (!query.complete || query.elements.length !== 1 || query.elements[0] !== binding.target) return false;+ }+ if (binding.point) {+ const hit = deepElementFromPoint(binding.point.x, binding.point.y);+ if (!hit || scrollPaneFor(hit) !== binding.pane || !binding.pane?.isConnected) return false;+ // Recycled rows within the same pane are fine. Moving or replacing the+ // pane under an already prepared coordinate is a different recipient.+ if (!op.dispatched && binding.pane !== document.scrollingElement && binding.pane !== document.documentElement) {+ if (!scrollPaneRectMatches(binding.pane, binding.paneRect)) return false;+ }+ }+ if (binding.fallbackPane && (!binding.fallbackPane.isConnected+ || (!op.dispatched && scrollFallbackPane(binding.target, binding.direction) !== binding.fallbackPane)+ || !scrollPaneRectMatches(binding.fallbackPane, binding.fallbackRect))) return false;+ if (params.element && !binding.ancestors.has(params.element) && params.element !== binding.fallbackPane) return false;+ }+ return !params.element || (params.element instanceof Element && params.element.isConnected && params.element.ownerDocument === document);+ }+ const textEntryInputTypes = new Set(['text', 'search', 'email', 'url', 'tel', 'password', 'number']);+ function textEntryField(el) {+ if (!(el instanceof Element) || !el.isConnected || el.disabled === true || el.readOnly === true+ || el.closest('fieldset[disabled]') || ['aria-disabled', 'aria-readonly'].some(name => el.getAttribute(name) === 'true')) return false;+ if (el.tagName === 'TEXTAREA') return true;+ if (el.tagName === 'INPUT') return textEntryInputTypes.has(el.type);+ return el.isContentEditable === true;+ }+ // A certified typing action may press its own text field once, so that the+ // browser rather than a script focuses it, with trusted events (Chrome's+ // contenteditable fallback does so). Only one single left press whose+ // native receiver is exactly the certified field, before any other input of+ // the action, and its own release on that field qualify. Like hover or+ // scroll preparation it does not use up the certificate: what the page does+ // in reply is judged by the field's footprint, genuine user input still+ // stops the action, and the text needs its own dispatch.+ function typingFocusPhase(op, params) {+ if (!active || !op || op.finished || params.kind !== 'click' || params.fenceOnly === true+ || op.preparedBinding?.model !== true || op.preparedBinding.relaxed || op.allowPassiveRebase !== true+ || op.modelBindingInvalid || op.layoutInvalidated || op.coordinateSensitive+ || !keyboardTypingTools.has(op.modelBindingTool || op.tool)) return false;+ const field = op.preparedBinding.target;+ // Both halves of the press must reach the field itself. A page that draws+ // over the point on mousedown receives the mouseup, so that release is+ // the action's input to the page, not its preparation.+ const receiverIsField = typeof params.nativeTarget === 'string' && !!params.nativeTarget+ && resolveTarget({ nativeTarget: params.nativeTarget }) === field && textEntryField(field);+ if (params.release === true) {+ return op.typingFocusPress === true && op.typingPreparationOnly === true && !op.consequentialInputPending+ && params.x === op.x && params.y === op.y && receiverIsField;+ }+ // One press: a second press of the same action is consequential.+ if (op.consequentialInputPending || op.typingFocusPressed === true || params.pointerPreparationOnly === true+ || params.pointerButton !== 'left' || params.clickCount !== 1) return false;+ return receiverIsField;+ }+ // That press has not used the certificate. Reselecting the same field for+ // the text command still carries it (see beginContentAction).+ function ownedTypingFocus(op) {+ return op?.dispatched === true && !op.finished && op.typingFocusPress === true && op.typingPreparationOnly === true+ && !op.consequentialInputPending && op.preparedBinding?.model === true && !op.preparedBinding.relaxed;+ }+ // After that press, the action's remaining steps (restoring the selection,+ // the text command) are keyboard input to its field. Which node is on top+ // at the field's centre no longer matters to them: a page may draw a+ // formatting bubble right where the press landed, as X does. Every other+ // part of the field's footprint (field, owner, labels, values, visibility,+ // geometry, URL) must hold. Each step focuses the field itself, and the text+ // command still requires the focused node to be that field.+ const keyboardTypingTools = new Set(['type_ax', 'set_field', 'type_text', 'type']);+ // press_keys never presses a field, but its keys go to the focused one: a+ // field certified for keyboard use only (keyboardOnly) serves it as well.+ const keyboardInputTools = new Set([...keyboardTypingTools, 'press_keys']);+ function keyboardBoundField(op) {+ const field = op?.preparedBinding?.target;+ return op?.keyboardBound === true && op.preparedBinding?.model === true && !op.preparedBinding.relaxed+ && keyboardInputTools.has(op.modelBindingTool || op.tool) && textEntryField(field);+ }+ function sameKeyboardBinding(before, after, ownedGeometry = false) {+ if (!before?.model || !after?.model || before.relaxed || after.relaxed || before.target !== after.target) return false;+ return samePreparedBinding(before, { ...after, hit: before.hit,+ ...(ownedGeometry ? { context: withOriginalGeometry(before, after) } : {}) });+ }+ // modelDecisionPredicate for a keyboard-bound field: the field and every+ // semantic part of its footprint must hold, its centre hit is not compared.+ // When only geometry moved, the proof is rebased (keeping its original+ // hit), and exact checks apply from here on.+ function keyboardDecisionPredicate(binding, after) {+ const before = preparedBindingFor(binding);+ if (!sameKeyboardBinding(before, after, true)) {+ return (before && after && bindingPredicate(before, { ...after, hit: before.hit })) || 'semantic_binding_changed';+ }+ if (before.context !== after.context) rebaseOwnedGeometry(binding, { ...after, hit: before.hit });+ return '';+ }function preparedBindingChanged(op, { allowFocusRebind = false } = {}) {+ if (op?.scrollIntent) return authorityChanged(op) || !scrollPreparationMatches(op);if (op?.allowPassiveRebase === true && op.preparedBinding?.model === true && op.focusBound&& !allowFocusRebind && deepActiveElement() !== op.focusTarget) return true;return op?.allowPassiveRebase === true && !!op.preparedBinding@@@ -3302,8 -3314,9 +3424,10 @@@modelBindingInvalid: proofRequired && !certified,modelBindingReason: proofRequired && !certified ? bindingResult?.reason || 'semantic_binding_changed' : '',preparedTargetSignature: operationTarget ? signature(operationTarget) : undefined, kinds: new Set(),- preparedBinding: proofRequired ? certified : allowPassiveRebase && operationTarget ? preparedBinding(operationTarget) : null,+ scrollIntent,+ preparedBinding: proofRequired ? certified : !scrollIntent && allowPassiveRebase && operationTarget ? preparedBinding(operationTarget) : null,+ // A field certified for keyboard input only (see captureTarget).+ keyboardBound: inherited ? previous.keyboardBound === true : certified?.keyboardOnly === true,preparedInterventionRevision: interventionRevision, preparedUncertainRevision: uncertainRevision, localSynthetic: false,preparedPageContext: JSON.stringify([location.href, document.baseURI, currentViewport(), window.scrollX, window.scrollY]),coordinateSensitive, coordinateTarget, coordinateHit, coordinateTargetAtPoint,@@@ -3451,17 -3475,26 +3586,35 @@@|| (kindFor(action) === 'input' ? deepActiveElement() : null);const bindingTool = action === 'ax_prepare_field_for_trusted_type' && params.expectedModelSnapshot&& currentRelaxedGrant(params.relaxedMonitorGrantToken) ? 'set_field' : action;- const approved = [...operations.values()].reverse().find(op => op.allowPassiveRebase === true && !op.dispatched- && op.until >= Date.now()- && (action === 'scroll' && op.scrollIntent ? !op.finished- && ['ref_id', 'selector', 'x', 'y'].every(key => op.scrollIntent.request[key] === params[key])- && op.scrollIntent.direction === (params.direction || 'down')- && op.scrollIntent.alsoWindow === (params.alsoWindow === true)- : lastUserAt <= op.userAt && op.preparedBinding?.target === target && (op.preparedBinding.relaxed ? currentRelaxedGrant(op.preparedBinding.grantToken) && operationBindingMatches(op, target)- : !authorityChanged(op) && (op.preparedBinding.model === true- ? !modelDecisionPredicate(op.preparedBinding, operationBinding(op, target)) : operationBindingMatches(op, target)))));+ // A typing action's own focus press leaves its certificate with the+ // steps that follow it on that field: reselecting it for the text+ // command, or DraftJS's paste. They are keyboard-bound (see+ // keyboardBoundField), so the node on top at its centre does not matter.+ const approved = [...operations.values()].reverse().find(op => {++ // Preserve the original scroll recipient and intervention boundary for++ // the content handler's local preparation, independently of typing.++ if (action === 'scroll' && op.scrollIntent) {++ return op.allowPassiveRebase === true && !op.dispatched && !op.finished && op.until >= Date.now()++ && ['ref_id', 'selector', 'x', 'y'].every(key => op.scrollIntent.request[key] === params[key])++ && op.scrollIntent.direction === (params.direction || 'down')++ && op.scrollIntent.alsoWindow === (params.alsoWindow === true);++ }+ const focusPressed = op.dispatched && afterFocusPress && ownedTypingFocus(op);+ if (op.allowPassiveRebase !== true || (op.dispatched && !focusPressed) || op.preparedBinding?.target !== target+ || !(op.until >= Date.now()) || lastUserAt > op.userAt) return false;+ if (op.preparedBinding.relaxed) return currentRelaxedGrant(op.preparedBinding.grantToken) && operationBindingMatches(op, target);+ if (authorityChanged(op)) return false;+ if (op.preparedBinding.model !== true) return operationBindingMatches(op, target);+ // A keyboard-bound field's input steps are compared without its centre+ // hit (see keyboardBoundField); anything else as a model decision.+ if (kindFor(action) === 'input' && keyboardBoundField(op)) {+ return !keyboardDecisionPredicate(op.preparedBinding, operationBinding(op, target));+ }+ if (focusPressed) return false;+ return !modelDecisionPredicate(op.preparedBinding, actionFootprint(target, op.preparedBinding.readonlyPreparation));+ });prepare({ selector: params.selector, ref_id: params.ref_id, x: params.x, y: params.y,+ ...(action === 'scroll' ? { direction: params.direction, alsoWindow: params.alsoWindow } : {}),textMatch: action === 'click' ? params.text : undefined, tool: bindingTool, operationId, runToken,...(params.expectedModelSnapshot !== undefined || approved?.expectedModelSnapshot !== undefined? { expectedModelSnapshot: params.expectedModelSnapshot ?? approved.expectedModelSnapshot } : {}),