()
| 622 | } |
| 623 | |
| 624 | function renderSummary() { |
| 625 | if(decision) { |
| 626 | const host=$('summary-decision');host.className='overview'; |
| 627 | host.append(el('h2','','Attested review decision'),el('p','',`Evidence readiness: ${title(decision.readiness)} · User insertion disposition: ${title(decision.disposition)}`),el('p','muted',`Accountable signer: ${decision.signer}. This records explicit evaluation and accepted risks, not a clean-code or independent-approval claim.`),el('p','source-path',`Review ${decision.id} · Report ${decision.report_hash}`)); |
| 628 | for(const pass of decision.evaluation.passes) { |
| 629 | const row=el('section','criterion-declaration');row.dataset.passEvaluation=pass.pass; |
| 630 | row.append(el('h3','',title(pass.pass)+' · '+title(pass.disposition)),el('p','',pass.rationale)); |
| 631 | host.append(row); |
| 632 | } |
| 633 | const issues=el('div'); |
| 634 | for(const issue of decision.issues) { |
| 635 | const acceptance=degradationAcceptances.get(issue.id),row=el('article','finding'); |
| 636 | row.dataset.reviewIssue=issue.id; |
| 637 | row.append(el('h3','',title(issue.pass)+' · '+issue.summary),badge(acceptance?'Accepted degradation':issue.waivable?'Not accepted':'Not waivable',acceptance?'changed':'high'),el('p','source-path',issue.id),el('p','',acceptance?.rationale || 'No acceptance of this issue was attested.')); |
| 638 | for(const entry of issue.evidence)row.append(el('p','source-path',entry)); |
| 639 | for(const entry of acceptance?.evidence || [])row.append(el('p','source-path','Acceptance evidence: '+entry)); |
| 640 | if(acceptance?.follow_up)row.append(el('p','','Follow-up: '+acceptance.follow_up)); |
| 641 | issues.append(row); |
| 642 | } |
| 643 | host.append(detail(`Outstanding evidence and explicit dispositions (${decision.issues.length})`,issues)); |
| 644 | } |
| 645 | const actions = $('summary-actions'); |
| 646 | for (const [section, label] of [['slop', 'Review audit findings'], ['conformance', 'Review conformance'], ['risk', 'Review blast radius']]) { |
| 647 | const control = button(label, () => { activate(section); $('tab-' + section).focus(); }); |
| 648 | control.dataset.section = section; actions.append(control); |
| 649 | } |
| 650 | // The report is immutable. Build report-wide tables once instead of |
| 651 | // rebuilding them whenever a different file or region is selected. |
| 652 | renderAuditOverview(); |
| 653 | renderConformanceOverview(); |
| 654 | renderRiskOverview(); |
| 655 | } |
| 656 | |
| 657 | function render() { |
| 658 | for (const name of sections) { |
no test coverage detected