Keep non-goal conflicts out of active Ranker lanes

This commit is contained in:
OpenClaw Bot
2026-05-26 23:37:27 +02:00
parent 7151f0d378
commit 65832f9b56
3 changed files with 10 additions and 2 deletions
+4
View File
@@ -268,8 +268,12 @@ try {
const workspace = nonGoal.ranked.find(item => item.id === 'workspace-autopilot');
assert.ok(workspace.metrics.nonGoalConflicts.length >= 2);
assert.match(workspace.concern, /Source context says not to do this yet/);
assert.equal(workspace.lane.id, 'defer', 'source non-goals should keep conflicted candidates out of the active proof slice even with strong hints');
assert.equal(workspace.lane.source, 'source-non-goal');
assert.deepEqual(nonGoal.handoff.itemTrace.find(item => item.id === 'workspace-autopilot').nonGoalConflicts, workspace.metrics.nonGoalConflicts);
assert.ok(!nonGoal.buildOrder.doFirst.includes('workspace-autopilot'));
assert.ok(!nonGoal.buildOrder.validateNext.includes('workspace-autopilot'));
assert.ok(!nonGoal.handoff.warnings.some(item => /active item workspace-autopilot conflicts/.test(item)), 'conflicted candidates should be demoted before handoff warnings need to flag active-lane conflict');
const mixedWrapperResponse = await fetch(`${base}/api/rank-feedback`, {
method: 'POST',