Introduction
Version 1. Status: draft.
Lore is a file format for the rules a team expects every change to its code to follow. Each rule is a named entry with a scope (the files it can be broken in), optional conditions on the change, a category and a severity, followed by the rule itself in Markdown prose. Context entries point a reviewer at background reading under the same kind of scope and conditions.
This document specifies:
- where Lore files live and which ones a tool collects;
- how a
.lorefile is parsed into a document model; - the
.loreconfigfile; - which entries are eligible for a change, and which lines a check points a reviewer at.
It stops there. How a reviewer applies an eligible rule, and how a tool reports the result, is outside this specification.
The specification is written in the style of the CommonMark
specification: normative prose, with numbered conformance examples inline
that any implementation can run. JSON Schemas for the structured blocks
and for the expected output of the examples are in schemas/.
Their $ids start with https://lore.dev/schemas/v1/, a placeholder
identifier that will change when the format's final name is chosen.
The error and warning names are in errors.json.
The specification text is licensed under
CC-BY-4.0. The conformance examples, the JSON
Schemas and errors.json are licensed under the
MIT License, so an implementation can copy them freely.
AGENT.md is dedicated to the public domain under
CC0 1.0, so a team
can paste it into its own instructions without a notice.