Accept reader-friendly paid build order labels

This commit is contained in:
OpenClaw Bot
2026-05-27 23:38:19 +02:00
parent aae093904c
commit 9c0f4bebd3
2 changed files with 35 additions and 5 deletions
+30
View File
@@ -554,6 +554,36 @@ try {
assert.match(commaLabel.handoff.itemTrace.find(item => item.id === 'build-order-1').sourceQuote, /Build first, run a concierge preview/);
assert.deepEqual(commaLabel.handoff.warnings, []);
const paidFriendlyLabelResponse = await fetch(`${base}/api/rank-feedback`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
sourceName: 'Scattermind',
artifactId: 'concept_map_paid_friendly_labels',
originalPrompt: 'Scattermind wrote a paid Concept Map with less mechanical but still labelled Build Order wording.',
context: 'Solo builder. Manual proof first. No account dashboards or billing until evidence exists.',
conceptMap: {
working_name: 'Reader paid build order',
lenses: {
channel: {
title: 'Build Order',
content: 'Next 48 hours — mock one private Concept Map handoff and ask a tired builder where they would click first. Manual proof first — run the handoff from a real paid-style reading before adding app chrome. What not to build yet — saved account dashboards and billing settings. Do not let this become — another roadmap workspace with collaboration before proof.',
},
},
},
}),
});
assert.equal(paidFriendlyLabelResponse.status, 200);
const paidFriendlyLabel = await paidFriendlyLabelResponse.json();
assert.equal(paidFriendlyLabel.input.optionCount, 4, 'reader-friendly paid labels should still split into build-order lanes');
assert.equal(paidFriendlyLabel.ranked.find(item => item.id === 'build-order-1').lane.id, 'do');
assert.equal(paidFriendlyLabel.ranked.find(item => item.id === 'build-order-2').lane.id, 'test');
assert.equal(paidFriendlyLabel.ranked.find(item => item.id === 'build-order-3').lane.id, 'defer');
assert.equal(paidFriendlyLabel.ranked.find(item => item.id === 'build-order-4').lane.id, 'park');
assert.equal(paidFriendlyLabel.ranked.find(item => item.id === 'build-order-1').title, 'mock one private Concept Map handoff and ask a tired builder where they would click first');
assert.match(paidFriendlyLabel.handoff.activeSlice.rule, /Only this active slice is build-ready/);
assert.deepEqual(paidFriendlyLabel.handoff.warnings, []);
const hintedResponse = await fetch(`${base}/api/rank-feedback`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },