mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
fix: address P2 review feedback (coderabbitai, cubic-dev-ai)
- GATEGUARD_STATE_DIR env var for test isolation (hook + tests) - Exit code assertions on all 9 tests (no vacuous passes) - Non-vacuous allow-path assertions (verify pass-through preserves input) - Robust newline-injection assertion - clearState() now reports errors instead of swallowing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8a2d13187c
commit
96139b2dad
2 changed files with 56 additions and 11 deletions
|
|
@ -26,7 +26,7 @@ const fs = require('fs');
|
|||
const path = require('path');
|
||||
|
||||
// Session state file for tracking which files have been gated
|
||||
const STATE_DIR = path.join(process.env.HOME || process.env.USERPROFILE || '/tmp', '.gateguard');
|
||||
const STATE_DIR = process.env.GATEGUARD_STATE_DIR || path.join(process.env.HOME || process.env.USERPROFILE || '/tmp', '.gateguard');
|
||||
const STATE_FILE = path.join(STATE_DIR, '.session_state.json');
|
||||
|
||||
// State expires after 30 minutes of inactivity (= new session)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue