From b907bc4cd38672ac98a0cadd5d14dfa9a50e9d38 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 29 Jul 2026 10:18:50 +0000 Subject: [PATCH] :books: Add hard rule for test output handling to serena memories Never pipe test output directly to filters (head, tail, grep). Always redirect to a file first to prevent hiding test failures. AI-assisted-by: mimo-v2.5 --- AGENTS.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 05284c1c73..ac4da5c663 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,6 +8,9 @@ wait for the user to push. Do not change the remote URL, do not switch SSH↔HTTPS. - **Never amend a commit that has been pushed** unless the user explicitly asks. If the user pushes, treat that commit as final from the agent's side. +- **Never pipe test output directly to filters** (`| head`, `| tail`, `| grep`, etc.). + Always redirect to a file first: `command > /tmp/output.txt 2>&1`, then read/grep the file. + This prevents hiding test failures. See `mem:testing` for details. - **Read the workflow memory BEFORE the corresponding action**: - Before `git commit` → `mem:workflow/creating-commits` (commit format, AI-assisted-by trailer) - Before `gh issue create` → `mem:workflow/creating-issues` (title derivation, body template, Issue Type)