Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(test): retain waited values in conditional judgments [C7]
Corey Olsonf2e9941c829b
diff --git a/test/wall-clock-budgets.js b/test/wall-clock-budgets.jsindex ae0f31af..f6d7b3a7 100644--- a/test/wall-clock-budgets.js+++ b/test/wall-clock-budgets.js@@ -96,7 +96,7 @@ function literalWait(expression, literals) {/** Recognize tracked wait-result references while excluding property names and object keys. */function judgesWaitResult(expression, waitResults) {- const values = expression.replace(/\.\s*\w+|\b\w+\s*:/gu, ' ');+ const values = expression.replace(/\.\s*\w+/gu, ' ').replace(/([{,]\s*)\w+\s*:/gu, '$1 ');return [...values.matchAll(/\b\w+\b/gu)].some(match => waitResults.has(match[0]));}diff --git a/test/wall-clock-budgets.test.js b/test/wall-clock-budgets.test.jsindex e120d5be..68753e4a 100644--- a/test/wall-clock-budgets.test.js+++ b/test/wall-clock-budgets.test.js@@ -43,7 +43,7 @@ test('the clock-margin guard follows waited results through boolean assertions [const file = join(root, 'wait-boolean.test.js');const prefix = '/** Return false when the child-close deadline wins. */\nfunction childClosesWithin(child, timeoutMs) { return new Promise(resolve => { child.once("close", () => resolve(true)); setTimeout(() => resolve(false), timeoutMs); }); }\nconst closed = await childClosesWithin(child, 1500);\n';for (const judgment of ['assert.ok(closed === true)', 'assert.ok(closed !== false)', 'assert(closed && true)',- 'assert.ok(Boolean(closed))', 'assert.strictEqual(true, closed)', 'assert.deepEqual({closed}, {closed: true})']) {+ 'assert.ok(Boolean(closed))', 'assert.ok(true ? closed : false)', 'assert.strictEqual(true, closed)', 'assert.deepEqual({closed}, {closed: true})']) {writeFileSync(file, prefix + judgment + ';\n');assert.match(wallClockViolations(root).join('\n'), /wait-boolean\.test\.js:4: literal wait result judged by an assertion/u, judgment);writeFileSync(file, prefix + judgment + '; // budget: hang ceiling for the child-close handshake.\n');