Spaces:
Running
Running
| import{k as e}from"./index-BVfpSx5Q.js";import{L as m}from"./layout-NiehYZnq.js";import{P as h,K as t,S as p,C as g,c as b}from"./ui-DGkmnhL-.js";import{d as o,t as i,e as c,f as n,A as j}from"./hatunDoctrine-Cq1LMtli.js";import{R as f}from"./generateCategoricalChart-C3RFeikY.js";import{b as v,a as u,P as E,R as y}from"./RadarChart-CeXpz6rP.js";const r="#c9b787";function R(){const d=o.reduce((s,l)=>s+l.composite,0)/o.length;return e.jsxs(m,{children:[e.jsx(h,{label:"DOCTRINE · CODE BEHAVIORS",title:"Code Behaviors — Six-Dimension Score",subtitle:"Reward-hacking resistance, spec adherence, reversibility preference, oversight friendliness, sandbox respect, and self-modification restraint — measured per agent.",status:"LIVE"}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 mb-6",children:[e.jsx(t,{label:"AGENTS SCORED",value:o.length,sub:"all in production",accent:r}),e.jsx(t,{label:"AVG COMPOSITE",value:i(d),sub:"across 6 dims",accent:r}),e.jsx(t,{label:"DIMENSIONS",value:6,sub:"behavioral",accent:r}),e.jsx(t,{label:"EVAL SUITE",value:"cb-1.3",sub:"versioned, replayable",accent:r})]}),e.jsx(p,{children:"Per-Agent Profile"}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:o.map(s=>{const l=c.map(a=>({dim:n[a].split(" ").map(x=>x.slice(0,4)).join(" "),score:Math.round(s.scores[a]*100)}));return e.jsxs(g,{children:[e.jsx("div",{className:"flex items-start justify-between gap-2 mb-2",children:e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-semibold",style:{color:"var(--color-a11oy-text)"},children:j[s.agentId]}),e.jsxs("div",{className:"text-xs",style:{color:"var(--color-a11oy-text-ghost)"},children:["composite ",i(s.composite)]})]})}),e.jsx("div",{className:"-mx-2",children:e.jsx(f,{width:"100%",height:170,children:e.jsxs(v,{data:l,margin:{top:8,right:24,bottom:8,left:24},children:[e.jsx(u,{stroke:"rgba(255,255,255,0.08)"}),e.jsx(E,{dataKey:"dim",tick:{fill:"#8a8a8a",fontSize:9}}),e.jsx(y,{dataKey:"score",stroke:r,fill:r,fillOpacity:.18})]})})}),e.jsx("div",{className:"flex flex-col gap-1.5 mt-2",children:c.map(a=>e.jsxs("div",{className:"text-xs flex items-center gap-2",children:[e.jsx("span",{className:"w-32 flex-shrink-0",style:{color:"var(--color-a11oy-text-ghost)"},children:n[a]}),e.jsx("div",{className:"flex-1",children:e.jsx(b,{value:s.scores[a]*100})}),e.jsx("span",{className:"font-mono w-10 text-right",style:{color:"var(--color-a11oy-text)"},children:Math.round(s.scores[a]*100)})]},a))}),s.notableWeakness&&e.jsx("div",{className:"text-xs mt-3 px-2.5 py-2 rounded",style:{backgroundColor:"rgba(201,183,135,0.06)",borderLeft:"2px solid #c9b787",color:"var(--color-a11oy-text-sub)"},children:s.notableWeakness})]},s.agentId)})})]})}export{R as CodeBehaviors}; | |