From 1b45a2605b4e6feb84f8920cac6e049ff55dfdf4 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Sat, 6 Jun 2026 02:03:06 -0700 Subject: [PATCH] [eric] browser: playbook distill also captures perception traps, not just mechanics --- backend/apps/agents/browser/browser_playbook.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/apps/agents/browser/browser_playbook.py b/backend/apps/agents/browser/browser_playbook.py index 564648f3..b79da1ce 100644 --- a/backend/apps/agents/browser/browser_playbook.py +++ b/backend/apps/agents/browser/browser_playbook.py @@ -210,6 +210,10 @@ def _build_prompt(host: str, task: str, working_memory: str, summary: str, "- ALWAYS keep interaction mechanics that cost the agent a retry, e.g. " "'Enter inserts a newline in the message composer; click the Send button " "instead' or 'the filter opens a dropdown, not a new page'.\n" + "- ALWAYS keep PERCEPTION TRAPS: something that LOOKED wrong or ambiguous " + "but was actually fine, so the next agent is not fooled into a detour, e.g. " + "'a 1:1 chat is titled \" and \"; that IS the direct thread, do " + "not try to start a new one'.\n" "- DROP anything specific to THIS task's data (names, the actual answer), " "one-offs, secrets, or obvious facts.\n" "- MERGE duplicates; if a new lesson CONTRADICTS an old bullet, keep the "