[{"data":1,"prerenderedAt":1676},["ShallowReactive",2],{"docs-navigation":3,"docs-page-\u002Fdocs\u002Fagents\u002Fmemory-consequence-agents\u002Ffree-evaluation":280,"docs-surround-\u002Fdocs\u002Fagents\u002Fmemory-consequence-agents\u002Ffree-evaluation":1673},[4],{"title":5,"path":6,"stem":7,"children":8,"page":279},"Docs","\u002Fdocs","docs",[9,56,125,225,260],{"title":10,"path":11,"stem":12,"children":13},"GET STARTED","\u002Fdocs\u002Fget-started","docs\u002F1.get-started\u002F1.index",[14,16,20,24,28,32,36,40,44,48,52],{"title":15,"path":11,"stem":12},"Start here",{"title":17,"path":18,"stem":19},"Security evaluation pack","\u002Fdocs\u002Fget-started\u002Fsecurity-evaluation","docs\u002F1.get-started\u002F10.security-evaluation",{"title":21,"path":22,"stem":23},"Evaluation costs and plan boundaries","\u002Fdocs\u002Fget-started\u002Fevaluation-costs","docs\u002F1.get-started\u002F11.evaluation-costs",{"title":25,"path":26,"stem":27},"Quickstart","\u002Fdocs\u002Fget-started\u002Fquickstart","docs\u002F1.get-started\u002F2.quickstart",{"title":29,"path":30,"stem":31},"API","\u002Fdocs\u002Fget-started\u002Fapi","docs\u002F1.get-started\u002F3.api",{"title":33,"path":34,"stem":35},"SDKs and CLI","\u002Fdocs\u002Fget-started\u002Fsdks-cli","docs\u002F1.get-started\u002F4.sdks-cli",{"title":37,"path":38,"stem":39},"Sandbox testing","\u002Fdocs\u002Fget-started\u002Flocal-development","docs\u002F1.get-started\u002F5.local-development",{"title":41,"path":42,"stem":43},"Authentication","\u002Fdocs\u002Fget-started\u002Fauthentication","docs\u002F1.get-started\u002F6.authentication",{"title":45,"path":46,"stem":47},"Complete language examples","\u002Fdocs\u002Fget-started\u002Ffirst-result","docs\u002F1.get-started\u002F7.first-result",{"title":49,"path":50,"stem":51},"Evaluate against your current stack","\u002Fdocs\u002Fget-started\u002Fevaluate","docs\u002F1.get-started\u002F8.evaluate",{"title":53,"path":54,"stem":55},"HTTP automation and framework wiring","\u002Fdocs\u002Fget-started\u002Fautomation","docs\u002F1.get-started\u002F9.automation",{"title":57,"path":58,"stem":59,"children":60},"FUNDAMENTALS","\u002Fdocs\u002Ffundamentals","docs\u002F2.fundamentals\u002F01.index",[61,63,67,71,75,79,83,87,91,95,99],{"title":62,"path":58,"stem":59},"Fundamentals",{"title":64,"path":65,"stem":66},"Architecture","\u002Fdocs\u002Ffundamentals\u002Farchitecture","docs\u002F2.fundamentals\u002F02.architecture",{"title":68,"path":69,"stem":70},"Memory model","\u002Fdocs\u002Ffundamentals\u002Fmemory-model","docs\u002F2.fundamentals\u002F03.memory-model",{"title":72,"path":73,"stem":74},"Compression","\u002Fdocs\u002Ffundamentals\u002Fcompression","docs\u002F2.fundamentals\u002F04.compression",{"title":76,"path":77,"stem":78},"RAG and cached context","\u002Fdocs\u002Ffundamentals\u002Frag-cag","docs\u002F2.fundamentals\u002F05.rag-cag",{"title":80,"path":81,"stem":82},"Context cache","\u002Fdocs\u002Ffundamentals\u002Fcontext-cache","docs\u002F2.fundamentals\u002F06.context-cache",{"title":84,"path":85,"stem":86},"Security","\u002Fdocs\u002Ffundamentals\u002Fsecurity","docs\u002F2.fundamentals\u002F07.security",{"title":88,"path":89,"stem":90},"Languages","\u002Fdocs\u002Ffundamentals\u002Flanguages","docs\u002F2.fundamentals\u002F08.languages",{"title":92,"path":93,"stem":94},"Knowledge and decision intelligence","\u002Fdocs\u002Ffundamentals\u002Fknowledge-decision-intelligence","docs\u002F2.fundamentals\u002F09.knowledge-decision-intelligence",{"title":96,"path":97,"stem":98},"UI patterns","\u002Fdocs\u002Ffundamentals\u002Fui","docs\u002F2.fundamentals\u002F09.ui",{"title":100,"path":101,"stem":102,"children":103},"Global, Regional, and Jurisdictional Memory","\u002Fdocs\u002Ffundamentals\u002Fdata-placement","docs\u002F2.fundamentals\u002F10.data-placement\u002F1.index",[104,105,109,113,117,121],{"title":100,"path":101,"stem":102},{"title":106,"path":107,"stem":108},"TypeScript \u002F JavaScript","\u002Fdocs\u002Ffundamentals\u002Fdata-placement\u002Ftypescript","docs\u002F2.fundamentals\u002F10.data-placement\u002F2.typescript",{"title":110,"path":111,"stem":112},"Python","\u002Fdocs\u002Ffundamentals\u002Fdata-placement\u002Fpython","docs\u002F2.fundamentals\u002F10.data-placement\u002F3.python",{"title":114,"path":115,"stem":116},"PHP","\u002Fdocs\u002Ffundamentals\u002Fdata-placement\u002Fphp","docs\u002F2.fundamentals\u002F10.data-placement\u002F4.php",{"title":118,"path":119,"stem":120},"Go","\u002Fdocs\u002Ffundamentals\u002Fdata-placement\u002Fgo","docs\u002F2.fundamentals\u002F10.data-placement\u002F5.go",{"title":122,"path":123,"stem":124},"Rust","\u002Fdocs\u002Ffundamentals\u002Fdata-placement\u002Frust","docs\u002F2.fundamentals\u002F10.data-placement\u002F6.rust",{"title":126,"path":127,"stem":128,"children":129},"AGENTS & CODE NUCLEI","\u002Fdocs\u002Fagents","docs\u002F3.agents\u002F01.index",[130,132,136,140,144,148,152,156,160,164,182,221],{"title":131,"path":127,"stem":128},"Agents",{"title":133,"path":134,"stem":135},"Codex Code Nucleus","\u002Fdocs\u002Fagents\u002Fcodex-code-nucleus","docs\u002F3.agents\u002F02.codex-code-nucleus",{"title":137,"path":138,"stem":139},"Claude Code Nucleus","\u002Fdocs\u002Fagents\u002Fclaude-code-nucleus","docs\u002F3.agents\u002F03.claude-code-nucleus",{"title":141,"path":142,"stem":143},"Google Gemini Code Nucleus","\u002Fdocs\u002Fagents\u002Fgoogle-gemini-code-nucleus","docs\u002F3.agents\u002F04.google-gemini-code-nucleus",{"title":145,"path":146,"stem":147},"GitHub Copilot Code Nucleus","\u002Fdocs\u002Fagents\u002Fgithub-copilot-code-nucleus","docs\u002F3.agents\u002F05.github-copilot-code-nucleus",{"title":149,"path":150,"stem":151},"Cursor Code Nucleus","\u002Fdocs\u002Fagents\u002Fcursor-code-nucleus","docs\u002F3.agents\u002F06.cursor-code-nucleus",{"title":153,"path":154,"stem":155},"Windsurf Code Nucleus","\u002Fdocs\u002Fagents\u002Fwindsurf-code-nucleus","docs\u002F3.agents\u002F07.windsurf-code-nucleus",{"title":157,"path":158,"stem":159},"Agent skills","\u002Fdocs\u002Fagents\u002Fagent-skills","docs\u002F3.agents\u002F08.agent-skills",{"title":161,"path":162,"stem":163},"Admin UI prompt","\u002Fdocs\u002Fagents\u002Fadmin-ui-prompt","docs\u002F3.agents\u002F09.admin-ui-prompt",{"title":165,"path":166,"stem":167,"children":168},"Team Code Governance","\u002Fdocs\u002Fagents\u002Fcode-governance","docs\u002F3.agents\u002F10.code-governance\u002F1.index",[169,170,174,178],{"title":165,"path":166,"stem":167},{"title":171,"path":172,"stem":173},"Local Team Setup","\u002Fdocs\u002Fagents\u002Fcode-governance\u002Flocal-team-setup","docs\u002F3.agents\u002F10.code-governance\u002F2.local-team-setup",{"title":175,"path":176,"stem":177},"Language Governance Packs","\u002Fdocs\u002Fagents\u002Fcode-governance\u002Flanguage-packs","docs\u002F3.agents\u002F10.code-governance\u002F3.language-packs",{"title":179,"path":180,"stem":181},"GitHub CI\u002FCD Governance","\u002Fdocs\u002Fagents\u002Fcode-governance\u002Fgithub-cicd","docs\u002F3.agents\u002F10.code-governance\u002F4.github-cicd",{"title":183,"path":184,"stem":185,"children":186},"Memory + Consequence Agents","\u002Fdocs\u002Fagents\u002Fmemory-consequence-agents","docs\u002F3.agents\u002F11.memory-consequence-agents\u002F1.index",[187,188,209,213,217],{"title":183,"path":184,"stem":185},{"title":189,"path":190,"stem":191,"children":192},"End-to-End Agent Example","\u002Fdocs\u002Fagents\u002Fmemory-consequence-agents\u002Fend-to-end","docs\u002F3.agents\u002F11.memory-consequence-agents\u002F2.end-to-end\u002F1.index",[193,194,197,200,203,206],{"title":189,"path":190,"stem":191},{"title":106,"path":195,"stem":196},"\u002Fdocs\u002Fagents\u002Fmemory-consequence-agents\u002Fend-to-end\u002Ftypescript","docs\u002F3.agents\u002F11.memory-consequence-agents\u002F2.end-to-end\u002F2.typescript",{"title":110,"path":198,"stem":199},"\u002Fdocs\u002Fagents\u002Fmemory-consequence-agents\u002Fend-to-end\u002Fpython","docs\u002F3.agents\u002F11.memory-consequence-agents\u002F2.end-to-end\u002F3.python",{"title":114,"path":201,"stem":202},"\u002Fdocs\u002Fagents\u002Fmemory-consequence-agents\u002Fend-to-end\u002Fphp","docs\u002F3.agents\u002F11.memory-consequence-agents\u002F2.end-to-end\u002F4.php",{"title":118,"path":204,"stem":205},"\u002Fdocs\u002Fagents\u002Fmemory-consequence-agents\u002Fend-to-end\u002Fgo","docs\u002F3.agents\u002F11.memory-consequence-agents\u002F2.end-to-end\u002F5.go",{"title":122,"path":207,"stem":208},"\u002Fdocs\u002Fagents\u002Fmemory-consequence-agents\u002Fend-to-end\u002Frust","docs\u002F3.agents\u002F11.memory-consequence-agents\u002F2.end-to-end\u002F6.rust",{"title":210,"path":211,"stem":212},"Industry Agent Use Cases","\u002Fdocs\u002Fagents\u002Fmemory-consequence-agents\u002Findustry-use-cases","docs\u002F3.agents\u002F11.memory-consequence-agents\u002F3.industry-use-cases",{"title":214,"path":215,"stem":216},"Historical Actions and Learning","\u002Fdocs\u002Fagents\u002Fmemory-consequence-agents\u002Fhistorical-learning","docs\u002F3.agents\u002F11.memory-consequence-agents\u002F4.historical-learning",{"title":218,"path":219,"stem":220},"Free support-escalation evaluation","\u002Fdocs\u002Fagents\u002Fmemory-consequence-agents\u002Ffree-evaluation","docs\u002F3.agents\u002F11.memory-consequence-agents\u002F5.free-evaluation",{"title":222,"path":223,"stem":224},"Consequence decision support","\u002Fdocs\u002Fagents\u002Fconsequence","docs\u002F3.agents\u002F12.consequence",{"title":226,"path":227,"stem":228,"children":229},"MODEL PROVIDERS","\u002Fdocs\u002Fproviders","docs\u002F4.providers\u002F1.index",[230,232,236,240,244,248,252,256],{"title":231,"path":227,"stem":228},"Providers",{"title":233,"path":234,"stem":235},"OpenAI and Azure OpenAI","\u002Fdocs\u002Fproviders\u002Fopenai","docs\u002F4.providers\u002F2.openai",{"title":237,"path":238,"stem":239},"Anthropic Claude","\u002Fdocs\u002Fproviders\u002Fanthropic","docs\u002F4.providers\u002F3.anthropic",{"title":241,"path":242,"stem":243},"Google Gemini and Vertex AI","\u002Fdocs\u002Fproviders\u002Fgoogle-gemini","docs\u002F4.providers\u002F4.google-gemini",{"title":245,"path":246,"stem":247},"OpenAI-compatible providers","\u002Fdocs\u002Fproviders\u002Fopenai-compatible","docs\u002F4.providers\u002F5.openai-compatible",{"title":249,"path":250,"stem":251},"Groq","\u002Fdocs\u002Fproviders\u002Fgroq","docs\u002F4.providers\u002F6.groq",{"title":253,"path":254,"stem":255},"Cohere","\u002Fdocs\u002Fproviders\u002Fcohere","docs\u002F4.providers\u002F7.cohere",{"title":257,"path":258,"stem":259},"Amazon Bedrock","\u002Fdocs\u002Fproviders\u002Famazon-bedrock","docs\u002F4.providers\u002F8.amazon-bedrock",{"title":261,"path":262,"stem":263,"children":264},"CHANGELOG","\u002Fdocs\u002Fchangelog","docs\u002F5.changelog\u002F1.index",[265,267,271,275],{"title":266,"path":262,"stem":263},"Changelog",{"title":268,"path":269,"stem":270},"Roadmap","\u002Fdocs\u002Fchangelog\u002Froadmap","docs\u002F5.changelog\u002F2.roadmap",{"title":272,"path":273,"stem":274},"Release notes","\u002Fdocs\u002Fchangelog\u002Frelease-runbook","docs\u002F5.changelog\u002F3.release-runbook",{"title":276,"path":277,"stem":278},"Testing","\u002Fdocs\u002Fchangelog\u002Ftesting","docs\u002F5.changelog\u002F4.testing",false,{"id":281,"title":218,"body":282,"description":1667,"extension":1668,"meta":1669,"navigation":1670,"path":219,"seo":1671,"stem":220,"__hash__":1672},"docs\u002Fdocs\u002F3.agents\u002F11.memory-consequence-agents\u002F5.free-evaluation.md",{"type":283,"value":284,"toc":1660},"minimark",[285,290,294,306,311,319,1540,1550,1554,1569,1576,1580,1603,1606,1610,1630,1634,1645,1656],[286,287,289],"h1",{"id":288},"review-a-support-decision-before-changing-the-workflow","Review a support decision before changing the workflow",[291,292,293],"p",{},"A support team needs to know why an agent proposed changing a customer-facing response and what actually happened afterward. This example compares a manual escalation with a bounded production pilot. It uses generic consequence planning, invented context, zero planner model calls and no Enterprise industry pack. It does not send a reply, change a ticket or execute an external action.",[291,295,296,297,301,302,305],{},"Complete the ",[298,299,300],"a",{"href":26},"Free account and Nucleus setup",". You need Node.js 22.18+ or a server-side HTTP client. TypeScript\u002FJavaScript, Python, PHP, Go and Rust can call the same authenticated REST routes using the HTTP helpers in the ",[298,303,304],{"href":46},"complete language examples",". Newer typed-client coverage differs; a REST example is not a claim of SDK parity.",[307,308,310],"h2",{"id":309},"_1-plan-and-record-a-draft","1. Plan and record a draft",[291,312,313,314,318],{},"Save this as ",[315,316,317],"code",{},"decision-evaluation.mjs",". It uses only built-in fetch and stops at a human-review boundary:",[320,321,326],"pre",{"className":322,"code":323,"language":324,"meta":325,"style":325},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { randomUUID } from \"node:crypto\";\nconst token = process.env.NEUTRON_API_TOKEN;\nconst nucleusId = process.env.NEUTRON_NUCLEUS_ID;\nif (!token || !nucleusId) throw new Error(\"Set your server-side Nucleus token and ID\");\nconst scopeIds = [`evaluation:support-decision:${randomUUID()}`];\nasync function request(route, body) {\n  const response = await fetch(`https:\u002F\u002Fneutronai.dev\u002Fapi\u002Fv1\u002Fconsequence\u002F${route}`, {\n    method: \"POST\", headers: { authorization: `Bearer ${token}`, \"content-type\": \"application\u002Fjson\" },\n    body: JSON.stringify({ nucleusId, scopeIds, ...body }), signal: AbortSignal.timeout(15000), redirect: \"error\",\n  });\n  const result = await response.json();\n  return { status: response.status, body: result };\n}\nconst planned = await request(\"plan\", {\n  task: \"Compare manual support escalation with a bounded production pilot of automated customer replies. Do not contact customers or change production.\",\n  domain: \"customer_support\", idempotencyKey: `support-review-${randomUUID()}`, retentionDays: 1,\n  objectiveHints: [\"Preserve operator review\", \"Reduce repeated support work\"],\n  constraintHints: [\"Customer-facing changes require human approval\", \"No external action is authorised\"],\n  policy: { mode: \"quick\", depth: 1, maxScenarios: 4, maxRuntimeMs: 3000, maxNodes: 8,\n    maxBranches: 4, maxModelCalls: 0, maxCostEstimate: 0, requireApprovalAboveRisk: \"medium\",\n    allowExecution: false, storeSafeArtifactsOnly: true },\n});\nif (planned.status !== 201) throw new Error(`Plan: HTTP ${planned.status}`);\nconst candidate = planned.body.scenarios.find((scenario) => scenario.approvalRequired);\nif (!candidate) throw new Error(\"No approval-gated candidate: stop and inspect the scenarios\");\nconst decided = await request(\"decide\", { runId: planned.body.runId,\n  selectedScenarioId: candidate.scenarioId, decisionSummary: \"Synthetic pilot candidate; waiting for owner review.\" });\nif (decided.status !== 201 || decided.body.decisionRecord?.status !== \"draft\") throw new Error(\"Expected a draft decision\");\nconst decisionId = decided.body.decisionRecord.decisionId;\nconst blocked = await request(\"observe\", { decisionId, summary: \"Synthetic pre-approval observation attempt.\" });\nif (blocked.status !== 403) throw new Error(\"Expected pre-approval observation to be rejected\");\nconsole.log(JSON.stringify({ runId: planned.body.runId, decisionId, status: \"waiting_for_human_review\", observationBeforeApproval: blocked.status }));\n","js","",[315,327,328,364,393,416,465,501,530,566,630,711,721,744,775,781,808,825,872,902,932,995,1040,1064,1074,1124,1173,1204,1249,1285,1351,1378,1428,1466],{"__ignoreMap":325},[329,330,333,337,341,345,348,351,354,358,361],"span",{"class":331,"line":332},"line",1,[329,334,336],{"class":335},"s7zQu","import",[329,338,340],{"class":339},"sMK4o"," {",[329,342,344],{"class":343},"sTEyZ"," randomUUID",[329,346,347],{"class":339}," }",[329,349,350],{"class":335}," from",[329,352,353],{"class":339}," \"",[329,355,357],{"class":356},"sfazB","node:crypto",[329,359,360],{"class":339},"\"",[329,362,363],{"class":339},";\n",[329,365,367,371,374,377,380,383,386,388,391],{"class":331,"line":366},2,[329,368,370],{"class":369},"spNyl","const",[329,372,373],{"class":343}," token ",[329,375,376],{"class":339},"=",[329,378,379],{"class":343}," process",[329,381,382],{"class":339},".",[329,384,385],{"class":343},"env",[329,387,382],{"class":339},[329,389,390],{"class":343},"NEUTRON_API_TOKEN",[329,392,363],{"class":339},[329,394,396,398,401,403,405,407,409,411,414],{"class":331,"line":395},3,[329,397,370],{"class":369},[329,399,400],{"class":343}," nucleusId ",[329,402,376],{"class":339},[329,404,379],{"class":343},[329,406,382],{"class":339},[329,408,385],{"class":343},[329,410,382],{"class":339},[329,412,413],{"class":343},"NEUTRON_NUCLEUS_ID",[329,415,363],{"class":339},[329,417,419,422,425,428,431,434,437,440,443,446,450,453,455,458,460,463],{"class":331,"line":418},4,[329,420,421],{"class":335},"if",[329,423,424],{"class":343}," (",[329,426,427],{"class":339},"!",[329,429,430],{"class":343},"token ",[329,432,433],{"class":339},"||",[329,435,436],{"class":339}," !",[329,438,439],{"class":343},"nucleusId) ",[329,441,442],{"class":335},"throw",[329,444,445],{"class":339}," new",[329,447,449],{"class":448},"s2Zo4"," Error",[329,451,452],{"class":343},"(",[329,454,360],{"class":339},[329,456,457],{"class":356},"Set your server-side Nucleus token and ID",[329,459,360],{"class":339},[329,461,462],{"class":343},")",[329,464,363],{"class":339},[329,466,468,470,473,475,478,481,484,487,490,493,496,499],{"class":331,"line":467},5,[329,469,370],{"class":369},[329,471,472],{"class":343}," scopeIds ",[329,474,376],{"class":339},[329,476,477],{"class":343}," [",[329,479,480],{"class":339},"`",[329,482,483],{"class":356},"evaluation:support-decision:",[329,485,486],{"class":339},"${",[329,488,489],{"class":448},"randomUUID",[329,491,492],{"class":343},"()",[329,494,495],{"class":339},"}`",[329,497,498],{"class":343},"]",[329,500,363],{"class":339},[329,502,504,507,510,513,515,519,522,525,527],{"class":331,"line":503},6,[329,505,506],{"class":369},"async",[329,508,509],{"class":369}," function",[329,511,512],{"class":448}," request",[329,514,452],{"class":339},[329,516,518],{"class":517},"sHdIc","route",[329,520,521],{"class":339},",",[329,523,524],{"class":517}," body",[329,526,462],{"class":339},[329,528,529],{"class":339}," {\n",[329,531,533,536,539,542,545,548,551,553,556,558,560,562,564],{"class":331,"line":532},7,[329,534,535],{"class":369},"  const",[329,537,538],{"class":343}," response",[329,540,541],{"class":339}," =",[329,543,544],{"class":335}," await",[329,546,547],{"class":448}," fetch",[329,549,452],{"class":550},"swJcz",[329,552,480],{"class":339},[329,554,555],{"class":356},"https:\u002F\u002Fneutronai.dev\u002Fapi\u002Fv1\u002Fconsequence\u002F",[329,557,486],{"class":339},[329,559,518],{"class":343},[329,561,495],{"class":339},[329,563,521],{"class":339},[329,565,529],{"class":339},[329,567,569,572,575,577,580,582,584,587,589,591,594,596,599,602,604,607,609,611,613,616,618,620,622,625,627],{"class":331,"line":568},8,[329,570,571],{"class":550},"    method",[329,573,574],{"class":339},":",[329,576,353],{"class":339},[329,578,579],{"class":356},"POST",[329,581,360],{"class":339},[329,583,521],{"class":339},[329,585,586],{"class":550}," headers",[329,588,574],{"class":339},[329,590,340],{"class":339},[329,592,593],{"class":550}," authorization",[329,595,574],{"class":339},[329,597,598],{"class":339}," `",[329,600,601],{"class":356},"Bearer ",[329,603,486],{"class":339},[329,605,606],{"class":343},"token",[329,608,495],{"class":339},[329,610,521],{"class":339},[329,612,353],{"class":339},[329,614,615],{"class":550},"content-type",[329,617,360],{"class":339},[329,619,574],{"class":339},[329,621,353],{"class":339},[329,623,624],{"class":356},"application\u002Fjson",[329,626,360],{"class":339},[329,628,629],{"class":339}," },\n",[329,631,633,636,638,641,643,646,648,651,654,656,659,661,664,667,669,671,673,676,678,681,683,686,688,692,694,696,699,701,703,706,708],{"class":331,"line":632},9,[329,634,635],{"class":550},"    body",[329,637,574],{"class":339},[329,639,640],{"class":343}," JSON",[329,642,382],{"class":339},[329,644,645],{"class":448},"stringify",[329,647,452],{"class":550},[329,649,650],{"class":339},"{",[329,652,653],{"class":343}," nucleusId",[329,655,521],{"class":339},[329,657,658],{"class":343}," scopeIds",[329,660,521],{"class":339},[329,662,663],{"class":339}," ...",[329,665,666],{"class":343},"body",[329,668,347],{"class":339},[329,670,462],{"class":550},[329,672,521],{"class":339},[329,674,675],{"class":550}," signal",[329,677,574],{"class":339},[329,679,680],{"class":343}," AbortSignal",[329,682,382],{"class":339},[329,684,685],{"class":448},"timeout",[329,687,452],{"class":550},[329,689,691],{"class":690},"sbssI","15000",[329,693,462],{"class":550},[329,695,521],{"class":339},[329,697,698],{"class":550}," redirect",[329,700,574],{"class":339},[329,702,353],{"class":339},[329,704,705],{"class":356},"error",[329,707,360],{"class":339},[329,709,710],{"class":339},",\n",[329,712,714,717,719],{"class":331,"line":713},10,[329,715,716],{"class":339},"  }",[329,718,462],{"class":550},[329,720,363],{"class":339},[329,722,724,726,729,731,733,735,737,740,742],{"class":331,"line":723},11,[329,725,535],{"class":369},[329,727,728],{"class":343}," result",[329,730,541],{"class":339},[329,732,544],{"class":335},[329,734,538],{"class":343},[329,736,382],{"class":339},[329,738,739],{"class":448},"json",[329,741,492],{"class":550},[329,743,363],{"class":339},[329,745,747,750,752,755,757,759,761,764,766,768,770,772],{"class":331,"line":746},12,[329,748,749],{"class":335},"  return",[329,751,340],{"class":339},[329,753,754],{"class":550}," status",[329,756,574],{"class":339},[329,758,538],{"class":343},[329,760,382],{"class":339},[329,762,763],{"class":343},"status",[329,765,521],{"class":339},[329,767,524],{"class":550},[329,769,574],{"class":339},[329,771,728],{"class":343},[329,773,774],{"class":339}," };\n",[329,776,778],{"class":331,"line":777},13,[329,779,780],{"class":339},"}\n",[329,782,784,786,789,791,793,795,797,799,802,804,806],{"class":331,"line":783},14,[329,785,370],{"class":369},[329,787,788],{"class":343}," planned ",[329,790,376],{"class":339},[329,792,544],{"class":335},[329,794,512],{"class":448},[329,796,452],{"class":343},[329,798,360],{"class":339},[329,800,801],{"class":356},"plan",[329,803,360],{"class":339},[329,805,521],{"class":339},[329,807,529],{"class":339},[329,809,811,814,816,818,821,823],{"class":331,"line":810},15,[329,812,813],{"class":550},"  task",[329,815,574],{"class":339},[329,817,353],{"class":339},[329,819,820],{"class":356},"Compare manual support escalation with a bounded production pilot of automated customer replies. Do not contact customers or change production.",[329,822,360],{"class":339},[329,824,710],{"class":339},[329,826,828,831,833,835,838,840,842,845,847,849,852,854,856,858,860,862,865,867,870],{"class":331,"line":827},16,[329,829,830],{"class":550},"  domain",[329,832,574],{"class":339},[329,834,353],{"class":339},[329,836,837],{"class":356},"customer_support",[329,839,360],{"class":339},[329,841,521],{"class":339},[329,843,844],{"class":550}," idempotencyKey",[329,846,574],{"class":339},[329,848,598],{"class":339},[329,850,851],{"class":356},"support-review-",[329,853,486],{"class":339},[329,855,489],{"class":448},[329,857,492],{"class":343},[329,859,495],{"class":339},[329,861,521],{"class":339},[329,863,864],{"class":550}," retentionDays",[329,866,574],{"class":339},[329,868,869],{"class":690}," 1",[329,871,710],{"class":339},[329,873,875,878,880,882,884,887,889,891,893,896,898,900],{"class":331,"line":874},17,[329,876,877],{"class":550},"  objectiveHints",[329,879,574],{"class":339},[329,881,477],{"class":343},[329,883,360],{"class":339},[329,885,886],{"class":356},"Preserve operator review",[329,888,360],{"class":339},[329,890,521],{"class":339},[329,892,353],{"class":339},[329,894,895],{"class":356},"Reduce repeated support work",[329,897,360],{"class":339},[329,899,498],{"class":343},[329,901,710],{"class":339},[329,903,905,908,910,912,914,917,919,921,923,926,928,930],{"class":331,"line":904},18,[329,906,907],{"class":550},"  constraintHints",[329,909,574],{"class":339},[329,911,477],{"class":343},[329,913,360],{"class":339},[329,915,916],{"class":356},"Customer-facing changes require human approval",[329,918,360],{"class":339},[329,920,521],{"class":339},[329,922,353],{"class":339},[329,924,925],{"class":356},"No external action is authorised",[329,927,360],{"class":339},[329,929,498],{"class":343},[329,931,710],{"class":339},[329,933,935,938,940,942,945,947,949,952,954,956,959,961,963,965,968,970,973,975,978,980,983,985,988,990,993],{"class":331,"line":934},19,[329,936,937],{"class":550},"  policy",[329,939,574],{"class":339},[329,941,340],{"class":339},[329,943,944],{"class":550}," mode",[329,946,574],{"class":339},[329,948,353],{"class":339},[329,950,951],{"class":356},"quick",[329,953,360],{"class":339},[329,955,521],{"class":339},[329,957,958],{"class":550}," depth",[329,960,574],{"class":339},[329,962,869],{"class":690},[329,964,521],{"class":339},[329,966,967],{"class":550}," maxScenarios",[329,969,574],{"class":339},[329,971,972],{"class":690}," 4",[329,974,521],{"class":339},[329,976,977],{"class":550}," maxRuntimeMs",[329,979,574],{"class":339},[329,981,982],{"class":690}," 3000",[329,984,521],{"class":339},[329,986,987],{"class":550}," maxNodes",[329,989,574],{"class":339},[329,991,992],{"class":690}," 8",[329,994,710],{"class":339},[329,996,998,1001,1003,1005,1007,1010,1012,1015,1017,1020,1022,1024,1026,1029,1031,1033,1036,1038],{"class":331,"line":997},20,[329,999,1000],{"class":550},"    maxBranches",[329,1002,574],{"class":339},[329,1004,972],{"class":690},[329,1006,521],{"class":339},[329,1008,1009],{"class":550}," maxModelCalls",[329,1011,574],{"class":339},[329,1013,1014],{"class":690}," 0",[329,1016,521],{"class":339},[329,1018,1019],{"class":550}," maxCostEstimate",[329,1021,574],{"class":339},[329,1023,1014],{"class":690},[329,1025,521],{"class":339},[329,1027,1028],{"class":550}," requireApprovalAboveRisk",[329,1030,574],{"class":339},[329,1032,353],{"class":339},[329,1034,1035],{"class":356},"medium",[329,1037,360],{"class":339},[329,1039,710],{"class":339},[329,1041,1043,1046,1048,1052,1054,1057,1059,1062],{"class":331,"line":1042},21,[329,1044,1045],{"class":550},"    allowExecution",[329,1047,574],{"class":339},[329,1049,1051],{"class":1050},"sfNiH"," false",[329,1053,521],{"class":339},[329,1055,1056],{"class":550}," storeSafeArtifactsOnly",[329,1058,574],{"class":339},[329,1060,1061],{"class":1050}," true",[329,1063,629],{"class":339},[329,1065,1067,1070,1072],{"class":331,"line":1066},22,[329,1068,1069],{"class":339},"}",[329,1071,462],{"class":343},[329,1073,363],{"class":339},[329,1075,1077,1079,1082,1084,1087,1090,1093,1096,1098,1100,1102,1104,1106,1109,1111,1114,1116,1118,1120,1122],{"class":331,"line":1076},23,[329,1078,421],{"class":335},[329,1080,1081],{"class":343}," (planned",[329,1083,382],{"class":339},[329,1085,1086],{"class":343},"status ",[329,1088,1089],{"class":339},"!==",[329,1091,1092],{"class":690}," 201",[329,1094,1095],{"class":343},") ",[329,1097,442],{"class":335},[329,1099,445],{"class":339},[329,1101,449],{"class":448},[329,1103,452],{"class":343},[329,1105,480],{"class":339},[329,1107,1108],{"class":356},"Plan: HTTP ",[329,1110,486],{"class":339},[329,1112,1113],{"class":343},"planned",[329,1115,382],{"class":339},[329,1117,763],{"class":343},[329,1119,495],{"class":339},[329,1121,462],{"class":343},[329,1123,363],{"class":339},[329,1125,1127,1129,1132,1134,1137,1139,1141,1143,1146,1148,1151,1153,1155,1158,1160,1163,1166,1168,1171],{"class":331,"line":1126},24,[329,1128,370],{"class":369},[329,1130,1131],{"class":343}," candidate ",[329,1133,376],{"class":339},[329,1135,1136],{"class":343}," planned",[329,1138,382],{"class":339},[329,1140,666],{"class":343},[329,1142,382],{"class":339},[329,1144,1145],{"class":343},"scenarios",[329,1147,382],{"class":339},[329,1149,1150],{"class":448},"find",[329,1152,452],{"class":343},[329,1154,452],{"class":339},[329,1156,1157],{"class":517},"scenario",[329,1159,462],{"class":339},[329,1161,1162],{"class":369}," =>",[329,1164,1165],{"class":343}," scenario",[329,1167,382],{"class":339},[329,1169,1170],{"class":343},"approvalRequired)",[329,1172,363],{"class":339},[329,1174,1176,1178,1180,1182,1185,1187,1189,1191,1193,1195,1198,1200,1202],{"class":331,"line":1175},25,[329,1177,421],{"class":335},[329,1179,424],{"class":343},[329,1181,427],{"class":339},[329,1183,1184],{"class":343},"candidate) ",[329,1186,442],{"class":335},[329,1188,445],{"class":339},[329,1190,449],{"class":448},[329,1192,452],{"class":343},[329,1194,360],{"class":339},[329,1196,1197],{"class":356},"No approval-gated candidate: stop and inspect the scenarios",[329,1199,360],{"class":339},[329,1201,462],{"class":343},[329,1203,363],{"class":339},[329,1205,1207,1209,1212,1214,1216,1218,1220,1222,1225,1227,1229,1231,1234,1236,1238,1240,1242,1244,1247],{"class":331,"line":1206},26,[329,1208,370],{"class":369},[329,1210,1211],{"class":343}," decided ",[329,1213,376],{"class":339},[329,1215,544],{"class":335},[329,1217,512],{"class":448},[329,1219,452],{"class":343},[329,1221,360],{"class":339},[329,1223,1224],{"class":356},"decide",[329,1226,360],{"class":339},[329,1228,521],{"class":339},[329,1230,340],{"class":339},[329,1232,1233],{"class":550}," runId",[329,1235,574],{"class":339},[329,1237,1136],{"class":343},[329,1239,382],{"class":339},[329,1241,666],{"class":343},[329,1243,382],{"class":339},[329,1245,1246],{"class":343},"runId",[329,1248,710],{"class":339},[329,1250,1252,1255,1257,1260,1262,1265,1267,1270,1272,1274,1277,1279,1281,1283],{"class":331,"line":1251},27,[329,1253,1254],{"class":550},"  selectedScenarioId",[329,1256,574],{"class":339},[329,1258,1259],{"class":343}," candidate",[329,1261,382],{"class":339},[329,1263,1264],{"class":343},"scenarioId",[329,1266,521],{"class":339},[329,1268,1269],{"class":550}," decisionSummary",[329,1271,574],{"class":339},[329,1273,353],{"class":339},[329,1275,1276],{"class":356},"Synthetic pilot candidate; waiting for owner review.",[329,1278,360],{"class":339},[329,1280,347],{"class":339},[329,1282,462],{"class":343},[329,1284,363],{"class":339},[329,1286,1288,1290,1293,1295,1297,1299,1301,1304,1307,1309,1311,1313,1316,1319,1321,1323,1325,1328,1330,1332,1334,1336,1338,1340,1342,1345,1347,1349],{"class":331,"line":1287},28,[329,1289,421],{"class":335},[329,1291,1292],{"class":343}," (decided",[329,1294,382],{"class":339},[329,1296,1086],{"class":343},[329,1298,1089],{"class":339},[329,1300,1092],{"class":690},[329,1302,1303],{"class":339}," ||",[329,1305,1306],{"class":343}," decided",[329,1308,382],{"class":339},[329,1310,666],{"class":343},[329,1312,382],{"class":339},[329,1314,1315],{"class":343},"decisionRecord",[329,1317,1318],{"class":339},"?.",[329,1320,1086],{"class":343},[329,1322,1089],{"class":339},[329,1324,353],{"class":339},[329,1326,1327],{"class":356},"draft",[329,1329,360],{"class":339},[329,1331,1095],{"class":343},[329,1333,442],{"class":335},[329,1335,445],{"class":339},[329,1337,449],{"class":448},[329,1339,452],{"class":343},[329,1341,360],{"class":339},[329,1343,1344],{"class":356},"Expected a draft decision",[329,1346,360],{"class":339},[329,1348,462],{"class":343},[329,1350,363],{"class":339},[329,1352,1354,1356,1359,1361,1363,1365,1367,1369,1371,1373,1376],{"class":331,"line":1353},29,[329,1355,370],{"class":369},[329,1357,1358],{"class":343}," decisionId ",[329,1360,376],{"class":339},[329,1362,1306],{"class":343},[329,1364,382],{"class":339},[329,1366,666],{"class":343},[329,1368,382],{"class":339},[329,1370,1315],{"class":343},[329,1372,382],{"class":339},[329,1374,1375],{"class":343},"decisionId",[329,1377,363],{"class":339},[329,1379,1381,1383,1386,1388,1390,1392,1394,1396,1399,1401,1403,1405,1408,1410,1413,1415,1417,1420,1422,1424,1426],{"class":331,"line":1380},30,[329,1382,370],{"class":369},[329,1384,1385],{"class":343}," blocked ",[329,1387,376],{"class":339},[329,1389,544],{"class":335},[329,1391,512],{"class":448},[329,1393,452],{"class":343},[329,1395,360],{"class":339},[329,1397,1398],{"class":356},"observe",[329,1400,360],{"class":339},[329,1402,521],{"class":339},[329,1404,340],{"class":339},[329,1406,1407],{"class":343}," decisionId",[329,1409,521],{"class":339},[329,1411,1412],{"class":550}," summary",[329,1414,574],{"class":339},[329,1416,353],{"class":339},[329,1418,1419],{"class":356},"Synthetic pre-approval observation attempt.",[329,1421,360],{"class":339},[329,1423,347],{"class":339},[329,1425,462],{"class":343},[329,1427,363],{"class":339},[329,1429,1431,1433,1436,1438,1440,1442,1445,1447,1449,1451,1453,1455,1457,1460,1462,1464],{"class":331,"line":1430},31,[329,1432,421],{"class":335},[329,1434,1435],{"class":343}," (blocked",[329,1437,382],{"class":339},[329,1439,1086],{"class":343},[329,1441,1089],{"class":339},[329,1443,1444],{"class":690}," 403",[329,1446,1095],{"class":343},[329,1448,442],{"class":335},[329,1450,445],{"class":339},[329,1452,449],{"class":448},[329,1454,452],{"class":343},[329,1456,360],{"class":339},[329,1458,1459],{"class":356},"Expected pre-approval observation to be rejected",[329,1461,360],{"class":339},[329,1463,462],{"class":343},[329,1465,363],{"class":339},[329,1467,1469,1472,1474,1477,1480,1482,1484,1486,1488,1490,1492,1494,1496,1498,1500,1502,1504,1506,1508,1510,1512,1514,1517,1519,1521,1524,1526,1529,1531,1533,1535,1538],{"class":331,"line":1468},32,[329,1470,1471],{"class":343},"console",[329,1473,382],{"class":339},[329,1475,1476],{"class":448},"log",[329,1478,1479],{"class":343},"(JSON",[329,1481,382],{"class":339},[329,1483,645],{"class":448},[329,1485,452],{"class":343},[329,1487,650],{"class":339},[329,1489,1233],{"class":550},[329,1491,574],{"class":339},[329,1493,1136],{"class":343},[329,1495,382],{"class":339},[329,1497,666],{"class":343},[329,1499,382],{"class":339},[329,1501,1246],{"class":343},[329,1503,521],{"class":339},[329,1505,1407],{"class":343},[329,1507,521],{"class":339},[329,1509,754],{"class":550},[329,1511,574],{"class":339},[329,1513,353],{"class":339},[329,1515,1516],{"class":356},"waiting_for_human_review",[329,1518,360],{"class":339},[329,1520,521],{"class":339},[329,1522,1523],{"class":550}," observationBeforeApproval",[329,1525,574],{"class":339},[329,1527,1528],{"class":343}," blocked",[329,1530,382],{"class":339},[329,1532,1086],{"class":343},[329,1534,1069],{"class":339},[329,1536,1537],{"class":343},"))",[329,1539,363],{"class":339},[291,1541,1542,1543,1546,1547,1549],{},"Run ",[315,1544,1545],{},"node decision-evaluation.mjs",". Expect a run ID, a decision ID, ",[315,1548,1516],{}," and HTTP 403 for the pre-approval observation. Inspect warnings, feasibility, uncertainty and the actual selected scenario before accepting any recommendation. No mathematical optimum or production benefit is established by this check.",[307,1551,1553],{"id":1552},"_2-keep-approval-separate","2. Keep approval separate",[291,1555,1556,1557,1560,1561,1564,1565,1568],{},"The script deliberately does not call ",[315,1558,1559],{},"approve"," or ",[315,1562,1563],{},"execute",". In your server, verify the human reviewer's identity, role, decision scope and current intent. Then a separate approved request can call ",[315,1566,1567],{},"POST \u002Fv1\u002Fconsequence\u002Fapprove"," with the same Nucleus, Scope and decision ID plus a review note. An agent's memory, recommendation, API token ownership or generated text is not evidence of human intent.",[291,1570,1571,1572,1575],{},"Approval creates a reviewable record. It does not itself send a support message or authorise an unrelated tool. This example keeps ",[315,1573,1574],{},"allowExecution: false"," even after approval. A production action requires separate policy permission, a recorded human approval when required, recovery plans and an authorised idempotent action adapter.",[307,1577,1579],{"id":1578},"_3-record-observed-results","3. Record observed results",[291,1581,1582,1583,1587,1588,1591,1592,1594,1595,1598,1599,1602],{},"After an authorised person performs a separately approved ",[1584,1585,1586],"strong",{},"synthetic"," pilot, the server can call ",[315,1589,1590],{},"POST \u002Fv1\u002Fconsequence\u002Fobserve"," with ",[315,1593,1375],{},", a concise summary, measured ",[315,1596,1597],{},"observedMetrics"," and ",[315,1600,1601],{},"sourceRefs"," pointing to that fixture evidence. Expect HTTP 201 only after approval. Do not substitute a predicted scenario for an observed result.",[291,1604,1605],{},"Compare the same workflow with your spreadsheet or incident process: can you reconstruct the inputs, chosen option, reviewer and actual outcome? Record the work needed to maintain both approaches. A useful result must justify another dependency.",[307,1607,1609],{"id":1608},"_4-clean-up","4. Clean up",[291,1611,1612,1613,1591,1616,1619,1620,1623,1624,1598,1626,1629],{},"The example retains reviewable records for inspection; it does not automatically delete the run. In the same authorised server environment, call ",[315,1614,1615],{},"POST \u002Fv1\u002Fconsequence\u002Fdelete",[315,1617,1618],{},"nucleusId",", ",[315,1621,1622],{},"scopeIds",", the returned ",[315,1625,1246],{},[315,1627,1628],{},"reason: \"evaluation_cleanup\"",". Confirm deletion, then verify that reading the run cannot return its prior artifacts. Never use a broad scoped delete against a production Scope for this exercise.",[307,1631,1633],{"id":1632},"plan-and-charging-boundary","Plan and charging boundary",[291,1635,1636,1637,1640,1641,1644],{},"No built-in industry pack or paid audit export is used. The current memory-operation meter counts authorised remember, recall and agent-context requests; it does not meter each consequence lifecycle request as one of those memory operations. Review ",[298,1638,1639],{"href":22},"evaluation costs"," and confirm commercial terms for a production workload. Zero planner model calls and ",[315,1642,1643],{},"maxCostEstimate: 0"," constrain this run's planning policy; they are not a universal cap on your providers or enabled prepaid top-up.",[291,1646,1647,1648,1651,1652,1655],{},"The existing ",[298,1649,1650],{"href":190},"industry-specific end-to-end guides"," remain available when you have the required Enterprise pack. The ",[298,1653,1654],{"href":18},"security evaluation pack"," explains additional approval, deletion and procurement evidence.",[1657,1658,1659],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":325,"searchDepth":366,"depth":366,"links":1661},[1662,1663,1664,1665,1666],{"id":309,"depth":366,"text":310},{"id":1552,"depth":366,"text":1553},{"id":1578,"depth":366,"text":1579},{"id":1608,"depth":366,"text":1609},{"id":1632,"depth":366,"text":1633},"Compare support-response options, stop for human review and record observed outcomes without an Enterprise industry pack.","md",{},true,{"title":218,"description":1667},"eL5FW4h7fHyKlxWRjh0obd3GVQtYQhi8mVClMLCwLYA",[1674,1675],{"title":214,"path":215,"stem":216,"children":-1},{"title":222,"path":223,"stem":224,"children":-1},1793097096883]