@ascentstudio/cue-docs 0.0.4 → 0.0.5

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.
Files changed (101) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +2 -2
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/server/app/_not-found.html +1 -1
  5. package/.next/server/app/_not-found.rsc +1 -1
  6. package/.next/server/app/docs/[[...slug]]/page.js +1 -1
  7. package/.next/server/app/docs/adr/0001-restricted-process-function.html +2 -2
  8. package/.next/server/app/docs/adr/0001-restricted-process-function.rsc +1 -1
  9. package/.next/server/app/docs/adr/0002-entity-key.html +2 -2
  10. package/.next/server/app/docs/adr/0002-entity-key.rsc +1 -1
  11. package/.next/server/app/docs/adr/0003-metrics-apart-from-the-run.html +2 -2
  12. package/.next/server/app/docs/adr/0003-metrics-apart-from-the-run.rsc +1 -1
  13. package/.next/server/app/docs/adr/0004-one-row-per-entity.html +2 -2
  14. package/.next/server/app/docs/adr/0004-one-row-per-entity.rsc +1 -1
  15. package/.next/server/app/docs/adr/0005-orchestrator-applies-results.html +2 -2
  16. package/.next/server/app/docs/adr/0005-orchestrator-applies-results.rsc +1 -1
  17. package/.next/server/app/docs/adr/0006-one-identity-one-entity.html +2 -2
  18. package/.next/server/app/docs/adr/0006-one-identity-one-entity.rsc +1 -1
  19. package/.next/server/app/docs/adr/0007-historized-flow-runs.html +2 -2
  20. package/.next/server/app/docs/adr/0007-historized-flow-runs.rsc +1 -1
  21. package/.next/server/app/docs/adr/0008-guard-and-each.html +2 -2
  22. package/.next/server/app/docs/adr/0008-guard-and-each.rsc +1 -1
  23. package/.next/server/app/docs/adr/0009-transient-files.html +2 -2
  24. package/.next/server/app/docs/adr/0009-transient-files.rsc +1 -1
  25. package/.next/server/app/docs/adr/0010-entity-values-copied-onto-the-run.html +2 -2
  26. package/.next/server/app/docs/adr/0010-entity-values-copied-onto-the-run.rsc +1 -1
  27. package/.next/server/app/docs/adr/0011-a-diverged-reread-ends-the-run.html +2 -2
  28. package/.next/server/app/docs/adr/0011-a-diverged-reread-ends-the-run.rsc +1 -1
  29. package/.next/server/app/docs/adr/0012-a-step-name-once-per-run.html +2 -2
  30. package/.next/server/app/docs/adr/0012-a-step-name-once-per-run.rsc +1 -1
  31. package/.next/server/app/docs/adr/0013-a-run-does-not-wait-on-its-ancestor.html +2 -2
  32. package/.next/server/app/docs/adr/0013-a-run-does-not-wait-on-its-ancestor.rsc +1 -1
  33. package/.next/server/app/docs/adr/0014-a-shared-child-is-claimed-before-its-run.html +2 -2
  34. package/.next/server/app/docs/adr/0014-a-shared-child-is-claimed-before-its-run.rsc +1 -1
  35. package/.next/server/app/docs/adr/0015-jobs-and-metrics-leave-with-the-run.html +2 -2
  36. package/.next/server/app/docs/adr/0015-jobs-and-metrics-leave-with-the-run.rsc +1 -1
  37. package/.next/server/app/docs/adr/0016-one-writer-per-organization.html +2 -2
  38. package/.next/server/app/docs/adr/0016-one-writer-per-organization.rsc +1 -1
  39. package/.next/server/app/docs/adr/0017-group-judgment.html +2 -2
  40. package/.next/server/app/docs/adr/0017-group-judgment.rsc +1 -1
  41. package/.next/server/app/docs/adr/0018-replay-copies-files.html +2 -2
  42. package/.next/server/app/docs/adr/0018-replay-copies-files.rsc +1 -1
  43. package/.next/server/app/docs/adr/0019-typed-body.html +2 -2
  44. package/.next/server/app/docs/adr/0019-typed-body.rsc +1 -1
  45. package/.next/server/app/docs/adr/0020-rule-on-each-opening.html +2 -2
  46. package/.next/server/app/docs/adr/0020-rule-on-each-opening.rsc +1 -1
  47. package/.next/server/app/docs/adr/0021-optional-children.html +2 -2
  48. package/.next/server/app/docs/adr/0021-optional-children.rsc +1 -1
  49. package/.next/server/app/docs/adr/0022-optional-quota.html +2 -2
  50. package/.next/server/app/docs/adr/0022-optional-quota.rsc +1 -1
  51. package/.next/server/app/docs/adr/0023-sealed-report-returns.html +2 -2
  52. package/.next/server/app/docs/adr/0023-sealed-report-returns.rsc +1 -1
  53. package/.next/server/app/docs/adr/0024-one-silence-per-opening.html +2 -2
  54. package/.next/server/app/docs/adr/0024-one-silence-per-opening.rsc +1 -1
  55. package/.next/server/app/docs/adr/0025-environment-variables.html +2 -2
  56. package/.next/server/app/docs/adr/0025-environment-variables.rsc +1 -1
  57. package/.next/server/app/docs/adr/0026-runtime-revision-excludes-platform-and-device.html +2 -2
  58. package/.next/server/app/docs/adr/0026-runtime-revision-excludes-platform-and-device.rsc +1 -1
  59. package/.next/server/app/docs/adr/0027-one-router-consumes-a-slot.html +2 -2
  60. package/.next/server/app/docs/adr/0027-one-router-consumes-a-slot.rsc +1 -1
  61. package/.next/server/app/docs/adr/0028-caddy-desktop-placement.html +2 -2
  62. package/.next/server/app/docs/adr/0028-caddy-desktop-placement.rsc +1 -1
  63. package/.next/server/app/docs/adr/0029-registry-client-or-login.html +2 -2
  64. package/.next/server/app/docs/adr/0029-registry-client-or-login.rsc +1 -1
  65. package/.next/server/app/docs/adr/0030-organization-code-outside-the-repository.html +2 -2
  66. package/.next/server/app/docs/adr/0030-organization-code-outside-the-repository.rsc +1 -1
  67. package/.next/server/app/docs/adr/0031-environment-reload.html +2 -2
  68. package/.next/server/app/docs/adr/0031-environment-reload.rsc +1 -1
  69. package/.next/server/app/docs/adr/0032-an-orchestrator-fault-stops-the-run.html +2 -2
  70. package/.next/server/app/docs/adr/0032-an-orchestrator-fault-stops-the-run.rsc +1 -1
  71. package/.next/server/app/docs/adr/0033-one-rule-for-children.html +2 -2
  72. package/.next/server/app/docs/adr/0033-one-rule-for-children.rsc +1 -1
  73. package/.next/server/app/docs/agents/domain.html +2 -2
  74. package/.next/server/app/docs/agents/domain.rsc +1 -1
  75. package/.next/server/app/docs/engine.html +2 -2
  76. package/.next/server/app/docs/engine.rsc +1 -1
  77. package/.next/server/app/docs/fixture.html +2 -2
  78. package/.next/server/app/docs/fixture.rsc +1 -1
  79. package/.next/server/app/docs/install.html +5 -5
  80. package/.next/server/app/docs/install.rsc +4 -4
  81. package/.next/server/app/docs/server.html +18 -9
  82. package/.next/server/app/docs/server.rsc +47 -38
  83. package/.next/server/app/docs/usage/actions.html +2 -2
  84. package/.next/server/app/docs/usage/actions.rsc +1 -1
  85. package/.next/server/app/docs/usage/drivers.html +2 -2
  86. package/.next/server/app/docs/usage/drivers.rsc +1 -1
  87. package/.next/server/app/docs/usage/flow.html +2 -2
  88. package/.next/server/app/docs/usage/flow.rsc +1 -1
  89. package/.next/server/app/docs/usage/kinds.html +2 -2
  90. package/.next/server/app/docs/usage/kinds.rsc +1 -1
  91. package/.next/server/app/docs.html +2 -2
  92. package/.next/server/app/docs.rsc +1 -1
  93. package/.next/server/app/index.html +1 -1
  94. package/.next/server/app/index.rsc +1 -1
  95. package/.next/server/pages/404.html +1 -1
  96. package/.next/server/pages/500.html +1 -1
  97. package/.next/server/server-reference-manifest.json +1 -1
  98. package/.next/trace +15 -15
  99. package/package.json +1 -1
  100. /package/.next/static/{737HhkZ7Wr9EhrNDXiT-- → De1P3ZUMhERQ6TwOXYlnp}/_buildManifest.js +0 -0
  101. /package/.next/static/{737HhkZ7Wr9EhrNDXiT-- → De1P3ZUMhERQ6TwOXYlnp}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
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>Flow</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 [&amp;_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 [&amp;_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:[&amp;_#nd-page_article]:pt-12 xl:[--fd-toc-width:286px] xl:[&amp;_#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 [&amp;_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 [&amp;_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 [&amp;_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] [&amp;_svg]:size-4 [&amp;_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] [&amp;_svg]:size-4 [&amp;_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] [&amp;_svg]:size-4 [&amp;_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] [&amp;_svg]:size-4 [&amp;_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="open"><button type="button" aria-controls="radix-_R_1d6j9flb_" aria-expanded="true" data-state="open" 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] [&amp;_svg]:size-4 [&amp;_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" data-icon="true"><path d="m6 9 6 6 6-6"></path></svg></button><div data-state="open" id="radix-_R_1d6j9flb_" class="overflow-hidden relative before:content-[&#x27;&#x27;] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5 **:data-[active=true]:before:content-[&#x27;&#x27;] **: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)"><a data-active="true" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start [overflow-wrap:anywhere] [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 bg-fd-primary/10 text-fd-primary" href="/docs/usage/flow">Flow</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] [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none" href="/docs/usage/actions">Actions</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] [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none" href="/docs/usage/drivers">Drivers</a></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] [&amp;_svg]:size-4 [&amp;_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-[&#x27;&#x27;] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5 **:data-[active=true]:before:content-[&#x27;&#x27;] **: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 [&amp;_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">Flow</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">Flow</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><!--De1P3ZUMhERQ6TwOXYlnp--><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>Flow</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 [&amp;_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 [&amp;_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:[&amp;_#nd-page_article]:pt-12 xl:[--fd-toc-width:286px] xl:[&amp;_#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 [&amp;_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 [&amp;_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 [&amp;_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] [&amp;_svg]:size-4 [&amp;_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] [&amp;_svg]:size-4 [&amp;_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] [&amp;_svg]:size-4 [&amp;_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] [&amp;_svg]:size-4 [&amp;_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="open"><button type="button" aria-controls="radix-_R_1d6j9flb_" aria-expanded="true" data-state="open" 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] [&amp;_svg]:size-4 [&amp;_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" data-icon="true"><path d="m6 9 6 6 6-6"></path></svg></button><div data-state="open" id="radix-_R_1d6j9flb_" class="overflow-hidden relative before:content-[&#x27;&#x27;] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5 **:data-[active=true]:before:content-[&#x27;&#x27;] **: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)"><a data-active="true" class="relative flex flex-row items-center gap-2 rounded-lg p-2 ps-(--sidebar-item-offset) text-start [overflow-wrap:anywhere] [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 bg-fd-primary/10 text-fd-primary" href="/docs/usage/flow">Flow</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] [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none" href="/docs/usage/actions">Actions</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] [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none" href="/docs/usage/drivers">Drivers</a></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] [&amp;_svg]:size-4 [&amp;_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-[&#x27;&#x27;] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5 **:data-[active=true]:before:content-[&#x27;&#x27;] **: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 [&amp;_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">Flow</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">Flow</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 flow is the restricted function that describes what an entity does, with one validity duration for every entity of that flow. A step is an opening in that function. The step implementation is the code outside the flow that performs the step.</p>
3
3
  <p>The current flow run stays available for the next reread. A flow metric is the retained end of a finished flow run. A step metric is the retained end of a finished step run. A person reads those ends over a period. A running flow run is not a metric.</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>
@@ -69,4 +69,4 @@
69
69
  <li>
70
70
  <p>In a fourth terminal, run <code>pnpm --filter cue-console dev</code>. The <code>dev</code> script in <code>apps/console/package.json</code> runs <code>next dev</code>. Open the URL that command prints, at <code>/login</code>. <code>LoginForm</code> calls <code>signInWithPassword</code> for the Sign in button. The person inserted in <code>deploy/supabase/seed.sql</code> has email <code>pierre@ascent-studio.fr</code>, and the comment there says the password is that same string. <code>on_auth_user_created</code> calls <code>join_fixture</code>, which inserts a membership for organization <code>fixture</code>. After sign-in, <code>LoginForm</code> pushes <code>/</code>. Open <code>/organizations/fixture/flows</code>. <code>FlowsPage</code> renders <code>FlowsView</code> with the title <code>Flows</code>. Click a row. <code>FlowsRoute</code> opens <code>/organizations/fixture/flows/</code> plus that flow name. Press Start, enter the identity and the payload, and the console opens <code>/entities/</code> plus the organization, the flow, and the identity.</p>
71
71
  </li>
72
- </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-2"><a class="flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full" href="/docs/fixture"><div class="inline-flex items-center gap-1.5 font-medium"><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 -mx-1 size-4 shrink-0 rtl:rotate-180"><path d="m15 18-6-6 6-6"></path></svg><p>Fixture</p></div><p class="text-fd-muted-foreground truncate">Previous Page</p></a><a class="flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full text-end" href="/docs/usage/actions"><div class="inline-flex items-center gap-1.5 font-medium flex-row-reverse"><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 -mx-1 size-4 shrink-0 rtl:rotate-180"><path d="m9 18 6-6-6-6"></path></svg><p>Actions</p></div><p class="text-fd-muted-foreground truncate">Next Page</p></a></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="#the-function" 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-6">The function</a><a data-active="false" href="#openings" 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-6">Openings</a><a data-active="false" href="#groups-children-and-choice" 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-6">Groups, children, and choice</a><a data-active="false" href="#registration-and-the-step-implementation" 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-6">Registration and the step implementation</a><a data-active="false" href="#the-run" 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-6">The run</a><a data-active="false" href="#transient-files" 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-6">Transient files</a><a data-active="false" href="#postgres-and-clickhouse" 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-6">Postgres and ClickHouse</a><a data-active="false" href="#the-flows-screen" 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-6">The Flows screen</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\",\"flow\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"docs\",{\"children\":[[\"slug\",\"usage/flow\",\"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/flow\",\"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\":3,\"url\":\"#the-function\",\"title\":\"The function\"},{\"depth\":3,\"url\":\"#openings\",\"title\":\"Openings\"},{\"depth\":3,\"url\":\"#groups-children-and-choice\",\"title\":\"Groups, children, and choice\"},{\"depth\":3,\"url\":\"#registration-and-the-step-implementation\",\"title\":\"Registration and the step implementation\"},{\"depth\":3,\"url\":\"#the-run\",\"title\":\"The run\"},{\"depth\":3,\"url\":\"#transient-files\",\"title\":\"Transient files\"},{\"depth\":3,\"url\":\"#postgres-and-clickhouse\",\"title\":\"Postgres and ClickHouse\"},{\"depth\":3,\"url\":\"#the-flows-screen\",\"title\":\"The Flows screen\"},{\"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\":\"Flow\",\"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 flow is the restricted function that describes what an entity does, with one validity duration for every entity of that flow. A step is an opening in that function. The step implementation is the code outside the flow that performs the step.\"}],\"\\n\",[\"$\",\"p\",null,{\"children\":\"The current flow run stays available for the next reread. A flow metric is the retained end of a finished flow run. A step metric is the retained end of a finished step run. A person reads those ends over a period. A running flow run is not a metric.\"}],\"\\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 write a flow when you add one to an organization. \",[\"$\",\"code\",null,{\"children\":\"flows\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"fixtureFlows\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/index.ts\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"fixtureSteps\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/steps.ts\"}],\", are the registrations to copy.\"]}],\"\\n\",[\"$\",\"p\",null,{\"children\":\"A person reads Flows in the console. 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. On a stored flow run the console lists that run's transient files.\"}],\"\\n\",\"$L2d\",\"\\n\",\"$L2e\",\"\\n\",\"$L2f\",\"\\n\",\"$L30\",\"\\n\",\"$L31\",\"\\n\",\"$L32\",\"\\n\",\"$L33\",\"\\n\",\"$L34\",\"\\n\",\"$L35\",\"\\n\",\"$L36\",\"\\n\",\"$L37\",\"\\n\",\"$L38\",\"\\n\",\"$L39\",\"\\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\",\"\\n\",\"$L47\",\"\\n\",\"$L48\",\"\\n\",\"$L49\",\"\\n\",\"$L4a\",\"\\n\",\"$L4b\",\"\\n\",\"$L4c\",\"\\n\",\"$L4d\",\"\\n\",\"$L4e\",\"\\n\",\"$L4f\",\"\\n\",\"$L50\",\"\\n\",\"$L51\",\"\\n\",\"$L52\",\"\\n\",\"$L53\",\"\\n\",\"$L54\",\"\\n\",\"$L55\",\"\\n\",\"$L56\",\"\\n\",\"$L57\",\"\\n\",\"$L58\"],\"className\":\"prose flex-1\"}]],\"$L59\",\"$L5a\"],\"className\":\"flex min-w-0 w-full flex-col gap-4 pt-8 px-4 md:px-6 md:mx-auto\"}],\"$L5b\"]}]}]\n"])</script><script>self.__next_f.push([1,"68: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\"]\n69: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\"]\n6a: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\"]\n"])</script><script>self.__next_f.push([1,"2d:[\"$\",\"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"])</script><script>self.__next_f.push([1,"2e:[\"$\",\"p\",null,{\"children\":\"You meet the function, then the openings it calls, then the registration, then the run the orchestrator keeps, then the Flows screen.\"}]\n"])</script><script>self.__next_f.push([1,"2f:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"the-function\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#the-function\",\"className\":\"peer\",\"children\":\"The function\"}],[\"$\",\"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,"30:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"FlowFunction\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"packages/contract/src/index.ts\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"(ctx: FlowContext) =\u003e void\"}],\". \",[\"$\",\"code\",null,{\"children\":\"paceFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"loadFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"stallFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"faultFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"softenFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"asideFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestFlow\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"broodFlow\"}],\" are that function. \",[\"$\",\"code\",null,{\"children\":\"defineFlow\"}],\" stores each one as \",[\"$\",\"code\",null,{\"children\":\"run\"}],\". \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/index.ts\"}],\" lists them on \",[\"$\",\"code\",null,{\"children\":\"flows\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"fixtureFlows\"}],\" is that list. \",[\"$\",\"code\",null,{\"children\":\"nestMidFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestLeafFlow\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"broodChildFlow\"}],\" are the child runs those parents open.\"]}]\n"])</script><script>self.__next_f.push([1,"31:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"reread\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"packages/engine/src/engine.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"definition.run\"}],\" from the first opening, on the operations already stored. \",[\"$\",\"code\",null,{\"children\":\"openTrackedStep\"}],\" keeps an opening whose \",[\"$\",\"code\",null,{\"children\":\"step\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"mode\"}],\" already match. It throws \",[\"$\",\"code\",null,{\"children\":\"`Reread diverged at ${step}`\"}],\" when they do not.\"]}]\n"])</script><script>self.__next_f.push([1,"32:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"FlowContext\"}],\" exposes \",[\"$\",\"code\",null,{\"children\":\"values\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openStep\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openOptionalStep\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openDetachedStep\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openChildren\"}],\", \",[\"$\",\"code\",null,{\"children\":\"waitGroup\"}],\", \",[\"$\",\"code\",null,{\"children\":\"choose\"}],\", \",[\"$\",\"code\",null,{\"children\":\"finish\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"fail\"}],\". \",[\"$\",\"code\",null,{\"children\":\"values\"}],\" is the copy taken when the run opened. The other methods take a step name, a flow name, elements, a group callback, a choice, or nothing. \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/consume.ts\"}],\" passes starting data, current values, files, and \",[\"$\",\"code\",null,{\"children\":\"at\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"implementation.run\"}],\". The worker loaded secrets into the environment with \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" before it started.\"]}]\n"])</script><script>self.__next_f.push([1,"33:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"openings\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#openings\",\"className\":\"peer\",\"children\":\"Openings\"}],[\"$\",\"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,"34:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"paceFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openStep(dwellStep)\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"ctx.openStep(\\\"mark\\\")\"}],\". \",[\"$\",\"code\",null,{\"children\":\"loadFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openStep(dwellStep)\"}],\". \",[\"$\",\"code\",null,{\"children\":\"asideFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openDetachedStep(stallStep)\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"ctx.openStep(dwellStep)\"}],\". The string \",[\"$\",\"code\",null,{\"children\":\"\\\"mark\\\"\"}],\" is that step name. \",[\"$\",\"code\",null,{\"children\":\"dwellStep\"}],\" declares \",[\"$\",\"code\",null,{\"children\":\"dwell\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"names\"}],\" includes \",[\"$\",\"code\",null,{\"children\":\"mark\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"35:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"openStep\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openTrackedStep\"}],\" with opening \",[\"$\",\"code\",null,{\"children\":\"required\"}],\". The first call builds the step with \",[\"$\",\"code\",null,{\"children\":\"createStep\"}],\", pushes \",[\"$\",\"code\",null,{\"children\":\"jobFor\"}],\", sets \",[\"$\",\"code\",null,{\"children\":\"run.wait\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"{ kind: \\\"step\\\", step }\"}],\", and throws \",[\"$\",\"code\",null,{\"children\":\"SuspendSignal\"}],\". The next \",[\"$\",\"code\",null,{\"children\":\"reread\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"frame.result\"}],\" once \",[\"$\",\"code\",null,{\"children\":\"frame.result\"}],\" is set. A required result whose status is \",[\"$\",\"code\",null,{\"children\":\"failed\"}],\" ends the run in failure and does not open the next step. A required result whose status is \",[\"$\",\"code\",null,{\"children\":\"not_finished\"}],\" ends the run not finished. After \",[\"$\",\"code\",null,{\"children\":\"definition.run\"}],\" returns, or after \",[\"$\",\"code\",null,{\"children\":\"FinishSignal\"}],\", \",[\"$\",\"code\",null,{\"children\":\"reread\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"settle\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"success\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"36:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"openDetachedStep\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openDetached\"}],\". The first call pushes \",[\"$\",\"code\",null,{\"children\":\"jobFor\"}],\" and returns without \",[\"$\",\"code\",null,{\"children\":\"SuspendSignal\"}],\". \",[\"$\",\"code\",null,{\"children\":\"acceptResult\"}],\" writes \",[\"$\",\"code\",null,{\"children\":\"frame.result\"}],\" and, on the first end, calls \",[\"$\",\"code\",null,{\"children\":\"pushStep\"}],\". When \",[\"$\",\"code\",null,{\"children\":\"frame.mode\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"detached\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"entity.run.status\"}],\" is anything other than \",[\"$\",\"code\",null,{\"children\":\"running\"}],\", \",[\"$\",\"code\",null,{\"children\":\"acceptResult\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"taken([])\"}],\" and skips \",[\"$\",\"code\",null,{\"children\":\"drive\"}],\". The step metric from that first \",[\"$\",\"code\",null,{\"children\":\"pushStep\"}],\" is in the transition \",[\"$\",\"code\",null,{\"children\":\"taken\"}],\" returns.\"]}]\n"])</script><script>self.__next_f.push([1,"37:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"softenFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openOptionalStep(missStep)\"}],\". That call uses \",[\"$\",\"code\",null,{\"children\":\"openTrackedStep\"}],\" with opening \",[\"$\",\"code\",null,{\"children\":\"optional\"}],\". It waits for \",[\"$\",\"code\",null,{\"children\":\"frame.result\"}],\" the same way as \",[\"$\",\"code\",null,{\"children\":\"openStep\"}],\". A failed or not finished optional result does not stop the run.\"]}]\n"])</script><script>self.__next_f.push([1,"38:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"groups-children-and-choice\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#groups-children-and-choice\",\"className\":\"peer\",\"children\":\"Groups, children, and choice\"}],[\"$\",\"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,"39:[\"$\",\"p\",null,{\"children\":[\"On a new group, \",[\"$\",\"code\",null,{\"children\":\"waitGroup\"}],\" stores \",[\"$\",\"code\",null,{\"children\":\"rule: { form: \\\"all\\\" }\"}],\", then calls \",[\"$\",\"code\",null,{\"children\":\"define\"}],\". \",[\"$\",\"code\",null,{\"children\":\"sealGroup\"}],\" seals the report when \",[\"$\",\"code\",null,{\"children\":\"judgeRule\"}],\" returns success. A failure or a not finished judgment closes the still-open required and optional steps and stops the run. Until then \",[\"$\",\"code\",null,{\"children\":\"waitGroup\"}],\" sets \",[\"$\",\"code\",null,{\"children\":\"run.wait\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"{ kind: \\\"group\\\", rule: frame.rule }\"}],\" and throws \",[\"$\",\"code\",null,{\"children\":\"SuspendSignal\"}],\". The call returns \",[\"$\",\"code\",null,{\"children\":\"frame.sealed\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3a:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"takeStep\"}],\" records \",[\"$\",\"code\",null,{\"children\":\"optional\"}],\" or \",[\"$\",\"code\",null,{\"children\":\"required\"}],\" and pushes \",[\"$\",\"code\",null,{\"children\":\"jobFor\"}],\" for a new member that is still live. The group rule counts a required step whose result status is \",[\"$\",\"code\",null,{\"children\":\"done\"}],\", and a child run whose status is \",[\"$\",\"code\",null,{\"children\":\"success\"}],\". An optional step does not count. \",[\"$\",\"code\",null,{\"children\":\"GroupContext.openStep\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"GroupContext.openOptionalStep\"}],\" return nothing.\"]}]\n"])</script><script>self.__next_f.push([1,"3b:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"nestFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openChildren(nestMidFlow, asChildren(sprouted.body))\"}],\". \",[\"$\",\"code\",null,{\"children\":\"nestMidFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openChildren(nestLeafFlow, asChildren(sprouted.body))\"}],\". \",[\"$\",\"code\",null,{\"children\":\"broodFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openChildren(broodChildFlow, asChildren(opened.body))\"}],\". The first argument is the flow. \",[\"$\",\"code\",null,{\"children\":\"takeChildren\"}],\" stores it as \",[\"$\",\"code\",null,{\"children\":\"member.flow\"}],\". \",[\"$\",\"code\",null,{\"children\":\"GroupContext\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"packages/contract/src/index.ts\"}],\" types that parameter as \",[\"$\",\"code\",null,{\"children\":\"flow: FlowName\"}],\". A child member with no identities counts as done.\"]}]\n"])</script><script>self.__next_f.push([1,"3c:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"FlowContext.openChildren\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"openOptionalChildren\"}],\" take \",[\"$\",\"code\",null,{\"children\":\"flow\"}],\" as a \",[\"$\",\"code\",null,{\"children\":\"FlowName\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"elements\"}],\" as one \",[\"$\",\"code\",null,{\"children\":\"ChildElement\"}],\" or a readonly list. Each element has \",[\"$\",\"code\",null,{\"children\":\"identifier\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"startingData\"}],\". On the context from \",[\"$\",\"code\",null,{\"children\":\"contextFor\"}],\", one child waits while \",[\"$\",\"code\",null,{\"children\":\"child.run.status\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"running\"}],\" and then returns \",[\"$\",\"code\",null,{\"children\":\"resultFrom(child)\"}],\", including that child's finish body. A failed required child ends the parent in failure. A not finished required child ends the parent not finished. An optional child does not stop the parent. When the argument is a list, \",[\"$\",\"code\",null,{\"children\":\"childCall\"}],\" stores \",[\"$\",\"code\",null,{\"children\":\"normalizeChildrenRule\"}],\" of the call's \",[\"$\",\"code\",null,{\"children\":\"rule\"}],\", or \",[\"$\",\"code\",null,{\"children\":\"{ form: \\\"all\\\" }\"}],\" when the call omits it. The same rule is accepted on both openings. \",[\"$\",\"code\",null,{\"children\":\"withinMin\"}],\" stores \",[\"$\",\"code\",null,{\"children\":\"openedAt\"}],\" on the first opening. \",[\"$\",\"code\",null,{\"children\":\"sealChildren\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"judgeChildren\"}],\". A required miss stops the parent. An optional miss seals the report and the parent continues. An empty list records the opening and returns a sealed report. \",[\"$\",\"code\",null,{\"children\":\"nestFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestMidFlow\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"broodFlow\"}],\" open child flows with \",[\"$\",\"code\",null,{\"children\":\"openChildren\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3d:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"uniqueElements\"}],\" keeps the first element of each \",[\"$\",\"code\",null,{\"children\":\"identity\"}],\". \",[\"$\",\"code\",null,{\"children\":\"ensureChild\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"begin\"}],\" when the child is missing. When \",[\"$\",\"code\",null,{\"children\":\"restart\"}],\" is true and the child is not \",[\"$\",\"code\",null,{\"children\":\"running\"}],\", it calls \",[\"$\",\"code\",null,{\"children\":\"begin\"}],\" again unless the run is \",[\"$\",\"code\",null,{\"children\":\"success\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"now\"}],\" is still within \",[\"$\",\"code\",null,{\"children\":\"validityEndsAt\"}],\". The flow \",[\"$\",\"code\",null,{\"children\":\"openChildren\"}],\" passes \",[\"$\",\"code\",null,{\"children\":\"restart\"}],\" as \",[\"$\",\"code\",null,{\"children\":\"!isReread\"}],\". \",[\"$\",\"code\",null,{\"children\":\"entityId\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"packages/contract/src/index.ts\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"`${organization}/${flow}/${identity}`\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3e:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"choose\"}],\" stores the arms in the order of \",[\"$\",\"code\",null,{\"children\":\"arm.name\"}],\". It runs every arm whose name differs from \",[\"$\",\"code\",null,{\"children\":\"taken\"}],\" under \",[\"$\",\"code\",null,{\"children\":\"contextFor(..., \\\"discarded\\\")\"}],\", then runs the taken arm under \",[\"$\",\"code\",null,{\"children\":\"\\\"live\\\"\"}],\". A discarded opening is \",[\"$\",\"code\",null,{\"children\":\"discardedStep\"}],\", with \",[\"$\",\"code\",null,{\"children\":\"discarded: true\"}],\" and no \",[\"$\",\"code\",null,{\"children\":\"jobs.push\"}],\". \",[\"$\",\"code\",null,{\"children\":\"acceptResult\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"taken([])\"}],\" when \",[\"$\",\"code\",null,{\"children\":\"findStep\"}],\" misses the step and \",[\"$\",\"code\",null,{\"children\":\"findDiscardedStep\"}],\" finds it. Duplicate arm names, or a \",[\"$\",\"code\",null,{\"children\":\"taken\"}],\" value absent from those names, throw \",[\"$\",\"code\",null,{\"children\":\"Reread diverged at a choice\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3f:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"paceFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"loadFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"softenFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"asideFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestMidFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestLeafFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"broodFlow\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"broodChildFlow\"}],\" call \",[\"$\",\"code\",null,{\"children\":\"ctx.finish()\"}],\". \",[\"$\",\"code\",null,{\"children\":\"stallFlow\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"faultFlow\"}],\" open one required step and do not call \",[\"$\",\"code\",null,{\"children\":\"finish()\"}],\". \",[\"$\",\"code\",null,{\"children\":\"finish\"}],\" throws \",[\"$\",\"code\",null,{\"children\":\"FinishSignal\"}],\" in live mode, and the \",[\"$\",\"code\",null,{\"children\":\"catch\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"reread\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"settleReachedEnd\"}],\", the same close as a normal return. \",[\"$\",\"code\",null,{\"children\":\"fail\"}],\" throws \",[\"$\",\"code\",null,{\"children\":\"FailSignal\"}],\", and that \",[\"$\",\"code\",null,{\"children\":\"catch\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"settle\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"failure\"}],\". None of these flows call \",[\"$\",\"code\",null,{\"children\":\"fail()\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"40:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"registration-and-the-step-implementation\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#registration-and-the-step-implementation\",\"className\":\"peer\",\"children\":\"Registration and the step implementation\"}],[\"$\",\"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,"41:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"defineFlow\"}],\" returns the flow with \",[\"$\",\"code\",null,{\"children\":\"name\"}],\", \",[\"$\",\"code\",null,{\"children\":\"entityType\"}],\", \",[\"$\",\"code\",null,{\"children\":\"validityDurationMs\"}],\", \",[\"$\",\"code\",null,{\"children\":\"source\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"run\"}],\". Each fixture flow sets \",[\"$\",\"code\",null,{\"children\":\"validityDurationMs\"}],\" to null and \",[\"$\",\"code\",null,{\"children\":\"entityType\"}],\" to its name. \",[\"$\",\"code\",null,{\"children\":\"fixtureFlows\"}],\" holds \",[\"$\",\"code\",null,{\"children\":\"pace\"}],\", \",[\"$\",\"code\",null,{\"children\":\"load\"}],\", \",[\"$\",\"code\",null,{\"children\":\"stall\"}],\", \",[\"$\",\"code\",null,{\"children\":\"fault\"}],\", \",[\"$\",\"code\",null,{\"children\":\"soften\"}],\", \",[\"$\",\"code\",null,{\"children\":\"aside\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nest\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nest-mid\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nest-leaf\"}],\", \",[\"$\",\"code\",null,{\"children\":\"brood\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"brood-child\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createRegistry\"}],\" throws \",[\"$\",\"code\",null,{\"children\":\"`Unknown flow ${name}`\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"get\"}],\" when a name is missing. \",[\"$\",\"code\",null,{\"children\":\"ensureChild\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"registry.get(flowName)\"}],\" for the child flow.\"]}]\n"])</script><script>self.__next_f.push([1,"42:[\"$\",\"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: \",[\"$\",\"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\"}],\". \",[\"$\",\"code\",null,{\"children\":\"fixtureSteps\"}],\" stores each bound step under \",[\"$\",\"code\",null,{\"children\":\"flow/step\"}],\". \",[\"$\",\"code\",null,{\"children\":\"dwell\"}],\" also answers \",[\"$\",\"code\",null,{\"children\":\"mark\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"pass-1\"}],\" through \",[\"$\",\"code\",null,{\"children\":\"pass-10\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"43:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"dwell\"}],\" waits the configured milliseconds, then returns done. \",[\"$\",\"code\",null,{\"children\":\"stall\"}],\" throws \",[\"$\",\"code\",null,{\"children\":\"StepHeld\"}],\". \",[\"$\",\"code\",null,{\"children\":\"miss\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"{ kind: \\\"result\\\", status: \\\"failed\\\", discriminant: \\\"failed\\\" }\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"44:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"runJob\"}],\" loads the bound step with \",[\"$\",\"code\",null,{\"children\":\"stepBinding\"}],\". A thrown \",[\"$\",\"code\",null,{\"children\":\"StepHeld\"}],\" returns before \",[\"$\",\"code\",null,{\"children\":\"acceptResult\"}],\". When \",[\"$\",\"code\",null,{\"children\":\"implementation.run\"}],\" throws and \",[\"$\",\"code\",null,{\"children\":\"openingFor\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"optional\"}],\" or \",[\"$\",\"code\",null,{\"children\":\"detached\"}],\", \",[\"$\",\"code\",null,{\"children\":\"runJob\"}],\" sends \",[\"$\",\"code\",null,{\"children\":\"{ kind: \\\"result\\\", status: \\\"failed\\\", discriminant: \\\"failed\\\" }\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"acceptResult\"}],\". Any other thrown error is rethrown.\"]}]\n"])</script><script>self.__next_f.push([1,"45:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"the-run\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#the-run\",\"className\":\"peer\",\"children\":\"The run\"}],[\"$\",\"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:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/server.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openFixtureService\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"createMemoryClient\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"watchWorkers: true\"}],\". That opens \",[\"$\",\"code\",null,{\"children\":\"createService\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"flows: fixtureFlows\"}],\", \",[\"$\",\"code\",null,{\"children\":\"steps: fixtureSteps\"}],\", \",[\"$\",\"code\",null,{\"children\":\"entities: createPostgresEntities(pool)\"}],\", \",[\"$\",\"code\",null,{\"children\":\"metrics: createMetricPublisher(redis)\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"metricReads: createMetricsReader(clickhouse)\"}],\". \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" does not call \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\". \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture seed\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"seedOrganization\"}],\" only when the organization exports \",[\"$\",\"code\",null,{\"children\":\"catalogSeed\"}],\". The fixture does not, so that command starts no run and opens no client database. The log line is \",[\"$\",\"code\",null,{\"children\":\"seeded fixture 0 runs\"}],\". \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\" writes a run into the orchestrator database.\"]}]\n"])</script><script>self.__next_f.push([1,"47:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"startRun\"}],\" loads the row with \",[\"$\",\"code\",null,{\"children\":\"loadFocus\"}],\", calls \",[\"$\",\"code\",null,{\"children\":\"engine.request\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"persist\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"afterCommit\"}],\". \",[\"$\",\"code\",null,{\"children\":\"request\"}],\" addresses the entity with \",[\"$\",\"code\",null,{\"children\":\"entityId\"}],\". A run whose \",[\"$\",\"code\",null,{\"children\":\"status\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"running\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"{ kind: \\\"waiting\\\" }\"}],\". A \",[\"$\",\"code\",null,{\"children\":\"success\"}],\" run with \",[\"$\",\"code\",null,{\"children\":\"finishedAt\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"validityEndsAt\"}],\" set, and \",[\"$\",\"code\",null,{\"children\":\"input.at\"}],\" at or before that instant, returns \",[\"$\",\"code\",null,{\"children\":\"{ kind: \\\"recorded\\\" }\"}],\". Every other request goes through \",[\"$\",\"code\",null,{\"children\":\"begin\"}],\". \",[\"$\",\"code\",null,{\"children\":\"begin\"}],\" adds one to \",[\"$\",\"code\",null,{\"children\":\"generation\"}],\", sets \",[\"$\",\"code\",null,{\"children\":\"run.status\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"running\"}],\", copies \",[\"$\",\"code\",null,{\"children\":\"input.startingData\"}],\", clears \",[\"$\",\"code\",null,{\"children\":\"validityEndsAt\"}],\", and calls \",[\"$\",\"code\",null,{\"children\":\"drive\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"48:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"drive\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"applySilence\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"reread\"}],\". \",[\"$\",\"code\",null,{\"children\":\"applySilence\"}],\" pushes \",[\"$\",\"code\",null,{\"children\":\"jobFor\"}],\" while the 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\"}],\" it writes status \",[\"$\",\"code\",null,{\"children\":\"not_finished\"}],\" and calls \",[\"$\",\"code\",null,{\"children\":\"pushStep\"}],\". \",[\"$\",\"code\",null,{\"children\":\"Service.advance\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"engine.advance\"}],\" for each batch from \",[\"$\",\"code\",null,{\"children\":\"session.due\"}],\". \",[\"$\",\"code\",null,{\"children\":\"due\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"createPostgresEntities\"}],\" selects \",[\"$\",\"code\",null,{\"children\":\"status = 'running' and silence_due_at \u003c= $1\"}],\". \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" reaches the engine through \",[\"$\",\"code\",null,{\"children\":\"openFixtureService\"}],\", and it also calls \",[\"$\",\"code\",null,{\"children\":\"startMetricFlush\"}],\", \",[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"server.listen\"}],\". \",[\"$\",\"code\",null,{\"children\":\"seedOrganization\"}],\" is the \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\" for an exported \",[\"$\",\"code\",null,{\"children\":\"catalogSeed\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"49:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"afterCommit\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" for each job and \",[\"$\",\"code\",null,{\"children\":\"metrics.publish\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"flowMetrics\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"stepMetrics\"}],\". \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/work.ts\"}],\" starts \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" for each kind. Each job calls \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\". The orchestrator applies the published result and calls \",[\"$\",\"code\",null,{\"children\":\"engine.acceptResult\"}],\" inside \",[\"$\",\"code\",null,{\"children\":\"deps.entities.transaction\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"4a:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"settle\"}],\" returns at once when \",[\"$\",\"code\",null,{\"children\":\"entity.run.status\"}],\" is not \",[\"$\",\"code\",null,{\"children\":\"running\"}],\". Otherwise it sets \",[\"$\",\"code\",null,{\"children\":\"status\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"finishedAt\"}],\", clears \",[\"$\",\"code\",null,{\"children\":\"wait\"}],\", and pushes one \",[\"$\",\"code\",null,{\"children\":\"FlowMetric\"}],\" with that \",[\"$\",\"code\",null,{\"children\":\"outcome\"}],\", the run \",[\"$\",\"code\",null,{\"children\":\"generation\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"durationMs\"}],\". On \",[\"$\",\"code\",null,{\"children\":\"success\"}],\", \",[\"$\",\"code\",null,{\"children\":\"validityEndsAt\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"addMs(now, validityDurationMs)\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"registry.get(entity.flow)\"}],\". \",[\"$\",\"code\",null,{\"children\":\"pushStep\"}],\" pushes one \",[\"$\",\"code\",null,{\"children\":\"StepMetric\"}],\" when \",[\"$\",\"code\",null,{\"children\":\"discarded\"}],\" is unset and the step has \",[\"$\",\"code\",null,{\"children\":\"openedAt\"}],\", \",[\"$\",\"code\",null,{\"children\":\"endedAt\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"result\"}],\". When \",[\"$\",\"code\",null,{\"children\":\"acceptResult\"}],\" receives a worker id, that id is on the step metric. A silence \",[\"$\",\"code\",null,{\"children\":\"not_finished\"}],\" has no worker id. \",[\"$\",\"code\",null,{\"children\":\"FlowMetric\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"StepMetric\"}],\" are declared in \",[\"$\",\"code\",null,{\"children\":\"packages/contract/src/index.ts\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"4b:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"transient-files\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#transient-files\",\"className\":\"peer\",\"children\":\"Transient files\"}],[\"$\",\"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,"4c:[\"$\",\"p\",null,{\"children\":[\"A step writes a transient file with \",[\"$\",\"code\",null,{\"children\":\"input.files.put\"}],\". The bytes live in the platform bucket under \",[\"$\",\"code\",null,{\"children\":\"runs/{organization}/{flow}/{identifier}/{generation}/{name}\"}],\". \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\" records every name that \",[\"$\",\"code\",null,{\"children\":\"put\"}],\" wrote and stores that list on the step result. A replay from a step publishes a copy of each kept name into the new generation before the jobs of that generation are sent. A full replay does not copy. The flow run page in the console lists them. Reading a name still uses the current generation.\"]}]\n"])</script><script>self.__next_f.push([1,"4d:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"listRun\"}],\" on \",[\"$\",\"code\",null,{\"children\":\"TransientFiles\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/transient-files.ts\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"{ name, bytes }[]\"}],\" for that prefix, sorted by name. \",[\"$\",\"code\",null,{\"children\":\"GET /entities/:id?files=1\"}],\" on \",[\"$\",\"code\",null,{\"children\":\"ReadController\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"listRunFilesFor\"}],\" after \",[\"$\",\"code\",null,{\"children\":\"parseFlowRunPath\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"readGeneration\"}],\". The run must still be stored and the person must belong to that organization. \",[\"$\",\"code\",null,{\"children\":\"GET /entities/:id?file={name}\"}],\" returns the bytes with the stored content type. A name that is not one segment, or a missing file, is 404.\"]}]\n"])</script><script>self.__next_f.push([1,"4e:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"EntityView\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/console/src/design/views.tsx\"}],\" renders a \",[\"$\",\"code\",null,{\"children\":\"DataTable\"}],\" titled Files, empty copy \",[\"$\",\"code\",null,{\"children\":\"No file.\"}],\", page size 50. \",[\"$\",\"code\",null,{\"children\":\"EntityScreen\"}],\" loads that list with \",[\"$\",\"code\",null,{\"children\":\"listRunFiles\"}],\" and does not send \",[\"$\",\"code\",null,{\"children\":\"files\"}],\" on the 2s tree poll. A row opens a dialog: \",[\"$\",\"code\",null,{\"children\":\"readRunFile\"}],\" previews JSON or text under 1 MiB, and Download goes to \",[\"$\",\"code\",null,{\"children\":\"GET /api/run-file\"}],\". After the flow run retention the run is gone and those files are gone.\"]}]\n"])</script><script>self.__next_f.push([1,"4f:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"postgres-and-clickhouse\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#postgres-and-clickhouse\",\"className\":\"peer\",\"children\":\"Postgres and ClickHouse\"}],[\"$\",\"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,"50:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"persist\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"session.upsert\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createPostgresEntities\"}],\" inserts the run into \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\" and, on conflict of \",[\"$\",\"code\",null,{\"children\":\"organization_id, flow, identity\"}],\", updates \",[\"$\",\"code\",null,{\"children\":\"status\"}],\", \",[\"$\",\"code\",null,{\"children\":\"generation\"}],\", \",[\"$\",\"code\",null,{\"children\":\"started_at\"}],\", \",[\"$\",\"code\",null,{\"children\":\"finished_at\"}],\", \",[\"$\",\"code\",null,{\"children\":\"validity_ends_at\"}],\", \",[\"$\",\"code\",null,{\"children\":\"silence_due_at\"}],\", \",[\"$\",\"code\",null,{\"children\":\"rule\"}],\", \",[\"$\",\"code\",null,{\"children\":\"starting_data\"}],\", \",[\"$\",\"code\",null,{\"children\":\"operations\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"wait\"}],\". That row is the current flow run. \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" passes \",[\"$\",\"code\",null,{\"children\":\"createPostgresEntities(pool)\"}],\" as \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"51:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"createMetricPublisher\"}],\" appends each metric to the Redis stream \",[\"$\",\"code\",null,{\"children\":\"metrics\"}],\" on the shared Redis client. That client also writes dispatch tokens. \",[\"$\",\"code\",null,{\"children\":\"LoopsService\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"startMetricFlush\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"createRedisResultBus\"}],\" each with \",[\"$\",\"code\",null,{\"children\":\"redis.duplicate()\"}],\". A blocking read on \",[\"$\",\"code\",null,{\"children\":\"metrics\"}],\" does not stall \",[\"$\",\"code\",null,{\"children\":\"step-results\"}],\", and the reverse does not stall the shared client. \",[\"$\",\"code\",null,{\"children\":\"startMetricFlush\"}],\" inserts flow rows with \",[\"$\",\"code\",null,{\"children\":\"insertFlowMetrics\"}],\" into \",[\"$\",\"code\",null,{\"children\":\"flow_run_metrics\"}],\" and step rows with \",[\"$\",\"code\",null,{\"children\":\"insertStepMetrics\"}],\" into \",[\"$\",\"code\",null,{\"children\":\"step_run_metrics\"}],\". \",[\"$\",\"code\",null,{\"children\":\"onApplicationShutdown\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"quit()\"}],\" on those two duplicated clients.\"]}]\n"])</script><script>self.__next_f.push([1,"52:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"flowsFor\"}],\" sets the list \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"countEntities\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"running\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"countRunning\"}],\". \",[\"$\",\"code\",null,{\"children\":\"mergeFlows\"}],\" copies each flow's \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"running\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"countsByFlow\"}],\", and includes every flow registered in \",[\"$\",\"code\",null,{\"children\":\"deps.flows\"}],\" even when that flow has no entity and no run. Those three methods count rows in \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\". \",[\"$\",\"code\",null,{\"children\":\"countRunning\"}],\" and the \",[\"$\",\"code\",null,{\"children\":\"running\"}],\" column keep \",[\"$\",\"code\",null,{\"children\":\"status = 'running'\"}],\". \",[\"$\",\"code\",null,{\"children\":\"mergeFlows\"}],\" fills \",[\"$\",\"code\",null,{\"children\":\"runs\"}],\", \",[\"$\",\"code\",null,{\"children\":\"success\"}],\", \",[\"$\",\"code\",null,{\"children\":\"failure\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"notFinished\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"flowOutcomes\"}],\", \",[\"$\",\"code\",null,{\"children\":\"p50Ms\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"flowDurations\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"trend\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"flowTrend\"}],\". \",[\"$\",\"code\",null,{\"children\":\"flowsFor\"}],\" sets \",[\"$\",\"code\",null,{\"children\":\"failureRate\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"failure / runs\"}],\" when \",[\"$\",\"code\",null,{\"children\":\"runs\"}],\" is not \",[\"$\",\"code\",null,{\"children\":\"0\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createMetricsReader\"}],\" reads the outcome, duration, and trend queries from \",[\"$\",\"code\",null,{\"children\":\"flow_runs_hourly\"}],\". \",[\"$\",\"code\",null,{\"children\":\"flowFor\"}],\" reads that flow's \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"running\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"countsByFlow\"}],\", sets \",[\"$\",\"code\",null,{\"children\":\"failureRate\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"failure / runs\"}],\" when \",[\"$\",\"code\",null,{\"children\":\"runs\"}],\" is not \",[\"$\",\"code\",null,{\"children\":\"0\"}],\", fills \",[\"$\",\"code\",null,{\"children\":\"series\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"flowSeries\"}],\", reads step rows from \",[\"$\",\"code\",null,{\"children\":\"stepCounts\"}],\" on \",[\"$\",\"code\",null,{\"children\":\"step_runs_hourly\"}],\", and reads \",[\"$\",\"code\",null,{\"children\":\"reasons\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"reasons_daily\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"53:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"the-flows-screen\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#the-flows-screen\",\"className\":\"peer\",\"children\":\"The Flows screen\"}],[\"$\",\"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,"54:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/http.ts\"}],\" handles \",[\"$\",\"code\",null,{\"children\":\"GET\"}],\". Any other method is status \",[\"$\",\"code\",null,{\"children\":\"405\"}],\". \",[\"$\",\"code\",null,{\"children\":\"GET /organizations/:organizationId/flows\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"flowsFor\"}],\" after \",[\"$\",\"code\",null,{\"children\":\"metricRange\"}],\". \",[\"$\",\"code\",null,{\"children\":\"GET /organizations/:organizationId/flows/:flow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"flowFor\"}],\". The resolver in \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" returns the text after \",[\"$\",\"code\",null,{\"children\":\"Bearer \"}],\". \",[\"$\",\"code\",null,{\"children\":\"POST /organizations/:organizationId/flows/:flow\"}],\" on \",[\"$\",\"code\",null,{\"children\":\"ReadController\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openFlow\"}],\", which calls \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"55:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"FlowsPage\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/console/src/app/organizations/[organizationId]/flows/page.tsx\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"currentPerson\"}],\" and renders \",[\"$\",\"code\",null,{\"children\":\"SignedOutView\"}],\" when that person is missing. It loads the list with \",[\"$\",\"code\",null,{\"children\":\"readOrchestrator\"}],\" at \",[\"$\",\"code\",null,{\"children\":\"/organizations/${organizationId}/flows?range=${range}\"}],\" and renders \",[\"$\",\"code\",null,{\"children\":\"FlowsRoute\"}],\" inside \",[\"$\",\"code\",null,{\"children\":\"ConsoleFrame\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"active=\\\"flows\\\"\"}],\". The nav item labeled \",[\"$\",\"code\",null,{\"children\":\"Flows\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"ConsoleFrame\"}],\" pushes \",[\"$\",\"code\",null,{\"children\":\"`/organizations/${organizationId}/flows`\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"56:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"FlowsView\"}],\" shows the title \",[\"$\",\"code\",null,{\"children\":\"Flows\"}],\", stats for Entities, Flow runs, Failure rate, and Running now, and one table row per flow. \",[\"$\",\"code\",null,{\"children\":\"FlowsRoute\"}],\" sends \",[\"$\",\"code\",null,{\"children\":\"onOpen\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"`/organizations/${organizationId}/flows/${flow}?range=${range}`\"}],\". \",[\"$\",\"code\",null,{\"children\":\"FlowPage\"}],\" loads that path with \",[\"$\",\"code\",null,{\"children\":\"readOrchestrator\"}],\" and calls \",[\"$\",\"code\",null,{\"children\":\"notFound()\"}],\" when the load fails. The detail view shows the flow name, flow runs, step runs, failure rate, p50, Running now, the outcome series, the step table, and the reason list. The Start button opens a dialog for the identity and the payload. \",[\"$\",\"code\",null,{\"children\":\"startFlow\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/console/src/app/organizations/[organizationId]/flows/actions.ts\"}],\" posts that body to \",[\"$\",\"code\",null,{\"children\":\"POST /organizations/:organizationId/flows/:flow\"}],\". \",[\"$\",\"code\",null,{\"children\":\"openFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\" with silence duration \",[\"$\",\"code\",null,{\"children\":\"60_000\"}],\", resend maximum \",[\"$\",\"code\",null,{\"children\":\"1\"}],\", and the rule from the flow definition. \",[\"$\",\"code\",null,{\"children\":\"flowRange\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"24h\"}],\", \",[\"$\",\"code\",null,{\"children\":\"7d\"}],\", or \",[\"$\",\"code\",null,{\"children\":\"30d\"}],\", and returns \",[\"$\",\"code\",null,{\"children\":\"24h\"}],\" for any other query value.\"]}]\n"])</script><script>self.__next_f.push([1,"57:[\"$\",\"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,"58:[\"$\",\"ol\",null,{\"children\":[\"\\n\",[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"In \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/perf/\"}],\", add a \",[\"$\",\"code\",null,{\"children\":\"FlowFunction\"}],\" next to \",[\"$\",\"code\",null,{\"children\":\"paceFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"loadFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"stallFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"faultFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"softenFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"asideFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestFlow\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"broodFlow\"}],\". Call \",[\"$\",\"code\",null,{\"children\":\"openStep\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openOptionalStep\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openDetachedStep\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openChildren\"}],\", or \",[\"$\",\"code\",null,{\"children\":\"finish\"}],\" the way those flows do. \",[\"$\",\"code\",null,{\"children\":\"paceFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openStep(dwellStep)\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"openStep(\\\"mark\\\")\"}],\". \",[\"$\",\"code\",null,{\"children\":\"softenFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openOptionalStep(missStep)\"}],\". \",[\"$\",\"code\",null,{\"children\":\"asideFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openDetachedStep(stallStep)\"}],\". \",[\"$\",\"code\",null,{\"children\":\"nestFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openChildren(nestMidFlow, asChildren(sprouted.body))\"}],\". \",[\"$\",\"code\",null,{\"children\":\"broodFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openChildren(broodChildFlow, asChildren(opened.body))\"}],\". \",[\"$\",\"code\",null,{\"children\":\"waitGroup\"}],\", \",[\"$\",\"code\",null,{\"children\":\"choose\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"fail\"}],\" are on \",[\"$\",\"code\",null,{\"children\":\"FlowContext\"}],\". Append the flow to \",[\"$\",\"code\",null,{\"children\":\"flows\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/index.ts\"}],\". \",[\"$\",\"code\",null,{\"children\":\"fixtureFlows\"}],\" is that list.\"]}],\"\\n\"]}],\"\\n\",[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"Register the function with \",[\"$\",\"code\",null,{\"children\":\"defineFlow\"}],\", which sets \",[\"$\",\"code\",null,{\"children\":\"name\"}],\", \",[\"$\",\"code\",null,{\"children\":\"entityType\"}],\", \",[\"$\",\"code\",null,{\"children\":\"validityDurationMs\"}],\", \",[\"$\",\"code\",null,{\"children\":\"source\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"run\"}],\", and append that value to \",[\"$\",\"code\",null,{\"children\":\"flows\"}],\". Register each step implementation on the \",[\"$\",\"code\",null,{\"children\":\"steps\"}],\" array in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/steps.ts\"}],\". \",[\"$\",\"code\",null,{\"children\":\"bindOrganization\"}],\" writes \",[\"$\",\"code\",null,{\"children\":\"`${flow}/${step}`\"}],\" and sets the kind to \",[\"$\",\"code\",null,{\"children\":\"`fixture-${step.name}`\"}],\".\"]}],\"\\n\"]}],\"\\n\",[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"Copy \",[\"$\",\"code\",null,{\"children\":\".env.example\"}],\" to \",[\"$\",\"code\",null,{\"children\":\".env\"}],\" in the repository root. \",[\"$\",\"code\",null,{\"children\":\"loadRootEnv\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/env.ts\"}],\" reads that file. \",[\"$\",\"code\",null,{\"children\":\"requiredEnv\"}],\" reads \",[\"$\",\"code\",null,{\"children\":\"DATABASE_URL\"}],\", \",[\"$\",\"code\",null,{\"children\":\"REDIS_URL\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"CLICKHOUSE_URL\"}],\", and throws \",[\"$\",\"code\",null,{\"children\":\"$${name} is required\"}],\" when one is missing. Start the orchestrator Postgres with \",[\"$\",\"code\",null,{\"children\":\"npx supabase start\"}],\". Start Redis and ClickHouse with \",[\"$\",\"code\",null,{\"children\":\"docker compose up -d redis clickhouse\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"redis\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"clickhouse\"}],\" services are the ones in \",[\"$\",\"code\",null,{\"children\":\"docker-compose.yml\"}],\". Run \",[\"$\",\"code\",null,{\"children\":\"npx supabase status\"}],\" and set \",[\"$\",\"code\",null,{\"children\":\"NEXT_PUBLIC_SUPABASE_ANON_KEY\"}],\" in \",[\"$\",\"code\",null,{\"children\":\".env\"}],\" to the anon key it prints. \",[\"$\",\"code\",null,{\"children\":\"supabaseAnonKey\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/console/src/lib/supabase-env.ts\"}],\" drops an empty value, and \",[\"$\",\"code\",null,{\"children\":\"LoginPage\"}],\" then renders \",[\"$\",\"code\",null,{\"children\":\"SignInForm\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"configured={false}\"}],\".\"]}],\"\\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 \",\"$L5c\",\" runs \",\"$L5d\",\". \",\"$L5e\",\" calls \",\"$L5f\",\" with \",\"$L60\",\" and \",\"$L61\",\", then \",\"$L62\",\". It does not call \",\"$L63\",\". The log line is \",\"$L64\",\".\"]}],\"\\n\"]}],\"\\n\",\"$L65\",\"\\n\",\"$L66\",\"\\n\",\"$L67\",\"\\n\"]}]\n"])</script><script>self.__next_f.push([1,"59:[\"$\",\"div\",null,{\"className\":\"flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden\",\"children\":[\"$undefined\",\"$undefined\"]}]\n5a:[\"$\",\"$L68\",null,{\"items\":\"$undefined\"}]\n5b:[\"$\",\"$L69\",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\"]}],[\"$\",\"$L6a\",null,{\"label\":\"toc\"}]]}],[\"$\",\"$L2a\",null,{\"children\":[\"$\",\"$L2b\",null,{}]}],\"$undefined\"]}]\n"])</script><script>self.__next_f.push([1,"5c:[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/package.json\"}]\n5d:[\"$\",\"code\",null,{\"children\":\"tsx src/server.ts\"}]\n5e:[\"$\",\"code\",null,{\"children\":\"server.ts\"}]\n5f:[\"$\",\"code\",null,{\"children\":\"openFixtureService\"}]\n60:[\"$\",\"code\",null,{\"children\":\"fixtureFlows\"}]\n61:[\"$\",\"code\",null,{\"children\":\"fixtureSteps\"}]\n62:[\"$\",\"code\",null,{\"children\":\"server.listen(3001, \\\"0.0.0.0\\\")\"}]\n63:[\"$\",\"code\",null,{\"children\":\"startRun\"}]\n64:[\"$\",\"code\",null,{\"children\":\"orchestrator http://127.0.0.1:3001\"}]\n"])</script><script>self.__next_f.push([1,"65:[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"In a second terminal, run \",[\"$\",\"code\",null,{\"children\":\"pnpm --filter @ascentstudio/cue-org-fixture work\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"work\"}],\" script in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/package.json\"}],\" runs \",[\"$\",\"code\",null,{\"children\":\"tsx src/work.ts\"}],\". \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" loads the organization's secrets once with \",[\"$\",\"code\",null,{\"children\":\"readOrganizationSecrets\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\", then calls \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\". Each job calls \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\". \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\" publishes the step result, the orchestrator applies it, and \",[\"$\",\"code\",null,{\"children\":\"settle\"}],\" pushes a \",[\"$\",\"code\",null,{\"children\":\"FlowMetric\"}],\" when it records \",[\"$\",\"code\",null,{\"children\":\"success\"}],\", \",[\"$\",\"code\",null,{\"children\":\"failure\"}],\", or \",[\"$\",\"code\",null,{\"children\":\"not_finished\"}],\". \",[\"$\",\"code\",null,{\"children\":\"startMetricFlush\"}],\" in the orchestrator process inserts that metric into ClickHouse. The log line from \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"fixture workers\"}],\" plus the kind names. \",[\"$\",\"code\",null,{\"children\":\"bindOrganization\"}],\" names \",[\"$\",\"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\"]}]\n"])</script><script>self.__next_f.push([1,"66:[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"In a third terminal, 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\"}],\". To remove runs an organization left behind, run \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture reset\"}],\". \",[\"$\",\"code\",null,{\"children\":\"resetOrganization\"}],\" deletes rows from \",[\"$\",\"code\",null,{\"children\":\"entity_links\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\" on the orchestrator database, drains the kind queues, and deletes that organization's metrics. The log line is \",[\"$\",\"code\",null,{\"children\":\"reset fixture\"}],\". \",[\"$\",\"code\",null,{\"children\":\"organizations\"}],\", \",[\"$\",\"code\",null,{\"children\":\"memberships\"}],\", \",[\"$\",\"code\",null,{\"children\":\"secrets\"}],\", and the person in \",[\"$\",\"code\",null,{\"children\":\"deploy/supabase/seed.sql\"}],\" stay.\"]}],\"\\n\"]}]\n"])</script><script>self.__next_f.push([1,"67:[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"In a fourth terminal, run \",[\"$\",\"code\",null,{\"children\":\"pnpm --filter cue-console dev\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"dev\"}],\" script in \",[\"$\",\"code\",null,{\"children\":\"apps/console/package.json\"}],\" runs \",[\"$\",\"code\",null,{\"children\":\"next dev\"}],\". Open the URL that command prints, at \",[\"$\",\"code\",null,{\"children\":\"/login\"}],\". \",[\"$\",\"code\",null,{\"children\":\"LoginForm\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"signInWithPassword\"}],\" for the Sign in button. The person inserted in \",[\"$\",\"code\",null,{\"children\":\"deploy/supabase/seed.sql\"}],\" has email \",[\"$\",\"code\",null,{\"children\":\"pierre@ascent-studio.fr\"}],\", and the comment there says the password is that same string. \",[\"$\",\"code\",null,{\"children\":\"on_auth_user_created\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"join_fixture\"}],\", which inserts a membership for organization \",[\"$\",\"code\",null,{\"children\":\"fixture\"}],\". After sign-in, \",[\"$\",\"code\",null,{\"children\":\"LoginForm\"}],\" pushes \",[\"$\",\"code\",null,{\"children\":\"/\"}],\". Open \",[\"$\",\"code\",null,{\"children\":\"/organizations/fixture/flows\"}],\". \",[\"$\",\"code\",null,{\"children\":\"FlowsPage\"}],\" renders \",[\"$\",\"code\",null,{\"children\":\"FlowsView\"}],\" with the title \",[\"$\",\"code\",null,{\"children\":\"Flows\"}],\". Click a row. \",[\"$\",\"code\",null,{\"children\":\"FlowsRoute\"}],\" opens \",[\"$\",\"code\",null,{\"children\":\"/organizations/fixture/flows/\"}],\" plus that flow name. Press Start, enter the identity and the payload, and the console opens \",[\"$\",\"code\",null,{\"children\":\"/entities/\"}],\" plus the organization, the flow, and the identity.\"]}],\"\\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\":\"Flow\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"25:\"$20:metadata\"\n"])</script></body></html>
72
+ </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-2"><a class="flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full" href="/docs/fixture"><div class="inline-flex items-center gap-1.5 font-medium"><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 -mx-1 size-4 shrink-0 rtl:rotate-180"><path d="m15 18-6-6 6-6"></path></svg><p>Fixture</p></div><p class="text-fd-muted-foreground truncate">Previous Page</p></a><a class="flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full text-end" href="/docs/usage/actions"><div class="inline-flex items-center gap-1.5 font-medium flex-row-reverse"><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 -mx-1 size-4 shrink-0 rtl:rotate-180"><path d="m9 18 6-6-6-6"></path></svg><p>Actions</p></div><p class="text-fd-muted-foreground truncate">Next Page</p></a></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="#the-function" 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-6">The function</a><a data-active="false" href="#openings" 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-6">Openings</a><a data-active="false" href="#groups-children-and-choice" 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-6">Groups, children, and choice</a><a data-active="false" href="#registration-and-the-step-implementation" 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-6">Registration and the step implementation</a><a data-active="false" href="#the-run" 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-6">The run</a><a data-active="false" href="#transient-files" 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-6">Transient files</a><a data-active="false" href="#postgres-and-clickhouse" 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-6">Postgres and ClickHouse</a><a data-active="false" href="#the-flows-screen" 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-6">The Flows screen</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\":\"De1P3ZUMhERQ6TwOXYlnp\",\"p\":\"\",\"c\":[\"\",\"docs\",\"usage\",\"flow\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"docs\",{\"children\":[[\"slug\",\"usage/flow\",\"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/flow\",\"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\":3,\"url\":\"#the-function\",\"title\":\"The function\"},{\"depth\":3,\"url\":\"#openings\",\"title\":\"Openings\"},{\"depth\":3,\"url\":\"#groups-children-and-choice\",\"title\":\"Groups, children, and choice\"},{\"depth\":3,\"url\":\"#registration-and-the-step-implementation\",\"title\":\"Registration and the step implementation\"},{\"depth\":3,\"url\":\"#the-run\",\"title\":\"The run\"},{\"depth\":3,\"url\":\"#transient-files\",\"title\":\"Transient files\"},{\"depth\":3,\"url\":\"#postgres-and-clickhouse\",\"title\":\"Postgres and ClickHouse\"},{\"depth\":3,\"url\":\"#the-flows-screen\",\"title\":\"The Flows screen\"},{\"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\":\"Flow\",\"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 flow is the restricted function that describes what an entity does, with one validity duration for every entity of that flow. A step is an opening in that function. The step implementation is the code outside the flow that performs the step.\"}],\"\\n\",[\"$\",\"p\",null,{\"children\":\"The current flow run stays available for the next reread. A flow metric is the retained end of a finished flow run. A step metric is the retained end of a finished step run. A person reads those ends over a period. A running flow run is not a metric.\"}],\"\\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 write a flow when you add one to an organization. \",[\"$\",\"code\",null,{\"children\":\"flows\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"fixtureFlows\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/index.ts\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"fixtureSteps\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/steps.ts\"}],\", are the registrations to copy.\"]}],\"\\n\",[\"$\",\"p\",null,{\"children\":\"A person reads Flows in the console. 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. On a stored flow run the console lists that run's transient files.\"}],\"\\n\",\"$L2d\",\"\\n\",\"$L2e\",\"\\n\",\"$L2f\",\"\\n\",\"$L30\",\"\\n\",\"$L31\",\"\\n\",\"$L32\",\"\\n\",\"$L33\",\"\\n\",\"$L34\",\"\\n\",\"$L35\",\"\\n\",\"$L36\",\"\\n\",\"$L37\",\"\\n\",\"$L38\",\"\\n\",\"$L39\",\"\\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\",\"\\n\",\"$L47\",\"\\n\",\"$L48\",\"\\n\",\"$L49\",\"\\n\",\"$L4a\",\"\\n\",\"$L4b\",\"\\n\",\"$L4c\",\"\\n\",\"$L4d\",\"\\n\",\"$L4e\",\"\\n\",\"$L4f\",\"\\n\",\"$L50\",\"\\n\",\"$L51\",\"\\n\",\"$L52\",\"\\n\",\"$L53\",\"\\n\",\"$L54\",\"\\n\",\"$L55\",\"\\n\",\"$L56\",\"\\n\",\"$L57\",\"\\n\",\"$L58\"],\"className\":\"prose flex-1\"}]],\"$L59\",\"$L5a\"],\"className\":\"flex min-w-0 w-full flex-col gap-4 pt-8 px-4 md:px-6 md:mx-auto\"}],\"$L5b\"]}]}]\n"])</script><script>self.__next_f.push([1,"68: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\"]\n69: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\"]\n6a: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\"]\n"])</script><script>self.__next_f.push([1,"2d:[\"$\",\"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"])</script><script>self.__next_f.push([1,"2e:[\"$\",\"p\",null,{\"children\":\"You meet the function, then the openings it calls, then the registration, then the run the orchestrator keeps, then the Flows screen.\"}]\n"])</script><script>self.__next_f.push([1,"2f:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"the-function\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#the-function\",\"className\":\"peer\",\"children\":\"The function\"}],[\"$\",\"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,"30:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"FlowFunction\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"packages/contract/src/index.ts\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"(ctx: FlowContext) =\u003e void\"}],\". \",[\"$\",\"code\",null,{\"children\":\"paceFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"loadFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"stallFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"faultFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"softenFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"asideFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestFlow\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"broodFlow\"}],\" are that function. \",[\"$\",\"code\",null,{\"children\":\"defineFlow\"}],\" stores each one as \",[\"$\",\"code\",null,{\"children\":\"run\"}],\". \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/index.ts\"}],\" lists them on \",[\"$\",\"code\",null,{\"children\":\"flows\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"fixtureFlows\"}],\" is that list. \",[\"$\",\"code\",null,{\"children\":\"nestMidFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestLeafFlow\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"broodChildFlow\"}],\" are the child runs those parents open.\"]}]\n"])</script><script>self.__next_f.push([1,"31:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"reread\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"packages/engine/src/engine.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"definition.run\"}],\" from the first opening, on the operations already stored. \",[\"$\",\"code\",null,{\"children\":\"openTrackedStep\"}],\" keeps an opening whose \",[\"$\",\"code\",null,{\"children\":\"step\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"mode\"}],\" already match. It throws \",[\"$\",\"code\",null,{\"children\":\"`Reread diverged at ${step}`\"}],\" when they do not.\"]}]\n"])</script><script>self.__next_f.push([1,"32:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"FlowContext\"}],\" exposes \",[\"$\",\"code\",null,{\"children\":\"values\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openStep\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openOptionalStep\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openDetachedStep\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openChildren\"}],\", \",[\"$\",\"code\",null,{\"children\":\"waitGroup\"}],\", \",[\"$\",\"code\",null,{\"children\":\"choose\"}],\", \",[\"$\",\"code\",null,{\"children\":\"finish\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"fail\"}],\". \",[\"$\",\"code\",null,{\"children\":\"values\"}],\" is the copy taken when the run opened. The other methods take a step name, a flow name, elements, a group callback, a choice, or nothing. \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/consume.ts\"}],\" passes starting data, current values, files, and \",[\"$\",\"code\",null,{\"children\":\"at\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"implementation.run\"}],\". The worker loaded secrets into the environment with \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\" before it started.\"]}]\n"])</script><script>self.__next_f.push([1,"33:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"openings\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#openings\",\"className\":\"peer\",\"children\":\"Openings\"}],[\"$\",\"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,"34:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"paceFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openStep(dwellStep)\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"ctx.openStep(\\\"mark\\\")\"}],\". \",[\"$\",\"code\",null,{\"children\":\"loadFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openStep(dwellStep)\"}],\". \",[\"$\",\"code\",null,{\"children\":\"asideFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openDetachedStep(stallStep)\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"ctx.openStep(dwellStep)\"}],\". The string \",[\"$\",\"code\",null,{\"children\":\"\\\"mark\\\"\"}],\" is that step name. \",[\"$\",\"code\",null,{\"children\":\"dwellStep\"}],\" declares \",[\"$\",\"code\",null,{\"children\":\"dwell\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"names\"}],\" includes \",[\"$\",\"code\",null,{\"children\":\"mark\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"35:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"openStep\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openTrackedStep\"}],\" with opening \",[\"$\",\"code\",null,{\"children\":\"required\"}],\". The first call builds the step with \",[\"$\",\"code\",null,{\"children\":\"createStep\"}],\", pushes \",[\"$\",\"code\",null,{\"children\":\"jobFor\"}],\", sets \",[\"$\",\"code\",null,{\"children\":\"run.wait\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"{ kind: \\\"step\\\", step }\"}],\", and throws \",[\"$\",\"code\",null,{\"children\":\"SuspendSignal\"}],\". The next \",[\"$\",\"code\",null,{\"children\":\"reread\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"frame.result\"}],\" once \",[\"$\",\"code\",null,{\"children\":\"frame.result\"}],\" is set. A required result whose status is \",[\"$\",\"code\",null,{\"children\":\"failed\"}],\" ends the run in failure and does not open the next step. A required result whose status is \",[\"$\",\"code\",null,{\"children\":\"not_finished\"}],\" ends the run not finished. After \",[\"$\",\"code\",null,{\"children\":\"definition.run\"}],\" returns, or after \",[\"$\",\"code\",null,{\"children\":\"FinishSignal\"}],\", \",[\"$\",\"code\",null,{\"children\":\"reread\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"settle\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"success\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"36:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"openDetachedStep\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openDetached\"}],\". The first call pushes \",[\"$\",\"code\",null,{\"children\":\"jobFor\"}],\" and returns without \",[\"$\",\"code\",null,{\"children\":\"SuspendSignal\"}],\". \",[\"$\",\"code\",null,{\"children\":\"acceptResult\"}],\" writes \",[\"$\",\"code\",null,{\"children\":\"frame.result\"}],\" and, on the first end, calls \",[\"$\",\"code\",null,{\"children\":\"pushStep\"}],\". When \",[\"$\",\"code\",null,{\"children\":\"frame.mode\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"detached\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"entity.run.status\"}],\" is anything other than \",[\"$\",\"code\",null,{\"children\":\"running\"}],\", \",[\"$\",\"code\",null,{\"children\":\"acceptResult\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"taken([])\"}],\" and skips \",[\"$\",\"code\",null,{\"children\":\"drive\"}],\". The step metric from that first \",[\"$\",\"code\",null,{\"children\":\"pushStep\"}],\" is in the transition \",[\"$\",\"code\",null,{\"children\":\"taken\"}],\" returns.\"]}]\n"])</script><script>self.__next_f.push([1,"37:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"softenFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openOptionalStep(missStep)\"}],\". That call uses \",[\"$\",\"code\",null,{\"children\":\"openTrackedStep\"}],\" with opening \",[\"$\",\"code\",null,{\"children\":\"optional\"}],\". It waits for \",[\"$\",\"code\",null,{\"children\":\"frame.result\"}],\" the same way as \",[\"$\",\"code\",null,{\"children\":\"openStep\"}],\". A failed or not finished optional result does not stop the run.\"]}]\n"])</script><script>self.__next_f.push([1,"38:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"groups-children-and-choice\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#groups-children-and-choice\",\"className\":\"peer\",\"children\":\"Groups, children, and choice\"}],[\"$\",\"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,"39:[\"$\",\"p\",null,{\"children\":[\"On a new group, \",[\"$\",\"code\",null,{\"children\":\"waitGroup\"}],\" stores \",[\"$\",\"code\",null,{\"children\":\"rule: { form: \\\"all\\\" }\"}],\", then calls \",[\"$\",\"code\",null,{\"children\":\"define\"}],\". \",[\"$\",\"code\",null,{\"children\":\"sealGroup\"}],\" seals the report when \",[\"$\",\"code\",null,{\"children\":\"judgeRule\"}],\" returns success. A failure or a not finished judgment closes the still-open required and optional steps and stops the run. Until then \",[\"$\",\"code\",null,{\"children\":\"waitGroup\"}],\" sets \",[\"$\",\"code\",null,{\"children\":\"run.wait\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"{ kind: \\\"group\\\", rule: frame.rule }\"}],\" and throws \",[\"$\",\"code\",null,{\"children\":\"SuspendSignal\"}],\". The call returns \",[\"$\",\"code\",null,{\"children\":\"frame.sealed\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3a:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"takeStep\"}],\" records \",[\"$\",\"code\",null,{\"children\":\"optional\"}],\" or \",[\"$\",\"code\",null,{\"children\":\"required\"}],\" and pushes \",[\"$\",\"code\",null,{\"children\":\"jobFor\"}],\" for a new member that is still live. The group rule counts a required step whose result status is \",[\"$\",\"code\",null,{\"children\":\"done\"}],\", and a child run whose status is \",[\"$\",\"code\",null,{\"children\":\"success\"}],\". An optional step does not count. \",[\"$\",\"code\",null,{\"children\":\"GroupContext.openStep\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"GroupContext.openOptionalStep\"}],\" return nothing.\"]}]\n"])</script><script>self.__next_f.push([1,"3b:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"nestFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openChildren(nestMidFlow, asChildren(sprouted.body))\"}],\". \",[\"$\",\"code\",null,{\"children\":\"nestMidFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openChildren(nestLeafFlow, asChildren(sprouted.body))\"}],\". \",[\"$\",\"code\",null,{\"children\":\"broodFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"ctx.openChildren(broodChildFlow, asChildren(opened.body))\"}],\". The first argument is the flow. \",[\"$\",\"code\",null,{\"children\":\"takeChildren\"}],\" stores it as \",[\"$\",\"code\",null,{\"children\":\"member.flow\"}],\". \",[\"$\",\"code\",null,{\"children\":\"GroupContext\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"packages/contract/src/index.ts\"}],\" types that parameter as \",[\"$\",\"code\",null,{\"children\":\"flow: FlowName\"}],\". A child member with no identities counts as done.\"]}]\n"])</script><script>self.__next_f.push([1,"3c:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"FlowContext.openChildren\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"openOptionalChildren\"}],\" take \",[\"$\",\"code\",null,{\"children\":\"flow\"}],\" as a \",[\"$\",\"code\",null,{\"children\":\"FlowName\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"elements\"}],\" as one \",[\"$\",\"code\",null,{\"children\":\"ChildElement\"}],\" or a readonly list. Each element has \",[\"$\",\"code\",null,{\"children\":\"identifier\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"startingData\"}],\". On the context from \",[\"$\",\"code\",null,{\"children\":\"contextFor\"}],\", one child waits while \",[\"$\",\"code\",null,{\"children\":\"child.run.status\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"running\"}],\" and then returns \",[\"$\",\"code\",null,{\"children\":\"resultFrom(child)\"}],\", including that child's finish body. A failed required child ends the parent in failure. A not finished required child ends the parent not finished. An optional child does not stop the parent. When the argument is a list, \",[\"$\",\"code\",null,{\"children\":\"childCall\"}],\" stores \",[\"$\",\"code\",null,{\"children\":\"normalizeChildrenRule\"}],\" of the call's \",[\"$\",\"code\",null,{\"children\":\"rule\"}],\", or \",[\"$\",\"code\",null,{\"children\":\"{ form: \\\"all\\\" }\"}],\" when the call omits it. The same rule is accepted on both openings. \",[\"$\",\"code\",null,{\"children\":\"withinMin\"}],\" stores \",[\"$\",\"code\",null,{\"children\":\"openedAt\"}],\" on the first opening. \",[\"$\",\"code\",null,{\"children\":\"sealChildren\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"judgeChildren\"}],\". A required miss stops the parent. An optional miss seals the report and the parent continues. An empty list records the opening and returns a sealed report. \",[\"$\",\"code\",null,{\"children\":\"nestFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestMidFlow\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"broodFlow\"}],\" open child flows with \",[\"$\",\"code\",null,{\"children\":\"openChildren\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3d:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"uniqueElements\"}],\" keeps the first element of each \",[\"$\",\"code\",null,{\"children\":\"identity\"}],\". \",[\"$\",\"code\",null,{\"children\":\"ensureChild\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"begin\"}],\" when the child is missing. When \",[\"$\",\"code\",null,{\"children\":\"restart\"}],\" is true and the child is not \",[\"$\",\"code\",null,{\"children\":\"running\"}],\", it calls \",[\"$\",\"code\",null,{\"children\":\"begin\"}],\" again unless the run is \",[\"$\",\"code\",null,{\"children\":\"success\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"now\"}],\" is still within \",[\"$\",\"code\",null,{\"children\":\"validityEndsAt\"}],\". The flow \",[\"$\",\"code\",null,{\"children\":\"openChildren\"}],\" passes \",[\"$\",\"code\",null,{\"children\":\"restart\"}],\" as \",[\"$\",\"code\",null,{\"children\":\"!isReread\"}],\". \",[\"$\",\"code\",null,{\"children\":\"entityId\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"packages/contract/src/index.ts\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"`${organization}/${flow}/${identity}`\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3e:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"choose\"}],\" stores the arms in the order of \",[\"$\",\"code\",null,{\"children\":\"arm.name\"}],\". It runs every arm whose name differs from \",[\"$\",\"code\",null,{\"children\":\"taken\"}],\" under \",[\"$\",\"code\",null,{\"children\":\"contextFor(..., \\\"discarded\\\")\"}],\", then runs the taken arm under \",[\"$\",\"code\",null,{\"children\":\"\\\"live\\\"\"}],\". A discarded opening is \",[\"$\",\"code\",null,{\"children\":\"discardedStep\"}],\", with \",[\"$\",\"code\",null,{\"children\":\"discarded: true\"}],\" and no \",[\"$\",\"code\",null,{\"children\":\"jobs.push\"}],\". \",[\"$\",\"code\",null,{\"children\":\"acceptResult\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"taken([])\"}],\" when \",[\"$\",\"code\",null,{\"children\":\"findStep\"}],\" misses the step and \",[\"$\",\"code\",null,{\"children\":\"findDiscardedStep\"}],\" finds it. Duplicate arm names, or a \",[\"$\",\"code\",null,{\"children\":\"taken\"}],\" value absent from those names, throw \",[\"$\",\"code\",null,{\"children\":\"Reread diverged at a choice\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"3f:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"paceFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"loadFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"softenFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"asideFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestMidFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestLeafFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"broodFlow\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"broodChildFlow\"}],\" call \",[\"$\",\"code\",null,{\"children\":\"ctx.finish()\"}],\". \",[\"$\",\"code\",null,{\"children\":\"stallFlow\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"faultFlow\"}],\" open one required step and do not call \",[\"$\",\"code\",null,{\"children\":\"finish()\"}],\". \",[\"$\",\"code\",null,{\"children\":\"finish\"}],\" throws \",[\"$\",\"code\",null,{\"children\":\"FinishSignal\"}],\" in live mode, and the \",[\"$\",\"code\",null,{\"children\":\"catch\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"reread\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"settleReachedEnd\"}],\", the same close as a normal return. \",[\"$\",\"code\",null,{\"children\":\"fail\"}],\" throws \",[\"$\",\"code\",null,{\"children\":\"FailSignal\"}],\", and that \",[\"$\",\"code\",null,{\"children\":\"catch\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"settle\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"failure\"}],\". None of these flows call \",[\"$\",\"code\",null,{\"children\":\"fail()\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"40:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"registration-and-the-step-implementation\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#registration-and-the-step-implementation\",\"className\":\"peer\",\"children\":\"Registration and the step implementation\"}],[\"$\",\"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,"41:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"defineFlow\"}],\" returns the flow with \",[\"$\",\"code\",null,{\"children\":\"name\"}],\", \",[\"$\",\"code\",null,{\"children\":\"entityType\"}],\", \",[\"$\",\"code\",null,{\"children\":\"validityDurationMs\"}],\", \",[\"$\",\"code\",null,{\"children\":\"source\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"run\"}],\". Each fixture flow sets \",[\"$\",\"code\",null,{\"children\":\"validityDurationMs\"}],\" to null and \",[\"$\",\"code\",null,{\"children\":\"entityType\"}],\" to its name. \",[\"$\",\"code\",null,{\"children\":\"fixtureFlows\"}],\" holds \",[\"$\",\"code\",null,{\"children\":\"pace\"}],\", \",[\"$\",\"code\",null,{\"children\":\"load\"}],\", \",[\"$\",\"code\",null,{\"children\":\"stall\"}],\", \",[\"$\",\"code\",null,{\"children\":\"fault\"}],\", \",[\"$\",\"code\",null,{\"children\":\"soften\"}],\", \",[\"$\",\"code\",null,{\"children\":\"aside\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nest\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nest-mid\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nest-leaf\"}],\", \",[\"$\",\"code\",null,{\"children\":\"brood\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"brood-child\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createRegistry\"}],\" throws \",[\"$\",\"code\",null,{\"children\":\"`Unknown flow ${name}`\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"get\"}],\" when a name is missing. \",[\"$\",\"code\",null,{\"children\":\"ensureChild\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"registry.get(flowName)\"}],\" for the child flow.\"]}]\n"])</script><script>self.__next_f.push([1,"42:[\"$\",\"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: \",[\"$\",\"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\"}],\". \",[\"$\",\"code\",null,{\"children\":\"fixtureSteps\"}],\" stores each bound step under \",[\"$\",\"code\",null,{\"children\":\"flow/step\"}],\". \",[\"$\",\"code\",null,{\"children\":\"dwell\"}],\" also answers \",[\"$\",\"code\",null,{\"children\":\"mark\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"pass-1\"}],\" through \",[\"$\",\"code\",null,{\"children\":\"pass-10\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"43:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"dwell\"}],\" waits the configured milliseconds, then returns done. \",[\"$\",\"code\",null,{\"children\":\"stall\"}],\" throws \",[\"$\",\"code\",null,{\"children\":\"StepHeld\"}],\". \",[\"$\",\"code\",null,{\"children\":\"miss\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"{ kind: \\\"result\\\", status: \\\"failed\\\", discriminant: \\\"failed\\\" }\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"44:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"runJob\"}],\" loads the bound step with \",[\"$\",\"code\",null,{\"children\":\"stepBinding\"}],\". A thrown \",[\"$\",\"code\",null,{\"children\":\"StepHeld\"}],\" returns before \",[\"$\",\"code\",null,{\"children\":\"acceptResult\"}],\". When \",[\"$\",\"code\",null,{\"children\":\"implementation.run\"}],\" throws and \",[\"$\",\"code\",null,{\"children\":\"openingFor\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"optional\"}],\" or \",[\"$\",\"code\",null,{\"children\":\"detached\"}],\", \",[\"$\",\"code\",null,{\"children\":\"runJob\"}],\" sends \",[\"$\",\"code\",null,{\"children\":\"{ kind: \\\"result\\\", status: \\\"failed\\\", discriminant: \\\"failed\\\" }\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"acceptResult\"}],\". Any other thrown error is rethrown.\"]}]\n"])</script><script>self.__next_f.push([1,"45:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"the-run\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#the-run\",\"className\":\"peer\",\"children\":\"The run\"}],[\"$\",\"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:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/server.ts\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openFixtureService\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"createMemoryClient\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"watchWorkers: true\"}],\". That opens \",[\"$\",\"code\",null,{\"children\":\"createService\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"flows: fixtureFlows\"}],\", \",[\"$\",\"code\",null,{\"children\":\"steps: fixtureSteps\"}],\", \",[\"$\",\"code\",null,{\"children\":\"entities: createPostgresEntities(pool)\"}],\", \",[\"$\",\"code\",null,{\"children\":\"metrics: createMetricPublisher(redis)\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"metricReads: createMetricsReader(clickhouse)\"}],\". \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" does not call \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\". \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture seed\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"seedOrganization\"}],\" only when the organization exports \",[\"$\",\"code\",null,{\"children\":\"catalogSeed\"}],\". The fixture does not, so that command starts no run and opens no client database. The log line is \",[\"$\",\"code\",null,{\"children\":\"seeded fixture 0 runs\"}],\". \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\" writes a run into the orchestrator database.\"]}]\n"])</script><script>self.__next_f.push([1,"47:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"startRun\"}],\" loads the row with \",[\"$\",\"code\",null,{\"children\":\"loadFocus\"}],\", calls \",[\"$\",\"code\",null,{\"children\":\"engine.request\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"persist\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"afterCommit\"}],\". \",[\"$\",\"code\",null,{\"children\":\"request\"}],\" addresses the entity with \",[\"$\",\"code\",null,{\"children\":\"entityId\"}],\". A run whose \",[\"$\",\"code\",null,{\"children\":\"status\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"running\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"{ kind: \\\"waiting\\\" }\"}],\". A \",[\"$\",\"code\",null,{\"children\":\"success\"}],\" run with \",[\"$\",\"code\",null,{\"children\":\"finishedAt\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"validityEndsAt\"}],\" set, and \",[\"$\",\"code\",null,{\"children\":\"input.at\"}],\" at or before that instant, returns \",[\"$\",\"code\",null,{\"children\":\"{ kind: \\\"recorded\\\" }\"}],\". Every other request goes through \",[\"$\",\"code\",null,{\"children\":\"begin\"}],\". \",[\"$\",\"code\",null,{\"children\":\"begin\"}],\" adds one to \",[\"$\",\"code\",null,{\"children\":\"generation\"}],\", sets \",[\"$\",\"code\",null,{\"children\":\"run.status\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"running\"}],\", copies \",[\"$\",\"code\",null,{\"children\":\"input.startingData\"}],\", clears \",[\"$\",\"code\",null,{\"children\":\"validityEndsAt\"}],\", and calls \",[\"$\",\"code\",null,{\"children\":\"drive\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"48:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"drive\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"applySilence\"}],\", then \",[\"$\",\"code\",null,{\"children\":\"reread\"}],\". \",[\"$\",\"code\",null,{\"children\":\"applySilence\"}],\" pushes \",[\"$\",\"code\",null,{\"children\":\"jobFor\"}],\" while the 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\"}],\" it writes status \",[\"$\",\"code\",null,{\"children\":\"not_finished\"}],\" and calls \",[\"$\",\"code\",null,{\"children\":\"pushStep\"}],\". \",[\"$\",\"code\",null,{\"children\":\"Service.advance\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"engine.advance\"}],\" for each batch from \",[\"$\",\"code\",null,{\"children\":\"session.due\"}],\". \",[\"$\",\"code\",null,{\"children\":\"due\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"createPostgresEntities\"}],\" selects \",[\"$\",\"code\",null,{\"children\":\"status = 'running' and silence_due_at \u003c= $1\"}],\". \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" reaches the engine through \",[\"$\",\"code\",null,{\"children\":\"openFixtureService\"}],\", and it also calls \",[\"$\",\"code\",null,{\"children\":\"startMetricFlush\"}],\", \",[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"server.listen\"}],\". \",[\"$\",\"code\",null,{\"children\":\"seedOrganization\"}],\" is the \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\" for an exported \",[\"$\",\"code\",null,{\"children\":\"catalogSeed\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"49:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"afterCommit\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"enqueueStep\"}],\" for each job and \",[\"$\",\"code\",null,{\"children\":\"metrics.publish\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"flowMetrics\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"stepMetrics\"}],\". \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/work.ts\"}],\" starts \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\" for each kind. Each job calls \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\". The orchestrator applies the published result and calls \",[\"$\",\"code\",null,{\"children\":\"engine.acceptResult\"}],\" inside \",[\"$\",\"code\",null,{\"children\":\"deps.entities.transaction\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"4a:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"settle\"}],\" returns at once when \",[\"$\",\"code\",null,{\"children\":\"entity.run.status\"}],\" is not \",[\"$\",\"code\",null,{\"children\":\"running\"}],\". Otherwise it sets \",[\"$\",\"code\",null,{\"children\":\"status\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"finishedAt\"}],\", clears \",[\"$\",\"code\",null,{\"children\":\"wait\"}],\", and pushes one \",[\"$\",\"code\",null,{\"children\":\"FlowMetric\"}],\" with that \",[\"$\",\"code\",null,{\"children\":\"outcome\"}],\", the run \",[\"$\",\"code\",null,{\"children\":\"generation\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"durationMs\"}],\". On \",[\"$\",\"code\",null,{\"children\":\"success\"}],\", \",[\"$\",\"code\",null,{\"children\":\"validityEndsAt\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"addMs(now, validityDurationMs)\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"registry.get(entity.flow)\"}],\". \",[\"$\",\"code\",null,{\"children\":\"pushStep\"}],\" pushes one \",[\"$\",\"code\",null,{\"children\":\"StepMetric\"}],\" when \",[\"$\",\"code\",null,{\"children\":\"discarded\"}],\" is unset and the step has \",[\"$\",\"code\",null,{\"children\":\"openedAt\"}],\", \",[\"$\",\"code\",null,{\"children\":\"endedAt\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"result\"}],\". When \",[\"$\",\"code\",null,{\"children\":\"acceptResult\"}],\" receives a worker id, that id is on the step metric. A silence \",[\"$\",\"code\",null,{\"children\":\"not_finished\"}],\" has no worker id. \",[\"$\",\"code\",null,{\"children\":\"FlowMetric\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"StepMetric\"}],\" are declared in \",[\"$\",\"code\",null,{\"children\":\"packages/contract/src/index.ts\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"4b:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"transient-files\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#transient-files\",\"className\":\"peer\",\"children\":\"Transient files\"}],[\"$\",\"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,"4c:[\"$\",\"p\",null,{\"children\":[\"A step writes a transient file with \",[\"$\",\"code\",null,{\"children\":\"input.files.put\"}],\". The bytes live in the platform bucket under \",[\"$\",\"code\",null,{\"children\":\"runs/{organization}/{flow}/{identifier}/{generation}/{name}\"}],\". \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\" records every name that \",[\"$\",\"code\",null,{\"children\":\"put\"}],\" wrote and stores that list on the step result. A replay from a step publishes a copy of each kept name into the new generation before the jobs of that generation are sent. A full replay does not copy. The flow run page in the console lists them. Reading a name still uses the current generation.\"]}]\n"])</script><script>self.__next_f.push([1,"4d:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"listRun\"}],\" on \",[\"$\",\"code\",null,{\"children\":\"TransientFiles\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/transient-files.ts\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"{ name, bytes }[]\"}],\" for that prefix, sorted by name. \",[\"$\",\"code\",null,{\"children\":\"GET /entities/:id?files=1\"}],\" on \",[\"$\",\"code\",null,{\"children\":\"ReadController\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"listRunFilesFor\"}],\" after \",[\"$\",\"code\",null,{\"children\":\"parseFlowRunPath\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"readGeneration\"}],\". The run must still be stored and the person must belong to that organization. \",[\"$\",\"code\",null,{\"children\":\"GET /entities/:id?file={name}\"}],\" returns the bytes with the stored content type. A name that is not one segment, or a missing file, is 404.\"]}]\n"])</script><script>self.__next_f.push([1,"4e:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"EntityView\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/console/src/design/views.tsx\"}],\" renders a \",[\"$\",\"code\",null,{\"children\":\"DataTable\"}],\" titled Files, empty copy \",[\"$\",\"code\",null,{\"children\":\"No file.\"}],\", page size 50. \",[\"$\",\"code\",null,{\"children\":\"EntityScreen\"}],\" loads that list with \",[\"$\",\"code\",null,{\"children\":\"listRunFiles\"}],\" and does not send \",[\"$\",\"code\",null,{\"children\":\"files\"}],\" on the 2s tree poll. A row opens a dialog: \",[\"$\",\"code\",null,{\"children\":\"readRunFile\"}],\" previews JSON or text under 1 MiB, and Download goes to \",[\"$\",\"code\",null,{\"children\":\"GET /api/run-file\"}],\". After the flow run retention the run is gone and those files are gone.\"]}]\n"])</script><script>self.__next_f.push([1,"4f:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"postgres-and-clickhouse\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#postgres-and-clickhouse\",\"className\":\"peer\",\"children\":\"Postgres and ClickHouse\"}],[\"$\",\"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,"50:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"persist\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"session.upsert\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createPostgresEntities\"}],\" inserts the run into \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\" and, on conflict of \",[\"$\",\"code\",null,{\"children\":\"organization_id, flow, identity\"}],\", updates \",[\"$\",\"code\",null,{\"children\":\"status\"}],\", \",[\"$\",\"code\",null,{\"children\":\"generation\"}],\", \",[\"$\",\"code\",null,{\"children\":\"started_at\"}],\", \",[\"$\",\"code\",null,{\"children\":\"finished_at\"}],\", \",[\"$\",\"code\",null,{\"children\":\"validity_ends_at\"}],\", \",[\"$\",\"code\",null,{\"children\":\"silence_due_at\"}],\", \",[\"$\",\"code\",null,{\"children\":\"rule\"}],\", \",[\"$\",\"code\",null,{\"children\":\"starting_data\"}],\", \",[\"$\",\"code\",null,{\"children\":\"operations\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"wait\"}],\". That row is the current flow run. \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" passes \",[\"$\",\"code\",null,{\"children\":\"createPostgresEntities(pool)\"}],\" as \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"51:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"createMetricPublisher\"}],\" appends each metric to the Redis stream \",[\"$\",\"code\",null,{\"children\":\"metrics\"}],\" on the shared Redis client. That client also writes dispatch tokens. \",[\"$\",\"code\",null,{\"children\":\"LoopsService\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"startMetricFlush\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"createRedisResultBus\"}],\" each with \",[\"$\",\"code\",null,{\"children\":\"redis.duplicate()\"}],\". A blocking read on \",[\"$\",\"code\",null,{\"children\":\"metrics\"}],\" does not stall \",[\"$\",\"code\",null,{\"children\":\"step-results\"}],\", and the reverse does not stall the shared client. \",[\"$\",\"code\",null,{\"children\":\"startMetricFlush\"}],\" inserts flow rows with \",[\"$\",\"code\",null,{\"children\":\"insertFlowMetrics\"}],\" into \",[\"$\",\"code\",null,{\"children\":\"flow_run_metrics\"}],\" and step rows with \",[\"$\",\"code\",null,{\"children\":\"insertStepMetrics\"}],\" into \",[\"$\",\"code\",null,{\"children\":\"step_run_metrics\"}],\". \",[\"$\",\"code\",null,{\"children\":\"onApplicationShutdown\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"quit()\"}],\" on those two duplicated clients.\"]}]\n"])</script><script>self.__next_f.push([1,"52:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"flowsFor\"}],\" sets the list \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"countEntities\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"running\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"countRunning\"}],\". \",[\"$\",\"code\",null,{\"children\":\"mergeFlows\"}],\" copies each flow's \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"running\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"countsByFlow\"}],\", and includes every flow registered in \",[\"$\",\"code\",null,{\"children\":\"deps.flows\"}],\" even when that flow has no entity and no run. Those three methods count rows in \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\". \",[\"$\",\"code\",null,{\"children\":\"countRunning\"}],\" and the \",[\"$\",\"code\",null,{\"children\":\"running\"}],\" column keep \",[\"$\",\"code\",null,{\"children\":\"status = 'running'\"}],\". \",[\"$\",\"code\",null,{\"children\":\"mergeFlows\"}],\" fills \",[\"$\",\"code\",null,{\"children\":\"runs\"}],\", \",[\"$\",\"code\",null,{\"children\":\"success\"}],\", \",[\"$\",\"code\",null,{\"children\":\"failure\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"notFinished\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"flowOutcomes\"}],\", \",[\"$\",\"code\",null,{\"children\":\"p50Ms\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"flowDurations\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"trend\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"flowTrend\"}],\". \",[\"$\",\"code\",null,{\"children\":\"flowsFor\"}],\" sets \",[\"$\",\"code\",null,{\"children\":\"failureRate\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"failure / runs\"}],\" when \",[\"$\",\"code\",null,{\"children\":\"runs\"}],\" is not \",[\"$\",\"code\",null,{\"children\":\"0\"}],\". \",[\"$\",\"code\",null,{\"children\":\"createMetricsReader\"}],\" reads the outcome, duration, and trend queries from \",[\"$\",\"code\",null,{\"children\":\"flow_runs_hourly\"}],\". \",[\"$\",\"code\",null,{\"children\":\"flowFor\"}],\" reads that flow's \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"running\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"countsByFlow\"}],\", sets \",[\"$\",\"code\",null,{\"children\":\"failureRate\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"failure / runs\"}],\" when \",[\"$\",\"code\",null,{\"children\":\"runs\"}],\" is not \",[\"$\",\"code\",null,{\"children\":\"0\"}],\", fills \",[\"$\",\"code\",null,{\"children\":\"series\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"flowSeries\"}],\", reads step rows from \",[\"$\",\"code\",null,{\"children\":\"stepCounts\"}],\" on \",[\"$\",\"code\",null,{\"children\":\"step_runs_hourly\"}],\", and reads \",[\"$\",\"code\",null,{\"children\":\"reasons\"}],\" from \",[\"$\",\"code\",null,{\"children\":\"reasons_daily\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"53:[\"$\",\"h3\",null,{\"className\":\"flex scroll-m-28 flex-row items-center gap-2\",\"id\":\"the-flows-screen\",\"children\":[[\"$\",\"a\",null,{\"data-card\":\"\",\"href\":\"#the-flows-screen\",\"className\":\"peer\",\"children\":\"The Flows screen\"}],[\"$\",\"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,"54:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"createReadServer\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/http.ts\"}],\" handles \",[\"$\",\"code\",null,{\"children\":\"GET\"}],\". Any other method is status \",[\"$\",\"code\",null,{\"children\":\"405\"}],\". \",[\"$\",\"code\",null,{\"children\":\"GET /organizations/:organizationId/flows\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"flowsFor\"}],\" after \",[\"$\",\"code\",null,{\"children\":\"metricRange\"}],\". \",[\"$\",\"code\",null,{\"children\":\"GET /organizations/:organizationId/flows/:flow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"flowFor\"}],\". The resolver in \",[\"$\",\"code\",null,{\"children\":\"server.ts\"}],\" returns the text after \",[\"$\",\"code\",null,{\"children\":\"Bearer \"}],\". \",[\"$\",\"code\",null,{\"children\":\"POST /organizations/:organizationId/flows/:flow\"}],\" on \",[\"$\",\"code\",null,{\"children\":\"ReadController\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openFlow\"}],\", which calls \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"55:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"FlowsPage\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/console/src/app/organizations/[organizationId]/flows/page.tsx\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"currentPerson\"}],\" and renders \",[\"$\",\"code\",null,{\"children\":\"SignedOutView\"}],\" when that person is missing. It loads the list with \",[\"$\",\"code\",null,{\"children\":\"readOrchestrator\"}],\" at \",[\"$\",\"code\",null,{\"children\":\"/organizations/${organizationId}/flows?range=${range}\"}],\" and renders \",[\"$\",\"code\",null,{\"children\":\"FlowsRoute\"}],\" inside \",[\"$\",\"code\",null,{\"children\":\"ConsoleFrame\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"active=\\\"flows\\\"\"}],\". The nav item labeled \",[\"$\",\"code\",null,{\"children\":\"Flows\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"ConsoleFrame\"}],\" pushes \",[\"$\",\"code\",null,{\"children\":\"`/organizations/${organizationId}/flows`\"}],\".\"]}]\n"])</script><script>self.__next_f.push([1,"56:[\"$\",\"p\",null,{\"children\":[[\"$\",\"code\",null,{\"children\":\"FlowsView\"}],\" shows the title \",[\"$\",\"code\",null,{\"children\":\"Flows\"}],\", stats for Entities, Flow runs, Failure rate, and Running now, and one table row per flow. \",[\"$\",\"code\",null,{\"children\":\"FlowsRoute\"}],\" sends \",[\"$\",\"code\",null,{\"children\":\"onOpen\"}],\" to \",[\"$\",\"code\",null,{\"children\":\"`/organizations/${organizationId}/flows/${flow}?range=${range}`\"}],\". \",[\"$\",\"code\",null,{\"children\":\"FlowPage\"}],\" loads that path with \",[\"$\",\"code\",null,{\"children\":\"readOrchestrator\"}],\" and calls \",[\"$\",\"code\",null,{\"children\":\"notFound()\"}],\" when the load fails. The detail view shows the flow name, flow runs, step runs, failure rate, p50, Running now, the outcome series, the step table, and the reason list. The Start button opens a dialog for the identity and the payload. \",[\"$\",\"code\",null,{\"children\":\"startFlow\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/console/src/app/organizations/[organizationId]/flows/actions.ts\"}],\" posts that body to \",[\"$\",\"code\",null,{\"children\":\"POST /organizations/:organizationId/flows/:flow\"}],\". \",[\"$\",\"code\",null,{\"children\":\"openFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"startRun\"}],\" with silence duration \",[\"$\",\"code\",null,{\"children\":\"60_000\"}],\", resend maximum \",[\"$\",\"code\",null,{\"children\":\"1\"}],\", and the rule from the flow definition. \",[\"$\",\"code\",null,{\"children\":\"flowRange\"}],\" returns \",[\"$\",\"code\",null,{\"children\":\"24h\"}],\", \",[\"$\",\"code\",null,{\"children\":\"7d\"}],\", or \",[\"$\",\"code\",null,{\"children\":\"30d\"}],\", and returns \",[\"$\",\"code\",null,{\"children\":\"24h\"}],\" for any other query value.\"]}]\n"])</script><script>self.__next_f.push([1,"57:[\"$\",\"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,"58:[\"$\",\"ol\",null,{\"children\":[\"\\n\",[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"In \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/perf/\"}],\", add a \",[\"$\",\"code\",null,{\"children\":\"FlowFunction\"}],\" next to \",[\"$\",\"code\",null,{\"children\":\"paceFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"loadFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"stallFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"faultFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"softenFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"asideFlow\"}],\", \",[\"$\",\"code\",null,{\"children\":\"nestFlow\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"broodFlow\"}],\". Call \",[\"$\",\"code\",null,{\"children\":\"openStep\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openOptionalStep\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openDetachedStep\"}],\", \",[\"$\",\"code\",null,{\"children\":\"openChildren\"}],\", or \",[\"$\",\"code\",null,{\"children\":\"finish\"}],\" the way those flows do. \",[\"$\",\"code\",null,{\"children\":\"paceFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openStep(dwellStep)\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"openStep(\\\"mark\\\")\"}],\". \",[\"$\",\"code\",null,{\"children\":\"softenFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openOptionalStep(missStep)\"}],\". \",[\"$\",\"code\",null,{\"children\":\"asideFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openDetachedStep(stallStep)\"}],\". \",[\"$\",\"code\",null,{\"children\":\"nestFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openChildren(nestMidFlow, asChildren(sprouted.body))\"}],\". \",[\"$\",\"code\",null,{\"children\":\"broodFlow\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"openChildren(broodChildFlow, asChildren(opened.body))\"}],\". \",[\"$\",\"code\",null,{\"children\":\"waitGroup\"}],\", \",[\"$\",\"code\",null,{\"children\":\"choose\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"fail\"}],\" are on \",[\"$\",\"code\",null,{\"children\":\"FlowContext\"}],\". Append the flow to \",[\"$\",\"code\",null,{\"children\":\"flows\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/index.ts\"}],\". \",[\"$\",\"code\",null,{\"children\":\"fixtureFlows\"}],\" is that list.\"]}],\"\\n\"]}],\"\\n\",[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"Register the function with \",[\"$\",\"code\",null,{\"children\":\"defineFlow\"}],\", which sets \",[\"$\",\"code\",null,{\"children\":\"name\"}],\", \",[\"$\",\"code\",null,{\"children\":\"entityType\"}],\", \",[\"$\",\"code\",null,{\"children\":\"validityDurationMs\"}],\", \",[\"$\",\"code\",null,{\"children\":\"source\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"run\"}],\", and append that value to \",[\"$\",\"code\",null,{\"children\":\"flows\"}],\". Register each step implementation on the \",[\"$\",\"code\",null,{\"children\":\"steps\"}],\" array in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/src/steps.ts\"}],\". \",[\"$\",\"code\",null,{\"children\":\"bindOrganization\"}],\" writes \",[\"$\",\"code\",null,{\"children\":\"`${flow}/${step}`\"}],\" and sets the kind to \",[\"$\",\"code\",null,{\"children\":\"`fixture-${step.name}`\"}],\".\"]}],\"\\n\"]}],\"\\n\",[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"Copy \",[\"$\",\"code\",null,{\"children\":\".env.example\"}],\" to \",[\"$\",\"code\",null,{\"children\":\".env\"}],\" in the repository root. \",[\"$\",\"code\",null,{\"children\":\"loadRootEnv\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/src/env.ts\"}],\" reads that file. \",[\"$\",\"code\",null,{\"children\":\"requiredEnv\"}],\" reads \",[\"$\",\"code\",null,{\"children\":\"DATABASE_URL\"}],\", \",[\"$\",\"code\",null,{\"children\":\"REDIS_URL\"}],\", and \",[\"$\",\"code\",null,{\"children\":\"CLICKHOUSE_URL\"}],\", and throws \",[\"$\",\"code\",null,{\"children\":\"$${name} is required\"}],\" when one is missing. Start the orchestrator Postgres with \",[\"$\",\"code\",null,{\"children\":\"npx supabase start\"}],\". Start Redis and ClickHouse with \",[\"$\",\"code\",null,{\"children\":\"docker compose up -d redis clickhouse\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"redis\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"clickhouse\"}],\" services are the ones in \",[\"$\",\"code\",null,{\"children\":\"docker-compose.yml\"}],\". Run \",[\"$\",\"code\",null,{\"children\":\"npx supabase status\"}],\" and set \",[\"$\",\"code\",null,{\"children\":\"NEXT_PUBLIC_SUPABASE_ANON_KEY\"}],\" in \",[\"$\",\"code\",null,{\"children\":\".env\"}],\" to the anon key it prints. \",[\"$\",\"code\",null,{\"children\":\"supabaseAnonKey\"}],\" in \",[\"$\",\"code\",null,{\"children\":\"apps/console/src/lib/supabase-env.ts\"}],\" drops an empty value, and \",[\"$\",\"code\",null,{\"children\":\"LoginPage\"}],\" then renders \",[\"$\",\"code\",null,{\"children\":\"SignInForm\"}],\" with \",[\"$\",\"code\",null,{\"children\":\"configured={false}\"}],\".\"]}],\"\\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 \",\"$L5c\",\" runs \",\"$L5d\",\". \",\"$L5e\",\" calls \",\"$L5f\",\" with \",\"$L60\",\" and \",\"$L61\",\", then \",\"$L62\",\". It does not call \",\"$L63\",\". The log line is \",\"$L64\",\".\"]}],\"\\n\"]}],\"\\n\",\"$L65\",\"\\n\",\"$L66\",\"\\n\",\"$L67\",\"\\n\"]}]\n"])</script><script>self.__next_f.push([1,"59:[\"$\",\"div\",null,{\"className\":\"flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden\",\"children\":[\"$undefined\",\"$undefined\"]}]\n5a:[\"$\",\"$L68\",null,{\"items\":\"$undefined\"}]\n5b:[\"$\",\"$L69\",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\"]}],[\"$\",\"$L6a\",null,{\"label\":\"toc\"}]]}],[\"$\",\"$L2a\",null,{\"children\":[\"$\",\"$L2b\",null,{}]}],\"$undefined\"]}]\n"])</script><script>self.__next_f.push([1,"5c:[\"$\",\"code\",null,{\"children\":\"apps/orchestrator/package.json\"}]\n5d:[\"$\",\"code\",null,{\"children\":\"tsx src/server.ts\"}]\n5e:[\"$\",\"code\",null,{\"children\":\"server.ts\"}]\n5f:[\"$\",\"code\",null,{\"children\":\"openFixtureService\"}]\n60:[\"$\",\"code\",null,{\"children\":\"fixtureFlows\"}]\n61:[\"$\",\"code\",null,{\"children\":\"fixtureSteps\"}]\n62:[\"$\",\"code\",null,{\"children\":\"server.listen(3001, \\\"0.0.0.0\\\")\"}]\n63:[\"$\",\"code\",null,{\"children\":\"startRun\"}]\n64:[\"$\",\"code\",null,{\"children\":\"orchestrator http://127.0.0.1:3001\"}]\n"])</script><script>self.__next_f.push([1,"65:[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"In a second terminal, run \",[\"$\",\"code\",null,{\"children\":\"pnpm --filter @ascentstudio/cue-org-fixture work\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"work\"}],\" script in \",[\"$\",\"code\",null,{\"children\":\"organizations/fixture/package.json\"}],\" runs \",[\"$\",\"code\",null,{\"children\":\"tsx src/work.ts\"}],\". \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" loads the organization's secrets once with \",[\"$\",\"code\",null,{\"children\":\"readOrganizationSecrets\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"installEnvironment\"}],\", then calls \",[\"$\",\"code\",null,{\"children\":\"createStepWorker\"}],\". Each job calls \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\". \",[\"$\",\"code\",null,{\"children\":\"consumeAssignment\"}],\" publishes the step result, the orchestrator applies it, and \",[\"$\",\"code\",null,{\"children\":\"settle\"}],\" pushes a \",[\"$\",\"code\",null,{\"children\":\"FlowMetric\"}],\" when it records \",[\"$\",\"code\",null,{\"children\":\"success\"}],\", \",[\"$\",\"code\",null,{\"children\":\"failure\"}],\", or \",[\"$\",\"code\",null,{\"children\":\"not_finished\"}],\". \",[\"$\",\"code\",null,{\"children\":\"startMetricFlush\"}],\" in the orchestrator process inserts that metric into ClickHouse. The log line from \",[\"$\",\"code\",null,{\"children\":\"work.ts\"}],\" is \",[\"$\",\"code\",null,{\"children\":\"fixture workers\"}],\" plus the kind names. \",[\"$\",\"code\",null,{\"children\":\"bindOrganization\"}],\" names \",[\"$\",\"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\"]}]\n"])</script><script>self.__next_f.push([1,"66:[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"In a third terminal, 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\"}],\". To remove runs an organization left behind, run \",[\"$\",\"code\",null,{\"children\":\"pnpm --dir organizations/fixture reset\"}],\". \",[\"$\",\"code\",null,{\"children\":\"resetOrganization\"}],\" deletes rows from \",[\"$\",\"code\",null,{\"children\":\"entity_links\"}],\" and \",[\"$\",\"code\",null,{\"children\":\"entities\"}],\" on the orchestrator database, drains the kind queues, and deletes that organization's metrics. The log line is \",[\"$\",\"code\",null,{\"children\":\"reset fixture\"}],\". \",[\"$\",\"code\",null,{\"children\":\"organizations\"}],\", \",[\"$\",\"code\",null,{\"children\":\"memberships\"}],\", \",[\"$\",\"code\",null,{\"children\":\"secrets\"}],\", and the person in \",[\"$\",\"code\",null,{\"children\":\"deploy/supabase/seed.sql\"}],\" stay.\"]}],\"\\n\"]}]\n"])</script><script>self.__next_f.push([1,"67:[\"$\",\"li\",null,{\"children\":[\"\\n\",[\"$\",\"p\",null,{\"children\":[\"In a fourth terminal, run \",[\"$\",\"code\",null,{\"children\":\"pnpm --filter cue-console dev\"}],\". The \",[\"$\",\"code\",null,{\"children\":\"dev\"}],\" script in \",[\"$\",\"code\",null,{\"children\":\"apps/console/package.json\"}],\" runs \",[\"$\",\"code\",null,{\"children\":\"next dev\"}],\". Open the URL that command prints, at \",[\"$\",\"code\",null,{\"children\":\"/login\"}],\". \",[\"$\",\"code\",null,{\"children\":\"LoginForm\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"signInWithPassword\"}],\" for the Sign in button. The person inserted in \",[\"$\",\"code\",null,{\"children\":\"deploy/supabase/seed.sql\"}],\" has email \",[\"$\",\"code\",null,{\"children\":\"pierre@ascent-studio.fr\"}],\", and the comment there says the password is that same string. \",[\"$\",\"code\",null,{\"children\":\"on_auth_user_created\"}],\" calls \",[\"$\",\"code\",null,{\"children\":\"join_fixture\"}],\", which inserts a membership for organization \",[\"$\",\"code\",null,{\"children\":\"fixture\"}],\". After sign-in, \",[\"$\",\"code\",null,{\"children\":\"LoginForm\"}],\" pushes \",[\"$\",\"code\",null,{\"children\":\"/\"}],\". Open \",[\"$\",\"code\",null,{\"children\":\"/organizations/fixture/flows\"}],\". \",[\"$\",\"code\",null,{\"children\":\"FlowsPage\"}],\" renders \",[\"$\",\"code\",null,{\"children\":\"FlowsView\"}],\" with the title \",[\"$\",\"code\",null,{\"children\":\"Flows\"}],\". Click a row. \",[\"$\",\"code\",null,{\"children\":\"FlowsRoute\"}],\" opens \",[\"$\",\"code\",null,{\"children\":\"/organizations/fixture/flows/\"}],\" plus that flow name. Press Start, enter the identity and the payload, and the console opens \",[\"$\",\"code\",null,{\"children\":\"/entities/\"}],\" plus the organization, the flow, and the identity.\"]}],\"\\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\":\"Flow\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"25:\"$20:metadata\"\n"])</script></body></html>