Skip to content

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.

Merge remote-tracking branch 'origin/main' into core/690-claude

Corey Olsond6750efb4d9f
diff --cc test/runners.test.js
index 4eeb2f8d,ee69e69f..ea4b107b
--- a/test/runners.test.js
+++ b/test/runners.test.js
@@@ -8,9 -8,10 +8,10 @@@ import { DatabaseSync } from 'node:sqli
import { tmpdir } from 'node:os';
import { pathToFileURL } from 'node:url';
import { after, test } from 'node:test';
-import { listResources, takeResource } from '../src/resources.js';
+import { listResources, setResourceCapacity, takeResource } from '../src/resources.js';
+ import { parseProcessCensus } from '../src/process-census.js';
import { listResources as listPreRunnerResources, takeResource as takePreRunnerResource } from './fixtures/resources-pre-runners.js';
- import { runFixtureChild, startFixtureChild } from './fixture-child.js';
+ import { runFixtureChild, runFixtureChildAsync, startFixtureChild } from './fixture-child.js';
const BIN = resolve(import.meta.dirname, '../bin/pullboard.js');
const TEMP = [];
@@@ -77,8 -78,12 +78,13 @@@ function cli(repo, env, ...args)
return runFixtureChild(process.execPath, [BIN, ...args], { cwd: repo, env, encoding: 'utf8' });
}
- /** Make a local ssh stand-in that executes the actual worker command in a second private machine. */
- function installSshStandIn({ bin, worker, home, machineHome, requests, starts, nodeCommand = 'node', dropFirst = false, dropAfterMarker, stderrLog }) {
+ /**
+ * Make a local ssh stand-in that executes the actual worker command in a second private machine.
+ * It appends "dispatched" and "returned" to <requests>.phases so a round trip can be timed by phase,
+ * and `hold` ('dispatch', 'run' or 'return') keeps it alive at that phase, as a stuck runner would.
++ * `stderrLog` also copies the worker's stderr, so a test can read its result receipt.
+ */
-function installSshStandIn({ bin, worker, home, machineHome, requests, starts, nodeCommand = 'node', dropFirst = false, dropAfterMarker, hold = '' }) {
++function installSshStandIn({ bin, worker, home, machineHome, requests, starts, nodeCommand = 'node', dropFirst = false, dropAfterMarker, hold = '', stderrLog }) {
const ssh = join(bin, 'ssh');
const source = `#!/usr/bin/env node
import { appendFileSync, existsSync, readFileSync, watch, writeFileSync } from 'node:fs';