> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canary.effectiveai.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Evidence and annotations

> Citations tie each filed number to its source, documents and tools back each answer in a log, and annotations describe a value.

An RSL program keeps its evidence beside its code.
A citation names the page that prints a number, and a log entry names the document that backs an answer.
Evidence and annotations describe the program, and rating leaves them aside.

## Citations

`Sources` names each document once. A citation names a region of it:

```rsl theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
Sources = {
    manual: Source = {
        artifact: artifact("00000000-0000-4000-8000-000000000000"),
        kind: pdf
    }
}
...
Constants = {
    rate_per_1000 [cite: manual:p3] = 2
}
```

* `manual:p3` is page 3 of `manual`. The `kind` of the source sets the form of a region, such as a page, a cell or a row.
* Each table, constant and rounding cites its source. A number that the filing leaves out, such as a unit conversion, gives a `reason` in its place.
* A rule may cite the page that states it. The citation travels in each refusal of the rule.
* The bundle identity covers the citations, so a changed citation gives a new identity.

The check confirms that each citation is present, names a declared source and has a region of the right form.
A reviewer reads the cited region and confirms that it supports the value.

## Documents

A process keeps its own evidence in the log.

| Entry | Records |
| - | - |
| `attach` | A document, under a name, with a hash of its bytes |
| `answer` with `from` | The region of an attached document that states the answer, such as `application:p3` |
| `tool` | A value that a host tool gave, with the call that asked for it |
| `decide` | The values the rule read, with the cite of each one |

A new version of a document takes back each answer that cites the old version.
The decisions and offers that read such an answer lapse.

A process names each **tool** that its host answers, such as a motor vehicle report.
The log lists each call that is due, and the host writes the answer as a `tool` entry.

## Annotations

| Annotation | Describes |
| - | - |
| `label`, `note` | The name and the one-sentence meaning that the filing gives a value |
| `ask`, `help` | The question a person answers, and its help text |
| A concept, `Stages` | What a value is, and the part of the filed algorithm it belongs to |

An annotation leaves every rating the same. A host reads it to build a screen or a rating manual page.
Keep evidence in citations: the check refuses a comment that starts with `source:`.

## Related

* [Sources and citations](https://docs.canary.effectiveai.app/rsl/reference/language.md#sources-and-citations) in the language reference gives the region form for each kind of source.
* [Host tools](https://docs.canary.effectiveai.app/rsl/reference/language.md#host-tools) and [Questions and choices](https://docs.canary.effectiveai.app/rsl/reference/language.md#questions-and-choices) give the forms for tools and questions.
* [Submission log](https://docs.canary.effectiveai.app/rsl/reference/submission-log.md#entries) lists the fields of each entry.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.