For agents (non-normative)
An agent with no Lore tooling can still apply Lore, since Lore files are
plain text written to be read.
AGENT.md holds short instructions that a team pastes into
the instructions its agents already read (see
Adopting Lore). Its heading names the
version of this specification it follows. It reads, in full:
# Lore v1 agent instructions
1. Find the tracked `.lore/` folders whose base (the folder holding `.lore/`)
contains a changed file. Read their `.lore` files, and each `.loreconfig`
from a changed file's folder up to the nearest `root: true` or the repo root.
2. Select each entry not `disabled` whose scope (file and entry `<scope>`, each
defaulting to the whole base; globs relative to the base) holds a changed file
that no `disable` list switches it off for, and whose `<when>` holds.
3. Read each selected `<context>` and the file its `src` names: a plain `src`
from the base, one starting `./` or `../` from the folder of its `.lore` file.
4. Report each selected `<rule>` by id as pass, fail or not applicable, with
evidence such as a file and line. Treat a `<check>` as a hint, not a verdict.
5. Never invent rules from prose outside `.lore` files.
6. When you write a rule from a document, name it in a `<source>`: its `file`,
and a `heading` or `phrase` when it has one. CI can run `lore audit` to flag
a source that has moved or changed.
An agent that follows these steps selects rules by reading them, so it can select a different set than a conforming tool would: it can misread a glob, or miss that a category is not declared. When a tool has computed the eligibility result for the change, an agent does better to take the eligible entries and hits from it, and still report on every eligible rule by id.