Expose active source quote in Ranker receipt
This commit is contained in:
@@ -1829,12 +1829,16 @@ function createDecisionBrief({ idea, context, mode, ranked, provenance, decision
|
||||
},
|
||||
} : null;
|
||||
const activeSourceAnchor = [top?.provenance?.sourceSection, top?.provenance?.sourceId || top?.provenance?.sourceTitle].filter(Boolean).join(' · ');
|
||||
const activeSourceQuote = cleanText(top?.provenance?.sourceQuote || '', 260);
|
||||
const activeSourceTitle = cleanText(top?.provenance?.sourceTitle || '', 140);
|
||||
const firstScreen = top ? {
|
||||
headline: `Build only this first: ${top.title}`,
|
||||
primaryAction: nextStepFor(top),
|
||||
proofQuestion: evidenceQuestionFor(top),
|
||||
why: reasonFor(top),
|
||||
sourceAnchor: activeSourceAnchor,
|
||||
sourceTitle: activeSourceTitle,
|
||||
sourceQuote: activeSourceQuote,
|
||||
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.',
|
||||
@@ -1846,6 +1850,8 @@ function createDecisionBrief({ idea, context, mode, ranked, provenance, decision
|
||||
evidenceQuestion: evidenceQuestionFor(top),
|
||||
doNotStartYet: deferred.slice(0, 3).map(item => item.title),
|
||||
sourceAnchor: activeSourceAnchor,
|
||||
sourceTitle: activeSourceTitle,
|
||||
sourceQuote: activeSourceQuote,
|
||||
handoffRule: 'Only the Do first item is active. Validate one proof, then re-rank before promoting anything else.',
|
||||
} : null;
|
||||
const assumptions = [
|
||||
|
||||
Reference in New Issue
Block a user