# Your rulebook

> Your own policies and guidelines, searched for your releases only, and written rules that can ask or send to a person.

Your rulebook holds your own policies and guidelines, in your own words. It is in the console under **Rulebook**, for people
who may change the QC rules.

It does two things:

- **It guides answers and questions.** When an artist asks the assistant something in the release builder, the passages of your
  rulebook that bear on it are part of what the answer is made from.
- **It can send a release to a person.** A policy can hold short written rules, checked on each release.

A rulebook never rejects a release by itself. The checks and their numbers are set under QC rules ([Your own rules](https://activqc.wavbee.com/docs/qa-config.md)).

## Documents

Add a document by typing or pasting it, or from a `.md`, `.txt` or `.pdf` file of up to 5 MB. Only the text of a file is kept.
Headings (`#`) help a passage be found. Each document is a **policy**, a **guideline** or a **reference**, in one language.

A document starts as a draft. Nothing uses it until you put it in use. A change is a new version, and a version never changes
once it is saved: you can always put an older one back in use. Archiving takes a document out of every search and every check at
once. An archived document still counts as kept until you delete it for good, and a document can have 20 versions: old ones can be
deleted. A document you put in use is found within about a minute; until then the version before it is.

**Ask your rulebook** shows which passages a question finds, in order, so you can see what an answer would be made from.

How many documents, how much text and how many written rules you can have is on the page, and set with you.

## Written rules

A written rule is one sentence, what it is about, and what happens when a release breaks it.

| It can be about | It can |
|---|---|
| Titles and versions | Leave a note |
| Artist names | Ask the artist |
| Writers and contributors | Send the release to a person |
| Metadata language | |
| Release type | |

It cannot refuse a release. When it asks, the artist sees your rule in your words and the part of the release it is about, and
either types the change or says it is correct as submitted, which sends the release to a person.

The rules are read by AI, in one go for each release. A finding counts only where the words it is about are really in that
field. When the AI cannot answer, the rule is recorded as not run, never as passed.

The written rules of your documents are off until you switch them on. A single written rule can also be added under **QC rules**,
where it is in force at once ([Your own rules](https://activqc.wavbee.com/docs/qa-config.md)). **Try it on a release** shows
what a version would do on a release you already sent. It is a test: nothing about the release changes.

In the API a written rule's findings carry an id of your own (`TP-1`, `TP-2` …), your text as `statement`, and
`"source": "Your rulebook"`.

## When wavbee delivers your releases

wavbee's own rulebook applies too. Where the two differ, wavbee's passage comes first and is marked as set by wavbee, and its
written rules (`WP-…`) are checked beside yours. Your rulebook can add to it and never override it.

## Whose it is

Your rulebook is searched for your releases only. No other customer, and none of their artists, can find, read or be answered
from it. What a document says is treated as information, never as instructions to the assistant. Links in it are not followed
or repeated. When an account is closed its rulebook is deleted.

`GET /v1/qc/rules/search` searches the standard rules and your rulebook. `layer` says whose words a passage is: `standard`,
`wavbee` or `yours`.
