Expose pass-fail proof gates in Ranker brief
This commit is contained in:
@@ -254,6 +254,12 @@ function renderFirstScreen(firstScreen = {}) {
|
||||
<span>Why this wins</span>
|
||||
<p>${escapeHtml(firstScreen.why || 'It is the best first proof slice.')}</p>
|
||||
</div>
|
||||
<div class="proof-gate">
|
||||
<span>Pass / stop signals</span>
|
||||
<p><b>Pass:</b> ${escapeHtml(firstScreen.passSignal || 'A real user can name why this should be first.')}</p>
|
||||
<p><b>Stop:</b> ${escapeHtml(firstScreen.stopSignal || 'The proof creates no clear action, request, or value signal.')}</p>
|
||||
<small>${escapeHtml(firstScreen.proofCadence || 'Run one tiny proof cycle, then rerank.')}</small>
|
||||
</div>
|
||||
${held.length ? `<div><span>Hold back</span><ul>${held.map((item) => `<li><b>${escapeHtml(item.title)}</b>${item.lane ? ` — ${escapeHtml(item.lane)}` : ''}</li>`).join('')}</ul></div>` : ''}
|
||||
${firstScreen.sourceQuote ? `<blockquote class="active-source-quote"><span>${escapeHtml(firstScreen.sourceTitle || 'Source quote')}</span>${escapeHtml(firstScreen.sourceQuote)}</blockquote>` : ''}
|
||||
${guardrails.length ? `<small>Guardrails: ${guardrails.map(escapeHtml).join(' · ')}</small>` : ''}
|
||||
@@ -280,6 +286,11 @@ function renderDecisionReceipt(receipt = {}) {
|
||||
<span>Evidence question</span>
|
||||
<p>${escapeHtml(receipt.evidenceQuestion || 'What would make this ranking obviously right or wrong?')}</p>
|
||||
</div>
|
||||
<div>
|
||||
<span>Proof gate</span>
|
||||
<p><b>Pass:</b> ${escapeHtml(receipt.passSignal || 'Evidence makes the active move obviously worth keeping first.')}</p>
|
||||
<p><b>Stop:</b> ${escapeHtml(receipt.stopSignal || 'Evidence does not create a clear next action.')}</p>
|
||||
</div>
|
||||
${held.length ? `<div><span>Do not start yet</span><ul>${held.map((item) => `<li>${escapeHtml(item)}</li>`).join('')}</ul></div>` : ''}
|
||||
${receipt.sourceAnchor ? `<small>Source anchor: ${escapeHtml(receipt.sourceAnchor)}</small>` : ''}
|
||||
<small>${escapeHtml(receipt.handoffRule || 'Only the Do first item is active.')}</small>
|
||||
|
||||
Reference in New Issue
Block a user