agentleFS
znasllc-ioznasllc-io/memql/docs/CLAUDE.md

memql

CLAUDE.md4 starsChanged 56 days agoApache-2.0View on GitHub

Purpose: MemQL documentation, split public (drives memql.io) vs internal. Rules: DOCS_STANDARD.md — front-matter, layout, the repo→site pipeline (one set per release; the site serves the newest). User entry: Documentation home. Index: ../GLOSSARY.md. superpowers/ is the one tree no gate watches, which is why its rule is written out below rather than left to the standard. It was absent from this layout until 2026-09-04, and 748 KB of spent implementation plans had accumulated in it by then. - Every file carries…

The file

We split this CLAUDE.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every file carries front-matter (audience/status/area/sinceVersion/owner).

    line 52
  2. Very specific:

    When a feature ships, update the affected public/ reference and either delete the internal/planning/ doc or flip an internal/design/ doc to …

    line 61
  3. Distinctive:

    No emojis (global convention).

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Documentation Directory

Purpose: MemQL documentation, split public (drives memql.io) vs internal. Rules: DOCS_STANDARD.md — front-matter, layout, the repo→site pipeline (one set per release; the site serves the newest). User entry: Documentation home. Index: ../GLOSSARY.md.


Layout

docs/
├── DOCS_STANDARD.md   The standard (read this first)
├── CLAUDE.md          This file
├── public/            Published to memql.io; areas mirror the site sidebar
│   ├── overview/      what it is, the harness, quickstart, tech stack, roadmap, proving
│   ├── concepts/      data model, events, identifiers, mental models
│   ├── language/      the MemQL DSL (reference, authoring, naming, specs)
│   ├── ai/            LLM cost control, operator capabilities
│   ├── build/         gRPC/audio, build tags
│   ├── operate/       deploy, auth/, env, runbooks (public)
│   ├── cockpit/       engine-backed Cockpit surfaces (Editor); the rest live in the memql-cockpit repo
│   └── reference/     generated reference; the bundle renders the concept catalog as reference/concepts.md
├── public_boundary_allowlist.toml   links the boundary gate lets through for now; only shrinks
├── internal/          Never published
│   ├── design/        ADRs / historical design rationale (status: historical)
│   ├── planning/      active multi-phase plans (deleted when shipped)
│   ├── program/       epic/planning documents (e.g. 00-master-plan.md)
│   └── ops/           DR, CI, migrations, safety, provisioning runbooks
└── superpowers/       Brainstorm and plan output. EXEMPT from the
    ├── specs/         front-matter and relative-link gates, so its
    └── plans/         lifecycle is a convention and nothing enforces it

superpowers/ is the one tree no gate watches, which is why its rule is written out below rather than left to the standard. It was absent from this layout until 2026-09-04, and 748 KB of spent implementation plans had accumulated in it by then.

Conventions

  • Every file carries front-matter (audience/status/area/sinceVersion/owner); the bundle publishes the public/** pages that are audience: public, status: stable and exposure: engine (missing reads as engine), and a relative link from one of them to anything else fails docs_public_boundary_test.go. See DOCS_STANDARD section 5.
  • public/language/memql.md is also embedded into the binary via docs/embed.go (the memqlGuide builtin) — if you move it, update the //go:embed directive.
  • Lowercase-with-hyphens filenames. Cross-reference with relative paths.
  • When a feature ships, update the affected public/ reference and either delete the internal/planning/ doc or flip an internal/design/ doc to status: historical in the same commit. No stale "deprecated" stubs.
  • A PLAN is spent when it ships; a RECORD is not. superpowers/plans/ holds implementation plans, and an executed plan is the largest stale artifact this repo produces — delete it in the epic's own merge, the way an internal/planning/ doc is deleted. superpowers/specs/ holds design records, which are kept and cited by CLAUDE.md files and READMEs across the tree. Delete a spec only when all three hold: its work shipped, nothing in the repo cites it (grep the filename — citations from clients/** and editors/** are outside every docs gate and break silently), and it names a tree that has since been restructured, so it can no longer be read as an accurate account of anything. Otherwise leave it: a stale-but-cited record wants its content repointed, not the file removed.
  • No emojis (global convention).

A bug is not fixed until its case is in the corpus

Borrowed from SQL Logic Test, and it is the rule that makes test/conformance/2026/ worth its size: a defect in the language — a filter that lowers to the wrong SQL, an expression the two evaluators answer differently, a refusal whose wording stopped naming the fix — is not fixed by the commit that changes the code. It is fixed by the commit that adds the case the old code fails and the new code passes.

The corpus is the only thing that remembers. A fix with no case survives exactly until someone refactors the path it lives on, and the regression comes back reading like a new bug.

Where the case goes, by what it is about:

The defectThe case
A filter lowers wrongly, or the two evaluators disagree2026/expr/<position>/, as a lower and an evaluate verdict over the rows that split them
A construct or annotation accepts what it should refuse2026/cells/<construct>/<attribute>/, with the code and message the refusal carries
A refusal's wording lost the replacement it used to namethe same cell's expect.json; the wording is pinned, so a change to it is a deliberate edit and not a drift
A load refusal nothing covered2026/negative/<construct>/<fault>.memql
The parser panicked on an input2026/fuzz/, or the package's own testdata/fuzz/<Target>/

The differential lane is REQUIRED (memql#5386). It runs in the mcp-conformance job with MEMQL_DIFFERENTIAL_REQUIRED=1, and a disagreement between the SQL lowering and the in-process evaluator fails it. The lane draws its expressions from the corpus plus a deterministic grammar-driven generator, so its seed is printed on the summary line: a red on a hosted runner is reproducible locally from that one number.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.