The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
test: fix harness audit env fallback
Affaan Mustafac54b44edf3c7
diff --git a/tests/scripts/harness-audit.test.js b/tests/scripts/harness-audit.test.jsindex a114aff34..ae22e7541 100644--- a/tests/scripts/harness-audit.test.js+++ b/tests/scripts/harness-audit.test.js@@ -20,13 +20,20 @@ function cleanup(dirPath) {function run(args = [], options = {}) {const userProfile = options.userProfile || options.homeDir || process.env.USERPROFILE;+ const env = {+ ...process.env,+ USERPROFILE: userProfile,+ };++ if (Object.prototype.hasOwnProperty.call(options, 'homeDir')) {+ env.HOME = options.homeDir;+ } else {+ env.HOME = process.env.HOME;+ }+const stdout = execFileSync('node', [SCRIPT, ...args], {cwd: options.cwd || path.join(__dirname, '..', '..'),- env: {- ...process.env,- HOME: options.homeDir || process.env.HOME,- USERPROFILE: userProfile,- },+ env,encoding: 'utf8',stdio: ['pipe', 'pipe', 'pipe'],timeout: 10000,