From 310fa1619a6471101fbb407a997d9f554d96b4e0 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Tue, 4 Aug 2026 17:49:23 -0700 Subject: [PATCH] Revert "[eric] browser: prove a send by the posted content, not only by an emptied box" This reverts commit 50355206292875725aa228cbca3e044f98916193. --- .../agents/browser/browser_send_script.py | 20 ------------------- scripts/browser_canary.py | 8 ++------ 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/backend/apps/agents/browser/browser_send_script.py b/backend/apps/agents/browser/browser_send_script.py index 83d77b41..5622d7d6 100644 --- a/backend/apps/agents/browser/browser_send_script.py +++ b/backend/apps/agents/browser/browser_send_script.py @@ -148,26 +148,6 @@ async def complete_send( sent = True break p_why = f"payload-still-in-a-textbox (textbox rows={sum(1 for x in state3.splitlines() if ' # the post was really there (the cleanup that followed deleted it), the read just never # surfaced its text. Absence only counts as evidence once the read itself is known good, so # require proof we saw the destination at all before believing what we did not see on it. - # Any evidence the audit run actually looked at a page. The first version of this listed two - # exact "[browser-action] X" strings that the log does not emit for reads, so `saw_page` was - # always False and every audit came back "unprovable" no matter what it saw. An instrument that - # can only ever return "don't know" is worse than none, because it looks like data. - saw_page = any(k in log for k in ("BrowserGetText", "BrowserListInteractives", - "dryrun-report", "browser-action", "browser-time")) + saw_page = any(k in log for k in ("[browser-action] BrowserGetText", + "[browser-action] BrowserListInteractives")) hit = any(marker in line for line in log.splitlines() if "browser-action" not in line and "prompt" not in line.lower() and "canary-audit" not in line)