Expose active source quote in Ranker receipt

This commit is contained in:
OpenClaw Bot
2026-05-27 20:51:03 +02:00
parent 77b5395962
commit 2fa061120c
4 changed files with 11 additions and 1 deletions
+3
View File
@@ -2247,6 +2247,9 @@ try {
assert.equal(gameRouteGuardrail.input.decisionContext.ideaRoute, 'game');
assert.ok(gameRouteGuardrail.input.decisionContext.nonGoals.some(item => /accounts, dashboards, workspaces/i.test(item)), 'game route should add anti-SaaS guardrails even if Scattermind did not spell them out as avoid text');
assert.equal(gameRouteGuardrail.ranked[0].id, 'build-order-1');
assert.match(gameRouteGuardrail.brief.firstScreen.sourceQuote, /Five-minute playable driving arena/i, 'first-screen receipt should carry the exact source quote behind the active move');
assert.equal(gameRouteGuardrail.brief.firstScreen.sourceTitle, 'Build Order');
assert.match(gameRouteGuardrail.brief.decisionReceipt.sourceQuote, /Five-minute playable driving arena/i);
assert.equal(gameRouteGuardrail.ranked.find(item => /Player account dashboard/i.test(item.title)).lane.source, 'source-non-goal');
assert.equal(gameRouteGuardrail.handoff.decisionContext.ideaRoute, 'game');
assert.match(gameRouteGuardrail.handoff.copyableText, /Idea route: game/);