Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.48 KB

File metadata and controls

21 lines (17 loc) · 1.48 KB
name Architecture
description Spandrel's three phases — compile markdown to graph, store in a pluggable backend, serve via REST and MCP through one access policy
links
to type description
/content-model
relates-to
Architecture compiles, stores, and serves whatever shape the content model declares — content-model is the input contract
to type description
/deployment
relates-to
Architecture defines the moving parts; deployment chooses which subset to wire up (local dev, hosted, static-MCP, etc.)

Architecture

Spandrel has three phases: compile, store, serve.

  1. Compile — walk a directory tree of markdown files, parse frontmatter, resolve hierarchy and links, produce a graph of nodes and edges.
  2. Store — write the compiled graph to a backend. In-memory for local dev, Postgres for production. Any backend that satisfies the GraphStore interface works.
  3. Serve — expose the graph through one or more wire surfaces, all gated by a single Access Policy. MCP and REST are peer wire surfaces; CLI wires them together. Web UIs and other consumers ride on top of these.

All wire surfaces — MCP, REST, CLI, web UIs — call the same Access Policy before serializing a response or performing a write. One policy, one enforcement point, one set of rules.