Preserve Scattermind action-thread signals

This commit is contained in:
OpenClaw Bot
2026-05-27 20:22:25 +02:00
parent 0447e89ca6
commit f44d5c3cc3
2 changed files with 42 additions and 1 deletions
+30
View File
@@ -1107,6 +1107,36 @@ try {
assert.ok(privateReadingEnvelope.input.decisionContext.nonGoals.includes('Avoid accounts, saved calendars, and payment dashboards until one workshop has real interest'));
assert.deepEqual(privateReadingEnvelope.handoff.warnings, []);
const actionThreadSignalsResponse = await fetch(`${base}/api/rank-feedback`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
reference_code: 'SM-THREAD-SIGNALS',
working_name: 'Game concept thread signals',
ideaText: 'A tiny driving bullet-heaven game needs a first playable prototype order.',
context: 'Solo builder. Manual playable proof first. Do not let this become a dashboard or account system.',
mode: 'mvp',
threads_to_hold: [
'Start with a five-minute greybox drive loop. Success signal: one player asks for another run. Failure signal: they cannot read threats while steering.',
'Test enemy pressure with one obstacle wave before adding upgrades. Green flag: players change path without explanation. Red flag: they ignore the wave and wait for UI prompts.',
'Do not let this become a saved-board dashboard with accounts and subscription tiers.',
],
questions_to_sit_with: ['Can a player understand the loop without a tutorial?'],
}),
});
assert.equal(actionThreadSignalsResponse.status, 200);
const actionThreadSignals = await actionThreadSignalsResponse.json();
assert.equal(actionThreadSignals.input.optionCount, 3);
assert.equal(actionThreadSignals.ranked[0].id, 'action-thread-1');
assert.equal(actionThreadSignals.ranked[0].factors.successSignal, 'one player asks for another run');
assert.equal(actionThreadSignals.ranked[0].factors.killSignal, 'they cannot read threats while steering');
assert.equal(actionThreadSignals.ranked.find(item => item.id === 'action-thread-2').factors.successSignal, 'players change path without explanation');
assert.equal(actionThreadSignals.ranked.find(item => item.id === 'action-thread-2').factors.killSignal, 'they ignore the wave and wait for UI prompts');
assert.equal(actionThreadSignals.ranked.find(item => item.id === 'action-thread-3').lane.id, 'park');
assert.equal(actionThreadSignals.ranked.find(item => item.id === 'action-thread-3').lane.source, 'hint');
assert.ok(actionThreadSignals.input.decisionContext.nonGoals.some(item => /Do not let this become a dashboard/i.test(item)));
assert.deepEqual(actionThreadSignals.handoff.warnings, []);
const softLabelLensResponse = await fetch(`${base}/api/rank-feedback`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },