docs/flow.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1180 1000" width="1180" height="1000" font-family="'DejaVu Sans', 'Segoe UI', sans-serif">
<defs>
<linearGradient id="board" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#0b1c2e"/>
<stop offset="1" stop-color="#06111d"/>
</linearGradient>
<linearGradient id="chip" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#14384f"/>
<stop offset="1" stop-color="#0e2a3e"/>
</linearGradient>
<linearGradient id="rail" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#173d57"/>
<stop offset="1" stop-color="#0c2438"/>
</linearGradient>
<linearGradient id="slot" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#123448"/>
<stop offset="1" stop-color="#0a2032"/>
</linearGradient>
<marker id="tip" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="4" markerHeight="4" orient="auto">
<path d="M0 0 L10 5 L0 10 z" fill="#6fd3f5"/>
</marker>
<marker id="tipd" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="4.5" markerHeight="4.5" orient="auto">
<path d="M0 0 L10 5 L0 10 z" fill="#7fb0cc"/>
</marker>
</defs>
<!-- board -->
<rect x="0" y="0" width="1180" height="1000" fill="url(#board)"/>
<line x1="0" y1="76" x2="1180" y2="76" stroke="#143a52" stroke-width="1"/>
<g fill="#16415c">
<circle cx="40" cy="20" r="2"/><circle cx="1140" cy="20" r="2"/>
<circle cx="40" cy="984" r="2"/><circle cx="1140" cy="984" r="2"/>
</g>
<!-- title -->
<text x="40" y="48" fill="#eaf6ff" font-size="22" font-weight="700">KleeneGraph</text>
<text x="216" y="48" fill="#9fc9e0" font-size="15">from tables to an answer: on one machine, and over machines</text>
<!-- legend -->
<g font-size="12">
<line x1="724" y1="44" x2="760" y2="44" stroke="#6fd3f5" stroke-width="3"/>
<text x="768" y="48" fill="#cfe6f5">built</text>
<line x1="820" y1="44" x2="856" y2="44" stroke="#7fb0cc" stroke-width="2.5" stroke-dasharray="6 4"/>
<text x="864" y="48" fill="#cfe6f5">planned, not built</text>
<circle cx="1004" cy="44" r="9" fill="#ffcf7a" stroke="#a9762f" stroke-width="1"/>
<text x="1004" y="48" fill="#0b1c2e" font-size="10.5" font-weight="700" text-anchor="middle">n</text>
<text x="1020" y="48" fill="#cfe6f5">step n of the list</text>
</g>
<!-- ============================ ONE MACHINE ============================ -->
<text x="40" y="100" fill="#7fa8c4" font-size="10.5" font-weight="700" letter-spacing="1.5">ONE MACHINE</text>
<!-- the next version: rail top to engine top -->
<path d="M430 124 V104 H868 V122" stroke="#6fd3f5" stroke-width="2.5" fill="none" marker-end="url(#tip)"/>
<text x="472" y="97" fill="#86b3cc" font-size="10">the next version: only what changed is read; the earlier run is continued</text>
<!-- Iceberg tables -->
<rect x="36" y="124" width="160" height="140" rx="10" fill="url(#chip)" stroke="#5aa6cf" stroke-width="2"/>
<text x="116" y="150" fill="#eaf6ff" font-size="14.5" font-weight="700" text-anchor="middle">Iceberg tables</text>
<text x="116" y="168" fill="#9fc9e0" font-size="10.5" text-anchor="middle">read where they lie</text>
<g font-family="'DejaVu Sans Mono', monospace" font-size="10" fill="#bfe6ff" text-anchor="middle">
<rect x="50" y="178" width="132" height="22" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.4"/>
<text x="116" y="193">skade warehouse</text>
<rect x="50" y="206" width="132" height="22" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.4"/>
<text x="116" y="221">S3 (feature s3)</text>
<rect x="50" y="234" width="132" height="22" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.4"/>
<text x="116" y="249">REST catalog (rest)</text>
</g>
<rect x="196" y="190" width="6" height="8" fill="#6fd3f5"/>
<!-- X.gar set -->
<rect x="36" y="278" width="160" height="68" rx="10" fill="url(#chip)" stroke="#5aa6cf" stroke-width="2"/>
<text x="116" y="302" fill="#eaf6ff" font-size="13.5" font-weight="700" text-anchor="middle">X.gar set</text>
<text x="116" y="320" fill="#9fc9e0" font-size="10.5" text-anchor="middle">GraphAr files, mapped</text>
<text x="116" y="336" fill="#86b3cc" font-size="10" text-anchor="middle">keyed by its root hash</text>
<rect x="196" y="308" width="6" height="8" fill="#6fd3f5"/>
<!-- Iceberg tables -> kleene-iceberg -->
<path d="M202 194 H238" stroke="#6fd3f5" stroke-width="3" fill="none" marker-end="url(#tip)"/>
<!-- X.gar -> catalog, under the reader -->
<path d="M202 312 H218 V358 H492 V318 H512" stroke="#6fd3f5" stroke-width="3" fill="none" marker-end="url(#tip)"/>
<text x="232" y="373" fill="#86b3cc" font-size="10">kleene-gar: the set's tables read in place</text>
<!-- kleene-iceberg -->
<rect x="240" y="124" width="230" height="222" rx="12" fill="url(#rail)" stroke="#7fc8ea" stroke-width="2.5"/>
<text x="355" y="150" fill="#eaf6ff" font-size="14.5" font-weight="700" text-anchor="middle">kleene-iceberg</text>
<text x="355" y="168" fill="#9fc9e0" font-size="10.5" text-anchor="middle">a sink of Knut's bifröst, nothing written</text>
<g>
<rect x="256" y="180" width="198" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="266" y="195" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">MappingSpec</text>
<text x="266" y="209" fill="#9fc9e0" font-size="9">RON or YAML: vertex, edge steps</text>
<rect x="256" y="220" width="198" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="266" y="235" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">IcebergSet::snapshot</text>
<text x="266" y="249" fill="#9fc9e0" font-size="9">each table at a snapshot id</text>
<rect x="256" y="260" width="198" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="266" y="275" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">kept (table, snapshot)</text>
<text x="266" y="289" fill="#9fc9e0" font-size="9">asked again: no data file is read</text>
<rect x="256" y="300" width="198" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="266" y="315" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">IcebergSet::advance</text>
<text x="266" y="329" fill="#9fc9e0" font-size="9">Delta: rows added, rows removed</text>
</g>
<rect x="470" y="234" width="6" height="8" fill="#6fd3f5"/>
<!-- kleene-iceberg -> catalog -->
<path d="M476 238 H512" stroke="#6fd3f5" stroke-width="3" fill="none" marker-end="url(#tip)"/>
<!-- catalog -->
<rect x="514" y="124" width="200" height="222" rx="10" fill="url(#chip)" stroke="#7fc8ea" stroke-width="2"/>
<text x="614" y="150" fill="#eaf6ff" font-size="14.5" font-weight="700" text-anchor="middle">catalog</text>
<text x="614" y="168" fill="#9fc9e0" font-size="10.5" text-anchor="middle">kleene-plan</text>
<g>
<rect x="530" y="180" width="168" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="540" y="195" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">node label</text>
<text x="540" y="209" fill="#9fc9e0" font-size="9">its ids</text>
<rect x="530" y="220" width="168" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="540" y="235" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">edge label</text>
<text x="540" y="249" fill="#9fc9e0" font-size="9">a sparse matrix, both ways</text>
<rect x="530" y="260" width="168" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="540" y="275" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">property</text>
<text x="540" y="289" fill="#9fc9e0" font-size="9">a typed column</text>
</g>
<text x="614" y="316" fill="#86b3cc" font-size="10" text-anchor="middle">the same catalog from</text>
<text x="614" y="331" fill="#86b3cc" font-size="10" text-anchor="middle">Iceberg and from X.gar</text>
<rect x="714" y="234" width="6" height="8" fill="#6fd3f5"/>
<!-- catalog -> engine -->
<path d="M720 238 H756" stroke="#6fd3f5" stroke-width="3" fill="none" marker-end="url(#tip)"/>
<!-- engine -->
<rect x="758" y="124" width="220" height="222" rx="10" fill="url(#chip)" stroke="#7fc8ea" stroke-width="2"/>
<text x="868" y="150" fill="#eaf6ff" font-size="14.5" font-weight="700" text-anchor="middle">engine</text>
<text x="868" y="168" fill="#9fc9e0" font-size="10.5" text-anchor="middle">kleene-datalog, kleene-gql</text>
<g>
<rect x="774" y="180" width="188" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="784" y="195" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">Datalog rules</text>
<text x="784" y="209" fill="#9fc9e0" font-size="9">a proof for every fact</text>
<rect x="774" y="220" width="188" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="784" y="235" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">GQL read queries</text>
<text x="784" y="249" fill="#9fc9e0" font-size="9">the plan picks an index</text>
<rect x="774" y="260" width="188" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="784" y="275" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">semiring kernels</text>
<text x="784" y="289" fill="#9fc9e0" font-size="9">CPU, or GPU through CubeCL</text>
<rect x="774" y="300" width="188" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="784" y="315" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">Engine::continue_with</text>
<text x="784" y="329" fill="#9fc9e0" font-size="9">a run continued from a Delta</text>
</g>
<rect x="978" y="234" width="6" height="8" fill="#6fd3f5"/>
<!-- engine -> answer -->
<path d="M984 238 H1020" stroke="#6fd3f5" stroke-width="3" fill="none" marker-end="url(#tip)"/>
<!-- answer -->
<rect x="1022" y="176" width="122" height="124" rx="11" fill="url(#chip)" stroke="#7fc8ea" stroke-width="2.5"/>
<text x="1083" y="204" fill="#eaf6ff" font-size="14.5" font-weight="700" text-anchor="middle">answer</text>
<text x="1083" y="226" fill="#9fc9e0" font-size="10.5" text-anchor="middle">rows</text>
<text x="1083" y="250" fill="#86b3cc" font-size="10" text-anchor="middle">and, for a derived</text>
<text x="1083" y="265" fill="#86b3cc" font-size="10" text-anchor="middle">fact, its proof</text>
<!-- catalog -> indexes, indexes -> engine -->
<path d="M614 346 V386" stroke="#6fd3f5" stroke-width="3" fill="none" marker-end="url(#tip)"/>
<text x="630" y="371" fill="#86b3cc" font-size="10">built once</text>
<path d="M868 388 V348" stroke="#6fd3f5" stroke-width="3" fill="none" marker-end="url(#tip)"/>
<text x="882" y="371" fill="#86b3cc" font-size="10">lookups</text>
<!-- ============================ INDEXES ============================ -->
<rect x="36" y="388" width="1108" height="200" rx="12" fill="url(#rail)" stroke="#7fc8ea" stroke-width="2.5"/>
<text x="56" y="414" fill="#eaf6ff" font-size="14.5" font-weight="700">kleene-index</text>
<text x="172" y="414" fill="#9fc9e0" font-size="10.5">each index is built once, kept beside the set and read in place from its mapping; rules and GQL plans use it as a relation</text>
<g>
<!-- row 1 -->
<rect x="52" y="428" width="207" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="62" y="446" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">Graph</text>
<text x="62" y="462" fill="#9fc9e0" font-size="9.5">matrix per edge label, both ways</text>
<rect x="269" y="428" width="207" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="279" y="446" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">RangeRel</text>
<text x="279" y="462" fill="#9fc9e0" font-size="9.5">a range: age > 30, id = 7</text>
<rect x="486" y="428" width="207" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="496" y="446" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">Names</text>
<text x="496" y="462" fill="#9fc9e0" font-size="9.5">name = "tokio": a perfect hash</text>
<rect x="703" y="428" width="207" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="713" y="446" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">Kinds</text>
<text x="713" y="462" fill="#9fc9e0" font-size="9.5">all nodes of a kind: one bitmap</text>
<rect x="920" y="428" width="207" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="930" y="446" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">Reach</text>
<text x="930" y="462" fill="#9fc9e0" font-size="9.5">can A reach B: 2-hop labels</text>
<!-- row 2 -->
<rect x="52" y="480" width="207" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="62" y="498" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">ReverseReach</text>
<text x="62" y="514" fill="#9fc9e0" font-size="9.5">who reaches a target set</text>
<rect x="269" y="480" width="207" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="279" y="498" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">Groups</text>
<text x="279" y="514" fill="#9fc9e0" font-size="9.5">key to ids, as trait to impls</text>
<rect x="486" y="480" width="207" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="496" y="498" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">ParentTree</text>
<text x="496" y="514" fill="#9fc9e0" font-size="9.5">the why chain, entry to vertex</text>
<rect x="703" y="480" width="207" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="713" y="498" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">Nesting, Intervals</text>
<text x="713" y="514" fill="#9fc9e0" font-size="9.5">is A inside B; ranges covering X</text>
<rect x="920" y="480" width="207" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="930" y="498" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">AddrLookup</text>
<text x="930" y="514" fill="#9fc9e0" font-size="9.5">address to function, block, line</text>
<!-- row 3: a split graph's own, and the store -->
<rect x="52" y="532" width="207" height="44" rx="6" fill="url(#slot)" stroke="#9fe3ff" stroke-width="1.8"/>
<text x="62" y="550" fill="#dff2ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">Loads</text>
<text x="62" y="566" fill="#9fc9e0" font-size="9.5">parts loaded ahead of any query</text>
<rect x="269" y="532" width="207" height="44" rx="6" fill="url(#slot)" stroke="#9fe3ff" stroke-width="1.8"/>
<text x="279" y="550" fill="#dff2ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">Central</text>
<text x="279" y="566" fill="#9fc9e0" font-size="9.5">id ranges, part graph, placement</text>
<rect x="486" y="532" width="207" height="44" rx="6" fill="url(#slot)" stroke="#9fe3ff" stroke-width="1.8"/>
<text x="496" y="550" fill="#dff2ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">split.<edge>.k<K></text>
<text x="496" y="566" fill="#9fc9e0" font-size="9.5">a computed split, a byte a node</text>
<rect x="703" y="532" width="424" height="44" rx="6" fill="url(#slot)" stroke="#a9762f" stroke-width="1.8"/>
<text x="713" y="550" fill="#ffcf7a" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">Store</text>
<text x="713" y="566" fill="#ffe3b4" font-size="9.5"><set>.kix: an Arrow IPC file per column, memory-mapped, keyed by the root hash</text>
</g>
<!-- ============================ OVER MACHINES ============================ -->
<!-- X.gar -> executors (built) -->
<path d="M36 312 H22 V604 H852 V642" stroke="#6fd3f5" stroke-width="3" fill="none" marker-end="url(#tip)"/>
<text x="40" y="599" fill="#86b3cc" font-size="10">an X.gar set at the same path on every machine: an executor reads only the rows of its own part</text>
<!-- Iceberg -> executors (planned) -->
<path d="M36 194 H12 V614 H836 V642" stroke="#7fb0cc" stroke-width="2.5" fill="none" stroke-dasharray="6 4" marker-end="url(#tipd)"/>
<text x="40" y="629" fill="#86b3cc" font-size="10">planned, not built: executors read Iceberg at a snapshot id; indexes kept current from the changes</text>
<text x="1144" y="629" fill="#7fa8c4" font-size="10.5" font-weight="700" letter-spacing="1.5" text-anchor="end">OVER MACHINES: kleene-ballista</text>
<!-- coordinator -->
<rect x="36" y="644" width="452" height="244" rx="12" fill="#0a1c2c" fill-opacity="0.55" stroke="#3b86b5" stroke-width="1.6" stroke-dasharray="3 4"/>
<text x="52" y="665" fill="#bfe6ff" font-size="11.5" font-weight="700">coordinator (FE)</text>
<text x="166" y="665" fill="#86b3cc" font-size="10">the client and the scheduler; neither holds the graph</text>
<!-- client -->
<rect x="52" y="676" width="206" height="200" rx="10" fill="url(#chip)" stroke="#7fc8ea" stroke-width="2"/>
<text x="155" y="699" fill="#eaf6ff" font-size="14.5" font-weight="700" text-anchor="middle">client</text>
<text x="155" y="715" fill="#9fc9e0" font-size="10.5" text-anchor="middle">holds the central index</text>
<g font-family="'DejaVu Sans Mono', monospace" font-size="10" fill="#bfe6ff" text-anchor="middle">
<rect x="66" y="724" width="178" height="22" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.4"/>
<text x="155" y="739">id ranges per part</text>
<rect x="66" y="750" width="178" height="22" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.4"/>
<text x="155" y="765">part graph + its Reach</text>
<rect x="66" y="776" width="178" height="22" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.4"/>
<text x="155" y="791">placement: part to machine</text>
<rect x="66" y="802" width="178" height="22" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.4"/>
<text x="155" y="817">names (optional)</text>
</g>
<text x="142" y="846" fill="#86b3cc" font-size="10" text-anchor="middle">built from the parts'</text>
<text x="142" y="861" fill="#86b3cc" font-size="10" text-anchor="middle">summaries</text>
<rect x="258" y="772" width="6" height="8" fill="#6fd3f5"/>
<!-- client -> scheduler -->
<path d="M264 776 H270" stroke="#6fd3f5" stroke-width="3" fill="none"/>
<!-- scheduler -->
<rect x="270" y="676" width="206" height="200" rx="10" fill="url(#chip)" stroke="#7fc8ea" stroke-width="2"/>
<text x="373" y="699" fill="#eaf6ff" font-size="14.5" font-weight="700" text-anchor="middle">scheduler</text>
<text x="373" y="715" fill="#9fc9e0" font-size="10.5" text-anchor="middle">Ballista, our fork</text>
<g>
<rect x="284" y="724" width="178" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="294" y="739" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">KleeneRules</text>
<text x="294" y="753" fill="#9fc9e0" font-size="9">a part's tasks to its executor</text>
<rect x="284" y="766" width="178" height="36" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="294" y="781" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">the loop</text>
<text x="294" y="795" fill="#9fc9e0" font-size="9">a round is a stage of one job</text>
</g>
<text x="373" y="828" fill="#86b3cc" font-size="10" text-anchor="middle">a job ends at the first round</text>
<text x="373" y="843" fill="#86b3cc" font-size="10" text-anchor="middle">that sends nothing</text>
<!-- scheduler <-> executors -->
<path d="M476 736 H570" stroke="#6fd3f5" stroke-width="3" fill="none" marker-end="url(#tip)"/>
<text x="542" y="727" fill="#86b3cc" font-size="10" text-anchor="middle">tasks</text>
<path d="M572 800 H478" stroke="#6fd3f5" stroke-width="3" fill="none" marker-end="url(#tip)"/>
<text x="530" y="817" fill="#86b3cc" font-size="10" text-anchor="middle">summaries,</text>
<text x="530" y="831" fill="#86b3cc" font-size="10" text-anchor="middle">answers</text>
<!-- executors -->
<rect x="572" y="644" width="572" height="244" rx="12" fill="url(#rail)" stroke="#7fc8ea" stroke-width="2.5"/>
<text x="590" y="669" fill="#eaf6ff" font-size="14.5" font-weight="700">executors</text>
<text x="678" y="669" fill="#9fc9e0" font-size="10.5">one per machine; each loads and keeps only its own part</text>
<g>
<rect x="587" y="682" width="170" height="100" rx="9" fill="url(#chip)" stroke="#5aa6cf" stroke-width="2"/>
<text x="672" y="701" fill="#eaf6ff" font-size="12.5" font-weight="700" text-anchor="middle">part 0</text>
<rect x="773" y="682" width="170" height="100" rx="9" fill="url(#chip)" stroke="#5aa6cf" stroke-width="2"/>
<text x="858" y="701" fill="#eaf6ff" font-size="12.5" font-weight="700" text-anchor="middle">part 1</text>
<rect x="959" y="682" width="170" height="100" rx="9" fill="url(#chip)" stroke="#5aa6cf" stroke-width="2"/>
<text x="1044" y="701" fill="#eaf6ff" font-size="12.5" font-weight="700" text-anchor="middle">part 2</text>
</g>
<g font-family="'DejaVu Sans Mono', monospace" font-size="9.5" fill="#bfe6ff" text-anchor="middle">
<rect x="599" y="708" width="146" height="20" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.3"/>
<text x="672" y="722">inner matrix, both ways</text>
<rect x="599" y="732" width="146" height="20" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.3"/>
<text x="672" y="746">border edges</text>
<rect x="599" y="756" width="146" height="20" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.3"/>
<text x="672" y="770">Reach, search buffers</text>
<rect x="785" y="708" width="146" height="20" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.3"/>
<text x="858" y="722">inner matrix, both ways</text>
<rect x="785" y="732" width="146" height="20" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.3"/>
<text x="858" y="746">border edges</text>
<rect x="785" y="756" width="146" height="20" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.3"/>
<text x="858" y="770">Reach, search buffers</text>
<rect x="971" y="708" width="146" height="20" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.3"/>
<text x="1044" y="722">inner matrix, both ways</text>
<rect x="971" y="732" width="146" height="20" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.3"/>
<text x="1044" y="746">border edges</text>
<rect x="971" y="756" width="146" height="20" rx="5" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.3"/>
<text x="1044" y="770">Reach, search buffers</text>
</g>
<!-- the shuffle between the parts -->
<g stroke="#6fd3f5" stroke-width="2.5" fill="none">
<path d="M672 782 V798 H1044 V782"/>
<path d="M858 782 V798"/>
</g>
<g fill="#bfecff">
<circle cx="672" cy="798" r="3.5"/><circle cx="858" cy="798" r="3.5"/><circle cx="1044" cy="798" r="3.5"/>
</g>
<text x="869" y="817" fill="#86b3cc" font-size="10" text-anchor="middle">Flight shuffle: only new border nodes travel, combined and compact, a row per target part</text>
<g>
<rect x="587" y="830" width="131" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="597" y="848" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">Loads</text>
<text x="597" y="864" fill="#9fc9e0" font-size="9">kept for every job</text>
<rect x="724" y="830" width="131" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="734" y="848" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">StepExec</text>
<text x="734" y="864" fill="#9fc9e0" font-size="9">one round of a part</text>
<rect x="861" y="830" width="131" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="871" y="848" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">CollectExec</text>
<text x="871" y="864" fill="#9fc9e0" font-size="9">the part's answer</text>
<rect x="998" y="830" width="131" height="44" rx="6" fill="url(#slot)" stroke="#6fd3f5" stroke-width="1.6"/>
<text x="1008" y="848" fill="#bfe6ff" font-size="10.5" font-family="'DejaVu Sans Mono', monospace">job state</text>
<text x="1008" y="864" fill="#9fc9e0" font-size="9">dropped with the job</text>
</g>
<!-- ============================ SPLIT RAIL ============================ -->
<rect x="36" y="904" width="1108" height="60" rx="10" fill="url(#rail)" stroke="#7fc8ea" stroke-width="2"/>
<g fill="#0a1c2c" stroke="#7fc8ea" stroke-width="1.5">
<circle cx="60" cy="934" r="4"/>
</g>
<text x="76" y="939" fill="#dff1ff" font-size="15" font-weight="700">split</text>
<text x="196" y="928" fill="#bcd9ec" font-size="11.5">hash:K · blocks of ids · computed:K, made once (kleene split-report --save), kept in the store, read by every machine</text>
<text x="196" y="950" fill="#bcd9ec" font-size="11.5">whole: every machine holds the whole graph; a level's edges are cut in slices by cores, many searches handed out whole</text>
<!-- ============================ STEP NUMBERS ============================ -->
<g font-size="10.5" font-weight="700" text-anchor="middle">
<g fill="#ffcf7a" stroke="#a9762f" stroke-width="1">
<circle cx="440" cy="194" r="9"/>
<circle cx="440" cy="234" r="9"/>
<circle cx="440" cy="274" r="9"/>
<circle cx="494" cy="238" r="9"/>
<circle cx="614" cy="366" r="9"/>
<circle cx="738" cy="238" r="9"/>
<circle cx="452" cy="104" r="9"/>
<circle cx="176" cy="924" r="8"/>
<circle cx="176" cy="946" r="8"/>
<circle cx="700" cy="604" r="9"/>
<circle cx="232" cy="852" r="9"/>
<circle cx="510" cy="736" r="9"/>
<circle cx="765" cy="798" r="9"/>
<circle cx="972" cy="852" r="9"/>
</g>
<g fill="#0b1c2e">
<text x="440" y="198">1</text>
<text x="440" y="238">2</text>
<text x="440" y="278">3</text>
<text x="494" y="242">4</text>
<text x="614" y="370">5</text>
<text x="738" y="242">6</text>
<text x="452" y="108">7</text>
<text x="176" y="927.5" font-size="9.5">8</text>
<text x="176" y="949.5" font-size="9">14</text>
<text x="700" y="608">9</text>
<text x="232" y="855.5" font-size="9.5">10</text>
<text x="510" y="739.5" font-size="9.5">11</text>
<text x="765" y="801.5" font-size="9.5">12</text>
<text x="972" y="855.5" font-size="9.5">13</text>
</g>
</g>
</svg>