@ascentstudio/cue-docs 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/docs/[[...slug]]/page.js +1 -1
- package/.next/server/app/docs/adr/0001-restricted-process-function.html +2 -2
- package/.next/server/app/docs/adr/0001-restricted-process-function.rsc +1 -1
- package/.next/server/app/docs/adr/0002-entity-key.html +2 -2
- package/.next/server/app/docs/adr/0002-entity-key.rsc +1 -1
- package/.next/server/app/docs/adr/0003-metrics-apart-from-the-run.html +2 -2
- package/.next/server/app/docs/adr/0003-metrics-apart-from-the-run.rsc +1 -1
- package/.next/server/app/docs/adr/0004-one-row-per-entity.html +2 -2
- package/.next/server/app/docs/adr/0004-one-row-per-entity.rsc +1 -1
- package/.next/server/app/docs/adr/0005-orchestrator-applies-results.html +2 -2
- package/.next/server/app/docs/adr/0005-orchestrator-applies-results.rsc +1 -1
- package/.next/server/app/docs/adr/0006-one-identity-one-entity.html +2 -2
- package/.next/server/app/docs/adr/0006-one-identity-one-entity.rsc +1 -1
- package/.next/server/app/docs/adr/0007-historized-flow-runs.html +2 -2
- package/.next/server/app/docs/adr/0007-historized-flow-runs.rsc +1 -1
- package/.next/server/app/docs/adr/0008-guard-and-each.html +2 -2
- package/.next/server/app/docs/adr/0008-guard-and-each.rsc +1 -1
- package/.next/server/app/docs/adr/0009-transient-files.html +2 -2
- package/.next/server/app/docs/adr/0009-transient-files.rsc +1 -1
- package/.next/server/app/docs/adr/0010-entity-values-copied-onto-the-run.html +2 -2
- package/.next/server/app/docs/adr/0010-entity-values-copied-onto-the-run.rsc +1 -1
- package/.next/server/app/docs/adr/0011-a-diverged-reread-ends-the-run.html +2 -2
- package/.next/server/app/docs/adr/0011-a-diverged-reread-ends-the-run.rsc +1 -1
- package/.next/server/app/docs/adr/0012-a-step-name-once-per-run.html +2 -2
- package/.next/server/app/docs/adr/0012-a-step-name-once-per-run.rsc +1 -1
- package/.next/server/app/docs/adr/0013-a-run-does-not-wait-on-its-ancestor.html +2 -2
- package/.next/server/app/docs/adr/0013-a-run-does-not-wait-on-its-ancestor.rsc +1 -1
- package/.next/server/app/docs/adr/0014-a-shared-child-is-claimed-before-its-run.html +2 -2
- package/.next/server/app/docs/adr/0014-a-shared-child-is-claimed-before-its-run.rsc +1 -1
- package/.next/server/app/docs/adr/0015-jobs-and-metrics-leave-with-the-run.html +2 -2
- package/.next/server/app/docs/adr/0015-jobs-and-metrics-leave-with-the-run.rsc +1 -1
- package/.next/server/app/docs/adr/0016-one-writer-per-organization.html +2 -2
- package/.next/server/app/docs/adr/0016-one-writer-per-organization.rsc +1 -1
- package/.next/server/app/docs/adr/0017-group-judgment.html +2 -2
- package/.next/server/app/docs/adr/0017-group-judgment.rsc +1 -1
- package/.next/server/app/docs/adr/0018-replay-copies-files.html +2 -2
- package/.next/server/app/docs/adr/0018-replay-copies-files.rsc +1 -1
- package/.next/server/app/docs/adr/0019-typed-body.html +2 -2
- package/.next/server/app/docs/adr/0019-typed-body.rsc +1 -1
- package/.next/server/app/docs/adr/0020-rule-on-each-opening.html +2 -2
- package/.next/server/app/docs/adr/0020-rule-on-each-opening.rsc +1 -1
- package/.next/server/app/docs/adr/0021-optional-children.html +2 -2
- package/.next/server/app/docs/adr/0021-optional-children.rsc +1 -1
- package/.next/server/app/docs/adr/0022-optional-quota.html +2 -2
- package/.next/server/app/docs/adr/0022-optional-quota.rsc +1 -1
- package/.next/server/app/docs/adr/0023-sealed-report-returns.html +2 -2
- package/.next/server/app/docs/adr/0023-sealed-report-returns.rsc +1 -1
- package/.next/server/app/docs/adr/0024-one-silence-per-opening.html +2 -2
- package/.next/server/app/docs/adr/0024-one-silence-per-opening.rsc +1 -1
- package/.next/server/app/docs/adr/0025-environment-variables.html +2 -2
- package/.next/server/app/docs/adr/0025-environment-variables.rsc +1 -1
- package/.next/server/app/docs/adr/0026-runtime-revision-excludes-platform-and-device.html +2 -2
- package/.next/server/app/docs/adr/0026-runtime-revision-excludes-platform-and-device.rsc +1 -1
- package/.next/server/app/docs/adr/0027-one-router-consumes-a-slot.html +2 -2
- package/.next/server/app/docs/adr/0027-one-router-consumes-a-slot.rsc +1 -1
- package/.next/server/app/docs/adr/0028-caddy-desktop-placement.html +2 -2
- package/.next/server/app/docs/adr/0028-caddy-desktop-placement.rsc +1 -1
- package/.next/server/app/docs/adr/0029-registry-client-or-login.html +2 -2
- package/.next/server/app/docs/adr/0029-registry-client-or-login.rsc +1 -1
- package/.next/server/app/docs/adr/0030-organization-code-outside-the-repository.html +2 -2
- package/.next/server/app/docs/adr/0030-organization-code-outside-the-repository.rsc +1 -1
- package/.next/server/app/docs/adr/0031-environment-reload.html +2 -2
- package/.next/server/app/docs/adr/0031-environment-reload.rsc +1 -1
- package/.next/server/app/docs/adr/0032-an-orchestrator-fault-stops-the-run.html +2 -2
- package/.next/server/app/docs/adr/0032-an-orchestrator-fault-stops-the-run.rsc +1 -1
- package/.next/server/app/docs/adr/0033-one-rule-for-children.html +2 -2
- package/.next/server/app/docs/adr/0033-one-rule-for-children.rsc +1 -1
- package/.next/server/app/docs/agents/domain.html +2 -2
- package/.next/server/app/docs/agents/domain.rsc +1 -1
- package/.next/server/app/docs/engine.html +2 -2
- package/.next/server/app/docs/engine.rsc +1 -1
- package/.next/server/app/docs/fixture.html +2 -2
- package/.next/server/app/docs/fixture.rsc +1 -1
- package/.next/server/app/docs/install.html +7 -7
- package/.next/server/app/docs/install.rsc +7 -7
- package/.next/server/app/docs/server.html +4 -4
- package/.next/server/app/docs/server.rsc +3 -3
- package/.next/server/app/docs/usage/actions.html +2 -2
- package/.next/server/app/docs/usage/actions.rsc +1 -1
- package/.next/server/app/docs/usage/drivers.html +2 -2
- package/.next/server/app/docs/usage/drivers.rsc +1 -1
- package/.next/server/app/docs/usage/flow.html +2 -2
- package/.next/server/app/docs/usage/flow.rsc +1 -1
- package/.next/server/app/docs/usage/kinds.html +2 -2
- package/.next/server/app/docs/usage/kinds.rsc +1 -1
- package/.next/server/app/docs.html +2 -2
- package/.next/server/app/docs.rsc +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/trace +15 -15
- package/package.json +1 -1
- /package/.next/static/{YNEh12wn0ALeRpEXSN36A → 737HhkZ7Wr9EhrNDXiT--}/_buildManifest.js +0 -0
- /package/.next/static/{YNEh12wn0ALeRpEXSN36A → 737HhkZ7Wr9EhrNDXiT--}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><!--YNEh12wn0ALeRpEXSN36A--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/4126bc63349478de.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-61a9536d6463a95b.js"/><script src="/_next/static/chunks/68d6572c-a62f2c632aca1968.js" async=""></script><script src="/_next/static/chunks/6-95f9f7f8524a131c.js" async=""></script><script src="/_next/static/chunks/main-app-cdfb07e49bd115c3.js" async=""></script><script src="/_next/static/chunks/392-1442f884e5f4da76.js" async=""></script><script src="/_next/static/chunks/app/layout-9561d9b665946ae8.js" async=""></script><script src="/_next/static/chunks/582-a2bbe93ce1d4f2d2.js" async=""></script><script src="/_next/static/chunks/841-d77ed67838a2d05f.js" async=""></script><script src="/_next/static/chunks/431-9190bbb8a69a0c11.js" async=""></script><script src="/_next/static/chunks/763-929f6742d84aa5b0.js" async=""></script><script src="/_next/static/chunks/app/docs/layout-c6dbee584f1de72b.js" async=""></script><script src="/_next/static/chunks/799-3e7b26a124d7b62f.js" async=""></script><script src="/_next/static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js" async=""></script><title>Kind</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="bg-fd-secondary/50 p-3 empty:hidden"></div><header id="nd-subnav" class="fixed top-(--fd-banner-height) left-0 right-(--removed-body-scroll-bar-size,0) z-30 flex items-center ps-4 pe-2.5 border-b transition-colors backdrop-blur-sm bg-fd-background/80 h-(--fd-nav-height) on-root:[--fd-nav-height:56px] md:on-root:[--fd-nav-height:0px] md:hidden"><a class="inline-flex items-center gap-2.5 font-semibold" href="/">Cue</a><div class="flex-1"></div><button type="button" class="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground [&_svg]:size-4.5 p-2" data-search="" aria-label="Open Search"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg></button><button class="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground [&_svg]:size-4.5 p-2" aria-label="Open Sidebar"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button></header><main id="nd-docs-layout" class="flex flex-1 flex-col pt-(--fd-nav-height) transition-[padding] fd-default-layout mx-(--fd-layout-offset) md:[&_#nd-page_article]:pt-12 xl:[--fd-toc-width:286px] xl:[&_#nd-page_article]:px-8 md:[--fd-sidebar-width:268px] lg:[--fd-sidebar-width:286px]" style="padding-inline-start:var(--fd-sidebar-width)"><div class="fixed flex shadow-lg transition-opacity rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10 max-md:hidden xl:start-4 max-xl:end-4 pointer-events-none opacity-0" style="top:calc(var(--fd-banner-height) + var(--fd-tocnav-height) + var(--spacing) * 4)"><button type="button" aria-label="Collapse Sidebar" data-collapsed="false" class="inline-flex items-center justify-center text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-4.5 rounded-lg"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button><button type="button" class="inline-flex items-center justify-center text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-4.5 rounded-lg" data-search="" aria-label="Open Search"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg></button></div><aside id="nd-sidebar" data-collapsed="false" class="fixed left-0 rtl:left-auto rtl:right-(--removed-body-scroll-bar-size,0) flex flex-col items-end top-(--fd-sidebar-top) bottom-(--fd-sidebar-margin) z-20 bg-fd-card text-sm border-e transition-[top,opacity,translate,width] duration-200 max-md:hidden *:w-(--fd-sidebar-width)" style="--fd-sidebar-offset:calc(16px - 100%);--fd-sidebar-margin:0px;--fd-sidebar-top:calc(var(--fd-banner-height) + var(--fd-nav-height) + var(--fd-sidebar-margin));width:calc(var(--spacing) + var(--fd-sidebar-width) + var(--fd-layout-offset))"><div class="flex flex-col gap-3 p-4 pb-2"><div class="flex"><a class="inline-flex text-[15px] items-center gap-2.5 font-medium me-auto" href="/">Cue</a><button type="button" aria-label="Collapse Sidebar" data-collapsed="false" class="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-4.5 mb-auto text-fd-muted-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button></div><button type="button" data-search-full="" class="inline-flex items-center gap-2 rounded-lg border bg-fd-secondary/50 p-1.5 ps-2 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide size-4"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg>Search<div class="ms-auto inline-flex gap-0.5"><kbd class="rounded-md border bg-fd-background px-1.5">⌘</kbd><kbd class="rounded-md border bg-fd-background px-1.5">K</kbd></div></button></div><div dir="ltr" class="overflow-hidden h-full" style="position:relative;--radix-scroll-area-corner-width:0px;--radix-scroll-area-corner-height:0px"><style>[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}</style><div data-radix-scroll-area-viewport="" class="size-full rounded-[inherit] p-4 overscroll-contain" style="overflow-x:hidden;overflow-y:hidden;--sidebar-item-offset:calc(var(--spacing) * 2);mask-image:linear-gradient(to bottom, transparent, white 12px, white calc(100% - 12px), transparent)"><div style="min-width:100%;display:table"><a data-active="false" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start text-fd-muted-foreground [overflow-wrap:anywhere] [&_svg]:size-4 [&_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none" href="/docs">Orchestrator</a><a data-active="false" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start text-fd-muted-foreground [overflow-wrap:anywhere] [&_svg]:size-4 [&_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none" href="/docs/server">Server</a><a data-active="false" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start text-fd-muted-foreground [overflow-wrap:anywhere] [&_svg]:size-4 [&_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none" href="/docs/engine">Engine</a><a data-active="false" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start text-fd-muted-foreground [overflow-wrap:anywhere] [&_svg]:size-4 [&_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none" href="/docs/fixture">Fixture</a><div data-state="closed"><button type="button" aria-expanded="false" data-state="closed" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start text-fd-muted-foreground [overflow-wrap:anywhere] [&_svg]:size-4 [&_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none w-full">Usage<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide ms-auto transition-transform -rotate-90" data-icon="true"><path d="m6 9 6 6 6-6"></path></svg></button><div data-state="closed" id="radix-_R_1d6j9flb_" hidden="" class="overflow-hidden relative before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5 **:data-[active=true]:before:content-[''] **:data-[active=true]:before:bg-fd-primary **:data-[active=true]:before:absolute **:data-[active=true]:before:w-px **:data-[active=true]:before:inset-y-2.5 **:data-[active=true]:before:start-2.5" style="--sidebar-item-offset:calc(var(--spacing) * 6)"></div></div><div data-state="closed"><button type="button" aria-expanded="false" data-state="closed" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start text-fd-muted-foreground [overflow-wrap:anywhere] [&_svg]:size-4 [&_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none w-full">Decisions<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide ms-auto transition-transform -rotate-90" data-icon="true"><path d="m6 9 6 6 6-6"></path></svg></button><div data-state="closed" id="radix-_R_1l6j9flb_" hidden="" class="overflow-hidden relative before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5 **:data-[active=true]:before:content-[''] **:data-[active=true]:before:bg-fd-primary **:data-[active=true]:before:absolute **:data-[active=true]:before:w-px **:data-[active=true]:before:inset-y-2.5 **:data-[active=true]:before:start-2.5" style="--sidebar-item-offset:calc(var(--spacing) * 6)"></div></div></div></div></div><div class="flex flex-col border-t p-4 pt-2"><div class="flex text-fd-muted-foreground items-center empty:hidden"><button class="inline-flex items-center rounded-full border ms-auto p-0" aria-label="Toggle Theme" data-theme-toggle=""><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide size-6.5 rounded-full p-1.5 text-fd-muted-foreground"><circle cx="12" cy="12" r="4"></circle><path d="M12 2v2"></path><path d="M12 20v2"></path><path d="m4.93 4.93 1.41 1.41"></path><path d="m17.66 17.66 1.41 1.41"></path><path d="M2 12h2"></path><path d="M20 12h2"></path><path d="m6.34 17.66-1.41 1.41"></path><path d="m19.07 4.93-1.41 1.41"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide size-6.5 rounded-full p-1.5 text-fd-muted-foreground"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg></button></div></div></aside><div id="nd-page" class="flex flex-1 w-full mx-auto max-w-(--fd-page-width) pt-(--fd-tocnav-height) pe-(--fd-toc-width)"><header id="nd-tocnav" class="fixed pr-(--removed-body-scroll-bar-size,0) z-10 border-b backdrop-blur-sm transition-colors xl:hidden max-xl:on-root:[--fd-tocnav-height:40px] bg-fd-background/80" style="top:calc(var(--fd-banner-height) + var(--fd-nav-height));inset-inline-start:calc(var(--fd-sidebar-width) + var(--fd-layout-offset));inset-inline-end:0" data-state="closed"><button type="button" aria-expanded="false" data-state="closed" class="flex w-full h-(--fd-tocnav-height) items-center text-sm text-fd-muted-foreground gap-2.5 px-4 py-2.5 text-start focus-visible:outline-none [&_svg]:size-4 md:px-6"><svg role="progressbar" viewBox="0 0 24 24" aria-valuenow="0" aria-valuemin="0" aria-valuemax="1" class="shrink-0"><circle cx="12" cy="12" r="11" fill="none" stroke-width="2" class="stroke-current/25"></circle><circle cx="12" cy="12" r="11" fill="none" stroke-width="2" stroke="currentColor" stroke-dasharray="69.11503837897544" stroke-dashoffset="69.11503837897544" stroke-linecap="round" transform="rotate(-90 12 12)" class="transition-all"></circle></svg><span class="grid flex-1 *:my-auto *:row-start-1 *:col-start-1"><span class="truncate transition-all">Kind</span><span class="truncate transition-all opacity-0 translate-y-full pointer-events-none"></span></span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide shrink-0 transition-transform mx-0.5"><path d="m6 9 6 6 6-6"></path></svg></button><div data-state="closed" id="radix-_R_2lubv9flb_" hidden="" data-toc-popover="" class="overflow-hidden flex flex-col px-4 max-h-[50vh] md:px-6"></div></header><article class="flex min-w-0 w-full flex-col gap-4 pt-8 px-4 md:px-6 md:mx-auto"><div class="flex items-center gap-1.5 text-sm text-fd-muted-foreground"><span class="truncate text-fd-primary font-medium">Usage</span></div><h1 class="text-[1.75em] font-semibold">Kind</h1><div class="prose flex-1"><h2 class="flex scroll-m-28 flex-row items-center gap-2" id="why"><a data-card="" href="#why" class="peer">Why</a><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100" aria-label="Link to section"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></h2>
|
|
1
|
+
<!DOCTYPE html><!--737HhkZ7Wr9EhrNDXiT__--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/4126bc63349478de.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-61a9536d6463a95b.js"/><script src="/_next/static/chunks/68d6572c-a62f2c632aca1968.js" async=""></script><script src="/_next/static/chunks/6-95f9f7f8524a131c.js" async=""></script><script src="/_next/static/chunks/main-app-cdfb07e49bd115c3.js" async=""></script><script src="/_next/static/chunks/392-1442f884e5f4da76.js" async=""></script><script src="/_next/static/chunks/app/layout-9561d9b665946ae8.js" async=""></script><script src="/_next/static/chunks/582-a2bbe93ce1d4f2d2.js" async=""></script><script src="/_next/static/chunks/841-d77ed67838a2d05f.js" async=""></script><script src="/_next/static/chunks/431-9190bbb8a69a0c11.js" async=""></script><script src="/_next/static/chunks/763-929f6742d84aa5b0.js" async=""></script><script src="/_next/static/chunks/app/docs/layout-c6dbee584f1de72b.js" async=""></script><script src="/_next/static/chunks/799-3e7b26a124d7b62f.js" async=""></script><script src="/_next/static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js" async=""></script><title>Kind</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="bg-fd-secondary/50 p-3 empty:hidden"></div><header id="nd-subnav" class="fixed top-(--fd-banner-height) left-0 right-(--removed-body-scroll-bar-size,0) z-30 flex items-center ps-4 pe-2.5 border-b transition-colors backdrop-blur-sm bg-fd-background/80 h-(--fd-nav-height) on-root:[--fd-nav-height:56px] md:on-root:[--fd-nav-height:0px] md:hidden"><a class="inline-flex items-center gap-2.5 font-semibold" href="/">Cue</a><div class="flex-1"></div><button type="button" class="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground [&_svg]:size-4.5 p-2" data-search="" aria-label="Open Search"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg></button><button class="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground [&_svg]:size-4.5 p-2" aria-label="Open Sidebar"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button></header><main id="nd-docs-layout" class="flex flex-1 flex-col pt-(--fd-nav-height) transition-[padding] fd-default-layout mx-(--fd-layout-offset) md:[&_#nd-page_article]:pt-12 xl:[--fd-toc-width:286px] xl:[&_#nd-page_article]:px-8 md:[--fd-sidebar-width:268px] lg:[--fd-sidebar-width:286px]" style="padding-inline-start:var(--fd-sidebar-width)"><div class="fixed flex shadow-lg transition-opacity rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10 max-md:hidden xl:start-4 max-xl:end-4 pointer-events-none opacity-0" style="top:calc(var(--fd-banner-height) + var(--fd-tocnav-height) + var(--spacing) * 4)"><button type="button" aria-label="Collapse Sidebar" data-collapsed="false" class="inline-flex items-center justify-center text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-4.5 rounded-lg"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button><button type="button" class="inline-flex items-center justify-center text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-4.5 rounded-lg" data-search="" aria-label="Open Search"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg></button></div><aside id="nd-sidebar" data-collapsed="false" class="fixed left-0 rtl:left-auto rtl:right-(--removed-body-scroll-bar-size,0) flex flex-col items-end top-(--fd-sidebar-top) bottom-(--fd-sidebar-margin) z-20 bg-fd-card text-sm border-e transition-[top,opacity,translate,width] duration-200 max-md:hidden *:w-(--fd-sidebar-width)" style="--fd-sidebar-offset:calc(16px - 100%);--fd-sidebar-margin:0px;--fd-sidebar-top:calc(var(--fd-banner-height) + var(--fd-nav-height) + var(--fd-sidebar-margin));width:calc(var(--spacing) + var(--fd-sidebar-width) + var(--fd-layout-offset))"><div class="flex flex-col gap-3 p-4 pb-2"><div class="flex"><a class="inline-flex text-[15px] items-center gap-2.5 font-medium me-auto" href="/">Cue</a><button type="button" aria-label="Collapse Sidebar" data-collapsed="false" class="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-4.5 mb-auto text-fd-muted-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button></div><button type="button" data-search-full="" class="inline-flex items-center gap-2 rounded-lg border bg-fd-secondary/50 p-1.5 ps-2 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide size-4"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg>Search<div class="ms-auto inline-flex gap-0.5"><kbd class="rounded-md border bg-fd-background px-1.5">⌘</kbd><kbd class="rounded-md border bg-fd-background px-1.5">K</kbd></div></button></div><div dir="ltr" class="overflow-hidden h-full" style="position:relative;--radix-scroll-area-corner-width:0px;--radix-scroll-area-corner-height:0px"><style>[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}</style><div data-radix-scroll-area-viewport="" class="size-full rounded-[inherit] p-4 overscroll-contain" style="overflow-x:hidden;overflow-y:hidden;--sidebar-item-offset:calc(var(--spacing) * 2);mask-image:linear-gradient(to bottom, transparent, white 12px, white calc(100% - 12px), transparent)"><div style="min-width:100%;display:table"><a data-active="false" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start text-fd-muted-foreground [overflow-wrap:anywhere] [&_svg]:size-4 [&_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none" href="/docs">Orchestrator</a><a data-active="false" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start text-fd-muted-foreground [overflow-wrap:anywhere] [&_svg]:size-4 [&_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none" href="/docs/server">Server</a><a data-active="false" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start text-fd-muted-foreground [overflow-wrap:anywhere] [&_svg]:size-4 [&_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none" href="/docs/engine">Engine</a><a data-active="false" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start text-fd-muted-foreground [overflow-wrap:anywhere] [&_svg]:size-4 [&_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none" href="/docs/fixture">Fixture</a><div data-state="closed"><button type="button" aria-expanded="false" data-state="closed" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start text-fd-muted-foreground [overflow-wrap:anywhere] [&_svg]:size-4 [&_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none w-full">Usage<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide ms-auto transition-transform -rotate-90" data-icon="true"><path d="m6 9 6 6 6-6"></path></svg></button><div data-state="closed" id="radix-_R_1d6j9flb_" hidden="" class="overflow-hidden relative before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5 **:data-[active=true]:before:content-[''] **:data-[active=true]:before:bg-fd-primary **:data-[active=true]:before:absolute **:data-[active=true]:before:w-px **:data-[active=true]:before:inset-y-2.5 **:data-[active=true]:before:start-2.5" style="--sidebar-item-offset:calc(var(--spacing) * 6)"></div></div><div data-state="closed"><button type="button" aria-expanded="false" data-state="closed" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start text-fd-muted-foreground [overflow-wrap:anywhere] [&_svg]:size-4 [&_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none w-full">Decisions<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide ms-auto transition-transform -rotate-90" data-icon="true"><path d="m6 9 6 6 6-6"></path></svg></button><div data-state="closed" id="radix-_R_1l6j9flb_" hidden="" class="overflow-hidden relative before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5 **:data-[active=true]:before:content-[''] **:data-[active=true]:before:bg-fd-primary **:data-[active=true]:before:absolute **:data-[active=true]:before:w-px **:data-[active=true]:before:inset-y-2.5 **:data-[active=true]:before:start-2.5" style="--sidebar-item-offset:calc(var(--spacing) * 6)"></div></div></div></div></div><div class="flex flex-col border-t p-4 pt-2"><div class="flex text-fd-muted-foreground items-center empty:hidden"><button class="inline-flex items-center rounded-full border ms-auto p-0" aria-label="Toggle Theme" data-theme-toggle=""><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide size-6.5 rounded-full p-1.5 text-fd-muted-foreground"><circle cx="12" cy="12" r="4"></circle><path d="M12 2v2"></path><path d="M12 20v2"></path><path d="m4.93 4.93 1.41 1.41"></path><path d="m17.66 17.66 1.41 1.41"></path><path d="M2 12h2"></path><path d="M20 12h2"></path><path d="m6.34 17.66-1.41 1.41"></path><path d="m19.07 4.93-1.41 1.41"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide size-6.5 rounded-full p-1.5 text-fd-muted-foreground"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg></button></div></div></aside><div id="nd-page" class="flex flex-1 w-full mx-auto max-w-(--fd-page-width) pt-(--fd-tocnav-height) pe-(--fd-toc-width)"><header id="nd-tocnav" class="fixed pr-(--removed-body-scroll-bar-size,0) z-10 border-b backdrop-blur-sm transition-colors xl:hidden max-xl:on-root:[--fd-tocnav-height:40px] bg-fd-background/80" style="top:calc(var(--fd-banner-height) + var(--fd-nav-height));inset-inline-start:calc(var(--fd-sidebar-width) + var(--fd-layout-offset));inset-inline-end:0" data-state="closed"><button type="button" aria-expanded="false" data-state="closed" class="flex w-full h-(--fd-tocnav-height) items-center text-sm text-fd-muted-foreground gap-2.5 px-4 py-2.5 text-start focus-visible:outline-none [&_svg]:size-4 md:px-6"><svg role="progressbar" viewBox="0 0 24 24" aria-valuenow="0" aria-valuemin="0" aria-valuemax="1" class="shrink-0"><circle cx="12" cy="12" r="11" fill="none" stroke-width="2" class="stroke-current/25"></circle><circle cx="12" cy="12" r="11" fill="none" stroke-width="2" stroke="currentColor" stroke-dasharray="69.11503837897544" stroke-dashoffset="69.11503837897544" stroke-linecap="round" transform="rotate(-90 12 12)" class="transition-all"></circle></svg><span class="grid flex-1 *:my-auto *:row-start-1 *:col-start-1"><span class="truncate transition-all">Kind</span><span class="truncate transition-all opacity-0 translate-y-full pointer-events-none"></span></span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide shrink-0 transition-transform mx-0.5"><path d="m6 9 6 6 6-6"></path></svg></button><div data-state="closed" id="radix-_R_2lubv9flb_" hidden="" data-toc-popover="" class="overflow-hidden flex flex-col px-4 max-h-[50vh] md:px-6"></div></header><article class="flex min-w-0 w-full flex-col gap-4 pt-8 px-4 md:px-6 md:mx-auto"><div class="flex items-center gap-1.5 text-sm text-fd-muted-foreground"><span class="truncate text-fd-primary font-medium">Usage</span></div><h1 class="text-[1.75em] font-semibold">Kind</h1><div class="prose flex-1"><h2 class="flex scroll-m-28 flex-row items-center gap-2" id="why"><a data-card="" href="#why" class="peer">Why</a><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100" aria-label="Link to section"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></h2>
|
|
2
2
|
<p>A kind is the queue a step's job is sent to. A worker pulls one or more kinds. A kind is not a step implementation.</p>
|
|
3
3
|
<p>The step implementation is the <code>run</code> on the bound step. The kind names where the orchestrator sends that step's job. The orchestrator and the worker are separate processes: the orchestrator sends the job, and the worker pulls it and runs the step implementation.</p>
|
|
4
4
|
<h2 class="flex scroll-m-28 flex-row items-center gap-2" id="who"><a data-card="" href="#who" class="peer">Who</a><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100" aria-label="Link to section"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></h2>
|
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
<li>
|
|
39
39
|
<p>Open Workers in the console for the fixture organization, or call <code>GET /organizations/fixture/workers</code> at <code>http://127.0.0.1:3001/organizations/fixture/workers</code> with <code>Authorization: Bearer</code> and a person id. The resolver in <code>apps/orchestrator/src/server.ts</code> returns the text after <code>Bearer </code>, and <code>createReadServer</code> then returns <code>service.workersFor</code>. One working call is <code>curl -H "Authorization: Bearer person-1" http://127.0.0.1:3001/organizations/fixture/workers</code>. The body is the workers whose coverage names a flow of that organization. The rows are in the <code>workers</code> table. <code>work.ts</code> calls <code>openWorkerPresence</code> with <code>DATABASE_URL</code> and <code>presence.pulse</code> updates <code>last_pulse_at</code>. <code>first_pulse_at</code> stays at the time the row was created. <code>workerPresenceTtlSeconds</code> in <code>apps/orchestrator/src/workers.ts</code> is 30, so a process that stops reporting is marked stopped after that many seconds. A planned stop calls <code>presence.stop</code>, which sets the phase to stopped and keeps the row. <code>workerRetentionSeconds</code> is 30 days, and a stopped row is deleted after that long. A stopped worker stays openable so its configuration can be read. Each row has <code>firstPulseAt</code> and <code>lastPulseAt</code>. A last pulse older than 5 minutes is stale in the console while the worker is not stopped. The step metric written when this worker finishes a step includes its id. <code>enqueueStep</code> in <code>apps/orchestrator/src/jobs.ts</code> sends the job from <code>publish</code> and does not take that list as an argument. <code>WORKER_TOKEN</code> is the bearer on <code>/worker-sessions</code>, not the person id.</p>
|
|
40
40
|
</li>
|
|
41
|
-
</ol></div><div class="flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden"></div><div class="@container grid gap-4 pb-6 grid-cols-1"></div></article><div id="nd-toc" class="fixed bottom-0 pt-12 pb-2 pr-(--removed-body-scroll-bar-size,0) max-xl:hidden" style="top:calc(var(--fd-banner-height) + var(--fd-nav-height));inset-inline-end:max(var(--fd-layout-offset), calc(50vw - var(--fd-sidebar-width)/2 - var(--fd-page-width)/2))"><div class="flex h-full w-(--fd-toc-width) max-w-full flex-col pe-4"><h3 class="inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide size-4"><path d="M15 18H3"></path><path d="M17 6H3"></path><path d="M21 12H3"></path></svg>On this page</h3><div class="relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3"><div role="none" class="absolute top-(--fd-top) h-(--fd-height) w-px bg-fd-primary transition-all"></div><div class="flex flex-col border-s border-fd-foreground/10"><a data-active="false" href="#why" class="prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary ps-3">Why</a><a data-active="false" href="#who" class="prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary ps-3">Who</a><a data-active="false" href="#how" class="prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary ps-3">How</a><a data-active="false" href="#getting-started" class="prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary ps-3">Getting started</a></div></div></div></div></div><!--$--><!--/$--></main><script src="/_next/static/chunks/webpack-61a9536d6463a95b.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[2392,[\"392\",\"static/chunks/392-1442f884e5f4da76.js\",\"177\",\"static/chunks/app/layout-9561d9b665946ae8.js\"],\"RootProvider\"]\n3:I[3985,[],\"\"]\n4:I[5989,[],\"\"]\n5:I[72,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"TreeContextProvider\"]\na:I[8083,[],\"\"]\n:HL[\"/_next/static/css/4126bc63349478de.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"YNEh12wn0ALeRpEXSN36A\",\"p\":\"\",\"c\":[\"\",\"docs\",\"usage\",\"kinds\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"docs\",{\"children\":[[\"slug\",\"usage/kinds\",\"oc\"],{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/4126bc63349478de.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[\"docs\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L5\",null,{\"tree\":{\"$id\":\"root\",\"name\":\"Orchestrator\",\"children\":[{\"$id\":\"index.mdx\",\"type\":\"page\",\"name\":\"Orchestrator\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs\",\"$ref\":{\"file\":\"index.mdx\"}},{\"$id\":\"server.mdx\",\"type\":\"page\",\"name\":\"Server\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/server\",\"$ref\":{\"file\":\"server.mdx\"}},{\"$id\":\"engine.mdx\",\"type\":\"page\",\"name\":\"Engine\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/engine\",\"$ref\":{\"file\":\"engine.mdx\"}},{\"$id\":\"fixture.mdx\",\"type\":\"page\",\"name\":\"Fixture\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/fixture\",\"$ref\":{\"file\":\"fixture.mdx\"}},{\"type\":\"folder\",\"name\":\"Usage\",\"icon\":\"$undefined\",\"root\":\"$undefined\",\"defaultOpen\":\"$undefined\",\"description\":\"$undefined\",\"index\":\"$undefined\",\"children\":[{\"$id\":\"usage/flow.mdx\",\"type\":\"page\",\"name\":\"Flow\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/usage/flow\",\"$ref\":{\"file\":\"usage/flow.mdx\"}},{\"$id\":\"usage/actions.mdx\",\"type\":\"page\",\"name\":\"Actions\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/usage/actions\",\"$ref\":{\"file\":\"usage/actions.mdx\"}},{\"$id\":\"usage/drivers.mdx\",\"type\":\"page\",\"name\":\"Drivers\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/usage/drivers\",\"$ref\":{\"file\":\"usage/drivers.mdx\"}}],\"$id\":\"usage\",\"$ref\":{\"metaFile\":\"usage/meta.json\"}},{\"type\":\"folder\",\"name\":\"Decisions\",\"icon\":\"$undefined\",\"root\":\"$undefined\",\"defaultOpen\":\"$undefined\",\"description\":\"$undefined\",\"index\":\"$undefined\",\"children\":[{\"$id\":\"adr/0001-restricted-process-function.md\",\"type\":\"page\",\"name\":\"The flow is restricted TypeScript, reread from the start\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0001-restricted-process-function\",\"$ref\":{\"file\":\"adr/0001-restricted-process-function.md\"}},{\"$id\":\"adr/0002-entity-key.md\",\"type\":\"page\",\"name\":\"An entity is an organization, a flow, and an identity\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0002-entity-key\",\"$ref\":{\"file\":\"adr/0002-entity-key.md\"}},{\"$id\":\"adr/0003-metrics-apart-from-the-run.md\",\"type\":\"page\",\"name\":\"A metric is apart from the run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0003-metrics-apart-from-the-run\",\"$ref\":{\"file\":\"adr/0003-metrics-apart-from-the-run.md\"}},{\"$id\":\"adr/0004-one-row-per-entity.md\",\"type\":\"page\",\"name\":\"One row per entity\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0004-one-row-per-entity\",\"$ref\":{\"file\":\"adr/0004-one-row-per-entity.md\"}}],\"$id\":\"adr\",\"$ref\":{\"metaFile\":\"adr/meta.json\"}}],\"fallback\":{\"$id\":\"fallback-root-root\",\"name\":\"Docs\",\"children\":[{\"$id\":\"install.md\",\"type\":\"page\",\"name\":\"Install\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/install\",\"$ref\":{\"file\":\"install.md\"}},{\"type\":\"folder\",\"name\":\"Adr\",\"icon\":\"$undefined\",\"root\":\"$undefined\",\"defaultOpen\":\"$undefined\",\"description\":\"$undefined\",\"index\":\"$undefined\",\"children\":[{\"$id\":\"adr/0005-orchestrator-applies-results.md\",\"type\":\"page\",\"name\":\"The orchestrator applies results\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0005-orchestrator-applies-results\",\"$ref\":{\"file\":\"adr/0005-orchestrator-applies-results.md\"}},{\"$id\":\"adr/0006-one-identity-one-entity.md\",\"type\":\"page\",\"name\":\"One identity is one entity\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0006-one-identity-one-entity\",\"$ref\":{\"file\":\"adr/0006-one-identity-one-entity.md\"}},{\"$id\":\"adr/0007-historized-flow-runs.md\",\"type\":\"page\",\"name\":\"A flow run is kept, then only its metric remains\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0007-historized-flow-runs\",\"$ref\":{\"file\":\"adr/0007-historized-flow-runs.md\"}},{\"$id\":\"adr/0008-guard-and-each.md\",\"type\":\"page\",\"name\":\"A flow may guard a result and repeat over elements\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0008-guard-and-each\",\"$ref\":{\"file\":\"adr/0008-guard-and-each.md\"}},{\"$id\":\"adr/0009-transient-files.md\",\"type\":\"page\",\"name\":\"A transient file lives with the flow run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0009-transient-files\",\"$ref\":{\"file\":\"adr/0009-transient-files.md\"}},{\"$id\":\"adr/0010-entity-values-copied-onto-the-run.md\",\"type\":\"page\",\"name\":\"Entity values are copied onto the run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0010-entity-values-copied-onto-the-run\",\"$ref\":{\"file\":\"adr/0010-entity-values-copied-onto-the-run.md\"}},{\"$id\":\"adr/0011-a-diverged-reread-ends-the-run.md\",\"type\":\"page\",\"name\":\"A diverged reread ends the run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0011-a-diverged-reread-ends-the-run\",\"$ref\":{\"file\":\"adr/0011-a-diverged-reread-ends-the-run.md\"}},{\"$id\":\"adr/0012-a-step-name-once-per-run.md\",\"type\":\"page\",\"name\":\"A step name is opened once per run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0012-a-step-name-once-per-run\",\"$ref\":{\"file\":\"adr/0012-a-step-name-once-per-run.md\"}},{\"$id\":\"adr/0013-a-run-does-not-wait-on-its-ancestor.md\",\"type\":\"page\",\"name\":\"A run does not wait on its ancestor\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0013-a-run-does-not-wait-on-its-ancestor\",\"$ref\":{\"file\":\"adr/0013-a-run-does-not-wait-on-its-ancestor.md\"}},{\"$id\":\"adr/0014-a-shared-child-is-claimed-before-its-run.md\",\"type\":\"page\",\"name\":\"A shared child is claimed before its run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0014-a-shared-child-is-claimed-before-its-run\",\"$ref\":{\"file\":\"adr/0014-a-shared-child-is-claimed-before-its-run.md\"}},{\"$id\":\"adr/0015-jobs-and-metrics-leave-with-the-run.md\",\"type\":\"page\",\"name\":\"Jobs and metrics leave with the run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0015-jobs-and-metrics-leave-with-the-run\",\"$ref\":{\"file\":\"adr/0015-jobs-and-metrics-leave-with-the-run.md\"}},{\"$id\":\"adr/0016-one-writer-per-organization.md\",\"type\":\"page\",\"name\":\"One writer per organization\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0016-one-writer-per-organization\",\"$ref\":{\"file\":\"adr/0016-one-writer-per-organization.md\"}},{\"$id\":\"adr/0017-group-judgment.md\",\"type\":\"page\",\"name\":\"A group judges its required members\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0017-group-judgment\",\"$ref\":{\"file\":\"adr/0017-group-judgment.md\"}},{\"$id\":\"adr/0018-replay-copies-files.md\",\"type\":\"page\",\"name\":\"A replay from a step copies the kept files\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0018-replay-copies-files\",\"$ref\":{\"file\":\"adr/0018-replay-copies-files.md\"}},{\"$id\":\"adr/0019-typed-body.md\",\"type\":\"page\",\"name\":\"A typed body sits beside the result envelope\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0019-typed-body\",\"$ref\":{\"file\":\"adr/0019-typed-body.md\"}},{\"$id\":\"adr/0020-rule-on-each-opening.md\",\"type\":\"page\",\"name\":\"Each array of children carries its rule\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0020-rule-on-each-opening\",\"$ref\":{\"file\":\"adr/0020-rule-on-each-opening.md\"}},{\"$id\":\"adr/0021-optional-children.md\",\"type\":\"page\",\"name\":\"Optional children are waited on\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0021-optional-children\",\"$ref\":{\"file\":\"adr/0021-optional-children.md\"}},{\"$id\":\"adr/0022-optional-quota.md\",\"type\":\"page\",\"name\":\"An optional quota lets the parent continue\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0022-optional-quota\",\"$ref\":{\"file\":\"adr/0022-optional-quota.md\"}},{\"$id\":\"adr/0023-sealed-report-returns.md\",\"type\":\"page\",\"name\":\"A sealed report carries each child's return\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0023-sealed-report-returns\",\"$ref\":{\"file\":\"adr/0023-sealed-report-returns.md\"}},{\"$id\":\"adr/0024-one-silence-per-opening.md\",\"type\":\"page\",\"name\":\"An opening gives every child the same silence\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0024-one-silence-per-opening\",\"$ref\":{\"file\":\"adr/0024-one-silence-per-opening.md\"}},{\"$id\":\"adr/0025-environment-variables.md\",\"type\":\"page\",\"name\":\"Variables belong to the environment\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0025-environment-variables\",\"$ref\":{\"file\":\"adr/0025-environment-variables.md\"}},{\"$id\":\"adr/0026-runtime-revision-excludes-platform-and-device.md\",\"type\":\"page\",\"name\":\"A runtime revision excludes platform and device\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0026-runtime-revision-excludes-platform-and-device\",\"$ref\":{\"file\":\"adr/0026-runtime-revision-excludes-platform-and-device.md\"}},{\"$id\":\"adr/0027-one-router-consumes-a-slot.md\",\"type\":\"page\",\"name\":\"One router consumes a slot\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0027-one-router-consumes-a-slot\",\"$ref\":{\"file\":\"adr/0027-one-router-consumes-a-slot.md\"}},{\"$id\":\"adr/0028-caddy-desktop-placement.md\",\"type\":\"page\",\"name\":\"Caddy has a desktop placement\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0028-caddy-desktop-placement\",\"$ref\":{\"file\":\"adr/0028-caddy-desktop-placement.md\"}},{\"$id\":\"adr/0029-registry-client-or-login.md\",\"type\":\"page\",\"name\":\"A registry client certificate or a login\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0029-registry-client-or-login\",\"$ref\":{\"file\":\"adr/0029-registry-client-or-login.md\"}},{\"$id\":\"adr/0030-organization-code-outside-the-repository.md\",\"type\":\"page\",\"name\":\"The fixture checkout may live in the repository\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0030-organization-code-outside-the-repository\",\"$ref\":{\"file\":\"adr/0030-organization-code-outside-the-repository.md\"}},{\"$id\":\"adr/0031-environment-reload.md\",\"type\":\"page\",\"name\":\"A running worker reloads when commanded\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0031-environment-reload\",\"$ref\":{\"file\":\"adr/0031-environment-reload.md\"}},{\"$id\":\"adr/0032-an-orchestrator-fault-stops-the-run.md\",\"type\":\"page\",\"name\":\"An orchestrator fault stops the run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0032-an-orchestrator-fault-stops-the-run\",\"$ref\":{\"file\":\"adr/0032-an-orchestrator-fault-stops-the-run.md\"}},{\"$id\":\"adr/0033-one-rule-for-children.md\",\"type\":\"page\",\"name\":\"One rule for required and optional children\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0033-one-rule-for-children\",\"$ref\":{\"file\":\"adr/0033-one-rule-for-children.md\"}}],\"$id\":\"adr\",\"$ref\":\"$undefined\"},{\"type\":\"folder\",\"name\":\"Agents\",\"icon\":\"$undefined\",\"root\":\"$undefined\",\"defaultOpen\":\"$undefined\",\"description\":\"$undefined\",\"index\":\"$undefined\",\"children\":[{\"$id\":\"agents/domain.md\",\"type\":\"page\",\"name\":\"Domain Docs\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/agents/domain\",\"$ref\":{\"file\":\"agents/domain.md\"}}],\"$id\":\"agents\",\"$ref\":\"$undefined\"},{\"type\":\"folder\",\"name\":\"Usage\",\"icon\":\"$undefined\",\"root\":\"$undefined\",\"defaultOpen\":\"$undefined\",\"description\":\"$undefined\",\"index\":\"$undefined\",\"children\":[{\"$id\":\"usage/kinds.mdx\",\"type\":\"page\",\"name\":\"Kind\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/usage/kinds\",\"$ref\":{\"file\":\"usage/kinds.mdx\"}}],\"$id\":\"usage\",\"$ref\":\"$undefined\"}]}},\"children\":\"$L6\"}]]}],{\"children\":[[\"slug\",\"usage/kinds\",\"oc\"],\"$L7\",{\"children\":[\"__PAGE__\",\"$L8\",{},null,false]},null,false]},null,false]},null,false],\"$L9\",false]],\"m\":\"$undefined\",\"G\":[\"$a\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"b:I[3762,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"NavProvider\"]\nc:I[1550,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"Navbar\"]\nd:I[5794,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"default\"]\ne:I[3222,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SearchToggle\"]\nf:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarTrigger\"]\n10:I[1550,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"LayoutBody\"]\n11:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"Sidebar\"]\n12:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/ch"])</script><script>self.__next_f.push([1,"unks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarContentMobile\"]\n13:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarHeader\"]\n14:I[5599,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"ThemeToggle\"]\n15:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarViewport\"]\n16:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarPageTree\"]\n17:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarFooter\"]\n18:I[1550,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"CollapsibleControl\"]\n19:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarContent\"]\n1a:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-"])</script><script>self.__next_f.push([1,"d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarCollapseTrigger\"]\n1b:I[3222,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"LargeSearchToggle\"]\n1d:I[1204,[],\"OutletBoundary\"]\n1f:I[5197,[],\"AsyncMetadataOutlet\"]\n21:I[1204,[],\"ViewportBoundary\"]\n23:I[1204,[],\"MetadataBoundary\"]\n24:\"$Sreact.suspense\"\n"])</script><script>self.__next_f.push([1,"6:[\"$\",\"$Lb\",null,{\"transparentMode\":\"$undefined\",\"children\":[[\"$\",\"$Lc\",null,{\"className\":\"h-(--fd-nav-height) on-root:[--fd-nav-height:56px] md:on-root:[--fd-nav-height:0px] md:hidden\",\"children\":[[\"$\",\"$Ld\",null,{\"href\":\"/\",\"className\":\"inline-flex items-center gap-2.5 font-semibold\",\"children\":\"Cue\"}],[\"$\",\"div\",null,{\"className\":\"flex-1\",\"children\":\"$undefined\"}],[\"$\",\"$Le\",null,{\"className\":\"p-2\",\"hideIfDisabled\":true}],[\"$\",\"$Lf\",null,{\"className\":\"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground [\u0026_svg]:size-4.5 p-2\",\"children\":[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide\",\"children\":[[[\"$\",\"rect\",\"afitv7\",{\"width\":\"18\",\"height\":\"18\",\"x\":\"3\",\"y\":\"3\",\"rx\":\"2\"}],[\"$\",\"path\",\"fh3hqa\",{\"d\":\"M9 3v18\"}]],\"$undefined\"]}]}]]}],[\"$\",\"$L10\",null,{\"className\":\"md:[\u0026_#nd-page_article]:pt-12 xl:[--fd-toc-width:286px] xl:[\u0026_#nd-page_article]:px-8 md:[--fd-sidebar-width:268px] lg:[--fd-sidebar-width:286px]\",\"children\":[[\"$\",\"$L11\",null,{\"defaultOpenLevel\":\"$undefined\",\"prefetch\":\"$undefined\",\"Mobile\":[\"$\",\"$L12\",null,{\"children\":[[\"$\",\"$L13\",null,{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex text-fd-muted-foreground items-center gap-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex flex-1\",\"children\":[]}],null,[\"$\",\"$L14\",null,{\"className\":\"p-0\",\"mode\":\"$undefined\"}],[\"$\",\"$Lf\",null,{\"className\":\"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground [\u0026_svg]:size-4.5 p-2\",\"children\":[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide\",\"children\":[[[\"$\",\"rect\",\"afitv7\",{\"width\":\"18\",\"height\":\"18\",\"x\":\"3\",\"y\":\"3\",\"rx\":\"2\"}],[\"$\",\"path\",\"fh3hqa\",{\"d\":\"M9 3v18\"}]],\"$undefined\"]}]}]]}],false,\"$undefined\"]}],[\"$\",\"$L15\",null,{\"children\":[[],[\"$\",\"$L16\",null,{\"components\":\"$undefined\"}]]}],[\"$\",\"$L17\",null,{\"className\":\"empty:hidden\",\"children\":\"$undefined\"}]]}],\"Content\":[[\"$\",\"$L18\",null,{}],[\"$\",\"$L19\",null,{\"children\":[[\"$\",\"$L13\",null,{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex\",\"children\":[[\"$\",\"$Ld\",null,{\"href\":\"/\",\"className\":\"inline-flex text-[15px] items-center gap-2.5 font-medium me-auto\",\"children\":\"Cue\"}],\"$undefined\",[\"$\",\"$L1a\",null,{\"className\":\"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [\u0026_svg]:size-4.5 mb-auto text-fd-muted-foreground\",\"children\":[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide\",\"children\":[[[\"$\",\"rect\",\"afitv7\",{\"width\":\"18\",\"height\":\"18\",\"x\":\"3\",\"y\":\"3\",\"rx\":\"2\"}],[\"$\",\"path\",\"fh3hqa\",{\"d\":\"M9 3v18\"}]],\"$undefined\"]}]}]]}],[\"$\",\"$L1b\",null,{\"hideIfDisabled\":true}],false,\"$undefined\"]}],\"$6:props:children:1:props:children:0:props:Mobile:props:children:1\",[\"$\",\"$L17\",null,{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex text-fd-muted-foreground items-center empty:hidden\",\"children\":[false,[],[\"$\",\"$L14\",null,{\"className\":\"ms-auto p-0\",\"mode\":\"$undefined\"}]]}],\"$undefined\"]}]]}]]}],false,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]]}]\n"])</script><script>self.__next_f.push([1,"7:[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]\n8:[\"$\",\"$1\",\"c\",{\"children\":[\"$L1c\",null,[\"$\",\"$L1d\",null,{\"children\":[\"$L1e\",[\"$\",\"$L1f\",null,{\"promise\":\"$@20\"}]]}]]}]\n9:[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L21\",null,{\"children\":\"$L22\"}],null],[\"$\",\"$L23\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$24\",null,{\"fallback\":null,\"children\":\"$L25\"}]}]}]]}]\n"])</script><script>self.__next_f.push([1,"26:I[9879,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"TOCProvider\"]\n27:I[7570,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"PageTOCPopover\"]\n28:I[7570,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"PageTOCPopoverTrigger\"]\n29:I[7570,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"PageTOCPopoverContent\"]\n2a:I[9879,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"TOCScrollArea\"]\n2b:I[9879,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"TOCItems\"]\n2c:I[7570,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"PageBreadcrumb\"]\n"])</script><script>self.__next_f.push([1,"1c:[\"$\",\"$L26\",null,{\"toc\":[{\"depth\":2,\"url\":\"#why\",\"title\":\"Why\"},{\"depth\":2,\"url\":\"#who\",\"title\":\"Who\"},{\"depth\":2,\"url\":\"#how\",\"title\":\"How\"},{\"depth\":2,\"url\":\"#getting-started\",\"title\":\"Getting started\"}],\"single\":\"$undefined\",\"children\":[\"$\",\"div\",null,{\"id\":\"nd-page\",\"className\":\"flex flex-1 w-full mx-auto max-w-(--fd-page-width) pt-(--fd-tocnav-height) pe-(--fd-toc-width)\",\"children\":[[\"$\",\"$L27\",null,{\"children\":[[\"$\",\"$L28\",null,{}],[\"$\",\"$L29\",null,{\"children\":[\"$undefined\",[\"$\",\"$L2a\",null,{\"children\":[\"$\",\"$L2b\",null,{}]}],\"$undefined\"]}]]}],[\"$\",\"article\",null,{\"children\":[[\"$\",\"$L2c\",null,{}],[[\"$\",\"h1\",null,{\"ref\":\"$undefined\",\"children\":\"Kind\",\"className\":\"text-[1.75em] font-semibold\"}],[\"$\",\"div\",null,{\"ref\":\"$undefined\",\"children\":[[\"$\",\"h2\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"why\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#why\",\"className\":\"peer\",\"children\":\"Why\"}],[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100\",\"aria-label\":\"Link to section\",\"children\":[[[\"$\",\"path\",\"1cjeqo\",{\"d\":\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"}],[\"$\",\"path\",\"19qd67\",{\"d\":\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"}]],\"$undefined\"]}]]}],\"\\n\",[\"$\",\"p\",null,{\"children\":\"A kind is the queue a step's job is sent to. A worker pulls one or more kinds. A kind is not a step implementation.\"}],\"\\n\",[\"$\",\"p\",null,{\"children\":[\"The step implementation is the \",[\"$\",\"code\",null,{\"children\":\"run\"}],\" on the bound step. The kind names where the orchestrator sends that step's job. The orchestrator and the worker are separate processes: the orchestrator sends the job, and the worker pulls it and runs the step implementation.\"]}],\"\\n\",[\"$\",\"h2\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"who\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#who\",\"className\":\"peer\",\"children\":\"Who\"}],[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100\",\"aria-label\":\"Link to section\",\"children\":[[[\"$\",\"path\",\"1cjeqo\",{\"d\":\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"}],[\"$\",\"path\",\"19qd67\",{\"d\":\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"}]],\"$undefined\"]}]]}],\"\\n\",[\"$\",\"p\",null,{\"children\":\"You name the kind when you register a bound step for an organization.\"}],\"\\n\",[\"$\",\"p\",null,{\"children\":\"You start a worker when you want that kind pulled.\"}],\"\\n\",[\"$\",\"p\",null,{\"children\":\"A person can read which workers are connected. A person can open the first entity of a flow, replay a flow, replay from a step, resend a job, run a step without applying its result, cancel a run or an open step, and end a validity. The first opening is that request: an open run waits, and inside the validity duration the recorded result is returned.\"}],\"\\n\",[\"$\",\"h2\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"how\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#how\",\"className\":\"peer\",\"children\":\"How\"}],[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100\",\"aria-label\":\"Link to section\",\"children\":[[[\"$\",\"path\",\"1cjeqo\",{\"d\":\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"}],[\"$\",\"path\",\"19qd67\",{\"d\":\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"}]],\"$undefined\"]}]]}],\"\\n\",[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"bindOrganization\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/steps.ts\"}],\" binds each step onto every flow. The kind is \",[\"$\",\"code\",null,{\"children\":\"fixture-\"}],\" plus the step name: \",\"$L2d\",\", \",\"$L2e\",\", \",\"$L2f\",\", \",\"$L30\",\", and \",\"$L31\",\". \",\"$L32\",\" stores each bound step under \",\"$L33\",\". \",\"$L34\",\" calls \",\"$L35\",\" with the organization that exported \",\"$L36\",\". \",\"$L37\",\" and \",\"$L38\",\" stay different fields: \",\"$L39\",\" copies the organization onto the job and reads the kind from the bound step.\"]}],\"\\n\",\"$L3a\",\"\\n\",\"$L3b\",\"\\n\",\"$L3c\",\"\\n\",\"$L3d\",\"\\n\",\"$L3e\",\"\\n\",\"$L3f\",\"\\n\",\"$L40\",\"\\n\",\"$L41\",\"\\n\",\"$L42\",\"\\n\",\"$L43\",\"\\n\",\"$L44\",\"\\n\",\"$L45\",\"\\n\",\"$L46\"],\"className\":\"prose flex-1\"}]],\"$L47\",\"$L48\"],\"className\":\"flex min-w-0 w-full flex-col gap-4 pt-8 px-4 md:px-6 md:mx-auto\"}],\"$L49\"]}]}]\n"])</script><script>self.__next_f.push([1,"5f:I[7570,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"PageFooter\"]\n60:I[7570,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"PageTOC\"]\n61:I[9028,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"I18nLabel\"]\n2d:[\"$\",\"code\",null,{\"children\":\"fixture-dwell\"}]\n2e:[\"$\",\"code\",null,{\"children\":\"fixture-stall\"}]\n2f:[\"$\",\"code\",null,{\"children\":\"fixture-miss\"}]\n30:[\"$\",\"code\",null,{\"children\":\"fixture-sprout\"}]\n31:[\"$\",\"code\",null,{\"children\":\"fixture-brood\"}]\n32:[\"$\",\"code\",null,{\"children\":\"fixtureSteps\"}]\n33:[\"$\",\"code\",null,{\"children\":\"flow/step\"}]\n34:[\"$\",\"code\",null,{\"children\":\"seedOrganization\"}]\n35:[\"$\",\"code\",null,{\"children\":\"service.startRun\"}]\n36:[\"$\",\"code\",null,{\"children\":\"catalogSeed\"}]\n37:[\"$\",\"code\",null,{\"children\":\"Job.organization\"}]\n38:[\"$\",\"code\",null,{\"children\":\"BoundStep.kind\"}]\n39:[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}]\n3a:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"pnpm --filter cue-orchestrator serve\"}],\" runs \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/server.ts\"}],\". That file calls \",[\"$\",\"code\",null,{\"children\":\"createBullQueue\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"server.listen\"}],\" on port \",[\"$\",\"code\",null,{\"children\":\"3001\"}],\". The HTTP server does not start a worker: \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" is called from \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/work.ts\"}],\".\"]}]\n3b:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/p"])</script><script>self.__next_f.push([1,"review.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"createMemoryWorkerRegistry\"}],\" and a \",[\"$\",\"code\",null,{\"children\":\"JobQueue\"}],\" whose \",[\"$\",\"code\",null,{\"children\":\"add\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"undefined\"}],\". \",[\"$\",\"code\",null,{\"children\":\"preview.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"server.listen(3001)\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3c:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/jobs.ts\"}],\" copies \",[\"$\",\"code\",null,{\"children\":\"organization\"}],\", \",[\"$\",\"code\",null,{\"children\":\"entity\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"step\"}],\" into \",[\"$\",\"code\",null,{\"children\":\"data\"}],\" before \",[\"$\",\"code\",null,{\"children\":\"queue.add\"}],\", so a job is organization, entity, and step with no secret. \",[\"$\",\"code\",null,{\"children\":\"stepBinding\"}],\" loads the bound step at \",[\"$\",\"code\",null,{\"children\":\"`${flow}/${step}`\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"queue.add\"}],\" receives \",[\"$\",\"code\",null,{\"children\":\"bound.kind\"}],\", so the kind comes from the bound step. \",[\"$\",\"code\",null,{\"children\":\"publish\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/service.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" for every job returned by \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\", \",[\"$\",\"code\",null,{\"children\":\"runJob\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"advance\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3d:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"queueName\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/bull.ts\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"`steps-${kind}`\"}],\", so the Redis queue name is steps plus the kind. \",[\"$\",\"code\",null,{\"children\":\"createBullQueue\"}],\" opens that Redis queue and calls \",[\"$\",\"code\",null,{\"children\":\"queue.add(\\\"step\\\", data, options)\"}],\". \",[\"$\",\"code\",null,{\"children\":\"stepJobOptions\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/jobs.ts\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"{ attempts: 1 }\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createBullQueue\"}],\" sets it as \",[\"$\",\"code\",null,{\"children\":\"defaultJobOptions\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" passes it on each \",[\"$\",\"code\",null,{\"children\":\"queue.add\"}],\", so attempts is 1.\"]}]\n"])</script><script>self.__next_f.push([1,"3e:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"seedOrganization\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\" for each run from an exported \",[\"$\",\"code\",null,{\"children\":\"catalogSeed\"}],\". The fixture does not export one, so \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture seed\"}],\" starts no run. The log line is \",[\"$\",\"code\",null,{\"children\":\"seeded fixture 0 runs\"}],\". \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"publish\"}],\", so a started run's jobs sit on the Redis queue until a worker pulls them. \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" does not call \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3f:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"applySilence\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"packages/engine/src/engine.ts\"}],\" pushes a new job with \",[\"$\",\"code\",null,{\"children\":\"jobFor\"}],\" while the opened step has no result, \",[\"$\",\"code\",null,{\"children\":\"now\"}],\" is at or after \",[\"$\",\"code\",null,{\"children\":\"silenceDueAt\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"resendCount\"}],\" is still under \",[\"$\",\"code\",null,{\"children\":\"maxResends\"}],\". At \",[\"$\",\"code\",null,{\"children\":\"maxResends\"}],\", \",[\"$\",\"code\",null,{\"children\":\"applySilence\"}],\" sets that step's result to \",[\"$\",\"code\",null,{\"children\":\"not_finished\"}],\" and breaks without \",[\"$\",\"code\",null,{\"children\":\"jobs.push\"}],\". \",[\"$\",\"code\",null,{\"children\":\"Service.advance\"}],\" publishes each pushed job through \",[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"queue.add\"}],\": silence stays in the engine, and a resend is a new job. \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/server.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openFixtureService\"}],\", \",[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"server.listen\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"40:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"kindsToStart(declaredKinds(fixtureSteps), requestedKinds(process.argv.slice(2)))\"}],\". \",[\"$\",\"code\",null,{\"children\":\"declaredKinds\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/kinds.ts\"}],\" lists each \",[\"$\",\"code\",null,{\"children\":\"kind\"}],\" on the bound steps once. \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" returns that full list when \",[\"$\",\"code\",null,{\"children\":\"requested.length\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"0\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"[]\"}],\" when the arguments contain no \",[\"$\",\"code\",null,{\"children\":\"--kinds\"}],\" and when the value splits and trims to no names, so an empty \",[\"$\",\"code\",null,{\"children\":\"--kinds\"}],\" starts every declared kind. \",[\"$\",\"code\",null,{\"children\":\"pnpm --filter @ascentstudio/cue-org-fixture work\"}],\" takes that path. \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" throws \",[\"$\",\"code\",null,{\"children\":\"--kinds needs a comma-separated list\"}],\" when \",[\"$\",\"code\",null,{\"children\":\"--kinds\"}],\" is present and the next argument is missing, and that throw is raised while \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" is still computing \",[\"$\",\"code\",null,{\"children\":\"kinds\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"41:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" throws \",[\"$\",\"code\",null,{\"children\":\"`Unknown kind ${kind}`\"}],\" when a requested name is absent from \",[\"$\",\"code\",null,{\"children\":\"declaredKinds\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" before the loop that calls \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\", so an unknown kind throws and starts nothing.\"]}]\n"])</script><script>self.__next_f.push([1,"42:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" splits the \",[\"$\",\"code\",null,{\"children\":\"--kinds\"}],\" value on commas. The loop \",[\"$\",\"code\",null,{\"children\":\"for (const kind of kinds)\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" once per kind in that same process, so several kinds can run in one process. \",[\"$\",\"code\",null,{\"children\":\"bindOrganization\"}],\" sets the kind to \",[\"$\",\"code\",null,{\"children\":\"fixture-\"}],\" plus the step name, so \",[\"$\",\"code\",null,{\"children\":\"declaredKinds(fixtureSteps)\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"fixture-dwell\"}],\", \",[\"$\",\"code\",null,{\"children\":\"fixture-stall\"}],\", \",[\"$\",\"code\",null,{\"children\":\"fixture-miss\"}],\", \",[\"$\",\"code\",null,{\"children\":\"fixture-sprout\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"fixture-brood\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"43:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/bull.ts\"}],\" starts a BullMQ \",[\"$\",\"code\",null,{\"children\":\"Worker\"}],\" on \",[\"$\",\"code\",null,{\"children\":\"queueName(kind)\"}],\" and calls \",[\"$\",\"code\",null,{\"children\":\"run\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"organization\"}],\", \",[\"$\",\"code\",null,{\"children\":\"entity\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"step\"}],\" taken from the job data, so workers pull. \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"readOrganizationSecrets\"}],\" once, then \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\", before \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\". \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" writes each secret into the environment. \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" passes \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\" as that \",[\"$\",\"code\",null,{\"children\":\"run\"}],\". \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\" reads the dispatch packet and calls \",[\"$\",\"code\",null,{\"children\":\"implementation.run\"}],\". The packet has the starting data and the time, and it has no secret. A step implementation reads a name with \",[\"$\",\"code\",null,{\"children\":\"environment\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"failed\"}],\" handler in \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" logs \",[\"$\",\"code\",null,{\"children\":\"step failed\"}],\" with the kind, the BullMQ job id, and the error. A value loaded by \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" is replaced with \",[\"$\",\"code\",null,{\"children\":\"••••\"}],\" in that log.\"]}]\n"])</script><script>self.__next_f.push([1,"44:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"packages/supervisor/src/worker/supervise.ts\"}],\" starts \",[\"$\",\"code\",null,{\"children\":\"packages/supervisor/src/worker/main.ts\"}],\" and keeps the environment from before \",[\"$\",\"code\",null,{\"children\":\"loadRootEnv\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createSupervisor\"}],\" writes \",[\"$\",\"code\",null,{\"children\":\"supervisor watching pid\"}],\" and the child pid. A child that exits \",[\"$\",\"code\",null,{\"children\":\"75\"}],\" is a requested restart: the supervisor writes \",[\"$\",\"code\",null,{\"children\":\"worker restart requested\"}],\" and starts the child again, so it calls \",[\"$\",\"code\",null,{\"children\":\"readOrganizationSecrets\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" once more. A child that exits \",[\"$\",\"code\",null,{\"children\":\"0\"}],\" is a requested stop: the supervisor writes \",[\"$\",\"code\",null,{\"children\":\"worker stopped\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"supervisor exiting\"}],\", then calls \",[\"$\",\"code\",null,{\"children\":\"process.exit(0)\"}],\". A child that exits with another code, or with a signal, is unexpected: the supervisor writes \",[\"$\",\"code\",null,{\"children\":\"worker exited\"}],\" plus that code or signal and \",[\"$\",\"code\",null,{\"children\":\"restarting\"}],\", waits one second, and starts the child again. \",[\"$\",\"code\",null,{\"children\":\"SIGINT\"}],\", \",[\"$\",\"code\",null,{\"children\":\"SIGTERM\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"SIGQUIT\"}],\" are stop signals. The supervisor writes \",[\"$\",\"code\",null,{\"children\":\"supervisor forwarding\"}],\" plus the signal name, forwards that signal, and does not start another child when that child exits. \",[\"$\",\"code\",null,{\"children\":\"SIGHUP\"}],\" is forwarded the same way and is a restart: the child exits \",[\"$\",\"code\",null,{\"children\":\"75\"}],\". \",[\"$\",\"code\",null,{\"children\":\"SIGTERM\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"SIGINT\"}],\" ask that child to stop accepting jobs and exit \",[\"$\",\"code\",null,{\"children\":\"0\"}],\" after the current job. \",[\"$\",\"code\",null,{\"children\":\"SIGQUIT\"}],\" closes the BullMQ workers without waiting and exits \",[\"$\",\"code\",null,{\"children\":\"0\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createShutdown\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/worker-control.ts\"}],\" is that sequence. The worker writes \",[\"$\",\"code\",null,{\"children\":\"worker command\"}],\" plus \",[\"$\",\"code\",null,{\"children\":\"drain-stop\"}],\", \",[\"$\",\"code\",null,{\"children\":\"drain-restart\"}],\", or \",[\"$\",\"code\",null,{\"children\":\"force-stop\"}],\" when it takes the command, and \",[\"$\",\"code\",null,{\"children\":\"worker exit\"}],\" plus \",[\"$\",\"code\",null,{\"children\":\"0\"}],\" or \",[\"$\",\"code\",null,{\"children\":\"75\"}],\" before \",[\"$\",\"code\",null,{\"children\":\"process.exit\"}],\". Each BullMQ worker is closed with \",[\"$\",\"code\",null,{\"children\":\"close(true)\"}],\". A command stored for the worker runs the same sequence. \",[\"$\",\"code\",null,{\"children\":\"publish\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" with the jobs from the engine, so a worker session is not a condition for opening a step. \",[\"$\",\"code\",null,{\"children\":\"WorkerService\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"packages/supervisor/src/worker/worker.service.ts\"}],\" starts each kind with \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"45:[\"$\",\"h2\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"getting-started\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#getting-started\",\"className\":\"peer\",\"children\":\"Getting started\"}],[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100\",\"aria-label\":\"Link to section\",\"children\":[[[\"$\",\"path\",\"1cjeqo\",{\"d\":\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"}],[\"$\",\"path\",\"19qd67\",{\"d\":\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"}]],\"$undefined\"]}]]}]\n"])</script><script>self.__next_f.push([1,"46:[\"$\",\"ol\",null,{\"children\":[\"\\n\",[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"Copy \",[\"$\",\"code\",null,{\"children\":\".env.example\"}],\" to \",[\"$\",\"code\",null,{\"children\":\".env\"}],\" in the repository root, and start Redis and Supabase with \",[\"$\",\"code\",null,{\"children\":\"docker compose up -d redis\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"npx supabase start\"}],\". \",[\"$\",\"code\",null,{\"children\":\"loadRootEnv\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/env.ts\"}],\" reads that \",[\"$\",\"code\",null,{\"children\":\".env\"}],\". \",[\"$\",\"code\",null,{\"children\":\"requiredEnv\"}],\" in the same file reads \",[\"$\",\"code\",null,{\"children\":\"REDIS_URL\"}],\", \",[\"$\",\"code\",null,{\"children\":\"DATABASE_URL\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"WORKER_TOKEN\"}],\", and throws \",[\"$\",\"code\",null,{\"children\":\"$${name} is required\"}],\" when a name is missing. \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/server.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"loadRootEnv\"}],\" inside \",[\"$\",\"code\",null,{\"children\":\"openFixtureService\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"requiredEnv(\\\"WORKER_TOKEN\\\")\"}],\". \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"loadRootEnv\"}],\", reads \",[\"$\",\"code\",null,{\"children\":\"WORKER_TOKEN\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"readOrganizationSecrets\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"DATABASE_URL\"}],\" and organization \",[\"$\",\"code\",null,{\"children\":\"fixture\"}],\". That reads the secrets table once. \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" writes those names into the environment.\"]}],\"\\n\"]}],\"\\n\",[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"Run \",[\"$\",\"code\",null,{\"children\":\"pnpm --filter cue-orchestrator serve\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"serve\"}],\" script in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/package.json\"}],\" runs \",[\"$\",\"code\",null,{\"children\":\"tsx src/server.ts\"}],\". \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openFixtureService\"}],\", which calls \",[\"$\",\"code\",null,{\"children\":\"createBullQueue\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"REDIS_URL\"}],\". \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" then calls \",[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"server.listen(3001, \\\"0.0.0.0\\\")\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"console.log\"}],\" prints \",[\"$\",\"code\",null,{\"children\":\"orchestrator http://127.0.0.1:3001\"}],\". The HTTP server does not start a worker and does not call \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" runs from \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/work.ts\"}],\". Stop the preview process first when it is already on port \",[\"$\",\"code\",null,{\"children\":\"3001\"}],\", because \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/preview.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"server.listen(3001)\"}],\".\"]}],\"\\n\"]}],\"\\n\",[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"In a second terminal, run \",[\"$\",\"code\",null,{\"children\":\"pnpm --filter cue-supervisor work\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"work\"}],\" script in \",[\"$\",\"code\",null,{\"children\":\"packages/supervisor/package.json\"}],\" runs \",[\"$\",\"code\",null,{\"children\":\"tsx src/main.ts\"}],\". \",[\"$\",\"code\",null,{\"children\":\"packages/supervisor/src/worker/supervise.ts\"}],\" starts \",[\"$\",\"code\",null,{\"children\":\"main.ts\"}],\" with the environment it had at launch. \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"declaredKinds(fixtureSteps)\"}],\" and the list from \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\". With no \",[\"$\",\"code\",null,{\"children\":\"--kinds\"}],\", \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"[]\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" returns every declared kind. \",[\"$\",\"code\",null,{\"children\":\"readOrganizationSecrets\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" then load the organization's secrets into the environment. \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" reads \",[\"$\",\"code\",null,{\"children\":\"WORKER_TOKEN\"}],\" before \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" and posts \",[\"$\",\"code\",null,{\"children\":\"/worker-sessions\"}],\" with that bearer, the host, and each started \",\"$L4a\",\". The loop calls \",\"$L4b\",\" for each kind. A secret added or deleted after this start stays out of the environment until the worker starts again. \",\"$L4c\",\" is that start: the child exits \",\"$L4d\",\", the supervisor writes \",\"$L4e\",\", and starts it again. A child that exits \",\"$L4f\",\" makes the supervisor write \",\"$L50\",\" and \",\"$L51\",\", then exit. A child that exits with another code or a signal is started again after one second. \",\"$L52\",\" in \",\"$L53\",\" prints \",\"$L54\",\" plus those kind names joined by commas. Those kinds are \",\"$L55\",\", \",\"$L56\",\", \",\"$L57\",\", \",\"$L58\",\", and \",\"$L59\",\". \",\"$L5a\",\" does not call \",\"$L5b\",\".\"]}],\"\\n\"]}],\"\\n\",\"$L5c\",\"\\n\",\"$L5d\",\"\\n\",\"$L5e\",\"\\n\"]}]\n"])</script><script>self.__next_f.push([1,"47:[\"$\",\"div\",null,{\"className\":\"flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden\",\"children\":[\"$undefined\",\"$undefined\"]}]\n48:[\"$\",\"$L5f\",null,{\"items\":\"$undefined\"}]\n49:[\"$\",\"$L60\",null,{\"children\":[\"$undefined\",[\"$\",\"h3\",null,{\"className\":\"inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground\",\"children\":[[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide size-4\",\"children\":[[[\"$\",\"path\",\"olowqp\",{\"d\":\"M15 18H3\"}],[\"$\",\"path\",\"16j9eg\",{\"d\":\"M17 6H3\"}],[\"$\",\"path\",\"2avoz0\",{\"d\":\"M21 12H3\"}]],\"$undefined\"]}],[\"$\",\"$L61\",null,{\"label\":\"toc\"}]]}],[\"$\",\"$L2a\",null,{\"children\":[\"$\",\"$L2b\",null,{}]}],\"$undefined\"]}]\n"])</script><script>self.__next_f.push([1,"4a:[\"$\",\"code\",null,{\"children\":\"flow/step\"}]\n4b:[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}]\n4c:[\"$\",\"code\",null,{\"children\":\"SIGHUP\"}]\n4d:[\"$\",\"code\",null,{\"children\":\"75\"}]\n4e:[\"$\",\"code\",null,{\"children\":\"worker restart requested\"}]\n4f:[\"$\",\"code\",null,{\"children\":\"0\"}]\n50:[\"$\",\"code\",null,{\"children\":\"worker stopped\"}]\n51:[\"$\",\"code\",null,{\"children\":\"supervisor exiting\"}]\n52:[\"$\",\"code\",null,{\"children\":\"console.log\"}]\n53:[\"$\",\"code\",null,{\"children\":\"work.ts\"}]\n54:[\"$\",\"code\",null,{\"children\":\"fixture workers\"}]\n55:[\"$\",\"code\",null,{\"children\":\"fixture-dwell\"}]\n56:[\"$\",\"code\",null,{\"children\":\"fixture-stall\"}]\n57:[\"$\",\"code\",null,{\"children\":\"fixture-miss\"}]\n58:[\"$\",\"code\",null,{\"children\":\"fixture-sprout\"}]\n59:[\"$\",\"code\",null,{\"children\":\"fixture-brood\"}]\n5a:[\"$\",\"code\",null,{\"children\":\"work.ts\"}]\n5b:[\"$\",\"code\",null,{\"children\":\"catalogSeed\"}]\n"])</script><script>self.__next_f.push([1,"5c:[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"Run \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture seed\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"seed\"}],\" script in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/package.json\"}],\" runs \",[\"$\",\"code\",null,{\"children\":\"cue seed\"}],\". The fixture does not export \",[\"$\",\"code\",null,{\"children\":\"catalogSeed\"}],\", so the command opens nothing and the log line is \",[\"$\",\"code\",null,{\"children\":\"seeded fixture 0 runs\"}],\". Load runs start with \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture perf\"}],\", \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture perf:load\"}],\", \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture perf:brood\"}],\", or \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture perf:brood:producer\"}],\". \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture reset\"}],\" deletes the fixture rows in the orchestrator database, drains the jobs for those runs, and deletes that organization's metrics. The log line is \",[\"$\",\"code\",null,{\"children\":\"reset fixture\"}],\".\"]}],\"\\n\"]}]\n"])</script><script>self.__next_f.push([1,"5d:[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"To pull one kind, run \",[\"$\",\"code\",null,{\"children\":\"pnpm --filter @ascentstudio/cue-org-fixture work -- --kinds fixture-dwell\"}],\". \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" reads \",[\"$\",\"code\",null,{\"children\":\"fixture-dwell\"}],\" and splits on commas. \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" keeps \",[\"$\",\"code\",null,{\"children\":\"fixture-dwell\"}],\" because \",[\"$\",\"code\",null,{\"children\":\"declaredKinds\"}],\" lists that kind from \",[\"$\",\"code\",null,{\"children\":\"bindOrganization\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" starts it. When \",[\"$\",\"code\",null,{\"children\":\"declaredKinds\"}],\" lists more than one kind, put those names in the same comma-separated value: \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" splits on commas, and the loop calls \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" for each of them in this process. A name missing from \",[\"$\",\"code\",null,{\"children\":\"declaredKinds\"}],\" makes \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" throw \",[\"$\",\"code\",null,{\"children\":\"Unknown kind\"}],\" plus that name before \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\". A \",[\"$\",\"code\",null,{\"children\":\"--kinds\"}],\" flag with no value makes \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" throw \",[\"$\",\"code\",null,{\"children\":\"--kinds needs a comma-separated list\"}],\" before \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\".\"]}],\"\\n\"]}]\n"])</script><script>self.__next_f.push([1,"5e:[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"Open Workers in the console for the fixture organization, or call \",[\"$\",\"code\",null,{\"children\":\"GET /organizations/fixture/workers\"}],\" at \",[\"$\",\"code\",null,{\"children\":\"http://127.0.0.1:3001/organizations/fixture/workers\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"Authorization: Bearer\"}],\" and a person id. The resolver in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/server.ts\"}],\" returns the text after \",[\"$\",\"code\",null,{\"children\":\"Bearer \"}],\", and \",[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\" then returns \",[\"$\",\"code\",null,{\"children\":\"service.workersFor\"}],\". One working call is \",[\"$\",\"code\",null,{\"children\":\"curl -H \\\"Authorization: Bearer person-1\\\" http://127.0.0.1:3001/organizations/fixture/workers\"}],\". The body is the workers whose coverage names a flow of that organization. The rows are in the \",[\"$\",\"code\",null,{\"children\":\"workers\"}],\" table. \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openWorkerPresence\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"DATABASE_URL\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"presence.pulse\"}],\" updates \",[\"$\",\"code\",null,{\"children\":\"last_pulse_at\"}],\". \",[\"$\",\"code\",null,{\"children\":\"first_pulse_at\"}],\" stays at the time the row was created. \",[\"$\",\"code\",null,{\"children\":\"workerPresenceTtlSeconds\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/workers.ts\"}],\" is 30, so a process that stops reporting is marked stopped after that many seconds. A planned stop calls \",[\"$\",\"code\",null,{\"children\":\"presence.stop\"}],\", which sets the phase to stopped and keeps the row. \",[\"$\",\"code\",null,{\"children\":\"workerRetentionSeconds\"}],\" is 30 days, and a stopped row is deleted after that long. A stopped worker stays openable so its configuration can be read. Each row has \",[\"$\",\"code\",null,{\"children\":\"firstPulseAt\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"lastPulseAt\"}],\". A last pulse older than 5 minutes is stale in the console while the worker is not stopped. The step metric written when this worker finishes a step includes its id. \",[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/jobs.ts\"}],\" sends the job from \",[\"$\",\"code\",null,{\"children\":\"publish\"}],\" and does not take that list as an argument. \",[\"$\",\"code\",null,{\"children\":\"WORKER_TOKEN\"}],\" is the bearer on \",[\"$\",\"code\",null,{\"children\":\"/worker-sessions\"}],\", not the person id.\"]}],\"\\n\"]}]\n"])</script><script>self.__next_f.push([1,"22:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n1e:null\n"])</script><script>self.__next_f.push([1,"20:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Kind\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"25:\"$20:metadata\"\n"])</script></body></html>
|
|
41
|
+
</ol></div><div class="flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden"></div><div class="@container grid gap-4 pb-6 grid-cols-1"></div></article><div id="nd-toc" class="fixed bottom-0 pt-12 pb-2 pr-(--removed-body-scroll-bar-size,0) max-xl:hidden" style="top:calc(var(--fd-banner-height) + var(--fd-nav-height));inset-inline-end:max(var(--fd-layout-offset), calc(50vw - var(--fd-sidebar-width)/2 - var(--fd-page-width)/2))"><div class="flex h-full w-(--fd-toc-width) max-w-full flex-col pe-4"><h3 class="inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide size-4"><path d="M15 18H3"></path><path d="M17 6H3"></path><path d="M21 12H3"></path></svg>On this page</h3><div class="relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3"><div role="none" class="absolute top-(--fd-top) h-(--fd-height) w-px bg-fd-primary transition-all"></div><div class="flex flex-col border-s border-fd-foreground/10"><a data-active="false" href="#why" class="prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary ps-3">Why</a><a data-active="false" href="#who" class="prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary ps-3">Who</a><a data-active="false" href="#how" class="prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary ps-3">How</a><a data-active="false" href="#getting-started" class="prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary ps-3">Getting started</a></div></div></div></div></div><!--$--><!--/$--></main><script src="/_next/static/chunks/webpack-61a9536d6463a95b.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[2392,[\"392\",\"static/chunks/392-1442f884e5f4da76.js\",\"177\",\"static/chunks/app/layout-9561d9b665946ae8.js\"],\"RootProvider\"]\n3:I[3985,[],\"\"]\n4:I[5989,[],\"\"]\n5:I[72,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"TreeContextProvider\"]\na:I[8083,[],\"\"]\n:HL[\"/_next/static/css/4126bc63349478de.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"737HhkZ7Wr9EhrNDXiT--\",\"p\":\"\",\"c\":[\"\",\"docs\",\"usage\",\"kinds\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"docs\",{\"children\":[[\"slug\",\"usage/kinds\",\"oc\"],{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/4126bc63349478de.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[\"docs\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L5\",null,{\"tree\":{\"$id\":\"root\",\"name\":\"Orchestrator\",\"children\":[{\"$id\":\"index.mdx\",\"type\":\"page\",\"name\":\"Orchestrator\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs\",\"$ref\":{\"file\":\"index.mdx\"}},{\"$id\":\"server.mdx\",\"type\":\"page\",\"name\":\"Server\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/server\",\"$ref\":{\"file\":\"server.mdx\"}},{\"$id\":\"engine.mdx\",\"type\":\"page\",\"name\":\"Engine\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/engine\",\"$ref\":{\"file\":\"engine.mdx\"}},{\"$id\":\"fixture.mdx\",\"type\":\"page\",\"name\":\"Fixture\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/fixture\",\"$ref\":{\"file\":\"fixture.mdx\"}},{\"type\":\"folder\",\"name\":\"Usage\",\"icon\":\"$undefined\",\"root\":\"$undefined\",\"defaultOpen\":\"$undefined\",\"description\":\"$undefined\",\"index\":\"$undefined\",\"children\":[{\"$id\":\"usage/flow.mdx\",\"type\":\"page\",\"name\":\"Flow\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/usage/flow\",\"$ref\":{\"file\":\"usage/flow.mdx\"}},{\"$id\":\"usage/actions.mdx\",\"type\":\"page\",\"name\":\"Actions\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/usage/actions\",\"$ref\":{\"file\":\"usage/actions.mdx\"}},{\"$id\":\"usage/drivers.mdx\",\"type\":\"page\",\"name\":\"Drivers\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/usage/drivers\",\"$ref\":{\"file\":\"usage/drivers.mdx\"}}],\"$id\":\"usage\",\"$ref\":{\"metaFile\":\"usage/meta.json\"}},{\"type\":\"folder\",\"name\":\"Decisions\",\"icon\":\"$undefined\",\"root\":\"$undefined\",\"defaultOpen\":\"$undefined\",\"description\":\"$undefined\",\"index\":\"$undefined\",\"children\":[{\"$id\":\"adr/0001-restricted-process-function.md\",\"type\":\"page\",\"name\":\"The flow is restricted TypeScript, reread from the start\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0001-restricted-process-function\",\"$ref\":{\"file\":\"adr/0001-restricted-process-function.md\"}},{\"$id\":\"adr/0002-entity-key.md\",\"type\":\"page\",\"name\":\"An entity is an organization, a flow, and an identity\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0002-entity-key\",\"$ref\":{\"file\":\"adr/0002-entity-key.md\"}},{\"$id\":\"adr/0003-metrics-apart-from-the-run.md\",\"type\":\"page\",\"name\":\"A metric is apart from the run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0003-metrics-apart-from-the-run\",\"$ref\":{\"file\":\"adr/0003-metrics-apart-from-the-run.md\"}},{\"$id\":\"adr/0004-one-row-per-entity.md\",\"type\":\"page\",\"name\":\"One row per entity\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0004-one-row-per-entity\",\"$ref\":{\"file\":\"adr/0004-one-row-per-entity.md\"}}],\"$id\":\"adr\",\"$ref\":{\"metaFile\":\"adr/meta.json\"}}],\"fallback\":{\"$id\":\"fallback-root-root\",\"name\":\"Docs\",\"children\":[{\"$id\":\"install.md\",\"type\":\"page\",\"name\":\"Install\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/install\",\"$ref\":{\"file\":\"install.md\"}},{\"type\":\"folder\",\"name\":\"Adr\",\"icon\":\"$undefined\",\"root\":\"$undefined\",\"defaultOpen\":\"$undefined\",\"description\":\"$undefined\",\"index\":\"$undefined\",\"children\":[{\"$id\":\"adr/0005-orchestrator-applies-results.md\",\"type\":\"page\",\"name\":\"The orchestrator applies results\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0005-orchestrator-applies-results\",\"$ref\":{\"file\":\"adr/0005-orchestrator-applies-results.md\"}},{\"$id\":\"adr/0006-one-identity-one-entity.md\",\"type\":\"page\",\"name\":\"One identity is one entity\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0006-one-identity-one-entity\",\"$ref\":{\"file\":\"adr/0006-one-identity-one-entity.md\"}},{\"$id\":\"adr/0007-historized-flow-runs.md\",\"type\":\"page\",\"name\":\"A flow run is kept, then only its metric remains\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0007-historized-flow-runs\",\"$ref\":{\"file\":\"adr/0007-historized-flow-runs.md\"}},{\"$id\":\"adr/0008-guard-and-each.md\",\"type\":\"page\",\"name\":\"A flow may guard a result and repeat over elements\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0008-guard-and-each\",\"$ref\":{\"file\":\"adr/0008-guard-and-each.md\"}},{\"$id\":\"adr/0009-transient-files.md\",\"type\":\"page\",\"name\":\"A transient file lives with the flow run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0009-transient-files\",\"$ref\":{\"file\":\"adr/0009-transient-files.md\"}},{\"$id\":\"adr/0010-entity-values-copied-onto-the-run.md\",\"type\":\"page\",\"name\":\"Entity values are copied onto the run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0010-entity-values-copied-onto-the-run\",\"$ref\":{\"file\":\"adr/0010-entity-values-copied-onto-the-run.md\"}},{\"$id\":\"adr/0011-a-diverged-reread-ends-the-run.md\",\"type\":\"page\",\"name\":\"A diverged reread ends the run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0011-a-diverged-reread-ends-the-run\",\"$ref\":{\"file\":\"adr/0011-a-diverged-reread-ends-the-run.md\"}},{\"$id\":\"adr/0012-a-step-name-once-per-run.md\",\"type\":\"page\",\"name\":\"A step name is opened once per run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0012-a-step-name-once-per-run\",\"$ref\":{\"file\":\"adr/0012-a-step-name-once-per-run.md\"}},{\"$id\":\"adr/0013-a-run-does-not-wait-on-its-ancestor.md\",\"type\":\"page\",\"name\":\"A run does not wait on its ancestor\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0013-a-run-does-not-wait-on-its-ancestor\",\"$ref\":{\"file\":\"adr/0013-a-run-does-not-wait-on-its-ancestor.md\"}},{\"$id\":\"adr/0014-a-shared-child-is-claimed-before-its-run.md\",\"type\":\"page\",\"name\":\"A shared child is claimed before its run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0014-a-shared-child-is-claimed-before-its-run\",\"$ref\":{\"file\":\"adr/0014-a-shared-child-is-claimed-before-its-run.md\"}},{\"$id\":\"adr/0015-jobs-and-metrics-leave-with-the-run.md\",\"type\":\"page\",\"name\":\"Jobs and metrics leave with the run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0015-jobs-and-metrics-leave-with-the-run\",\"$ref\":{\"file\":\"adr/0015-jobs-and-metrics-leave-with-the-run.md\"}},{\"$id\":\"adr/0016-one-writer-per-organization.md\",\"type\":\"page\",\"name\":\"One writer per organization\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0016-one-writer-per-organization\",\"$ref\":{\"file\":\"adr/0016-one-writer-per-organization.md\"}},{\"$id\":\"adr/0017-group-judgment.md\",\"type\":\"page\",\"name\":\"A group judges its required members\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0017-group-judgment\",\"$ref\":{\"file\":\"adr/0017-group-judgment.md\"}},{\"$id\":\"adr/0018-replay-copies-files.md\",\"type\":\"page\",\"name\":\"A replay from a step copies the kept files\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0018-replay-copies-files\",\"$ref\":{\"file\":\"adr/0018-replay-copies-files.md\"}},{\"$id\":\"adr/0019-typed-body.md\",\"type\":\"page\",\"name\":\"A typed body sits beside the result envelope\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0019-typed-body\",\"$ref\":{\"file\":\"adr/0019-typed-body.md\"}},{\"$id\":\"adr/0020-rule-on-each-opening.md\",\"type\":\"page\",\"name\":\"Each array of children carries its rule\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0020-rule-on-each-opening\",\"$ref\":{\"file\":\"adr/0020-rule-on-each-opening.md\"}},{\"$id\":\"adr/0021-optional-children.md\",\"type\":\"page\",\"name\":\"Optional children are waited on\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0021-optional-children\",\"$ref\":{\"file\":\"adr/0021-optional-children.md\"}},{\"$id\":\"adr/0022-optional-quota.md\",\"type\":\"page\",\"name\":\"An optional quota lets the parent continue\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0022-optional-quota\",\"$ref\":{\"file\":\"adr/0022-optional-quota.md\"}},{\"$id\":\"adr/0023-sealed-report-returns.md\",\"type\":\"page\",\"name\":\"A sealed report carries each child's return\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0023-sealed-report-returns\",\"$ref\":{\"file\":\"adr/0023-sealed-report-returns.md\"}},{\"$id\":\"adr/0024-one-silence-per-opening.md\",\"type\":\"page\",\"name\":\"An opening gives every child the same silence\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0024-one-silence-per-opening\",\"$ref\":{\"file\":\"adr/0024-one-silence-per-opening.md\"}},{\"$id\":\"adr/0025-environment-variables.md\",\"type\":\"page\",\"name\":\"Variables belong to the environment\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0025-environment-variables\",\"$ref\":{\"file\":\"adr/0025-environment-variables.md\"}},{\"$id\":\"adr/0026-runtime-revision-excludes-platform-and-device.md\",\"type\":\"page\",\"name\":\"A runtime revision excludes platform and device\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0026-runtime-revision-excludes-platform-and-device\",\"$ref\":{\"file\":\"adr/0026-runtime-revision-excludes-platform-and-device.md\"}},{\"$id\":\"adr/0027-one-router-consumes-a-slot.md\",\"type\":\"page\",\"name\":\"One router consumes a slot\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0027-one-router-consumes-a-slot\",\"$ref\":{\"file\":\"adr/0027-one-router-consumes-a-slot.md\"}},{\"$id\":\"adr/0028-caddy-desktop-placement.md\",\"type\":\"page\",\"name\":\"Caddy has a desktop placement\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0028-caddy-desktop-placement\",\"$ref\":{\"file\":\"adr/0028-caddy-desktop-placement.md\"}},{\"$id\":\"adr/0029-registry-client-or-login.md\",\"type\":\"page\",\"name\":\"A registry client certificate or a login\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0029-registry-client-or-login\",\"$ref\":{\"file\":\"adr/0029-registry-client-or-login.md\"}},{\"$id\":\"adr/0030-organization-code-outside-the-repository.md\",\"type\":\"page\",\"name\":\"The fixture checkout may live in the repository\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0030-organization-code-outside-the-repository\",\"$ref\":{\"file\":\"adr/0030-organization-code-outside-the-repository.md\"}},{\"$id\":\"adr/0031-environment-reload.md\",\"type\":\"page\",\"name\":\"A running worker reloads when commanded\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0031-environment-reload\",\"$ref\":{\"file\":\"adr/0031-environment-reload.md\"}},{\"$id\":\"adr/0032-an-orchestrator-fault-stops-the-run.md\",\"type\":\"page\",\"name\":\"An orchestrator fault stops the run\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0032-an-orchestrator-fault-stops-the-run\",\"$ref\":{\"file\":\"adr/0032-an-orchestrator-fault-stops-the-run.md\"}},{\"$id\":\"adr/0033-one-rule-for-children.md\",\"type\":\"page\",\"name\":\"One rule for required and optional children\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/adr/0033-one-rule-for-children\",\"$ref\":{\"file\":\"adr/0033-one-rule-for-children.md\"}}],\"$id\":\"adr\",\"$ref\":\"$undefined\"},{\"type\":\"folder\",\"name\":\"Agents\",\"icon\":\"$undefined\",\"root\":\"$undefined\",\"defaultOpen\":\"$undefined\",\"description\":\"$undefined\",\"index\":\"$undefined\",\"children\":[{\"$id\":\"agents/domain.md\",\"type\":\"page\",\"name\":\"Domain Docs\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/agents/domain\",\"$ref\":{\"file\":\"agents/domain.md\"}}],\"$id\":\"agents\",\"$ref\":\"$undefined\"},{\"type\":\"folder\",\"name\":\"Usage\",\"icon\":\"$undefined\",\"root\":\"$undefined\",\"defaultOpen\":\"$undefined\",\"description\":\"$undefined\",\"index\":\"$undefined\",\"children\":[{\"$id\":\"usage/kinds.mdx\",\"type\":\"page\",\"name\":\"Kind\",\"description\":\"$undefined\",\"icon\":\"$undefined\",\"url\":\"/docs/usage/kinds\",\"$ref\":{\"file\":\"usage/kinds.mdx\"}}],\"$id\":\"usage\",\"$ref\":\"$undefined\"}]}},\"children\":\"$L6\"}]]}],{\"children\":[[\"slug\",\"usage/kinds\",\"oc\"],\"$L7\",{\"children\":[\"__PAGE__\",\"$L8\",{},null,false]},null,false]},null,false]},null,false],\"$L9\",false]],\"m\":\"$undefined\",\"G\":[\"$a\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"b:I[3762,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"NavProvider\"]\nc:I[1550,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"Navbar\"]\nd:I[5794,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"default\"]\ne:I[3222,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SearchToggle\"]\nf:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarTrigger\"]\n10:I[1550,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"LayoutBody\"]\n11:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"Sidebar\"]\n12:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/ch"])</script><script>self.__next_f.push([1,"unks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarContentMobile\"]\n13:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarHeader\"]\n14:I[5599,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"ThemeToggle\"]\n15:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarViewport\"]\n16:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarPageTree\"]\n17:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarFooter\"]\n18:I[1550,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"CollapsibleControl\"]\n19:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarContent\"]\n1a:I[637,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-"])</script><script>self.__next_f.push([1,"d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"SidebarCollapseTrigger\"]\n1b:I[3222,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"841\",\"static/chunks/841-d77ed67838a2d05f.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"763\",\"static/chunks/763-929f6742d84aa5b0.js\",\"499\",\"static/chunks/app/docs/layout-c6dbee584f1de72b.js\"],\"LargeSearchToggle\"]\n1d:I[1204,[],\"OutletBoundary\"]\n1f:I[5197,[],\"AsyncMetadataOutlet\"]\n21:I[1204,[],\"ViewportBoundary\"]\n23:I[1204,[],\"MetadataBoundary\"]\n24:\"$Sreact.suspense\"\n"])</script><script>self.__next_f.push([1,"6:[\"$\",\"$Lb\",null,{\"transparentMode\":\"$undefined\",\"children\":[[\"$\",\"$Lc\",null,{\"className\":\"h-(--fd-nav-height) on-root:[--fd-nav-height:56px] md:on-root:[--fd-nav-height:0px] md:hidden\",\"children\":[[\"$\",\"$Ld\",null,{\"href\":\"/\",\"className\":\"inline-flex items-center gap-2.5 font-semibold\",\"children\":\"Cue\"}],[\"$\",\"div\",null,{\"className\":\"flex-1\",\"children\":\"$undefined\"}],[\"$\",\"$Le\",null,{\"className\":\"p-2\",\"hideIfDisabled\":true}],[\"$\",\"$Lf\",null,{\"className\":\"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground [\u0026_svg]:size-4.5 p-2\",\"children\":[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide\",\"children\":[[[\"$\",\"rect\",\"afitv7\",{\"width\":\"18\",\"height\":\"18\",\"x\":\"3\",\"y\":\"3\",\"rx\":\"2\"}],[\"$\",\"path\",\"fh3hqa\",{\"d\":\"M9 3v18\"}]],\"$undefined\"]}]}]]}],[\"$\",\"$L10\",null,{\"className\":\"md:[\u0026_#nd-page_article]:pt-12 xl:[--fd-toc-width:286px] xl:[\u0026_#nd-page_article]:px-8 md:[--fd-sidebar-width:268px] lg:[--fd-sidebar-width:286px]\",\"children\":[[\"$\",\"$L11\",null,{\"defaultOpenLevel\":\"$undefined\",\"prefetch\":\"$undefined\",\"Mobile\":[\"$\",\"$L12\",null,{\"children\":[[\"$\",\"$L13\",null,{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex text-fd-muted-foreground items-center gap-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex flex-1\",\"children\":[]}],null,[\"$\",\"$L14\",null,{\"className\":\"p-0\",\"mode\":\"$undefined\"}],[\"$\",\"$Lf\",null,{\"className\":\"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground [\u0026_svg]:size-4.5 p-2\",\"children\":[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide\",\"children\":[[[\"$\",\"rect\",\"afitv7\",{\"width\":\"18\",\"height\":\"18\",\"x\":\"3\",\"y\":\"3\",\"rx\":\"2\"}],[\"$\",\"path\",\"fh3hqa\",{\"d\":\"M9 3v18\"}]],\"$undefined\"]}]}]]}],false,\"$undefined\"]}],[\"$\",\"$L15\",null,{\"children\":[[],[\"$\",\"$L16\",null,{\"components\":\"$undefined\"}]]}],[\"$\",\"$L17\",null,{\"className\":\"empty:hidden\",\"children\":\"$undefined\"}]]}],\"Content\":[[\"$\",\"$L18\",null,{}],[\"$\",\"$L19\",null,{\"children\":[[\"$\",\"$L13\",null,{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex\",\"children\":[[\"$\",\"$Ld\",null,{\"href\":\"/\",\"className\":\"inline-flex text-[15px] items-center gap-2.5 font-medium me-auto\",\"children\":\"Cue\"}],\"$undefined\",[\"$\",\"$L1a\",null,{\"className\":\"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [\u0026_svg]:size-4.5 mb-auto text-fd-muted-foreground\",\"children\":[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide\",\"children\":[[[\"$\",\"rect\",\"afitv7\",{\"width\":\"18\",\"height\":\"18\",\"x\":\"3\",\"y\":\"3\",\"rx\":\"2\"}],[\"$\",\"path\",\"fh3hqa\",{\"d\":\"M9 3v18\"}]],\"$undefined\"]}]}]]}],[\"$\",\"$L1b\",null,{\"hideIfDisabled\":true}],false,\"$undefined\"]}],\"$6:props:children:1:props:children:0:props:Mobile:props:children:1\",[\"$\",\"$L17\",null,{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex text-fd-muted-foreground items-center empty:hidden\",\"children\":[false,[],[\"$\",\"$L14\",null,{\"className\":\"ms-auto p-0\",\"mode\":\"$undefined\"}]]}],\"$undefined\"]}]]}]]}],false,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]]}]\n"])</script><script>self.__next_f.push([1,"7:[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]\n8:[\"$\",\"$1\",\"c\",{\"children\":[\"$L1c\",null,[\"$\",\"$L1d\",null,{\"children\":[\"$L1e\",[\"$\",\"$L1f\",null,{\"promise\":\"$@20\"}]]}]]}]\n9:[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L21\",null,{\"children\":\"$L22\"}],null],[\"$\",\"$L23\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$24\",null,{\"fallback\":null,\"children\":\"$L25\"}]}]}]]}]\n"])</script><script>self.__next_f.push([1,"26:I[9879,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"TOCProvider\"]\n27:I[7570,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"PageTOCPopover\"]\n28:I[7570,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"PageTOCPopoverTrigger\"]\n29:I[7570,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"PageTOCPopoverContent\"]\n2a:I[9879,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"TOCScrollArea\"]\n2b:I[9879,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"TOCItems\"]\n2c:I[7570,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"PageBreadcrumb\"]\n"])</script><script>self.__next_f.push([1,"1c:[\"$\",\"$L26\",null,{\"toc\":[{\"depth\":2,\"url\":\"#why\",\"title\":\"Why\"},{\"depth\":2,\"url\":\"#who\",\"title\":\"Who\"},{\"depth\":2,\"url\":\"#how\",\"title\":\"How\"},{\"depth\":2,\"url\":\"#getting-started\",\"title\":\"Getting started\"}],\"single\":\"$undefined\",\"children\":[\"$\",\"div\",null,{\"id\":\"nd-page\",\"className\":\"flex flex-1 w-full mx-auto max-w-(--fd-page-width) pt-(--fd-tocnav-height) pe-(--fd-toc-width)\",\"children\":[[\"$\",\"$L27\",null,{\"children\":[[\"$\",\"$L28\",null,{}],[\"$\",\"$L29\",null,{\"children\":[\"$undefined\",[\"$\",\"$L2a\",null,{\"children\":[\"$\",\"$L2b\",null,{}]}],\"$undefined\"]}]]}],[\"$\",\"article\",null,{\"children\":[[\"$\",\"$L2c\",null,{}],[[\"$\",\"h1\",null,{\"ref\":\"$undefined\",\"children\":\"Kind\",\"className\":\"text-[1.75em] font-semibold\"}],[\"$\",\"div\",null,{\"ref\":\"$undefined\",\"children\":[[\"$\",\"h2\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"why\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#why\",\"className\":\"peer\",\"children\":\"Why\"}],[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100\",\"aria-label\":\"Link to section\",\"children\":[[[\"$\",\"path\",\"1cjeqo\",{\"d\":\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"}],[\"$\",\"path\",\"19qd67\",{\"d\":\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"}]],\"$undefined\"]}]]}],\"\\n\",[\"$\",\"p\",null,{\"children\":\"A kind is the queue a step's job is sent to. A worker pulls one or more kinds. A kind is not a step implementation.\"}],\"\\n\",[\"$\",\"p\",null,{\"children\":[\"The step implementation is the \",[\"$\",\"code\",null,{\"children\":\"run\"}],\" on the bound step. The kind names where the orchestrator sends that step's job. The orchestrator and the worker are separate processes: the orchestrator sends the job, and the worker pulls it and runs the step implementation.\"]}],\"\\n\",[\"$\",\"h2\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"who\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#who\",\"className\":\"peer\",\"children\":\"Who\"}],[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100\",\"aria-label\":\"Link to section\",\"children\":[[[\"$\",\"path\",\"1cjeqo\",{\"d\":\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"}],[\"$\",\"path\",\"19qd67\",{\"d\":\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"}]],\"$undefined\"]}]]}],\"\\n\",[\"$\",\"p\",null,{\"children\":\"You name the kind when you register a bound step for an organization.\"}],\"\\n\",[\"$\",\"p\",null,{\"children\":\"You start a worker when you want that kind pulled.\"}],\"\\n\",[\"$\",\"p\",null,{\"children\":\"A person can read which workers are connected. A person can open the first entity of a flow, replay a flow, replay from a step, resend a job, run a step without applying its result, cancel a run or an open step, and end a validity. The first opening is that request: an open run waits, and inside the validity duration the recorded result is returned.\"}],\"\\n\",[\"$\",\"h2\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"how\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#how\",\"className\":\"peer\",\"children\":\"How\"}],[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100\",\"aria-label\":\"Link to section\",\"children\":[[[\"$\",\"path\",\"1cjeqo\",{\"d\":\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"}],[\"$\",\"path\",\"19qd67\",{\"d\":\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"}]],\"$undefined\"]}]]}],\"\\n\",[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"bindOrganization\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/steps.ts\"}],\" binds each step onto every flow. The kind is \",[\"$\",\"code\",null,{\"children\":\"fixture-\"}],\" plus the step name: \",\"$L2d\",\", \",\"$L2e\",\", \",\"$L2f\",\", \",\"$L30\",\", and \",\"$L31\",\". \",\"$L32\",\" stores each bound step under \",\"$L33\",\". \",\"$L34\",\" calls \",\"$L35\",\" with the organization that exported \",\"$L36\",\". \",\"$L37\",\" and \",\"$L38\",\" stay different fields: \",\"$L39\",\" copies the organization onto the job and reads the kind from the bound step.\"]}],\"\\n\",\"$L3a\",\"\\n\",\"$L3b\",\"\\n\",\"$L3c\",\"\\n\",\"$L3d\",\"\\n\",\"$L3e\",\"\\n\",\"$L3f\",\"\\n\",\"$L40\",\"\\n\",\"$L41\",\"\\n\",\"$L42\",\"\\n\",\"$L43\",\"\\n\",\"$L44\",\"\\n\",\"$L45\",\"\\n\",\"$L46\"],\"className\":\"prose flex-1\"}]],\"$L47\",\"$L48\"],\"className\":\"flex min-w-0 w-full flex-col gap-4 pt-8 px-4 md:px-6 md:mx-auto\"}],\"$L49\"]}]}]\n"])</script><script>self.__next_f.push([1,"5f:I[7570,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"PageFooter\"]\n60:I[7570,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"PageTOC\"]\n61:I[9028,[\"582\",\"static/chunks/582-a2bbe93ce1d4f2d2.js\",\"431\",\"static/chunks/431-9190bbb8a69a0c11.js\",\"799\",\"static/chunks/799-3e7b26a124d7b62f.js\",\"870\",\"static/chunks/app/docs/%5B%5B...slug%5D%5D/page-99dd5f5cdb48d4d8.js\"],\"I18nLabel\"]\n2d:[\"$\",\"code\",null,{\"children\":\"fixture-dwell\"}]\n2e:[\"$\",\"code\",null,{\"children\":\"fixture-stall\"}]\n2f:[\"$\",\"code\",null,{\"children\":\"fixture-miss\"}]\n30:[\"$\",\"code\",null,{\"children\":\"fixture-sprout\"}]\n31:[\"$\",\"code\",null,{\"children\":\"fixture-brood\"}]\n32:[\"$\",\"code\",null,{\"children\":\"fixtureSteps\"}]\n33:[\"$\",\"code\",null,{\"children\":\"flow/step\"}]\n34:[\"$\",\"code\",null,{\"children\":\"seedOrganization\"}]\n35:[\"$\",\"code\",null,{\"children\":\"service.startRun\"}]\n36:[\"$\",\"code\",null,{\"children\":\"catalogSeed\"}]\n37:[\"$\",\"code\",null,{\"children\":\"Job.organization\"}]\n38:[\"$\",\"code\",null,{\"children\":\"BoundStep.kind\"}]\n39:[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}]\n3a:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"pnpm --filter cue-orchestrator serve\"}],\" runs \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/server.ts\"}],\". That file calls \",[\"$\",\"code\",null,{\"children\":\"createBullQueue\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"server.listen\"}],\" on port \",[\"$\",\"code\",null,{\"children\":\"3001\"}],\". The HTTP server does not start a worker: \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" is called from \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/work.ts\"}],\".\"]}]\n3b:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/p"])</script><script>self.__next_f.push([1,"review.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"createMemoryWorkerRegistry\"}],\" and a \",[\"$\",\"code\",null,{\"children\":\"JobQueue\"}],\" whose \",[\"$\",\"code\",null,{\"children\":\"add\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"undefined\"}],\". \",[\"$\",\"code\",null,{\"children\":\"preview.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"server.listen(3001)\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3c:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/jobs.ts\"}],\" copies \",[\"$\",\"code\",null,{\"children\":\"organization\"}],\", \",[\"$\",\"code\",null,{\"children\":\"entity\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"step\"}],\" into \",[\"$\",\"code\",null,{\"children\":\"data\"}],\" before \",[\"$\",\"code\",null,{\"children\":\"queue.add\"}],\", so a job is organization, entity, and step with no secret. \",[\"$\",\"code\",null,{\"children\":\"stepBinding\"}],\" loads the bound step at \",[\"$\",\"code\",null,{\"children\":\"`${flow}/${step}`\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"queue.add\"}],\" receives \",[\"$\",\"code\",null,{\"children\":\"bound.kind\"}],\", so the kind comes from the bound step. \",[\"$\",\"code\",null,{\"children\":\"publish\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/service.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" for every job returned by \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\", \",[\"$\",\"code\",null,{\"children\":\"runJob\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"advance\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3d:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"queueName\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/bull.ts\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"`steps-${kind}`\"}],\", so the Redis queue name is steps plus the kind. \",[\"$\",\"code\",null,{\"children\":\"createBullQueue\"}],\" opens that Redis queue and calls \",[\"$\",\"code\",null,{\"children\":\"queue.add(\\\"step\\\", data, options)\"}],\". \",[\"$\",\"code\",null,{\"children\":\"stepJobOptions\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/jobs.ts\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"{ attempts: 1 }\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createBullQueue\"}],\" sets it as \",[\"$\",\"code\",null,{\"children\":\"defaultJobOptions\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" passes it on each \",[\"$\",\"code\",null,{\"children\":\"queue.add\"}],\", so attempts is 1.\"]}]\n"])</script><script>self.__next_f.push([1,"3e:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"seedOrganization\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\" for each run from an exported \",[\"$\",\"code\",null,{\"children\":\"catalogSeed\"}],\". The fixture does not export one, so \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture seed\"}],\" starts no run. The log line is \",[\"$\",\"code\",null,{\"children\":\"seeded fixture 0 runs\"}],\". \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"publish\"}],\", so a started run's jobs sit on the Redis queue until a worker pulls them. \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" does not call \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3f:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"applySilence\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"packages/engine/src/engine.ts\"}],\" pushes a new job with \",[\"$\",\"code\",null,{\"children\":\"jobFor\"}],\" while the opened step has no result, \",[\"$\",\"code\",null,{\"children\":\"now\"}],\" is at or after \",[\"$\",\"code\",null,{\"children\":\"silenceDueAt\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"resendCount\"}],\" is still under \",[\"$\",\"code\",null,{\"children\":\"maxResends\"}],\". At \",[\"$\",\"code\",null,{\"children\":\"maxResends\"}],\", \",[\"$\",\"code\",null,{\"children\":\"applySilence\"}],\" sets that step's result to \",[\"$\",\"code\",null,{\"children\":\"not_finished\"}],\" and breaks without \",[\"$\",\"code\",null,{\"children\":\"jobs.push\"}],\". \",[\"$\",\"code\",null,{\"children\":\"Service.advance\"}],\" publishes each pushed job through \",[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"queue.add\"}],\": silence stays in the engine, and a resend is a new job. \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/server.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openFixtureService\"}],\", \",[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"server.listen\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"40:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"kindsToStart(declaredKinds(fixtureSteps), requestedKinds(process.argv.slice(2)))\"}],\". \",[\"$\",\"code\",null,{\"children\":\"declaredKinds\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/kinds.ts\"}],\" lists each \",[\"$\",\"code\",null,{\"children\":\"kind\"}],\" on the bound steps once. \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" returns that full list when \",[\"$\",\"code\",null,{\"children\":\"requested.length\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"0\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"[]\"}],\" when the arguments contain no \",[\"$\",\"code\",null,{\"children\":\"--kinds\"}],\" and when the value splits and trims to no names, so an empty \",[\"$\",\"code\",null,{\"children\":\"--kinds\"}],\" starts every declared kind. \",[\"$\",\"code\",null,{\"children\":\"pnpm --filter @ascentstudio/cue-org-fixture work\"}],\" takes that path. \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" throws \",[\"$\",\"code\",null,{\"children\":\"--kinds needs a comma-separated list\"}],\" when \",[\"$\",\"code\",null,{\"children\":\"--kinds\"}],\" is present and the next argument is missing, and that throw is raised while \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" is still computing \",[\"$\",\"code\",null,{\"children\":\"kinds\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"41:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" throws \",[\"$\",\"code\",null,{\"children\":\"`Unknown kind ${kind}`\"}],\" when a requested name is absent from \",[\"$\",\"code\",null,{\"children\":\"declaredKinds\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" before the loop that calls \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\", so an unknown kind throws and starts nothing.\"]}]\n"])</script><script>self.__next_f.push([1,"42:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" splits the \",[\"$\",\"code\",null,{\"children\":\"--kinds\"}],\" value on commas. The loop \",[\"$\",\"code\",null,{\"children\":\"for (const kind of kinds)\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" once per kind in that same process, so several kinds can run in one process. \",[\"$\",\"code\",null,{\"children\":\"bindOrganization\"}],\" sets the kind to \",[\"$\",\"code\",null,{\"children\":\"fixture-\"}],\" plus the step name, so \",[\"$\",\"code\",null,{\"children\":\"declaredKinds(fixtureSteps)\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"fixture-dwell\"}],\", \",[\"$\",\"code\",null,{\"children\":\"fixture-stall\"}],\", \",[\"$\",\"code\",null,{\"children\":\"fixture-miss\"}],\", \",[\"$\",\"code\",null,{\"children\":\"fixture-sprout\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"fixture-brood\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"43:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/bull.ts\"}],\" starts a BullMQ \",[\"$\",\"code\",null,{\"children\":\"Worker\"}],\" on \",[\"$\",\"code\",null,{\"children\":\"queueName(kind)\"}],\" and calls \",[\"$\",\"code\",null,{\"children\":\"run\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"organization\"}],\", \",[\"$\",\"code\",null,{\"children\":\"entity\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"step\"}],\" taken from the job data, so workers pull. \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"readOrganizationSecrets\"}],\" once, then \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\", before \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\". \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" writes each secret into the environment. \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" passes \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\" as that \",[\"$\",\"code\",null,{\"children\":\"run\"}],\". \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\" reads the dispatch packet and calls \",[\"$\",\"code\",null,{\"children\":\"implementation.run\"}],\". The packet has the starting data and the time, and it has no secret. A step implementation reads a name with \",[\"$\",\"code\",null,{\"children\":\"environment\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"failed\"}],\" handler in \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" logs \",[\"$\",\"code\",null,{\"children\":\"step failed\"}],\" with the kind, the BullMQ job id, and the error. A value loaded by \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" is replaced with \",[\"$\",\"code\",null,{\"children\":\"••••\"}],\" in that log.\"]}]\n"])</script><script>self.__next_f.push([1,"44:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"packages/supervisor/src/worker/supervise.ts\"}],\" starts \",[\"$\",\"code\",null,{\"children\":\"packages/supervisor/src/worker/main.ts\"}],\" and keeps the environment from before \",[\"$\",\"code\",null,{\"children\":\"loadRootEnv\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createSupervisor\"}],\" writes \",[\"$\",\"code\",null,{\"children\":\"supervisor watching pid\"}],\" and the child pid. A child that exits \",[\"$\",\"code\",null,{\"children\":\"75\"}],\" is a requested restart: the supervisor writes \",[\"$\",\"code\",null,{\"children\":\"worker restart requested\"}],\" and starts the child again, so it calls \",[\"$\",\"code\",null,{\"children\":\"readOrganizationSecrets\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" once more. A child that exits \",[\"$\",\"code\",null,{\"children\":\"0\"}],\" is a requested stop: the supervisor writes \",[\"$\",\"code\",null,{\"children\":\"worker stopped\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"supervisor exiting\"}],\", then calls \",[\"$\",\"code\",null,{\"children\":\"process.exit(0)\"}],\". A child that exits with another code, or with a signal, is unexpected: the supervisor writes \",[\"$\",\"code\",null,{\"children\":\"worker exited\"}],\" plus that code or signal and \",[\"$\",\"code\",null,{\"children\":\"restarting\"}],\", waits one second, and starts the child again. \",[\"$\",\"code\",null,{\"children\":\"SIGINT\"}],\", \",[\"$\",\"code\",null,{\"children\":\"SIGTERM\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"SIGQUIT\"}],\" are stop signals. The supervisor writes \",[\"$\",\"code\",null,{\"children\":\"supervisor forwarding\"}],\" plus the signal name, forwards that signal, and does not start another child when that child exits. \",[\"$\",\"code\",null,{\"children\":\"SIGHUP\"}],\" is forwarded the same way and is a restart: the child exits \",[\"$\",\"code\",null,{\"children\":\"75\"}],\". \",[\"$\",\"code\",null,{\"children\":\"SIGTERM\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"SIGINT\"}],\" ask that child to stop accepting jobs and exit \",[\"$\",\"code\",null,{\"children\":\"0\"}],\" after the current job. \",[\"$\",\"code\",null,{\"children\":\"SIGQUIT\"}],\" closes the BullMQ workers without waiting and exits \",[\"$\",\"code\",null,{\"children\":\"0\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createShutdown\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/worker-control.ts\"}],\" is that sequence. The worker writes \",[\"$\",\"code\",null,{\"children\":\"worker command\"}],\" plus \",[\"$\",\"code\",null,{\"children\":\"drain-stop\"}],\", \",[\"$\",\"code\",null,{\"children\":\"drain-restart\"}],\", or \",[\"$\",\"code\",null,{\"children\":\"force-stop\"}],\" when it takes the command, and \",[\"$\",\"code\",null,{\"children\":\"worker exit\"}],\" plus \",[\"$\",\"code\",null,{\"children\":\"0\"}],\" or \",[\"$\",\"code\",null,{\"children\":\"75\"}],\" before \",[\"$\",\"code\",null,{\"children\":\"process.exit\"}],\". Each BullMQ worker is closed with \",[\"$\",\"code\",null,{\"children\":\"close(true)\"}],\". A command stored for the worker runs the same sequence. \",[\"$\",\"code\",null,{\"children\":\"publish\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" with the jobs from the engine, so a worker session is not a condition for opening a step. \",[\"$\",\"code\",null,{\"children\":\"WorkerService\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"packages/supervisor/src/worker/worker.service.ts\"}],\" starts each kind with \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"45:[\"$\",\"h2\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"getting-started\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#getting-started\",\"className\":\"peer\",\"children\":\"Getting started\"}],[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100\",\"aria-label\":\"Link to section\",\"children\":[[[\"$\",\"path\",\"1cjeqo\",{\"d\":\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"}],[\"$\",\"path\",\"19qd67\",{\"d\":\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"}]],\"$undefined\"]}]]}]\n"])</script><script>self.__next_f.push([1,"46:[\"$\",\"ol\",null,{\"children\":[\"\\n\",[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"Copy \",[\"$\",\"code\",null,{\"children\":\".env.example\"}],\" to \",[\"$\",\"code\",null,{\"children\":\".env\"}],\" in the repository root, and start Redis and Supabase with \",[\"$\",\"code\",null,{\"children\":\"docker compose up -d redis\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"npx supabase start\"}],\". \",[\"$\",\"code\",null,{\"children\":\"loadRootEnv\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/env.ts\"}],\" reads that \",[\"$\",\"code\",null,{\"children\":\".env\"}],\". \",[\"$\",\"code\",null,{\"children\":\"requiredEnv\"}],\" in the same file reads \",[\"$\",\"code\",null,{\"children\":\"REDIS_URL\"}],\", \",[\"$\",\"code\",null,{\"children\":\"DATABASE_URL\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"WORKER_TOKEN\"}],\", and throws \",[\"$\",\"code\",null,{\"children\":\"$${name} is required\"}],\" when a name is missing. \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/server.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"loadRootEnv\"}],\" inside \",[\"$\",\"code\",null,{\"children\":\"openFixtureService\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"requiredEnv(\\\"WORKER_TOKEN\\\")\"}],\". \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"loadRootEnv\"}],\", reads \",[\"$\",\"code\",null,{\"children\":\"WORKER_TOKEN\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"readOrganizationSecrets\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"DATABASE_URL\"}],\" and organization \",[\"$\",\"code\",null,{\"children\":\"fixture\"}],\". That reads the secrets table once. \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" writes those names into the environment.\"]}],\"\\n\"]}],\"\\n\",[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"Run \",[\"$\",\"code\",null,{\"children\":\"pnpm --filter cue-orchestrator serve\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"serve\"}],\" script in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/package.json\"}],\" runs \",[\"$\",\"code\",null,{\"children\":\"tsx src/server.ts\"}],\". \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openFixtureService\"}],\", which calls \",[\"$\",\"code\",null,{\"children\":\"createBullQueue\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"REDIS_URL\"}],\". \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" then calls \",[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"server.listen(3001, \\\"0.0.0.0\\\")\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"console.log\"}],\" prints \",[\"$\",\"code\",null,{\"children\":\"orchestrator http://127.0.0.1:3001\"}],\". The HTTP server does not start a worker and does not call \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" runs from \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/work.ts\"}],\". Stop the preview process first when it is already on port \",[\"$\",\"code\",null,{\"children\":\"3001\"}],\", because \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/preview.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"server.listen(3001)\"}],\".\"]}],\"\\n\"]}],\"\\n\",[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"In a second terminal, run \",[\"$\",\"code\",null,{\"children\":\"pnpm --filter cue-supervisor work\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"work\"}],\" script in \",[\"$\",\"code\",null,{\"children\":\"packages/supervisor/package.json\"}],\" runs \",[\"$\",\"code\",null,{\"children\":\"tsx src/main.ts\"}],\". \",[\"$\",\"code\",null,{\"children\":\"packages/supervisor/src/worker/supervise.ts\"}],\" starts \",[\"$\",\"code\",null,{\"children\":\"main.ts\"}],\" with the environment it had at launch. \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"declaredKinds(fixtureSteps)\"}],\" and the list from \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\". With no \",[\"$\",\"code\",null,{\"children\":\"--kinds\"}],\", \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"[]\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" returns every declared kind. \",[\"$\",\"code\",null,{\"children\":\"readOrganizationSecrets\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" then load the organization's secrets into the environment. \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" reads \",[\"$\",\"code\",null,{\"children\":\"WORKER_TOKEN\"}],\" before \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" and posts \",[\"$\",\"code\",null,{\"children\":\"/worker-sessions\"}],\" with that bearer, the host, and each started \",\"$L4a\",\". The loop calls \",\"$L4b\",\" for each kind. A secret added or deleted after this start stays out of the environment until the worker starts again. \",\"$L4c\",\" is that start: the child exits \",\"$L4d\",\", the supervisor writes \",\"$L4e\",\", and starts it again. A child that exits \",\"$L4f\",\" makes the supervisor write \",\"$L50\",\" and \",\"$L51\",\", then exit. A child that exits with another code or a signal is started again after one second. \",\"$L52\",\" in \",\"$L53\",\" prints \",\"$L54\",\" plus those kind names joined by commas. Those kinds are \",\"$L55\",\", \",\"$L56\",\", \",\"$L57\",\", \",\"$L58\",\", and \",\"$L59\",\". \",\"$L5a\",\" does not call \",\"$L5b\",\".\"]}],\"\\n\"]}],\"\\n\",\"$L5c\",\"\\n\",\"$L5d\",\"\\n\",\"$L5e\",\"\\n\"]}]\n"])</script><script>self.__next_f.push([1,"47:[\"$\",\"div\",null,{\"className\":\"flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden\",\"children\":[\"$undefined\",\"$undefined\"]}]\n48:[\"$\",\"$L5f\",null,{\"items\":\"$undefined\"}]\n49:[\"$\",\"$L60\",null,{\"children\":[\"$undefined\",[\"$\",\"h3\",null,{\"className\":\"inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground\",\"children\":[[\"$\",\"svg\",null,{\"ref\":\"$undefined\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":24,\"height\":24,\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":2,\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"className\":\"lucide size-4\",\"children\":[[[\"$\",\"path\",\"olowqp\",{\"d\":\"M15 18H3\"}],[\"$\",\"path\",\"16j9eg\",{\"d\":\"M17 6H3\"}],[\"$\",\"path\",\"2avoz0\",{\"d\":\"M21 12H3\"}]],\"$undefined\"]}],[\"$\",\"$L61\",null,{\"label\":\"toc\"}]]}],[\"$\",\"$L2a\",null,{\"children\":[\"$\",\"$L2b\",null,{}]}],\"$undefined\"]}]\n"])</script><script>self.__next_f.push([1,"4a:[\"$\",\"code\",null,{\"children\":\"flow/step\"}]\n4b:[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}]\n4c:[\"$\",\"code\",null,{\"children\":\"SIGHUP\"}]\n4d:[\"$\",\"code\",null,{\"children\":\"75\"}]\n4e:[\"$\",\"code\",null,{\"children\":\"worker restart requested\"}]\n4f:[\"$\",\"code\",null,{\"children\":\"0\"}]\n50:[\"$\",\"code\",null,{\"children\":\"worker stopped\"}]\n51:[\"$\",\"code\",null,{\"children\":\"supervisor exiting\"}]\n52:[\"$\",\"code\",null,{\"children\":\"console.log\"}]\n53:[\"$\",\"code\",null,{\"children\":\"work.ts\"}]\n54:[\"$\",\"code\",null,{\"children\":\"fixture workers\"}]\n55:[\"$\",\"code\",null,{\"children\":\"fixture-dwell\"}]\n56:[\"$\",\"code\",null,{\"children\":\"fixture-stall\"}]\n57:[\"$\",\"code\",null,{\"children\":\"fixture-miss\"}]\n58:[\"$\",\"code\",null,{\"children\":\"fixture-sprout\"}]\n59:[\"$\",\"code\",null,{\"children\":\"fixture-brood\"}]\n5a:[\"$\",\"code\",null,{\"children\":\"work.ts\"}]\n5b:[\"$\",\"code\",null,{\"children\":\"catalogSeed\"}]\n"])</script><script>self.__next_f.push([1,"5c:[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"Run \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture seed\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"seed\"}],\" script in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/package.json\"}],\" runs \",[\"$\",\"code\",null,{\"children\":\"cue seed\"}],\". The fixture does not export \",[\"$\",\"code\",null,{\"children\":\"catalogSeed\"}],\", so the command opens nothing and the log line is \",[\"$\",\"code\",null,{\"children\":\"seeded fixture 0 runs\"}],\". Load runs start with \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture perf\"}],\", \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture perf:load\"}],\", \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture perf:brood\"}],\", or \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture perf:brood:producer\"}],\". \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture reset\"}],\" deletes the fixture rows in the orchestrator database, drains the jobs for those runs, and deletes that organization's metrics. The log line is \",[\"$\",\"code\",null,{\"children\":\"reset fixture\"}],\".\"]}],\"\\n\"]}]\n"])</script><script>self.__next_f.push([1,"5d:[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"To pull one kind, run \",[\"$\",\"code\",null,{\"children\":\"pnpm --filter @ascentstudio/cue-org-fixture work -- --kinds fixture-dwell\"}],\". \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" reads \",[\"$\",\"code\",null,{\"children\":\"fixture-dwell\"}],\" and splits on commas. \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" keeps \",[\"$\",\"code\",null,{\"children\":\"fixture-dwell\"}],\" because \",[\"$\",\"code\",null,{\"children\":\"declaredKinds\"}],\" lists that kind from \",[\"$\",\"code\",null,{\"children\":\"bindOrganization\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" starts it. When \",[\"$\",\"code\",null,{\"children\":\"declaredKinds\"}],\" lists more than one kind, put those names in the same comma-separated value: \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" splits on commas, and the loop calls \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" for each of them in this process. A name missing from \",[\"$\",\"code\",null,{\"children\":\"declaredKinds\"}],\" makes \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\" throw \",[\"$\",\"code\",null,{\"children\":\"Unknown kind\"}],\" plus that name before \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\". A \",[\"$\",\"code\",null,{\"children\":\"--kinds\"}],\" flag with no value makes \",[\"$\",\"code\",null,{\"children\":\"requestedKinds\"}],\" throw \",[\"$\",\"code\",null,{\"children\":\"--kinds needs a comma-separated list\"}],\" before \",[\"$\",\"code\",null,{\"children\":\"kindsToStart\"}],\".\"]}],\"\\n\"]}]\n"])</script><script>self.__next_f.push([1,"5e:[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"Open Workers in the console for the fixture organization, or call \",[\"$\",\"code\",null,{\"children\":\"GET /organizations/fixture/workers\"}],\" at \",[\"$\",\"code\",null,{\"children\":\"http://127.0.0.1:3001/organizations/fixture/workers\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"Authorization: Bearer\"}],\" and a person id. The resolver in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/server.ts\"}],\" returns the text after \",[\"$\",\"code\",null,{\"children\":\"Bearer \"}],\", and \",[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\" then returns \",[\"$\",\"code\",null,{\"children\":\"service.workersFor\"}],\". One working call is \",[\"$\",\"code\",null,{\"children\":\"curl -H \\\"Authorization: Bearer person-1\\\" http://127.0.0.1:3001/organizations/fixture/workers\"}],\". The body is the workers whose coverage names a flow of that organization. The rows are in the \",[\"$\",\"code\",null,{\"children\":\"workers\"}],\" table. \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openWorkerPresence\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"DATABASE_URL\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"presence.pulse\"}],\" updates \",[\"$\",\"code\",null,{\"children\":\"last_pulse_at\"}],\". \",[\"$\",\"code\",null,{\"children\":\"first_pulse_at\"}],\" stays at the time the row was created. \",[\"$\",\"code\",null,{\"children\":\"workerPresenceTtlSeconds\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/workers.ts\"}],\" is 30, so a process that stops reporting is marked stopped after that many seconds. A planned stop calls \",[\"$\",\"code\",null,{\"children\":\"presence.stop\"}],\", which sets the phase to stopped and keeps the row. \",[\"$\",\"code\",null,{\"children\":\"workerRetentionSeconds\"}],\" is 30 days, and a stopped row is deleted after that long. A stopped worker stays openable so its configuration can be read. Each row has \",[\"$\",\"code\",null,{\"children\":\"firstPulseAt\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"lastPulseAt\"}],\". A last pulse older than 5 minutes is stale in the console while the worker is not stopped. The step metric written when this worker finishes a step includes its id. \",[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/jobs.ts\"}],\" sends the job from \",[\"$\",\"code\",null,{\"children\":\"publish\"}],\" and does not take that list as an argument. \",[\"$\",\"code\",null,{\"children\":\"WORKER_TOKEN\"}],\" is the bearer on \",[\"$\",\"code\",null,{\"children\":\"/worker-sessions\"}],\", not the person id.\"]}],\"\\n\"]}]\n"])</script><script>self.__next_f.push([1,"22:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n1e:null\n"])</script><script>self.__next_f.push([1,"20:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Kind\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"25:\"$20:metadata\"\n"])</script></body></html>
|