# Flow

> How the repos fit together: Shell brings chrome, each manual owns its content, the Library aggregates.

---

LLMS index: [llms.txt](/CAI-Field-Manual-Library/llms.txt)

---

The intended topology at a glance — Shell supplying chrome to content-only manuals, with the Library aggregating them:

![Sketch: Shell (colors, features, common variables, chrome) wired to each manual — Hello-World as the template to copy or fork, plus Inference (soon), MaaS, Migration-2-3, Safety (soon) — each with its own rendered site; the Library then renders all manuals in one place (sketch labels this `red.ht/caifm`)](shell-manuals-library.png)

*Whiteboard sketch overview. The red dashed outline groups the content-only manuals sharing Shell. Details the sketch adds beyond the text below — per-manual rendered sites, the Library's schedule and CI checks, the `red.ht/caifm` short URL, and the planned Inference/Safety manuals — are as sketched; treat them as proposed until confirmed.*

The interactive diagram below shows the same system with clickable detail:

<style>
.td-viz-embed{position:relative;margin:1rem 0;border:1px solid var(--bs-border-color);border-radius:.5rem;overflow:hidden}
.td-viz-embed iframe{display:block;width:100%;aspect-ratio:5/3;min-height:720px;border:0}
.td-viz-embed__fallback{display:none}
.td-viz-embed__expand{position:absolute;top:.5rem;right:.5rem;z-index:10;width:2rem;height:2rem;display:grid;place-items:center;padding:0;border:1px solid var(--bs-border-color);border-radius:.375rem;background:var(--bs-body-bg);color:var(--bs-body-color);cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.td-viz-embed__expand::before{content:"⛶";font-size:1rem;line-height:1}
.td-viz-embed__expand:hover{border-color:var(--bs-primary,var(--bs-border-color))}
.td-viz-embed--expanded{position:fixed;inset:1rem;z-index:2050;margin:0;border-radius:.75rem;background:var(--bs-body-bg);box-shadow:0 12px 48px rgba(0,0,0,.35)}
.td-viz-embed--expanded iframe{aspect-ratio:auto;height:100%}
.td-viz-embed--expanded .td-viz-embed__expand::before{content:"✕"}
@media(max-width:767.98px){.td-viz-embed iframe,.td-viz-embed__expand{display:none}.td-viz-embed__fallback{display:block}}
html.td-viz-lock{overflow:hidden}
@media print{.td-viz-embed{display:none}}
 
.td-viz-embed--flow:not(.td-viz-embed--expanded){width:100%;max-width:none;margin:0;min-height:640px;aspect-ratio:auto;border:0;box-shadow:none}
</style>

<div class="td-viz-embed td-viz-embed--flow" id="td-viz-embed-0">
  <button type="button" class="td-viz-embed__expand" aria-label="Expand the visualizer" title="Expand"></button>
  <iframe src="/CAI-Field-Manual-Library/visualizers/fm-flow.html" title="Field Manual repos flow" loading="lazy"></iframe>
  <a class="td-viz-embed__fallback" href="/CAI-Field-Manual-Library/visualizers/fm-flow.html" target="_blank" rel="noopener">Open the Field Manual repos flow in a new tab</a>
</div>
<script>
(function () {
  var embed = document.getElementById('td-viz-embed-0');
  if (!embed) return;
  var btn = embed.querySelector('.td-viz-embed__expand');
  btn.addEventListener('click', function () {
    var open = embed.classList.toggle('td-viz-embed--expanded');
    document.documentElement.classList.toggle('td-viz-lock', open);
    btn.setAttribute('aria-label', open ? 'Collapse the visualizer' : 'Expand the visualizer');
  });
  document.addEventListener('keydown', function (e) {
    if (e.key === 'Escape' && embed.classList.contains('td-viz-embed--expanded')) btn.click();
  });
})();
</script>


Where Shell, manuals, and the Library sit. Click a node or an arrow for detail.

Two things the diagram compresses:

**Mount means Hugo module mount.** The Library does not copy or re-host anything. Its `hugo.yaml` imports each manual repo as a Hugo module, so one Library build renders every manual's content under its own tree. The arrows above are those module imports.

**Adding a manual is two steps, both content-only.** Clone Hello-World, write your manual, deploy it as its own Pages site. Then open a PR in the Library that adds one module import. No new infrastructure, no Library code changes; the manual appears on the next Library deploy.
