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.

fix(runners): require current parent for a reused descendant [C7]

Corey Olson8ee52b7be3fa
diff --git a/src/runner-worker.js b/src/runner-worker.js
index db01e44c..b099924a 100644
--- a/src/runner-worker.js
+++ b/src/runner-worker.js
@@ -493,7 +493,7 @@ function createDescendantTracker(directory) {
if (retired.has(`${row.pid}:${row.birth}`)) { uncertain = true; reason ||= 'a retired process identity reappeared'; continue; }
if (prior && prior.birth === row.birth) { ownedPids.add(row.pid); continue; }
if (!prior && baseline.get(row.pid)?.birth === row.birth) continue;
- if (!prior && !ownedPids.has(row.ppid)) {
+ if ((!prior || prior.birth !== row.birth) && !ownedPids.has(row.ppid)) {
pendingIdentities.set(row.pid, { birth: row.birth, eventIds: new Set() });
reason ||= 'detached process group contains an unidentified member';
continue;