From 72cc3dfe108ed766f216cdcd13bca28e4a1e149a Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Sat, 21 Mar 2026 11:40:14 -0700 Subject: [PATCH] fix: sanitize Phase 2 external pattern search in /investigate The Phase 2 external search also sent raw error messages to WebSearch. Apply same sanitization rule as Phase 3 search escalation. Co-Authored-By: Claude Opus 4.6 (1M context) --- .agents/skills/gstack-investigate/SKILL.md | 2 +- investigate/SKILL.md | 2 +- investigate/SKILL.md.tmpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.agents/skills/gstack-investigate/SKILL.md b/.agents/skills/gstack-investigate/SKILL.md index 13c43518..0f53afef 100644 --- a/.agents/skills/gstack-investigate/SKILL.md +++ b/.agents/skills/gstack-investigate/SKILL.md @@ -310,7 +310,7 @@ Also check: - `git log` for prior fixes in the same area — **recurring bugs in the same files are an architectural smell**, not a coincidence **External pattern search:** If the bug doesn't match a known pattern above, WebSearch for: -- "{framework} {error message or symptom}" +- "{framework} {generic error type}" — **sanitize first:** strip hostnames, IPs, file paths, SQL, customer data. Search the error category, not the raw message. - "{library} {component} known issues" If WebSearch is unavailable, skip this search and proceed with hypothesis testing. If a documented solution or known dependency bug surfaces, present it as a candidate hypothesis in Phase 3. diff --git a/investigate/SKILL.md b/investigate/SKILL.md index 04c98dd0..9a61f540 100644 --- a/investigate/SKILL.md +++ b/investigate/SKILL.md @@ -330,7 +330,7 @@ Also check: - `git log` for prior fixes in the same area — **recurring bugs in the same files are an architectural smell**, not a coincidence **External pattern search:** If the bug doesn't match a known pattern above, WebSearch for: -- "{framework} {error message or symptom}" +- "{framework} {generic error type}" — **sanitize first:** strip hostnames, IPs, file paths, SQL, customer data. Search the error category, not the raw message. - "{library} {component} known issues" If WebSearch is unavailable, skip this search and proceed with hypothesis testing. If a documented solution or known dependency bug surfaces, present it as a candidate hypothesis in Phase 3. diff --git a/investigate/SKILL.md.tmpl b/investigate/SKILL.md.tmpl index 7678e8e1..8e37becd 100644 --- a/investigate/SKILL.md.tmpl +++ b/investigate/SKILL.md.tmpl @@ -106,7 +106,7 @@ Also check: - `git log` for prior fixes in the same area — **recurring bugs in the same files are an architectural smell**, not a coincidence **External pattern search:** If the bug doesn't match a known pattern above, WebSearch for: -- "{framework} {error message or symptom}" +- "{framework} {generic error type}" — **sanitize first:** strip hostnames, IPs, file paths, SQL, customer data. Search the error category, not the raw message. - "{library} {component} known issues" If WebSearch is unavailable, skip this search and proceed with hypothesis testing. If a documented solution or known dependency bug surfaces, present it as a candidate hypothesis in Phase 3.