PageSourceSearch

https://aureaudit-76sftcco.manus.space/assets/ExecutionLedger-DhCvsOQf.js

js aureaudit-76sftcco.manus.space collected 2026-10-03 05:00:20 UTC 24,792 bytes, 1 lines download raw bytes

1import{r as o,j as e}from"./vendor-react-0S0oTWKW.js";import{D as R}from"./DashboardLayout-Bm8YW6-0.js";import{t as d}from"./index-9cJlVojA.js";import{t as l}from"./vendor-misc-BO7yUK-G.js";import{d as f,q as _,F as U,L as T,S as I,k as z}from"./vendor-ui-BY6gfc_e.js";import"./vendor-data-w62QEuSR.js";import"./button-CBmQzPGp.js";const y={projectKey:"aure",title:"",scope:"",sourceUrl:"",targetAuthority:"not_applicable",securityPreflight:"not_required"},E={aure:"AURE",coreweaver_labs:"Coreweaver Labs",core_nu_ten:"Core-Nu-Ten",swell_aure:"Swell × AURE",arctura_network:"Arctura Network"},x={proposed:"Proposed",approved:"Approved",active:"Active / internal only",evidence_pending:"Evidence pending",reviewed:"Reviewed",closed:"Closed"},j={proposed:["approved","closed"],approved:["active","closed"],active:["evidence_pending","closed"],evidence_pending:["reviewed","closed"],reviewed:["closed"],closed:[]};function c({children:r}){return e.jsx("span",{"data-loc":"client/src/pages/ExecutionLedger.tsx:43",className:"font-mono text-[9px] uppercase tracking-[.12em]",children:r})}function k(r){return r==="reviewed"?"text-[#9aa5ff] border-[#4b5dff]/50 bg-[#4b5dff]/10":r==="closed"?"text-white/45 border-white/15 bg-white/5":r==="approved"||r==="active"?"text-[#9aa5ff] border-[#4b5dff]/50 bg-[#4b5dff]/10":"text-[#c89c4a] border-[#c89c4a]/50 bg-[#c89c4a]/10"}function V(){const r=d.useUtils(),i=d.executionLedger.cases.useQuery(),[a,w]=o.useState(y),[C,N]=o.useState(null),[g,v]=o.useState("approved"),[p,u]=o.useState(""),s=i.data?.find(t=>t.id===C)??i.data?.[0],h=d.executionLedger.events.useQuery({executionCaseId:s?.id??0},{enabled:!!s});o.useEffect(()=>{const t=s?j[s.status]?.[0]:void 0;v(t??""),u("")},[s?.id,s?.status]);const m=d.executionLedger.create.useMutation({onSuccess:t=>{l("Execution Case proposed.",{description:`Case #${t.executionCaseId} is internal and non-executing.`}),N(t.executionCaseId),w(y),r.executionLedger.cases.invalidate()},onError:t=>l("Case was not created.",{description:t.message})}),b=d.executionLedger.transition.useMutation({onSuccess:t=>{l("Case transition recorded.",{description:`${x[t.fromState]} → ${x[t.status]} was appended to the ledger.`}),u(""),r.executionLedger.cases.invalidate(),r.executionLedger.events.invalidate()},onError:t=>l("Transition was not recorded.",{description:t.message})}),n=(t,L)=>w(P=>({...P,[t]:L})),A=()=>{if(a.title.trim().length<8||a.scope.trim().length<32){l("Add a bounded title and scope.",{description:"AURE requires a concrete internal work boundary before it creates a case record."});return}m.mutate({...a,projectKey:a.projectKey,targetAuthority:a.targetAuthority,securityPreflight:a.securityPreflight,policyVersion:"AURE-ECL-0.1",sourceUrl:a.sourceUrl||void 0})},S=()=>{if(!(!s||!g)){if(p.trim().length<24){l("Add a substantive transition rationale.",{description:"The immutable event must explain the decision boundary that changed."});return}b.mutate({executionCaseId:s.id,nextState:g,rationale:p.trim()})}};return e.jsx(R,{"data-loc":"client/src/pages/ExecutionLedger.tsx:113",children:e.jsx("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:113",className:"min-h-screen -m-4 bg-[#0c1322] px-5 py-8 text-[#f3efe6] sm:px-8 lg:px-12",children:e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:113",className:"mx-auto max-w-7xl",children:[e.jsxs("header",{"data-loc":"client/src/pages/ExecutionLedger.tsx:114",className:"flex flex-col justify-between gap-7 border-b border-white/10 pb-8 lg:flex-row lg:items-end",children:[e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:114",children:[e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:114",className:"font-mono text-[10px] uppercase tracking-[.16em] text-[#9aa5ff]",children:"AURE-ECL-0.1 / internal control record"}),e.jsxs("h1",{"data-loc":"client/src/pages/ExecutionLedger.tsx:114",className:"mt-4 text-4xl font-semibold tracking-[-.065em] sm:text-6xl",children:["Execution is a",e.jsx("br",{"data-loc":"client/src/pages/ExecutionLedger.tsx:114"}),"decision record."]}
1),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:114",className:"mt-5 max-w-2xl text-[15px] leading-7 text-white/60",children:"A case may record approved internal coordination, evidence needs, review, and closure. It does not execute work, run a scanner, schedule a job, send a relay, or carry a credential."})]}),e.jsxs("a",{"data-loc":"client/src/pages/ExecutionLedger.tsx:114",href:"/portfolio",className:"font-mono text-[9px] uppercase tracking-[.12em] text-[#9aa5ff]",children:["Portfolio Harness ",e.jsx(f,{"data-loc":"client/src/pages/ExecutionLedger.tsx:114",className:"ml-1 inline",size:13})]})]}),e.jsxs("section",{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",className:"mt-8 grid gap-4 sm:grid-cols-3",children:[e.jsxs("article",{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",className:"border border-white/10 bg-[#15223a] p-5",children:[e.jsx(_,{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",size:17,className:"text-[#9aa5ff]"}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",className:"mt-7 font-mono text-[9px] uppercase tracking-[.12em] text-white/45",children:"Internal cases"}),e.jsx("strong",{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",className:"mt-3 block text-5xl leading-none tracking-[-.08em]",children:i.data?.length??"—"})]}),e.jsxs("article",{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",className:"border border-white/10 bg-[#15223a] p-5",children:[e.jsx(U,{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",size:17,className:"text-[#9aa5ff]"}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",className:"mt-7 font-mono text-[9px] uppercase tracking-[.12em] text-white/45",children:"Reviewed cases"}),e.jsx("strong",{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",className:"mt-3 block text-5xl leading-none tracking-[-.08em]",children:i.data?.filter(t=>t.status==="reviewed").length??"—"})]}),e.jsxs("article",{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",className:"border border-white/10 bg-[#15223a] p-5",children:[e.jsx(T,{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",size:17,className:"text-[#c89c4a]"}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",className:"mt-7 font-mono text-[9px] uppercase tracking-[.12em] text-white/45",children:"External execution"}),e.jsx("strong",{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",className:"mt-3 block text-5xl leading-none tracking-[-.08em]",children:"0"}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:115",className:"mt-2 font-mono text-[9px] uppercase tracking-[.1em] text-[#c89c4a]",children:"Not in this release"})]})]}),e.jsxs("section",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",className:"mt-9 grid gap-8 xl:grid-cols-[.92fr_1.08fr]",children:[e.jsxs("article",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",className:"border border-white/10 bg-[#15223a]",children:[e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",className:"border-b border-white/10 p-6",children:[e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",className:"font-mono text-[10px] uppercase tracking-[.14em] text-[#9aa5ff]",children:"Propose internal case"}),e.jsx("h2",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",className:"mt-3 text-2xl tracking-[-.05em]",children:"Bound scope first."}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",className:"mt-3 text-sm leading-6 text-white/55",children:"Record only public source routes and redacted operational context. Do not enter passwords, keys, recipient data, or private evidence."})]}),e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",className:"space-y-5 p-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("label",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:"Portfolio project"}),e.jsx("select",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:a.projectKey,onChange:t=>n("projectKey",t.target.value),className:"mt-2 w-full border border-white/10 bg-[#0c1322] p-3 text-sm outline-none focus:border-[#4b5dff]",children:Object.entries(E).map(([t,L])=>
1e.jsx("option",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:t,children:L},t))})]}),e.jsxs("label",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:"Policy version"}),e.jsx("input",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:"AURE-ECL-0.1",disabled:!0,className:"mt-2 w-full border border-white/10 bg-[#0c1322] p-3 text-sm text-white/45 outline-none"})]})]}),e.jsxs("label",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:"Case title"}),e.jsx("input",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:a.title,onChange:t=>n("title",t.target.value),placeholder:"A bounded review or delivery decision",className:"mt-2 w-full border border-white/10 bg-[#0c1322] p-3 text-sm outline-none placeholder:text-white/30 focus:border-[#4b5dff]"})]}),e.jsxs("label",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:"Allowed internal scope"}),e.jsx("textarea",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:a.scope,onChange:t=>n("scope",t.target.value),placeholder:"State what will be reviewed or coordinated, the acceptable outcome, and what is explicitly out of scope.",className:"mt-2 min-h-32 w-full border border-white/10 bg-[#0c1322] p-3 text-sm leading-6 outline-none placeholder:text-white/30 focus:border-[#4b5dff]"})]}),e.jsxs("label",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:[e.jsxs(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:["Public source route ",e.jsx("span",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",className:"text-white/35",children:"optional"})]}),e.jsx("input",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:a.sourceUrl,onChange:t=>n("sourceUrl",t.target.value),placeholder:"https://...",className:"mt-2 w-full border border-white/10 bg-[#0c1322] p-3 text-sm outline-none placeholder:text-white/30 focus:border-[#4b5dff]"})]}),e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("label",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:"Target authority"}),e.jsxs("select",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:a.targetAuthority,onChange:t=>n("targetAuthority",t.target.value),className:"mt-2 w-full border border-white/10 bg-[#0c1322] p-3 text-sm outline-none focus:border-[#4b5dff]",children:[e.jsx("option",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:"not_applicable",children:"Not applicable"}),e.jsx("option",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:"owner_attested",children:"Owner attested"}),e.jsx("option",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:"written_authority",children:"Written authority"})]})]}),e.jsxs("label",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",children:"Security preflight"}),e.jsxs("select",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:a.securityPreflight,onChange:t=>n("securityPreflight",t.target.value),className:"mt-2 w-full border border-white/10 bg-[#0c1322] p-3 text-sm outline-none focus:border-[#4b5dff]",children:[e.jsx("option",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:"not_required",children:"Not required"}),e.jsx("option",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:"pending",children:"Pending"}),e.jsx("option",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:"passed",children:"Passed"}),e.jsx("option",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",value:"blocked",children:"Blocked"})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",className:"border border-[#c89c4a]/45 bg-[#c89c4a]/10 p-4 text-xs leading-5 text-white/70",children:[e.jsx(I,{"data-loc":"client/src/pages/ExecutionLedger.t
1sx:116",className:"mr-2 inline text-[#d6ae65]",size:14}),"Approval is a human decision. It does not launch an agent, scan a target, transmit a task, or grant external access."]}),e.jsxs("button",{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",disabled:m.isPending,onClick:A,className:"inline-flex h-12 items-center gap-2 bg-[#4b5dff] px-5 font-mono text-[10px] uppercase tracking-[.12em] text-white disabled:opacity-50",children:[m.isPending?"Recording":"Propose case",e.jsx(f,{"data-loc":"client/src/pages/ExecutionLedger.tsx:116",size:14})]})]})]}),e.jsxs("aside",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:"border border-white/10 bg-[#15223a]",children:[e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:"border-b border-white/10 p-6",children:[e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:"font-mono text-[10px] uppercase tracking-[.14em] text-[#9aa5ff]",children:"Case registry"}),e.jsx("h2",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:"mt-3 text-2xl tracking-[-.05em]",children:"No hidden work state."})]}),i.isLoading?e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:"p-6 text-sm text-white/45",children:"Loading internal cases…"}):i.data?.length?e.jsx("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:"divide-y divide-white/10",children:i.data.map(t=>e.jsxs("button",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",onClick:()=>N(t.id),className:`w-full p-5 text-left transition-colors ${s?.id===t.id?"bg-[#4b5dff]/12":"hover:bg-white/5"}`,children:[e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:"flex items-center justify-between gap-3",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",children:E[t.projectKey]}),e.jsx("span",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:`border px-2 py-1 font-mono text-[8px] uppercase tracking-[.1em] ${k(t.status)}`,children:x[t.status]})]}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:"mt-3 text-[15px] font-medium",children:t.title}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:"mt-2 line-clamp-2 text-xs leading-5 text-white/55",children:t.scope})]},t.id))}):e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:"p-6",children:[e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:"text-sm text-white/70",children:"No execution cases exist yet."}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:117",className:"mt-3 text-xs leading-5 text-white/45",children:"The first case must name its project, policy version, bounded scope, authority state, and security-preflight state. The record is still non-executing."})]})]})]}),s&&e.jsxs("section",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"mt-9 grid gap-8 border-t border-white/10 pt-9 xl:grid-cols-[1.05fr_.95fr]",children:[e.jsxs("article",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"border border-white/10 bg-[#15223a] p-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"flex flex-wrap items-start justify-between gap-4 border-b border-white/10 pb-5",children:[e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",children:[e.jsxs("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"font-mono text-[10px] uppercase tracking-[.14em] text-[#9aa5ff]",children:["Case #",s.id," / ",E[s.projectKey]]}),e.jsx("h2",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"mt-3 text-2xl tracking-[-.05em]",children:s.title}),e.jsxs("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"mt-2 font-mono text-[9px] uppercase tracking-[.1em] text-white/45",children:[s.policyVersion," · internal visibility"]})]}),e.jsx("span",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:`border px-3 py-2 font-mono text-[9px] uppercase tracking-[.1em] ${k(s.status)}`,children:x[s.status]})]}
1),e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"mt-6 grid gap-5",children:[e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",children:"Bound scope"}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"mt-3 border border-white/10 bg-[#0c1322] p-4 text-sm leading-6 text-white/70",children:s.scope})]}),e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"grid gap-4 text-xs text-white/50 sm:grid-cols-2",children:[e.jsxs("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",children:"Target authority"}),e.jsx("br",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118"}),e.jsx("span",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"mt-2 block",children:s.targetAuthority.replaceAll("_"," ")})]}),e.jsxs("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",children:"Security preflight"}),e.jsx("br",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118"}),e.jsx("span",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"mt-2 block",children:s.securityPreflight.replaceAll("_"," ")})]}),s.sourceUrl?e.jsxs("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"sm:col-span-2",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",children:"Public source"}),e.jsx("br",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118"}),e.jsx("a",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",href:s.sourceUrl,target:"_blank",rel:"noreferrer",className:"mt-2 inline-block break-all text-[#9aa5ff] hover:text-white",children:s.sourceUrl})]}):null]}),s.reviewSummary?e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"border border-[#4b5dff]/40 bg-[#4b5dff]/10 p-4",children:[e.jsx(z,{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"mr-2 inline text-[#9aa5ff]",size:15}),e.jsx("span",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"text-sm text-white/75",children:"Review summary recorded."}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"mt-3 text-xs leading-5 text-white/55",children:s.reviewSummary})]}):null,s.closeReason?e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"border border-white/10 bg-white/5 p-4",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",children:"Closure reason"}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:118",className:"mt-3 text-xs leading-5 text-white/55",children:s.closeReason})]}):null]})]}),e.jsxs("aside",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"space-y-6",children:[e.jsxs("article",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"border border-white/10 bg-[#15223a] p-6",children:[e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"font-mono text-[10px] uppercase tracking-[.14em] text-[#9aa5ff]",children:"Lifecycle transition"}),e.jsx("h3",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"mt-3 text-2xl tracking-[-.05em]",children:"Append, never rewrite."}),j[s.status]?.length?e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"mt-5 space-y-4",children:[e.jsxs("label",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",children:"Permitted next state"}),e.jsx("select",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",value:g,onChange:t=>v(t.target.value),className:"mt-2 w-full border border-white/10 bg-[#0c1322] p-3 text-sm outline-none focus:border-[#4b5dff]",children:j[s.status].map(t=>e.jsx("option",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",value:t,children:x[t]},t))})]}),e.jsxs("label",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.t
1sx:119",children:"Decision rationale"}),e.jsx("textarea",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",value:p,onChange:t=>u(t.target.value),placeholder:"State the evidence condition, decision boundary, and why this is the permitted next state.",className:"mt-2 min-h-32 w-full border border-white/10 bg-[#0c1322] p-3 text-sm leading-6 outline-none placeholder:text-white/30 focus:border-[#4b5dff]"})]}),e.jsxs("button",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",disabled:b.isPending,onClick:S,className:"inline-flex h-11 items-center gap-2 bg-[#4b5dff] px-4 font-mono text-[10px] uppercase tracking-[.12em] text-white disabled:opacity-50",children:[b.isPending?"Recording":"Record transition",e.jsx(f,{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",size:13})]})]}):e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"mt-5 border border-white/10 bg-white/5 p-4 text-sm leading-6 text-white/55",children:"This case is terminal. AURE-ECL-0.1 does not reopen or rewrite closed records; create a new linked case if work restarts."})]}),e.jsxs("article",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"border border-white/10 bg-[#15223a] p-6",children:[e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"font-mono text-[10px] uppercase tracking-[.14em] text-[#9aa5ff]",children:"Immutable event trail"}),e.jsx("h3",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"mt-3 text-2xl tracking-[-.05em]",children:"Decision context persists."}),h.isLoading?e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"mt-5 text-sm text-white/45",children:"Loading event trail…"}):h.data?.length?e.jsx("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"mt-5 divide-y divide-white/10 border border-white/10",children:h.data.map(t=>e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"p-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"flex items-center justify-between gap-3",children:[e.jsx(c,{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",children:t.eventType.replaceAll("_"," ")}),e.jsx("span",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"font-mono text-[9px] text-white/40",children:new Date(t.createdAt).toLocaleString()})]}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"mt-3 text-xs leading-5 text-white/65",children:t.rationale}),e.jsxs("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"mt-2 font-mono text-[9px] uppercase tracking-[.1em] text-white/35",children:[t.fromState?`${t.fromState} → `:"",t.toState," · ",t.policyVersion]})]},t.id))}):e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:119",className:"mt-5 text-sm leading-6 text-white/55",children:"The proposal event will appear here after the record is created."})]})]})]}),e.jsx("section",{"data-loc":"client/src/pages/ExecutionLedger.tsx:120",className:"mt-9 border-t border-white/10 pt-8",children:e.jsx("div",{"data-loc":"client/src/pages/ExecutionLedger.tsx:120",className:"grid gap-7 md:grid-cols-3",children:[{id:"01 / Propose",body:"Name the portfolio project, bounded scope, policy version, source route, authority state, and preflight status."},{id:"02 / Review",body:"Move only through the permitted lifecycle. Each state transition includes a named reviewer rationale and an immutable event."},{id:"03 / Close",body:"Close the decision record. This release intentionally does not run work or reopen history; a new case is required for a new scope."}].map(t=>e.jsxs("article",{"data-loc":"client/src/pages/ExecutionLedger.tsx:120",children:[e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:120",className:"font-mono text-[10px] uppercase tracking-[.12em] text-[#9aa5ff]",children:t.id}),e.jsx("p",{"data-loc":"client/src/pages/ExecutionLedger.tsx:120",className:"mt-4 text-sm leading-7 text-white/60",children:t.body})]},t.id))})})]})})})}export{V as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.