From 754acfd76f5d1055ec609ba33e8d2c36a2e5ace7 Mon Sep 17 00:00:00 2001 From: Liang Jiaqing Date: Sat, 31 Oct 2026 11:16:18 +0800 Subject: [PATCH] ga: fix grammar of L1 full-write guard msg --- ga.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ga.py b/ga.py index 07385a04..387ff9d0 100644 --- a/ga.py +++ b/ga.py @@ -399,6 +399,8 @@ class GenericAgentHandler(BaseHandler): mode = args.get("mode", "overwrite") # overwrite/append/prepend action_str = {"prepend": "Prepending to", "append": "Appending to"}.get(mode, "Overwriting") yield f"[Action] {action_str} file: {os.path.basename(path)}\n" + if 'global_mem_insight.txt' in path: + return StepOutcome({"status": "error", "msg": "L1 must be patched carefully, no whole write! See template in assets/, the patch should be **short**, **literal** index, **general** enough to reuse next time in different context!"}, next_prompt="\n") def extract_robust_content(text): tags = re.findall(r"]*>(.*?)", text, re.DOTALL)