diff --git a/services/gastown/container/src/completion-reporter.ts b/services/gastown/container/src/completion-reporter.ts index 7a7766e61f..04ece97b19 100644 --- a/services/gastown/container/src/completion-reporter.ts +++ b/services/gastown/container/src/completion-reporter.ts @@ -1,8 +1,7 @@ /** - * Reports agent completion/failure back to the Rig DO via the Gastown - * worker API. This closes the bead and unhooks the agent, preventing - * the infinite retry loop where witnessPatrol resets the agent to idle - * and schedulePendingWork re-dispatches it. + * Reports agent completion/failure back to the Gastown worker API. + * This closes the bead and unhooks the agent so the reconciler does not + * re-dispatch it. */ import type { ManagedAgent } from './types'; diff --git a/services/gastown/container/src/control-server.ts b/services/gastown/container/src/control-server.ts index b56eb97e64..b4a2fa805a 100644 --- a/services/gastown/container/src/control-server.ts +++ b/services/gastown/container/src/control-server.ts @@ -471,9 +471,9 @@ app.post('/repos/setup', async c => { // POST /git/merge // Deterministic merge of a polecat branch into the target branch. -// Called by the Rig DO's processReviewQueue → startMergeInContainer. -// Runs the merge synchronously and reports the result back to the Rig DO -// via a callback to the completeReview endpoint. +// Called by the TownDO's startMergeInContainer. +// Runs the merge synchronously and reports the result back via a callback +// to the completeReview endpoint. app.post('/git/merge', async c => { const body: unknown = await c.req.json().catch(() => null); const parsed = MergeRequest.safeParse(body); @@ -539,7 +539,7 @@ app.post('/git/merge', async c => { } }; - // Fire and forget — the Rig DO will time out stuck entries via recoverStuckReviews + // Fire and forget — the TownDO will time out stuck entries via its alarm loop doMerge().catch(err => { console.error(`Merge failed for entry ${req.entryId}:`, err); }); diff --git a/services/gastown/src/dos/town/patrol.ts b/services/gastown/src/dos/town/patrol.ts index b1617599a1..2172623233 100644 --- a/services/gastown/src/dos/town/patrol.ts +++ b/services/gastown/src/dos/town/patrol.ts @@ -17,8 +17,6 @@ const LOG = '[patrol]'; // ── Thresholds ────────────────────────────────────────────────────── -/** First GUPP warning (existing behavior) */ -export const GUPP_WARN_MS = 30 * 60_000; // 30 min /** Escalate to mayor after second threshold */ export const GUPP_ESCALATE_MS = 60 * 60_000; // 1h /** Force-stop agent after third threshold */