Accept paid Concept Map build-order labels
This commit is contained in:
@@ -266,6 +266,36 @@ try {
|
||||
assert.match(softDashLabel.handoff.itemTrace.find(item => item.id === 'build-order-1').sourceQuote, /Continue first/);
|
||||
assert.deepEqual(softDashLabel.handoff.warnings, []);
|
||||
|
||||
const paidLabelResponse = await fetch(`${base}/api/rank-feedback`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
sourceName: 'Scattermind',
|
||||
artifactId: 'concept_map_paid_label_aliases',
|
||||
originalPrompt: 'Scattermind paid Concept Map used decisive paid-output wording from the current prompt.',
|
||||
context: 'Solo builder. Manual proof first. Avoid account dashboards and billing until evidence exists.',
|
||||
conceptMap: {
|
||||
working_name: 'Paid label aliases',
|
||||
lenses: {
|
||||
channel: {
|
||||
title: 'Build Order',
|
||||
content: 'Ship this first — Manual source-traced build order preview from one Concept Map. Test first — Ask 3 tired users which step they would take. Leave out — Account dashboard and saved workspace. Skip for now — Subscription billing and admin controls.',
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
});
|
||||
assert.equal(paidLabelResponse.status, 200);
|
||||
const paidLabel = await paidLabelResponse.json();
|
||||
assert.equal(paidLabel.input.optionCount, 4);
|
||||
assert.equal(paidLabel.buildOrder.doFirst[0], 'build-order-1', 'paid Scattermind label aliases should still produce an active build slice');
|
||||
assert.equal(paidLabel.ranked.find(item => item.id === 'build-order-1').lane.id, 'do');
|
||||
assert.equal(paidLabel.ranked.find(item => item.id === 'build-order-2').lane.id, 'test');
|
||||
assert.equal(paidLabel.ranked.find(item => item.id === 'build-order-3').lane.id, 'defer');
|
||||
assert.equal(paidLabel.ranked.find(item => item.id === 'build-order-4').lane.id, 'defer');
|
||||
assert.match(paidLabel.brief.decisionReceipt.sourceAnchor, /concept-map\.lenses\.channel/);
|
||||
assert.deepEqual(paidLabel.handoff.warnings, []);
|
||||
|
||||
const hintedResponse = await fetch(`${base}/api/rank-feedback`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
|
||||
Reference in New Issue
Block a user