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)