Skip to content

The send guard

The send guard checks an operator's text when they press Send in a web application. The app and the extension call it Check before sending. It runs the checks on that screen first. A Block answer holds the send, and a Warn answer asks the operator Send anyway?. The guard is best effort. It helps operators catch mistakes, and it is not a security control.

A screen guards Send in an operator's browser when all of these hold:

  • The screen has a Send button set on its site.
  • A check on that screen gives a Warn or Block outcome to at least one answer of a prism the operator runs. See Outcomes.
  • The operator has turned on Check before sending in the extension's menu, which also puts the Check button on the page. Chrome asks them once for access to the site. See The Check button.

The Extension page says what each check does to a send, such as Blocks on 1 answer, warns on 2. A check holds Send only in a browser where the operator turned the setting on, and the app cannot see or set it. Copy the steps, under Steps for operators on the Extension page, copies the steps to send your operators. Before their first check, the panel also shows them a note, Check before sending is off, with Turn on, when a check on the screen can warn or block and the site is still off.

The extension from the Chrome Web Store guards Send only on https addresses.

The guard catches the press on the screen's Send button, and the keys listed under Keys that also send when pressed inside the work area, before the application sees them. The button at the corner of the reply box says Checking before Send.... The extension captures that reply box and runs every prism of the screen's checks that the operator may run. It waits up to 20 seconds for a verdict.

When any answer has a Block outcome, the send stays held. The text stays in the reply box, unsent. A box under the reply box gives the reason in words, then Edit the reply, then press Send again., with See in Prismlet, which opens the panel on the answers. The reason is the outcome's message when it has one, such as Send held. Your reply contradicts the customer. Otherwise it is the question's short name and the answer, such as Send held. Contradicts conversation: Yes.

To send, the operator edits the text and presses Send again. The checks run again on the new text. A Block wins over every Warn.

A box titled Send anyway? opens under the reply box, clear of the text and its Send button. It lists each answer that asked for it, up to three and then how many more: the outcome's message when it has one, such as The lamp question is not answered, otherwise the question's short name and the answer, such as Answers latest request: No, and says Your team sees that you sent it anyway. Go back is the main button, with Send anyway beside it. It opens when nothing blocks and any of these happened:

  • An answer has a Warn outcome.
  • An answer is Unsure on a question that can warn or block. See Unsure answers.
  • A prism did not finish, such as when the model provider failed.
  • The checks gave no verdict within 20 seconds.
  • The extension could not check at all, such as when it is signed out or still checking an earlier press on the page.

Go back closes the box and sends nothing. Send anyway sends the text.

When no answer warns or blocks and every prism finished, the send goes through with no prompt. The operator sees a short pause while the checks run.

The answers of every guarded send also show in the extension's panel, as after a check.

Send anyway records that the operator saw a warning and sent. The extension stamps the time on each result of that check. In the app, the result says so at its top, such as "Dana sent it anyway after a warning, at" the time, and its row in Grid says Sent anyway. Find these results on the prism's Results tab.

When the prisms did not finish, there may be no saved result to stamp, so a send after a timeout can leave no Sent anyway record.

The guard holds the operator's real press. To send, it presses the screen's Send button itself, with synthetic pointer and mouse events. After a key such as Ctrl+Enter, it also sends by pressing the Send button.

Some applications ignore events that a script creates. On such a site, Send does nothing after the guard lets it through. Test the guard on your site before you roll it out. If Send stops working, clear the screen's Send button selector, under CSS selectors in the site editor, so the screen only shows answers.

The guard sees only presses on the Send button and the listed keys, in a browser where the extension is signed in and the site's Check button is on. These get past it:

  • Scheduled send.
  • Undo send.
  • A send from another tab or device the guard is not running in, such as a phone app or a browser without the extension.
  • A site that sends by other means, such as a send option in a menu or a shortcut not listed under Keys that also send.

A site that ignores synthetic events fails the other way: the guard stops sends it should let through, as above.

An operator can also press Send anyway on any warning, or turn the Check button off. Treat Block and Warn as a strong prompt for the operator, not as an enforced rule, and look over Sent anyway results in the app.