Repository navigation
op excludes
Profile of "noisy" directories: what is excluded and what that costs.
| Group | Corpus structure |
| Edition | pro — opens with a Pro licence |
| Capability |
exclude-management — the feature that carries this operation; the licence matrix is on 15 · Editions and licensing
|
| MCP tool |
ragraf_excludes · may change state · idempotent |
| CLI | ragraf -p <config> query excludes … |
Switching a profile changes the COMPOSITION of the corpus, so "just skip temp" is a promise that has to be checked, not only configured. A measurement on 28.10.2026 over 40 corpora (tools/measure_noisy_dirs.py) found 1 215 code files under tmp directories and 56 of 56 under bin; therefore apply first counts the effect and REFUSES when code files would fall out, naming them, while force=true is the owner's conscious decision and shows up as forced.
- See what a noisy-directory profile would exclude and what that would cost.
- Be stopped when the profile would drop code, with the files named.
- Change only the
indexsection of the corpus config, written with a backup;DEFAULT_EXCLUDESstays as it is and.ragrafcannot be added.
Command line: ragraf -p <config> query excludes. The flags follow the parameter names; the CLI maps a few of them to its own switches, listed in 05 · CLI Reference.
$ ragraf -p <config> query excludes
The same call through MCP: ragraf_excludes().
No executed example. This operation needs the pro edition, and the demo run is a community one.
The call form above is generated from the signature; running it needs a corpus that supports the operation, and the page does not pretend an answer it has not seen.
| Name | Type | Default |
|---|---|---|
action |
str |
'show' |
dirs |
str |
'' |
force |
bool |
False |
Result keys visible in the code: current, dirs, forced, impact, written.
The body also writes these fields into the answer envelope itself (extra): next, note, source.
The envelope around the result is the same for every operation; how to read it: 04 · Operations reference.
| Step | What happens |
|---|---|
| Reads | none of the three stores directly — the answer comes through the engine the body calls, or from what the call is given |
| Calls |
excludes_mod.describe, excludes_mod.impact, excludes_mod.normalize, settings_mod.write_project_settings
|
| Guarded by | nothing: no licence gate and no revision check, the body answers directly |
| Writes |
next, note, source into the answer envelope |
| Empty answer | yes |
flowchart TD
Start[query excludes]
Call0[excludes_mod.describe]
Call1[excludes_mod.impact]
Call2[excludes_mod.normalize]
Found{found}
Empty[empty result]
Out[envelope with result]
Start --> Call0
Call0 --> Call1
Call1 --> Call2
Call2 --> Found
Found -- no --> Empty
Found -- yes --> Out
Every answer carries a limits field, and it is never empty when a boundary exists: that is where the limits of this particular call are named — which part of the corpus was not covered, which fact could not be confirmed, what the operation refused to guess.
The boundary of the whole Corpus structure group is stated once, on the reference page. It is a sentence about the group, so it is not repeated here as if it were a sentence about excludes.
← previous in the group: dead_code
→ next in the group: preflight
The full table with all 87 operations · A–Z index · Corpus structure
Where these fields come from: the parameters, their types and defaults are read from the signature op_excludes in src/ragraf/facade.py:5764 (line numbers as of 0.12.0); the MCP annotations from the tool registration; the edition from src/ragraf/edition_baseline.json; the guards, calls, stores, envelope fields and the diagram from the body of that same method. The example is a run of tools/build-op-examples.py on the demo corpus at revision rev-0002; fields whose value is Russian prose in this build (limits, explanatory strings) are counted, not quoted. Nothing else on this page is written by hand.
The reason and the tasks above are a translation of the docstring of op_excludes, src/ragraf/facade.py:5764, kept in tools/op-text.json next to the line it came from. That file is the only hand-written text in the pipeline; the gate tools/check-op-text.py checks that the line exists and that its text is English.