Add active slice first-screen receipt

This commit is contained in:
OpenClaw Bot
2026-05-27 19:14:04 +02:00
parent bff9b1e7c3
commit 4e1b36d7b4
4 changed files with 52 additions and 1 deletions
+13 -1
View File
@@ -1622,13 +1622,24 @@ function createDecisionBrief({ idea, context, mode, ranked, provenance, decision
sourceQuote: top.provenance?.sourceQuote || '',
},
} : null;
const activeSourceAnchor = [top?.provenance?.sourceSection, top?.provenance?.sourceId || top?.provenance?.sourceTitle].filter(Boolean).join(' · ');
const firstScreen = top ? {
headline: `Build only this first: ${top.title}`,
primaryAction: nextStepFor(top),
proofQuestion: evidenceQuestionFor(top),
why: reasonFor(top),
sourceAnchor: activeSourceAnchor,
holdBack: deferred.slice(0, 3).map(item => ({ title: item.title, lane: item.lane?.label || 'Not now', reason: reasonFor(item) })),
guardrails: (decisionContext?.nonGoals || []).slice(0, 3),
rule: 'One active move. Everything else waits until this proof produces evidence.',
} : null;
const decisionReceipt = top ? {
activeMove: top.title,
activeLane: top.lane?.label || 'Do first',
firstProofStep: nextStepFor(top),
evidenceQuestion: evidenceQuestionFor(top),
doNotStartYet: deferred.slice(0, 3).map(item => item.title),
sourceAnchor: [top.provenance?.sourceSection, top.provenance?.sourceId || top.provenance?.sourceTitle].filter(Boolean).join(' · '),
sourceAnchor: activeSourceAnchor,
handoffRule: 'Only the Do first item is active. Validate one proof, then re-rank before promoting anything else.',
} : null;
const assumptions = [
@@ -1640,6 +1651,7 @@ function createDecisionBrief({ idea, context, mode, ranked, provenance, decision
headline: top ? `Start with ${top.title}` : 'Add options to get a ranked feedback map',
summary: `${theme}${second ? `${second.title}” is the nearest follow-up, not a parallel first step.` : ''}${sourceLabel ? ` Source: ${sourceLabel}.` : ''}`,
quickGlance,
firstScreen,
decisionReceipt,
source: provenance ? {
schema: provenance.schema,