Skip to content

Commit 3d102cc

Browse files
JohnCCarterclaude
andcommitted
docs(claude): correct Symantec SEP gotcha — SONAR scans every interpreter launch
The prior note implied --no-sync fixes SEP CPU; it only addresses Auto-Protect .venv file scanning. SONAR (behavioral) scans every python.exe/powershell.exe process start regardless of --no-sync (measured 2026-06-16: 222 SONAR events/6h on interpreter launches). Add agent-discipline mitigations (Bash not PowerShell, batch gates, no redundant reruns, minimize uv run) and note the durable fix is an IT/GPO SONAR exclusion for the interpreter paths. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3b6d341 commit 3d102cc

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

CLAUDE.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,13 @@ Avgränsat i [`.rgignore`](.rgignore) (filer kan finnas i git men ska inte grep:
8585
- Bitfinex/CCXT kräver egress; annars fyll `data/raw/` manuellt
8686
- `labeling/tool.py` kräver GUI-backend
8787
- Byt inte namn på kritiska moduler utan policy-uppdatering (§8 i layout-policy)
88-
- Windows + Symantec (SEP): plain `uv run` bygger om varje gång → SONAR/Auto-Protect skannar
89-
`.venv` → hög CPU. Kör `uv run --no-sync` + sätt `PYTHONDONTWRITEBYTECODE=1` (user-scope)
88+
- Windows + Symantec (SEP) — **två separata triggers**:
89+
- **Auto-Protect (fil):** plain `uv run` bygger om `.venv` varje gång → filskanning. Mitigering:
90+
`uv run --no-sync` + `PYTHONDONTWRITEBYTECODE=1` (user-scope).
91+
- **SONAR (beteende):** skannar **varje start av `python.exe`/`powershell.exe`**`--no-sync`
92+
hjälper INTE här. Mätt 2026-06-16: 222 SONAR-events/6h, alla på interpreter-starter
93+
(uv-hanterad CPython störst, sedan projekt-`.venv`, sedan `powershell.exe`). Mitigering
94+
(agent-disciplin, GPO blockerar lokala exclusions): **använd Bash inte PowerShell**, **batcha
95+
gates i ett anrop** (`ruff && pytest && bounds`), **kör inte om gates i onödan**, minimera
96+
`uv run`-anrop, kör inte tester parallellt i två sessioner. Varaktig fix = IT-ärende för
97+
central SONAR-exclusion av interpreter-sökvägarna (`%APPDATA%\uv\python\…`, projektets `.venv`).

0 commit comments

Comments
 (0)