LLM Instructions

Table of Contents

This is the entry point for every LLM session on ORE Studio. Read it in full before acting. Each section below names the rule and links to the canonical document; follow the link for depth. Non-negotiable rules are inlined rather than linked.

Non-negotiable rules

These apply in every session, with no exceptions:

  • UNIX line endings — all new files use LF, never CRLF.
  • New org docs via compass only — never write .org frontmatter by hand. Always use ./projects/ores.compass/compass.sh add <type>. See How do I create a new doc?.
  • Check recipes first — before searching for how to do anything, open Recipes and find the matching topic.
  • Every new .org file is scaffolded via compass add — this ensures correct frontmatter (:ID:, #+type:, #+description:, etc.).

Orientation

Read these first on a new contact:

  • Compass — top-level map of doc/; the entry point.
  • Orientation — navigation guide by reader intent.
  • Glossary — definitions for task, story, sprint, version, function, recipe.
  • Agile — current version and sprint at a glance.

Build

Code style

  • Code review checklist — naming (snake_case / CamelCase-Qt), include order, comment quality, platform isolation, and all review categories.

Architecture

  • System model — four-layer architecture and component inventory.
  • Knowledge — cross-cutting reference: entity patterns, SQL schema, Qt/Wt patterns, CLI/shell patterns, unit-test conventions.

Documentation

Database isolation

  • ores.sql — component overview; the strict service-table isolation invariant lives under "Service Table Isolation" in this doc.
  • Rule: each service user holds DML only on its own ores_<service>_* tables. Do not add cross-service grants without documented justification. Trigger functions that SELECT across services must be SECURITY DEFINER SET search_path = public, pg_temp.

Testing

Git and pull requests

Claude Code configuration

Memory

  • Project memory — catalogue of session-feedback memories; read and write here to persist durable facts across conversations.
  • doc-add-memory skill — LLM-side procedure for adding memories.

Non-negotiable: all memories go in doc/llm/memory/ via compass add memory. Never write to the Claude Code harness memory system (~/.claude/projects/*/memory/) — it is disabled via autoMemoryEnabled: false in .claude/settings.json and its files are not version-controlled or reviewed.

See also

  • Execution model — how LLMs and agents operate within the cybernetic information architecture during a sprint.
  • Recipes — full index of operational how-tos by topic.

Emacs 29.1 (Org mode 9.6.6)