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
Ask the user when a guard cannot verify a step, instead of refusing
Barack Sokullufb213934f041
diff --git a/docs/guards.md b/docs/guards.mdindex eaf4ac1ba..084a715d5 100644--- a/docs/guards.md+++ b/docs/guards.md@@ -53,8 +53,8 @@ the action is wrong (`onDecided`) and when it cannot tell (`onCannotDecide`):proven only before the commit, it is still refused, and the commit takesa separate click.- A quality guard whose `onCannotDecide` is `ask` asks the user when it- cannot verify a consequential step, such as a commit or a post. Where- that guard has no card, it refuses.+ cannot verify a consequential step, such as a commit or a post (see+ "Asking instead of refusing"). Where that guard has no card, it refuses.- **Not guards.** These keep their behavior: the user's own permissions,modes and budgets (`permission_gate`); same-site, frame and task-authorityboundaries, CAPTCHA and access walls, and a person acting in the same tab@@ -68,6 +68,48 @@ the action is wrong (`onDecided`) and when it cannot tell (`onCannotDecide`):- **Unregistered ids** keep blocking, so a refusal that was never registeredis not silently relaxed.+## Asking instead of refusing++When a guard cannot verify a consequential step and its `onCannotDecide` is+`ask`, WebBrain asks the user on its own card instead of refusing.++- **The card.** A question ("Commit this on github.com?"), why the step could+ not be verified, and what the page shows now: the editor or composer text,+ plain text, at most about 1,500 characters. That text is page content: the+ side panel renders it with `textContent` only, and it never reaches the+ model. When there is nothing to show, the card says to check the page.+- **Answers.** Two fixed values, "Go ahead" (`once`) and "Don't" (`deny`). An+ answer covers this one step and the content the user saw: changed content+ is asked about again, and a declined step with the same content is not.+- **Timeout.** A quality guard's card follows Settings → General: the clarify+ timeout (Off waits, Instant answers at once) and "When a question times+ out" (`finish` goes ahead, `safe` does not). A hard-class card never times+ out and never goes ahead on its own, like the recipient and deletion cards.+- **Unattended scheduled runs** cannot show a card: a quality guard follows+ the timeout policy at once, a hard-class guard refuses.+- **Authority.** A timeout, Instant or unattended answer is WebBrain's, not the+ user's: it is never recorded as task authority or memory.+- **Strict checks.** Quality guards keep their refusal and show no card.+ Hard-class asks apply in both modes, because they replace a dead end with+ the user's explicit decision.+- **After `once`.** The tool result carries a note for the model. A commit or+ post made this way is marked `publishesUnverifiedContent: true` on its submit+ receipt; the checks after the submit (GitHub's committed raw-file check, the+ published-post check) stay the authority.++| Guard | Asks when | The card shows |+|---|---|---|+| `github-commit-evidence-binding` | The file editor was replaced but could not be read back exactly (CodeMirror), and path, branch and commit message bind | The editor's text |+| `github-commit-split-write-required` | A script, Enter or `set_field` submit that may or may not commit, when a commit click would be allowed | The editor's text |+| `social-publication-draft-quality` | The X/Bluesky draft's body or media does not read back as requested, or the composer could not be read, when the user asked to publish (the publication audit still runs) | The composer's text |+| `steer-prior-submission-target-unresolved` | After a correction, a submit-capable control the probe could not identify | Nothing (check the page) |+| `clickax-task-click-lock` (hard, Chrome) | An earlier trusted click on the same target may have landed and was never verified | Nothing (check the page) |++Code: `_promptUnverifiedStepConfirmation` and `_resolveUnverifiedStepConfirmation`+in `agent.js`, `agent/unverified-step.js` (shared by the agent, scheduler+persistence and restored cards), and the `unverifiedStepConfirmation` branch+of `renderClarifyCard` in `ui/sidepanel.js`. Tests: `test/guard-ask-cards.mjs`.+## What still refuses, and why| Class | Guards | Why |diff --git a/package.json b/package.jsonindex 5f26bb228..051099630 100644--- a/package.json+++ b/package.json@@ -63,7 +63,7 @@"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/guard-advisory-writes.mjs test/trusted-field-preparation.mjs test/draftjs-text.mjs test/codemirror-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/clarify-timeout-policy.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/guard-advisory-actions.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/guard-advisory-completion.mjs test/guard-policy.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-reply-route-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: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/guard-advisory-writes.mjs test/trusted-field-preparation.mjs test/draftjs-text.mjs test/codemirror-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/clarify-timeout-policy.mjs test/guard-ask-cards.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/guard-advisory-actions.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/guard-advisory-completion.mjs test/guard-policy.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-reply-route-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/guard-advisory-writes.mjs test/draftjs-text.mjs test/codemirror-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/guard-advisory-actions.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-native-button-route.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",@@ -97,7 +97,7 @@"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/guard-policy.mjs 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/guard-advisory-writes.mjs test/trusted-field-preparation.mjs test/draftjs-text.mjs test/codemirror-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/clarify-timeout-policy.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/guard-advisory-actions.mjs test/rich-text-preflight-page-change.mjs test/keyboard-receiver-frame.mjs test/ask-response-scope.mjs test/auto-mode.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/guard-advisory-completion.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: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/guard-advisory-writes.mjs test/trusted-field-preparation.mjs test/draftjs-text.mjs test/codemirror-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/clarify-timeout-policy.mjs test/guard-ask-cards.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/guard-advisory-actions.mjs test/rich-text-preflight-page-change.mjs test/keyboard-receiver-frame.mjs test/ask-response-scope.mjs test/auto-mode.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/guard-advisory-completion.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-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-native-button-route.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/upload-release-binding-mv3.mjs --selector-recovery && node test/quality/upload-release-binding-mv3.mjs --sequential-assets && 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",diff --git a/src/chrome/src/agent/agent.js b/src/chrome/src/agent/agent.jsindex 775b0f6f3..99eb0e3f5 100644--- a/src/chrome/src/agent/agent.js+++ b/src/chrome/src/agent/agent.js@@ -165,6 +165,7 @@ import { extractFirstJsonObject } from './json-extract.js';import { repairAssistantDisplayText, repairClarifyText, sanitizeText as sanitizePlannerText } from './text-sanitize.js';import { clarifyQuestionIsHard, clarifyTimedAnswer, clarifyTimeoutChoice, normalizeClarifyConsequence, normalizeClarifyTimeoutPolicy } from './clarify-timeout.js';import { guardAdvisory, guardEntry, guardOutcome, withGuardAdvisories } from './guard-policy.js';+import { UNVERIFIED_STEP_CONTENT_LIMIT, UNVERIFIED_STEP_PROMPT_KIND, clipUnverifiedStepContent, normalizeUnverifiedStepConfirmation } from './unverified-step.js';import { emptyOutputFailureMessage, modelOutputDiagnostics } from './model-output-diagnostics.js';import { stepLimitUserMessage, terminalGuardUserMessage } from './terminal-messages.js';import { buildCustomSkillsPrompt, buildSkillLoaderDefinition, buildSkillToolDefinitions, buildSkillToolRegistry, getEligibleCustomSkills, getEligibleSkillCatalog, normalizeCustomSkills } from './skills.js';@@ -2432,6 +2433,13 @@ export class Agent extends LoopDetector {mastodonPublication: !explicitlyNotDispatched && dispatchMayHaveOccurred && !result?.formValidationFailed? currentPublication : null,workflowBinding,+ // The user (or the timeout policy) let this go ahead on WebBrain's card+ // although its content could not be verified; the post-submit checks,+ // such as GitHub's committed raw-file check, stay the authority.+ ...(executionContext?.publishesUnverifiedContent === true+ || workflowBinding?.githubFileCommit?.publishesUnverifiedContent === true+ || workflowBinding?.socialPublication?.publishesUnverifiedContent === true+ ? { publishesUnverifiedContent: true } : {}),};if (social && workflowBinding?.socialPublication?.contractKey === social.key) {social.outcomes[workflowBinding.socialPublication.actionId] = {@@ -2850,36 +2858,10 @@ export class Agent extends LoopDetector {};}- _workflowSubmitBindingForAttempt(tabId, pageUrl = '', executionContext = {}, detectedSubmit = null) {- const guard = this._planExecutionGuards.get(tabId);- const siteWorkflow = guard?.siteWorkflow;- if (!guard?.enabled || siteWorkflow?.job?.requiresSubmission !== true || !pageUrl) return null;- if (siteWorkflow.job.template === 'publish' && SOCIAL_PLATFORMS.includes(siteWorkflow.adapterName) && !guard.socialPublication?.dispatch) return null;- const live = resolveAdapterWorkflowJob(pageUrl, siteWorkflow.job.id);- if (!this._sameAdapterWorkflowBinding(siteWorkflow, live)) return null;- const recipientTarget = normalizeMessageTarget(guard.messaging);- const messageBody = this._workflowMessageBody(executionContext?.messageRecipientBody);- const messageBodyBaselineCount = Number(executionContext?.messageRecipientBodyBaselineCount);- const recipientBound = executionContext?.messageRecipientGuardRequired === true- && !!executionContext?.messageRecipientDispatchBinding?.token- && !!messageBody- && Object.prototype.hasOwnProperty.call(executionContext, 'messageRecipientBodyBaselineCount')- && Number.isInteger(messageBodyBaselineCount)- && messageBodyBaselineCount >= 0- && recipientTarget?.target_kind === 'named';- const metadataDetails = this._workflowJobStoresMetadataRequirements(siteWorkflow)- ? this._normalizeWorkflowMetadataRequirementsDetails(guard.workflowMetadataRequirements)- : { items: [], incomplete: false };- const metadataRequirements = metadataDetails.items;- const authoredMetadata = siteWorkflow.job.id === 'update-metadata'- ? this._workflowAuthoredMetadataForSubmit(tabId, pageUrl, siteWorkflow)- : null;- // Requested fields that were never resolved are not absent fields. A job- // whose contract binds them cannot verify anything until they are.- const metadataIncomplete = guard.workflowMetadataRequirementsIncomplete === true- || metadataDetails.incomplete === true- || (this._workflowJobStoresMetadataRequirements(siteWorkflow)- && guard.workflowMetadataRequirementsResolved !== true);+ // The evidence a GitHub file commit binds to: the task's verified+ // replacement proofs of the file editor, the edit scope (repository,+ // branch, path) and whether the requested commit message is proven.+ _githubFileCommitEvidence(tabId, pageUrl, siteWorkflow, metadataRequirements = []) {const replacementRecords = this._verifiedTextReplacements.get(tabId);const replacementRecordValues = [...(replacementRecords instanceof Map? replacementRecords.values()@@ -2965,14 +2947,126 @@ export class Agent extends LoopDetector {)));const commitMessageVerified = !commitMessageRequirement|| (composableMessage && summaryVerified && bodyVerified);+ return { editorProofs: githubEditorReplacements, verifiedReplacement, scope: githubEditScope, commitMessageVerified };+ }++ // The newest write in this task that replaced the whole GitHub file editor+ // on this page and went out, but could not be read back exactly (PR B's+ // unverified-write record: hashes and identity, no raw text). `target`+ // re-reads the same editor; `stepKey` names this exact write.+ _githubUnverifiedEditorCandidate(tabId, pageUrl) {+ const workflow = this._planExecutionGuards.get(tabId)?.siteWorkflow;+ if (workflow?.adapterName !== 'github' || workflow?.job?.id !== 'edit-file-and-commit' || !pageUrl) return null;+ const record = this._unverifiedTextWriteRecord(tabId, { pageUrl,+ match: item => item.textSent === true && item.replacesValue === true && this._isGithubFileEditorRecord(item) });+ if (!record?.expectedSha256 || !Number.isInteger(record.expectedLength)) return null;+ const target = record.locatorType === 'ax' && typeof record.refId === 'string' && record.refId+ ? { locatorType: 'ax', refId: record.refId, ambiguous: false }+ : record.locatorType === 'selector' && typeof record.selector === 'string' && record.selector+ ? { locatorType: 'selector', selector: record.selector, ambiguous: false }+ : typeof record.refreshSelector === 'string' && record.refreshSelector+ ? { locatorType: 'selector', selector: record.refreshSelector, ambiguous: false }+ : null;+ const stepKey = this._sha256TextSync(JSON.stringify(['github-commit-evidence-binding', record.key,+ this._normalizeUrl(record.pageUrl || pageUrl), record.expectedLength, record.expectedSha256, record.recordedAt]));+ return { record, target, stepKey };+ }++ // The user's 'once' for committing the unverified editor write that is+ // still the latest one on this page, or null.+ _approvedGithubUnverifiedEditor(tabId, pageUrl) {+ const candidate = this._githubUnverifiedEditorCandidate(tabId, pageUrl);+ const approval = candidate && this._unverifiedStepApproval(tabId, 'github-commit-evidence-binding', candidate.stepKey);+ return approval ? { record: candidate.record, approval } : null;+ }++ // Before each commit attempt (with the proof refresh): the answer covers+ // the editor text the user was shown. Once the editor reads differently,+ // or no longer reads as the file editor, the answer no longer covers it+ // and the commit asks again.+ async _refreshGithubUnverifiedEditorApproval(tabId, pageUrl) {+ const candidate = this._githubUnverifiedEditorCandidate(tabId, pageUrl);+ const approval = candidate && this._unverifiedStepApproval(tabId, 'github-commit-evidence-binding', candidate.stepKey);+ if (!approval) return;+ let live = null;+ try { live = candidate.target ? await this._textMutationValueDigest(tabId, candidate.target) : null; } catch { live = null; }+ if (!live || !this._isGithubFileEditorRecord({ fieldMeta: live.fieldMeta })+ || live.valueSha256 !== approval.contentSha256 || live.valueLength !== approval.contentLength) {+ approval.stale = true;+ }+ }++ // github-commit-evidence-binding (quality) cannot decide when the only+ // missing piece is the exact editor proof: the editor text went out as a+ // full replacement but its readback could not verify it (CodeMirror reads+ // back rendered text), while the path, branch and commit message bind. It+ // then asks the user on WebBrain's card, showing the editor's text, instead+ // of refusing every commit. A missing write, an unresolved path or branch,+ // missing metadata, conflicting editor proofs, an unproven commit message+ // or an editor that cannot be read now keep the refusal; so do Strict checks.+ _githubCommitEvidenceAsk(tabId, pageUrl, binding) {+ if (this._guardOutcome('github-commit-evidence-binding', { decided: false }) !== 'ask') return null;+ if (!binding || binding.metadataRequirementsIncomplete === true || binding.githubFileCommit) return null;+ const workflow = this._planExecutionGuards.get(tabId)?.siteWorkflow;+ const requirements = Array.isArray(binding.metadataRequirements) ? binding.metadataRequirements : [];+ const evidence = this._githubFileCommitEvidence(tabId, pageUrl, workflow, requirements);+ if (!evidence.scope?.repository || !evidence.scope.branch || !evidence.scope.path+ || evidence.editorProofs.length > 0 || evidence.commitMessageVerified !== true) return null;+ const candidate = this._githubUnverifiedEditorCandidate(tabId, pageUrl);+ if (!candidate?.target) return null;+ return { guardId: 'github-commit-evidence-binding', hard: false, action: 'commit', reason: 'editor_unverified',+ host: normalizeHost(pageUrl) || 'github.com', contentLabel: 'editor', target: candidate.target,+ expectKind: 'github-editor', requireContent: true, stepKey: candidate.stepKey };+ }++ _workflowSubmitBindingForAttempt(tabId, pageUrl = '', executionContext = {}, detectedSubmit = null) {+ const guard = this._planExecutionGuards.get(tabId);+ const siteWorkflow = guard?.siteWorkflow;+ if (!guard?.enabled || siteWorkflow?.job?.requiresSubmission !== true || !pageUrl) return null;+ if (siteWorkflow.job.template === 'publish' && SOCIAL_PLATFORMS.includes(siteWorkflow.adapterName) && !guard.socialPublication?.dispatch) return null;+ const live = resolveAdapterWorkflowJob(pageUrl, siteWorkflow.job.id);+ if (!this._sameAdapterWorkflowBinding(siteWorkflow, live)) return null;+ const recipientTarget = normalizeMessageTarget(guard.messaging);+ const messageBody = this._workflowMessageBody(executionContext?.messageRecipientBody);+ const messageBodyBaselineCount = Number(executionContext?.messageRecipientBodyBaselineCount);+ const recipientBound = executionContext?.messageRecipientGuardRequired === true+ && !!executionContext?.messageRecipientDispatchBinding?.token+ && !!messageBody+ && Object.prototype.hasOwnProperty.call(executionContext, 'messageRecipientBodyBaselineCount')+ && Number.isInteger(messageBodyBaselineCount)+ && messageBodyBaselineCount >= 0+ && recipientTarget?.target_kind === 'named';+ const metadataDetails = this._workflowJobStoresMetadataRequirements(siteWorkflow)+ ? this._normalizeWorkflowMetadataRequirementsDetails(guard.workflowMetadataRequirements)+ : { items: [], incomplete: false };+ const metadataRequirements = metadataDetails.items;+ const authoredMetadata = siteWorkflow.job.id === 'update-metadata'+ ? this._workflowAuthoredMetadataForSubmit(tabId, pageUrl, siteWorkflow)+ : null;+ // Requested fields that were never resolved are not absent fields. A job+ // whose contract binds them cannot verify anything until they are.+ const metadataIncomplete = guard.workflowMetadataRequirementsIncomplete === true+ || metadataDetails.incomplete === true+ || (this._workflowJobStoresMetadataRequirements(siteWorkflow)+ && guard.workflowMetadataRequirementsResolved !== true);+ const githubEvidence = this._githubFileCommitEvidence(tabId, pageUrl, siteWorkflow, metadataRequirements);+ const { scope: githubEditScope, verifiedReplacement, commitMessageVerified } = githubEvidence;+ // The user's answer on WebBrain's card (github-commit-evidence-binding+ // asks when it cannot decide) stands in for the exact editor proof that+ // the editor's readback could not give: only when no verified editor+ // proof exists at all (conflicting proofs stay shut), and only for the+ // editor text the user was shown (_refreshGithubUnverifiedEditorApproval).+ const approvedUnverifiedEditor = !verifiedReplacement && githubEvidence.editorProofs.length === 0 && githubEditScope+ ? this._approvedGithubUnverifiedEditor(tabId, pageUrl) : null;+ const editorEvidence = verifiedReplacement || approvedUnverifiedEditor?.record || null;const githubFileCommit = !metadataIncomplete&& githubEditScope- && verifiedReplacement+ && editorEvidence&& commitMessageVerified? {...githubEditScope,- expectedLength: verifiedReplacement.expectedLength,- expectedSha256: verifiedReplacement.expectedSha256,+ expectedLength: editorEvidence.expectedLength,+ expectedSha256: editorEvidence.expectedSha256,commitMessageVerified,// Chromium's contenteditable readback deterministically expands// newline runs (see _contentEditableValueMatches), so a verified@@ -2980,8 +3074,13 @@ export class Agent extends LoopDetector {// here would permanently block every newline-terminated file;// record which notion of exactness authorized the binding instead.// The byte-exact raw-blob check after the commit stays fail-closed.- readbackByteExact: verifiedReplacement.readbackLength === verifiedReplacement.expectedLength+ readbackByteExact: !!verifiedReplacement+ && verifiedReplacement.readbackLength === verifiedReplacement.expectedLength&& verifiedReplacement.readbackSha256 === verifiedReplacement.expectedSha256,+ // The expected hash is still that of the requested text, so the+ // raw-blob check after the commit verifies the committed bytes.+ ...(approvedUnverifiedEditor ? { editorReadbackVerified: false, publishesUnverifiedContent: true,+ unverifiedApprovalSource: approvedUnverifiedEditor.approval.source } : {}),}: null;const verificationKind = this._workflowVerificationKind(siteWorkflow);@@ -3213,8 +3312,8 @@ export class Agent extends LoopDetector {// requested commit message is proven only before the commit// (commitMessageVerified), and this action could rewrite it while it// commits, so while the request names one the action keeps refusing.- // An inconclusive detection is the cannot-decide case and keeps refusing,- // and so does a missing binding (github-commit-evidence-binding).+ // An inconclusive detection is the cannot-decide case: it asks the user+ // (below). A missing binding keeps refusing (github-commit-evidence-binding).if (name !== 'click' && name !== 'click_ax' && name !== 'iframe_click') {if (looksLikeSubmit && this._guardAdvises('github-commit-split-write-required')) {const pageUrl = await this._currentUrl(tabId);@@ -3230,7 +3329,7 @@ export class Agent extends LoopDetector {return null;}}- return {+ const splitWriteRefusal = {success: false,dispatched: false,noDispatch: true,@@ -3243,12 +3342,32 @@ export class Agent extends LoopDetector {? 'Arbitrary page JavaScript may change the editor or commit message, voiding previously verified proofs. Re-verify the complete values with field reads, then activate the commit control with a separate click; do not bundle mutation and submission.': 'This action can change field values in the same dispatch as submission, so it cannot use previously verified proofs. Write the field with a non-submit call first, verify the complete value, then activate the commit control with a separate click.',};+ // The inconclusive case: WebBrain cannot tell whether this action+ // commits at all. When a commit click would be allowed now (the file+ // and message binding is in place, verified or approved by the user),+ // the user decides on WebBrain's card, which shows the editor's text.+ // One answer covers this one action (_unverifiedStepApproval consume).+ if (inconclusiveSubmitCapable+ && this._guardOutcome('github-commit-split-write-required', { decided: false }) === 'ask') {+ const pageUrl = await this._currentUrl(tabId);+ await this._refreshGithubTextReplacementProofs(tabId, pageUrl);+ const binding = this._workflowSubmitBindingForAttempt(tabId, pageUrl, {}, detectedSubmit);+ if (binding?.metadataRequirementsIncomplete !== true && binding?.githubFileCommit) {+ const stepKey = this._sha256TextSync(JSON.stringify(['github-commit-split-write-required',+ this._normalizeUrl(pageUrl), this._formValidationActionKey(name, args) || name, this._taskTokens.get(tabId) || '']));+ if (this._unverifiedStepApproval(tabId, 'github-commit-split-write-required', stepKey, { consume: true })) return null;+ return { ...splitWriteRefusal, unverifiedStepConfirmation: { guardId: 'github-commit-split-write-required',+ hard: false, action: 'commit', reason: 'submit_unclear', host: normalizeHost(pageUrl) || 'github.com',+ contentLabel: 'editor', target: this._githubEditorReadTarget(tabId, pageUrl), expectKind: 'github-editor', stepKey } };+ }+ }+ return splitWriteRefusal;}const pageUrl = await this._currentUrl(tabId);await this._refreshGithubTextReplacementProofs(tabId, pageUrl);const binding = this._workflowSubmitBindingForAttempt(tabId, pageUrl, {}, detectedSubmit);if (binding?.metadataRequirementsIncomplete !== true && binding?.githubFileCommit) return null;- return {+ const refusal = {success: false,dispatched: false,noDispatch: true,@@ -3259,6 +3378,27 @@ export class Agent extends LoopDetector {...(inconclusiveSubmitCapable ? { inconclusiveSubmitDetection: true } : {}),error: 'Commit submission is blocked because the complete GitHub file-editor replacement, requested commit message, path, or branch is not bound to exact pre-submit evidence. Resolve any uncertain text write with exact readback or reload and restore the editor, then verify the complete file and requested commit message before committing.',};+ const ask = this._githubCommitEvidenceAsk(tabId, pageUrl, binding);+ return ask ? { ...refusal, unverifiedStepConfirmation: ask } : refusal;+ }++ // Where the file editor can be read now for the card: the verified proof's+ // own locator, else the unverified write's.+ _githubEditorReadTarget(tabId, pageUrl) {+ const workflow = this._planExecutionGuards.get(tabId)?.siteWorkflow;+ const proof = this._githubFileCommitEvidence(tabId, pageUrl, workflow, []).verifiedReplacement;+ if (proof) {+ if (proof.focusedProof === true) {+ return typeof proof.refreshSelector === 'string' && proof.refreshSelector+ ? { locatorType: 'selector', selector: proof.refreshSelector, ambiguous: false } : null;+ }+ if (proof.locatorType === 'ax' && typeof proof.refId === 'string') return { locatorType: 'ax', refId: proof.refId, ambiguous: false };+ if (proof.locatorType === 'selector' && typeof proof.selector === 'string') {+ return { locatorType: 'selector', selector: proof.selector, ambiguous: false };+ }+ return null;+ }+ return this._githubUnverifiedEditorCandidate(tabId, pageUrl)?.target || null;}_workflowTerminalText(value) {@@ -6264,7 +6404,21 @@ export class Agent extends LoopDetector {// An unidentified target says nothing about the earlier effect; report// what is actually missing instead of an unreconciled submission.const unresolvedTarget = detectedSubmit?.isSubmit !== true && !isNetworkMutation(name, args) && name !== 'chrome_web_store_publish';+ // steer-prior-submission-target-unresolved (quality) cannot decide: the+ // probe could not identify this control, so it may or may not repeat the+ // earlier submission. The user decides on WebBrain's card instead of a+ // refusal, and one answer covers this one action. Strict checks refuse.+ const stepKey = unresolvedTarget+ && this._guardOutcome('steer-prior-submission-target-unresolved', { decided: false }) === 'ask'+ ? this._sha256TextSync(JSON.stringify(['steer-prior-submission-target-unresolved', guard.taskKey || '',+ Number(guard.steeringPriorSubmission?.actionSequence || 0), name, this._formValidationActionKey(name, args) || name,+ detectedSubmit?.frameDocumentIdentity || this._lastAxScopes.get(tabId)?.documentToken || '']))+ : '';+ if (stepKey && this._unverifiedStepApproval(tabId, 'steer-prior-submission-target-unresolved', stepKey, { consume: true })) return null;return {+ ...(stepKey ? { unverifiedStepConfirmation: { guardId: 'steer-prior-submission-target-unresolved', hard: false,+ action: ['click', 'click_ax', 'iframe_click'].includes(name) ? 'click' : 'submit', reason: 'target_unresolved',+ host: normalizeHost(detectedSubmit?.url || this._lastAxScopes.get(tabId)?.pageUrl || ''), contentLabel: 'page', stepKey } } : {}),success: false, blocked: true, noDispatch: true, dispatched: false,steeringPriorSubmission: true,actionGuard: { stage: 'steering', reason: unresolvedTarget ? 'target_unresolved'@@ -7236,6 +7390,9 @@ export class Agent extends LoopDetector {if (data.mutationConfirmation) {display.mutationConfirmation = record(data.mutationConfirmation, ['kind', 'reason', 'host', 'item', 'url', 'dialog'], 600);}+ if (data.unverifiedStepConfirmation) {+ display.unverifiedStepConfirmation = normalizeUnverifiedStepConfirmation(data.unverifiedStepConfirmation);+ }if (data.researchEscalation) display.researchEscalation = record(data.researchEscalation, ['engine', 'request'], 6000);if (data.workflowHealing) {const target = value => record(value, ['role', 'name', 'label', 'ariaLabel', 'placeholder',@@ -15439,7 +15596,8 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d|| await this._conditionalGithubCommitTransition(tabId, fnName, fnArgs, detectedSubmitAction, callState.guardAdvisories)|| await this._workflowPreSubmitDispatchBlock(tabId, fnName, fnArgs, detectedSubmitAction, provider, callState.guardAdvisories,- );+ )+ || this._taskClickLockAsk(tabId, fnName, fnArgs);let workflowPreSubmitBlock = await runWorkflowPreSubmitChecks();if (workflowPreSubmitBlock?.mutationConfirmation&& this.scheduledRunPolicies.get(tabId)?.requireConsequentialConfirmation !== false) {@@ -15461,6 +15619,31 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dreturn { action: 'abort', value };}}+ // A quality guard that cannot verify a commit, publish or submit asks+ // the user on WebBrain's card instead of refusing (guard-policy.js+ // 'ask'); 'once' lets this one step go ahead with a note for the model.+ // Strict checks never produce the question, so they keep the refusal.+ if (workflowPreSubmitBlock?.unverifiedStepConfirmation) {+ const askedGuard = String(workflowPreSubmitBlock.unverifiedStepConfirmation.guardId || '');+ workflowPreSubmitBlock = await this._resolveUnverifiedStepConfirmation(tabId, workflowPreSubmitBlock, onUpdate,+ runWorkflowPreSubmitChecks, callState.guardAdvisories);+ // The step goes ahead with content WebBrain could not verify; the+ // submit receipt says so for the completion checks.+ if (!workflowPreSubmitBlock && ['github-commit-evidence-binding', 'social-publication-draft-quality'].includes(askedGuard)) {+ callState.publishesUnverifiedContent = true;+ }+ if (this._hasPendingSteering(tabId) && !this._checkAbort(tabId)) return skipSteeredPermissionWait(toolIndex);+ if (this._checkAbort(tabId) || workflowPreSubmitBlock?.unverifiedStepConfirmationCancelled === true) {+ const value = '[Stopped by user before executing requested tool calls.]';+ this._appendSyntheticToolResults(tabId, toolCalls, toolIndex, messages, onUpdate, step, () => ({+ success: false,+ cancelled: true,+ error: value,+ }));+ onUpdate('warning', { message: 'Stopped by user.' });+ return { action: 'abort', value };+ }+ }if (workflowPreSubmitBlock) {onUpdate('tool_call', { name: fnName, args: fnArgs, outcomeUnknown: false });onUpdate('tool_result', { name: fnName, result: workflowPreSubmitBlock });@@ -16026,7 +16209,8 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d// first, but a mismatched conversation never reaches executeTool().const messageRecipientExecutionContext = { chatCompletionBindingSink: {},...(fnName === 'navigate' && this._completionSubmitStates.get(tabId)?.semanticCommit- ? { _completionNavigationReceipt: {} } : {}) };+ ? { _completionNavigationReceipt: {} } : {}),+ ...(callState.publishesUnverifiedContent === true ? { publishesUnverifiedContent: true } : {}) };let messageRecipientBlock = null;if (!protectedPageFailure) {const runMessageRecipientGuard = () => this._withContentActionDeadline(@@ -16156,8 +16340,13 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d{ onUpdate, guardAdvisories: callState.guardAdvisories },);this._throwIfAborted(abortSignal);+ // The draft was asked about (and answered) before this deadline+ // started. A question that comes up only now, because the draft+ // changed since, cannot wait for the user here: the refusal+ // stands, without the card's page text.const socialDispatchBlock = pipelineToolbarPreflight.block ? null- : await this._socialPublicationPreSubmitBlock(tabId, fnName, fnArgs, detectedSubmitAction, provider);+ : this._withoutUnverifiedStepAsk(+ await this._socialPublicationPreSubmitBlock(tabId, fnName, fnArgs, detectedSubmitAction, provider));this._throwIfAborted(abortSignal);// Permission, checkpoint and preflight waits can receive a correction.// Recheck after all preparation, before marking or invoking dispatch.@@ -23609,15 +23798,40 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dif (!Array.isArray(detected.publicationResourceUrls) || detected.publicationResourceUrlsComplete !== true) {issues.push({ reason: 'baseline_incomplete' });}- if (issues.length) {- return { ...blocked('Publication preflight failed: ' + [...new Set(issues.map(issue => issue.reason))].join(', ')- + '. Resolve publicationValidation before retrying. For body_mismatch, use the exact contract body; preserve every space and line break. A pending text write must first be verified or restored.'),- publicationValidation: { issues } };- }const documentIdentity = detected.frameDocumentIdentity || '';const frameId = Number.isInteger(detected.frameId) ? detected.frameId : 0;const taskKey = guard.taskKey;const key = this._sha256TextSync(JSON.stringify({ contract: social.key, action, snapshot, pageUrl, documentIdentity, frameId }));+ let publishesUnverifiedContent = false;+ if (issues.length) {+ const refusal = { ...blocked('Publication preflight failed: ' + [...new Set(issues.map(issue => issue.reason))].join(', ')+ + '. Resolve publicationValidation before retrying. For body_mismatch, use the exact contract body; preserve every space and line break. A pending text write must first be verified or restored.'),+ publicationValidation: { issues } };+ // social-publication-draft-quality (quality) cannot decide when the+ // only issues are the draft's readback: a body or media that does not+ // match the contract, or a body, composer or post baseline it could not+ // observe. The user asked to publish here (the contract action is+ // eligible), so WebBrain asks on its card, showing the composer's text,+ // instead of refusing. The account, the reply or quote target and the+ // number of posts are not readback: their issues keep the refusal, and+ // the independent publication audit (unrequested_publication) still+ // runs on the observed draft after a 'once'. Strict checks refuse.+ const draftIssues = new Set(['body_mismatch', 'media_mismatch', 'body_unobserved', 'composer_incomplete', 'baseline_incomplete']);+ if (!issues.every(issue => draftIssues.has(issue.reason))+ || this._guardOutcome('social-publication-draft-quality', { decided: false }) !== 'ask') return refusal;+ if (!this._unverifiedStepApproval(tabId, 'social-publication-draft-quality', key)) {+ const bodies = (Array.isArray(snapshot?.posts) ? snapshot.posts : [])+ .map(post => (typeof post?.bodyText === 'string' ? post.bodyText : '')).filter(Boolean);+ const unobserved = issues.some(issue => ['body_unobserved', 'composer_incomplete'].includes(issue.reason)) || !bodies.length;+ return { ...refusal, unverifiedStepConfirmation: { guardId: 'social-publication-draft-quality', hard: false,+ action: 'publish', reason: unobserved ? 'draft_unobserved' : 'draft_unverified', host: normalizeHost(pageUrl),+ contentLabel: 'composer', text: bodies.join('\n\n'), stepKey: key } };+ }+ // The user's answer covers this exact draft (the key binds the+ // contract action, the observed snapshot and the page); the post goes+ // through the audit below and its receipt says it was not verified.+ publishesUnverifiedContent = true;+ }const auditBlocked = () => {const denied = social.deniedAudit?.status === 'denied';const message = denied@@ -23696,7 +23910,8 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dif (!authorized) return auditBlocked();}social.dispatch = { key, actionId: action.id, snapshot: JSON.parse(JSON.stringify(snapshot)), pageUrl,- documentIdentity, frameId, ...(bypassMatches ? { auditBypassed: true } : {}) };+ documentIdentity, frameId, ...(bypassMatches ? { auditBypassed: true } : {}),+ ...(publishesUnverifiedContent ? { publishesUnverifiedContent: true } : {}) };}// The semantic check can take time. Re-read the same target afterward;// neither a changed draft/account nor a navigated document inherits it.@@ -30023,6 +30238,255 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dreturn next;}+ /**+ * Ask the user, on WebBrain's own card, whether a consequential step may go+ * ahead when one of WebBrain's guards cannot verify it (guard-policy.js,+ * onCannotDecide 'ask'): a commit, publish or submit whose content or+ * effect could not be confirmed. `content` is what the page shows now, as+ * plain text. It is page-derived, so the side panel renders it with+ * textContent only and it never reaches the model+ * (docs/prompt-injection-defense.md). Fixed choices return stable values:+ * 'once' lets this one step go ahead, anything else refuses it. Returns+ * 'once' | 'deny', or null when Stop or a correction cancelled the card.+ *+ * A quality guard's card (`hard: false`) follows Settings → General: the+ * clarify timeout (Off waits for the user, Instant answers at once) and+ * "When a question times out" ('finish' goes ahead, 'safe' does not). A+ * hard-class card never times out, like the recipient and deletion cards,+ * so only the user can let it go ahead. An unattended scheduled run cannot+ * show a card: quality follows the timeout policy at once, hard denies.+ * An answer WebBrain chose (timeout, Instant, unattended) is not the+ * user's: `receipt.source` tells the caller which it was, and it is never+ * recorded as task authority or memory.+ */+ async _promptUnverifiedStepConfirmation(tabId, request = {}, onUpdate = null, receipt = null) {+ const step = normalizeUnverifiedStepConfirmation(request);+ const timedAnswer = step.hard || this._normalizeClarifyTimeoutPolicy(this.clarifyTimeoutPolicy) === 'safe'+ ? 'deny' : 'once';+ const answered = (choice, source) => {+ if (receipt && typeof receipt === 'object') receipt.source = source;+ return choice;+ };+ if (this.scheduledRunPolicies.get(tabId)?.requireConsequentialConfirmation === false) {+ return answered(timedAnswer, 'unattended');+ }+ // Without a card nobody can approve the step.+ if (typeof onUpdate !== 'function') return answered('deny', 'unavailable');+ const clarifyId = `unverified_${secureRandomBase36Token(12)}`;+ // -1 is no timeout: a hard card waits, like the recipient and deletion cards.+ const timeoutSec = step.hard ? -1 : this._normalizeClarifyTimeoutSec(this.clarifyTimeoutSec);+ const waitSec = timeoutSec > 0 ? timeoutSec : 0;+ const tabPending = this._pendingClarifications.get(tabId) || new Map();+ this._pendingClarifications.set(tabId, tabPending);+ const responsePromise = new Promise((resolve) => {+ const entry = { resolve, ts: Date.now(), timer: null, settled: false, timeoutSec: waitSec, deadlineTs: 0, onUpdate };+ if (timeoutSec >= 0) {+ const source = timeoutSec === 0 ? 'auto' : 'timeout';+ const autoSelect = () => {+ entry.timer = null;+ try { onUpdate('clarify_auto', { clarifyId, answer: timedAnswer, source, timeoutSec: waitSec }); }+ catch { /* UI emit must never break the run */ }+ this._settleClarification(entry, { answer: timedAnswer, source });+ };+ if (timeoutSec === 0) {+ entry.timer = setTimeout(autoSelect, 0);+ } else {+ entry.deadlineTs = Date.now() + timeoutSec * 1000;+ entry.timer = setTimeout(autoSelect, timeoutSec * 1000);+ }+ }+ tabPending.set(clarifyId, entry);+ });+ const deadlineTs = tabPending.get(clarifyId)?.deadlineTs || 0;+ try {+ onUpdate('clarify', {+ promptKind: UNVERIFIED_STEP_PROMPT_KIND,+ clarifyId,+ question: this._unverifiedStepQuestion(step),+ unverifiedStepConfirmation: step,+ options: ['once', 'deny'],+ timeoutSec: waitSec,+ ...(timeoutSec >= 0 ? { timeoutAnswer: timedAnswer } : {}),+ ...(deadlineTs ? { deadlineTs } : {}),+ });+ } catch { /* UI emit must never break the run */ }+ const response = await responsePromise;+ this._clearClarifyTimer(tabPending.get(clarifyId));+ tabPending.delete(clarifyId);+ if (tabPending.size === 0 && this._pendingClarifications.get(tabId) === tabPending) this._pendingClarifications.delete(tabId);+ if (response?.cancelled) return null;+ // A timer's answer, whichever timer fired (the agent's or the side+ // panel's backup), is the one decided when the card was shown.+ if (response?.source === 'timeout' || response?.source === 'auto') return answered(timedAnswer, response.source);+ return answered(String(response?.answer || '').trim().toLowerCase() === 'once' ? 'once' : 'deny', 'user');+ }++ // A guard's refusal without its question (and the page text it would show),+ // where no card can be shown.+ _withoutUnverifiedStepAsk(block) {+ if (!block?.unverifiedStepConfirmation) return block;+ const { unverifiedStepConfirmation: _ask, ...refusal } = block;+ return refusal;+ }++ // The card's question in English, for traces and surfaces without the side+ // panel's localized copy.+ _unverifiedStepQuestion(step) {+ const host = step?.host || 'this site';+ return { commit: `Commit this on ${host}?`, publish: `Publish this on ${host}?`,+ click: `Click this control on ${host}?` }[step?.action] || `Submit this on ${host}?`;+ }++ // What an unverified-step card shows: text the guard already holds (a+ // composer snapshot) or the field read now. The digest binds the user's+ // answer to exactly this content; the text is bounded page content that+ // only the card displays.+ async _unverifiedStepReading(tabId, ask) {+ if (typeof ask?.text === 'string') {+ return { text: clipUnverifiedStepContent(ask.text), sha256: this._sha256TextSync(ask.text),+ length: ask.text.length, readable: !!ask.text };+ }+ const unreadable = { text: '', sha256: '', length: null, readable: false };+ if (!ask?.target) return unreadable;+ let digest = null;+ try {+ digest = await this._textMutationValueDigest(tabId, ask.target, null,+ { preview: UNVERIFIED_STEP_CONTENT_LIMIT + 1 });+ } catch { digest = null; }+ // The locator must still name the same kind of field it was written as.+ if (!digest || (ask.expectKind === 'github-editor' && !this._isGithubFileEditorRecord({ fieldMeta: digest.fieldMeta }))) {+ return unreadable;+ }+ return { text: clipUnverifiedStepContent(digest.valuePreview || ''), sha256: digest.valueSha256,+ length: digest.valueLength, readable: true };+ }++ // The user's (or the timeout's) answers about unverified steps in this+ // task, newest last. A guard looks up the answer for its own step key; a+ // 'deny' for the same step and content is not asked again.+ _unverifiedStepDecisions(tabId) {+ const guard = this._planExecutionGuards.get(tabId);+ if (!guard) return [];+ const taskToken = this._taskTokens.get(tabId) || '';+ return (Array.isArray(guard.unverifiedStepDecisions) ? guard.unverifiedStepDecisions : [])+ .filter(entry => entry?.taskKey === guard.taskKey && entry.taskToken === taskToken);+ }++ /**+ * The 'once' that covers this guard's step, or null. `contentSha256`, when+ * given, must be the content the user was shown. A guard whose own refresh+ * found the content changed marks the answer stale; `consume` uses up a+ * one-step answer, so the next such action is asked about again.+ */+ _unverifiedStepApproval(tabId, guardId, stepKey, { contentSha256 = null, consume = false } = {}) {+ if (!stepKey) return null;+ const entry = this._unverifiedStepDecisions(tabId).findLast(item => item.guardId === guardId && item.stepKey === stepKey+ && (contentSha256 === null || item.contentSha256 === contentSha256));+ if (!entry || entry.choice !== 'once' || entry.stale === true || entry.consumed === true) return null;+ if (consume) entry.consumed = true;+ return entry;+ }++ _rememberUnverifiedStepDecision(tabId, ask, reading, choice, source) {+ const guard = this._planExecutionGuards.get(tabId);+ if (!guard) return null;+ const entry = { guardId: String(ask?.guardId || ''), stepKey: String(ask?.stepKey || ''), taskKey: guard.taskKey,+ taskToken: this._taskTokens.get(tabId) || '', contentSha256: reading?.sha256 || '',+ contentLength: Number.isInteger(reading?.length) ? reading.length : null,+ choice: choice === 'once' ? 'once' : 'deny', source: String(source || 'user'), at: Date.now() };+ guard.unverifiedStepDecisions = [...(Array.isArray(guard.unverifiedStepDecisions)+ ? guard.unverifiedStepDecisions.slice(-31) : []), entry];+ return entry;+ }++ // What the model reads about an unverified step, by guard: what could not+ // be verified, and what to check afterwards. Never the page content.+ _unverifiedStepWording(guardId) {+ return {+ 'github-commit-evidence-binding': { subject: 'the editor text WebBrain could not verify', what: 'The editor text could not be verified exactly',+ after: 'Read the committed file back before reporting success; WebBrain checks it against the requested text.',+ declined: 'fix the editor so its text reads back exactly, or report that the commit was not made' },+ 'github-commit-split-write-required': { subject: 'this action, which may commit the file', what: 'WebBrain could not tell whether this action commits',+ after: 'Read the committed file and commit message back before reporting success.',+ declined: 'write the field with a non-submit call, then commit with a separate click' },+ 'social-publication-draft-quality': { subject: 'this post draft', what: 'The post draft could not be verified against the request',+ after: 'Check the published post before reporting success.',+ declined: 'fix the draft so it matches the request, or report that it was not published' },+ 'steer-prior-submission-target-unresolved': { subject: 'this unidentified control', what: 'WebBrain could not tell what this control does',+ after: 'Inspect the page to see what it did before acting again.',+ declined: 'target an identified control by its ref, or report what was not done' },+ 'clickax-task-click-lock': { subject: 'clicking this control again', what: 'An earlier click on this control may already have taken effect',+ after: 'Inspect the page to see what both clicks did before acting again.',+ declined: 'inspect the page to reconcile the earlier click, or report what was not done' },+ }[guardId] || { subject: 'this step', what: 'This step could not be verified', after: 'Check its result before reporting success.',+ declined: 'report what was not done' };+ }++ _unverifiedStepNote(guardId, source) {+ const wording = this._unverifiedStepWording(guardId);+ const answer = source === 'user' ? 'the user approved it on WebBrain\'s card for this one step'+ : source === 'unattended' ? 'this unattended run could not ask, and the user\'s timeout setting let it go ahead'+ : 'nobody answered WebBrain\'s question in time, and the user\'s timeout setting let it go ahead';+ return `${wording.what}; ${answer}. ${wording.after}`;+ }++ _unverifiedStepDeclined(refusal, guardId, source, repeated = false) {+ const wording = this._unverifiedStepWording(guardId);+ const why = source === 'user'+ ? `The user ${repeated ? 'already chose' : 'chose'} not to go ahead with ${wording.subject}`+ : source === 'unattended' ? `This unattended run cannot ask the user about ${wording.subject}`+ : `Nobody answered WebBrain's question in time${repeated ? ' when it was asked before' : ''}, and the user's timeout setting does not let ${wording.subject} go ahead`;+ return { ...refusal, retryable: false, unverifiedStepDeclined: true,+ error: `${why}, so it was not performed. Do not repeat it unchanged; ${wording.declined}.` };+ }++ /**+ * Resolve a pre-dispatch refusal that a guard turned into a question+ * (`block.unverifiedStepConfirmation`): read what the page shows now, ask+ * once on WebBrain's card, record the answer for this exact step and+ * content, and re-run the checks so the action binds to a fresh reading of+ * the same page. Returns null when the action may proceed (its note for+ * the model goes into `advisories`), otherwise the result for the model.+ * With no card to show (no update channel), or nothing to show where the+ * guard requires it, the guard's refusal stands as before.+ */+ async _resolveUnverifiedStepConfirmation(tabId, block, onUpdate, rerunChecks, advisories = null) {+ const ask = block?.unverifiedStepConfirmation;+ if (!ask || typeof ask !== 'object') return block;+ const { unverifiedStepConfirmation: _ask, ...refusal } = block;+ if (typeof onUpdate !== 'function') return refusal;+ const guard = this._planExecutionGuards.get(tabId);+ const taskKey = guard?.taskKey;+ const stillCurrent = () => this._planExecutionGuards.get(tabId) === guard && guard?.taskKey === taskKey+ && !this._checkAbort(tabId);+ const reading = await this._unverifiedStepReading(tabId, ask);+ if (!stillCurrent() || (ask.requireContent === true && !reading.readable)) return refusal;+ const declined = this._unverifiedStepDecisions(tabId).findLast(entry => entry.guardId === ask.guardId+ && entry.stepKey === ask.stepKey && entry.contentSha256 === (reading.sha256 || ''));+ if (declined?.choice === 'deny') return this._unverifiedStepDeclined(refusal, ask.guardId, declined.source, true);+ const receipt = {};+ const choice = await this._promptUnverifiedStepConfirmation(tabId, { ...ask, content: reading.text }, onUpdate, receipt);+ if (choice === null) {+ return { ...refusal, cancelled: true, unverifiedStepConfirmationCancelled: true,+ error: 'The step was not confirmed because the user stopped or corrected the task, so it was not performed.' };+ }+ if (!stillCurrent()) {+ return { ...refusal, error: 'The task changed while the user was being asked about this step, so it was not performed. Continue under the latest request.' };+ }+ const decision = this._rememberUnverifiedStepDecision(tabId, ask, reading, choice, receipt.source);+ if (choice !== 'once') return this._unverifiedStepDeclined(refusal, ask.guardId, receipt.source);+ const next = await rerunChecks();+ if (next?.unverifiedStepConfirmation) {+ // The re-run did not accept the answer: what the page shows changed.+ if (decision) decision.stale = true;+ const { unverifiedStepConfirmation: _changed, ...changed } = next;+ return { ...changed, error: 'What the page shows changed while the user was being asked, so the step was not performed. Read the page again; WebBrain asks again if the step still cannot be verified.' };+ }+ if (next) return next;+ if (Array.isArray(advisories)) advisories.push(guardAdvisory(ask.guardId, this._unverifiedStepNote(ask.guardId, receipt.source)));+ return null;+ }+_fallbackSubmitConfirmationInfo(host, tool, reason, summary = '') {const normalizedHost = normalizeHost(host || '') || String(host || '').trim() || 'this site';return {@@ -33941,7 +34405,10 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d}}- async _textMutationValueDigest(tabId, target, expected = null) {+ // `preview` (characters) also returns the start of the value as plain text,+ // for WebBrain's unverified-step card only; it is page content and never+ // goes to the model.+ async _textMutationValueDigest(tabId, target, expected = null, { preview = 0 } = {}) {if (!target || (target.ambiguous === true && target.focusedProof !== true)) return null;const params = target.locatorType === 'ax' && typeof target.refId === 'string'? { ref_id: target.refId }@@ -33951,6 +34418,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d? { focused: true }: null;if (!params) return null;+ const previewChars = Number.isInteger(preview) && preview > 0 ? Math.min(preview, 4000) : 0;try {const response = await chrome.tabs.sendMessage(tabId, {target: 'content',@@ -33958,6 +34426,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dparams: {...params,...(typeof expected === 'string' ? { expected } : {}),+ ...(previewChars ? { preview: previewChars } : {}),},}, Number.isInteger(target.frameId) ? { frameId: target.frameId } : undefined);if (response?.success !== true@@ -33981,6 +34450,8 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d// caller may hold empty/stale scope while this is current.documentToken: String(response.documentToken || ''),pageUrl: String(response.refScopeUrl || ''),+ ...(previewChars && typeof response.valuePreview === 'string'+ ? { valuePreview: response.valuePreview.slice(0, previewChars) } : {}),};} catch {return null;@@ -34197,6 +34668,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d}async _refreshGithubTextReplacementProofs(tabId, pageUrl) {+ await this._refreshGithubUnverifiedEditorApproval(tabId, pageUrl);const records = this._verifiedTextReplacements.get(tabId);if (!(records instanceof Map)) return;for (const [key, record] of records) {@@ -34331,6 +34803,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d* // | 'not_inserted' | 'trusted_retry_failed'* textSent, // true when the text went out (the result reported success)* fieldMeta, // field identity (id, name, labels, contentEditable, codeMirror, …)+ * refreshSelector, // focused writes: element-derived selector read with the write, or null* taskToken, recordedAt, // the task that wrote it; epoch ms* }* `key` selects one editor. Without it, the newest record on `pageUrl`@@ -34510,6 +34983,11 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dreason: advisory.reason,textSent: advisory.textSent,fieldMeta: result.fieldMeta || observed?.fieldMeta || null,+ // A focused write has no locator of its own, and the focus moves on (to+ // the commit dialog, say). The element-derived selector read with the+ // write lets the unverified-step card read the same field later.+ refreshSelector: target.locatorType === 'focused' && typeof observed?.stableSelector === 'string'+ && observed.stableSelector ? observed.stableSelector : null,taskToken: this._taskTokens?.get(tabId) || null,recordedAt: Date.now(),});@@ -42128,6 +42606,46 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dthis._taskClickLocks?.get(tabId)?.keys.delete(key);}+ /**+ * clickax-task-click-lock (a hard class: a repeat of a click that may+ * already have taken effect) cannot decide: an earlier trusted click on this+ * exact document|ref may have landed and was never verified. Instead of+ * refusing for the rest of the task, WebBrain asks the user on its card,+ * which never times out and never goes ahead on its own (an unattended run+ * is refused). Only the user's 'once' releases this target's locks, for+ * this one click. This applies with Strict checks too: it replaces a dead+ * end with the user's explicit decision. The lock in _dispatchClickAxImpl+ * stays the final fence. Chrome only: Firefox sends no trusted click+ * fallback, so it has no such lock.+ */+ _taskClickLockAsk(tabId, name, args = {}) {+ if (name !== 'click_ax' || typeof args?.ref_id !== 'string' || !args.ref_id) return null;+ const scope = this._lastAxScopes.get(tabId);+ const documentToken = scope?.documentToken;+ const locks = this._taskClickLockKeys(tabId);+ if (!documentToken || !locks?.size) return null;+ const target = `${documentToken}|${args.ref_id}`;+ const keys = [`native-button-pending:${target}`, target];+ if (!keys.some(key => locks.has(key))+ || this._guardOutcome('clickax-task-click-lock', { decided: false }) !== 'ask') return null;+ const stepKey = this._sha256TextSync(JSON.stringify(['clickax-task-click-lock', this._taskTokens.get(tabId) || '', target]));+ if (this._unverifiedStepApproval(tabId, 'clickax-task-click-lock', stepKey, { consume: true })) {+ const attempted = this._clickAxCdpFallbacks.get(tabId);+ for (const key of keys) {+ this._releaseTaskClickLock(tabId, key);+ attempted?.delete(key);+ }+ for (const key of [...(attempted || [])]) {+ if (key.startsWith(`native-button:${target}|`)) attempted.delete(key);+ }+ return null;+ }+ return { success: false, dispatched: false, noDispatch: true, retryable: false, repeatBlocked: true,+ error: 'An earlier trusted click on this exact target in this task may already have taken effect and was never verified. Inspect the page to reconcile its outcome instead of clicking it again.',+ unverifiedStepConfirmation: { guardId: 'clickax-task-click-lock', hard: true, action: 'click', reason: 'repeat_unverified',+ host: normalizeHost(scope.pageUrl || ''), contentLabel: 'page', stepKey } };+ }+async _readTextMutationEnrichment(operation, signal) {if (!signal) return operation();this._throwIfAborted(signal);diff --git a/src/chrome/src/agent/scheduler.js b/src/chrome/src/agent/scheduler.jsindex 571a5d6e3..533b80af3 100644--- a/src/chrome/src/agent/scheduler.js+++ b/src/chrome/src/agent/scheduler.js@@ -1,4 +1,5 @@import { DECISION_SETTINGS_KEYS, resolveDecisionConfig } from './decision-config.js';+import { normalizeUnverifiedStepConfirmation } from './unverified-step.js';import { createSystemOneEvidence, systemOneEvidenceState } from './systemone-evidence.js';import {buildCompletionQuestions,@@ -179,6 +180,13 @@ function normalizePendingClarify(data, now = Date.now()) {dialog: String(mutationConfirmation.dialog || '').slice(0, 300),};}+ // WebBrain's "go ahead?" card about a step one of its checks could not+ // verify: its question, reason and the page text it shows, so a reopened+ // panel restores the card (with timeoutAnswer above for its countdown).+ const unverifiedStep = asObject(obj.unverifiedStepConfirmation);+ if (unverifiedStep.guardId || unverifiedStep.action) {+ pending.unverifiedStepConfirmation = normalizeUnverifiedStepConfirmation(unverifiedStep);+ }return pending;}diff --git a/src/chrome/src/agent/unverified-step.js b/src/chrome/src/agent/unverified-step.jsnew file mode 100644index 000000000..ba38ce7c5--- /dev/null+++ b/src/chrome/src/agent/unverified-step.js@@ -0,0 +1,54 @@+// The card WebBrain shows when one of its own guards cannot verify a+// consequential step (guard-policy.js, onCannotDecide 'ask'): a commit,+// publish or submit whose content or effect could not be confirmed. Instead+// of refusing the step, WebBrain shows the user what the page holds now and+// asks "go ahead?" with two fixed answers, 'once' and 'deny'.+//+// The card's content is page text, so it is untrusted: it is bounded here,+// the side panel renders it with textContent only, and it is never sent to+// the model. These helpers normalize the card for the agent, for scheduler+// persistence and for a side panel that restores the card after reopening.+// Shared verbatim by the Chrome and Firefox builds.++export const UNVERIFIED_STEP_PROMPT_KIND = 'unverifiedStepConfirmation';+// What the step does; each has a localized question in the side panel.+export const UNVERIFIED_STEP_ACTIONS = Object.freeze(['commit', 'submit', 'publish', 'click']);+// Why WebBrain could not verify it; each has a localized sentence.+export const UNVERIFIED_STEP_REASONS = Object.freeze([+ 'editor_unverified', 'draft_unverified', 'draft_unobserved',+ 'submit_unclear', 'target_unresolved', 'repeat_unverified', 'step_unverified',+]);+// Where the shown text comes from; each has a localized label.+export const UNVERIFIED_STEP_CONTENT_LABELS = Object.freeze(['editor', 'composer', 'page']);+export const UNVERIFIED_STEP_CONTENT_LIMIT = 1500;++/**+ * Plain text for the card: line breaks normalized, at most `limit`+ * characters, cut with an ellipsis. Never splits a surrogate pair, and+ * applying it twice changes nothing.+ */+export function clipUnverifiedStepContent(value, limit = UNVERIFIED_STEP_CONTENT_LIMIT) {+ const text = String(value ?? '').replace(/\r\n?/g, '\n');+ if (text.length <= limit) return text;+ let cut = text.slice(0, limit);+ if (/[\ud800-\udbff]$/.test(cut)) cut = cut.slice(0, -1);+ return `${cut}…`;+}++/**+ * The display fields of an unverified-step card, bounded and limited to the+ * known values. `hard` cards (a hard-class guard) never time out.+ */+export function normalizeUnverifiedStepConfirmation(value) {+ const obj = value && typeof value === 'object' && !Array.isArray(value) ? value : {};+ const clip = (item, limit) => String(item ?? '').slice(0, limit);+ return {+ guardId: clip(obj.guardId, 80),+ hard: obj.hard === true,+ action: UNVERIFIED_STEP_ACTIONS.includes(obj.action) ? obj.action : 'submit',+ host: clip(obj.host, 300),+ reason: UNVERIFIED_STEP_REASONS.includes(obj.reason) ? obj.reason : 'step_unverified',+ content: clipUnverifiedStepContent(obj.content),+ contentLabel: UNVERIFIED_STEP_CONTENT_LABELS.includes(obj.contentLabel) ? obj.contentLabel : 'page',+ };+}diff --git a/src/chrome/src/content/content.js b/src/chrome/src/content/content.jsindex 05472d3b3..e2ff5d8e5 100644--- a/src/chrome/src/content/content.js+++ b/src/chrome/src/content/content.js@@ -10610,6 +10610,10 @@if ((el.isContentEditable && el.classList?.contains('cm-content') && readCodeMirrorText(el) === null))return { success: false, verified: false, error: 'The CodeMirror editor shows only part of its document (a viewport gap or folded text), so its exact text cannot be read.' };const value = String(el.isContentEditable ? _editableTextValue(el) : (el.value || ''));+ // The start of the same text the digest hashes, for WebBrain's own+ // "go ahead?" card about an unverified field (shown as plain text).+ const previewChars = Number.isInteger(msg.params?.preview) && msg.params.preview > 0+ ? Math.min(msg.params.preview, 4000) : 0;if (!globalThis.crypto?.subtle) return { success: false, error: 'SHA-256 is unavailable' };const digest = await globalThis.crypto.subtle.digest('SHA-256', new TextEncoder().encode(value));const valueSha256 = [...new Uint8Array(digest)]@@ -10629,6 +10633,7 @@readbackExact: reader !== 'rendered',fieldMeta: _fieldMeta(el),stableSelector: _stableFieldSelector(el),+ ...(previewChars ? { valuePreview: value.slice(0, previewChars) } : {}),};} catch (error) {if (error?.code === 'page_feedback_pending') throw error;diff --git a/src/chrome/src/ui/locales/ar.js b/src/chrome/src/ui/locales/ar.jsindex d8a4ca0c7..14e49c5a1 100644--- a/src/chrome/src/ui/locales/ar.js+++ b/src/chrome/src/ui/locales/ar.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "يسأل الموقع: “{dialog}”","sp.delete.delete": "حذف","sp.delete.dont_delete": "عدم الحذف",+ "sp.unverified.question.commit": "هل تريد إيداع هذا على {host}؟",+ "sp.unverified.question.submit": "هل تريد إرسال هذا على {host}؟",+ "sp.unverified.question.publish": "هل تريد نشر هذا على {host}؟",+ "sp.unverified.question.click": "هل تريد النقر على عنصر التحكم هذا على {host}؟",+ "sp.unverified.reason.editor_unverified": "كتب WebBrain النص لكنه لم يتمكن من قراءته مرة أخرى بدقة.",+ "sp.unverified.reason.draft_unverified": "لم يتمكن WebBrain من التأكد من أن المنشور يطابق طلبك.",+ "sp.unverified.reason.draft_unobserved": "لم يتمكن WebBrain من قراءة المنشور مرة أخرى.",+ "sp.unverified.reason.submit_unclear": "لا يستطيع WebBrain معرفة ما إذا كان هذا الإجراء يُودِع التغييرات أيضًا.",+ "sp.unverified.reason.target_unresolved": "لا يستطيع WebBrain معرفة ما يفعله عنصر التحكم هذا، وقد أُرسل شيء بالفعل قبل تصحيحك.",+ "sp.unverified.reason.repeat_unverified": "ربما نجحت نقرة سابقة على عنصر التحكم هذا بالفعل، ولم يتمكن WebBrain من التحقق من ذلك.",+ "sp.unverified.reason.step_unverified": "لم يتمكن WebBrain من التحقق من هذه الخطوة.",+ "sp.unverified.content.editor": "في المحرر الآن:",+ "sp.unverified.content.composer": "في نافذة الكتابة الآن:",+ "sp.unverified.content.page": "على الصفحة الآن:",+ "sp.unverified.check_page": "تحقق من الصفحة قبل أن تجيب.",+ "sp.unverified.go_ahead": "متابعة",+ "sp.unverified.dont": "عدم المتابعة","sp.recipient.reason_unrequested": "لم يتمكن WebBrain من فهم أن طلبك يتضمن إرسال رسالة. المحادثة المفتوحة على {host} مع {recipient}.","sp.recipient.reason_unnamed": "لم يتمكن WebBrain من فهم من يجب أن يتلقى هذه الرسالة من طلبك. المحادثة المفتوحة على {host} مع {recipient}.",'st.tab.permissions': "الأذونات",diff --git a/src/chrome/src/ui/locales/bn.js b/src/chrome/src/ui/locales/bn.jsindex 19f4c86d5..b483c87bd 100644--- a/src/chrome/src/ui/locales/bn.js+++ b/src/chrome/src/ui/locales/bn.js@@ -437,6 +437,23 @@ export default {"sp.delete.site_asks": "সাইটটি জিজ্ঞেস করছে: “{dialog}”","sp.delete.delete": "মুছুন","sp.delete.dont_delete": "মুছবেন না",+ "sp.unverified.question.commit": "{host}-এ এটি কমিট করবেন?",+ "sp.unverified.question.submit": "{host}-এ এটি জমা দেবেন?",+ "sp.unverified.question.publish": "{host}-এ এটি প্রকাশ করবেন?",+ "sp.unverified.question.click": "{host}-এ এই কন্ট্রোলে ক্লিক করবেন?",+ "sp.unverified.reason.editor_unverified": "WebBrain লেখাটি টাইপ করেছে, কিন্তু সেটি হুবহু আবার পড়তে পারেনি।",+ "sp.unverified.reason.draft_unverified": "পোস্টটি আপনার অনুরোধের সাথে মেলে কি না, WebBrain তা নিশ্চিত করতে পারেনি।",+ "sp.unverified.reason.draft_unobserved": "WebBrain পোস্টটি আবার পড়তে পারেনি।",+ "sp.unverified.reason.submit_unclear": "এই কাজটি কমিটও করে কি না, WebBrain তা বুঝতে পারছে না।",+ "sp.unverified.reason.target_unresolved": "এই কন্ট্রোলটি কী করে, WebBrain তা বুঝতে পারছে না, আর আপনার সংশোধনের আগেই কিছু একটা জমা দেওয়া হয়েছে।",+ "sp.unverified.reason.repeat_unverified": "এই কন্ট্রোলে আগের একটি ক্লিক হয়তো ইতিমধ্যেই কাজ করেছে, আর WebBrain তা যাচাই করতে পারেনি।",+ "sp.unverified.reason.step_unverified": "WebBrain এই ধাপটি যাচাই করতে পারেনি।",+ "sp.unverified.content.editor": "এখন এডিটরে:",+ "sp.unverified.content.composer": "এখন কম্পোজারে:",+ "sp.unverified.content.page": "এখন পৃষ্ঠায়:",+ "sp.unverified.check_page": "উত্তর দেওয়ার আগে পৃষ্ঠাটি দেখে নিন।",+ "sp.unverified.go_ahead": "এগিয়ে যান",+ "sp.unverified.dont": "করবেন না","sp.recipient.reason_unrequested": "WebBrain আপনার অনুরোধ থেকে বুঝতে পারেনি যে একটি বার্তা পাঠাতে হবে। {host}-এ খোলা কথোপকথনটি {recipient}-এর সাথে।","sp.recipient.reason_unnamed": "WebBrain আপনার অনুরোধ থেকে বুঝতে পারেনি এই বার্তাটি কে পাবে। {host}-এ খোলা কথোপকথনটি {recipient}-এর সাথে।",'sp.perm.skip_hint': "কম বাধা চান? \"সর্বদা অনুমতি দিন\" এই সাইটটি মনে রাখে। নীচের কমান্ড প্রতিটি সাইটে WebBrain অনুমতি অনুরোধ নিষ্ক্রিয় করে।",diff --git a/src/chrome/src/ui/locales/de.js b/src/chrome/src/ui/locales/de.jsindex 7dc5d8ada..75388846b 100644--- a/src/chrome/src/ui/locales/de.js+++ b/src/chrome/src/ui/locales/de.js@@ -449,6 +449,23 @@ export default {"sp.delete.site_asks": "Die Website fragt: „{dialog}“","sp.delete.delete": "Löschen","sp.delete.dont_delete": "Nicht löschen",+ "sp.unverified.question.commit": "Das auf {host} committen?",+ "sp.unverified.question.submit": "Das auf {host} absenden?",+ "sp.unverified.question.publish": "Das auf {host} veröffentlichen?",+ "sp.unverified.question.click": "Dieses Steuerelement auf {host} anklicken?",+ "sp.unverified.reason.editor_unverified": "WebBrain hat den Text eingegeben, konnte ihn aber nicht exakt zurücklesen.",+ "sp.unverified.reason.draft_unverified": "WebBrain konnte nicht bestätigen, dass der Beitrag deiner Anfrage entspricht.",+ "sp.unverified.reason.draft_unobserved": "WebBrain konnte den Beitrag nicht zurücklesen.",+ "sp.unverified.reason.submit_unclear": "WebBrain kann nicht erkennen, ob diese Aktion auch committet.",+ "sp.unverified.reason.target_unresolved": "WebBrain kann nicht erkennen, was dieses Steuerelement tut, und vor deiner Korrektur wurde bereits etwas abgesendet.",+ "sp.unverified.reason.repeat_unverified": "Ein früherer Klick auf dieses Steuerelement hat vielleicht schon funktioniert, und WebBrain konnte das nicht prüfen.",+ "sp.unverified.reason.step_unverified": "WebBrain konnte diesen Schritt nicht überprüfen.",+ "sp.unverified.content.editor": "Jetzt im Editor:",+ "sp.unverified.content.composer": "Jetzt im Eingabefenster:",+ "sp.unverified.content.page": "Jetzt auf der Seite:",+ "sp.unverified.check_page": "Prüfe die Seite, bevor du antwortest.",+ "sp.unverified.go_ahead": "Fortfahren",+ "sp.unverified.dont": "Nicht fortfahren","sp.recipient.reason_unrequested": "WebBrain konnte deiner Anfrage nicht entnehmen, dass eine Nachricht gesendet werden soll. Die geöffnete Unterhaltung auf {host} ist mit {recipient}.","sp.recipient.reason_unnamed": "WebBrain konnte deiner Anfrage nicht entnehmen, wer diese Nachricht bekommen soll. Die geöffnete Unterhaltung auf {host} ist mit {recipient}.",'sp.perm.skip_hint': 'Weniger Unterbrechungen? „Immer erlauben" merkt sich diese Website. Der Befehl unten deaktiviert WebBrain-Berechtigungsabfragen auf allen Websites.',diff --git a/src/chrome/src/ui/locales/en.js b/src/chrome/src/ui/locales/en.jsindex cd1212c00..e50e6b113 100644--- a/src/chrome/src/ui/locales/en.js+++ b/src/chrome/src/ui/locales/en.js@@ -442,6 +442,23 @@ export default {"sp.delete.site_asks": "The site asks: “{dialog}”","sp.delete.delete": "Delete","sp.delete.dont_delete": "Don’t delete",+ "sp.unverified.question.commit": "Commit this on {host}?",+ "sp.unverified.question.submit": "Submit this on {host}?",+ "sp.unverified.question.publish": "Publish this on {host}?",+ "sp.unverified.question.click": "Click this control on {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain typed the text but couldn’t read it back exactly.",+ "sp.unverified.reason.draft_unverified": "WebBrain couldn’t confirm that the post matches your request.",+ "sp.unverified.reason.draft_unobserved": "WebBrain couldn’t read the post back.",+ "sp.unverified.reason.submit_unclear": "WebBrain can’t tell whether this action also commits.",+ "sp.unverified.reason.target_unresolved": "WebBrain can’t tell what this control does, and something was already submitted before your correction.",+ "sp.unverified.reason.repeat_unverified": "An earlier click on this control may already have worked, and WebBrain couldn’t check.",+ "sp.unverified.reason.step_unverified": "WebBrain couldn’t verify this step.",+ "sp.unverified.content.editor": "In the editor now:",+ "sp.unverified.content.composer": "In the composer now:",+ "sp.unverified.content.page": "On the page now:",+ "sp.unverified.check_page": "Check the page before you answer.",+ "sp.unverified.go_ahead": "Go ahead",+ "sp.unverified.dont": "Don’t","sp.recipient.reason_unrequested": "WebBrain couldn’t tell from your request that a message should be sent. The open conversation on {host} is with {recipient}.","sp.recipient.reason_unnamed": "WebBrain couldn’t tell from your request who should get this message. The open conversation on {host} is with {recipient}.",'sp.perm.skip_hint': 'Want fewer interruptions? “Always allow” remembers this site. The command below disables WebBrain permission prompts on every site.',diff --git a/src/chrome/src/ui/locales/es.js b/src/chrome/src/ui/locales/es.jsindex 91d955f93..fada0eba5 100644--- a/src/chrome/src/ui/locales/es.js+++ b/src/chrome/src/ui/locales/es.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "El sitio pregunta: «{dialog}»","sp.delete.delete": "Eliminar","sp.delete.dont_delete": "No eliminar",+ "sp.unverified.question.commit": "¿Hacer commit de esto en {host}?",+ "sp.unverified.question.submit": "¿Enviar esto en {host}?",+ "sp.unverified.question.publish": "¿Publicar esto en {host}?",+ "sp.unverified.question.click": "¿Hacer clic en este control en {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain escribió el texto, pero no pudo volver a leerlo con exactitud.",+ "sp.unverified.reason.draft_unverified": "WebBrain no pudo confirmar que la publicación coincida con tu solicitud.",+ "sp.unverified.reason.draft_unobserved": "WebBrain no pudo volver a leer la publicación.",+ "sp.unverified.reason.submit_unclear": "WebBrain no puede saber si esta acción también hace el commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain no puede saber qué hace este control, y ya se envió algo antes de tu corrección.",+ "sp.unverified.reason.repeat_unverified": "Es posible que un clic anterior en este control ya haya funcionado, y WebBrain no pudo comprobarlo.",+ "sp.unverified.reason.step_unverified": "WebBrain no pudo verificar este paso.",+ "sp.unverified.content.editor": "Ahora en el editor:",+ "sp.unverified.content.composer": "Ahora en el editor de la publicación:",+ "sp.unverified.content.page": "Ahora en la página:",+ "sp.unverified.check_page": "Revisa la página antes de responder.",+ "sp.unverified.go_ahead": "Continuar",+ "sp.unverified.dont": "No continuar","sp.recipient.reason_unrequested": "WebBrain no pudo deducir de tu solicitud que deba enviarse un mensaje. La conversación abierta en {host} es con {recipient}.","sp.recipient.reason_unnamed": "WebBrain no pudo deducir de tu solicitud quién debe recibir este mensaje. La conversación abierta en {host} es con {recipient}.",'st.tab.permissions': "Permisos",diff --git a/src/chrome/src/ui/locales/fa.js b/src/chrome/src/ui/locales/fa.jsindex 14479cfa6..29193a116 100644--- a/src/chrome/src/ui/locales/fa.js+++ b/src/chrome/src/ui/locales/fa.js@@ -437,6 +437,23 @@ export default {"sp.delete.site_asks": "سایت میپرسد: «{dialog}»","sp.delete.delete": "حذف","sp.delete.dont_delete": "حذف نکن",+ "sp.unverified.question.commit": "این در {host} کامیت شود؟",+ "sp.unverified.question.submit": "این در {host} ارسال شود؟",+ "sp.unverified.question.publish": "این در {host} منتشر شود؟",+ "sp.unverified.question.click": "روی این کنترل در {host} کلیک شود؟",+ "sp.unverified.reason.editor_unverified": "WebBrain متن را تایپ کرد اما نتوانست آن را دقیقاً دوباره بخواند.",+ "sp.unverified.reason.draft_unverified": "WebBrain نتوانست تأیید کند که پست با درخواست شما مطابقت دارد.",+ "sp.unverified.reason.draft_unobserved": "WebBrain نتوانست پست را دوباره بخواند.",+ "sp.unverified.reason.submit_unclear": "WebBrain نمیتواند تشخیص دهد که آیا این اقدام کامیت هم انجام میدهد یا نه.",+ "sp.unverified.reason.target_unresolved": "WebBrain نمیتواند تشخیص دهد این کنترل چه میکند، و پیش از اصلاح شما چیزی ارسال شده است.",+ "sp.unverified.reason.repeat_unverified": "ممکن است کلیک قبلی روی این کنترل کار کرده باشد، و WebBrain نتوانست آن را بررسی کند.",+ "sp.unverified.reason.step_unverified": "WebBrain نتوانست این مرحله را بررسی کند.",+ "sp.unverified.content.editor": "اکنون در ویرایشگر:",+ "sp.unverified.content.composer": "اکنون در پنجره نوشتن:",+ "sp.unverified.content.page": "اکنون در صفحه:",+ "sp.unverified.check_page": "پیش از پاسخ دادن، صفحه را بررسی کنید.",+ "sp.unverified.go_ahead": "ادامه بده",+ "sp.unverified.dont": "ادامه نده","sp.recipient.reason_unrequested": "WebBrain از درخواست شما متوجه نشد که باید پیامی ارسال شود. گفتگوی باز در {host} با {recipient} است.","sp.recipient.reason_unnamed": "WebBrain از درخواست شما متوجه نشد این پیام باید به چه کسی برسد. گفتگوی باز در {host} با {recipient} است.",'sp.perm.skip_hint': "وقفه های کمتری می خواهید؟ \"همیشه اجازه دهید\" این سایت را به خاطر می آورد. دستور زیر دستورات مجوز WebBrain را در هر سایت غیرفعال می کند.",diff --git a/src/chrome/src/ui/locales/fr.js b/src/chrome/src/ui/locales/fr.jsindex bb1d36653..297a232fd 100644--- a/src/chrome/src/ui/locales/fr.js+++ b/src/chrome/src/ui/locales/fr.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Le site demande : « {dialog} »","sp.delete.delete": "Supprimer","sp.delete.dont_delete": "Ne pas supprimer",+ "sp.unverified.question.commit": "Valider (commit) ceci sur {host} ?",+ "sp.unverified.question.submit": "Envoyer ceci sur {host} ?",+ "sp.unverified.question.publish": "Publier ceci sur {host} ?",+ "sp.unverified.question.click": "Cliquer sur cette commande sur {host} ?",+ "sp.unverified.reason.editor_unverified": "WebBrain a saisi le texte, mais n’a pas pu le relire exactement.",+ "sp.unverified.reason.draft_unverified": "WebBrain n’a pas pu confirmer que la publication correspond à votre demande.",+ "sp.unverified.reason.draft_unobserved": "WebBrain n’a pas pu relire la publication.",+ "sp.unverified.reason.submit_unclear": "WebBrain ne peut pas savoir si cette action effectue aussi le commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain ne peut pas savoir ce que fait cette commande, et quelque chose a déjà été envoyé avant votre correction.",+ "sp.unverified.reason.repeat_unverified": "Un clic précédent sur cette commande a peut-être déjà fonctionné, et WebBrain n’a pas pu le vérifier.",+ "sp.unverified.reason.step_unverified": "WebBrain n’a pas pu vérifier cette étape.",+ "sp.unverified.content.editor": "Dans l’éditeur en ce moment :",+ "sp.unverified.content.composer": "Dans la zone de rédaction en ce moment :",+ "sp.unverified.content.page": "Sur la page en ce moment :",+ "sp.unverified.check_page": "Vérifiez la page avant de répondre.",+ "sp.unverified.go_ahead": "Continuer",+ "sp.unverified.dont": "Ne pas continuer","sp.recipient.reason_unrequested": "WebBrain n’a pas pu déduire de votre demande qu’un message doit être envoyé. La conversation ouverte sur {host} est avec {recipient}.","sp.recipient.reason_unnamed": "WebBrain n’a pas pu déduire de votre demande qui doit recevoir ce message. La conversation ouverte sur {host} est avec {recipient}.",'st.tab.permissions': "Autorisations",diff --git a/src/chrome/src/ui/locales/he.js b/src/chrome/src/ui/locales/he.jsindex c573b28ea..9901c4745 100644--- a/src/chrome/src/ui/locales/he.js+++ b/src/chrome/src/ui/locales/he.js@@ -428,6 +428,23 @@ export default {"sp.delete.site_asks": "האתר שואל: \"{dialog}\"","sp.delete.delete": "למחוק","sp.delete.dont_delete": "לא למחוק",+ "sp.unverified.question.commit": "לבצע commit לזה ב-{host}?",+ "sp.unverified.question.submit": "לשלוח את זה ב-{host}?",+ "sp.unverified.question.publish": "לפרסם את זה ב-{host}?",+ "sp.unverified.question.click": "ללחוץ על הפקד הזה ב-{host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain הקליד את הטקסט אבל לא הצליח לקרוא אותו בחזרה במדויק.",+ "sp.unverified.reason.draft_unverified": "WebBrain לא הצליח לאשר שהפוסט תואם לבקשה שלך.",+ "sp.unverified.reason.draft_unobserved": "WebBrain לא הצליח לקרוא את הפוסט בחזרה.",+ "sp.unverified.reason.submit_unclear": "WebBrain לא יכול לדעת אם הפעולה הזו מבצעת גם commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain לא יכול לדעת מה הפקד הזה עושה, ומשהו כבר נשלח לפני התיקון שלך.",+ "sp.unverified.reason.repeat_unverified": "ייתכן שלחיצה קודמת על הפקד הזה כבר הצליחה, ו-WebBrain לא הצליח לבדוק.",+ "sp.unverified.reason.step_unverified": "WebBrain לא הצליח לאמת את השלב הזה.",+ "sp.unverified.content.editor": "בעורך כרגע:",+ "sp.unverified.content.composer": "בחלון הכתיבה כרגע:",+ "sp.unverified.content.page": "בדף כרגע:",+ "sp.unverified.check_page": "כדאי לבדוק את הדף לפני שעונים.",+ "sp.unverified.go_ahead": "להמשיך",+ "sp.unverified.dont": "לא להמשיך","sp.recipient.reason_unrequested": "WebBrain לא הצליח להבין מהבקשה שלך שיש לשלוח הודעה. השיחה הפתוחה ב-{host} היא עם {recipient}.","sp.recipient.reason_unnamed": "WebBrain לא הצליח להבין מהבקשה שלך מי צריך לקבל את ההודעה הזו. השיחה הפתוחה ב-{host} היא עם {recipient}.","sp.perm.verb.navigate": "לנווט אל",diff --git a/src/chrome/src/ui/locales/hi.js b/src/chrome/src/ui/locales/hi.jsindex c024b24cc..28546489a 100644--- a/src/chrome/src/ui/locales/hi.js+++ b/src/chrome/src/ui/locales/hi.js@@ -437,6 +437,23 @@ export default {"sp.delete.site_asks": "साइट पूछ रही है: “{dialog}”","sp.delete.delete": "हटाएँ","sp.delete.dont_delete": "न हटाएँ",+ "sp.unverified.question.commit": "{host} पर इसे कमिट करें?",+ "sp.unverified.question.submit": "{host} पर इसे सबमिट करें?",+ "sp.unverified.question.publish": "{host} पर इसे प्रकाशित करें?",+ "sp.unverified.question.click": "{host} पर इस कंट्रोल पर क्लिक करें?",+ "sp.unverified.reason.editor_unverified": "WebBrain ने टेक्स्ट टाइप किया, लेकिन उसे ठीक-ठीक वापस नहीं पढ़ सका।",+ "sp.unverified.reason.draft_unverified": "WebBrain पुष्टि नहीं कर सका कि पोस्ट आपके अनुरोध से मेल खाती है।",+ "sp.unverified.reason.draft_unobserved": "WebBrain पोस्ट को वापस नहीं पढ़ सका।",+ "sp.unverified.reason.submit_unclear": "WebBrain यह नहीं बता सकता कि यह कार्रवाई कमिट भी करती है या नहीं।",+ "sp.unverified.reason.target_unresolved": "WebBrain यह नहीं बता सकता कि यह कंट्रोल क्या करता है, और आपके सुधार से पहले कुछ सबमिट हो चुका है।",+ "sp.unverified.reason.repeat_unverified": "हो सकता है कि इस कंट्रोल पर पिछला क्लिक पहले ही काम कर चुका हो, और WebBrain इसकी जांच नहीं कर सका।",+ "sp.unverified.reason.step_unverified": "WebBrain इस चरण की पुष्टि नहीं कर सका।",+ "sp.unverified.content.editor": "अभी एडिटर में:",+ "sp.unverified.content.composer": "अभी कंपोज़र में:",+ "sp.unverified.content.page": "अभी पेज पर:",+ "sp.unverified.check_page": "जवाब देने से पहले पेज देख लें।",+ "sp.unverified.go_ahead": "आगे बढ़ें",+ "sp.unverified.dont": "न करें","sp.recipient.reason_unrequested": "WebBrain आपके अनुरोध से यह नहीं समझ सका कि संदेश भेजना है। {host} पर खुली बातचीत {recipient} के साथ है।","sp.recipient.reason_unnamed": "WebBrain आपके अनुरोध से यह नहीं समझ सका कि यह संदेश किसे मिलना चाहिए। {host} पर खुली बातचीत {recipient} के साथ है।",'sp.perm.skip_hint': "क्या आप कम रुकावटें चाहते हैं? \"हमेशा अनुमति दें\" यह साइट याद रखती है। नीचे दिया गया आदेश प्रत्येक साइट पर WebBrain अनुमति संकेतों को अक्षम कर देता है।",diff --git a/src/chrome/src/ui/locales/id.js b/src/chrome/src/ui/locales/id.jsindex 8056cd194..b4af37036 100644--- a/src/chrome/src/ui/locales/id.js+++ b/src/chrome/src/ui/locales/id.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Situs bertanya: “{dialog}”","sp.delete.delete": "Hapus","sp.delete.dont_delete": "Jangan hapus",+ "sp.unverified.question.commit": "Commit ini di {host}?",+ "sp.unverified.question.submit": "Kirim ini di {host}?",+ "sp.unverified.question.publish": "Publikasikan ini di {host}?",+ "sp.unverified.question.click": "Klik kontrol ini di {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain sudah mengetik teksnya, tetapi tidak dapat membacanya kembali dengan tepat.",+ "sp.unverified.reason.draft_unverified": "WebBrain tidak dapat memastikan bahwa postingan sesuai dengan permintaan Anda.",+ "sp.unverified.reason.draft_unobserved": "WebBrain tidak dapat membaca kembali postingan.",+ "sp.unverified.reason.submit_unclear": "WebBrain tidak dapat mengetahui apakah tindakan ini juga melakukan commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain tidak dapat mengetahui fungsi kontrol ini, dan sesuatu sudah dikirim sebelum koreksi Anda.",+ "sp.unverified.reason.repeat_unverified": "Klik sebelumnya pada kontrol ini mungkin sudah berhasil, dan WebBrain tidak dapat memeriksanya.",+ "sp.unverified.reason.step_unverified": "WebBrain tidak dapat memverifikasi langkah ini.",+ "sp.unverified.content.editor": "Di editor sekarang:",+ "sp.unverified.content.composer": "Di penyusun postingan sekarang:",+ "sp.unverified.content.page": "Di halaman sekarang:",+ "sp.unverified.check_page": "Periksa halaman sebelum Anda menjawab.",+ "sp.unverified.go_ahead": "Lanjutkan",+ "sp.unverified.dont": "Jangan lanjutkan","sp.recipient.reason_unrequested": "WebBrain tidak dapat memastikan dari permintaan Anda bahwa pesan harus dikirim. Percakapan yang terbuka di {host} adalah dengan {recipient}.","sp.recipient.reason_unnamed": "WebBrain tidak dapat memastikan dari permintaan Anda siapa yang harus menerima pesan ini. Percakapan yang terbuka di {host} adalah dengan {recipient}.",'st.tab.permissions': "Izin",diff --git a/src/chrome/src/ui/locales/ja.js b/src/chrome/src/ui/locales/ja.jsindex 161bc38ee..f097f8162 100644--- a/src/chrome/src/ui/locales/ja.js+++ b/src/chrome/src/ui/locales/ja.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "サイトの確認:「{dialog}」","sp.delete.delete": "削除する","sp.delete.dont_delete": "削除しない",+ "sp.unverified.question.commit": "{host} でこれをコミットしますか?",+ "sp.unverified.question.submit": "{host} でこれを送信しますか?",+ "sp.unverified.question.publish": "{host} でこれを公開しますか?",+ "sp.unverified.question.click": "{host} でこのコントロールをクリックしますか?",+ "sp.unverified.reason.editor_unverified": "WebBrain はテキストを入力しましたが、正確に読み返せませんでした。",+ "sp.unverified.reason.draft_unverified": "WebBrain は投稿がリクエストと一致することを確認できませんでした。",+ "sp.unverified.reason.draft_unobserved": "WebBrain は投稿を読み返せませんでした。",+ "sp.unverified.reason.submit_unclear": "WebBrain はこの操作でコミットもされるかどうかを判断できません。",+ "sp.unverified.reason.target_unresolved": "WebBrain はこのコントロールの動作を判断できません。また、修正の前にすでに何かが送信されています。",+ "sp.unverified.reason.repeat_unverified": "このコントロールへの以前のクリックがすでに反映されている可能性があり、WebBrain は確認できませんでした。",+ "sp.unverified.reason.step_unverified": "WebBrain はこのステップを確認できませんでした。",+ "sp.unverified.content.editor": "現在のエディターの内容:",+ "sp.unverified.content.composer": "現在の作成欄の内容:",+ "sp.unverified.content.page": "現在のページの内容:",+ "sp.unverified.check_page": "回答する前にページを確認してください。",+ "sp.unverified.go_ahead": "続行する",+ "sp.unverified.dont": "続行しない","sp.recipient.reason_unrequested": "WebBrain はリクエストから、メッセージを送るべきかどうか判断できませんでした。{host} で開いている会話の相手は {recipient} です。","sp.recipient.reason_unnamed": "WebBrain はリクエストから、このメッセージを誰に送るか判断できませんでした。{host} で開いている会話の相手は {recipient} です。",'st.tab.permissions': "権限",diff --git a/src/chrome/src/ui/locales/ko.js b/src/chrome/src/ui/locales/ko.jsindex 6d8aa6fac..93dd46edd 100644--- a/src/chrome/src/ui/locales/ko.js+++ b/src/chrome/src/ui/locales/ko.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "사이트 확인 메시지: “{dialog}”","sp.delete.delete": "삭제","sp.delete.dont_delete": "삭제하지 않기",+ "sp.unverified.question.commit": "{host}에서 이 내용을 커밋할까요?",+ "sp.unverified.question.submit": "{host}에서 이 내용을 제출할까요?",+ "sp.unverified.question.publish": "{host}에서 이 내용을 게시할까요?",+ "sp.unverified.question.click": "{host}에서 이 컨트롤을 클릭할까요?",+ "sp.unverified.reason.editor_unverified": "WebBrain이 텍스트를 입력했지만 정확히 다시 읽지 못했습니다.",+ "sp.unverified.reason.draft_unverified": "WebBrain이 게시물이 요청과 일치하는지 확인하지 못했습니다.",+ "sp.unverified.reason.draft_unobserved": "WebBrain이 게시물을 다시 읽지 못했습니다.",+ "sp.unverified.reason.submit_unclear": "WebBrain은 이 작업이 커밋까지 하는지 알 수 없습니다.",+ "sp.unverified.reason.target_unresolved": "WebBrain은 이 컨트롤이 무엇을 하는지 알 수 없으며, 수정하기 전에 이미 무언가가 제출되었습니다.",+ "sp.unverified.reason.repeat_unverified": "이 컨트롤에 대한 이전 클릭이 이미 적용되었을 수 있으며, WebBrain이 확인하지 못했습니다.",+ "sp.unverified.reason.step_unverified": "WebBrain이 이 단계를 확인하지 못했습니다.",+ "sp.unverified.content.editor": "현재 편집기 내용:",+ "sp.unverified.content.composer": "현재 작성 창 내용:",+ "sp.unverified.content.page": "현재 페이지 내용:",+ "sp.unverified.check_page": "답하기 전에 페이지를 확인하세요.",+ "sp.unverified.go_ahead": "계속하기",+ "sp.unverified.dont": "계속하지 않기","sp.recipient.reason_unrequested": "WebBrain이 요청에서 메시지를 보내야 하는지 판단하지 못했습니다. {host}에서 열려 있는 대화 상대는 {recipient}입니다.","sp.recipient.reason_unnamed": "WebBrain이 요청에서 이 메시지를 누구에게 보낼지 판단하지 못했습니다. {host}에서 열려 있는 대화 상대는 {recipient}입니다.",'st.tab.permissions': "권한",diff --git a/src/chrome/src/ui/locales/ms.js b/src/chrome/src/ui/locales/ms.jsindex 7ffa32c85..fa4b79415 100644--- a/src/chrome/src/ui/locales/ms.js+++ b/src/chrome/src/ui/locales/ms.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Laman bertanya: “{dialog}”","sp.delete.delete": "Padam","sp.delete.dont_delete": "Jangan padam",+ "sp.unverified.question.commit": "Commit ini di {host}?",+ "sp.unverified.question.submit": "Serahkan ini di {host}?",+ "sp.unverified.question.publish": "Terbitkan ini di {host}?",+ "sp.unverified.question.click": "Klik kawalan ini di {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain telah menaip teks itu tetapi tidak dapat membacanya semula dengan tepat.",+ "sp.unverified.reason.draft_unverified": "WebBrain tidak dapat mengesahkan bahawa siaran itu sepadan dengan permintaan anda.",+ "sp.unverified.reason.draft_unobserved": "WebBrain tidak dapat membaca semula siaran itu.",+ "sp.unverified.reason.submit_unclear": "WebBrain tidak dapat menentukan sama ada tindakan ini turut membuat commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain tidak dapat menentukan fungsi kawalan ini, dan sesuatu telah pun dihantar sebelum pembetulan anda.",+ "sp.unverified.reason.repeat_unverified": "Klik terdahulu pada kawalan ini mungkin sudah berjaya, dan WebBrain tidak dapat menyemaknya.",+ "sp.unverified.reason.step_unverified": "WebBrain tidak dapat mengesahkan langkah ini.",+ "sp.unverified.content.editor": "Dalam editor sekarang:",+ "sp.unverified.content.composer": "Dalam ruang karang sekarang:",+ "sp.unverified.content.page": "Pada halaman sekarang:",+ "sp.unverified.check_page": "Semak halaman sebelum anda menjawab.",+ "sp.unverified.go_ahead": "Teruskan",+ "sp.unverified.dont": "Jangan teruskan","sp.recipient.reason_unrequested": "WebBrain tidak dapat memastikan daripada permintaan anda bahawa mesej perlu dihantar. Perbualan yang terbuka di {host} adalah dengan {recipient}.","sp.recipient.reason_unnamed": "WebBrain tidak dapat memastikan daripada permintaan anda siapa yang patut menerima mesej ini. Perbualan yang terbuka di {host} adalah dengan {recipient}.",'st.tab.permissions': "Kebenaran",diff --git a/src/chrome/src/ui/locales/nl.js b/src/chrome/src/ui/locales/nl.jsindex 97919158a..80fe53c48 100644--- a/src/chrome/src/ui/locales/nl.js+++ b/src/chrome/src/ui/locales/nl.js@@ -425,6 +425,23 @@ export default {"sp.delete.site_asks": "De site vraagt: ‘{dialog}’","sp.delete.delete": "Verwijderen","sp.delete.dont_delete": "Niet verwijderen",+ "sp.unverified.question.commit": "Dit committen op {host}?",+ "sp.unverified.question.submit": "Dit versturen op {host}?",+ "sp.unverified.question.publish": "Dit publiceren op {host}?",+ "sp.unverified.question.click": "Op dit bedieningselement klikken op {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain heeft de tekst getypt, maar kon die niet exact teruglezen.",+ "sp.unverified.reason.draft_unverified": "WebBrain kon niet bevestigen dat het bericht overeenkomt met je verzoek.",+ "sp.unverified.reason.draft_unobserved": "WebBrain kon het bericht niet teruglezen.",+ "sp.unverified.reason.submit_unclear": "WebBrain kan niet zien of deze actie ook commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain kan niet zien wat dit bedieningselement doet, en er is vóór je correctie al iets verstuurd.",+ "sp.unverified.reason.repeat_unverified": "Een eerdere klik op dit bedieningselement heeft misschien al gewerkt, en WebBrain kon dat niet controleren.",+ "sp.unverified.reason.step_unverified": "WebBrain kon deze stap niet controleren.",+ "sp.unverified.content.editor": "Nu in de editor:",+ "sp.unverified.content.composer": "Nu in het opstelvenster:",+ "sp.unverified.content.page": "Nu op de pagina:",+ "sp.unverified.check_page": "Controleer de pagina voordat je antwoordt.",+ "sp.unverified.go_ahead": "Doorgaan",+ "sp.unverified.dont": "Niet doorgaan","sp.recipient.reason_unrequested": "WebBrain kon uit je verzoek niet opmaken dat er een bericht verstuurd moet worden. Het geopende gesprek op {host} is met {recipient}.","sp.recipient.reason_unnamed": "WebBrain kon uit je verzoek niet opmaken wie dit bericht moet krijgen. Het geopende gesprek op {host} is met {recipient}.",'sp.perm.skip_hint': 'Minder onderbrekingen? "Altijd toestaan" onthoudt deze site. Het onderstaande commando schakelt WebBrain-machtigingsvragen uit op elke site.',diff --git a/src/chrome/src/ui/locales/pl.js b/src/chrome/src/ui/locales/pl.jsindex 4858a71eb..4118016bf 100644--- a/src/chrome/src/ui/locales/pl.js+++ b/src/chrome/src/ui/locales/pl.js@@ -332,6 +332,23 @@ export default {"sp.delete.site_asks": "Strona pyta: „{dialog}”","sp.delete.delete": "Usuń","sp.delete.dont_delete": "Nie usuwaj",+ "sp.unverified.question.commit": "Zatwierdzić (commit) to w {host}?",+ "sp.unverified.question.submit": "Wysłać to w {host}?",+ "sp.unverified.question.publish": "Opublikować to w {host}?",+ "sp.unverified.question.click": "Kliknąć ten element sterujący w {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain wpisał tekst, ale nie mógł go dokładnie odczytać z powrotem.",+ "sp.unverified.reason.draft_unverified": "WebBrain nie mógł potwierdzić, że post odpowiada Twojej prośbie.",+ "sp.unverified.reason.draft_unobserved": "WebBrain nie mógł odczytać posta z powrotem.",+ "sp.unverified.reason.submit_unclear": "WebBrain nie wie, czy ta akcja również wykonuje commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain nie wie, co robi ten element sterujący, a przed Twoją poprawką coś już zostało wysłane.",+ "sp.unverified.reason.repeat_unverified": "Wcześniejsze kliknięcie tego elementu sterującego mogło już zadziałać, a WebBrain nie mógł tego sprawdzić.",+ "sp.unverified.reason.step_unverified": "WebBrain nie mógł zweryfikować tego kroku.",+ "sp.unverified.content.editor": "Teraz w edytorze:",+ "sp.unverified.content.composer": "Teraz w oknie tworzenia posta:",+ "sp.unverified.content.page": "Teraz na stronie:",+ "sp.unverified.check_page": "Sprawdź stronę, zanim odpowiesz.",+ "sp.unverified.go_ahead": "Kontynuuj",+ "sp.unverified.dont": "Nie kontynuuj","sp.recipient.reason_unrequested": "WebBrain nie mógł ustalić z Twojej prośby, że należy wysłać wiadomość. Otwarta rozmowa w {host} jest z {recipient}.","sp.recipient.reason_unnamed": "WebBrain nie mógł ustalić z Twojej prośby, kto ma otrzymać tę wiadomość. Otwarta rozmowa w {host} jest z {recipient}.",'sp.perm.verb.navigate': 'przejść do',diff --git a/src/chrome/src/ui/locales/pt.js b/src/chrome/src/ui/locales/pt.jsindex e761db526..544759688 100644--- a/src/chrome/src/ui/locales/pt.js+++ b/src/chrome/src/ui/locales/pt.js@@ -437,6 +437,23 @@ export default {"sp.delete.site_asks": "O site pergunta: “{dialog}”","sp.delete.delete": "Excluir","sp.delete.dont_delete": "Não excluir",+ "sp.unverified.question.commit": "Fazer commit disto em {host}?",+ "sp.unverified.question.submit": "Enviar isto em {host}?",+ "sp.unverified.question.publish": "Publicar isto em {host}?",+ "sp.unverified.question.click": "Clicar neste controle em {host}?",+ "sp.unverified.reason.editor_unverified": "O WebBrain digitou o texto, mas não conseguiu relê-lo com exatidão.",+ "sp.unverified.reason.draft_unverified": "O WebBrain não conseguiu confirmar que a publicação corresponde ao seu pedido.",+ "sp.unverified.reason.draft_unobserved": "O WebBrain não conseguiu reler a publicação.",+ "sp.unverified.reason.submit_unclear": "O WebBrain não consegue saber se esta ação também faz o commit.",+ "sp.unverified.reason.target_unresolved": "O WebBrain não consegue saber o que este controle faz, e algo já foi enviado antes da sua correção.",+ "sp.unverified.reason.repeat_unverified": "Um clique anterior neste controle pode já ter funcionado, e o WebBrain não conseguiu verificar.",+ "sp.unverified.reason.step_unverified": "O WebBrain não conseguiu verificar esta etapa.",+ "sp.unverified.content.editor": "No editor agora:",+ "sp.unverified.content.composer": "Na caixa de publicação agora:",+ "sp.unverified.content.page": "Na página agora:",+ "sp.unverified.check_page": "Confira a página antes de responder.",+ "sp.unverified.go_ahead": "Continuar",+ "sp.unverified.dont": "Não continuar","sp.recipient.reason_unrequested": "O WebBrain não conseguiu entender pelo seu pedido que uma mensagem deve ser enviada. A conversa aberta em {host} é com {recipient}.","sp.recipient.reason_unnamed": "O WebBrain não conseguiu entender pelo seu pedido quem deve receber esta mensagem. A conversa aberta em {host} é com {recipient}.",'sp.perm.skip_hint': "Quer menos interrupções? “Sempre permitir” lembra este site. O comando abaixo desativa os prompts de permissão WebBrain em todos os sites.",diff --git a/src/chrome/src/ui/locales/ru.js b/src/chrome/src/ui/locales/ru.jsindex 8e52bfda3..b5aa37a5f 100644--- a/src/chrome/src/ui/locales/ru.js+++ b/src/chrome/src/ui/locales/ru.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Сайт спрашивает: «{dialog}»","sp.delete.delete": "Удалить","sp.delete.dont_delete": "Не удалять",+ "sp.unverified.question.commit": "Закоммитить это на {host}?",+ "sp.unverified.question.submit": "Отправить это на {host}?",+ "sp.unverified.question.publish": "Опубликовать это на {host}?",+ "sp.unverified.question.click": "Нажать этот элемент управления на {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain ввёл текст, но не смог точно прочитать его обратно.",+ "sp.unverified.reason.draft_unverified": "WebBrain не смог подтвердить, что публикация соответствует вашему запросу.",+ "sp.unverified.reason.draft_unobserved": "WebBrain не смог прочитать публикацию обратно.",+ "sp.unverified.reason.submit_unclear": "WebBrain не может определить, выполняет ли это действие ещё и коммит.",+ "sp.unverified.reason.target_unresolved": "WebBrain не может определить, что делает этот элемент управления, а до вашей правки уже что-то было отправлено.",+ "sp.unverified.reason.repeat_unverified": "Предыдущее нажатие на этот элемент управления, возможно, уже сработало, а WebBrain не смог это проверить.",+ "sp.unverified.reason.step_unverified": "WebBrain не смог проверить этот шаг.",+ "sp.unverified.content.editor": "Сейчас в редакторе:",+ "sp.unverified.content.composer": "Сейчас в окне публикации:",+ "sp.unverified.content.page": "Сейчас на странице:",+ "sp.unverified.check_page": "Проверьте страницу, прежде чем отвечать.",+ "sp.unverified.go_ahead": "Продолжить",+ "sp.unverified.dont": "Не продолжать","sp.recipient.reason_unrequested": "WebBrain не смог понять из вашего запроса, что нужно отправить сообщение. Открытый диалог на {host}: {recipient}.","sp.recipient.reason_unnamed": "WebBrain не смог понять из вашего запроса, кому отправить это сообщение. Открытый диалог на {host}: {recipient}.",'st.tab.permissions': "Разрешения",diff --git a/src/chrome/src/ui/locales/th.js b/src/chrome/src/ui/locales/th.jsindex 438e3159b..e5334cb9e 100644--- a/src/chrome/src/ui/locales/th.js+++ b/src/chrome/src/ui/locales/th.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "เว็บไซต์ถามว่า: “{dialog}”","sp.delete.delete": "ลบ","sp.delete.dont_delete": "ไม่ลบ",+ "sp.unverified.question.commit": "คอมมิตสิ่งนี้บน {host} ไหม?",+ "sp.unverified.question.submit": "ส่งสิ่งนี้บน {host} ไหม?",+ "sp.unverified.question.publish": "เผยแพร่สิ่งนี้บน {host} ไหม?",+ "sp.unverified.question.click": "คลิกตัวควบคุมนี้บน {host} ไหม?",+ "sp.unverified.reason.editor_unverified": "WebBrain พิมพ์ข้อความแล้ว แต่อ่านกลับให้ตรงทุกตัวอักษรไม่ได้",+ "sp.unverified.reason.draft_unverified": "WebBrain ยืนยันไม่ได้ว่าโพสต์ตรงกับคำขอของคุณ",+ "sp.unverified.reason.draft_unobserved": "WebBrain อ่านโพสต์กลับไม่ได้",+ "sp.unverified.reason.submit_unclear": "WebBrain บอกไม่ได้ว่าการกระทำนี้จะคอมมิตด้วยหรือไม่",+ "sp.unverified.reason.target_unresolved": "WebBrain บอกไม่ได้ว่าตัวควบคุมนี้ทำอะไร และมีบางอย่างถูกส่งไปแล้วก่อนที่คุณจะแก้ไข",+ "sp.unverified.reason.repeat_unverified": "การคลิกตัวควบคุมนี้ครั้งก่อนอาจได้ผลไปแล้ว และ WebBrain ตรวจสอบไม่ได้",+ "sp.unverified.reason.step_unverified": "WebBrain ตรวจสอบขั้นตอนนี้ไม่ได้",+ "sp.unverified.content.editor": "ในตัวแก้ไขตอนนี้:",+ "sp.unverified.content.composer": "ในช่องเขียนโพสต์ตอนนี้:",+ "sp.unverified.content.page": "บนหน้าเว็บตอนนี้:",+ "sp.unverified.check_page": "ตรวจดูหน้าเว็บก่อนตอบ",+ "sp.unverified.go_ahead": "ดำเนินการต่อ",+ "sp.unverified.dont": "ไม่ดำเนินการ","sp.recipient.reason_unrequested": "WebBrain ไม่แน่ใจจากคำขอของคุณว่าต้องส่งข้อความ บทสนทนาที่เปิดอยู่บน {host} คือกับ {recipient}","sp.recipient.reason_unnamed": "WebBrain ไม่แน่ใจจากคำขอของคุณว่าใครควรได้รับข้อความนี้ บทสนทนาที่เปิดอยู่บน {host} คือกับ {recipient}",'st.tab.permissions': "สิทธิ์",diff --git a/src/chrome/src/ui/locales/tl.js b/src/chrome/src/ui/locales/tl.jsindex f99a22de4..d2b271b05 100644--- a/src/chrome/src/ui/locales/tl.js+++ b/src/chrome/src/ui/locales/tl.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Tanong ng site: “{dialog}”","sp.delete.delete": "Burahin","sp.delete.dont_delete": "Huwag burahin",+ "sp.unverified.question.commit": "I-commit ito sa {host}?",+ "sp.unverified.question.submit": "Isumite ito sa {host}?",+ "sp.unverified.question.publish": "I-publish ito sa {host}?",+ "sp.unverified.question.click": "I-click ang kontrol na ito sa {host}?",+ "sp.unverified.reason.editor_unverified": "Na-type ng WebBrain ang teksto pero hindi nito ito mabasa nang eksakto pabalik.",+ "sp.unverified.reason.draft_unverified": "Hindi makumpirma ng WebBrain na tugma ang post sa iyong kahilingan.",+ "sp.unverified.reason.draft_unobserved": "Hindi mabasa ng WebBrain pabalik ang post.",+ "sp.unverified.reason.submit_unclear": "Hindi matukoy ng WebBrain kung nagko-commit din ang aksyong ito.",+ "sp.unverified.reason.target_unresolved": "Hindi matukoy ng WebBrain kung ano ang ginagawa ng kontrol na ito, at may naisumite na bago ang iyong pagwawasto.",+ "sp.unverified.reason.repeat_unverified": "Maaaring gumana na ang naunang pag-click sa kontrol na ito, at hindi ito masuri ng WebBrain.",+ "sp.unverified.reason.step_unverified": "Hindi ma-verify ng WebBrain ang hakbang na ito.",+ "sp.unverified.content.editor": "Nasa editor ngayon:",+ "sp.unverified.content.composer": "Nasa composer ngayon:",+ "sp.unverified.content.page": "Nasa page ngayon:",+ "sp.unverified.check_page": "Tingnan muna ang page bago ka sumagot.",+ "sp.unverified.go_ahead": "Ituloy",+ "sp.unverified.dont": "Huwag ituloy","sp.recipient.reason_unrequested": "Hindi matiyak ng WebBrain mula sa iyong kahilingan na dapat magpadala ng mensahe. Ang bukas na usapan sa {host} ay kay {recipient}.","sp.recipient.reason_unnamed": "Hindi matiyak ng WebBrain mula sa iyong kahilingan kung sino ang dapat makatanggap ng mensaheng ito. Ang bukas na usapan sa {host} ay kay {recipient}.",'st.tab.permissions': "Mga pahintulot",diff --git a/src/chrome/src/ui/locales/tr.js b/src/chrome/src/ui/locales/tr.jsindex 97f5796c5..3a1dd2117 100644--- a/src/chrome/src/ui/locales/tr.js+++ b/src/chrome/src/ui/locales/tr.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Site soruyor: “{dialog}”","sp.delete.delete": "Sil","sp.delete.dont_delete": "Silme",+ "sp.unverified.question.commit": "{host} üzerinde bu commit edilsin mi?",+ "sp.unverified.question.submit": "{host} üzerinde bu gönderilsin mi?",+ "sp.unverified.question.publish": "{host} üzerinde bu yayınlansın mı?",+ "sp.unverified.question.click": "{host} üzerinde bu denetime tıklansın mı?",+ "sp.unverified.reason.editor_unverified": "WebBrain metni yazdı ama birebir geri okuyamadı.",+ "sp.unverified.reason.draft_unverified": "WebBrain gönderinin isteğinle eşleştiğini doğrulayamadı.",+ "sp.unverified.reason.draft_unobserved": "WebBrain gönderiyi geri okuyamadı.",+ "sp.unverified.reason.submit_unclear": "WebBrain bu eylemin commit de yapıp yapmadığını anlayamıyor.",+ "sp.unverified.reason.target_unresolved": "WebBrain bu denetimin ne yaptığını anlayamıyor ve düzeltmenden önce zaten bir şey gönderildi.",+ "sp.unverified.reason.repeat_unverified": "Bu denetime yapılan önceki bir tıklama zaten işe yaramış olabilir ve WebBrain bunu kontrol edemedi.",+ "sp.unverified.reason.step_unverified": "WebBrain bu adımı doğrulayamadı.",+ "sp.unverified.content.editor": "Şu an düzenleyicide:",+ "sp.unverified.content.composer": "Şu an yazma kutusunda:",+ "sp.unverified.content.page": "Şu an sayfada:",+ "sp.unverified.check_page": "Yanıtlamadan önce sayfaya bak.",+ "sp.unverified.go_ahead": "Devam et",+ "sp.unverified.dont": "Devam etme","sp.recipient.reason_unrequested": "WebBrain isteğinden bir mesaj gönderilmesi gerektiğini anlayamadı. {host} üzerinde açık olan sohbet: {recipient}.","sp.recipient.reason_unnamed": "WebBrain isteğinden bu mesajın kime gideceğini anlayamadı. {host} üzerinde açık olan sohbet: {recipient}.",'st.tab.permissions': "İzinler",diff --git a/src/chrome/src/ui/locales/uk.js b/src/chrome/src/ui/locales/uk.jsindex 6703ed065..8841922dd 100644--- a/src/chrome/src/ui/locales/uk.js+++ b/src/chrome/src/ui/locales/uk.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Сайт питає: «{dialog}»","sp.delete.delete": "Видалити","sp.delete.dont_delete": "Не видаляти",+ "sp.unverified.question.commit": "Закомітити це на {host}?",+ "sp.unverified.question.submit": "Надіслати це на {host}?",+ "sp.unverified.question.publish": "Опублікувати це на {host}?",+ "sp.unverified.question.click": "Натиснути цей елемент керування на {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain ввів текст, але не зміг точно прочитати його назад.",+ "sp.unverified.reason.draft_unverified": "WebBrain не зміг підтвердити, що допис відповідає вашому запиту.",+ "sp.unverified.reason.draft_unobserved": "WebBrain не зміг прочитати допис назад.",+ "sp.unverified.reason.submit_unclear": "WebBrain не може визначити, чи ця дія також робить коміт.",+ "sp.unverified.reason.target_unresolved": "WebBrain не може визначити, що робить цей елемент керування, а до вашого виправлення вже щось було надіслано.",+ "sp.unverified.reason.repeat_unverified": "Попереднє натискання цього елемента керування, можливо, вже спрацювало, а WebBrain не зміг це перевірити.",+ "sp.unverified.reason.step_unverified": "WebBrain не зміг перевірити цей крок.",+ "sp.unverified.content.editor": "Зараз у редакторі:",+ "sp.unverified.content.composer": "Зараз у вікні допису:",+ "sp.unverified.content.page": "Зараз на сторінці:",+ "sp.unverified.check_page": "Перевірте сторінку, перш ніж відповідати.",+ "sp.unverified.go_ahead": "Продовжити",+ "sp.unverified.dont": "Не продовжувати","sp.recipient.reason_unrequested": "WebBrain не зміг зрозуміти з вашого запиту, що потрібно надіслати повідомлення. Відкрита розмова на {host}: {recipient}.","sp.recipient.reason_unnamed": "WebBrain не зміг зрозуміти з вашого запиту, кому надіслати це повідомлення. Відкрита розмова на {host}: {recipient}.",'st.tab.permissions': "Дозволи",diff --git a/src/chrome/src/ui/locales/vi.js b/src/chrome/src/ui/locales/vi.jsindex 068456ab9..70ae4a009 100644--- a/src/chrome/src/ui/locales/vi.js+++ b/src/chrome/src/ui/locales/vi.js@@ -437,6 +437,23 @@ export default {"sp.delete.site_asks": "Trang web hỏi: “{dialog}”","sp.delete.delete": "Xóa","sp.delete.dont_delete": "Không xóa",+ "sp.unverified.question.commit": "Commit nội dung này trên {host}?",+ "sp.unverified.question.submit": "Gửi nội dung này trên {host}?",+ "sp.unverified.question.publish": "Đăng nội dung này trên {host}?",+ "sp.unverified.question.click": "Nhấp vào điều khiển này trên {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain đã nhập văn bản nhưng không thể đọc lại chính xác.",+ "sp.unverified.reason.draft_unverified": "WebBrain không thể xác nhận rằng bài đăng khớp với yêu cầu của bạn.",+ "sp.unverified.reason.draft_unobserved": "WebBrain không thể đọc lại bài đăng.",+ "sp.unverified.reason.submit_unclear": "WebBrain không thể biết hành động này có commit luôn hay không.",+ "sp.unverified.reason.target_unresolved": "WebBrain không thể biết điều khiển này làm gì, và đã có nội dung được gửi trước khi bạn chỉnh sửa.",+ "sp.unverified.reason.repeat_unverified": "Một lần nhấp trước đó vào điều khiển này có thể đã có tác dụng, và WebBrain không thể kiểm tra.",+ "sp.unverified.reason.step_unverified": "WebBrain không thể xác minh bước này.",+ "sp.unverified.content.editor": "Hiện trong trình soạn thảo:",+ "sp.unverified.content.composer": "Hiện trong khung soạn bài:",+ "sp.unverified.content.page": "Hiện trên trang:",+ "sp.unverified.check_page": "Hãy kiểm tra trang trước khi trả lời.",+ "sp.unverified.go_ahead": "Tiếp tục",+ "sp.unverified.dont": "Không tiếp tục","sp.recipient.reason_unrequested": "WebBrain không chắc từ yêu cầu của bạn rằng cần gửi tin nhắn. Cuộc trò chuyện đang mở trên {host} là với {recipient}.","sp.recipient.reason_unnamed": "WebBrain không chắc từ yêu cầu của bạn ai sẽ nhận tin nhắn này. Cuộc trò chuyện đang mở trên {host} là với {recipient}.",'sp.perm.skip_hint': "Muốn ít bị gián đoạn hơn? “Luôn cho phép” ghi nhớ trang web này. Lệnh bên dưới vô hiệu hóa lời nhắc cấp phép WebBrain trên mọi trang web.",diff --git a/src/chrome/src/ui/locales/zh.js b/src/chrome/src/ui/locales/zh.jsindex 1ed9f54e4..30cbcf080 100644--- a/src/chrome/src/ui/locales/zh.js+++ b/src/chrome/src/ui/locales/zh.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "网站询问:“{dialog}”","sp.delete.delete": "删除","sp.delete.dont_delete": "不删除",+ "sp.unverified.question.commit": "要在 {host} 上提交(commit)这些内容吗?",+ "sp.unverified.question.submit": "要在 {host} 上提交这些内容吗?",+ "sp.unverified.question.publish": "要在 {host} 上发布这些内容吗?",+ "sp.unverified.question.click": "要在 {host} 上点击这个控件吗?",+ "sp.unverified.reason.editor_unverified": "WebBrain 已输入文本,但无法准确读回。",+ "sp.unverified.reason.draft_unverified": "WebBrain 无法确认这篇帖子与你的请求一致。",+ "sp.unverified.reason.draft_unobserved": "WebBrain 无法读回这篇帖子。",+ "sp.unverified.reason.submit_unclear": "WebBrain 无法判断这个操作是否也会提交(commit)。",+ "sp.unverified.reason.target_unresolved": "WebBrain 无法判断这个控件的作用,而且在你更正之前已经提交过内容。",+ "sp.unverified.reason.repeat_unverified": "之前对这个控件的点击可能已经生效,WebBrain 无法核实。",+ "sp.unverified.reason.step_unverified": "WebBrain 无法验证这一步。",+ "sp.unverified.content.editor": "编辑器中当前的内容:",+ "sp.unverified.content.composer": "撰写框中当前的内容:",+ "sp.unverified.content.page": "页面上当前的内容:",+ "sp.unverified.check_page": "回答前请先查看页面。",+ "sp.unverified.go_ahead": "继续",+ "sp.unverified.dont": "不继续","sp.recipient.reason_unrequested": "WebBrain 无法从你的请求中确定需要发送消息。{host} 上打开的对话对象是 {recipient}。","sp.recipient.reason_unnamed": "WebBrain 无法从你的请求中确定这条消息要发给谁。{host} 上打开的对话对象是 {recipient}。",'st.tab.permissions': "权限",diff --git a/src/chrome/src/ui/sidepanel.js b/src/chrome/src/ui/sidepanel.jsindex 7e6e94f93..ec95751ba 100644--- a/src/chrome/src/ui/sidepanel.js+++ b/src/chrome/src/ui/sidepanel.js@@ -11195,7 +11195,7 @@ function renderClarifyCard(data) {card.dataset.memorySource = scheduledJobId? 'scheduled_clarification': data.workflowHealing || data.pendingReconciliation === true || data.recipientConfirmation- || data.mutationConfirmation+ || data.mutationConfirmation || data.unverifiedStepConfirmation? '': data.submitConfirmation? 'form_confirmation'@@ -11422,6 +11422,63 @@ function renderClarifyCard(data) {return;}+ // Unverifiable step: one of WebBrain's checks could not verify a commit,+ // publish or submit, so it asks instead of refusing. The text is what the+ // page showed when WebBrain asked: page content, shown as text only+ // (textContent, never markup). Fixed choices return stable values+ // ('once'/'deny') with no free-text input, so nothing is parsed. A quality+ // check's card counts down to the answer the user's timeout setting+ // picks; a hard check's card has no countdown.+ if (data.unverifiedStepConfirmation) {+ card.dataset.unverifiedStepConfirmation = '1';+ const step = data.unverifiedStepConfirmation || {};+ const stepHost = String(step.host || '').slice(0, 300) || 'this site';+ const stepAction = ['commit', 'submit', 'publish', 'click'].includes(step.action) ? step.action : 'submit';+ qEl.textContent = t(`sp.unverified.question.${stepAction}`, { host: stepHost });+ const stepReason = ['editor_unverified', 'draft_unverified', 'draft_unobserved',+ 'submit_unclear', 'target_unresolved', 'repeat_unverified'].includes(step.reason) ? step.reason : 'step_unverified';+ const reasonEl = document.createElement('div');+ reasonEl.className = 'clarify-reason';+ reasonEl.textContent = t(`sp.unverified.reason.${stepReason}`);+ card.appendChild(reasonEl);+ const stepText = String(step.content || '').slice(0, 1501);+ const stepLabel = ['editor', 'composer'].includes(step.contentLabel) ? step.contentLabel : 'page';+ const labelEl = document.createElement('div');+ labelEl.className = 'clarify-reason';+ labelEl.textContent = stepText ? t(`sp.unverified.content.${stepLabel}`) : t('sp.unverified.check_page');+ card.appendChild(labelEl);+ if (stepText) {+ const textEl = document.createElement('div');+ textEl.className = 'clarify-subject clarify-content';+ textEl.textContent = stepText;+ card.appendChild(textEl);+ }+ const optionsEl = document.createElement('div');+ optionsEl.className = 'clarify-options';+ for (const [value, label] of [['once', t('sp.unverified.go_ahead')], ['deny', t('sp.unverified.dont')]]) {+ const b = document.createElement('button');+ b.type = 'button';+ b.className = 'clarify-option';+ b.textContent = String(label).slice(0, 200);+ b.dataset.value = value;+ b.addEventListener('click', () => {+ card.dataset.answerLabel = b.textContent;+ submitClarify(card, tabId, clarifyId, value, 'option');+ });+ optionsEl.appendChild(b);+ }+ card.appendChild(optionsEl);+ // The agent's timer decides; this countdown shows it and backs it up.+ const stepTimeoutAnswer = ['once', 'deny'].includes(data.timeoutAnswer) ? data.timeoutAnswer : '';+ if (step.hard !== true && stepTimeoutAnswer && data.timeoutSec > 0 && data.deadlineTs) {+ card.dataset.firstOption = stepTimeoutAnswer;+ startClarifyCountdown(card, { tabId, clarifyId, deadlineTs: Number(data.deadlineTs), firstOption: stepTimeoutAnswer });+ }+ content.appendChild(card);+ scrollToBottom({ force: true });+ return;+ }+// Permission-prompt mode: localized question + fixed choices that// return a stable VALUE ('once'/'always'/'deny'), and NO free-text input —// so there's nothing to parse and no English/locale dependency.@@ -11595,13 +11652,15 @@ function startClarifyCountdown(card, { tabId, clarifyId, deadlineTs, firstOption// with no named option lets the run continue on its own.const timeoutAnswer = String(card.dataset.firstOption || firstOption || '');const continues = card.dataset.timeoutContinues === '1';- const named = !continues && Array.from(card.querySelectorAll('.clarify-option'))- .some(button => button.textContent === timeoutAnswer);+ // A WebBrain card's buttons carry a stable value ('once'/'deny') under a+ // localized label; the countdown names the label.+ const namedButton = continues ? null : Array.from(card.querySelectorAll('.clarify-option'))+ .find(button => button.textContent === timeoutAnswer || (!!button.dataset.value && button.dataset.value === timeoutAnswer));timerEl.textContent = typeof t === 'function'? (continues? t('sp.clarify.auto_timeout_continue', { seconds: remainingSec })- : named- ? t('sp.clarify.auto_timeout_answer', { answer: timeoutAnswer.slice(0, 80), seconds: remainingSec })+ : namedButton+ ? t('sp.clarify.auto_timeout_answer', { answer: namedButton.textContent.slice(0, 80), seconds: remainingSec }): t('sp.clarify.auto_timeout', { seconds: remainingSec })): `Auto-selects in ${remainingSec}s`;if (remainingMs <= 0) {@@ -11693,6 +11752,9 @@ function lockClarifyCardFromAuto(data) {for (const card of document.querySelectorAll('.clarify-card')) {if (String(card.dataset.clarifyId || '') !== clarifyId) continue;if (card.classList.contains('clarify-answered')) return;+ // WebBrain's own cards never time out, except the unverified-step card+ // of a quality check: it locks on the timeout's answer like a question.+ const unverifiedStep = card.dataset.unverifiedStepConfirmation === '1';if (card.dataset.permission === '1' || card.dataset.submitConfirmation === '1'|| card.dataset.recipientConfirmation === '1' || card.dataset.mutationConfirmation === '1') return;clearClarifyCountdown(card);@@ -11705,9 +11767,13 @@ function lockClarifyCardFromAuto(data) {const prefix = source === 'auto'? (typeof t === 'function' ? t('sp.clarify.auto_selected_instant') : 'Auto-selected (Instant):'): (typeof t === 'function' ? t('sp.clarify.auto_selected') : 'Auto-selected (timed out):');+ // Its answer is a stable value; show the button's label.+ const answerLabel = unverifiedStep+ ? Array.from(card.querySelectorAll('.clarify-option')).find(button => button.dataset.value === answer)?.textContent || answer+ : answer;answered.textContent = data?.continues === true || card.dataset.timeoutContinues === '1'? (typeof t === 'function' ? t('sp.clarify.continued') : 'No reply — WebBrain continued the task')- : `${prefix} ${answer}`;+ : `${prefix} ${answerLabel}`;card.appendChild(answered);placeAnsweredClarifyCardInTimeline(card);scrollToBottom();@@ -11936,9 +12002,16 @@ function submitClarify(card, tabId, clarifyId, answer, source) {} else {prefix = typeof t === 'function' ? t('sp.clarify.your_answer') : 'Your answer:';}+ // A WebBrain card sends a stable value; its backup timeout submit has no+ // clicked label, so the unverified-step card names the matching button.+ const answerLabel = card.dataset.answerLabel+ || (card.dataset.unverifiedStepConfirmation === '1'+ ? Array.from(card.querySelectorAll('.clarify-option')).find(button => button.dataset.value === answer)?.textContent+ : '')+ || answer;answered.textContent = source === 'timeout' && card.dataset.timeoutContinues === '1'? (typeof t === 'function' ? t('sp.clarify.continued') : 'No reply — WebBrain continued the task')- : `${prefix} ${card.dataset.answerLabel || answer}`;+ : `${prefix} ${answerLabel}`;card.appendChild(answered);placeAnsweredClarifyCardInTimeline(card);scrollToBottom();diff --git a/src/chrome/styles/sidepanel.css b/src/chrome/styles/sidepanel.cssindex 5112a8d11..a57b7cb89 100644--- a/src/chrome/styles/sidepanel.css+++ b/src/chrome/styles/sidepanel.css@@ -4201,6 +4201,12 @@ html[dir="rtl"] .composer-toolbar .provider-picker-menu {overflow-wrap: anywhere;}+/* What the page shows on WebBrain's "go ahead?" card about a step it could+ not verify (a file editor or a post draft): longer than a list item. */+.clarify-subject.clarify-content {+ max-height: 220px;+}+.clarify-research-request {max-height: 180px;overflow: auto;diff --git a/src/firefox/src/agent/agent.js b/src/firefox/src/agent/agent.jsindex cf1f3673d..6d486657f 100644--- a/src/firefox/src/agent/agent.js+++ b/src/firefox/src/agent/agent.js@@ -157,6 +157,7 @@ import { extractFirstJsonObject } from './json-extract.js';import { repairAssistantDisplayText, repairClarifyText, sanitizeText as sanitizePlannerText } from './text-sanitize.js';import { clarifyQuestionIsHard, clarifyTimedAnswer, clarifyTimeoutChoice, normalizeClarifyConsequence, normalizeClarifyTimeoutPolicy } from './clarify-timeout.js';import { guardAdvisory, guardEntry, guardOutcome, withGuardAdvisories } from './guard-policy.js';+import { UNVERIFIED_STEP_CONTENT_LIMIT, UNVERIFIED_STEP_PROMPT_KIND, clipUnverifiedStepContent, normalizeUnverifiedStepConfirmation } from './unverified-step.js';import { emptyOutputFailureMessage, modelOutputDiagnostics } from './model-output-diagnostics.js';import { stepLimitUserMessage, terminalGuardUserMessage } from './terminal-messages.js';import { buildCustomSkillsPrompt, buildSkillLoaderDefinition, buildSkillToolDefinitions, buildSkillToolRegistry, getEligibleCustomSkills, getEligibleSkillCatalog, normalizeCustomSkills } from './skills.js';@@ -1994,6 +1995,13 @@ export class Agent extends LoopDetector {mastodonPublication: !explicitlyNotDispatched && dispatchMayHaveOccurred && !result?.formValidationFailed? currentPublication : null,workflowBinding,+ // The user (or the timeout policy) let this go ahead on WebBrain's card+ // although its content could not be verified; the post-submit checks,+ // such as GitHub's committed raw-file check, stay the authority.+ ...(executionContext?.publishesUnverifiedContent === true+ || workflowBinding?.githubFileCommit?.publishesUnverifiedContent === true+ || workflowBinding?.socialPublication?.publishesUnverifiedContent === true+ ? { publishesUnverifiedContent: true } : {}),};if (social && workflowBinding?.socialPublication?.contractKey === social.key) {social.outcomes[workflowBinding.socialPublication.actionId] = {@@ -2407,36 +2415,10 @@ export class Agent extends LoopDetector {};}- _workflowSubmitBindingForAttempt(tabId, pageUrl = '', executionContext = {}, detectedSubmit = null) {- const guard = this._planExecutionGuards.get(tabId);- const siteWorkflow = guard?.siteWorkflow;- if (!guard?.enabled || siteWorkflow?.job?.requiresSubmission !== true || !pageUrl) return null;- if (siteWorkflow.job.template === 'publish' && SOCIAL_PLATFORMS.includes(siteWorkflow.adapterName) && !guard.socialPublication?.dispatch) return null;- const live = resolveAdapterWorkflowJob(pageUrl, siteWorkflow.job.id);- if (!this._sameAdapterWorkflowBinding(siteWorkflow, live)) return null;- const recipientTarget = normalizeMessageTarget(guard.messaging);- const messageBody = this._workflowMessageBody(executionContext?.messageRecipientBody);- const messageBodyBaselineCount = Number(executionContext?.messageRecipientBodyBaselineCount);- const recipientBound = executionContext?.messageRecipientGuardRequired === true- && !!executionContext?.messageRecipientDispatchBinding?.token- && !!messageBody- && Object.prototype.hasOwnProperty.call(executionContext, 'messageRecipientBodyBaselineCount')- && Number.isInteger(messageBodyBaselineCount)- && messageBodyBaselineCount >= 0- && recipientTarget?.target_kind === 'named';- const metadataDetails = this._workflowJobStoresMetadataRequirements(siteWorkflow)- ? this._normalizeWorkflowMetadataRequirementsDetails(guard.workflowMetadataRequirements)- : { items: [], incomplete: false };- const metadataRequirements = metadataDetails.items;- const authoredMetadata = siteWorkflow.job.id === 'update-metadata'- ? this._workflowAuthoredMetadataForSubmit(tabId, pageUrl, siteWorkflow)- : null;- // Requested fields that were never resolved are not absent fields. A job- // whose contract binds them cannot verify anything until they are.- const metadataIncomplete = guard.workflowMetadataRequirementsIncomplete === true- || metadataDetails.incomplete === true- || (this._workflowJobStoresMetadataRequirements(siteWorkflow)- && guard.workflowMetadataRequirementsResolved !== true);+ // The evidence a GitHub file commit binds to: the task's verified+ // replacement proofs of the file editor, the edit scope (repository,+ // branch, path) and whether the requested commit message is proven.+ _githubFileCommitEvidence(tabId, pageUrl, siteWorkflow, metadataRequirements = []) {const replacementRecords = this._verifiedTextReplacements.get(tabId);const replacementRecordValues = [...(replacementRecords instanceof Map? replacementRecords.values()@@ -2522,14 +2504,126 @@ export class Agent extends LoopDetector {)));const commitMessageVerified = !commitMessageRequirement|| (composableMessage && summaryVerified && bodyVerified);+ return { editorProofs: githubEditorReplacements, verifiedReplacement, scope: githubEditScope, commitMessageVerified };+ }++ // The newest write in this task that replaced the whole GitHub file editor+ // on this page and went out, but could not be read back exactly (PR B's+ // unverified-write record: hashes and identity, no raw text). `target`+ // re-reads the same editor; `stepKey` names this exact write.+ _githubUnverifiedEditorCandidate(tabId, pageUrl) {+ const workflow = this._planExecutionGuards.get(tabId)?.siteWorkflow;+ if (workflow?.adapterName !== 'github' || workflow?.job?.id !== 'edit-file-and-commit' || !pageUrl) return null;+ const record = this._unverifiedTextWriteRecord(tabId, { pageUrl,+ match: item => item.textSent === true && item.replacesValue === true && this._isGithubFileEditorRecord(item) });+ if (!record?.expectedSha256 || !Number.isInteger(record.expectedLength)) return null;+ const target = record.locatorType === 'ax' && typeof record.refId === 'string' && record.refId+ ? { locatorType: 'ax', refId: record.refId, ambiguous: false }+ : record.locatorType === 'selector' && typeof record.selector === 'string' && record.selector+ ? { locatorType: 'selector', selector: record.selector, ambiguous: false }+ : typeof record.refreshSelector === 'string' && record.refreshSelector+ ? { locatorType: 'selector', selector: record.refreshSelector, ambiguous: false }+ : null;+ const stepKey = this._sha256TextSync(JSON.stringify(['github-commit-evidence-binding', record.key,+ this._normalizeUrl(record.pageUrl || pageUrl), record.expectedLength, record.expectedSha256, record.recordedAt]));+ return { record, target, stepKey };+ }++ // The user's 'once' for committing the unverified editor write that is+ // still the latest one on this page, or null.+ _approvedGithubUnverifiedEditor(tabId, pageUrl) {+ const candidate = this._githubUnverifiedEditorCandidate(tabId, pageUrl);+ const approval = candidate && this._unverifiedStepApproval(tabId, 'github-commit-evidence-binding', candidate.stepKey);+ return approval ? { record: candidate.record, approval } : null;+ }++ // Before each commit attempt (with the proof refresh): the answer covers+ // the editor text the user was shown. Once the editor reads differently,+ // or no longer reads as the file editor, the answer no longer covers it+ // and the commit asks again.+ async _refreshGithubUnverifiedEditorApproval(tabId, pageUrl) {+ const candidate = this._githubUnverifiedEditorCandidate(tabId, pageUrl);+ const approval = candidate && this._unverifiedStepApproval(tabId, 'github-commit-evidence-binding', candidate.stepKey);+ if (!approval) return;+ let live = null;+ try { live = candidate.target ? await this._textMutationValueDigest(tabId, candidate.target) : null; } catch { live = null; }+ if (!live || !this._isGithubFileEditorRecord({ fieldMeta: live.fieldMeta })+ || live.valueSha256 !== approval.contentSha256 || live.valueLength !== approval.contentLength) {+ approval.stale = true;+ }+ }++ // github-commit-evidence-binding (quality) cannot decide when the only+ // missing piece is the exact editor proof: the editor text went out as a+ // full replacement but its readback could not verify it (CodeMirror reads+ // back rendered text), while the path, branch and commit message bind. It+ // then asks the user on WebBrain's card, showing the editor's text, instead+ // of refusing every commit. A missing write, an unresolved path or branch,+ // missing metadata, conflicting editor proofs, an unproven commit message+ // or an editor that cannot be read now keep the refusal; so do Strict checks.+ _githubCommitEvidenceAsk(tabId, pageUrl, binding) {+ if (this._guardOutcome('github-commit-evidence-binding', { decided: false }) !== 'ask') return null;+ if (!binding || binding.metadataRequirementsIncomplete === true || binding.githubFileCommit) return null;+ const workflow = this._planExecutionGuards.get(tabId)?.siteWorkflow;+ const requirements = Array.isArray(binding.metadataRequirements) ? binding.metadataRequirements : [];+ const evidence = this._githubFileCommitEvidence(tabId, pageUrl, workflow, requirements);+ if (!evidence.scope?.repository || !evidence.scope.branch || !evidence.scope.path+ || evidence.editorProofs.length > 0 || evidence.commitMessageVerified !== true) return null;+ const candidate = this._githubUnverifiedEditorCandidate(tabId, pageUrl);+ if (!candidate?.target) return null;+ return { guardId: 'github-commit-evidence-binding', hard: false, action: 'commit', reason: 'editor_unverified',+ host: normalizeHost(pageUrl) || 'github.com', contentLabel: 'editor', target: candidate.target,+ expectKind: 'github-editor', requireContent: true, stepKey: candidate.stepKey };+ }++ _workflowSubmitBindingForAttempt(tabId, pageUrl = '', executionContext = {}, detectedSubmit = null) {+ const guard = this._planExecutionGuards.get(tabId);+ const siteWorkflow = guard?.siteWorkflow;+ if (!guard?.enabled || siteWorkflow?.job?.requiresSubmission !== true || !pageUrl) return null;+ if (siteWorkflow.job.template === 'publish' && SOCIAL_PLATFORMS.includes(siteWorkflow.adapterName) && !guard.socialPublication?.dispatch) return null;+ const live = resolveAdapterWorkflowJob(pageUrl, siteWorkflow.job.id);+ if (!this._sameAdapterWorkflowBinding(siteWorkflow, live)) return null;+ const recipientTarget = normalizeMessageTarget(guard.messaging);+ const messageBody = this._workflowMessageBody(executionContext?.messageRecipientBody);+ const messageBodyBaselineCount = Number(executionContext?.messageRecipientBodyBaselineCount);+ const recipientBound = executionContext?.messageRecipientGuardRequired === true+ && !!executionContext?.messageRecipientDispatchBinding?.token+ && !!messageBody+ && Object.prototype.hasOwnProperty.call(executionContext, 'messageRecipientBodyBaselineCount')+ && Number.isInteger(messageBodyBaselineCount)+ && messageBodyBaselineCount >= 0+ && recipientTarget?.target_kind === 'named';+ const metadataDetails = this._workflowJobStoresMetadataRequirements(siteWorkflow)+ ? this._normalizeWorkflowMetadataRequirementsDetails(guard.workflowMetadataRequirements)+ : { items: [], incomplete: false };+ const metadataRequirements = metadataDetails.items;+ const authoredMetadata = siteWorkflow.job.id === 'update-metadata'+ ? this._workflowAuthoredMetadataForSubmit(tabId, pageUrl, siteWorkflow)+ : null;+ // Requested fields that were never resolved are not absent fields. A job+ // whose contract binds them cannot verify anything until they are.+ const metadataIncomplete = guard.workflowMetadataRequirementsIncomplete === true+ || metadataDetails.incomplete === true+ || (this._workflowJobStoresMetadataRequirements(siteWorkflow)+ && guard.workflowMetadataRequirementsResolved !== true);+ const githubEvidence = this._githubFileCommitEvidence(tabId, pageUrl, siteWorkflow, metadataRequirements);+ const { scope: githubEditScope, verifiedReplacement, commitMessageVerified } = githubEvidence;+ // The user's answer on WebBrain's card (github-commit-evidence-binding+ // asks when it cannot decide) stands in for the exact editor proof that+ // the editor's readback could not give: only when no verified editor+ // proof exists at all (conflicting proofs stay shut), and only for the+ // editor text the user was shown (_refreshGithubUnverifiedEditorApproval).+ const approvedUnverifiedEditor = !verifiedReplacement && githubEvidence.editorProofs.length === 0 && githubEditScope+ ? this._approvedGithubUnverifiedEditor(tabId, pageUrl) : null;+ const editorEvidence = verifiedReplacement || approvedUnverifiedEditor?.record || null;const githubFileCommit = !metadataIncomplete&& githubEditScope- && verifiedReplacement+ && editorEvidence&& commitMessageVerified? {...githubEditScope,- expectedLength: verifiedReplacement.expectedLength,- expectedSha256: verifiedReplacement.expectedSha256,+ expectedLength: editorEvidence.expectedLength,+ expectedSha256: editorEvidence.expectedSha256,commitMessageVerified,// Chromium's contenteditable readback deterministically expands// newline runs (see _contentEditableValueMatches), so a verified@@ -2537,8 +2631,13 @@ export class Agent extends LoopDetector {// here would permanently block every newline-terminated file;// record which notion of exactness authorized the binding instead.// The byte-exact raw-blob check after the commit stays fail-closed.- readbackByteExact: verifiedReplacement.readbackLength === verifiedReplacement.expectedLength+ readbackByteExact: !!verifiedReplacement+ && verifiedReplacement.readbackLength === verifiedReplacement.expectedLength&& verifiedReplacement.readbackSha256 === verifiedReplacement.expectedSha256,+ // The expected hash is still that of the requested text, so the+ // raw-blob check after the commit verifies the committed bytes.+ ...(approvedUnverifiedEditor ? { editorReadbackVerified: false, publishesUnverifiedContent: true,+ unverifiedApprovalSource: approvedUnverifiedEditor.approval.source } : {}),}: null;const verificationKind = this._workflowVerificationKind(siteWorkflow);@@ -2770,8 +2869,8 @@ export class Agent extends LoopDetector {// requested commit message is proven only before the commit// (commitMessageVerified), and this action could rewrite it while it// commits, so while the request names one the action keeps refusing.- // An inconclusive detection is the cannot-decide case and keeps refusing,- // and so does a missing binding (github-commit-evidence-binding).+ // An inconclusive detection is the cannot-decide case: it asks the user+ // (below). A missing binding keeps refusing (github-commit-evidence-binding).if (name !== 'click' && name !== 'click_ax' && name !== 'iframe_click') {if (looksLikeSubmit && this._guardAdvises('github-commit-split-write-required')) {const pageUrl = await this._currentUrl(tabId);@@ -2787,7 +2886,7 @@ export class Agent extends LoopDetector {return null;}}- return {+ const splitWriteRefusal = {success: false,dispatched: false,noDispatch: true,@@ -2800,12 +2899,32 @@ export class Agent extends LoopDetector {? 'Arbitrary page JavaScript may change the editor or commit message, voiding previously verified proofs. Re-verify the complete values with field reads, then activate the commit control with a separate click; do not bundle mutation and submission.': 'This action can change field values in the same dispatch as submission, so it cannot use previously verified proofs. Write the field with a non-submit call first, verify the complete value, then activate the commit control with a separate click.',};+ // The inconclusive case: WebBrain cannot tell whether this action+ // commits at all. When a commit click would be allowed now (the file+ // and message binding is in place, verified or approved by the user),+ // the user decides on WebBrain's card, which shows the editor's text.+ // One answer covers this one action (_unverifiedStepApproval consume).+ if (inconclusiveSubmitCapable+ && this._guardOutcome('github-commit-split-write-required', { decided: false }) === 'ask') {+ const pageUrl = await this._currentUrl(tabId);+ await this._refreshGithubTextReplacementProofs(tabId, pageUrl);+ const binding = this._workflowSubmitBindingForAttempt(tabId, pageUrl, {}, detectedSubmit);+ if (binding?.metadataRequirementsIncomplete !== true && binding?.githubFileCommit) {+ const stepKey = this._sha256TextSync(JSON.stringify(['github-commit-split-write-required',+ this._normalizeUrl(pageUrl), this._formValidationActionKey(name, args) || name, this._taskTokens.get(tabId) || '']));+ if (this._unverifiedStepApproval(tabId, 'github-commit-split-write-required', stepKey, { consume: true })) return null;+ return { ...splitWriteRefusal, unverifiedStepConfirmation: { guardId: 'github-commit-split-write-required',+ hard: false, action: 'commit', reason: 'submit_unclear', host: normalizeHost(pageUrl) || 'github.com',+ contentLabel: 'editor', target: this._githubEditorReadTarget(tabId, pageUrl), expectKind: 'github-editor', stepKey } };+ }+ }+ return splitWriteRefusal;}const pageUrl = await this._currentUrl(tabId);await this._refreshGithubTextReplacementProofs(tabId, pageUrl);const binding = this._workflowSubmitBindingForAttempt(tabId, pageUrl, {}, detectedSubmit);if (binding?.metadataRequirementsIncomplete !== true && binding?.githubFileCommit) return null;- return {+ const refusal = {success: false,dispatched: false,noDispatch: true,@@ -2816,6 +2935,27 @@ export class Agent extends LoopDetector {...(inconclusiveSubmitCapable ? { inconclusiveSubmitDetection: true } : {}),error: 'Commit submission is blocked because the complete GitHub file-editor replacement, requested commit message, path, or branch is not bound to exact pre-submit evidence. Resolve any uncertain text write with exact readback or reload and restore the editor, then verify the complete file and requested commit message before committing.',};+ const ask = this._githubCommitEvidenceAsk(tabId, pageUrl, binding);+ return ask ? { ...refusal, unverifiedStepConfirmation: ask } : refusal;+ }++ // Where the file editor can be read now for the card: the verified proof's+ // own locator, else the unverified write's.+ _githubEditorReadTarget(tabId, pageUrl) {+ const workflow = this._planExecutionGuards.get(tabId)?.siteWorkflow;+ const proof = this._githubFileCommitEvidence(tabId, pageUrl, workflow, []).verifiedReplacement;+ if (proof) {+ if (proof.focusedProof === true) {+ return typeof proof.refreshSelector === 'string' && proof.refreshSelector+ ? { locatorType: 'selector', selector: proof.refreshSelector, ambiguous: false } : null;+ }+ if (proof.locatorType === 'ax' && typeof proof.refId === 'string') return { locatorType: 'ax', refId: proof.refId, ambiguous: false };+ if (proof.locatorType === 'selector' && typeof proof.selector === 'string') {+ return { locatorType: 'selector', selector: proof.selector, ambiguous: false };+ }+ return null;+ }+ return this._githubUnverifiedEditorCandidate(tabId, pageUrl)?.target || null;}_workflowTerminalText(value) {@@ -5810,7 +5950,21 @@ export class Agent extends LoopDetector {// An unidentified target says nothing about the earlier effect; report// what is actually missing instead of an unreconciled submission.const unresolvedTarget = detectedSubmit?.isSubmit !== true && !isNetworkMutation(name, args) && name !== 'chrome_web_store_publish';+ // steer-prior-submission-target-unresolved (quality) cannot decide: the+ // probe could not identify this control, so it may or may not repeat the+ // earlier submission. The user decides on WebBrain's card instead of a+ // refusal, and one answer covers this one action. Strict checks refuse.+ const stepKey = unresolvedTarget+ && this._guardOutcome('steer-prior-submission-target-unresolved', { decided: false }) === 'ask'+ ? this._sha256TextSync(JSON.stringify(['steer-prior-submission-target-unresolved', guard.taskKey || '',+ Number(guard.steeringPriorSubmission?.actionSequence || 0), name, this._formValidationActionKey(name, args) || name,+ detectedSubmit?.frameDocumentIdentity || this._lastAxScopes.get(tabId)?.documentToken || '']))+ : '';+ if (stepKey && this._unverifiedStepApproval(tabId, 'steer-prior-submission-target-unresolved', stepKey, { consume: true })) return null;return {+ ...(stepKey ? { unverifiedStepConfirmation: { guardId: 'steer-prior-submission-target-unresolved', hard: false,+ action: ['click', 'click_ax', 'iframe_click'].includes(name) ? 'click' : 'submit', reason: 'target_unresolved',+ host: normalizeHost(detectedSubmit?.url || this._lastAxScopes.get(tabId)?.pageUrl || ''), contentLabel: 'page', stepKey } } : {}),success: false, blocked: true, noDispatch: true, dispatched: false,steeringPriorSubmission: true,actionGuard: { stage: 'steering', reason: unresolvedTarget ? 'target_unresolved'@@ -6782,6 +6936,9 @@ export class Agent extends LoopDetector {if (data.mutationConfirmation) {display.mutationConfirmation = record(data.mutationConfirmation, ['kind', 'reason', 'host', 'item', 'url', 'dialog'], 600);}+ if (data.unverifiedStepConfirmation) {+ display.unverifiedStepConfirmation = normalizeUnverifiedStepConfirmation(data.unverifiedStepConfirmation);+ }if (data.researchEscalation) display.researchEscalation = record(data.researchEscalation, ['engine', 'request'], 6000);if (data.workflowHealing) {const target = value => record(value, ['role', 'name', 'label', 'ariaLabel', 'placeholder',@@ -13760,6 +13917,31 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dreturn { action: 'abort', value };}}+ // A quality guard that cannot verify a commit, publish or submit asks+ // the user on WebBrain's card instead of refusing (guard-policy.js+ // 'ask'); 'once' lets this one step go ahead with a note for the model.+ // Strict checks never produce the question, so they keep the refusal.+ if (workflowPreSubmitBlock?.unverifiedStepConfirmation) {+ const askedGuard = String(workflowPreSubmitBlock.unverifiedStepConfirmation.guardId || '');+ workflowPreSubmitBlock = await this._resolveUnverifiedStepConfirmation(tabId, workflowPreSubmitBlock, onUpdate,+ runWorkflowPreSubmitChecks, callState.guardAdvisories);+ // The step goes ahead with content WebBrain could not verify; the+ // submit receipt says so for the completion checks.+ if (!workflowPreSubmitBlock && ['github-commit-evidence-binding', 'social-publication-draft-quality'].includes(askedGuard)) {+ callState.publishesUnverifiedContent = true;+ }+ if (this._hasPendingSteering(tabId) && !this._checkAbort(tabId)) return skipSteeredPermissionWait(toolIndex);+ if (this._checkAbort(tabId) || workflowPreSubmitBlock?.unverifiedStepConfirmationCancelled === true) {+ const value = '[Stopped by user before executing requested tool calls.]';+ this._appendSyntheticToolResults(tabId, toolCalls, toolIndex, messages, onUpdate, step, () => ({+ success: false,+ cancelled: true,+ error: value,+ }));+ onUpdate('warning', { message: 'Stopped by user.' });+ return { action: 'abort', value };+ }+ }if (workflowPreSubmitBlock) {onUpdate('tool_call', { name: fnName, args: fnArgs, outcomeUnknown: false });onUpdate('tool_result', { name: fnName, result: workflowPreSubmitBlock });@@ -14318,7 +14500,8 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d// first, but a mismatched conversation never reaches executeTool().const messageRecipientExecutionContext = { chatCompletionBindingSink: {},...(fnName === 'navigate' && this._completionSubmitStates.get(tabId)?.semanticCommit- ? { _completionNavigationReceipt: {} } : {}) };+ ? { _completionNavigationReceipt: {} } : {}),+ ...(callState.publishesUnverifiedContent === true ? { publishesUnverifiedContent: true } : {}) };let messageRecipientBlock = null;const runMessageRecipientGuard = () => this._withContentActionDeadline(async abortSignal => {@@ -14436,8 +14619,13 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d{ onUpdate, guardAdvisories: callState.guardAdvisories },);this._throwIfAborted(abortSignal);+ // The draft was asked about (and answered) before this deadline+ // started. A question that comes up only now, because the draft+ // changed since, cannot wait for the user here: the refusal+ // stands, without the card's page text.const socialDispatchBlock = pipelineToolbarPreflight.block ? null- : await this._socialPublicationPreSubmitBlock(tabId, fnName, fnArgs, detectedSubmitAction, provider);+ : this._withoutUnverifiedStepAsk(+ await this._socialPublicationPreSubmitBlock(tabId, fnName, fnArgs, detectedSubmitAction, provider));this._throwIfAborted(abortSignal);// Permission, checkpoint and preflight waits can receive a correction.// Recheck after all preparation, before marking or invoking dispatch.@@ -20798,15 +20986,40 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dif (!Array.isArray(detected.publicationResourceUrls) || detected.publicationResourceUrlsComplete !== true) {issues.push({ reason: 'baseline_incomplete' });}- if (issues.length) {- return { ...blocked('Publication preflight failed: ' + [...new Set(issues.map(issue => issue.reason))].join(', ')- + '. Resolve publicationValidation before retrying. For body_mismatch, use the exact contract body; preserve every space and line break. A pending text write must first be verified or restored.'),- publicationValidation: { issues } };- }const documentIdentity = detected.frameDocumentIdentity || '';const frameId = Number.isInteger(detected.frameId) ? detected.frameId : 0;const taskKey = guard.taskKey;const key = this._sha256TextSync(JSON.stringify({ contract: social.key, action, snapshot, pageUrl, documentIdentity, frameId }));+ let publishesUnverifiedContent = false;+ if (issues.length) {+ const refusal = { ...blocked('Publication preflight failed: ' + [...new Set(issues.map(issue => issue.reason))].join(', ')+ + '. Resolve publicationValidation before retrying. For body_mismatch, use the exact contract body; preserve every space and line break. A pending text write must first be verified or restored.'),+ publicationValidation: { issues } };+ // social-publication-draft-quality (quality) cannot decide when the+ // only issues are the draft's readback: a body or media that does not+ // match the contract, or a body, composer or post baseline it could not+ // observe. The user asked to publish here (the contract action is+ // eligible), so WebBrain asks on its card, showing the composer's text,+ // instead of refusing. The account, the reply or quote target and the+ // number of posts are not readback: their issues keep the refusal, and+ // the independent publication audit (unrequested_publication) still+ // runs on the observed draft after a 'once'. Strict checks refuse.+ const draftIssues = new Set(['body_mismatch', 'media_mismatch', 'body_unobserved', 'composer_incomplete', 'baseline_incomplete']);+ if (!issues.every(issue => draftIssues.has(issue.reason))+ || this._guardOutcome('social-publication-draft-quality', { decided: false }) !== 'ask') return refusal;+ if (!this._unverifiedStepApproval(tabId, 'social-publication-draft-quality', key)) {+ const bodies = (Array.isArray(snapshot?.posts) ? snapshot.posts : [])+ .map(post => (typeof post?.bodyText === 'string' ? post.bodyText : '')).filter(Boolean);+ const unobserved = issues.some(issue => ['body_unobserved', 'composer_incomplete'].includes(issue.reason)) || !bodies.length;+ return { ...refusal, unverifiedStepConfirmation: { guardId: 'social-publication-draft-quality', hard: false,+ action: 'publish', reason: unobserved ? 'draft_unobserved' : 'draft_unverified', host: normalizeHost(pageUrl),+ contentLabel: 'composer', text: bodies.join('\n\n'), stepKey: key } };+ }+ // The user's answer covers this exact draft (the key binds the+ // contract action, the observed snapshot and the page); the post goes+ // through the audit below and its receipt says it was not verified.+ publishesUnverifiedContent = true;+ }const auditBlocked = () => {const denied = social.deniedAudit?.status === 'denied';const message = denied@@ -20885,7 +21098,8 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dif (!authorized) return auditBlocked();}social.dispatch = { key, actionId: action.id, snapshot: JSON.parse(JSON.stringify(snapshot)), pageUrl,- documentIdentity, frameId, ...(bypassMatches ? { auditBypassed: true } : {}) };+ documentIdentity, frameId, ...(bypassMatches ? { auditBypassed: true } : {}),+ ...(publishesUnverifiedContent ? { publishesUnverifiedContent: true } : {}) };}// The semantic check can take time. Re-read the same target afterward;// neither a changed draft/account nor a navigated document inherits it.@@ -27136,6 +27350,255 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dreturn next;}+ /**+ * Ask the user, on WebBrain's own card, whether a consequential step may go+ * ahead when one of WebBrain's guards cannot verify it (guard-policy.js,+ * onCannotDecide 'ask'): a commit, publish or submit whose content or+ * effect could not be confirmed. `content` is what the page shows now, as+ * plain text. It is page-derived, so the side panel renders it with+ * textContent only and it never reaches the model+ * (docs/prompt-injection-defense.md). Fixed choices return stable values:+ * 'once' lets this one step go ahead, anything else refuses it. Returns+ * 'once' | 'deny', or null when Stop or a correction cancelled the card.+ *+ * A quality guard's card (`hard: false`) follows Settings → General: the+ * clarify timeout (Off waits for the user, Instant answers at once) and+ * "When a question times out" ('finish' goes ahead, 'safe' does not). A+ * hard-class card never times out, like the recipient and deletion cards,+ * so only the user can let it go ahead. An unattended scheduled run cannot+ * show a card: quality follows the timeout policy at once, hard denies.+ * An answer WebBrain chose (timeout, Instant, unattended) is not the+ * user's: `receipt.source` tells the caller which it was, and it is never+ * recorded as task authority or memory.+ */+ async _promptUnverifiedStepConfirmation(tabId, request = {}, onUpdate = null, receipt = null) {+ const step = normalizeUnverifiedStepConfirmation(request);+ const timedAnswer = step.hard || this._normalizeClarifyTimeoutPolicy(this.clarifyTimeoutPolicy) === 'safe'+ ? 'deny' : 'once';+ const answered = (choice, source) => {+ if (receipt && typeof receipt === 'object') receipt.source = source;+ return choice;+ };+ if (this.scheduledRunPolicies.get(tabId)?.requireConsequentialConfirmation === false) {+ return answered(timedAnswer, 'unattended');+ }+ // Without a card nobody can approve the step.+ if (typeof onUpdate !== 'function') return answered('deny', 'unavailable');+ const clarifyId = `unverified_${secureRandomBase36Token(12)}`;+ // -1 is no timeout: a hard card waits, like the recipient and deletion cards.+ const timeoutSec = step.hard ? -1 : this._normalizeClarifyTimeoutSec(this.clarifyTimeoutSec);+ const waitSec = timeoutSec > 0 ? timeoutSec : 0;+ const tabPending = this._pendingClarifications.get(tabId) || new Map();+ this._pendingClarifications.set(tabId, tabPending);+ const responsePromise = new Promise((resolve) => {+ const entry = { resolve, ts: Date.now(), timer: null, settled: false, timeoutSec: waitSec, deadlineTs: 0, onUpdate };+ if (timeoutSec >= 0) {+ const source = timeoutSec === 0 ? 'auto' : 'timeout';+ const autoSelect = () => {+ entry.timer = null;+ try { onUpdate('clarify_auto', { clarifyId, answer: timedAnswer, source, timeoutSec: waitSec }); }+ catch { /* UI emit must never break the run */ }+ this._settleClarification(entry, { answer: timedAnswer, source });+ };+ if (timeoutSec === 0) {+ entry.timer = setTimeout(autoSelect, 0);+ } else {+ entry.deadlineTs = Date.now() + timeoutSec * 1000;+ entry.timer = setTimeout(autoSelect, timeoutSec * 1000);+ }+ }+ tabPending.set(clarifyId, entry);+ });+ const deadlineTs = tabPending.get(clarifyId)?.deadlineTs || 0;+ try {+ onUpdate('clarify', {+ promptKind: UNVERIFIED_STEP_PROMPT_KIND,+ clarifyId,+ question: this._unverifiedStepQuestion(step),+ unverifiedStepConfirmation: step,+ options: ['once', 'deny'],+ timeoutSec: waitSec,+ ...(timeoutSec >= 0 ? { timeoutAnswer: timedAnswer } : {}),+ ...(deadlineTs ? { deadlineTs } : {}),+ });+ } catch { /* UI emit must never break the run */ }+ const response = await responsePromise;+ this._clearClarifyTimer(tabPending.get(clarifyId));+ tabPending.delete(clarifyId);+ if (tabPending.size === 0 && this._pendingClarifications.get(tabId) === tabPending) this._pendingClarifications.delete(tabId);+ if (response?.cancelled) return null;+ // A timer's answer, whichever timer fired (the agent's or the side+ // panel's backup), is the one decided when the card was shown.+ if (response?.source === 'timeout' || response?.source === 'auto') return answered(timedAnswer, response.source);+ return answered(String(response?.answer || '').trim().toLowerCase() === 'once' ? 'once' : 'deny', 'user');+ }++ // A guard's refusal without its question (and the page text it would show),+ // where no card can be shown.+ _withoutUnverifiedStepAsk(block) {+ if (!block?.unverifiedStepConfirmation) return block;+ const { unverifiedStepConfirmation: _ask, ...refusal } = block;+ return refusal;+ }++ // The card's question in English, for traces and surfaces without the side+ // panel's localized copy.+ _unverifiedStepQuestion(step) {+ const host = step?.host || 'this site';+ return { commit: `Commit this on ${host}?`, publish: `Publish this on ${host}?`,+ click: `Click this control on ${host}?` }[step?.action] || `Submit this on ${host}?`;+ }++ // What an unverified-step card shows: text the guard already holds (a+ // composer snapshot) or the field read now. The digest binds the user's+ // answer to exactly this content; the text is bounded page content that+ // only the card displays.+ async _unverifiedStepReading(tabId, ask) {+ if (typeof ask?.text === 'string') {+ return { text: clipUnverifiedStepContent(ask.text), sha256: this._sha256TextSync(ask.text),+ length: ask.text.length, readable: !!ask.text };+ }+ const unreadable = { text: '', sha256: '', length: null, readable: false };+ if (!ask?.target) return unreadable;+ let digest = null;+ try {+ digest = await this._textMutationValueDigest(tabId, ask.target, null,+ { preview: UNVERIFIED_STEP_CONTENT_LIMIT + 1 });+ } catch { digest = null; }+ // The locator must still name the same kind of field it was written as.+ if (!digest || (ask.expectKind === 'github-editor' && !this._isGithubFileEditorRecord({ fieldMeta: digest.fieldMeta }))) {+ return unreadable;+ }+ return { text: clipUnverifiedStepContent(digest.valuePreview || ''), sha256: digest.valueSha256,+ length: digest.valueLength, readable: true };+ }++ // The user's (or the timeout's) answers about unverified steps in this+ // task, newest last. A guard looks up the answer for its own step key; a+ // 'deny' for the same step and content is not asked again.+ _unverifiedStepDecisions(tabId) {+ const guard = this._planExecutionGuards.get(tabId);+ if (!guard) return [];+ const taskToken = this._taskTokens.get(tabId) || '';+ return (Array.isArray(guard.unverifiedStepDecisions) ? guard.unverifiedStepDecisions : [])+ .filter(entry => entry?.taskKey === guard.taskKey && entry.taskToken === taskToken);+ }++ /**+ * The 'once' that covers this guard's step, or null. `contentSha256`, when+ * given, must be the content the user was shown. A guard whose own refresh+ * found the content changed marks the answer stale; `consume` uses up a+ * one-step answer, so the next such action is asked about again.+ */+ _unverifiedStepApproval(tabId, guardId, stepKey, { contentSha256 = null, consume = false } = {}) {+ if (!stepKey) return null;+ const entry = this._unverifiedStepDecisions(tabId).findLast(item => item.guardId === guardId && item.stepKey === stepKey+ && (contentSha256 === null || item.contentSha256 === contentSha256));+ if (!entry || entry.choice !== 'once' || entry.stale === true || entry.consumed === true) return null;+ if (consume) entry.consumed = true;+ return entry;+ }++ _rememberUnverifiedStepDecision(tabId, ask, reading, choice, source) {+ const guard = this._planExecutionGuards.get(tabId);+ if (!guard) return null;+ const entry = { guardId: String(ask?.guardId || ''), stepKey: String(ask?.stepKey || ''), taskKey: guard.taskKey,+ taskToken: this._taskTokens.get(tabId) || '', contentSha256: reading?.sha256 || '',+ contentLength: Number.isInteger(reading?.length) ? reading.length : null,+ choice: choice === 'once' ? 'once' : 'deny', source: String(source || 'user'), at: Date.now() };+ guard.unverifiedStepDecisions = [...(Array.isArray(guard.unverifiedStepDecisions)+ ? guard.unverifiedStepDecisions.slice(-31) : []), entry];+ return entry;+ }++ // What the model reads about an unverified step, by guard: what could not+ // be verified, and what to check afterwards. Never the page content.+ _unverifiedStepWording(guardId) {+ return {+ 'github-commit-evidence-binding': { subject: 'the editor text WebBrain could not verify', what: 'The editor text could not be verified exactly',+ after: 'Read the committed file back before reporting success; WebBrain checks it against the requested text.',+ declined: 'fix the editor so its text reads back exactly, or report that the commit was not made' },+ 'github-commit-split-write-required': { subject: 'this action, which may commit the file', what: 'WebBrain could not tell whether this action commits',+ after: 'Read the committed file and commit message back before reporting success.',+ declined: 'write the field with a non-submit call, then commit with a separate click' },+ 'social-publication-draft-quality': { subject: 'this post draft', what: 'The post draft could not be verified against the request',+ after: 'Check the published post before reporting success.',+ declined: 'fix the draft so it matches the request, or report that it was not published' },+ 'steer-prior-submission-target-unresolved': { subject: 'this unidentified control', what: 'WebBrain could not tell what this control does',+ after: 'Inspect the page to see what it did before acting again.',+ declined: 'target an identified control by its ref, or report what was not done' },+ 'clickax-task-click-lock': { subject: 'clicking this control again', what: 'An earlier click on this control may already have taken effect',+ after: 'Inspect the page to see what both clicks did before acting again.',+ declined: 'inspect the page to reconcile the earlier click, or report what was not done' },+ }[guardId] || { subject: 'this step', what: 'This step could not be verified', after: 'Check its result before reporting success.',+ declined: 'report what was not done' };+ }++ _unverifiedStepNote(guardId, source) {+ const wording = this._unverifiedStepWording(guardId);+ const answer = source === 'user' ? 'the user approved it on WebBrain\'s card for this one step'+ : source === 'unattended' ? 'this unattended run could not ask, and the user\'s timeout setting let it go ahead'+ : 'nobody answered WebBrain\'s question in time, and the user\'s timeout setting let it go ahead';+ return `${wording.what}; ${answer}. ${wording.after}`;+ }++ _unverifiedStepDeclined(refusal, guardId, source, repeated = false) {+ const wording = this._unverifiedStepWording(guardId);+ const why = source === 'user'+ ? `The user ${repeated ? 'already chose' : 'chose'} not to go ahead with ${wording.subject}`+ : source === 'unattended' ? `This unattended run cannot ask the user about ${wording.subject}`+ : `Nobody answered WebBrain's question in time${repeated ? ' when it was asked before' : ''}, and the user's timeout setting does not let ${wording.subject} go ahead`;+ return { ...refusal, retryable: false, unverifiedStepDeclined: true,+ error: `${why}, so it was not performed. Do not repeat it unchanged; ${wording.declined}.` };+ }++ /**+ * Resolve a pre-dispatch refusal that a guard turned into a question+ * (`block.unverifiedStepConfirmation`): read what the page shows now, ask+ * once on WebBrain's card, record the answer for this exact step and+ * content, and re-run the checks so the action binds to a fresh reading of+ * the same page. Returns null when the action may proceed (its note for+ * the model goes into `advisories`), otherwise the result for the model.+ * With no card to show (no update channel), or nothing to show where the+ * guard requires it, the guard's refusal stands as before.+ */+ async _resolveUnverifiedStepConfirmation(tabId, block, onUpdate, rerunChecks, advisories = null) {+ const ask = block?.unverifiedStepConfirmation;+ if (!ask || typeof ask !== 'object') return block;+ const { unverifiedStepConfirmation: _ask, ...refusal } = block;+ if (typeof onUpdate !== 'function') return refusal;+ const guard = this._planExecutionGuards.get(tabId);+ const taskKey = guard?.taskKey;+ const stillCurrent = () => this._planExecutionGuards.get(tabId) === guard && guard?.taskKey === taskKey+ && !this._checkAbort(tabId);+ const reading = await this._unverifiedStepReading(tabId, ask);+ if (!stillCurrent() || (ask.requireContent === true && !reading.readable)) return refusal;+ const declined = this._unverifiedStepDecisions(tabId).findLast(entry => entry.guardId === ask.guardId+ && entry.stepKey === ask.stepKey && entry.contentSha256 === (reading.sha256 || ''));+ if (declined?.choice === 'deny') return this._unverifiedStepDeclined(refusal, ask.guardId, declined.source, true);+ const receipt = {};+ const choice = await this._promptUnverifiedStepConfirmation(tabId, { ...ask, content: reading.text }, onUpdate, receipt);+ if (choice === null) {+ return { ...refusal, cancelled: true, unverifiedStepConfirmationCancelled: true,+ error: 'The step was not confirmed because the user stopped or corrected the task, so it was not performed.' };+ }+ if (!stillCurrent()) {+ return { ...refusal, error: 'The task changed while the user was being asked about this step, so it was not performed. Continue under the latest request.' };+ }+ const decision = this._rememberUnverifiedStepDecision(tabId, ask, reading, choice, receipt.source);+ if (choice !== 'once') return this._unverifiedStepDeclined(refusal, ask.guardId, receipt.source);+ const next = await rerunChecks();+ if (next?.unverifiedStepConfirmation) {+ // The re-run did not accept the answer: what the page shows changed.+ if (decision) decision.stale = true;+ const { unverifiedStepConfirmation: _changed, ...changed } = next;+ return { ...changed, error: 'What the page shows changed while the user was being asked, so the step was not performed. Read the page again; WebBrain asks again if the step still cannot be verified.' };+ }+ if (next) return next;+ if (Array.isArray(advisories)) advisories.push(guardAdvisory(ask.guardId, this._unverifiedStepNote(ask.guardId, receipt.source)));+ return null;+ }+_fallbackSubmitConfirmationInfo(host, tool, reason, summary = '') {const normalizedHost = normalizeHost(host || '') || String(host || '').trim() || 'this site';return {@@ -30754,7 +31217,10 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d}}- async _textMutationValueDigest(tabId, target, expected = null) {+ // `preview` (characters) also returns the start of the value as plain text,+ // for WebBrain's unverified-step card only; it is page content and never+ // goes to the model.+ async _textMutationValueDigest(tabId, target, expected = null, { preview = 0 } = {}) {if (!target || (target.ambiguous === true && target.focusedProof !== true)) return null;const params = target.locatorType === 'ax' && typeof target.refId === 'string'? { ref_id: target.refId }@@ -30764,6 +31230,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d? { focused: true }: null;if (!params) return null;+ const previewChars = Number.isInteger(preview) && preview > 0 ? Math.min(preview, 4000) : 0;try {const response = await browser.tabs.sendMessage(tabId, {target: 'content',@@ -30771,6 +31238,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dparams: {...params,...(typeof expected === 'string' ? { expected } : {}),+ ...(previewChars ? { preview: previewChars } : {}),},});if (response?.success !== true@@ -30794,6 +31262,8 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d// caller may hold empty/stale scope while this is current.documentToken: String(response.documentToken || ''),pageUrl: String(response.refScopeUrl || ''),+ ...(previewChars && typeof response.valuePreview === 'string'+ ? { valuePreview: response.valuePreview.slice(0, previewChars) } : {}),};} catch {return null;@@ -31010,6 +31480,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d}async _refreshGithubTextReplacementProofs(tabId, pageUrl) {+ await this._refreshGithubUnverifiedEditorApproval(tabId, pageUrl);const records = this._verifiedTextReplacements.get(tabId);if (!(records instanceof Map)) return;for (const [key, record] of records) {@@ -31144,6 +31615,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d* // | 'not_inserted' | 'trusted_retry_failed'* textSent, // true when the text went out (the result reported success)* fieldMeta, // field identity (id, name, labels, contentEditable, codeMirror, …)+ * refreshSelector, // focused writes: element-derived selector read with the write, or null* taskToken, recordedAt, // the task that wrote it; epoch ms* }* `key` selects one editor. Without it, the newest record on `pageUrl`@@ -31323,6 +31795,11 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dreason: advisory.reason,textSent: advisory.textSent,fieldMeta: result.fieldMeta || observed?.fieldMeta || null,+ // A focused write has no locator of its own, and the focus moves on (to+ // the commit dialog, say). The element-derived selector read with the+ // write lets the unverified-step card read the same field later.+ refreshSelector: target.locatorType === 'focused' && typeof observed?.stableSelector === 'string'+ && observed.stableSelector ? observed.stableSelector : null,taskToken: this._taskTokens?.get(tabId) || null,recordedAt: Date.now(),});diff --git a/src/firefox/src/agent/scheduler.js b/src/firefox/src/agent/scheduler.jsindex 73f051e3c..1d09a93fb 100644--- a/src/firefox/src/agent/scheduler.js+++ b/src/firefox/src/agent/scheduler.js@@ -1,4 +1,5 @@import { DECISION_SETTINGS_KEYS, resolveDecisionConfig } from './decision-config.js';+import { normalizeUnverifiedStepConfirmation } from './unverified-step.js';import { createSystemOneEvidence, systemOneEvidenceState } from './systemone-evidence.js';import {buildCompletionQuestions,@@ -178,6 +179,13 @@ function normalizePendingClarify(data, now = Date.now()) {dialog: String(mutationConfirmation.dialog || '').slice(0, 300),};}+ // WebBrain's "go ahead?" card about a step one of its checks could not+ // verify: its question, reason and the page text it shows, so a reopened+ // panel restores the card (with timeoutAnswer above for its countdown).+ const unverifiedStep = asObject(obj.unverifiedStepConfirmation);+ if (unverifiedStep.guardId || unverifiedStep.action) {+ pending.unverifiedStepConfirmation = normalizeUnverifiedStepConfirmation(unverifiedStep);+ }return pending;}diff --git a/src/firefox/src/agent/unverified-step.js b/src/firefox/src/agent/unverified-step.jsnew file mode 100644index 000000000..ba38ce7c5--- /dev/null+++ b/src/firefox/src/agent/unverified-step.js@@ -0,0 +1,54 @@+// The card WebBrain shows when one of its own guards cannot verify a+// consequential step (guard-policy.js, onCannotDecide 'ask'): a commit,+// publish or submit whose content or effect could not be confirmed. Instead+// of refusing the step, WebBrain shows the user what the page holds now and+// asks "go ahead?" with two fixed answers, 'once' and 'deny'.+//+// The card's content is page text, so it is untrusted: it is bounded here,+// the side panel renders it with textContent only, and it is never sent to+// the model. These helpers normalize the card for the agent, for scheduler+// persistence and for a side panel that restores the card after reopening.+// Shared verbatim by the Chrome and Firefox builds.++export const UNVERIFIED_STEP_PROMPT_KIND = 'unverifiedStepConfirmation';+// What the step does; each has a localized question in the side panel.+export const UNVERIFIED_STEP_ACTIONS = Object.freeze(['commit', 'submit', 'publish', 'click']);+// Why WebBrain could not verify it; each has a localized sentence.+export const UNVERIFIED_STEP_REASONS = Object.freeze([+ 'editor_unverified', 'draft_unverified', 'draft_unobserved',+ 'submit_unclear', 'target_unresolved', 'repeat_unverified', 'step_unverified',+]);+// Where the shown text comes from; each has a localized label.+export const UNVERIFIED_STEP_CONTENT_LABELS = Object.freeze(['editor', 'composer', 'page']);+export const UNVERIFIED_STEP_CONTENT_LIMIT = 1500;++/**+ * Plain text for the card: line breaks normalized, at most `limit`+ * characters, cut with an ellipsis. Never splits a surrogate pair, and+ * applying it twice changes nothing.+ */+export function clipUnverifiedStepContent(value, limit = UNVERIFIED_STEP_CONTENT_LIMIT) {+ const text = String(value ?? '').replace(/\r\n?/g, '\n');+ if (text.length <= limit) return text;+ let cut = text.slice(0, limit);+ if (/[\ud800-\udbff]$/.test(cut)) cut = cut.slice(0, -1);+ return `${cut}…`;+}++/**+ * The display fields of an unverified-step card, bounded and limited to the+ * known values. `hard` cards (a hard-class guard) never time out.+ */+export function normalizeUnverifiedStepConfirmation(value) {+ const obj = value && typeof value === 'object' && !Array.isArray(value) ? value : {};+ const clip = (item, limit) => String(item ?? '').slice(0, limit);+ return {+ guardId: clip(obj.guardId, 80),+ hard: obj.hard === true,+ action: UNVERIFIED_STEP_ACTIONS.includes(obj.action) ? obj.action : 'submit',+ host: clip(obj.host, 300),+ reason: UNVERIFIED_STEP_REASONS.includes(obj.reason) ? obj.reason : 'step_unverified',+ content: clipUnverifiedStepContent(obj.content),+ contentLabel: UNVERIFIED_STEP_CONTENT_LABELS.includes(obj.contentLabel) ? obj.contentLabel : 'page',+ };+}diff --git a/src/firefox/src/content/content.js b/src/firefox/src/content/content.jsindex 3c3ca5b56..6f5335402 100644--- a/src/firefox/src/content/content.js+++ b/src/firefox/src/content/content.js@@ -9551,6 +9551,10 @@if ((el.isContentEditable && el.classList?.contains('cm-content') && readCodeMirrorText(el) === null))return { success: false, verified: false, error: 'The CodeMirror editor shows only part of its document (a viewport gap or folded text), so its exact text cannot be read.' };const value = String(el.isContentEditable ? _editableTextValue(el) : (el.value || ''));+ // The start of the same text the digest hashes, for WebBrain's own+ // "go ahead?" card about an unverified field (shown as plain text).+ const previewChars = Number.isInteger(msg.params?.preview) && msg.params.preview > 0+ ? Math.min(msg.params.preview, 4000) : 0;if (!globalThis.crypto?.subtle) return { success: false, error: 'SHA-256 is unavailable' };const digest = await globalThis.crypto.subtle.digest('SHA-256', new TextEncoder().encode(value));const valueSha256 = [...new Uint8Array(digest)]@@ -9570,6 +9574,7 @@readbackExact: reader !== 'rendered',fieldMeta: _fieldMeta(el),stableSelector: _stableFieldSelector(el),+ ...(previewChars ? { valuePreview: value.slice(0, previewChars) } : {}),};} catch (error) {if (error?.code === 'page_feedback_pending') throw error;diff --git a/src/firefox/src/ui/locales/ar.js b/src/firefox/src/ui/locales/ar.jsindex b27bccb27..1e46220bf 100644--- a/src/firefox/src/ui/locales/ar.js+++ b/src/firefox/src/ui/locales/ar.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "يسأل الموقع: “{dialog}”","sp.delete.delete": "حذف","sp.delete.dont_delete": "عدم الحذف",+ "sp.unverified.question.commit": "هل تريد إيداع هذا على {host}؟",+ "sp.unverified.question.submit": "هل تريد إرسال هذا على {host}؟",+ "sp.unverified.question.publish": "هل تريد نشر هذا على {host}؟",+ "sp.unverified.question.click": "هل تريد النقر على عنصر التحكم هذا على {host}؟",+ "sp.unverified.reason.editor_unverified": "كتب WebBrain النص لكنه لم يتمكن من قراءته مرة أخرى بدقة.",+ "sp.unverified.reason.draft_unverified": "لم يتمكن WebBrain من التأكد من أن المنشور يطابق طلبك.",+ "sp.unverified.reason.draft_unobserved": "لم يتمكن WebBrain من قراءة المنشور مرة أخرى.",+ "sp.unverified.reason.submit_unclear": "لا يستطيع WebBrain معرفة ما إذا كان هذا الإجراء يُودِع التغييرات أيضًا.",+ "sp.unverified.reason.target_unresolved": "لا يستطيع WebBrain معرفة ما يفعله عنصر التحكم هذا، وقد أُرسل شيء بالفعل قبل تصحيحك.",+ "sp.unverified.reason.repeat_unverified": "ربما نجحت نقرة سابقة على عنصر التحكم هذا بالفعل، ولم يتمكن WebBrain من التحقق من ذلك.",+ "sp.unverified.reason.step_unverified": "لم يتمكن WebBrain من التحقق من هذه الخطوة.",+ "sp.unverified.content.editor": "في المحرر الآن:",+ "sp.unverified.content.composer": "في نافذة الكتابة الآن:",+ "sp.unverified.content.page": "على الصفحة الآن:",+ "sp.unverified.check_page": "تحقق من الصفحة قبل أن تجيب.",+ "sp.unverified.go_ahead": "متابعة",+ "sp.unverified.dont": "عدم المتابعة","sp.recipient.reason_unrequested": "لم يتمكن WebBrain من فهم أن طلبك يتضمن إرسال رسالة. المحادثة المفتوحة على {host} مع {recipient}.","sp.recipient.reason_unnamed": "لم يتمكن WebBrain من فهم من يجب أن يتلقى هذه الرسالة من طلبك. المحادثة المفتوحة على {host} مع {recipient}.",'st.tab.permissions': "الأذونات",diff --git a/src/firefox/src/ui/locales/bn.js b/src/firefox/src/ui/locales/bn.jsindex 375b787cb..ff8c6869e 100644--- a/src/firefox/src/ui/locales/bn.js+++ b/src/firefox/src/ui/locales/bn.js@@ -435,6 +435,23 @@ export default {"sp.delete.site_asks": "সাইটটি জিজ্ঞেস করছে: “{dialog}”","sp.delete.delete": "মুছুন","sp.delete.dont_delete": "মুছবেন না",+ "sp.unverified.question.commit": "{host}-এ এটি কমিট করবেন?",+ "sp.unverified.question.submit": "{host}-এ এটি জমা দেবেন?",+ "sp.unverified.question.publish": "{host}-এ এটি প্রকাশ করবেন?",+ "sp.unverified.question.click": "{host}-এ এই কন্ট্রোলে ক্লিক করবেন?",+ "sp.unverified.reason.editor_unverified": "WebBrain লেখাটি টাইপ করেছে, কিন্তু সেটি হুবহু আবার পড়তে পারেনি।",+ "sp.unverified.reason.draft_unverified": "পোস্টটি আপনার অনুরোধের সাথে মেলে কি না, WebBrain তা নিশ্চিত করতে পারেনি।",+ "sp.unverified.reason.draft_unobserved": "WebBrain পোস্টটি আবার পড়তে পারেনি।",+ "sp.unverified.reason.submit_unclear": "এই কাজটি কমিটও করে কি না, WebBrain তা বুঝতে পারছে না।",+ "sp.unverified.reason.target_unresolved": "এই কন্ট্রোলটি কী করে, WebBrain তা বুঝতে পারছে না, আর আপনার সংশোধনের আগেই কিছু একটা জমা দেওয়া হয়েছে।",+ "sp.unverified.reason.repeat_unverified": "এই কন্ট্রোলে আগের একটি ক্লিক হয়তো ইতিমধ্যেই কাজ করেছে, আর WebBrain তা যাচাই করতে পারেনি।",+ "sp.unverified.reason.step_unverified": "WebBrain এই ধাপটি যাচাই করতে পারেনি।",+ "sp.unverified.content.editor": "এখন এডিটরে:",+ "sp.unverified.content.composer": "এখন কম্পোজারে:",+ "sp.unverified.content.page": "এখন পৃষ্ঠায়:",+ "sp.unverified.check_page": "উত্তর দেওয়ার আগে পৃষ্ঠাটি দেখে নিন।",+ "sp.unverified.go_ahead": "এগিয়ে যান",+ "sp.unverified.dont": "করবেন না","sp.recipient.reason_unrequested": "WebBrain আপনার অনুরোধ থেকে বুঝতে পারেনি যে একটি বার্তা পাঠাতে হবে। {host}-এ খোলা কথোপকথনটি {recipient}-এর সাথে।","sp.recipient.reason_unnamed": "WebBrain আপনার অনুরোধ থেকে বুঝতে পারেনি এই বার্তাটি কে পাবে। {host}-এ খোলা কথোপকথনটি {recipient}-এর সাথে।",'sp.perm.skip_hint': "কম বাধা চান? \"সর্বদা অনুমতি দিন\" এই সাইটটি মনে রাখে। নীচের কমান্ড প্রতিটি সাইটে WebBrain অনুমতি অনুরোধ নিষ্ক্রিয় করে।",diff --git a/src/firefox/src/ui/locales/de.js b/src/firefox/src/ui/locales/de.jsindex 83fd4b77e..54e21900e 100644--- a/src/firefox/src/ui/locales/de.js+++ b/src/firefox/src/ui/locales/de.js@@ -447,6 +447,23 @@ export default {"sp.delete.site_asks": "Die Website fragt: „{dialog}“","sp.delete.delete": "Löschen","sp.delete.dont_delete": "Nicht löschen",+ "sp.unverified.question.commit": "Das auf {host} committen?",+ "sp.unverified.question.submit": "Das auf {host} absenden?",+ "sp.unverified.question.publish": "Das auf {host} veröffentlichen?",+ "sp.unverified.question.click": "Dieses Steuerelement auf {host} anklicken?",+ "sp.unverified.reason.editor_unverified": "WebBrain hat den Text eingegeben, konnte ihn aber nicht exakt zurücklesen.",+ "sp.unverified.reason.draft_unverified": "WebBrain konnte nicht bestätigen, dass der Beitrag deiner Anfrage entspricht.",+ "sp.unverified.reason.draft_unobserved": "WebBrain konnte den Beitrag nicht zurücklesen.",+ "sp.unverified.reason.submit_unclear": "WebBrain kann nicht erkennen, ob diese Aktion auch committet.",+ "sp.unverified.reason.target_unresolved": "WebBrain kann nicht erkennen, was dieses Steuerelement tut, und vor deiner Korrektur wurde bereits etwas abgesendet.",+ "sp.unverified.reason.repeat_unverified": "Ein früherer Klick auf dieses Steuerelement hat vielleicht schon funktioniert, und WebBrain konnte das nicht prüfen.",+ "sp.unverified.reason.step_unverified": "WebBrain konnte diesen Schritt nicht überprüfen.",+ "sp.unverified.content.editor": "Jetzt im Editor:",+ "sp.unverified.content.composer": "Jetzt im Eingabefenster:",+ "sp.unverified.content.page": "Jetzt auf der Seite:",+ "sp.unverified.check_page": "Prüfe die Seite, bevor du antwortest.",+ "sp.unverified.go_ahead": "Fortfahren",+ "sp.unverified.dont": "Nicht fortfahren","sp.recipient.reason_unrequested": "WebBrain konnte deiner Anfrage nicht entnehmen, dass eine Nachricht gesendet werden soll. Die geöffnete Unterhaltung auf {host} ist mit {recipient}.","sp.recipient.reason_unnamed": "WebBrain konnte deiner Anfrage nicht entnehmen, wer diese Nachricht bekommen soll. Die geöffnete Unterhaltung auf {host} ist mit {recipient}.",'sp.perm.skip_hint': 'Weniger Unterbrechungen? „Immer erlauben" merkt sich diese Website. Der Befehl unten deaktiviert WebBrain-Berechtigungsabfragen auf allen Websites.',diff --git a/src/firefox/src/ui/locales/en.js b/src/firefox/src/ui/locales/en.jsindex 9acc98371..9b7fceaad 100644--- a/src/firefox/src/ui/locales/en.js+++ b/src/firefox/src/ui/locales/en.js@@ -440,6 +440,23 @@ export default {"sp.delete.site_asks": "The site asks: “{dialog}”","sp.delete.delete": "Delete","sp.delete.dont_delete": "Don’t delete",+ "sp.unverified.question.commit": "Commit this on {host}?",+ "sp.unverified.question.submit": "Submit this on {host}?",+ "sp.unverified.question.publish": "Publish this on {host}?",+ "sp.unverified.question.click": "Click this control on {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain typed the text but couldn’t read it back exactly.",+ "sp.unverified.reason.draft_unverified": "WebBrain couldn’t confirm that the post matches your request.",+ "sp.unverified.reason.draft_unobserved": "WebBrain couldn’t read the post back.",+ "sp.unverified.reason.submit_unclear": "WebBrain can’t tell whether this action also commits.",+ "sp.unverified.reason.target_unresolved": "WebBrain can’t tell what this control does, and something was already submitted before your correction.",+ "sp.unverified.reason.repeat_unverified": "An earlier click on this control may already have worked, and WebBrain couldn’t check.",+ "sp.unverified.reason.step_unverified": "WebBrain couldn’t verify this step.",+ "sp.unverified.content.editor": "In the editor now:",+ "sp.unverified.content.composer": "In the composer now:",+ "sp.unverified.content.page": "On the page now:",+ "sp.unverified.check_page": "Check the page before you answer.",+ "sp.unverified.go_ahead": "Go ahead",+ "sp.unverified.dont": "Don’t","sp.recipient.reason_unrequested": "WebBrain couldn’t tell from your request that a message should be sent. The open conversation on {host} is with {recipient}.","sp.recipient.reason_unnamed": "WebBrain couldn’t tell from your request who should get this message. The open conversation on {host} is with {recipient}.",'sp.perm.skip_hint': 'Want fewer interruptions? “Always allow” remembers this site. The command below disables WebBrain permission prompts on every site.',diff --git a/src/firefox/src/ui/locales/es.js b/src/firefox/src/ui/locales/es.jsindex 504f1c70b..275b53fc3 100644--- a/src/firefox/src/ui/locales/es.js+++ b/src/firefox/src/ui/locales/es.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "El sitio pregunta: «{dialog}»","sp.delete.delete": "Eliminar","sp.delete.dont_delete": "No eliminar",+ "sp.unverified.question.commit": "¿Hacer commit de esto en {host}?",+ "sp.unverified.question.submit": "¿Enviar esto en {host}?",+ "sp.unverified.question.publish": "¿Publicar esto en {host}?",+ "sp.unverified.question.click": "¿Hacer clic en este control en {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain escribió el texto, pero no pudo volver a leerlo con exactitud.",+ "sp.unverified.reason.draft_unverified": "WebBrain no pudo confirmar que la publicación coincida con tu solicitud.",+ "sp.unverified.reason.draft_unobserved": "WebBrain no pudo volver a leer la publicación.",+ "sp.unverified.reason.submit_unclear": "WebBrain no puede saber si esta acción también hace el commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain no puede saber qué hace este control, y ya se envió algo antes de tu corrección.",+ "sp.unverified.reason.repeat_unverified": "Es posible que un clic anterior en este control ya haya funcionado, y WebBrain no pudo comprobarlo.",+ "sp.unverified.reason.step_unverified": "WebBrain no pudo verificar este paso.",+ "sp.unverified.content.editor": "Ahora en el editor:",+ "sp.unverified.content.composer": "Ahora en el editor de la publicación:",+ "sp.unverified.content.page": "Ahora en la página:",+ "sp.unverified.check_page": "Revisa la página antes de responder.",+ "sp.unverified.go_ahead": "Continuar",+ "sp.unverified.dont": "No continuar","sp.recipient.reason_unrequested": "WebBrain no pudo deducir de tu solicitud que deba enviarse un mensaje. La conversación abierta en {host} es con {recipient}.","sp.recipient.reason_unnamed": "WebBrain no pudo deducir de tu solicitud quién debe recibir este mensaje. La conversación abierta en {host} es con {recipient}.",'st.tab.permissions': "Permisos",diff --git a/src/firefox/src/ui/locales/fa.js b/src/firefox/src/ui/locales/fa.jsindex 994e2245a..4fdbc3908 100644--- a/src/firefox/src/ui/locales/fa.js+++ b/src/firefox/src/ui/locales/fa.js@@ -435,6 +435,23 @@ export default {"sp.delete.site_asks": "سایت میپرسد: «{dialog}»","sp.delete.delete": "حذف","sp.delete.dont_delete": "حذف نکن",+ "sp.unverified.question.commit": "این در {host} کامیت شود؟",+ "sp.unverified.question.submit": "این در {host} ارسال شود؟",+ "sp.unverified.question.publish": "این در {host} منتشر شود؟",+ "sp.unverified.question.click": "روی این کنترل در {host} کلیک شود؟",+ "sp.unverified.reason.editor_unverified": "WebBrain متن را تایپ کرد اما نتوانست آن را دقیقاً دوباره بخواند.",+ "sp.unverified.reason.draft_unverified": "WebBrain نتوانست تأیید کند که پست با درخواست شما مطابقت دارد.",+ "sp.unverified.reason.draft_unobserved": "WebBrain نتوانست پست را دوباره بخواند.",+ "sp.unverified.reason.submit_unclear": "WebBrain نمیتواند تشخیص دهد که آیا این اقدام کامیت هم انجام میدهد یا نه.",+ "sp.unverified.reason.target_unresolved": "WebBrain نمیتواند تشخیص دهد این کنترل چه میکند، و پیش از اصلاح شما چیزی ارسال شده است.",+ "sp.unverified.reason.repeat_unverified": "ممکن است کلیک قبلی روی این کنترل کار کرده باشد، و WebBrain نتوانست آن را بررسی کند.",+ "sp.unverified.reason.step_unverified": "WebBrain نتوانست این مرحله را بررسی کند.",+ "sp.unverified.content.editor": "اکنون در ویرایشگر:",+ "sp.unverified.content.composer": "اکنون در پنجره نوشتن:",+ "sp.unverified.content.page": "اکنون در صفحه:",+ "sp.unverified.check_page": "پیش از پاسخ دادن، صفحه را بررسی کنید.",+ "sp.unverified.go_ahead": "ادامه بده",+ "sp.unverified.dont": "ادامه نده","sp.recipient.reason_unrequested": "WebBrain از درخواست شما متوجه نشد که باید پیامی ارسال شود. گفتگوی باز در {host} با {recipient} است.","sp.recipient.reason_unnamed": "WebBrain از درخواست شما متوجه نشد این پیام باید به چه کسی برسد. گفتگوی باز در {host} با {recipient} است.",'sp.perm.skip_hint': "وقفه های کمتری می خواهید؟ \"همیشه اجازه دهید\" این سایت را به خاطر می آورد. دستور زیر دستورات مجوز WebBrain را در هر سایت غیرفعال می کند.",diff --git a/src/firefox/src/ui/locales/fr.js b/src/firefox/src/ui/locales/fr.jsindex 6503f6742..7231e088a 100644--- a/src/firefox/src/ui/locales/fr.js+++ b/src/firefox/src/ui/locales/fr.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Le site demande : « {dialog} »","sp.delete.delete": "Supprimer","sp.delete.dont_delete": "Ne pas supprimer",+ "sp.unverified.question.commit": "Valider (commit) ceci sur {host} ?",+ "sp.unverified.question.submit": "Envoyer ceci sur {host} ?",+ "sp.unverified.question.publish": "Publier ceci sur {host} ?",+ "sp.unverified.question.click": "Cliquer sur cette commande sur {host} ?",+ "sp.unverified.reason.editor_unverified": "WebBrain a saisi le texte, mais n’a pas pu le relire exactement.",+ "sp.unverified.reason.draft_unverified": "WebBrain n’a pas pu confirmer que la publication correspond à votre demande.",+ "sp.unverified.reason.draft_unobserved": "WebBrain n’a pas pu relire la publication.",+ "sp.unverified.reason.submit_unclear": "WebBrain ne peut pas savoir si cette action effectue aussi le commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain ne peut pas savoir ce que fait cette commande, et quelque chose a déjà été envoyé avant votre correction.",+ "sp.unverified.reason.repeat_unverified": "Un clic précédent sur cette commande a peut-être déjà fonctionné, et WebBrain n’a pas pu le vérifier.",+ "sp.unverified.reason.step_unverified": "WebBrain n’a pas pu vérifier cette étape.",+ "sp.unverified.content.editor": "Dans l’éditeur en ce moment :",+ "sp.unverified.content.composer": "Dans la zone de rédaction en ce moment :",+ "sp.unverified.content.page": "Sur la page en ce moment :",+ "sp.unverified.check_page": "Vérifiez la page avant de répondre.",+ "sp.unverified.go_ahead": "Continuer",+ "sp.unverified.dont": "Ne pas continuer","sp.recipient.reason_unrequested": "WebBrain n’a pas pu déduire de votre demande qu’un message doit être envoyé. La conversation ouverte sur {host} est avec {recipient}.","sp.recipient.reason_unnamed": "WebBrain n’a pas pu déduire de votre demande qui doit recevoir ce message. La conversation ouverte sur {host} est avec {recipient}.",'st.tab.permissions': "Autorisations",diff --git a/src/firefox/src/ui/locales/he.js b/src/firefox/src/ui/locales/he.jsindex a9c2bde4b..6382dffec 100644--- a/src/firefox/src/ui/locales/he.js+++ b/src/firefox/src/ui/locales/he.js@@ -426,6 +426,23 @@ export default {"sp.delete.site_asks": "האתר שואל: \"{dialog}\"","sp.delete.delete": "למחוק","sp.delete.dont_delete": "לא למחוק",+ "sp.unverified.question.commit": "לבצע commit לזה ב-{host}?",+ "sp.unverified.question.submit": "לשלוח את זה ב-{host}?",+ "sp.unverified.question.publish": "לפרסם את זה ב-{host}?",+ "sp.unverified.question.click": "ללחוץ על הפקד הזה ב-{host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain הקליד את הטקסט אבל לא הצליח לקרוא אותו בחזרה במדויק.",+ "sp.unverified.reason.draft_unverified": "WebBrain לא הצליח לאשר שהפוסט תואם לבקשה שלך.",+ "sp.unverified.reason.draft_unobserved": "WebBrain לא הצליח לקרוא את הפוסט בחזרה.",+ "sp.unverified.reason.submit_unclear": "WebBrain לא יכול לדעת אם הפעולה הזו מבצעת גם commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain לא יכול לדעת מה הפקד הזה עושה, ומשהו כבר נשלח לפני התיקון שלך.",+ "sp.unverified.reason.repeat_unverified": "ייתכן שלחיצה קודמת על הפקד הזה כבר הצליחה, ו-WebBrain לא הצליח לבדוק.",+ "sp.unverified.reason.step_unverified": "WebBrain לא הצליח לאמת את השלב הזה.",+ "sp.unverified.content.editor": "בעורך כרגע:",+ "sp.unverified.content.composer": "בחלון הכתיבה כרגע:",+ "sp.unverified.content.page": "בדף כרגע:",+ "sp.unverified.check_page": "כדאי לבדוק את הדף לפני שעונים.",+ "sp.unverified.go_ahead": "להמשיך",+ "sp.unverified.dont": "לא להמשיך","sp.recipient.reason_unrequested": "WebBrain לא הצליח להבין מהבקשה שלך שיש לשלוח הודעה. השיחה הפתוחה ב-{host} היא עם {recipient}.","sp.recipient.reason_unnamed": "WebBrain לא הצליח להבין מהבקשה שלך מי צריך לקבל את ההודעה הזו. השיחה הפתוחה ב-{host} היא עם {recipient}.","sp.perm.verb.navigate": "לנווט אל",diff --git a/src/firefox/src/ui/locales/hi.js b/src/firefox/src/ui/locales/hi.jsindex 8ee2b8cc8..292bfd848 100644--- a/src/firefox/src/ui/locales/hi.js+++ b/src/firefox/src/ui/locales/hi.js@@ -435,6 +435,23 @@ export default {"sp.delete.site_asks": "साइट पूछ रही है: “{dialog}”","sp.delete.delete": "हटाएँ","sp.delete.dont_delete": "न हटाएँ",+ "sp.unverified.question.commit": "{host} पर इसे कमिट करें?",+ "sp.unverified.question.submit": "{host} पर इसे सबमिट करें?",+ "sp.unverified.question.publish": "{host} पर इसे प्रकाशित करें?",+ "sp.unverified.question.click": "{host} पर इस कंट्रोल पर क्लिक करें?",+ "sp.unverified.reason.editor_unverified": "WebBrain ने टेक्स्ट टाइप किया, लेकिन उसे ठीक-ठीक वापस नहीं पढ़ सका।",+ "sp.unverified.reason.draft_unverified": "WebBrain पुष्टि नहीं कर सका कि पोस्ट आपके अनुरोध से मेल खाती है।",+ "sp.unverified.reason.draft_unobserved": "WebBrain पोस्ट को वापस नहीं पढ़ सका।",+ "sp.unverified.reason.submit_unclear": "WebBrain यह नहीं बता सकता कि यह कार्रवाई कमिट भी करती है या नहीं।",+ "sp.unverified.reason.target_unresolved": "WebBrain यह नहीं बता सकता कि यह कंट्रोल क्या करता है, और आपके सुधार से पहले कुछ सबमिट हो चुका है।",+ "sp.unverified.reason.repeat_unverified": "हो सकता है कि इस कंट्रोल पर पिछला क्लिक पहले ही काम कर चुका हो, और WebBrain इसकी जांच नहीं कर सका।",+ "sp.unverified.reason.step_unverified": "WebBrain इस चरण की पुष्टि नहीं कर सका।",+ "sp.unverified.content.editor": "अभी एडिटर में:",+ "sp.unverified.content.composer": "अभी कंपोज़र में:",+ "sp.unverified.content.page": "अभी पेज पर:",+ "sp.unverified.check_page": "जवाब देने से पहले पेज देख लें।",+ "sp.unverified.go_ahead": "आगे बढ़ें",+ "sp.unverified.dont": "न करें","sp.recipient.reason_unrequested": "WebBrain आपके अनुरोध से यह नहीं समझ सका कि संदेश भेजना है। {host} पर खुली बातचीत {recipient} के साथ है।","sp.recipient.reason_unnamed": "WebBrain आपके अनुरोध से यह नहीं समझ सका कि यह संदेश किसे मिलना चाहिए। {host} पर खुली बातचीत {recipient} के साथ है।",'sp.perm.skip_hint': "क्या आप कम रुकावटें चाहते हैं? \"हमेशा अनुमति दें\" यह साइट याद रखती है। नीचे दिया गया आदेश प्रत्येक साइट पर WebBrain अनुमति संकेतों को अक्षम कर देता है।",diff --git a/src/firefox/src/ui/locales/id.js b/src/firefox/src/ui/locales/id.jsindex fe18f05bd..2b8649802 100644--- a/src/firefox/src/ui/locales/id.js+++ b/src/firefox/src/ui/locales/id.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Situs bertanya: “{dialog}”","sp.delete.delete": "Hapus","sp.delete.dont_delete": "Jangan hapus",+ "sp.unverified.question.commit": "Commit ini di {host}?",+ "sp.unverified.question.submit": "Kirim ini di {host}?",+ "sp.unverified.question.publish": "Publikasikan ini di {host}?",+ "sp.unverified.question.click": "Klik kontrol ini di {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain sudah mengetik teksnya, tetapi tidak dapat membacanya kembali dengan tepat.",+ "sp.unverified.reason.draft_unverified": "WebBrain tidak dapat memastikan bahwa postingan sesuai dengan permintaan Anda.",+ "sp.unverified.reason.draft_unobserved": "WebBrain tidak dapat membaca kembali postingan.",+ "sp.unverified.reason.submit_unclear": "WebBrain tidak dapat mengetahui apakah tindakan ini juga melakukan commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain tidak dapat mengetahui fungsi kontrol ini, dan sesuatu sudah dikirim sebelum koreksi Anda.",+ "sp.unverified.reason.repeat_unverified": "Klik sebelumnya pada kontrol ini mungkin sudah berhasil, dan WebBrain tidak dapat memeriksanya.",+ "sp.unverified.reason.step_unverified": "WebBrain tidak dapat memverifikasi langkah ini.",+ "sp.unverified.content.editor": "Di editor sekarang:",+ "sp.unverified.content.composer": "Di penyusun postingan sekarang:",+ "sp.unverified.content.page": "Di halaman sekarang:",+ "sp.unverified.check_page": "Periksa halaman sebelum Anda menjawab.",+ "sp.unverified.go_ahead": "Lanjutkan",+ "sp.unverified.dont": "Jangan lanjutkan","sp.recipient.reason_unrequested": "WebBrain tidak dapat memastikan dari permintaan Anda bahwa pesan harus dikirim. Percakapan yang terbuka di {host} adalah dengan {recipient}.","sp.recipient.reason_unnamed": "WebBrain tidak dapat memastikan dari permintaan Anda siapa yang harus menerima pesan ini. Percakapan yang terbuka di {host} adalah dengan {recipient}.",'st.tab.permissions': "Izin",diff --git a/src/firefox/src/ui/locales/ja.js b/src/firefox/src/ui/locales/ja.jsindex c592ed582..98c520121 100644--- a/src/firefox/src/ui/locales/ja.js+++ b/src/firefox/src/ui/locales/ja.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "サイトの確認:「{dialog}」","sp.delete.delete": "削除する","sp.delete.dont_delete": "削除しない",+ "sp.unverified.question.commit": "{host} でこれをコミットしますか?",+ "sp.unverified.question.submit": "{host} でこれを送信しますか?",+ "sp.unverified.question.publish": "{host} でこれを公開しますか?",+ "sp.unverified.question.click": "{host} でこのコントロールをクリックしますか?",+ "sp.unverified.reason.editor_unverified": "WebBrain はテキストを入力しましたが、正確に読み返せませんでした。",+ "sp.unverified.reason.draft_unverified": "WebBrain は投稿がリクエストと一致することを確認できませんでした。",+ "sp.unverified.reason.draft_unobserved": "WebBrain は投稿を読み返せませんでした。",+ "sp.unverified.reason.submit_unclear": "WebBrain はこの操作でコミットもされるかどうかを判断できません。",+ "sp.unverified.reason.target_unresolved": "WebBrain はこのコントロールの動作を判断できません。また、修正の前にすでに何かが送信されています。",+ "sp.unverified.reason.repeat_unverified": "このコントロールへの以前のクリックがすでに反映されている可能性があり、WebBrain は確認できませんでした。",+ "sp.unverified.reason.step_unverified": "WebBrain はこのステップを確認できませんでした。",+ "sp.unverified.content.editor": "現在のエディターの内容:",+ "sp.unverified.content.composer": "現在の作成欄の内容:",+ "sp.unverified.content.page": "現在のページの内容:",+ "sp.unverified.check_page": "回答する前にページを確認してください。",+ "sp.unverified.go_ahead": "続行する",+ "sp.unverified.dont": "続行しない","sp.recipient.reason_unrequested": "WebBrain はリクエストから、メッセージを送るべきかどうか判断できませんでした。{host} で開いている会話の相手は {recipient} です。","sp.recipient.reason_unnamed": "WebBrain はリクエストから、このメッセージを誰に送るか判断できませんでした。{host} で開いている会話の相手は {recipient} です。",'st.tab.permissions': "権限",diff --git a/src/firefox/src/ui/locales/ko.js b/src/firefox/src/ui/locales/ko.jsindex 8a7081e07..545f500b3 100644--- a/src/firefox/src/ui/locales/ko.js+++ b/src/firefox/src/ui/locales/ko.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "사이트 확인 메시지: “{dialog}”","sp.delete.delete": "삭제","sp.delete.dont_delete": "삭제하지 않기",+ "sp.unverified.question.commit": "{host}에서 이 내용을 커밋할까요?",+ "sp.unverified.question.submit": "{host}에서 이 내용을 제출할까요?",+ "sp.unverified.question.publish": "{host}에서 이 내용을 게시할까요?",+ "sp.unverified.question.click": "{host}에서 이 컨트롤을 클릭할까요?",+ "sp.unverified.reason.editor_unverified": "WebBrain이 텍스트를 입력했지만 정확히 다시 읽지 못했습니다.",+ "sp.unverified.reason.draft_unverified": "WebBrain이 게시물이 요청과 일치하는지 확인하지 못했습니다.",+ "sp.unverified.reason.draft_unobserved": "WebBrain이 게시물을 다시 읽지 못했습니다.",+ "sp.unverified.reason.submit_unclear": "WebBrain은 이 작업이 커밋까지 하는지 알 수 없습니다.",+ "sp.unverified.reason.target_unresolved": "WebBrain은 이 컨트롤이 무엇을 하는지 알 수 없으며, 수정하기 전에 이미 무언가가 제출되었습니다.",+ "sp.unverified.reason.repeat_unverified": "이 컨트롤에 대한 이전 클릭이 이미 적용되었을 수 있으며, WebBrain이 확인하지 못했습니다.",+ "sp.unverified.reason.step_unverified": "WebBrain이 이 단계를 확인하지 못했습니다.",+ "sp.unverified.content.editor": "현재 편집기 내용:",+ "sp.unverified.content.composer": "현재 작성 창 내용:",+ "sp.unverified.content.page": "현재 페이지 내용:",+ "sp.unverified.check_page": "답하기 전에 페이지를 확인하세요.",+ "sp.unverified.go_ahead": "계속하기",+ "sp.unverified.dont": "계속하지 않기","sp.recipient.reason_unrequested": "WebBrain이 요청에서 메시지를 보내야 하는지 판단하지 못했습니다. {host}에서 열려 있는 대화 상대는 {recipient}입니다.","sp.recipient.reason_unnamed": "WebBrain이 요청에서 이 메시지를 누구에게 보낼지 판단하지 못했습니다. {host}에서 열려 있는 대화 상대는 {recipient}입니다.",'st.tab.permissions': "권한",diff --git a/src/firefox/src/ui/locales/ms.js b/src/firefox/src/ui/locales/ms.jsindex 2cfd03b7c..91f1b90c3 100644--- a/src/firefox/src/ui/locales/ms.js+++ b/src/firefox/src/ui/locales/ms.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Laman bertanya: “{dialog}”","sp.delete.delete": "Padam","sp.delete.dont_delete": "Jangan padam",+ "sp.unverified.question.commit": "Commit ini di {host}?",+ "sp.unverified.question.submit": "Serahkan ini di {host}?",+ "sp.unverified.question.publish": "Terbitkan ini di {host}?",+ "sp.unverified.question.click": "Klik kawalan ini di {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain telah menaip teks itu tetapi tidak dapat membacanya semula dengan tepat.",+ "sp.unverified.reason.draft_unverified": "WebBrain tidak dapat mengesahkan bahawa siaran itu sepadan dengan permintaan anda.",+ "sp.unverified.reason.draft_unobserved": "WebBrain tidak dapat membaca semula siaran itu.",+ "sp.unverified.reason.submit_unclear": "WebBrain tidak dapat menentukan sama ada tindakan ini turut membuat commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain tidak dapat menentukan fungsi kawalan ini, dan sesuatu telah pun dihantar sebelum pembetulan anda.",+ "sp.unverified.reason.repeat_unverified": "Klik terdahulu pada kawalan ini mungkin sudah berjaya, dan WebBrain tidak dapat menyemaknya.",+ "sp.unverified.reason.step_unverified": "WebBrain tidak dapat mengesahkan langkah ini.",+ "sp.unverified.content.editor": "Dalam editor sekarang:",+ "sp.unverified.content.composer": "Dalam ruang karang sekarang:",+ "sp.unverified.content.page": "Pada halaman sekarang:",+ "sp.unverified.check_page": "Semak halaman sebelum anda menjawab.",+ "sp.unverified.go_ahead": "Teruskan",+ "sp.unverified.dont": "Jangan teruskan","sp.recipient.reason_unrequested": "WebBrain tidak dapat memastikan daripada permintaan anda bahawa mesej perlu dihantar. Perbualan yang terbuka di {host} adalah dengan {recipient}.","sp.recipient.reason_unnamed": "WebBrain tidak dapat memastikan daripada permintaan anda siapa yang patut menerima mesej ini. Perbualan yang terbuka di {host} adalah dengan {recipient}.",'st.tab.permissions': "Kebenaran",diff --git a/src/firefox/src/ui/locales/nl.js b/src/firefox/src/ui/locales/nl.jsindex 7f2e65f94..d5eeb9c2d 100644--- a/src/firefox/src/ui/locales/nl.js+++ b/src/firefox/src/ui/locales/nl.js@@ -423,6 +423,23 @@ export default {"sp.delete.site_asks": "De site vraagt: ‘{dialog}’","sp.delete.delete": "Verwijderen","sp.delete.dont_delete": "Niet verwijderen",+ "sp.unverified.question.commit": "Dit committen op {host}?",+ "sp.unverified.question.submit": "Dit versturen op {host}?",+ "sp.unverified.question.publish": "Dit publiceren op {host}?",+ "sp.unverified.question.click": "Op dit bedieningselement klikken op {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain heeft de tekst getypt, maar kon die niet exact teruglezen.",+ "sp.unverified.reason.draft_unverified": "WebBrain kon niet bevestigen dat het bericht overeenkomt met je verzoek.",+ "sp.unverified.reason.draft_unobserved": "WebBrain kon het bericht niet teruglezen.",+ "sp.unverified.reason.submit_unclear": "WebBrain kan niet zien of deze actie ook commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain kan niet zien wat dit bedieningselement doet, en er is vóór je correctie al iets verstuurd.",+ "sp.unverified.reason.repeat_unverified": "Een eerdere klik op dit bedieningselement heeft misschien al gewerkt, en WebBrain kon dat niet controleren.",+ "sp.unverified.reason.step_unverified": "WebBrain kon deze stap niet controleren.",+ "sp.unverified.content.editor": "Nu in de editor:",+ "sp.unverified.content.composer": "Nu in het opstelvenster:",+ "sp.unverified.content.page": "Nu op de pagina:",+ "sp.unverified.check_page": "Controleer de pagina voordat je antwoordt.",+ "sp.unverified.go_ahead": "Doorgaan",+ "sp.unverified.dont": "Niet doorgaan","sp.recipient.reason_unrequested": "WebBrain kon uit je verzoek niet opmaken dat er een bericht verstuurd moet worden. Het geopende gesprek op {host} is met {recipient}.","sp.recipient.reason_unnamed": "WebBrain kon uit je verzoek niet opmaken wie dit bericht moet krijgen. Het geopende gesprek op {host} is met {recipient}.",'sp.perm.skip_hint': 'Minder onderbrekingen? "Altijd toestaan" onthoudt deze site. Het onderstaande commando schakelt WebBrain-machtigingsvragen uit op elke site.',diff --git a/src/firefox/src/ui/locales/pl.js b/src/firefox/src/ui/locales/pl.jsindex 2b5be98ce..1a3fb6133 100644--- a/src/firefox/src/ui/locales/pl.js+++ b/src/firefox/src/ui/locales/pl.js@@ -332,6 +332,23 @@ export default {"sp.delete.site_asks": "Strona pyta: „{dialog}”","sp.delete.delete": "Usuń","sp.delete.dont_delete": "Nie usuwaj",+ "sp.unverified.question.commit": "Zatwierdzić (commit) to w {host}?",+ "sp.unverified.question.submit": "Wysłać to w {host}?",+ "sp.unverified.question.publish": "Opublikować to w {host}?",+ "sp.unverified.question.click": "Kliknąć ten element sterujący w {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain wpisał tekst, ale nie mógł go dokładnie odczytać z powrotem.",+ "sp.unverified.reason.draft_unverified": "WebBrain nie mógł potwierdzić, że post odpowiada Twojej prośbie.",+ "sp.unverified.reason.draft_unobserved": "WebBrain nie mógł odczytać posta z powrotem.",+ "sp.unverified.reason.submit_unclear": "WebBrain nie wie, czy ta akcja również wykonuje commit.",+ "sp.unverified.reason.target_unresolved": "WebBrain nie wie, co robi ten element sterujący, a przed Twoją poprawką coś już zostało wysłane.",+ "sp.unverified.reason.repeat_unverified": "Wcześniejsze kliknięcie tego elementu sterującego mogło już zadziałać, a WebBrain nie mógł tego sprawdzić.",+ "sp.unverified.reason.step_unverified": "WebBrain nie mógł zweryfikować tego kroku.",+ "sp.unverified.content.editor": "Teraz w edytorze:",+ "sp.unverified.content.composer": "Teraz w oknie tworzenia posta:",+ "sp.unverified.content.page": "Teraz na stronie:",+ "sp.unverified.check_page": "Sprawdź stronę, zanim odpowiesz.",+ "sp.unverified.go_ahead": "Kontynuuj",+ "sp.unverified.dont": "Nie kontynuuj","sp.recipient.reason_unrequested": "WebBrain nie mógł ustalić z Twojej prośby, że należy wysłać wiadomość. Otwarta rozmowa w {host} jest z {recipient}.","sp.recipient.reason_unnamed": "WebBrain nie mógł ustalić z Twojej prośby, kto ma otrzymać tę wiadomość. Otwarta rozmowa w {host} jest z {recipient}.",'sp.perm.verb.navigate': 'przejść do',diff --git a/src/firefox/src/ui/locales/pt.js b/src/firefox/src/ui/locales/pt.jsindex 667fd4610..4afd2a061 100644--- a/src/firefox/src/ui/locales/pt.js+++ b/src/firefox/src/ui/locales/pt.js@@ -435,6 +435,23 @@ export default {"sp.delete.site_asks": "O site pergunta: “{dialog}”","sp.delete.delete": "Excluir","sp.delete.dont_delete": "Não excluir",+ "sp.unverified.question.commit": "Fazer commit disto em {host}?",+ "sp.unverified.question.submit": "Enviar isto em {host}?",+ "sp.unverified.question.publish": "Publicar isto em {host}?",+ "sp.unverified.question.click": "Clicar neste controle em {host}?",+ "sp.unverified.reason.editor_unverified": "O WebBrain digitou o texto, mas não conseguiu relê-lo com exatidão.",+ "sp.unverified.reason.draft_unverified": "O WebBrain não conseguiu confirmar que a publicação corresponde ao seu pedido.",+ "sp.unverified.reason.draft_unobserved": "O WebBrain não conseguiu reler a publicação.",+ "sp.unverified.reason.submit_unclear": "O WebBrain não consegue saber se esta ação também faz o commit.",+ "sp.unverified.reason.target_unresolved": "O WebBrain não consegue saber o que este controle faz, e algo já foi enviado antes da sua correção.",+ "sp.unverified.reason.repeat_unverified": "Um clique anterior neste controle pode já ter funcionado, e o WebBrain não conseguiu verificar.",+ "sp.unverified.reason.step_unverified": "O WebBrain não conseguiu verificar esta etapa.",+ "sp.unverified.content.editor": "No editor agora:",+ "sp.unverified.content.composer": "Na caixa de publicação agora:",+ "sp.unverified.content.page": "Na página agora:",+ "sp.unverified.check_page": "Confira a página antes de responder.",+ "sp.unverified.go_ahead": "Continuar",+ "sp.unverified.dont": "Não continuar","sp.recipient.reason_unrequested": "O WebBrain não conseguiu entender pelo seu pedido que uma mensagem deve ser enviada. A conversa aberta em {host} é com {recipient}.","sp.recipient.reason_unnamed": "O WebBrain não conseguiu entender pelo seu pedido quem deve receber esta mensagem. A conversa aberta em {host} é com {recipient}.",'sp.perm.skip_hint': "Quer menos interrupções? “Sempre permitir” lembra este site. O comando abaixo desativa os prompts de permissão WebBrain em todos os sites.",diff --git a/src/firefox/src/ui/locales/ru.js b/src/firefox/src/ui/locales/ru.jsindex 028accc98..c3042b166 100644--- a/src/firefox/src/ui/locales/ru.js+++ b/src/firefox/src/ui/locales/ru.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Сайт спрашивает: «{dialog}»","sp.delete.delete": "Удалить","sp.delete.dont_delete": "Не удалять",+ "sp.unverified.question.commit": "Закоммитить это на {host}?",+ "sp.unverified.question.submit": "Отправить это на {host}?",+ "sp.unverified.question.publish": "Опубликовать это на {host}?",+ "sp.unverified.question.click": "Нажать этот элемент управления на {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain ввёл текст, но не смог точно прочитать его обратно.",+ "sp.unverified.reason.draft_unverified": "WebBrain не смог подтвердить, что публикация соответствует вашему запросу.",+ "sp.unverified.reason.draft_unobserved": "WebBrain не смог прочитать публикацию обратно.",+ "sp.unverified.reason.submit_unclear": "WebBrain не может определить, выполняет ли это действие ещё и коммит.",+ "sp.unverified.reason.target_unresolved": "WebBrain не может определить, что делает этот элемент управления, а до вашей правки уже что-то было отправлено.",+ "sp.unverified.reason.repeat_unverified": "Предыдущее нажатие на этот элемент управления, возможно, уже сработало, а WebBrain не смог это проверить.",+ "sp.unverified.reason.step_unverified": "WebBrain не смог проверить этот шаг.",+ "sp.unverified.content.editor": "Сейчас в редакторе:",+ "sp.unverified.content.composer": "Сейчас в окне публикации:",+ "sp.unverified.content.page": "Сейчас на странице:",+ "sp.unverified.check_page": "Проверьте страницу, прежде чем отвечать.",+ "sp.unverified.go_ahead": "Продолжить",+ "sp.unverified.dont": "Не продолжать","sp.recipient.reason_unrequested": "WebBrain не смог понять из вашего запроса, что нужно отправить сообщение. Открытый диалог на {host}: {recipient}.","sp.recipient.reason_unnamed": "WebBrain не смог понять из вашего запроса, кому отправить это сообщение. Открытый диалог на {host}: {recipient}.",'st.tab.permissions': "Разрешения",diff --git a/src/firefox/src/ui/locales/th.js b/src/firefox/src/ui/locales/th.jsindex 8ca3c29f1..558fcc89c 100644--- a/src/firefox/src/ui/locales/th.js+++ b/src/firefox/src/ui/locales/th.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "เว็บไซต์ถามว่า: “{dialog}”","sp.delete.delete": "ลบ","sp.delete.dont_delete": "ไม่ลบ",+ "sp.unverified.question.commit": "คอมมิตสิ่งนี้บน {host} ไหม?",+ "sp.unverified.question.submit": "ส่งสิ่งนี้บน {host} ไหม?",+ "sp.unverified.question.publish": "เผยแพร่สิ่งนี้บน {host} ไหม?",+ "sp.unverified.question.click": "คลิกตัวควบคุมนี้บน {host} ไหม?",+ "sp.unverified.reason.editor_unverified": "WebBrain พิมพ์ข้อความแล้ว แต่อ่านกลับให้ตรงทุกตัวอักษรไม่ได้",+ "sp.unverified.reason.draft_unverified": "WebBrain ยืนยันไม่ได้ว่าโพสต์ตรงกับคำขอของคุณ",+ "sp.unverified.reason.draft_unobserved": "WebBrain อ่านโพสต์กลับไม่ได้",+ "sp.unverified.reason.submit_unclear": "WebBrain บอกไม่ได้ว่าการกระทำนี้จะคอมมิตด้วยหรือไม่",+ "sp.unverified.reason.target_unresolved": "WebBrain บอกไม่ได้ว่าตัวควบคุมนี้ทำอะไร และมีบางอย่างถูกส่งไปแล้วก่อนที่คุณจะแก้ไข",+ "sp.unverified.reason.repeat_unverified": "การคลิกตัวควบคุมนี้ครั้งก่อนอาจได้ผลไปแล้ว และ WebBrain ตรวจสอบไม่ได้",+ "sp.unverified.reason.step_unverified": "WebBrain ตรวจสอบขั้นตอนนี้ไม่ได้",+ "sp.unverified.content.editor": "ในตัวแก้ไขตอนนี้:",+ "sp.unverified.content.composer": "ในช่องเขียนโพสต์ตอนนี้:",+ "sp.unverified.content.page": "บนหน้าเว็บตอนนี้:",+ "sp.unverified.check_page": "ตรวจดูหน้าเว็บก่อนตอบ",+ "sp.unverified.go_ahead": "ดำเนินการต่อ",+ "sp.unverified.dont": "ไม่ดำเนินการ","sp.recipient.reason_unrequested": "WebBrain ไม่แน่ใจจากคำขอของคุณว่าต้องส่งข้อความ บทสนทนาที่เปิดอยู่บน {host} คือกับ {recipient}","sp.recipient.reason_unnamed": "WebBrain ไม่แน่ใจจากคำขอของคุณว่าใครควรได้รับข้อความนี้ บทสนทนาที่เปิดอยู่บน {host} คือกับ {recipient}",'st.tab.permissions': "สิทธิ์",diff --git a/src/firefox/src/ui/locales/tl.js b/src/firefox/src/ui/locales/tl.jsindex 58305bf1f..b3bf0ec0e 100644--- a/src/firefox/src/ui/locales/tl.js+++ b/src/firefox/src/ui/locales/tl.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Tanong ng site: “{dialog}”","sp.delete.delete": "Burahin","sp.delete.dont_delete": "Huwag burahin",+ "sp.unverified.question.commit": "I-commit ito sa {host}?",+ "sp.unverified.question.submit": "Isumite ito sa {host}?",+ "sp.unverified.question.publish": "I-publish ito sa {host}?",+ "sp.unverified.question.click": "I-click ang kontrol na ito sa {host}?",+ "sp.unverified.reason.editor_unverified": "Na-type ng WebBrain ang teksto pero hindi nito ito mabasa nang eksakto pabalik.",+ "sp.unverified.reason.draft_unverified": "Hindi makumpirma ng WebBrain na tugma ang post sa iyong kahilingan.",+ "sp.unverified.reason.draft_unobserved": "Hindi mabasa ng WebBrain pabalik ang post.",+ "sp.unverified.reason.submit_unclear": "Hindi matukoy ng WebBrain kung nagko-commit din ang aksyong ito.",+ "sp.unverified.reason.target_unresolved": "Hindi matukoy ng WebBrain kung ano ang ginagawa ng kontrol na ito, at may naisumite na bago ang iyong pagwawasto.",+ "sp.unverified.reason.repeat_unverified": "Maaaring gumana na ang naunang pag-click sa kontrol na ito, at hindi ito masuri ng WebBrain.",+ "sp.unverified.reason.step_unverified": "Hindi ma-verify ng WebBrain ang hakbang na ito.",+ "sp.unverified.content.editor": "Nasa editor ngayon:",+ "sp.unverified.content.composer": "Nasa composer ngayon:",+ "sp.unverified.content.page": "Nasa page ngayon:",+ "sp.unverified.check_page": "Tingnan muna ang page bago ka sumagot.",+ "sp.unverified.go_ahead": "Ituloy",+ "sp.unverified.dont": "Huwag ituloy","sp.recipient.reason_unrequested": "Hindi matiyak ng WebBrain mula sa iyong kahilingan na dapat magpadala ng mensahe. Ang bukas na usapan sa {host} ay kay {recipient}.","sp.recipient.reason_unnamed": "Hindi matiyak ng WebBrain mula sa iyong kahilingan kung sino ang dapat makatanggap ng mensaheng ito. Ang bukas na usapan sa {host} ay kay {recipient}.",'st.tab.permissions': "Mga pahintulot",diff --git a/src/firefox/src/ui/locales/tr.js b/src/firefox/src/ui/locales/tr.jsindex 8a1ea77d4..d1aa31baa 100644--- a/src/firefox/src/ui/locales/tr.js+++ b/src/firefox/src/ui/locales/tr.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Site soruyor: “{dialog}”","sp.delete.delete": "Sil","sp.delete.dont_delete": "Silme",+ "sp.unverified.question.commit": "{host} üzerinde bu commit edilsin mi?",+ "sp.unverified.question.submit": "{host} üzerinde bu gönderilsin mi?",+ "sp.unverified.question.publish": "{host} üzerinde bu yayınlansın mı?",+ "sp.unverified.question.click": "{host} üzerinde bu denetime tıklansın mı?",+ "sp.unverified.reason.editor_unverified": "WebBrain metni yazdı ama birebir geri okuyamadı.",+ "sp.unverified.reason.draft_unverified": "WebBrain gönderinin isteğinle eşleştiğini doğrulayamadı.",+ "sp.unverified.reason.draft_unobserved": "WebBrain gönderiyi geri okuyamadı.",+ "sp.unverified.reason.submit_unclear": "WebBrain bu eylemin commit de yapıp yapmadığını anlayamıyor.",+ "sp.unverified.reason.target_unresolved": "WebBrain bu denetimin ne yaptığını anlayamıyor ve düzeltmenden önce zaten bir şey gönderildi.",+ "sp.unverified.reason.repeat_unverified": "Bu denetime yapılan önceki bir tıklama zaten işe yaramış olabilir ve WebBrain bunu kontrol edemedi.",+ "sp.unverified.reason.step_unverified": "WebBrain bu adımı doğrulayamadı.",+ "sp.unverified.content.editor": "Şu an düzenleyicide:",+ "sp.unverified.content.composer": "Şu an yazma kutusunda:",+ "sp.unverified.content.page": "Şu an sayfada:",+ "sp.unverified.check_page": "Yanıtlamadan önce sayfaya bak.",+ "sp.unverified.go_ahead": "Devam et",+ "sp.unverified.dont": "Devam etme","sp.recipient.reason_unrequested": "WebBrain isteğinden bir mesaj gönderilmesi gerektiğini anlayamadı. {host} üzerinde açık olan sohbet: {recipient}.","sp.recipient.reason_unnamed": "WebBrain isteğinden bu mesajın kime gideceğini anlayamadı. {host} üzerinde açık olan sohbet: {recipient}.",'st.tab.permissions': "İzinler",diff --git a/src/firefox/src/ui/locales/uk.js b/src/firefox/src/ui/locales/uk.jsindex 20c497363..893d42378 100644--- a/src/firefox/src/ui/locales/uk.js+++ b/src/firefox/src/ui/locales/uk.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "Сайт питає: «{dialog}»","sp.delete.delete": "Видалити","sp.delete.dont_delete": "Не видаляти",+ "sp.unverified.question.commit": "Закомітити це на {host}?",+ "sp.unverified.question.submit": "Надіслати це на {host}?",+ "sp.unverified.question.publish": "Опублікувати це на {host}?",+ "sp.unverified.question.click": "Натиснути цей елемент керування на {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain ввів текст, але не зміг точно прочитати його назад.",+ "sp.unverified.reason.draft_unverified": "WebBrain не зміг підтвердити, що допис відповідає вашому запиту.",+ "sp.unverified.reason.draft_unobserved": "WebBrain не зміг прочитати допис назад.",+ "sp.unverified.reason.submit_unclear": "WebBrain не може визначити, чи ця дія також робить коміт.",+ "sp.unverified.reason.target_unresolved": "WebBrain не може визначити, що робить цей елемент керування, а до вашого виправлення вже щось було надіслано.",+ "sp.unverified.reason.repeat_unverified": "Попереднє натискання цього елемента керування, можливо, вже спрацювало, а WebBrain не зміг це перевірити.",+ "sp.unverified.reason.step_unverified": "WebBrain не зміг перевірити цей крок.",+ "sp.unverified.content.editor": "Зараз у редакторі:",+ "sp.unverified.content.composer": "Зараз у вікні допису:",+ "sp.unverified.content.page": "Зараз на сторінці:",+ "sp.unverified.check_page": "Перевірте сторінку, перш ніж відповідати.",+ "sp.unverified.go_ahead": "Продовжити",+ "sp.unverified.dont": "Не продовжувати","sp.recipient.reason_unrequested": "WebBrain не зміг зрозуміти з вашого запиту, що потрібно надіслати повідомлення. Відкрита розмова на {host}: {recipient}.","sp.recipient.reason_unnamed": "WebBrain не зміг зрозуміти з вашого запиту, кому надіслати це повідомлення. Відкрита розмова на {host}: {recipient}.",'st.tab.permissions': "Дозволи",diff --git a/src/firefox/src/ui/locales/vi.js b/src/firefox/src/ui/locales/vi.jsindex aebcc0c24..40345a61a 100644--- a/src/firefox/src/ui/locales/vi.js+++ b/src/firefox/src/ui/locales/vi.js@@ -435,6 +435,23 @@ export default {"sp.delete.site_asks": "Trang web hỏi: “{dialog}”","sp.delete.delete": "Xóa","sp.delete.dont_delete": "Không xóa",+ "sp.unverified.question.commit": "Commit nội dung này trên {host}?",+ "sp.unverified.question.submit": "Gửi nội dung này trên {host}?",+ "sp.unverified.question.publish": "Đăng nội dung này trên {host}?",+ "sp.unverified.question.click": "Nhấp vào điều khiển này trên {host}?",+ "sp.unverified.reason.editor_unverified": "WebBrain đã nhập văn bản nhưng không thể đọc lại chính xác.",+ "sp.unverified.reason.draft_unverified": "WebBrain không thể xác nhận rằng bài đăng khớp với yêu cầu của bạn.",+ "sp.unverified.reason.draft_unobserved": "WebBrain không thể đọc lại bài đăng.",+ "sp.unverified.reason.submit_unclear": "WebBrain không thể biết hành động này có commit luôn hay không.",+ "sp.unverified.reason.target_unresolved": "WebBrain không thể biết điều khiển này làm gì, và đã có nội dung được gửi trước khi bạn chỉnh sửa.",+ "sp.unverified.reason.repeat_unverified": "Một lần nhấp trước đó vào điều khiển này có thể đã có tác dụng, và WebBrain không thể kiểm tra.",+ "sp.unverified.reason.step_unverified": "WebBrain không thể xác minh bước này.",+ "sp.unverified.content.editor": "Hiện trong trình soạn thảo:",+ "sp.unverified.content.composer": "Hiện trong khung soạn bài:",+ "sp.unverified.content.page": "Hiện trên trang:",+ "sp.unverified.check_page": "Hãy kiểm tra trang trước khi trả lời.",+ "sp.unverified.go_ahead": "Tiếp tục",+ "sp.unverified.dont": "Không tiếp tục","sp.recipient.reason_unrequested": "WebBrain không chắc từ yêu cầu của bạn rằng cần gửi tin nhắn. Cuộc trò chuyện đang mở trên {host} là với {recipient}.","sp.recipient.reason_unnamed": "WebBrain không chắc từ yêu cầu của bạn ai sẽ nhận tin nhắn này. Cuộc trò chuyện đang mở trên {host} là với {recipient}.",'sp.perm.skip_hint': "Muốn ít bị gián đoạn hơn? “Luôn cho phép” ghi nhớ trang web này. Lệnh bên dưới vô hiệu hóa lời nhắc cấp phép WebBrain trên mọi trang web.",diff --git a/src/firefox/src/ui/locales/zh.js b/src/firefox/src/ui/locales/zh.jsindex bbb421806..923bbc6de 100644--- a/src/firefox/src/ui/locales/zh.js+++ b/src/firefox/src/ui/locales/zh.js@@ -96,6 +96,23 @@ export default {"sp.delete.site_asks": "网站询问:“{dialog}”","sp.delete.delete": "删除","sp.delete.dont_delete": "不删除",+ "sp.unverified.question.commit": "要在 {host} 上提交(commit)这些内容吗?",+ "sp.unverified.question.submit": "要在 {host} 上提交这些内容吗?",+ "sp.unverified.question.publish": "要在 {host} 上发布这些内容吗?",+ "sp.unverified.question.click": "要在 {host} 上点击这个控件吗?",+ "sp.unverified.reason.editor_unverified": "WebBrain 已输入文本,但无法准确读回。",+ "sp.unverified.reason.draft_unverified": "WebBrain 无法确认这篇帖子与你的请求一致。",+ "sp.unverified.reason.draft_unobserved": "WebBrain 无法读回这篇帖子。",+ "sp.unverified.reason.submit_unclear": "WebBrain 无法判断这个操作是否也会提交(commit)。",+ "sp.unverified.reason.target_unresolved": "WebBrain 无法判断这个控件的作用,而且在你更正之前已经提交过内容。",+ "sp.unverified.reason.repeat_unverified": "之前对这个控件的点击可能已经生效,WebBrain 无法核实。",+ "sp.unverified.reason.step_unverified": "WebBrain 无法验证这一步。",+ "sp.unverified.content.editor": "编辑器中当前的内容:",+ "sp.unverified.content.composer": "撰写框中当前的内容:",+ "sp.unverified.content.page": "页面上当前的内容:",+ "sp.unverified.check_page": "回答前请先查看页面。",+ "sp.unverified.go_ahead": "继续",+ "sp.unverified.dont": "不继续","sp.recipient.reason_unrequested": "WebBrain 无法从你的请求中确定需要发送消息。{host} 上打开的对话对象是 {recipient}。","sp.recipient.reason_unnamed": "WebBrain 无法从你的请求中确定这条消息要发给谁。{host} 上打开的对话对象是 {recipient}。",'st.tab.permissions': "权限",diff --git a/src/firefox/src/ui/sidepanel.js b/src/firefox/src/ui/sidepanel.jsindex 76de3c45b..6f1e82bd8 100644--- a/src/firefox/src/ui/sidepanel.js+++ b/src/firefox/src/ui/sidepanel.js@@ -10714,7 +10714,7 @@ function renderClarifyCard(data) {card.dataset.memorySource = scheduledJobId? 'scheduled_clarification': data.workflowHealing || data.pendingReconciliation === true || data.recipientConfirmation- || data.mutationConfirmation+ || data.mutationConfirmation || data.unverifiedStepConfirmation? '': data.submitConfirmation? 'form_confirmation'@@ -10941,6 +10941,63 @@ function renderClarifyCard(data) {return;}+ // Unverifiable step: one of WebBrain's checks could not verify a commit,+ // publish or submit, so it asks instead of refusing. The text is what the+ // page showed when WebBrain asked: page content, shown as text only+ // (textContent, never markup). Fixed choices return stable values+ // ('once'/'deny') with no free-text input, so nothing is parsed. A quality+ // check's card counts down to the answer the user's timeout setting+ // picks; a hard check's card has no countdown.+ if (data.unverifiedStepConfirmation) {+ card.dataset.unverifiedStepConfirmation = '1';+ const step = data.unverifiedStepConfirmation || {};+ const stepHost = String(step.host || '').slice(0, 300) || 'this site';+ const stepAction = ['commit', 'submit', 'publish', 'click'].includes(step.action) ? step.action : 'submit';+ qEl.textContent = t(`sp.unverified.question.${stepAction}`, { host: stepHost });+ const stepReason = ['editor_unverified', 'draft_unverified', 'draft_unobserved',+ 'submit_unclear', 'target_unresolved', 'repeat_unverified'].includes(step.reason) ? step.reason : 'step_unverified';+ const reasonEl = document.createElement('div');+ reasonEl.className = 'clarify-reason';+ reasonEl.textContent = t(`sp.unverified.reason.${stepReason}`);+ card.appendChild(reasonEl);+ const stepText = String(step.content || '').slice(0, 1501);+ const stepLabel = ['editor', 'composer'].includes(step.contentLabel) ? step.contentLabel : 'page';+ const labelEl = document.createElement('div');+ labelEl.className = 'clarify-reason';+ labelEl.textContent = stepText ? t(`sp.unverified.content.${stepLabel}`) : t('sp.unverified.check_page');+ card.appendChild(labelEl);+ if (stepText) {+ const textEl = document.createElement('div');+ textEl.className = 'clarify-subject clarify-content';+ textEl.textContent = stepText;+ card.appendChild(textEl);+ }+ const optionsEl = document.createElement('div');+ optionsEl.className = 'clarify-options';+ for (const [value, label] of [['once', t('sp.unverified.go_ahead')], ['deny', t('sp.unverified.dont')]]) {+ const b = document.createElement('button');+ b.type = 'button';+ b.className = 'clarify-option';+ b.textContent = String(label).slice(0, 200);+ b.dataset.value = value;+ b.addEventListener('click', () => {+ card.dataset.answerLabel = b.textContent;+ submitClarify(card, tabId, clarifyId, value, 'option');+ });+ optionsEl.appendChild(b);+ }+ card.appendChild(optionsEl);+ // The agent's timer decides; this countdown shows it and backs it up.+ const stepTimeoutAnswer = ['once', 'deny'].includes(data.timeoutAnswer) ? data.timeoutAnswer : '';+ if (step.hard !== true && stepTimeoutAnswer && data.timeoutSec > 0 && data.deadlineTs) {+ card.dataset.firstOption = stepTimeoutAnswer;+ startClarifyCountdown(card, { tabId, clarifyId, deadlineTs: Number(data.deadlineTs), firstOption: stepTimeoutAnswer });+ }+ content.appendChild(card);+ scrollToBottom({ force: true });+ return;+ }+// Permission-prompt mode: localized question + fixed choices that// return a stable VALUE ('once'/'always'/'deny'), and NO free-text input —// so there's nothing to parse and no English/locale dependency.@@ -11114,13 +11171,15 @@ function startClarifyCountdown(card, { tabId, clarifyId, deadlineTs, firstOption// with no named option lets the run continue on its own.const timeoutAnswer = String(card.dataset.firstOption || firstOption || '');const continues = card.dataset.timeoutContinues === '1';- const named = !continues && Array.from(card.querySelectorAll('.clarify-option'))- .some(button => button.textContent === timeoutAnswer);+ // A WebBrain card's buttons carry a stable value ('once'/'deny') under a+ // localized label; the countdown names the label.+ const namedButton = continues ? null : Array.from(card.querySelectorAll('.clarify-option'))+ .find(button => button.textContent === timeoutAnswer || (!!button.dataset.value && button.dataset.value === timeoutAnswer));timerEl.textContent = typeof t === 'function'? (continues? t('sp.clarify.auto_timeout_continue', { seconds: remainingSec })- : named- ? t('sp.clarify.auto_timeout_answer', { answer: timeoutAnswer.slice(0, 80), seconds: remainingSec })+ : namedButton+ ? t('sp.clarify.auto_timeout_answer', { answer: namedButton.textContent.slice(0, 80), seconds: remainingSec }): t('sp.clarify.auto_timeout', { seconds: remainingSec })): `Auto-selects in ${remainingSec}s`;if (remainingMs <= 0) {@@ -11216,6 +11275,9 @@ function lockClarifyCardFromAuto(data) {for (const card of document.querySelectorAll('.clarify-card')) {if (String(card.dataset.clarifyId || '') !== clarifyId) continue;if (card.classList.contains('clarify-answered')) return;+ // WebBrain's own cards never time out, except the unverified-step card+ // of a quality check: it locks on the timeout's answer like a question.+ const unverifiedStep = card.dataset.unverifiedStepConfirmation === '1';if (card.dataset.permission === '1' || card.dataset.submitConfirmation === '1'|| card.dataset.recipientConfirmation === '1' || card.dataset.mutationConfirmation === '1') return;clearClarifyCountdown(card);@@ -11228,9 +11290,13 @@ function lockClarifyCardFromAuto(data) {const prefix = source === 'auto'? (typeof t === 'function' ? t('sp.clarify.auto_selected_instant') : 'Auto-selected (Instant):'): (typeof t === 'function' ? t('sp.clarify.auto_selected') : 'Auto-selected (timed out):');+ // Its answer is a stable value; show the button's label.+ const answerLabel = unverifiedStep+ ? Array.from(card.querySelectorAll('.clarify-option')).find(button => button.dataset.value === answer)?.textContent || answer+ : answer;answered.textContent = data?.continues === true || card.dataset.timeoutContinues === '1'? (typeof t === 'function' ? t('sp.clarify.continued') : 'No reply — WebBrain continued the task')- : `${prefix} ${answer}`;+ : `${prefix} ${answerLabel}`;card.appendChild(answered);placeAnsweredClarifyCardInTimeline(card);scrollToBottom();@@ -11590,9 +11656,16 @@ function submitClarify(card, tabId, clarifyId, answer, source) {} else {prefix = typeof t === 'function' ? t('sp.clarify.your_answer') : 'Your answer:';}+ // A WebBrain card sends a stable value; its backup timeout submit has no+ // clicked label, so the unverified-step card names the matching button.+ const answerLabel = card.dataset.answerLabel+ || (card.dataset.unverifiedStepConfirmation === '1'+ ? Array.from(card.querySelectorAll('.clarify-option')).find(button => button.dataset.value === answer)?.textContent+ : '')+ || answer;answered.textContent = source === 'timeout' && card.dataset.timeoutContinues === '1'? (typeof t === 'function' ? t('sp.clarify.continued') : 'No reply — WebBrain continued the task')- : `${prefix} ${card.dataset.answerLabel || answer}`;+ : `${prefix} ${answerLabel}`;card.appendChild(answered);placeAnsweredClarifyCardInTimeline(card);scrollToBottom();diff --git a/src/firefox/styles/sidepanel.css b/src/firefox/styles/sidepanel.cssindex 532e62aa7..51e2bd3ee 100644--- a/src/firefox/styles/sidepanel.css+++ b/src/firefox/styles/sidepanel.css@@ -4040,6 +4040,12 @@ html[dir="rtl"] .composer-toolbar .provider-picker-menu {overflow-wrap: anywhere;}+/* What the page shows on WebBrain's "go ahead?" card about a step it could+ not verify (a file editor or a post draft): longer than a list item. */+.clarify-subject.clarify-content {+ max-height: 220px;+}+.clarify-research-request {max-height: 180px;overflow: auto;diff --git a/test/guard-ask-cards.mjs b/test/guard-ask-cards.mjsnew file mode 100644index 000000000..042d3849a--- /dev/null+++ b/test/guard-ask-cards.mjs@@ -0,0 +1,838 @@+// "Ask instead of block" (guard-policy.js onCannotDecide 'ask'): when one of+// WebBrain's quality checks cannot verify a consequential step (a GitHub+// commit of an editor whose readback was inexact, a commit-capable action it+// cannot classify, an X/Bluesky draft it could not confirm, an unidentified+// control after a correction), it shows the user what the page holds now and+// asks "go ahead?" on its own card instead of refusing. A quality card follows+// the clarify timeout ('finish' goes ahead, 'safe' does not); a hard check's+// card never answers itself. Strict checks keep the refusal, without a card.+import assert from 'node:assert/strict';+import fs from 'node:fs/promises';+import test, { after, before } from 'node:test';+import { chromium } from 'playwright';+import { makeSchedulerHarness } from './lib/scheduler-harness.mjs';++const EDIT_URL = 'https://github.com/Example/Repo/edit/main/docs/post.md';+const area = { get: async () => ({}), set: async () => {}, remove: async () => {} };+const api = {+ storage: { local: area, session: area },+ runtime: { getURL: value => `extension://test/${value}`, sendMessage: async () => ({}) },+ tabs: {+ get: async id => ({ id, url: EDIT_URL, title: 'Edit post.md' }),+ query: async () => [],+ sendMessage: async () => ({ ready: true }),+ },+ webNavigation: { getAllFrames: async () => [{ frameId: 0, parentFrameId: -1, documentId: 'document-1', url: EDIT_URL }] },+ scripting: { executeScript: async () => [{ result: null }] },+};+globalThis.chrome = api;+globalThis.browser = api;++const read = rel => fs.readFile(new URL(`../${rel}`, import.meta.url), 'utf8');+const builds = await Promise.all(['chrome', 'firefox'].map(async build => ({+ build,+ Agent: (await import(`../src/${build}/src/agent/agent.js`)).Agent,+ step: await import(`../src/${build}/src/agent/unverified-step.js`),+ adapters: await import(`../src/${build}/src/agent/adapters.js`),+ Scheduler: await import(`../src/${build}/src/agent/scheduler.js`),+})));++let nextTab = 9600;+const wait = ms => new Promise(resolve => setTimeout(resolve, ms));+const call = (id, name, args) => ({ id, type: 'function', function: { name, arguments: JSON.stringify(args) } });+const COMMIT_REQUEST = { guardId: 'github-commit-evidence-binding', hard: false, action: 'commit', host: 'github.com',+ reason: 'editor_unverified', content: '# Release notes\n\nEverything new.', contentLabel: 'editor' };+const POST_BODY = '# Release notes\n\nEverything new in 35.0.\n';+const EDITOR_META = { tag: 'div', contentEditable: true, codeMirror: true, ariaLabelledByText: 'Editing file contents' };+const MESSAGE_META = { tag: 'input', contentEditable: false, id: 'commit-message-input', labelText: 'Commit message' };++// Tool results may carry appended notes or an untrusted-data envelope.+function parse(message) {+ const text = typeof message?.content === 'string' ? message.content : '';+ for (let start = text.indexOf('{'); start >= 0; start = text.indexOf('{', start + 1)) {+ let depth = 0, quoted = false, escaped = false;+ for (let cursor = start; cursor < text.length; cursor++) {+ const char = text[cursor];+ if (quoted) { if (escaped) escaped = false; else if (char === '\\') escaped = true; else if (char === '"') quoted = false; }+ else if (char === '"') quoted = true;+ else if (char === '{') depth++;+ else if (char === '}' && --depth === 0) {+ try { return JSON.parse(text.slice(start, cursor + 1)); } catch { break; }+ }+ }+ }+ return null;+}+const resultFor = (messages, id) => parse(messages.find(message => message.role === 'tool' && message.tool_call_id === id));++test('both builds share the unverified-step card module', async () => {+ assert.equal(await read('src/chrome/src/agent/unverified-step.js'), await read('src/firefox/src/agent/unverified-step.js'));+ const { clipUnverifiedStepContent, normalizeUnverifiedStepConfirmation, UNVERIFIED_STEP_CONTENT_LIMIT } = builds[0].step;+ const long = 'a'.repeat(UNVERIFIED_STEP_CONTENT_LIMIT - 1) + '😀' + 'tail';+ const clipped = clipUnverifiedStepContent(long);+ assert.equal(clipped, `${'a'.repeat(UNVERIFIED_STEP_CONTENT_LIMIT - 1)}…`, 'cut before a split emoji, with an ellipsis');+ assert.equal(clipUnverifiedStepContent(clipped), clipped, 'clipping twice changes nothing');+ assert.equal(clipUnverifiedStepContent('a\r\nb'), 'a\nb');+ assert.deepEqual(normalizeUnverifiedStepConfirmation({ guardId: 'x', action: 'delete', reason: '<b>', host: 'h',+ content: 'c', contentLabel: 'nope', hard: 'yes', extra: 1 }),+ { guardId: 'x', hard: false, action: 'submit', host: 'h', reason: 'step_unverified', content: 'c', contentLabel: 'page' });+});++for (const { build, Agent, adapters, Scheduler } of builds) {+ // ── the card ─────────────────────────────────────────────────────────────+ test(`${build}: the card shows the step and the page text, and returns the user's fixed answer`, async () => {+ const agent = new Agent({});+ agent.clarifyTimeoutSec = 30;+ const tab = nextTab++;+ for (const answer of ['once', 'deny', 'Commit it anyway']) {+ const updates = [];+ const receipt = {};+ const choice = await agent._promptUnverifiedStepConfirmation(tab, COMMIT_REQUEST, (type, data) => {+ updates.push({ type, data });+ if (type === 'clarify') agent.submitClarifyResponse(tab, data.clarifyId, answer, 'option');+ }, receipt);+ const card = updates.find(update => update.type === 'clarify').data;+ assert.equal(card.promptKind, 'unverifiedStepConfirmation');+ assert.match(card.clarifyId, /^unverified_/);+ assert.deepEqual(card.options, ['once', 'deny']);+ assert.deepEqual(card.unverifiedStepConfirmation, { guardId: 'github-commit-evidence-binding', hard: false,+ action: 'commit', host: 'github.com', reason: 'editor_unverified', content: COMMIT_REQUEST.content, contentLabel: 'editor' });+ assert.equal(card.question, 'Commit this on github.com?');+ assert.equal(card.timeoutSec, 30);+ assert.equal(card.timeoutAnswer, 'once', 'the default timeout policy finishes the task');+ assert.ok(card.deadlineTs > Date.now() + 25_000);+ assert.equal(choice, answer === 'once' ? 'once' : 'deny', 'only the fixed value goes ahead');+ assert.equal(receipt.source, 'user');+ assert.equal(agent._pendingClarifications.has(tab), false);+ }+ });++ test(`${build}: an unanswered quality card follows the timeout policy and is never the user's answer`, async () => {+ for (const [policy, expected] of [['finish', 'once'], ['safe', 'deny']]) {+ const agent = new Agent({});+ agent.clarifyTimeoutPolicy = policy;+ agent.clarifyTimeoutSec = 1;+ const tab = nextTab++;+ agent.conversations.set(tab, [{ role: 'user', content: 'Publish the post' }]);+ const updates = [];+ const receipt = {};+ const choice = await agent._promptUnverifiedStepConfirmation(tab, COMMIT_REQUEST, (type, data) => updates.push({ type, data }), receipt);+ assert.equal(choice, expected, `${policy}: the timeout's answer`);+ assert.equal(receipt.source, 'timeout');+ assert.equal(updates.find(update => update.type === 'clarify').data.timeoutAnswer, expected, `${policy}: the card counts down to it`);+ assert.deepEqual(updates.find(update => update.type === 'clarify_auto').data,+ { clarifyId: updates[0].data.clarifyId, answer: expected, source: 'timeout', timeoutSec: 1 });+ assert.equal(agent._clarificationAuthorizationGuards.has(tab), false, `${policy}: no task authority was recorded`);+ assert.deepEqual(agent.conversations.get(tab), [{ role: 'user', content: 'Publish the post' }], `${policy}: nothing joined the task`);+ }+ // The side panel's backup timer cannot pick another answer.+ const agent = new Agent({});+ agent.clarifyTimeoutPolicy = 'safe';+ agent.clarifyTimeoutSec = 30;+ const tab = nextTab++;+ const backup = await agent._promptUnverifiedStepConfirmation(tab, COMMIT_REQUEST, (type, data) => {+ if (type === 'clarify') agent.submitClarifyResponse(tab, data.clarifyId, 'once', 'timeout');+ });+ assert.equal(backup, 'deny');+ // Instant answers at once; Off waits for the user and shows no countdown.+ const instant = new Agent({});+ instant.clarifyTimeoutSec = 0;+ const instantReceipt = {};+ assert.equal(await instant._promptUnverifiedStepConfirmation(nextTab++, COMMIT_REQUEST, () => {}, instantReceipt), 'once');+ assert.equal(instantReceipt.source, 'auto');+ const off = new Agent({});+ off.clarifyTimeoutSec = 1201;+ const offTab = nextTab++;+ let offCard = null;+ const waiting = off._promptUnverifiedStepConfirmation(offTab, COMMIT_REQUEST, (type, data) => { if (type === 'clarify') offCard = data; });+ await wait(30);+ assert.equal(offCard.timeoutSec, 0);+ assert.equal(offCard.timeoutAnswer, undefined);+ assert.equal(offCard.deadlineTs, undefined);+ off.submitClarifyResponse(offTab, offCard.clarifyId, 'once', 'option');+ assert.equal(await waiting, 'once');+ });++ test(`${build}: a hard check's card never approves on its own`, async () => {+ const agent = new Agent({});+ agent.clarifyTimeoutSec = 0;+ agent.clarifyTimeoutPolicy = 'finish';+ const tab = nextTab++;+ let card = null;+ const pending = agent._promptUnverifiedStepConfirmation(tab, { ...COMMIT_REQUEST, hard: true, action: 'click',+ reason: 'repeat_unverified', content: '' }, (type, data) => { if (type === 'clarify') card = data; });+ await wait(50);+ assert.equal(card.unverifiedStepConfirmation.hard, true);+ assert.equal(card.timeoutAnswer, undefined, 'no countdown');+ assert.equal(card.deadlineTs, undefined);+ assert.ok(agent._pendingClarifications.get(tab)?.has(card.clarifyId), 'Instant does not answer a hard card');+ agent.submitClarifyResponse(tab, card.clarifyId, 'once', 'timeout');+ assert.equal(await pending, 'deny', 'a timeout posted by the panel is not an approval');+ // Stop cancels the card.+ let stopped = null;+ const cancelled = agent._promptUnverifiedStepConfirmation(tab, { ...COMMIT_REQUEST, hard: true }, (type, data) => { if (type === 'clarify') stopped = data; });+ await wait(10);+ assert.ok(stopped);+ agent._cancelClarifications(tab, 'aborted by user');+ assert.equal(await cancelled, null);+ });++ test(`${build}: an unattended scheduled run follows the timeout policy for quality and denies a hard card`, async () => {+ for (const [policy, hard, expected] of [['finish', false, 'once'], ['safe', false, 'deny'], ['finish', true, 'deny']]) {+ const agent = new Agent({});+ agent.clarifyTimeoutPolicy = policy;+ agent.clarifyTimeoutSec = 1201;+ const tab = nextTab++;+ agent.scheduledRunPolicies.set(tab, { requireConsequentialConfirmation: false });+ const updates = [];+ const receipt = {};+ assert.equal(await agent._promptUnverifiedStepConfirmation(tab, { ...COMMIT_REQUEST, hard }, (type, data) => updates.push({ type, data }), receipt), expected);+ assert.equal(receipt.source, 'unattended');+ assert.deepEqual(updates, [], 'nobody can answer, so no card is shown');+ }+ });++ // ── github-commit-evidence-binding ─────────────────────────────────────+ // The owner's case: the blog post went into GitHub's CodeMirror editor as a+ // full replacement, the readback (rendered text) could not verify it, and+ // path, branch and commit message bind.+ async function githubFixture({ strict = false, body = POST_BODY, live = body, message = 'Publish the post' } = {}) {+ const provider = { name: 'ask card test', model: 'test', promptTier: 'full', contextWindow: 128000,+ supportsTools: true, supportsVision: false, chat: async () => ({ content: '' }) };+ const agent = new Agent({ getActive: () => provider, getProvider: () => provider, getVisionProvider: async () => null });+ const tab = nextTab++;+ agent.clarifyTimeoutSec = 30;+ agent._persist = () => {};+ agent._persistNow = async () => ({ ok: true });+ agent._taskTokens.set(tab, `task-${tab}`);+ const siteWorkflow = adapters.resolveAdapterWorkflowJob(EDIT_URL, 'edit-file-and-commit');+ assert.equal(siteWorkflow?.job?.id, 'edit-file-and-commit');+ const guard = { enabled: true, taskKey: `key-${tab}`, siteWorkflow,+ workflowMetadataRequirements: [{ field: 'path', value: 'docs/post.md' }, { field: 'branch', value: 'main' },+ { field: 'commit_message', value: message }],+ workflowMetadataRequirementsResolved: true, workflowMetadataRequirementsIncomplete: false };+ agent._planExecutionGuards.set(tab, guard);+ agent._lastAxScopes.set(tab, { documentToken: 'doc', pageUrl: EDIT_URL });+ agent._currentUrl = async () => EDIT_URL;+ agent._readControlEffect = async () => null;+ agent._socialPublicationPreSubmitBlock = async () => null;+ agent._captureMastodonPublicationAttempt = async () => {};+ const page = { editor: live, message, digests: [] };+ agent._textMutationValueDigest = async (_tab, target, expected = null, { preview = 0 } = {}) => {+ page.digests.push({ target, preview });+ const isMessage = target?.refId === 'ref_message';+ const value = isMessage ? page.message : page.editor;+ return { valueLength: value.length, valueSha256: await agent._sha256Text(value),+ verified: typeof expected === 'string' && expected === value, fieldMeta: isMessage ? MESSAGE_META : EDITOR_META,+ ...(preview ? { valuePreview: value.slice(0, preview) } : {}) };+ };+ // The commit message reads back exactly: a verified proof.+ const messageTarget = agent._textMutationTarget(tab, 'set_field', { ref_id: 'ref_message' });+ agent._verifiedTextReplacements.set(tab, new Map([[messageTarget.key,+ await agent._verifiedTextReplacementRecord(tab, messageTarget, message, MESSAGE_META)]]));+ // The editor write went out but read back inexactly: PR B records it+ // (default mode) instead of arming text-write debt.+ const written = await agent._finalizeTextMutationResult(tab, 'type_ax', { ref_id: 'ref_editor', text: body, clear: true }, {+ success: false, dispatched: true, verified: false, fieldMeta: EDITOR_META, readbackExact: false,+ unverified: { reason: 'readback_mismatch', reader: 'rendered' },+ error: 'The field value still did not exactly match after trusted typing.' });+ assert.equal(written.unverifiedWrite, true, 'the write is an unverified success');+ assert.ok(agent._unverifiedTextWriteRecord(tab, { pageUrl: EDIT_URL }), 'the unverified write is recorded');+ agent.strictGuards = strict;+ return { agent, tab, guard, page, provider };+ }+ const commitDetected = () => ({ isSubmit: true, validationSubmitEvidence: 'strong', host: 'github.com', url: EDIT_URL,+ fields: [{ label: 'Commit message', id: 'commit-message-input' }] });++ test(`${build}: a commit whose editor text could not be read back exactly asks with the editor's text`, async () => {+ const { agent, tab } = await githubFixture();+ const block = await agent._workflowPreSubmitDispatchBlock(tab, 'click_ax', { ref_id: 'ref_7' }, commitDetected());+ assert.equal(block.noDispatch, true, 'without a card channel the refusal stands');+ assert.match(block.error, /Commit submission is blocked/);+ assert.deepEqual({ ...block.unverifiedStepConfirmation, stepKey: !!block.unverifiedStepConfirmation.stepKey }, {+ guardId: 'github-commit-evidence-binding', hard: false, action: 'commit', reason: 'editor_unverified', host: 'github.com',+ contentLabel: 'editor', target: { locatorType: 'ax', refId: 'ref_editor', ambiguous: false }, expectKind: 'github-editor',+ requireContent: true, stepKey: true });+ // Strict checks: the guard's refusal itself is under test.+ const strict = await githubFixture({ strict: true });+ const refused = await strict.agent._workflowPreSubmitDispatchBlock(strict.tab, 'click_ax', { ref_id: 'ref_7' }, commitDetected());+ assert.equal(refused.noDispatch, true);+ assert.equal(refused.unverifiedStepConfirmation, undefined, 'Strict checks refuse without a card');+ });++ test(`${build}: a missing write, unresolved metadata or an unproven commit message still refuse without a card`, async () => {+ const noWrite = await githubFixture();+ noWrite.agent._unverifiedTextWrites.delete(noWrite.tab);+ const missing = await noWrite.agent._workflowPreSubmitDispatchBlock(noWrite.tab, 'click_ax', { ref_id: 'ref_7' }, commitDetected());+ assert.equal(missing.noDispatch, true);+ assert.equal(missing.unverifiedStepConfirmation, undefined, 'no write');+ const metadata = await githubFixture();+ metadata.guard.workflowMetadataRequirementsIncomplete = true;+ const unresolved = await metadata.agent._workflowPreSubmitDispatchBlock(metadata.tab, 'click_ax', { ref_id: 'ref_7' }, commitDetected());+ assert.equal(unresolved.unverifiedStepConfirmation, undefined, 'unresolved metadata');+ const message = await githubFixture();+ message.agent._verifiedTextReplacements.delete(message.tab);+ const unproven = await message.agent._workflowPreSubmitDispatchBlock(message.tab, 'click_ax', { ref_id: 'ref_7' }, commitDetected());+ assert.equal(unproven.unverifiedStepConfirmation, undefined, 'the commit message is not proven');+ const appended = await githubFixture();+ const record = [...appended.agent._unverifiedTextWrites.get(appended.tab).values()][0];+ record.replacesValue = false;+ const append = await appended.agent._workflowPreSubmitDispatchBlock(appended.tab, 'click_ax', { ref_id: 'ref_7' }, commitDetected());+ assert.equal(append.unverifiedStepConfirmation, undefined, 'an append says nothing about the whole file');+ });++ // The batch harness reaches the real pre-dispatch checks and the real+ // card; only the page dispatch itself is recorded.+ function pipeline(agent, provider, answer) {+ agent._skipPermissionGate = true;+ agent._ensureGateSetting = async () => true;+ for (const name of ['_chromeProtectedPageFailure', '_captchaMutationPreflight', '_messageRecipientGuardBlock']) agent[name] = async () => null;+ agent._detectLikelySubmitAction = async () => commitDetected();+ agent._captureFormValidationState = async () => [];+ agent._waitForFormValidationFailure = async () => null;+ agent._readCompletionResult = async () => null;+ agent._adoptLiveSocialPublishWorkflow = async () => false;+ agent._auditRichTextToolbarTarget = async () => {};+ agent._shouldAutoScreenshot = () => false;+ agent._refreshPageFeedbackForCall = async () => false;+ const dispatched = [];+ const cards = [];+ agent._executeToolWithLifecycleInner = async (_tab, name, args) => {+ dispatched.push({ name, args });+ return { success: true, dispatched: true, verified: true };+ };+ const run = async (tab, calls) => {+ const messages = [];+ const onUpdate = (type, data) => {+ if (type !== 'clarify') return;+ cards.push(data);+ if (typeof answer === 'string') agent.submitClarifyResponse(tab, data.clarifyId, answer, 'option');+ };+ const outcome = await agent._executeToolBatch(tab, calls, messages, onUpdate, provider, null, new Set(['click_ax', 'execute_js', 'done']), 1, {});+ return { messages, outcome };+ };+ return { dispatched, cards, run };+ }++ test(`${build}: 'once' lets the commit go ahead, marks the attempt unverified, and the raw-blob check stays the authority`, async () => {+ const { agent, tab, provider } = await githubFixture({ live: POST_BODY.replace('\n\n', '\n\n\n') });+ const { dispatched, cards, run } = pipeline(agent, provider, 'once');+ const { messages } = await run(tab, [call('commit', 'click_ax', { ref_id: 'ref_7' })]);+ assert.equal(cards.length, 1, 'one card');+ assert.equal(cards[0].unverifiedStepConfirmation.content, POST_BODY.replace('\n\n', '\n\n\n'), 'the card shows the editor as it reads now');+ assert.equal(cards[0].unverifiedStepConfirmation.reason, 'editor_unverified');+ assert.deepEqual(dispatched.map(item => item.name), ['click_ax'], 'the commit was dispatched');+ const result = resultFor(messages, 'commit');+ assert.equal(result.success, true);+ const note = result.guardAdvisories.find(item => item.guard === 'github-commit-evidence-binding')?.note || '';+ assert.match(note, /the user approved it on WebBrain's card/);+ assert.doesNotMatch(note, /Release notes/, 'the page text never reaches the model');+ const submit = agent._completionSubmitStates.get(tab);+ assert.equal(submit.publishesUnverifiedContent, true);+ const commit = submit.workflowBinding.githubFileCommit;+ assert.equal(commit.editorReadbackVerified, false);+ assert.equal(commit.publishesUnverifiedContent, true);+ assert.equal(commit.unverifiedApprovalSource, 'user');+ assert.equal(commit.expectedSha256, await agent._sha256Text(POST_BODY), 'the requested text is what the commit must contain');+ assert.equal(commit.expectedLength, POST_BODY.length);+ // After the commit, the committed raw file decides.+ const sha = '0123456789abcdef0123456789abcdef01234567';+ const commitUrl = `https://github.com/Example/Repo/commit/${sha}`;+ const originalFetch = globalThis.fetch;+ let served = POST_BODY;+ globalThis.fetch = async url => url === `https://github.com/example/repo/raw/${sha}/docs/post.md`+ ? { ok: true, status: 200, headers: { get: () => String(served.length) }, text: async () => served }+ : { ok: false, status: 404, headers: { get: () => '0' }, text: async () => '' };+ try {+ const evidence = { verifiedFinalSubmit: true, submit: { workflowBinding: submit.workflowBinding } };+ const pageState = { workflowPageText: 'Publish the post', workflowResourceUrls: [commitUrl] };+ assert.equal((await agent._githubCommittedFileVerification(tab, pageState, commitUrl, evidence)).verified, true);+ served = POST_BODY.replace('\n\n', '\n\n\n');+ assert.equal((await agent._githubCommittedFileVerification(tab, pageState, commitUrl, evidence)).verified, false,+ 'a committed file that differs from the request is still caught');+ } finally {+ globalThis.fetch = originalFetch;+ }+ });++ test(`${build}: 'deny' refuses the commit, and the same text is not asked about again`, async () => {+ const { agent, tab, provider } = await githubFixture();+ const { dispatched, cards, run } = pipeline(agent, provider, 'deny');+ const first = await run(tab, [call('commit-1', 'click_ax', { ref_id: 'ref_7' })]);+ const refused = resultFor(first.messages, 'commit-1');+ assert.equal(dispatched.length, 0);+ assert.equal(refused.noDispatch, true);+ assert.equal(refused.unverifiedStepDeclined, true);+ assert.match(refused.error, /The user chose not to go ahead with the editor text WebBrain could not verify/);+ assert.equal(refused.unverifiedStepConfirmation, undefined);+ const second = await run(tab, [call('commit-2', 'click_ax', { ref_id: 'ref_7' })]);+ assert.equal(cards.length, 1, 'the declined text is not asked about again');+ assert.match(resultFor(second.messages, 'commit-2').error, /already chose not to go ahead/);+ assert.equal(dispatched.length, 0);+ });++ test(`${build}: an unanswered commit card goes ahead under 'finish' and not under 'safe'`, async () => {+ for (const [policy, goesAhead] of [['finish', true], ['safe', false]]) {+ const { agent, tab, provider } = await githubFixture();+ agent.clarifyTimeoutPolicy = policy;+ agent.clarifyTimeoutSec = 1;+ const { dispatched, cards, run } = pipeline(agent, provider, null);+ const { messages } = await run(tab, [call('commit', 'click_ax', { ref_id: 'ref_7' })]);+ assert.equal(cards[0].timeoutAnswer, goesAhead ? 'once' : 'deny');+ assert.equal(dispatched.length, goesAhead ? 1 : 0, `${policy}: dispatch`);+ const result = resultFor(messages, 'commit');+ if (goesAhead) {+ assert.match(result.guardAdvisories.find(item => item.guard === 'github-commit-evidence-binding').note,+ /nobody answered WebBrain's question in time/);+ assert.equal(agent._completionSubmitStates.get(tab).workflowBinding.githubFileCommit.unverifiedApprovalSource, 'timeout');+ } else {+ assert.match(result.error, /Nobody answered WebBrain's question in time/);+ }+ }+ });++ test(`${build}: an answer covers the editor text the user saw; a changed editor is asked about again`, async () => {+ const { agent, tab, provider, page } = await githubFixture();+ const { dispatched, cards, run } = pipeline(agent, provider, 'once');+ await run(tab, [call('commit-1', 'click_ax', { ref_id: 'ref_7' })]);+ assert.equal(dispatched.length, 1);+ // The editor changes after the answer: the next commit asks again.+ page.editor = `${POST_BODY}Late edit.\n`;+ await run(tab, [call('commit-2', 'click_ax', { ref_id: 'ref_7' })]);+ assert.equal(cards.length, 2);+ assert.equal(cards[1].unverifiedStepConfirmation.content, page.editor);+ assert.equal(dispatched.length, 2);+ });++ // ── github-commit-split-write-required ─────────────────────────────────+ test(`${build}: an action that may or may not commit asks when a commit is otherwise allowed`, async () => {+ for (const strict of [false, true]) {+ const { agent, tab } = await githubFixture({ strict });+ // A verified editor proof: the commit binding holds.+ const editorTarget = agent._textMutationTarget(tab, 'set_field', { ref_id: 'ref_editor' });+ agent._unverifiedTextWrites.delete(tab);+ agent._verifiedTextReplacements.get(tab).set(editorTarget.key, await agent._verifiedTextReplacementRecord(tab, editorTarget, POST_BODY, EDITOR_META));+ const block = await agent._workflowPreSubmitDispatchBlock(tab, 'execute_js', { code: 'void 0' }, null);+ assert.equal(block.splitWriteRequired, true);+ if (strict) {+ // Strict checks: the guard's refusal itself is under test.+ assert.equal(block.unverifiedStepConfirmation, undefined);+ continue;+ }+ assert.equal(block.unverifiedStepConfirmation.guardId, 'github-commit-split-write-required');+ assert.equal(block.unverifiedStepConfirmation.reason, 'submit_unclear');+ assert.deepEqual(block.unverifiedStepConfirmation.target, { locatorType: 'ax', refId: 'ref_editor', ambiguous: false });+ const advisories = [];+ const cards = [];+ const rerun = () => agent._workflowPreSubmitDispatchBlock(tab, 'execute_js', { code: 'void 0' }, null);+ const resolved = await agent._resolveUnverifiedStepConfirmation(tab, block, (type, data) => {+ if (type === 'clarify') { cards.push(data); agent.submitClarifyResponse(tab, data.clarifyId, 'once', 'option'); }+ }, rerun, advisories);+ assert.equal(resolved, null, 'the user let this action run');+ assert.equal(cards[0].unverifiedStepConfirmation.content, POST_BODY, 'the card shows the editor');+ assert.deepEqual(advisories.map(item => item.guard), ['github-commit-split-write-required']);+ const again = await rerun();+ assert.ok(again.unverifiedStepConfirmation, 'one answer covers one action');+ }+ });++ // ── social-publication-draft-quality ───────────────────────────────────+ // The user asked to publish; the X composer's draft could not be confirmed+ // against the contract. The card shows the composer's text; the+ // independent publication audit (a hard check) still runs after 'once'.+ function socialFixture(request = 'Post Hello on X') {+ const ref = text => ({ source: 'request', start: text, end: text });+ const contract = { version: 1, status: 'ready', prohibited: [], reason: 'User requested publication.', requirements: 'p1',+ actions: [{ id: 'p1', platform: 'twitter', account: null, posts: [{ body: { kind: 'exact', source: ref('Hello') },+ media: { kind: 'count', type: 'any', format: null, min: 0, max: 0 }, context: { kind: 'post', target: null } }] }] };+ const provider = { model: 'user-selected-provider-model', chat: async () => ({ content: '{}' }) };+ const agent = new Agent({ getActive: () => provider });+ const tab = nextTab++;+ agent.useSiteAdapters = true;+ agent.clarifyTimeoutSec = 30;+ agent._persist = () => {};+ agent._currentUrl = async () => 'https://x.com/compose/post';+ agent.conversations.set(tab, [{ role: 'system', content: 'system' }, { role: 'user', content: request }]);+ const guard = agent._startPlanExecutionGuard(tab, 'act', { requestKind: 'execute', requiresStateChange: true, requiresSubmission: true });+ const audits = [];+ agent._chatWithCostAllowance = async (_provider, messages, _options, _cost, meta) => {+ if (meta.generationName === 'social_publication_authorization') {+ const input = JSON.parse(messages[1].content);+ audits.push(input.snapshot);+ return { content: JSON.stringify({ key: input.key, actionId: input.action.id, authorized: true, reason: 'Matches the request.' }) };+ }+ return { content: JSON.stringify(contract) };+ };+ const detected = { isSubmit: true, publicationControl: true, publicationResourceUrls: [], publicationResourceUrlsComplete: true,+ frameDocumentIdentity: 'https://x.com/compose/post|document-1', publicationAccountIdentity: 'twitter:alice',+ publicationAccountIdentityComplete: true,+ publicationSnapshot: { complete: true, account: 'twitter:alice',+ posts: [{ complete: true, bodyText: 'Helo', attachments: [], context: { kind: 'post', target: null } }] } };+ agent._detectLikelySubmitAction = async () => structuredClone(detected);+ return { agent, tab, guard, provider, detected, audits };+ }++ test(`${build}: an X draft that does not read back as requested asks with the composer's text; the audit still runs`, async () => {+ const f = socialFixture();+ const check = () => f.agent._workflowPreSubmitDispatchBlock(f.tab, 'click_ax', { ref_id: 'ref_post' }, f.detected, f.provider);+ const block = await check();+ assert.equal(block.noDispatch, true);+ assert.deepEqual(block.publicationValidation.issues.map(issue => issue.reason), ['body_mismatch']);+ assert.equal(block.unverifiedStepConfirmation.guardId, 'social-publication-draft-quality');+ assert.equal(block.unverifiedStepConfirmation.action, 'publish');+ assert.equal(block.unverifiedStepConfirmation.reason, 'draft_unverified');+ assert.equal(block.unverifiedStepConfirmation.host, 'x.com');+ assert.equal(block.unverifiedStepConfirmation.text, 'Helo');+ assert.equal(f.audits.length, 0, 'nothing reaches the audit before the answer');+ const cards = [];+ const advisories = [];+ const resolved = await f.agent._resolveUnverifiedStepConfirmation(f.tab, block, (type, data) => {+ if (type === 'clarify') { cards.push(data); f.agent.submitClarifyResponse(f.tab, data.clarifyId, 'once', 'option'); }+ }, check, advisories);+ assert.equal(resolved, null);+ assert.equal(cards[0].unverifiedStepConfirmation.content, 'Helo');+ assert.equal(cards[0].unverifiedStepConfirmation.contentLabel, 'composer');+ assert.equal(f.audits.length, 1, 'the hard publication audit ran on the observed draft');+ assert.equal(f.audits[0].posts[0].bodyText, 'Helo');+ assert.equal(f.guard.socialPublication.dispatch.publishesUnverifiedContent, true);+ assert.deepEqual(advisories.map(item => item.guard), ['social-publication-draft-quality']);+ // The pipeline's own late check passes on the same answer.+ assert.equal(f.agent._withoutUnverifiedStepAsk(await f.agent._socialPublicationPreSubmitBlock(f.tab, 'click_ax',+ { ref_id: 'ref_post' }, f.detected, f.provider)), null);+ // A different draft is a different question.+ f.detected.publicationSnapshot.posts[0].bodyText = 'Hell';+ assert.equal((await check()).unverifiedStepConfirmation.text, 'Hell');+ });++ test(`${build}: an unobserved account, a wrong reply target, or Strict checks keep the draft refusal without a card`, async () => {+ const account = socialFixture();+ delete account.detected.publicationSnapshot.account;+ const noAccount = await account.agent._workflowPreSubmitDispatchBlock(account.tab, 'click_ax', { ref_id: 'ref_post' }, account.detected, account.provider);+ assert.ok(noAccount.publicationValidation.issues.some(issue => issue.reason === 'account_unobserved'));+ assert.equal(noAccount.unverifiedStepConfirmation, undefined, 'the sending account is not a readback question');+ const context = socialFixture();+ context.detected.publicationSnapshot.posts[0].context = { kind: 'reply', target: 'https://x.com/bob/status/1' };+ const wrongContext = await context.agent._workflowPreSubmitDispatchBlock(context.tab, 'click_ax', { ref_id: 'ref_post' }, context.detected, context.provider);+ assert.ok(wrongContext.publicationValidation.issues.some(issue => issue.reason === 'context_mismatch'));+ assert.equal(wrongContext.unverifiedStepConfirmation, undefined, 'the reply target is not a readback question');+ // Strict checks: the guard's refusal itself is under test.+ const strict = socialFixture();+ strict.agent.strictGuards = true;+ const refused = await strict.agent._workflowPreSubmitDispatchBlock(strict.tab, 'click_ax', { ref_id: 'ref_post' }, strict.detected, strict.provider);+ assert.deepEqual(refused.publicationValidation.issues.map(issue => issue.reason), ['body_mismatch']);+ assert.equal(refused.unverifiedStepConfirmation, undefined);+ // A body the composer did not expose asks the user to check the page.+ const unobserved = socialFixture();+ delete unobserved.detected.publicationSnapshot.posts[0].bodyText;+ const ask = await unobserved.agent._workflowPreSubmitDispatchBlock(unobserved.tab, 'click_ax', { ref_id: 'ref_post' }, unobserved.detected, unobserved.provider);+ assert.equal(ask.unverifiedStepConfirmation.reason, 'draft_unobserved');+ assert.equal(ask.unverifiedStepConfirmation.text, '');+ });++ // ── steer-prior-submission-target-unresolved ───────────────────────────+ test(`${build}: after a correction, an unidentified control asks instead of refusing`, async () => {+ for (const strict of [false, true]) {+ const agent = new Agent({});+ agent.strictGuards = strict;+ const tab = nextTab++;+ agent._taskTokens.set(tab, `task-${tab}`);+ agent._lastAxScopes.set(tab, { documentToken: 'doc', pageUrl: 'https://forms.example/apply' });+ agent._planExecutionGuards.set(tab, { enabled: true, taskKey: 'steered', steeringPriorSubmission: { actionSequence: 3 } });+ const block = agent._steeringPriorSubmissionBlock(tab, 'click_ax', { ref_id: 'ref_9' }, null);+ assert.equal(block.actionGuard.reason, 'target_unresolved');+ if (strict) {+ assert.equal(block.unverifiedStepConfirmation, undefined, 'Strict checks refuse without a card');+ continue;+ }+ assert.deepEqual({ ...block.unverifiedStepConfirmation, stepKey: !!block.unverifiedStepConfirmation.stepKey },+ { guardId: 'steer-prior-submission-target-unresolved', hard: false, action: 'click', reason: 'target_unresolved',+ host: 'forms.example', contentLabel: 'page', stepKey: true });+ const cards = [];+ const resolved = await agent._resolveUnverifiedStepConfirmation(tab, block, (type, data) => {+ if (type === 'clarify') { cards.push(data); agent.submitClarifyResponse(tab, data.clarifyId, 'once', 'option'); }+ }, async () => agent._steeringPriorSubmissionBlock(tab, 'click_ax', { ref_id: 'ref_9' }, null), []);+ assert.equal(resolved, null);+ assert.equal(cards[0].unverifiedStepConfirmation.content, '', 'nothing to show: the card asks to check the page');+ assert.ok(agent._steeringPriorSubmissionBlock(tab, 'click_ax', { ref_id: 'ref_9' }, null).unverifiedStepConfirmation,+ 'the next such action asks again');+ // An identified earlier-effect lock is a hard class and never asks.+ const reconciled = agent._steeringPriorSubmissionBlock(tab, 'click_ax', { ref_id: 'ref_9' }, { isSubmit: true, url: 'https://forms.example/apply' });+ assert.equal(reconciled.actionGuard.reason, 'prior_effect_unreconciled');+ assert.equal(reconciled.unverifiedStepConfirmation, undefined);+ }+ });++ // ── scheduler persistence ──────────────────────────────────────────────+ test(`${build}: a scheduled run keeps the card so a reopened panel restores it`, async () => {+ let finish;+ const step = { guardId: 'social-publication-draft-quality', hard: false, action: 'publish', host: 'x.com',+ reason: 'draft_unverified', content: 'Hello <b>world</b>', contentLabel: 'composer' };+ const h = makeSchedulerHarness(Scheduler, {+ processMessage: async (_tab, _message, onUpdate) => {+ onUpdate('clarify', { promptKind: 'unverifiedStepConfirmation', clarifyId: 'unverified_1', question: 'Publish this on x.com?',+ options: ['once', 'deny'], unverifiedStepConfirmation: { ...step, content: 'x'.repeat(2000) },+ timeoutSec: 60, deadlineTs: Date.UTC(2026, 0, 1, 12, 1, 0), timeoutAnswer: 'once' });+ await new Promise(resolve => { finish = resolve; });+ return 'done';+ },+ });+ const created = await h.manager.createResumeJob({ tabId: 77, conversationId: 'conv-1',+ args: { after_seconds: 60, reason: 'wait', resume_instruction: 'publish' } });+ const running = h.manager.handleAlarm(h.alarmName(created.jobId));+ await wait(0);+ const pending = h.jobs()[0].pendingClarify;+ assert.equal(h.jobs()[0].status, 'needs_user_input');+ assert.equal(pending.promptKind, 'unverifiedStepConfirmation');+ assert.equal(pending.timeoutAnswer, 'once');+ assert.equal(pending.timeoutSec, 60);+ assert.deepEqual(pending.options, ['once', 'deny']);+ assert.deepEqual(pending.unverifiedStepConfirmation, { ...step, content: `${'x'.repeat(1500)}…` }, 'bounded page text');+ finish();+ await running;+ });+}++// ── clickax-task-click-lock (hard class, Chrome only) ────────────────────+// A trusted click on this exact document|ref may already have taken effect+// and was never verified. The card replaces the task-long dead end with the+// user's decision; it never answers itself, in either mode.+test('chrome: a click that may repeat an unverified earlier click asks on a hard card, with or without Strict checks', async () => {+ const { Agent } = builds.find(item => item.build === 'chrome');+ for (const strict of [false, true]) {+ const provider = { name: 'lock test', model: 'test', promptTier: 'full', contextWindow: 128000,+ supportsTools: true, supportsVision: false, chat: async () => ({ content: '' }) };+ const agent = new Agent({ getActive: () => provider, getProvider: () => provider, getVisionProvider: async () => null });+ agent.strictGuards = strict;+ agent.clarifyTimeoutSec = 0;+ agent._persist = () => {};+ agent._persistNow = async () => ({ ok: true });+ const tab = nextTab++;+ agent._taskTokens.set(tab, `task-${tab}`);+ agent._planExecutionGuards.set(tab, { enabled: false, taskKey: `key-${tab}` });+ agent._lastAxScopes.set(tab, { documentToken: 'doc-1', pageUrl: 'https://shop.example/cart' });+ agent._currentUrl = async () => 'https://shop.example/cart';+ for (const ref of ['ref_buy', 'ref_pay']) {+ agent._rememberTaskClickLock(tab, `doc-1|${ref}`);+ agent._rememberTaskClickLock(tab, `native-button-pending:doc-1|${ref}`);+ }+ agent._clickAxCdpFallbacks.set(tab, new Set(['doc-1|ref_pay', 'native-button-pending:doc-1|ref_pay', 'native-button:doc-1|ref_pay|snapshot-1']));+ assert.equal(agent._taskClickLockAsk(tab, 'click_ax', { ref_id: 'ref_other' }), null, 'another target is not locked');+ const block = agent._taskClickLockAsk(tab, 'click_ax', { ref_id: 'ref_buy' });+ assert.equal(block.repeatBlocked, true);+ assert.deepEqual({ ...block.unverifiedStepConfirmation, stepKey: !!block.unverifiedStepConfirmation.stepKey },+ { guardId: 'clickax-task-click-lock', hard: true, action: 'click', reason: 'repeat_unverified', host: 'shop.example',+ contentLabel: 'page', stepKey: true });+ // Through the real pre-dispatch checks: 'deny' keeps the lock and is not asked again.+ const cards = [];+ const dispatched = [];+ agent._skipPermissionGate = true;+ agent._ensureGateSetting = async () => true;+ for (const name of ['_chromeProtectedPageFailure', '_captchaMutationPreflight', '_messageRecipientGuardBlock',+ '_detectLikelySubmitAction', '_socialPublicationPreSubmitBlock']) agent[name] = async () => null;+ agent._adoptLiveSocialPublishWorkflow = async () => false;+ agent._captureFormValidationState = async () => [];+ agent._waitForFormValidationFailure = async () => null;+ agent._auditRichTextToolbarTarget = async () => {};+ agent._shouldAutoScreenshot = () => false;+ agent._refreshPageFeedbackForCall = async () => false;+ agent._executeToolWithLifecycleInner = async (_tab, name, args) => {+ dispatched.push({ name, args });+ return { success: true, dispatched: true, verified: true };+ };+ const run = async (id, ref, answer) => {+ const messages = [];+ await agent._executeToolBatch(tab, [call(id, 'click_ax', { ref_id: ref })], messages, (type, data) => {+ if (type !== 'clarify') return;+ cards.push(data);+ setTimeout(() => agent.submitClarifyResponse(tab, data.clarifyId, answer, 'option'), 20);+ }, provider, null, new Set(['click_ax', 'done']), 1, {});+ return resultFor(messages, id);+ };+ const denied = await run('buy-1', 'ref_buy', 'deny');+ assert.equal(cards.length, 1);+ assert.equal(cards[0].unverifiedStepConfirmation.hard, true);+ assert.equal(cards[0].timeoutAnswer, undefined, 'Instant does not answer a hard card');+ assert.equal(denied.unverifiedStepDeclined, true);+ assert.match(denied.error, /The user chose not to go ahead with clicking this control again/);+ assert.equal(dispatched.length, 0);+ assert.ok(agent._taskClickLockKeys(tab).has('doc-1|ref_buy'), 'the lock stays');+ const again = await run('buy-2', 'ref_buy', 'once');+ assert.equal(cards.length, 1, 'a declined click is not asked about again');+ assert.match(again.error, /already chose not to go ahead/);+ // 'once' releases this target's locks for this one click.+ const approved = await run('pay', 'ref_pay', 'once');+ assert.equal(cards.length, 2);+ assert.deepEqual(dispatched.map(item => item.args.ref_id), ['ref_pay']);+ assert.equal(approved.success, true);+ assert.match(approved.guardAdvisories.find(item => item.guard === 'clickax-task-click-lock').note, /the user approved it/);+ assert.equal(agent._taskClickLockKeys(tab).has('doc-1|ref_pay'), false);+ assert.equal(agent._taskClickLockKeys(tab).has('native-button-pending:doc-1|ref_pay'), false);+ assert.deepEqual([...agent._clickAxCdpFallbacks.get(tab)], [], 'the per-run trusted attempt for this target is released too');+ // An unattended run cannot ask: refused without a card.+ agent._rememberTaskClickLock(tab, 'doc-1|ref_ship');+ agent.scheduledRunPolicies.set(tab, { requireConsequentialConfirmation: false });+ const unattended = await run('ship', 'ref_ship', 'once');+ assert.equal(cards.length, 2);+ assert.match(unattended.error, /This unattended run cannot ask the user about clicking this control again/);+ assert.equal(dispatched.length, 1);+ }+});++// ── side panel ───────────────────────────────────────────────────────────+let chromiumBrowser;+before(async () => { chromiumBrowser = await chromium.launch({ headless: true }); });+after(async () => { await chromiumBrowser?.close(); });++function extract(source, name) {+ source = source.replace(/\r\n/g, '\n');+ const start = source.search(new RegExp(`^(?:async )?function ${name}\\(`, 'm'));+ assert.ok(start >= 0, name);+ return source.slice(start, source.indexOf('\n}', start) + 2);+}++async function panel(build, locale = 'en') {+ const source = await read(`src/${build}/src/ui/sidepanel.js`);+ const english = (await import(`../src/${build}/src/ui/locales/en.js`)).default;+ const strings = (await import(`../src/${build}/src/ui/locales/${locale}.js`)).default;+ const page = await chromiumBrowser.newPage({ viewport: { width: 380, height: 700 } });+ await page.setContent(`<style>${await read(`src/${build}/styles/sidepanel.css`)}</style>+ <div class="message assistant" data-run-request-id="request-1"><div class="message-content"><div class="message-text"></div></div></div>`);+ await page.addScriptTag({ content: `(() => {+ const STRINGS = ${JSON.stringify({ ...english, ...strings })};+ const t = (key, params) => String(STRINGS[key] ?? key).replace(/\\{(\\w+)\\}/g, (_, name) => params?.[name] ?? '{' + name + '}');+ let currentTabId = 9;+ let currentAssistantEl = document.querySelector('.message.assistant');+ const submittedClarificationIds = new Set();+ const sent = [];+ function clarificationSubmissionKey(tabId, requestId, clarifyId) { return JSON.stringify([Number(tabId), String(requestId || ''), String(clarifyId || '')]); }+ function hideActivity() {} function scrollToBottom() {} function hideRecommendedActions() {}+ function resetChatNavigation() {} function addMessage() { return currentAssistantEl; } function applyClarifyTimeoutExtension() {}+ function placeAnsweredClarifyCardInTimeline() {} function maybeShowPermissionEducationHint() {}+ function workflowHealingTargetLabel(value) { return String(value || ''); } function keepClarifyAliveWhileTyping() {}+ function sameTabId(a, b) { return Number(a) === Number(b); } function restoreActiveRunState() {}+ function schedulePersist() {}+ const CAPABILITY_LABEL = {};+ async function sendToBackground(action, payload) { sent.push([action, payload]); return { matched: true }; }+ ${extract(source, 'renderClarifyCard')}+ ${extract(source, 'submitClarify')}+ ${extract(source, 'clearClarifyCountdown')}+ ${extract(source, 'startClarifyCountdown')}+ ${extract(source, 'lockClarifyCardFromAuto')}+ window.panel = { render: renderClarifyCard, lock: lockClarifyCardFromAuto, sent };+ })();` });+ return page;+}++const stepCard = (extra = {}, step = {}) => ({ clarifyId: 'unverified_card', tabId: 9, promptKind: 'unverifiedStepConfirmation',+ question: 'Commit this on github.com?', options: ['once', 'deny'], timeoutSec: 30, deadlineTs: Date.now() + 30_000, timeoutAnswer: 'once',+ unverifiedStepConfirmation: { guardId: 'github-commit-evidence-binding', hard: false, action: 'commit', host: 'github.com',+ reason: 'editor_unverified', content: '# Notes\n\n<img src=x onerror="window.injected=1"><b>bold</b>', contentLabel: 'editor', ...step },+ ...extra });++for (const build of ['chrome', 'firefox']) {+ test(`${build}: the side panel shows the page text as text, counts down to the decided answer and backs it up`, async () => {+ const page = await panel(build);+ try {+ await page.evaluate(data => window.panel.render(data), stepCard());+ const view = await page.evaluate(() => {+ const card = document.querySelector('.clarify-card');+ return { question: card.querySelector('.clarify-question').textContent,+ reasons: [...card.querySelectorAll('.clarify-reason')].map(node => node.textContent),+ content: card.querySelector('.clarify-content').textContent,+ markup: card.querySelectorAll('img, b').length, injected: window.injected === 1,+ buttons: [...card.querySelectorAll('.clarify-option')].map(button => [button.dataset.value, button.textContent]),+ input: !!card.querySelector('input, textarea'), memory: card.dataset.memorySource,+ countdown: card.querySelector('.clarify-timeout')?.textContent, flag: card.dataset.unverifiedStepConfirmation };+ });+ assert.equal(view.question, 'Commit this on github.com?');+ assert.deepEqual(view.reasons, ['WebBrain typed the text but couldn’t read it back exactly.', 'In the editor now:']);+ assert.equal(view.content, '# Notes\n\n<img src=x onerror="window.injected=1"><b>bold</b>', 'textContent only');+ assert.equal(view.markup, 0);+ assert.equal(view.injected, false);+ assert.deepEqual(view.buttons, [['once', 'Go ahead'], ['deny', 'Don’t']]);+ assert.equal(view.input, false, 'no free text to interpret');+ assert.equal(view.memory, '', 'the answer is not saved to memory');+ assert.equal(view.flag, '1');+ assert.match(view.countdown, /^Picks “Go ahead” in (29|30)s$/);+ // The backup submit sends the decided value and names its label.+ await page.evaluate(data => window.panel.render(data), stepCard({ clarifyId: 'unverified_backup', deadlineTs: Date.now() + 60,+ timeoutAnswer: 'deny' }));+ await page.waitForFunction(() => window.panel.sent.length === 1);+ const backup = await page.evaluate(() => ({ sent: window.panel.sent[0],+ answered: document.querySelector('.clarify-card[data-clarify-id="unverified_backup"] .clarify-your-answer')?.textContent }));+ assert.deepEqual(backup.sent, ['clarify_response', { tabId: 9, clarifyId: 'unverified_backup', answer: 'deny', source: 'timeout' }]);+ assert.equal(backup.answered, 'Auto-selected (timed out): Don’t');+ // A click sends the fixed value.+ await page.click('.clarify-card[data-clarify-id="unverified_card"] button[data-value="once"]');+ const clicked = await page.evaluate(() => ({ sent: window.panel.sent[1],+ answered: document.querySelector('.clarify-card[data-clarify-id="unverified_card"] .clarify-your-answer')?.textContent }));+ assert.deepEqual(clicked.sent, ['clarify_response', { tabId: 9, clarifyId: 'unverified_card', answer: 'once', source: 'option' }]);+ assert.equal(clicked.answered, 'Your answer: Go ahead');+ } finally {+ await page.close();+ }+ });++ test(`${build}: the agent's timeout locks the card; a hard card and an unreadable page show no countdown`, async () => {+ const page = await panel(build, 'tr');+ try {+ await page.evaluate(data => window.panel.render(data), stepCard({ clarifyId: 'unverified_auto' }));+ await page.evaluate(() => window.panel.lock({ clarifyId: 'unverified_auto', answer: 'once', source: 'timeout' }));+ const locked = await page.evaluate(() => {+ const card = document.querySelector('.clarify-card[data-clarify-id="unverified_auto"]');+ return { answered: card.querySelector('.clarify-your-answer')?.textContent,+ disabled: [...card.querySelectorAll('button')].every(button => button.disabled),+ countdown: !!card.querySelector('.clarify-timeout') };+ });+ assert.equal(locked.answered, 'Otomatik seçildi (süre doldu): Devam et');+ assert.equal(locked.disabled, true);+ assert.equal(locked.countdown, false);+ await page.evaluate(data => window.panel.render(data), stepCard({ clarifyId: 'unverified_hard', timeoutSec: 0,+ deadlineTs: undefined, timeoutAnswer: undefined }, { hard: true, action: 'click', reason: 'repeat_unverified', content: '',+ contentLabel: 'page', host: 'shop.example' }));+ const hard = await page.evaluate(() => {+ const card = document.querySelector('.clarify-card[data-clarify-id="unverified_hard"]');+ return { question: card.querySelector('.clarify-question').textContent,+ reasons: [...card.querySelectorAll('.clarify-reason')].map(node => node.textContent),+ content: !!card.querySelector('.clarify-content'), countdown: !!card.querySelector('.clarify-timeout') };+ });+ assert.equal(hard.question, 'shop.example üzerinde bu denetime tıklansın mı?');+ assert.deepEqual(hard.reasons, ['Bu denetime yapılan önceki bir tıklama zaten işe yaramış olabilir ve WebBrain bunu kontrol edemedi.',+ 'Yanıtlamadan önce sayfaya bak.']);+ assert.equal(hard.content, false);+ assert.equal(hard.countdown, false, 'a hard card has no countdown');+ } finally {+ await page.close();+ }+ });+}++test('every locale of both builds translates the card', async () => {+ const keys = ['question.commit', 'question.submit', 'question.publish', 'question.click',+ 'reason.editor_unverified', 'reason.draft_unverified', 'reason.draft_unobserved',+ 'reason.submit_unclear', 'reason.target_unresolved', 'reason.repeat_unverified', 'reason.step_unverified',+ 'content.editor', 'content.composer', 'content.page', 'check_page', 'go_ahead', 'dont']+ .map(key => `sp.unverified.${key}`);+ for (const build of ['chrome', 'firefox']) {+ const directory = new URL(`../src/${build}/src/ui/locales/`, import.meta.url);+ const files = (await fs.readdir(directory)).filter(name => /^[a-z]{2}\.js$/.test(name));+ assert.equal(files.length, 23, `${build}: locale count`);+ const english = (await import(new URL('en.js', directory))).default;+ for (const file of files) {+ const strings = (await import(new URL(file, directory))).default;+ for (const key of keys) {+ assert.equal(typeof strings[key], 'string', `${build}/${file}: ${key}`);+ assert.ok(strings[key].trim(), `${build}/${file}: ${key}`);+ if (file !== 'en.js') assert.notEqual(strings[key], english[key], `${build}/${file}: ${key} is still English`);+ assert.equal(strings[key].includes('{host}'), key.startsWith('sp.unverified.question.'), `${build}/${file}: ${key} host`);+ }+ }+ }+ // The panel and the agent agree on the card's vocabulary.+ for (const build of ['chrome', 'firefox']) {+ const source = await read(`src/${build}/src/ui/sidepanel.js`);+ const { UNVERIFIED_STEP_ACTIONS, UNVERIFIED_STEP_REASONS } = await import(`../src/${build}/src/agent/unverified-step.js`);+ for (const action of UNVERIFIED_STEP_ACTIONS) assert.match(source, new RegExp(`'${action}'`));+ for (const reason of UNVERIFIED_STEP_REASONS.filter(reason => reason !== 'step_unverified')) assert.match(source, new RegExp(`'${reason}'`));+ }+});diff --git a/test/run.js b/test/run.jsindex 40868e2ac..37c1843d6 100644--- a/test/run.js+++ b/test/run.js@@ -54650,8 +54650,8 @@ test('sidepanel long replies use reading-first turn navigation', () => {);assert.equal((clarifySource.match(/scrollToBottom\(\{ force: true \}\);/g) || []).length,- 6,- `${label}: workflow healing, submit, recipient, deletion, permission, and clarify prompts should override reading-first scroll suppression`,+ 7,+ `${label}: workflow healing, submit, recipient, deletion, unverified-step, permission, and clarify prompts should override reading-first scroll suppression`,);assert.match(panel,