From 3f6447b23d6bf27641026c5058b3631218084de1 Mon Sep 17 00:00:00 2001 From: Victor Kuznetsov Date: Mon, 5 Oct 2026 18:25:14 -0700 Subject: [PATCH] Record how to run the gate from an agent session The full gate outlasts the agent's 10-minute foreground shell cap, so it must run detached with its exit code written to a file. A stray run is stopped by its own PID, because a pattern kill also ends other sessions' suites. Co-Authored-By: Claude Opus 5.5 --- .claude/rules/development.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.claude/rules/development.md b/.claude/rules/development.md index 1ab9faf..e8e18e1 100644 --- a/.claude/rules/development.md +++ b/.claude/rules/development.md @@ -79,6 +79,8 @@ The same rule applies to install hints: name the extra that actually makes the c Run `bash maintain.sh` from the repository root. The authoritative type gate is scoped to `src/`; full-project Pyright can exhaust Node memory on the ML dependency graph. +The full gate outlasts the agent's 10-minute foreground shell cap, which kills it mid-suite. Run it detached under `nohup caffeinate -dimu` with its exit code written to a file and poll that file. To stop a stray run, kill its own PID, never `pkill -f pytest`, which also takes down other sessions' suites on the machine. + The security scanner's exit status is authoritative, including a failure after a success message. `tests/test_maintenance.py` checks clean, vulnerable, and broken scanner runs through the real shell entry point, and pins the CI `security` job to the