Resin Logo
resin.dev
Back
Architecture

What's actually in the database.

A local SQLite file (memory.db), one per machine, written to your OS's local app-data directory — the same directory Tauri's own convention resolves to for the app identifier dev.resin.engineering-memory. Every table below is real; nothing here is aspirational.

Schema

decisions

One row per captured decision: title, summary, rationale, status (under_review / accepted / superseded / deprecated), which agent proposed it, and — if superseded — which decision replaced it.

context_nodes

Named architectural concepts (a database, an API, an auth system) a decision can be linked to, by category.

decision_node_links

The many-to-many join between decisions and context_nodes.

memory_embeddings

Vector embeddings of decision content chunks, for semantic search.

guarddog_violations

"Heuristic keyword-proximity matches against accepted-decision rules, not verified violations." — the schema's own words. A flag for a human to check, not a verdict.

audit_events

Append-only: one row per rule-triggered decision (warn or block), with an override captured in the same insert if one happened. No separate update path exists.

executions

One row per resin run invocation that evaluated rules. The agent field is "sniffed from the wrapped command's own name... not real process introspection."

drift_flags

LLM-flagged, plausible contradictions between a new commit and a previously accepted decision. Confidence (low/medium/high) — a signal for a human, never a verdict.

decisions_fts

Full-text search index over decisions, kept in sync by triggers on insert/update/delete.

What isn't captured

  • Your source code. decisions.summary and .rationale are free-text fields a human or agent writes — the schema has no column for file contents.
  • Confirmed rule violations. guarddog_violations and drift_flags are both explicitly heuristic/low-confidence signals in the schema's own comments, not verified findings.
  • Which real OS process ran an agent. executions.agent is parsed from the wrapped command's own argv[0] name, not real process introspection.

Verify it yourself

  1. Disconnect your network entirely — turn off Wi-Fi, unplug ethernet.
  2. Run npx resin-check against any real project. It completes identically offline — it never opens a socket.
  3. Open your OS's local app-data directory and confirm memory.db is a plain SQLite file — open it with any SQLite browser (sqlite3 memory.db on the command line works) and read the tables above directly.
  4. Reconnect your network. Nothing in steps 1–3 required it.