Accept rank-ready build order bridge payloads

This commit is contained in:
OpenClaw Bot
2026-05-27 23:58:21 +02:00
parent 70dfbf6817
commit 0b7ca6d009
4 changed files with 58 additions and 5 deletions
+44
View File
@@ -274,6 +274,50 @@ try {
assert.equal(snakeDecisionContext.buildOrder.doFirst[0], 'copyable-slice');
assert.equal(snakeDecisionContext.handoff.readiness.status, 'ready');
const snakePayloadRankReadyOrderResponse = await fetch(`${base}/api/rank-feedback`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
rank_payload: JSON.stringify({
source_name: 'Scattermind',
artifact_id: 'concept_map_rank_ready_order',
snapshot_title: 'Rank-ready order alias handoff',
original_prompt: 'Turn the Concept Map into a build order without creating a product dashboard.',
context: 'Solo builder. Avoid accounts, dashboards, workspaces, billing, and team collaboration before proof.',
rank_ready_build_order: {
start_here: [
{
id: 'manual-active-slice',
title: 'Manual active-slice proof',
description: 'Run the defended first move manually and preserve the source quote.',
evidence_needed: 'Can one tired builder explain the first action and why it beats the alternatives?',
source_section: 'concept-map.rankReadyBuildOrder.start_here',
},
],
evidence_next: [
{
text: 'Copy the source-traced handoff into a note and ask what would change the order',
evidence_needed: 'Does the copied handoff preserve the reason, proof question, and held-back items?',
},
],
hold_for_later: [
{ id: 'saved-project-workspace', text: 'Saved project workspace dashboard' },
],
set_aside: [
{ id: 'billing-team-collab', text: 'Billing and team collaboration layer' },
],
},
}),
}),
});
assert.equal(snakePayloadRankReadyOrderResponse.status, 200);
const snakePayloadRankReadyOrder = await snakePayloadRankReadyOrderResponse.json();
assert.equal(snakePayloadRankReadyOrder.input.provenance.artifactId, 'concept_map_rank_ready_order');
assert.equal(snakePayloadRankReadyOrder.buildOrder.doFirst[0], 'manual-active-slice');
assert.equal(snakePayloadRankReadyOrder.buildOrderDetails.doFirst[0].sourceSection, 'concept-map.rankReadyBuildOrder.start_here');
assert.equal(snakePayloadRankReadyOrder.ranked.find(item => /workspace dashboard/i.test(item.title)).lane.source, 'hint');
assert.equal(snakePayloadRankReadyOrder.handoff.readiness.status, 'ready');
const softActionObjectResponse = await fetch(`${base}/api/rank-feedback`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },