[eric] browser: playbook distill also captures perception traps, not just mechanics

This commit is contained in:
ciregenz
2026-06-06 02:03:06 -07:00
parent 852968d7b2
commit 1b45a2605b
@@ -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 \"<Other> and <You>\"; 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 "