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
test(pr-bridge): count canonical item query executions [B3,R3]
Corey Olson9aabf73e299a
diff --git a/test/pr-bridge.test.js b/test/pr-bridge.test.jsindex 671e6724..0a01e8b7 100644--- a/test/pr-bridge.test.js+++ b/test/pr-bridge.test.js@@ -305,7 +305,23 @@ test('one publish pass computes pull request coverage once with bounded git calllet itemReads = 0;const observed = { ...board, db: {exec: sql => board.db.exec(sql),- prepare(sql) { if (/^SELECT \* FROM item WHERE/u.test(sql)) itemReads += 1; return board.db.prepare(sql); },+ /** Count real executions of full item reads, including the canonical imported-item join. */+ prepare(sql) {+ const statement = board.db.prepare(sql);+ if (!/^SELECT (?:[A-Za-z_]\w*\.)?\*(?:,.*?)? FROM item(?:\s|$)/iu.test(sql.replace(/\s+/gu, ' ').trim())) return statement;+ return new Proxy(statement, {+ /** Bind native SQLite methods while observing each read, even if a statement is reused. */+ get(target, property) {+ const value = Reflect.get(target, property, target);+ if (typeof value !== 'function') return value;+ /** Execute the original SQLite operation; the observer cannot supply query results. */+ return (...args) => {+ if (['all', 'get', 'iterate'].includes(property)) itemReads += 1;+ return Reflect.apply(value, target, args);+ };+ },+ });+ },} };try {process.env.PATH = traceBin + delimiter + before.PATH;