Carry Scattermind proof lens into ranking

This commit is contained in:
OpenClaw Bot
2026-05-27 18:50:34 +02:00
parent e463f4bc2a
commit 7ed035af82
2 changed files with 55 additions and 2 deletions
+6 -1
View File
@@ -775,6 +775,7 @@ try {
lenses: {
audience: 'First buyers are local neighbors who already attend small food events and want a low-pressure dinner plan.',
risk: 'Avoid accounts and saved workspaces before anyone pays. Do not build subscriptions or an app dashboard yet.',
question: 'Proof steps: Ask ten neighbors if they would pay for the first dinner before building software. Run one manual invite script and collect yes/no replies.',
channel: 'Build first: One manual supper-club offer page - collect three real yes/no replies before building machinery. Test manually: Concierge invitation script - ask ten neighbors if they would pay for the first dinner. Defer: Pretty event calendar after the first paid table. Probably noise: Saved member workspace with accounts, billing, subscriptions, and team dashboard.',
},
}),
@@ -784,10 +785,14 @@ try {
assert.equal(scattermindPaidShape.input.provenance.artifactId, 'SM-PAID1');
assert.equal(scattermindPaidShape.input.provenance.snapshotTitle, 'Neighborhood Supper Club');
assert.match(scattermindPaidShape.input.provenance.originalPrompt, /supper club/);
assert.equal(scattermindPaidShape.input.optionCount, 4);
assert.equal(scattermindPaidShape.input.optionCount, 6);
assert.equal(scattermindPaidShape.ranked[0].id, 'build-order-1');
assert.equal(scattermindPaidShape.ranked[0].provenance.sourceId, 'concept-map.lenses.channel#1');
assert.equal(scattermindPaidShape.ranked[0].provenance.sourceTitle, 'Build Order');
assert.equal(scattermindPaidShape.ranked.find(item => item.id === 'proof-step-1').lane.id, 'test');
assert.equal(scattermindPaidShape.ranked.find(item => item.id === 'proof-step-1').provenance.sourceSection, 'concept-map.lenses.question');
assert.match(scattermindPaidShape.ranked.find(item => item.id === 'proof-step-1').factors.evidenceNeeded, /Ask ten neighbors/);
assert.equal(scattermindPaidShape.handoff.itemTrace.find(item => item.id === 'proof-step-1').sourceTitle, 'Proof Steps');
assert.match(scattermindPaidShape.handoff.itemTrace.find(item => item.id === 'build-order-1').sourceQuote, /One manual supper-club offer page/);
assert.equal(scattermindPaidShape.ranked.find(item => item.id === 'build-order-4').lane.id, 'park');
assert.ok(scattermindPaidShape.input.decisionContext.nonGoals.includes('Avoid accounts and saved workspaces before anyone pays'));