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

# Learning from Context Files

> How Zenable turns the rules in your context files into proposals, step by step, and what happens in the cases that are not simple

Your team writes rules for its coding agents in files like `AGENTS.md` and `CLAUDE.md`. With **Learn requirements from context files** turned on in a [configuration profile](https://docs.zenable.io/integrations/vcs-reviewers/configuration.md#configuration-profiles), Zenable reads those files and proposes requirements from them on the [Proposals](https://docs.zenable.io/proposals.md) page.

Fair warning: this gets a bit complicated. There are a lot of edge cases, and we're committed to being transparent about how it works. So here's the main flow, then every edge case, one picture each.

Every case on this page is drawn the same way: the main flow, with what the case changes coloured and numbered. Each one also has a slide; use **See it as a slide** to open it.

## Three words this page uses

```mermaid theme={null}
flowchart LR
  a["Passage<br/>text in a context file"] --> b["Draft<br/>written by Zenable"] --> c["Proposal<br/>on the Proposals page"] --> d["Requirement<br/>once accepted"]
```

* **Passage**: a piece of text in a context file, such as one bullet in `AGENTS.md`.
* **Draft**: what Zenable writes from a passage, in requirement form, before anything is filed. One passage gives at most three drafts. Text that says how to run or build the repository is not a rule and gives no draft.
* **Requirement**: a requirement stored in Zenable, whatever its state.

A requirement has two parts that Zenable keeps apart: **what it demands** of the code, and **where it applies**, which is its [scope](https://docs.zenable.io/proposals.md#scope-additions). When Zenable compares a draft with your requirements, it compares what they demand. Where they apply is checked on its own.

## How Zenable decides what to propose

For each draft, Zenable asks these questions in order and stops at the first yes:

1. **Was this passage learned before, and did its rule change?** Zenable proposes an edit of that requirement.
2. **Does a requirement already demand the same thing, and apply here?** Nothing is filed.
3. **Does a requirement demand the same thing, but not apply here?** Zenable proposes a scope addition.
4. **Is it close to a requirement a person wrote?** Zenable files one proposal with two choices: a new requirement, or an edit of theirs.
5. **None of these?** Zenable proposes a new requirement.

A person, or an [Agent Policy](https://docs.zenable.io/approval-policies.md), decides every proposal. A file never changes a requirement by itself.

## How to read the pictures

Every case is the same picture in three parts: **your repository**, **Zenable**, and **your decision**. Nothing moves between cases, so you only look at what is different.

* **Grey**: the same as the main flow. **Teal**: what this case changes. **Amber**: waits. **Red**: stops here; what comes after it fades out.
* A number marks each change, and each section says how many changes it has.
* Zenable compares the two parts of a requirement separately: what it demands, then where it applies. **=** means the same, **≠** different, **≈** close.

## The main flow

![A merged rule becomes a proposed requirement.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/new-rule-merged-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=8504f40cdf769c3cbe43fef74b6be7b9)

1. A pull request that changes a context file is merged.
2. Zenable drafts a requirement in two parts: what it demands, and where it applies.
3. It compares the draft with your nearest requirements: what each demands, then where each applies.
4. Nothing demands it yet, so it proposes a new requirement on the Proposals page.
5. A person, or an Agent Policy they set up, accepts it, and it is live.

**What counts as a duplicate?** A requirement that demands the same thing: any code change that breaks one also breaks the other. Wording doesn't matter. Where each applies is compared separately, so the same demand somewhere else widens the existing requirement instead of making a copy.

[See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=the-main-flow\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=the-main-flow)

## What happens when…

### Main flows

> [accordion] A new rule is merged
>
> The main flow
>
> ![A merged rule becomes a proposed requirement.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/new-rule-merged-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=8504f40cdf769c3cbe43fef74b6be7b9)
>
> This is the main flow; every other case is drawn as changes to it.
>
> **What counts as a duplicate?** A requirement that demands the same thing: any code change that breaks one also breaks the other. Wording doesn't matter. Where each applies is compared separately, so the same demand somewhere else widens the existing requirement instead of making a copy.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=new-rule-merged\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=new-rule-merged)

> [accordion] Learning is turned on
>
> 2 changes
>
> ![Turned on? The rules already there are read.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/turn-on-and-first-read-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=b66d9675812251db4dcadeb28ed535e3)
>
> 1. No merge needed: Zenable reads the context files already on the default branch.
> 2. Each rule Zenable does not have yet becomes its own proposal.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=turn-on-and-first-read\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=turn-on-and-first-read)

> [accordion] A learned rule is edited
>
> 2 changes
>
> ![Edit a learned rule? You get an edit.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/learned-rule-edited-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=d1dc7a27b260df5a8d98f61833c36327)
>
> 1. The requirement was learned from this line, and the line changed.
> 2. An edit of that requirement, showing what changed.
>
> **Why an edit and not a new requirement?** The requirement came from this exact line. When the line changes, the requirement follows it, so you review one edit instead of ending up with two requirements.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=learned-rule-edited\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=learned-rule-edited)

> [accordion] A requirement you have, in a new place
>
> 3 changes
>
> ![Same rule elsewhere? It now applies here too.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/same-rule-new-place-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=689147efa43cc7b89bed5e038db9cf8b)
>
> 1. A requirement already demands it, but not in this repository or folder.
> 2. A scope addition: apply that requirement here too.
> 3. Accepting widens where the requirement applies. Its wording does not change.
>
> **Why widen it instead of adding a new requirement?** The demand already exists; only where it applies is new. Widening it keeps one requirement in two places, so a later edit reaches both instead of two copies drifting apart.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=same-rule-new-place\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=same-rule-new-place)

> [accordion] A requirement you have, already here
>
> 2 changes
>
> ![Already have it? Nothing is proposed.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/already-covered-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=10ef0e144db5bcdabf9690c3c6e4dfa9)
>
> 1. A requirement already demands it, and already applies here.
> 2. Stops: Nothing is new, so nothing is proposed.
>
> **Why is “All functions” a duplicate of “Public functions”?** Any change that breaks the new rule also breaks the one you have, and yours already applies to this repository. The new rule adds nothing.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=already-covered\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=already-covered)

> [accordion] Close to a requirement a person wrote
>
> 3 changes
>
> ![Close to one you wrote? You pick.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/close-to-a-requirement-you-wrote-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=cd1b99fd46447d05564fcfdf062765ac)
>
> 1. A requirement a person wrote demands something close, but not the same.
> 2. One proposal with two choices: a new requirement, or an edit of theirs.
> 3. Accepting one choice dismisses the other. An Agent Policy picks the higher-scoring choice that clears its bar.
>
> **Why not just edit theirs?** A person wrote it, so Zenable never changes it on its own. You choose: keep theirs and add a new requirement, or edit theirs. The record keeps which you chose, who chose it, and why.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=close-to-a-requirement-you-wrote\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=close-to-a-requirement-you-wrote)

### Your decisions win

> [accordion] You edited it, then the file changed
>
> 2 changes
>
> ![You edited it? Your edit wins.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/edited-in-zenable-then-file-changed-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=e134107c91029a3650dfcf87c22688c1)
>
> 1. A person changed the text of the learned requirement.
> 2. Stops: Later file changes are not proposed for it.
>
> **Why does the file stop updating it?** Once a person edits a learned requirement, it is theirs. Proposing file changes on top would undo their decision.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=edited-in-zenable-then-file-changed\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=edited-in-zenable-then-file-changed)

> [accordion] You declined it, and the file still says it
>
> 2 changes
>
> ![Declined it? It is not asked again.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/declined-and-file-still-says-it-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=3e7c0009313f03d202088c34c85ca34b)
>
> 1. You declined this requirement before.
> 2. Waits: The same words are never proposed again. New words for it wait 60 days.
>
> **Why wait before asking again?** A decline is a decision. Asking the same question again right away ignores it; new wording gets a fresh look once 60 days have passed.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=declined-and-file-still-says-it\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=declined-and-file-still-says-it)

> [accordion] The file changes before you decide
>
> 1 change
>
> ![Changed before you decided? The proposal follows.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/file-changes-before-you-decide-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=4294b7a7447012c48b9ae85abf630e37)
>
> 1. The waiting proposal takes the newest text.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=file-changes-before-you-decide\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=file-changes-before-you-decide)

> [accordion] The file changes while you review
>
> 1 change
>
> ![Already reviewing it? It is left alone.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/file-changes-while-you-review-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=0316d91408fe5825e480f3e1e3c2970b)
>
> 1. Waits: You edited the proposal, or it is in approval, so it is left alone. The new text waits until you decide.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=file-changes-while-you-review\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=file-changes-while-you-review)

> [accordion] A merge or split is pending
>
> 1 change
>
> ![Merge pending? It waits for that.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/merge-or-split-pending-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=97a58f1f29f45775309b2229f8ce05c6)
>
> 1. Waits: A merge or split of that requirement is waiting for a decision. Zenable compares again once it is decided.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=merge-or-split-pending\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=merge-or-split-pending)

> [accordion] You declined a scope addition
>
> 2 changes
>
> ![Declined it here? Not asked again.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/declined-a-scope-addition-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=924743931c8ab1abf070ded8313087bd)
>
> 1. You declined applying this requirement here before.
> 2. Stops: That place is never proposed again for it.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=declined-a-scope-addition\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=declined-a-scope-addition)

### What a rule demands, and where

> [accordion] Only where it applies changes
>
> 2 changes
>
> ![Only the place changed? It is widened.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/only-where-changed-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=f794a910059660e4836140818e6725c6)
>
> 1. “In .py files” became “in .py and .go”: the demand is the same.
> 2. A scope addition for .go files. The text is not edited.
>
> **Why isn't this an edit?** Only where the rule applies changed, not what it demands. Widening where the existing requirement applies keeps its wording and history as they are.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=only-where-changed\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=only-where-changed)

> [accordion] The text says where it applies
>
> 2 changes
>
> ![The rule names a place? That becomes its scope.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/text-says-where-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=028062b5b8271ddbfca089967c4f5d1d)
>
> 1. “In .py files, use type hints” splits into what it demands and where it applies.
> 2. The new requirement says “use type hints”, scoped to .py files. Only file types and paths become a scope.
>
> **Why move “in .py files” out of the text?** A requirement says what code must do; its scope says where. Kept apart, the same demand found for another file type widens one requirement instead of making a near-copy.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=text-says-where\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=text-says-where)

> [accordion] The file now says fewer places
>
> 2 changes
>
> ![The file says fewer places? Nothing is narrowed.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/file-narrows-where-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=8be82eb285ab70456b78388d560dfae0)
>
> 1. The file limits a rule that the requirement applies more widely.
> 2. Stops: Zenable never narrows a requirement. Narrow it in Zenable if you want to.
>
> **Why not narrow it?** Narrowing removes checks somewhere else, perhaps on code this file never covers. That is a decision for a person.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=file-narrows-where\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=file-narrows-where)

> [accordion] One rule in several places
>
> 2 changes
>
> ![Same rule in two folders? One proposal.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/one-rule-several-places-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=5209ef799d16d3367dc06cd017dee5f1)
>
> 1. Two folders in one repository state the same rule.
> 2. One proposal, covering both folders.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=one-rule-several-places\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=one-rule-several-places)

> [accordion] Two repositories, same rule
>
> 2 changes
>
> ![Two repositories, one rule? One proposal.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/two-repositories-same-rule-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=22af930d1e0e02dcf55b1ae7cb77e853)
>
> 1. Another repository's proposal for the same rule is waiting.
> 2. Added to that proposal while nobody has touched it. Once it is live, this is a scope addition instead.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=two-repositories-same-rule\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=two-repositories-same-rule)

> [accordion] A company requirement says it
>
> 2 changes
>
> ![Your company has it? Nothing is proposed.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/company-requirement-says-it-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=e59635714ac75c5b0db8dcfd75dc5a8e)
>
> 1. A company or marketplace requirement already demands it.
> 2. Stops: If it does not apply here, the banner says so.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=company-requirement-says-it\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=company-requirement-says-it)

### What Zenable reads

> [accordion] Which files are read
>
> 1 change
>
> ![Which files? Context files only.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/which-files-are-read-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=61d807fc11a0f332d0d669d6cadabe83)
>
> 1. AGENTS.md, CLAUDE.md, rules folders, and files you name on the profile. Never skills, or text the Zenable CLI writes.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=which-files-are-read\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=which-files-are-read)

> [accordion] Where it applies is unclear
>
> 1 change
>
> ![Unclear where it applies? Not read.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/frontmatter-not-understood-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=512da2f4957ffb3dffe25608de332ef6)
>
> 1. Stops: The file limits where it applies in a form its vendor does not document. Zenable never guesses; the banner names the file.
>
> **Why not make a best guess?** A wrong guess applies a rule to code it was never meant for. Naming the file in the banner lets you fix the frontmatter instead.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=frontmatter-not-understood\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=frontmatter-not-understood)

> [accordion] A file cannot be read
>
> 1 change
>
> ![Can't be read? It is tried again.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/file-cannot-be-read-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=4031ddaf5d98d37d2bab6b22565a475d)
>
> 1. Waits: Over 128 KiB, past the 100-file limit, or the host failed. The banner names it, and it is tried again later.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=file-cannot-be-read\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=file-cannot-be-read)

> [accordion] A file imports another
>
> 2 changes
>
> ![A file imports another? It is read as one.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/file-imports-others-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=c5d76ef561710bed3d8247a3e4225078)
>
> 1. @AGENTS.md is read as part of CLAUDE.md.
> 2. Its rules apply where CLAUDE.md applies.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=file-imports-others\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=file-imports-others)

> [accordion] A rule is removed
>
> 2 changes
>
> ![Rule deleted? The requirement stays.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/rule-removed-from-file-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=9873d8f0b5ec7c2b9bd882492a508e25)
>
> 1. The rule is no longer in the file.
> 2. Stops: The requirement stays as it is. Remove it in Zenable if you want to.
>
> **Why not remove the requirement too?** A line deleted from a file is easy to miss in review. Removing a requirement changes what is checked everywhere it applies, so a person decides.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=rule-removed-from-file\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=rule-removed-from-file)

> [accordion] A file or repository moves
>
> 3 changes
>
> ![Moved or renamed? Usually nothing.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/renamed-or-moved-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=ab2dcceda00daea436ed97d352782047)
>
> 1. A renamed repository causes no work. A moved file is the same text in a new place.
> 2. Usually a duplicate. At most, its new folder is a scope addition.
> 3. Stops: Usually nothing is proposed.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=renamed-or-moved\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=renamed-or-moved)

> [accordion] Not a rule, or several
>
> 1 change
>
> ![Not a rule, or several? None, or up to three.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/not-a-rule-or-several-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=b7198892117f97d48106861af1143a6f)
>
> 1. How-to text gives no draft. A passage gives one draft per rule, up to three: here, type hints and docstrings.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=not-a-rule-or-several\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=not-a-rule-or-several)

### How drafts are matched

> [accordion] Close to a requirement, but different
>
> 2 changes
>
> ![Close, but different? Its source decides.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/file-and-requirement-disagree-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=0cabaaef13b14d590ca163b69b8b72f2)
>
> 1. Close, but a code change could break one without the other.
> 2. Learned from this line: an edit. From another file: a new requirement. Written by a person: two choices.
>
> **Why does the source matter?** Zenable follows a line it learned from, keeps rules from other files separate so refinement can merge them later, and never changes what a person wrote without asking.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=file-and-requirement-disagree\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=file-and-requirement-disagree)

> [accordion] An edit changes the kind of rule
>
> 2 changes
>
> ![A different kind of rule? The edit follows.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/rule-changes-type-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=d16c145e014a63ad0374f333f930ee6f)
>
> 1. “Always use type hints” became “when adding a public function, use type hints”.
> 2. The edit takes the new kind of requirement: it applies when a public function is added.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=rule-changes-type\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=rule-changes-type)

> [accordion] Zenable's own pull request is merged
>
> 3 changes
>
> ![Zenable's own pull request? Nothing is proposed.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/context-refinement-pr-merged-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=d50f7a80bf0b6f944dea84584631e05a)
>
> 1. You merge a pull request that AI Context Refinement opened.
> 2. The file now states a requirement you already have.
> 3. Stops: Nothing is proposed.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=context-refinement-pr-merged\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=context-refinement-pr-merged)

### Limits and failures

> [accordion] Credits run out
>
> 1 change
>
> ![No credits left? Proposals wait.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/credits-run-out-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=8f143e59ff5fe3e70e802719a9828723)
>
> 1. Waits: Proposals use credits from the installation's pool. When it is empty, the rest wait until there are credits again.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=credits-run-out\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=credits-run-out)

> [accordion] The hourly limit is reached
>
> 1 change
>
> ![Lots of rules at once? 25 an hour.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/hourly-limit-reached-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=42d56a5c9033402c47a0d0b88121e1f2)
>
> 1. Waits: A repository gets at most 25 proposals an hour; the rest arrive over the next hours.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=hourly-limit-reached\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=hourly-limit-reached)

> [accordion] Something fails
>
> 1 change
>
> ![Something failed? The next hour retries.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/something-fails-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=06946530bf18ea78bf6a4daefbc9053e)
>
> 1. Waits: The next hourly run picks it up. Nothing is proposed twice.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=something-fails\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=something-fails)

> [accordion] Turned off and on, or a repository joins
>
> 1 change
>
> ![Turned back on? Only what changed is read.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/turned-off-and-on-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=0cb20d101d02bc5aa4b64f629cc3ad8c)
>
> 1. Turned back on: only what changed since is read. A repository that joins is read in full.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=turned-off-and-on\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=turned-off-and-on)

> [accordion] Something is held back
>
> 1 change
>
> ![Something held back? A banner says why.](https://mintcdn.com/zenable/yT5mEPSebu7txvwB/img/learning/held-back-banner-light.svg?fit=max\&auto=format\&n=yT5mEPSebu7txvwB\&q=85\&s=403571609021f5b33be1b16bda911b2a)
>
> 1. The profile and the Proposals page list what is waiting, and why.
>
> [See it as a slide](https://www.zenable.app/learn/view?slides=learning-from-context-files\&slide=held-back-banner\&utm_source=docs\&utm_medium=learning-from-context-files\&utm_content=held-back-banner)


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