Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (codex): PR follow-ups declare no commit criterion
[._.]/ Adam Eivy10cc15df4d77
diff --git a/server/services/agentFinalization.successCriteria.test.js b/server/services/agentFinalization.successCriteria.test.jsindex 1110cb5c65..3fbc6fd217 100644--- a/server/services/agentFinalization.successCriteria.test.js+++ b/server/services/agentFinalization.successCriteria.test.js@@ -279,6 +279,21 @@ describe('evaluateSuccessCriteria — gh/git coordinator exemption (#2696)', ()expect(checkForTaskCommit).not.toHaveBeenCalled();});+ it('declares NO commit criterion for a PR follow-up (review-loop or merge-only)', async () => {+ // The happy path makes no commit at all: a merge-only follow-up on an already-green+ // PR just merges it, and a review follow-up commits nothing when every reviewer is+ // clean. Commit-checking them would score every successful run a failure (#2696 again).+ for (const metadata of [+ { reviewLoopFollowUp: true },+ { reviewLoopFollowUp: true, reviewLoopMergeOnly: true },+ { reviewLoopFollowUp: 'true' },+ ]) {+ const task = { id: 'sys-rl-1', taskType: 'internal', metadata };+ expect(await evaluateSuccessCriteria({ task, workspacePath: '/w', success: true })).toBeNull();+ }+ expect(checkForTaskCommit).not.toHaveBeenCalled();+ });+it('STILL commit-checks committing self-improve types (jira-sprint-manager, do-replan)', async () => {// jira-sprint-manager commits + opens MRs; do-replan commits PLAN.md edits — their commit// criterion is real, so exempting them would MASK genuine failures. Must stay checked.diff --git a/server/services/taskTypeHooks.js b/server/services/taskTypeHooks.jsindex 387a8d3b9d..9d921e426a 100644--- a/server/services/taskTypeHooks.js+++ b/server/services/taskTypeHooks.js@@ -121,8 +121,16 @@ export const NON_COMMITTING_COORDINATOR_TASK_TYPES = new Set([* the backfill sanitizer skipped them and the migration's purge could be undone (#2696,* codex review). Matching extractTaskType keeps the criterion, the bucket, and the sanitizer* consistent across both task shapes.+ *+ * PR follow-ups (`metadata.reviewLoopFollowUp`, spawned by agentWorktreeCleanup)+ * are the same shape without being a scheduled type: they deliver a reviewed+ * and/or merged PR as a side effect, and the happy path makes NO commit at all —+ * a merge-only follow-up on an already-green PR just merges it, and even a review+ * follow-up commits nothing when every reviewer comes back clean. Commit-checking+ * them would record each successful run as a failure, the #2696 artifact again.*/export function isNonCommittingCoordinatorTask(task) {+ if (task?.metadata?.reviewLoopFollowUp === true || task?.metadata?.reviewLoopFollowUp === 'true') return true;const type = task?.metadata?.analysisType || task?.metadata?.taskAnalysisType || task?.taskType || null;return NON_COMMITTING_COORDINATOR_TASK_TYPES.has(type);}