clew — main (clew/cli.py)¶
Overview · 400 steps, 7 lanes
All 400 steps
| # | caller | callee | what it does | requirements | frames | call site |
|---|---|---|---|---|---|---|
| 1 | main | propose_main | Run clew propose . | REQ-DDB-CONFIG-001 | if (line 3996) | clew/cli.py:4000 |
| 2 | propose_main | build_parser | Build the clew propose argument parser. | REQ-DDB-CONFIG-001 | — | clew/propose/command.py:127 |
| 3 | propose_main | _configure_logging | Send logging to stderr so the draft on stdout stays parseable. | — | — | clew/propose/command.py:128 |
| 4 | propose_main | _refusal | Why the output path must not be written, if it must not. | — | — | clew/propose/command.py:131 |
| 5 | propose_main | propose | Propose a starter .clew.yaml for one repo. | REQ-DDB-CONFIG-001 | — | clew/propose/command.py:136 |
| 6 | propose | db_status_summary | Freshness and usability summary for the index a proposal measures against. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:307 |
| 7 | db_status_summary | index_defect | Why a database cannot be dry-run against, if it cannot. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:460 |
| 8 | index_defect | _count | Count rows in a table, tolerating its absence. | — | try (line 86) | clew/propose/dryrun.py:86 |
| 9 | index_defect | _defect_reason | Turn a memberdef presence/row count into a defect reason. | — | — | clew/propose/dryrun.py:96 |
| 10 | db_status_summary | read_build_signature | Read the build version stamped into a DB, or None if absent/unreadable. | REQ-DDB-PIPE-005 | — | clew/propose/registry.py:461 |
| 11 | propose | build_context | Assemble everything the detectors are allowed to read, once. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:308 |
| 12 | build_context | derive_scope | Resolve the index scope: a declared index_scope, else the whole repository. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:268 |
| 13 | derive_scope | _declared_index_scope | Index scope declared directly in the repo's .clew.yaml . | — | — | clew/scope.py:691 |
| 14 | _declared_index_scope | load_declaration_located | A repo's declaration AND the file it was read from. | REQ-DDB-CONFIG-001 | else (line 1171) | clew/scope.py:1172 |
| 15 | load_declaration_located | _read_mapping | Parse a YAML file expected to hold a mapping. | — | — | clew/declaration.py:429 |
| 16 | _read_mapping | _parsed_declaration | Parse a declaration file into (mapping, problem). | — | — | clew/declaration.py:668 |
| 17 | load_declaration_located | _checked_sections | Check every declared section's shape, normalising a one-string list section. | — | if (line 485) | clew/declaration.py:485 |
| 18 | _checked_sections | _checked_section | Check one section's shape. | — | loop (line 506) | clew/declaration.py:507 |
| 19 | _checked_section | _checked_list_section | Read a list section, accepting one bare string as a one-item list. | — | if (line 529) | clew/declaration.py:529 |
| 20 | _checked_list_section | all | Every comment, oldest first, with its status. | REQ-DDB-WIKI-054 | — | clew/declaration.py:619 |
| 21 | all | _events | — | — | loop (line 135) | clew/mcp_server/comments.py:135 |
| 22 | all | _public | A stored event's public fields. | — | loop (line 135), if (line 137) | clew/mcp_server/comments.py:137 |
| 23 | all | list | — | — | — | clew/mcp_server/comments.py:140 |
| 24 | list | link | — | — | — | clew/wiki/themes/clew/static/web.js:85 |
| 25 | _checked_section | _checked_requirements | Check the catalog section against the gate's own schema. | — | if (line 531) | clew/declaration.py:531 |
| 26 | _checked_requirements | _validate_node | Validate a single config node against its schema spec. | REQ-DDB-GUARD-012 | — | clew/declaration.py:602 |
| 27 | _validate_node | _validate_map_of | Validate a mapping of user-named entries against the schema every entry follows. | — | if (line 445) | clew/guard/config.py:445 |
| 28 | _validate_map_of | _config_path | Build a dotted config path from parent path and key. | — | loop (line 470) | clew/guard/config.py:471 |
| 29 | _validate_map_of | _validate_node | Validate a single config node against its schema spec. | REQ-DDB-GUARD-012 | loop (line 470) | clew/guard/config.py:471 |
| 30 | _validate_node | _validate_dict_node | Validate dict keys against schema, recursing into sub-nodes. | REQ-DDB-GUARD-012 | — | clew/guard/config.py:458 |
| 31 | _validate_dict_node | _config_path | Build a dotted config path from parent path and key. | — | loop (line 417) | clew/guard/config.py:418 |
| 32 | _validate_dict_node | _suggest_key | Suggest the closest known schema key for a misspelled one. | — | loop (line 417), if (line 420) | clew/guard/config.py:420 |
| 33 | _validate_dict_node | _validate_node | Validate a single config node against its schema spec. | REQ-DDB-GUARD-012 | loop (line 417), else (line 421) | clew/guard/config.py:422 |
| 34 | _checked_section | _checked_tests | Check the list-shaped keys of tests: . | — | if (line 533) | clew/declaration.py:533 |
| 35 | _checked_tests | _checked_list_section | Read a list section, accepting one bare string as a one-item list. | — | loop (line 569), if (line 571) | clew/declaration.py:571 |
| 36 | _checked_tests | … 1 not run | — | — | — | — |
| 37 | _checked_section | check_manifest_document | — | — | if (line 547), try (line 548) | clew/declaration.py:548 |
| 38 | check_manifest_document | _checked_document | — | — | — | clew/buildoptions.py:620 |
| 39 | _checked_document | _checked_entries | — | — | loop (line 598) | clew/buildoptions.py:599 |
| 40 | _checked_entries | _checked_entry | — | — | loop (line 648) | clew/buildoptions.py:649 |
| 41 | _checked_section | _check_section_keys | Refuse a key a section-document section's reader never reads. | — | — | clew/declaration.py:551 |
| 42 | _declared_index_scope | _existing_paths | Resolve declared repo-relative entries that exist INSIDE the repository. | — | — | clew/scope.py:1196 |
| 43 | _existing_paths | _is_within | Whether a path is the same as, or inside, another. | — | loop (line 1416) | clew/scope.py:1418 |
| 44 | _declared_index_scope | _existing_paths | Resolve declared repo-relative entries that exist INSIDE the repository. | — | — | clew/scope.py:1203 |
| 45 | derive_scope | whole_repo_scope | The whole repository as one INPUT root, less only what git ignores. | REQ-DDB-CONFIG-001 | if (line 696) | clew/scope.py:697 |
| 46 | whole_repo_scope | _gitignored_paths | Paths the repo's own git configuration ignores. | — | — | clew/scope.py:733 |
| 47 | _gitignored_paths | git_argv | One git argv with every command-valued configuration key disarmed. | REQ-DDB-CONFIG-001 | — | clew/scope.py:989 |
| 48 | git_argv | _no_ext_diff | Insert --no-ext-diff after a diff-family subcommand. | REQ-DDB-CONFIG-001 | — | clew/gitenv.py:110 |
| 49 | git_argv | list | — | — | — | clew/gitenv.py:110 |
| 50 | _gitignored_paths | git_env | The current environment with git's hook-repository overrides removed. | REQ-DDB-CONFIG-001 | try (line 1003) | clew/scope.py:1008 |
| 51 | whole_repo_scope | list | — | — | — | clew/scope.py:734 |
| 52 | whole_repo_scope | nested_repo_roots | Directories holding their own git tree anywhere under a repo root. | REQ-DDB-CONFIG-001 | — | clew/scope.py:745 |
| 53 | nested_repo_roots | _nested_repos_under | Directories holding a .git strictly beneath one declared root. | — | if (line 845) | clew/scope.py:845 |
| 54 | _nested_repos_under | _warn_unwalkable | Report a directory the nested-repository check could not read. | — | loop (line 1239) | clew/scope.py:1239 |
| 55 | _nested_repos_under | _holds_git_tree | Whether a directory owns a git tree, as a SUBMODULE or as a clone. | — | loop (line 1239) | clew/scope.py:1241 |
| 56 | _nested_repos_under | _skip_dir | Whether a directory entry should be skipped outright by the walk. | — | loop (line 1239) | clew/scope.py:1255 |
| 57 | nested_repo_roots | _nested_repos_under | Directories holding a .git strictly beneath one declared root. | — | if (line 847) | clew/scope.py:847 |
| 58 | whole_repo_scope | _gitignored_paths | Paths the repo's own git configuration ignores. | — | loop (line 746) | clew/scope.py:747 |
| 59 | whole_repo_scope | _pruned_dirs | Dot and cache directories anywhere under a whole-repo root. | — | — | clew/scope.py:751 |
| 60 | _pruned_dirs | _warn_unwalkable | Report a directory the nested-repository check could not read. | — | loop (line 1055) | clew/scope.py:1055 |
| 61 | _pruned_dirs | _skip_dir | Whether a directory entry should be skipped outright by the walk. | — | loop (line 1055), if (line 1075) | clew/scope.py:1075 |
| 62 | _pruned_dirs | _descendable | Split one directory's children into those worth walking and those to exclude. | — | loop (line 1055) | clew/scope.py:1085 |
| 63 | _descendable | _is_within | Whether a path is the same as, or inside, another. | — | loop (line 1117) | clew/scope.py:1119 |
| 64 | _descendable | _skip_dir | Whether a directory entry should be skipped outright by the walk. | — | loop (line 1117) | clew/scope.py:1121 |
| 65 | whole_repo_scope | _declaration_note | Where a declaration was looked for, phrased for a fallback reason. | REQ-DDB-CONFIG-001 | — | clew/scope.py:763 |
| 66 | whole_repo_scope | _ignore_clause | The scope reason's clause about ignored paths, true to what git actually answered. | — | — | clew/scope.py:764 |
| 67 | whole_repo_scope | _vendored_clause | Name the indexed trees that look vendored, and how to exclude them. | — | — | clew/scope.py:765 |
| 68 | whole_repo_scope | _declaration_advice | How to declare an index scope, in this build's own spelling. | REQ-DDB-CONFIG-001 | — | clew/scope.py:768 |
| 69 | derive_scope | whole_repo_scope | The whole repository as one INPUT root, less only what git ignores. | REQ-DDB-CONFIG-001 | — | clew/scope.py:698 |
| 70 | build_context | repo_source_files | Every C/C++ source file under a repo root, in sorted order. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:269 |
| 71 | repo_source_files | _scandir | Directory entries, or an empty list when the directory is unreadable. | — | loop (line 134), loop (line 135) | clew/propose/scanning.py:135 |
| 72 | repo_source_files | _ts_language_for | Select the C, C++, Python or Rust tree-sitter language by extension. | — | loop (line 134), loop (line 135) | clew/propose/scanning.py:139 |
| 73 | _ts_language_for | _grammar_available | Whether a routed grammar is actually compiled into the installed substrate. | — | — | clew/harvest.py:230 |
| 74 | _grammar_available | has_language | Whether this substrate build can parse one language. | REQ-DDB-PIPE-012 | — | clew/harvest.py:252 |
| 75 | has_language | compiled_languages | Every language key this substrate build can parse. | REQ-DDB-PIPE-012 | — | clew/substrate.py:61 |
| 76 | _ts_language_for | _try_import_ts_module | The grammar handle for a substrate: name, or None for any other name. | — | — | clew/harvest.py:232 |
| 77 | build_context | scope_membership | Build the "is this path inside the derived index scope?" predicate. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:270 |
| 78 | build_context | scan_repo | Scan the whole repo tree for definitions and accessor-shaped calls. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:271 |
| 79 | scan_repo | relative_to | Repo-root-relative POSIX path for an absolute path under the root. | REQ-DDB-CONFIG-001 | loop (line 239) | clew/propose/scanning.py:240 |
| 80 | scan_repo | _ast_parse_one_file | Parse one file with the appropriate tree-sitter grammar. | — | loop (line 239) | clew/propose/scanning.py:241 |
| 81 | _ast_parse_one_file | _ts_language_for | Select the C, C++, Python or Rust tree-sitter language by extension. | — | — | clew/harvest.py:375 |
| 82 | _ast_parse_one_file | _cached_parser | Memoized substrate parser for one grammar name. | — | — | clew/harvest.py:376 |
| 83 | _cached_parser | _try_import_ts_module | The grammar handle for a substrate: name, or None for any other name. | — | if (line 288) | clew/harvest.py:288 |
| 84 | _ast_parse_one_file | _parseable_file | Whether a file may be parsed: it exists and is not binary. | REQ-DDB-PIPE-011 | — | clew/harvest.py:377 |
| 85 | _parseable_file | binary_file | The binary classification of one file, or None when it is text or unreadable. | REQ-DDB-PIPE-011 | — | clew/harvest.py:313 |
| 86 | _ast_parse_one_file | _disambiguate_header | Re-parse an erroring ambiguous header as C++ and keep the cleaner tree. | — | if (line 385) | clew/harvest.py:385 |
| 87 | _disambiguate_header | _cached_parser | Memoized substrate parser for one grammar name. | — | — | clew/harvest.py:346 |
| 88 | _disambiguate_header | _parse_error_count | Count ERROR/MISSING nodes in a parsed tree. | — | — | clew/harvest.py:350 |
| 89 | scan_repo | _absorb_file | Fold one parsed file's definitions and accessor sites into the corpus. | — | loop (line 239) | clew/propose/scanning.py:247 |
| 90 | _absorb_file | definition_record | Build the FuncDef for one definition node, or None when unusable. | REQ-DDB-CONFIG-001 | loop (line 268), if (line 270) | clew/propose/scanning.py:270 |
| 91 | definition_record | _signature | Name, parameters and walkable body of one definition node. | — | — | clew/propose/astdefs.py:137 |
| 92 | _signature | _macro_signature | Name and parameters of a preproc_function_def . | — | if (line 168) | clew/propose/astdefs.py:168 |
| 93 | _macro_signature | text_of | Text of a node. | REQ-DDB-CONFIG-001 | — | clew/propose/astdefs.py:207 |
| 94 | _macro_signature | text_of | Text of a node. | REQ-DDB-CONFIG-001 | — | clew/propose/astdefs.py:211 |
| 95 | _signature | _macro_body | Re-parse a macro's body so its calls become visible. | — | if (line 168) | clew/propose/astdefs.py:169 |
| 96 | _macro_body | text_of | Text of a node. | REQ-DDB-CONFIG-001 | — | clew/propose/astdefs.py:230 |
| 97 | _macro_body | _macro_parser | Memoised C parser used for macro replacement text. | — | — | clew/propose/astdefs.py:234 |
| 98 | _signature | _function_signature | Name, parameters and body of a function_definition . | — | — | clew/propose/astdefs.py:171 |
| 99 | _function_signature | _function_declarator | Descend a declarator chain to its function_declarator . | — | — | clew/propose/astdefs.py:183 |
| 100 | _function_signature | _tail_name | The trailing simple name of a declarator node. | — | — | clew/propose/astdefs.py:187 |
| 101 | _tail_name | _first_identifier | The first identifier of a subtree in document order. | — | — | clew/propose/astdefs.py:296 |
| 102 | _first_identifier | text_of | Text of a node. | REQ-DDB-CONFIG-001 | loop (line 317), if (line 320) | clew/propose/astdefs.py:320 |
| 103 | _function_signature | _param_names | Parameter identifiers of a parameter list, in declaration order. | — | — | clew/propose/astdefs.py:190 |
| 104 | _param_names | _first_identifier | The first identifier of a subtree in document order. | — | — | clew/propose/astdefs.py:339 |
| 105 | definition_record | _forward_calls | Calls inside a body that pass one of the definition's parameters on. | — | — | clew/propose/astdefs.py:149 |
| 106 | _forward_calls | _forward_call | One call's parameter-forwarding map, or None when it forwards nothing. | — | loop (line 361) | clew/propose/astdefs.py:364 |
| 107 | _forward_call | callee_name | The callee's text when it is an identifier / qualified identifier. | REQ-DDB-CONFIG-001 | — | clew/propose/astdefs.py:382 |
| 108 | _forward_call | _bare_identifier | The bare identifier an argument names, unwrapping &/casts/parentheses. | — | — | clew/propose/astdefs.py:389 |
| 109 | _bare_identifier | text_of | Text of a node. | REQ-DDB-CONFIG-001 | — | clew/propose/astdefs.py:410 |
| 110 | _absorb_file | _accessor_site | One accessor-shaped call site, or None when the callee is not one. | — | loop (line 268), elif (line 274) | clew/propose/scanning.py:274 |
| 111 | _accessor_site | callee_name | The callee's text when it is an identifier / qualified identifier. | REQ-DDB-CONFIG-001 | — | clew/propose/scanning.py:292 |
| 112 | build_context | load_declaration | Load a repo's .clew.yaml , or an empty mapping when it has none. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:276 |
| 113 | load_declaration | load_declaration_located | A repo's declaration AND the file it was read from. | REQ-DDB-CONFIG-001 | — | clew/declaration.py:383 |
| 114 | propose | _sections | Every section's result, in render order. | — | — | clew/propose/registry.py:314 |
| 115 | _sections | _blocking | Why the AST detectors cannot run, when they cannot. | — | — | clew/propose/registry.py:333 |
| 116 | _blocking | ast_readable_in_scope | How many in-scope files a grammar the AST detectors understand handles. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:362 |
| 117 | ast_readable_in_scope | _ts_language_for | Select the C, C++, Python or Rust tree-sitter language by extension. | — | — | clew/propose/scanning.py:169 |
| 118 | _blocking | is_derived | Whether this scope should override the Doxyfile's INPUT. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:365 |
| 119 | _sections | _blocked_section | A detector section that could not run, carrying the reason it could not. | — | — | clew/propose/registry.py:335 |
| 120 | _sections | _hand_section | A section clew refuses to detect: hand-declared, or already declared. | — | — | clew/propose/registry.py:338 |
| 121 | _sections | _index_scope_section | The report-only index_scope section, plus the no-corpus caveat. | — | — | clew/propose/registry.py:339 |
| 122 | _index_scope_section | report_not_indexed | Build the report-only index_scope section. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:430 |
| 123 | report_not_indexed | tracked_files | Git-tracked repo-relative paths, or None when git is unavailable. | REQ-DDB-CONFIG-001 | — | clew/propose/notindexed.py:270 |
| 124 | tracked_files | git_argv | One git argv with every command-valued configuration key disarmed. | REQ-DDB-CONFIG-001 | try (line 96) | clew/propose/notindexed.py:97 |
| 125 | tracked_files | git_env | The current environment with git's hook-repository overrides removed. | REQ-DDB-CONFIG-001 | try (line 96) | clew/propose/notindexed.py:103 |
| 126 | report_not_indexed | candidate_dirs | Group out-of-scope definitions into candidate directories. | REQ-DDB-CONFIG-001 | — | clew/propose/notindexed.py:271 |
| 127 | candidate_dirs | _as_dirs | Convert the grouping buckets into sorted NotIndexedDir records. | — | — | clew/propose/notindexed.py:202 |
| 128 | candidate_dirs | … 1 not run | — | — | — | — |
| 129 | report_not_indexed | _dir_lines | One report line per candidate directory, with its hazards. | — | — | clew/propose/notindexed.py:276 |
| 130 | report_not_indexed | cross_section_conflicts | Warn when a proposed section's evidence reaches outside the index. | REQ-DDB-CONFIG-001 | — | clew/propose/notindexed.py:278 |
| 131 | propose | scope_summary | Scope and corpus summary for the rendered header. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:315 |
| 132 | scope_summary | is_derived | Whether this scope should override the Doxyfile's INPUT. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:489 |
| 133 | scope_summary | ast_readable_in_scope | How many in-scope files a grammar the AST detectors understand handles. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:494 |
| 134 | propose | render_declaration | Render a whole proposal as a commented .clew.yaml draft. | REQ-DDB-CONFIG-001 | — | clew/propose/registry.py:322 |
| 135 | render_declaration | _header | The document header: what this is, what it was measured against. | — | — | clew/propose/render.py:86 |
| 136 | _header | _scope_line | One-line description of the derived index scope. | — | — | clew/propose/render.py:187 |
| 137 | _header | _db_line | One-line description of the index the proposal was measured against. | — | — | clew/propose/render.py:188 |
| 138 | _header | _wrap | Wrap prose into comment lines at the document width. | — | — | clew/propose/render.py:190 |
| 139 | _header | _wrap | Wrap prose into comment lines at the document width. | — | — | clew/propose/render.py:192 |
| 140 | render_declaration | _summary | The section index: one row per section with its status and counts. | — | — | clew/propose/render.py:86 |
| 141 | render_declaration | _section_block | One section's whole block: status, evidence, YAML, rejections, notes. | — | loop (line 87) | clew/propose/render.py:88 |
| 142 | _section_block | _wrap | Wrap prose into comment lines at the document width. | — | — | clew/propose/render.py:284 |
| 143 | _section_block | _checked | The checked counters as one wrapped line. | — | — | clew/propose/render.py:285 |
| 144 | _checked | _wrap | Wrap prose into comment lines at the document width. | — | — | clew/propose/render.py:305 |
| 145 | _section_block | _entries | The evidence for every accepted entry, numbered. | — | — | clew/propose/render.py:287 |
| 146 | _section_block | _yaml_block | The activatable YAML block for a section, marked with the gutter. | — | — | clew/propose/render.py:288 |
| 147 | _section_block | _rejections | Every refused candidate, with its reason and evidence. | — | — | clew/propose/render.py:289 |
| 148 | _rejections | _wrap | Wrap prose into comment lines at the document width. | — | loop (line 369) | clew/propose/render.py:371 |
| 149 | _section_block | _notes | A section's free-standing notes, wrapped. | — | — | clew/propose/render.py:290 |
| 150 | _notes | _wrap | Wrap prose into comment lines at the document width. | — | loop (line 387) | clew/propose/render.py:388 |
| 151 | propose_main | _resolve_db | Resolve the index to measure candidates against. | — | — | clew/propose/command.py:138 |
| 152 | _resolve_db | find_index | The existing index for a repository. | REQ-DDB-GUARD-010 | — | clew/propose/command.py:206 |
| 153 | find_index | registered_index | The database the MCP target registry has allocated for a repository. | — | — | clew/indexlocate.py:30 |
| 154 | propose_main | _emit | Write the draft to a file or to stdout. | — | — | clew/propose/command.py:142 |
| 155 | main | export_main | clew export entry point. | REQ-DDB-CLI-001 | if (line 4002) | clew/cli.py:4006 |
| 156 | export_main | _parser | clew export 's argument parser. | — | — | clew/export_command.py:177 |
| 157 | export_main | stated_declaration | The declaration mapping an index's recorded tier-1 statements reproduce. | REQ-DDB-CONFIG-001 | — | clew/export_command.py:183 |
| 158 | main | init_main | Run clew init . | REQ-DDB-CLI-001 | if (line 4008) | clew/cli.py:4012 |
| 159 | init_main | build_parser | Build the clew init argument parser. | REQ-DDB-CLI-001 REQ-DDB-CLI-002 | — | clew/init_command.py:705 |
| 160 | init_main | diagnose | Run every doctor check for a repo and scope. | REQ-DDB-CLI-001 REQ-DDB-CLI-002 | — | clew/init_command.py:707 |
| 161 | diagnose | _check_client_config | Whether the user-scope config location can be established on this machine. | — | — | clew/init_command.py:501 |
| 162 | _check_client_config | global_config_evidence | The two paths that evidence a Claude Code install for this user. | REQ-DDB-MCP-001 | — | clew/init_command.py:202 |
| 163 | global_config_evidence | claude_state_dir | Directory Claude Code keeps its per-user state in. | REQ-DDB-MCP-001 | — | clew/mcp_config.py:234 |
| 164 | global_config_evidence | global_config_path | The user-scoped Claude Code config file. | REQ-DDB-MCP-001 | — | clew/mcp_config.py:234 |
| 165 | _check_client_config | global_config_available | Whether a user-level Claude Code config can be written with confidence. | REQ-DDB-MCP-001 | — | clew/init_command.py:203 |
| 166 | global_config_available | global_config_evidence | The two paths that evidence a Claude Code install for this user. | REQ-DDB-MCP-001 | — | clew/mcp_config.py:257 |
| 167 | diagnose | _check_server_command | Whether the MCP server console script can be located. | — | — | clew/init_command.py:502 |
| 168 | _check_server_command | resolve_server_command | Decide the command string to record for this machine. | REQ-DDB-MCP-001 | — | clew/init_command.py:226 |
| 169 | resolve_server_command | _locate_script | Locate the MCP server console script. | — | — | clew/mcp_config.py:380 |
| 170 | resolve_server_command | _repo_relative | Express a path relative to a repo root, when it is inside it. | — | — | clew/mcp_config.py:389 |
| 171 | resolve_server_command | _path_or_name | Choose between the bare console-script name and an absolute path. | — | — | clew/mcp_config.py:392 |
| 172 | diagnose | _check_mcp_sdk | Whether the SDK module the server imports can actually be imported. | — | — | clew/init_command.py:503 |
| 173 | diagnose | _check_doxygen | Whether the external doxygen binary is available. | — | — | clew/init_command.py:504 |
| 174 | _check_doxygen | uses_rustdoc | Whether repo_root 's build routes through rustdoc instead of doxygen. | — | — | clew/init_command.py:350 |
| 175 | uses_rustdoc | discover_doxyfile | Discover a repo's own Doxyfile (declaration-driven, never hardcoded). | REQ-DDB-INDEX-001 | — | clew/rustdoc.py:150 |
| 176 | uses_rustdoc | has_cargo_manifest | True when repo_root is a cargo package or workspace. | — | — | clew/rustdoc.py:150 |
| 177 | _check_doxygen | _needs_doxygen | Whether any file in the repo is one doxygen would index. | REQ-DDB-PIPE-012 | — | clew/init_command.py:358 |
| 178 | _needs_doxygen | claims | Whether a repo-relative path is one this front end claims. | — | loop (line 312), loop (line 314) | clew/init_command.py:318 |
| 179 | _check_doxygen | doxygen_supports_sqlite3 | Whether the doxygen on PATH was BUILT with sqlite3 output support. | REQ-DDB-CLI-002 | — | clew/init_command.py:380 |
| 180 | doxygen_supports_sqlite3 | clean_subprocess_env | os.environ + NO_COLOR/TERM=dumb so pipeline subprocesses emit no ANSI. | REQ-DDB-PIPE-006 | try (line 1304) | clew/doxygen.py:1309 |
| 181 | diagnose | _check_indexable | Whether this repo can be indexed at all. | — | — | clew/init_command.py:505 |
| 182 | _check_indexable | discover_doxyfile | Discover a repo's own Doxyfile (declaration-driven, never hardcoded). | REQ-DDB-INDEX-001 | — | clew/init_command.py:422 |
| 183 | _check_indexable | derive_scope | Resolve the index scope: a declared index_scope, else the whole repository. | REQ-DDB-CONFIG-001 | — | clew/init_command.py:443 |
| 184 | diagnose | _check_declaration | Whether the repo declares its own indexing conventions. | — | — | clew/init_command.py:506 |
| 185 | init_main | _format_check | Render one check as a single report line. | — | loop (line 710) | clew/init_command.py:711 |
| 186 | init_main | _register | Compute and perform the registration, given the diagnostics. | — | — | clew/init_command.py:712 |
| 187 | _register | _blocking | The blocking failures among a set of checks. | — | — | clew/init_command.py:676 |
| 188 | _register | resolve_server_command | Decide the command string to record for this machine. | REQ-DDB-MCP-001 | — | clew/init_command.py:680 |
| 189 | _register | server_entry | The server entry this tool writes. | REQ-DDB-MCP-001 | — | clew/init_command.py:681 |
| 190 | _register | config_path | The config file a given scope writes to. | REQ-DDB-MCP-001 | try (line 683) | clew/init_command.py:683 |
| 191 | config_path | global_config_path | The user-scoped Claude Code config file. | REQ-DDB-MCP-001 | — | clew/mcp_config.py:275 |
| 192 | _register | plan_merge | Plan the merge of this server's entry into a config file. | REQ-DDB-MCP-001 | try (line 683) | clew/init_command.py:683 |
| 193 | plan_merge | load_document | Read a config file into a document plus its original text. | REQ-DDB-MCP-001 | — | clew/mcp_config.py:545 |
| 194 | plan_merge | _classify | Classify what writing this entry would do. | — | — | clew/mcp_config.py:552 |
| 195 | plan_merge | _indent_of | Indentation to re-serialise with, taken from the file itself. | — | — | clew/mcp_config.py:557 |
| 196 | plan_merge | _entry_diff | Unified diff between the existing entry and the proposed one. | — | — | clew/mcp_config.py:565 |
| 197 | _register | _execute | Apply a plan subject to the conflict rule, and pick the exit code. | — | — | clew/init_command.py:687 |
| 198 | _execute | _print_conflict | Print the refusal for a conflicting existing entry. | — | if (line 638) | clew/init_command.py:638 |
| 199 | _execute | _emit | Emit a plan: print it under dry-run, otherwise write it. | — | — | clew/init_command.py:640 |
| 200 | _emit | _print_merge_preview | Print what a dry run would change, scoped to this server's entry. | — | if (line 610) | clew/init_command.py:610 |
| 201 | _emit | apply_plan | Write a planned edit to disk atomically, keeping a backup. | REQ-DDB-CLI-002 REQ-DDB-MCP-001 | — | clew/init_command.py:615 |
| 202 | _execute | _print_next_steps | Tell the user what happens next. | — | — | clew/init_command.py:641 |
| 203 | main | query_main | Parse arguments, answer, and print JSON. | REQ-DDB-QUERY-014 | if (line 4018) | clew/cli.py:4020 |
| 204 | query_main | _parser | The argument parser for clew query . | — | — | clew/query_command.py:149 |
| 205 | query_main | _locate | Resolve which database answers and which working tree bodies come from. | — | — | clew/query_command.py:150 |
| 206 | _locate | target_for | Allocate the Target record for a repo path (pure; no I/O). | REQ-DDB-MCP-001 | — | clew/query_command.py:102 |
| 207 | target_for | _safe_index_name | Reduce a declared sub-index name to something safe as a directory component. | — | if (line 352) | clew/mcp_server/state.py:352 |
| 208 | target_for | state_home | Per-user state root for built databases and the registry. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:353 |
| 209 | query_main | _payload | Build the payload the parsed request asks for. | — | try (line 155) | clew/query_command.py:155 |
| 210 | _payload | export_search | Export one corpus's search or inventory, as the MCP tool answers it. | REQ-DDB-QUERY-014 | if (line 118) | clew/query_command.py:118 |
| 211 | export_search | corpus_payload | Build one corpus's reply through the given list envelope. | REQ-DDB-QUERY-014 | — | clew/query/export.py:592 |
| 212 | corpus_payload | _symbol_corpus | The symbols corpus, ranked, with its limit disclosed. | — | — | clew/query/export.py:551 |
| 213 | _symbol_corpus | search_counted | search , plus how many rows matched before the limit cut them. | REQ-DDB-QUERY-001 | — | clew/query/export.py:429 |
| 214 | search_counted | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/symbols.py:1809 |
| 215 | search_counted | _memberdef_corpora | Ranked candidates from EVERY searched memberdef corpus, in one list. | — | — | clew/query/symbols.py:1811 |
| 216 | _memberdef_corpora | _expansion_sql | SQL for a macro's expansion, degrading to '' on a schema without the column. | — | loop (line 1576) | clew/query/symbols.py:1577 |
| 217 | _expansion_sql | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:1544 |
| 218 | has_columns | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/_common.py:131 |
| 219 | _memberdef_corpora | _memberdef_candidates | Ranked memberdef candidates of one kind whose name, brief, prose or FILE PATH carries every token. | — | loop (line 1576) | clew/query/symbols.py:1578 |
| 220 | _memberdef_candidates | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:1453 |
| 221 | _memberdef_candidates | documented_first | The ORDER BY fragment that makes doxygen's own row win a name collapse. | REQ-DDB-INDEX-004 | — | clew/query/symbols.py:1474 |
| 222 | documented_first | records_provenance | Whether this index records where its memberdef rows came from. | REQ-DDB-INDEX-004 | — | clew/query/_common.py:608 |
| 223 | records_provenance | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/_common.py:540 |
| 224 | _memberdef_candidates | symbol_provenance | The provenance a symbol row should REPORT, or None when it says nothing. | REQ-DDB-INDEX-004 | loop (line 1494), if (line 1497) | clew/query/symbols.py:1497 |
| 225 | symbol_provenance | records_provenance | Whether this index records where its memberdef rows came from. | REQ-DDB-INDEX-004 | — | clew/query/_common.py:572 |
| 226 | _memberdef_candidates | self_declared_paths | The exact paths of every self-declared generated file in an index. | — | — | clew/query/symbols.py:1505 |
| 227 | _memberdef_candidates | _one_line | Collapse whitespace and line continuations, then trim to brief length. | — | loop (line 1507) | clew/query/symbols.py:1508 |
| 228 | _one_line | _doc_brief | Shorten a file's documentation to a brief, at a word boundary. | — | — | clew/query/symbols.py:1402 |
| 229 | _memberdef_candidates | strip_xml | Strip doxygen's XML-ish markup from a description column. | REQ-DDB-QUERY-003 | loop (line 1507) | clew/query/symbols.py:1508 |
| 230 | _memberdef_candidates | _search_rank | Rank one candidate against the query tokens (higher is better). | — | loop (line 1507) | clew/query/symbols.py:1512 |
| 231 | _memberdef_candidates | symbol_provenance | The provenance a symbol row should REPORT, or None when it says nothing. | REQ-DDB-INDEX-004 | loop (line 1507) | clew/query/symbols.py:1520 |
| 232 | search_counted | _class_candidates | Ranked compound candidates whose name or brief carries every token. | — | — | clew/query/symbols.py:1812 |
| 233 | _class_candidates | _search_rank | Rank one candidate against the query tokens (higher is better). | — | — | clew/query/symbols.py:1658 |
| 234 | _class_candidates | class_rows | Compound rows matching EVERY token, or [] when compounds are unindexed. | REQ-DDB-QUERY-007 | — | clew/query/symbols.py:1663 |
| 235 | class_rows | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:1099 |
| 236 | class_rows | strip_xml | Strip doxygen's XML-ish markup from a description column. | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:1115 |
| 237 | search_counted | _config_candidates | Ranked configuration-symbol candidates whose name carries every token. | — | — | clew/query/symbols.py:1813 |
| 238 | _config_candidates | _search_rank | Rank one candidate against the query tokens (higher is better). | — | — | clew/query/symbols.py:1691 |
| 239 | _config_candidates | gate_symbol_rows | Gating-symbol rows matching EVERY token, with their gate-site counts. | REQ-DDB-QUERY-007 | — | clew/query/symbols.py:1701 |
| 240 | gate_symbol_rows | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:1155 |
| 241 | gate_symbol_rows | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:1157 |
| 242 | search_counted | _file_candidates | Ranked file candidates whose path or file-level documentation carries every token. | — | — | clew/query/symbols.py:1814 |
| 243 | _file_candidates | self_declared_paths | The exact paths of every self-declared generated file in an index. | — | — | clew/query/symbols.py:1616 |
| 244 | _file_candidates | _search_rank | Rank one candidate against the query tokens (higher is better). | — | — | clew/query/symbols.py:1620 |
| 245 | _file_candidates | _doc_brief | Shorten a file's documentation to a brief, at a word boundary. | — | — | clew/query/symbols.py:1629 |
| 246 | _file_candidates | file_doc_rows | File-level documentation rows matching EVERY token, or [] when unindexed. | REQ-DDB-QUERY-007 | — | clew/query/symbols.py:1633 |
| 247 | file_doc_rows | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:618 |
| 248 | _file_candidates | undocumented_path_rows | Registered paths matching EVERY token that carry no file-level documentation. | REQ-DDB-QUERY-007 | — | clew/query/symbols.py:1633 |
| 249 | undocumented_path_rows | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:659 |
| 250 | undocumented_path_rows | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:662 |
| 251 | undocumented_path_rows | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:670 |
| 252 | _symbol_corpus | search_emptiness | Note and payload for an empty search . | REQ-DDB-QUERY-007 | — | clew/query/export.py:431 |
| 253 | search_emptiness | index_scope | A has_gate_layer helper lived here for gh#393 and is deliberately gone with the verdict change it existed to serve. | REQ-DDB-QUERY-007 | — | clew/query/emptiness.py:327 |
| 254 | index_scope | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/corpus.py:812 |
| 255 | index_scope | _scope_provenance | The scope. | — | — | clew/query/corpus.py:813 |
| 256 | _scope_provenance | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:899 |
| 257 | index_scope | _indexed_paths | Every indexed, non-synthetic file path. | — | — | clew/query/corpus.py:814 |
| 258 | _indexed_paths | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:915 |
| 259 | index_scope | _extensions | Distinct dot-prefixed extensions of a path list. | — | — | clew/query/corpus.py:821 |
| 260 | index_scope | _not_indexed | The build's record of file types it had in scope and holds no rows for. | REQ-DDB-QUERY-007 | — | clew/query/corpus.py:822 |
| 261 | search_emptiness | _scope_payload | The scope block for a per-query reply: the covered shape, minus the derivation. | — | — | clew/query/emptiness.py:328 |
| 262 | _scope_payload | one | Serialize one R2 dataclass (an ENVELOPE) to its JSON wire form. | REQ-DDB-QUERY-001 | — | clew/query/emptiness.py:232 |
| 263 | one | _listed | asdict dict_factory that turns tuple-valued fields into lists. | — | — | clew/wire.py:167 |
| 264 | one | _prune_rows | Prune absent fields from ROWS (dicts inside a list), leaving the envelope whole. | — | — | clew/wire.py:167 |
| 265 | _prune_rows | _prune_rows | Prune absent fields from ROWS (dicts inside a list), leaving the envelope whole. | — | if (line 148) | clew/wire.py:148 |
| 266 | _prune_rows | _prune_rows | Prune absent fields from ROWS (dicts inside a list), leaving the envelope whole. | — | if (line 150) | clew/wire.py:150 |
| 267 | _prune_rows | _pruned_row | One row with its absent fields removed, recursing into nested rows. | — | if (line 150) | clew/wire.py:150 |
| 268 | _pruned_row | _absent | True when a value carries nothing a consumer could read. | — | — | clew/wire.py:110 |
| 269 | _pruned_row | _prune_rows | Prune absent fields from ROWS (dicts inside a list), leaving the envelope whole. | — | — | clew/wire.py:110 |
| 270 | search_emptiness | unsearched_corpora | Rows a zero-result query WOULD have matched in a corpus search does not read. | REQ-DDB-QUERY-007 | — | clew/query/emptiness.py:329 |
| 271 | unsearched_corpora | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/symbols.py:1963 |
| 272 | unsearched_corpora | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:1965 |
| 273 | unsearched_corpora | _unread_kind_counts | Per-kind match counts for the kinds of one table that search does not read. | — | if (line 1966) | clew/query/symbols.py:1966 |
| 274 | unsearched_corpora | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:1967 |
| 275 | unsearched_corpora | _unread_kind_counts | Per-kind match counts for the kinds of one table that search does not read. | — | if (line 1968) | clew/query/symbols.py:1969 |
| 276 | search_emptiness | token_hit_counts | How many symbols and files each token matches ON ITS OWN. | REQ-DDB-QUERY-007 | if (line 333) | clew/query/emptiness.py:333 |
| 277 | token_hit_counts | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/symbols.py:1855 |
| 278 | token_hit_counts | _one_token_count | Independent match count for one token across both search corpora. | — | loop (line 1856) | clew/query/symbols.py:1857 |
| 279 | _one_token_count | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:1901 |
| 280 | _one_token_count | _expansion_sql | SQL for a macro's expansion, degrading to '' on a schema without the column. | — | if (line 1902) | clew/query/symbols.py:1908 |
| 281 | _one_token_count | class_rows | Compound rows matching EVERY token, or [] when compounds are unindexed. | REQ-DDB-QUERY-007 | — | clew/query/symbols.py:1911 |
| 282 | _one_token_count | file_doc_rows | File-level documentation rows matching EVERY token, or [] when unindexed. | REQ-DDB-QUERY-007 | — | clew/query/symbols.py:1911 |
| 283 | search_emptiness | _conjunction_note | Note for a zero-result multi-token search, naming what emptied it. | — | if (line 333) | clew/query/emptiness.py:335 |
| 284 | _conjunction_note | _render_counts | Render per-token hit counts as token=count prose. | — | — | clew/query/emptiness.py:293 |
| 285 | search_emptiness | _scope_sentence | One short sentence naming the indexed scope, without its derivation. | — | if (line 333) | clew/query/emptiness.py:335 |
| 286 | search_emptiness | _unread_note | The sentence naming rows an unread corpus holds, or '' when there are none. | — | if (line 333) | clew/query/emptiness.py:336 |
| 287 | search_emptiness | _verdict | Grade a single-token empty search: definitive only when nothing unread matched. | — | — | clew/query/emptiness.py:337 |
| 288 | _verdict | _unread_note | The sentence naming rows an unread corpus holds, or '' when there are none. | — | if (line 399) | clew/query/emptiness.py:399 |
| 289 | _verdict | has_file_docs | Whether this index carries a file-level documentation corpus at all. | REQ-DDB-QUERY-007 | — | clew/query/emptiness.py:400 |
| 290 | has_file_docs | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/corpus.py:778 |
| 291 | has_file_docs | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:779 |
| 292 | search_emptiness | _scope_sentence | One short sentence naming the indexed scope, without its derivation. | — | — | clew/query/emptiness.py:339 |
| 293 | _symbol_corpus | with_limit_disclosure | Say that a search was cut by its limit, and how many rows matched. | REQ-DDB-QUERY-014 | — | clew/query/export.py:433 |
| 294 | corpus_payload | _prose_corpus | The prose corpus: the repo's markdown and reStructuredText, full-text. | — | — | clew/query/export.py:552 |
| 295 | _prose_corpus | search_prose_graded | Full-text search over the ingested prose, widening to OR when the AND is empty. | REQ-DDB-QUERY-001 | — | clew/query/export.py:368 |
| 296 | search_prose_graded | _query_tokens | The query's tokens, stripped of FTS5 operator syntax. | — | — | clew/query/corpus.py:1007 |
| 297 | search_prose_graded | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/corpus.py:1008 |
| 298 | search_prose_graded | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:1011 |
| 299 | search_prose_graded | _fts_match | Run one FTS5 MATCH, retrying the raw text as a quoted phrase. | — | if (line 1012) | clew/query/corpus.py:1012 |
| 300 | search_prose_graded | _fts_match | Run one FTS5 MATCH, retrying the raw text as a quoted phrase. | — | if (line 1012), if (line 1014) | clew/query/corpus.py:1015 |
| 301 | search_prose_graded | strip_xml | Strip doxygen's XML-ish markup from a description column. | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:1025 |
| 302 | search_prose_graded | list | — | — | — | clew/query/corpus.py:1026 |
| 303 | search_prose_graded | member_doc_rows | Member documentation rows matching EVERY token, or [] when unavailable. | REQ-DDB-QUERY-007 | — | clew/query/corpus.py:1026 |
| 304 | member_doc_rows | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:717 |
| 305 | member_doc_rows | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:720 |
| 306 | search_prose_graded | _collapse | Collapse whitespace runs in a prose snippet (markup is NOT stripped). | — | — | clew/query/corpus.py:1032 |
| 307 | _prose_corpus | prose_emptiness | Note and payload for an empty search(corpus='prose )`. | REQ-DDB-QUERY-007 | — | clew/query/export.py:370 |
| 308 | prose_emptiness | has_prose_corpus | Whether this index carries an ingested markdown corpus at all. | REQ-DDB-QUERY-007 | — | clew/query/emptiness.py:469 |
| 309 | has_prose_corpus | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/corpus.py:759 |
| 310 | has_prose_corpus | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:760 |
| 311 | prose_emptiness | token_hit_counts | How many symbols and files each token matches ON ITS OWN. | REQ-DDB-QUERY-007 | — | clew/query/emptiness.py:471 |
| 312 | prose_emptiness | _render_counts | Render per-token hit counts as token=count prose. | — | if (line 474) | clew/query/emptiness.py:477 |
| 313 | corpus_payload | _code_corpus | The code corpus: functions whose body contains every word. | — | — | clew/query/export.py:553 |
| 314 | _code_corpus | search_code | Version 5: a query word also matches as a prefix ( MBEDTLS_ERR_ finds its family). | — | — | clew/query/export.py:328 |
| 315 | search_code | _has_table | Whether a table exists. | — | — | clew/code_text.py:415 |
| 316 | search_code | _match_query | The FTS expression for a word list: each word whole (stemmed) or as a prefix. | — | — | clew/code_text.py:425 |
| 317 | search_code | _has_table | Whether a table exists. | — | — | clew/code_text.py:428 |
| 318 | search_code | _has_table | Whether a table exists. | — | — | clew/code_text.py:433 |
| 319 | search_code | _first_match | Version 2: finds the snippet line by stem, as the match was made. | — | loop (line 448) | clew/code_text.py:449 |
| 320 | search_code | _has_table | Whether a table exists. | — | — | clew/code_text.py:463 |
| 321 | search_code | _file_hits | Files whose file-scope text holds every word, as kind: "file" hits. | — | if (line 464) | clew/code_text.py:464 |
| 322 | _file_hits | _first_match | Version 2: finds the snippet line by stem, as the match was made. | — | loop (line 538) | clew/code_text.py:539 |
| 323 | _code_corpus | count_code | How many units search_code would return with no limit. | REQ-DDB-QUERY-014 | — | clew/query/export.py:329 |
| 324 | count_code | _has_table | Whether a table exists. | — | — | clew/code_text.py:496 |
| 325 | count_code | _match_query | The FTS expression for a word list: each word whole (stemmed) or as a prefix. | — | — | clew/code_text.py:498 |
| 326 | count_code | _has_table | Whether a table exists. | — | — | clew/code_text.py:505 |
| 327 | _code_corpus | with_limit_disclosure | Say that a search was cut by its limit, and how many rows matched. | REQ-DDB-QUERY-014 | — | clew/query/export.py:340 |
| 328 | corpus_payload | _files_corpus | The file corpus: a directory rollup, or a glob's matching files with that context. | — | — | clew/query/export.py:554 |
| 329 | _files_corpus | files_context | The context every files reply carries, whatever was asked. | REQ-DDB-QUERY-014 | — | clew/query/export.py:502 |
| 330 | files_context | directory_rollup | The indexed file set rolled up by top-level directory. | REQ-DDB-QUERY-002 | — | clew/query/export.py:473 |
| 331 | directory_rollup | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/corpus.py:1486 |
| 332 | directory_rollup | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:1488 |
| 333 | directory_rollup | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:1492 |
| 334 | directory_rollup | rollup_meaning | Say what the per-directory counts are, and what they are NOT. | REQ-DDB-QUERY-002 | — | clew/query/corpus.py:1518 |
| 335 | files_context | one | Serialize one R2 dataclass (an ENVELOPE) to its JSON wire form. | REQ-DDB-QUERY-001 | — | clew/query/export.py:473 |
| 336 | files_context | doc_scope | What the repository DECLARES about its own doc build and its vendored trees. | REQ-DDB-QUERY-007 | — | clew/query/export.py:480 |
| 337 | doc_scope | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/corpus.py:1559 |
| 338 | doc_scope | _scope_provenance | The scope. | — | — | clew/query/corpus.py:1560 |
| 339 | _files_corpus | directory_rollup | The indexed file set rolled up by top-level directory. | REQ-DDB-QUERY-002 | if (line 504) | clew/query/export.py:505 |
| 340 | _files_corpus | one | Serialize one R2 dataclass (an ENVELOPE) to its JSON wire form. | REQ-DDB-QUERY-001 | if (line 504) | clew/query/export.py:505 |
| 341 | _files_corpus | list_files | The indexed source files, with documented-symbol counts. | REQ-DDB-QUERY-001 | — | clew/query/export.py:509 |
| 342 | list_files | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/corpus.py:158 |
| 343 | list_files | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:163 |
| 344 | list_files | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/corpus.py:173 |
| 345 | list_files | _matches | Whether a repo-relative path matches a * -glob pattern. | — | — | clew/query/corpus.py:186 |
| 346 | _files_corpus | files_miss | The note for a glob that matched no indexed file. | REQ-DDB-QUERY-014 | — | clew/query/export.py:512 |
| 347 | corpus_payload | lock_roster | Every lock in the index, with the mutex count, the origin split and the nestings. | REQ-DDB-QUERY-001 REQ-DDB-QUERY-011 | — | clew/query/export.py:555 |
| 348 | lock_roster | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/locks.py:603 |
| 349 | lock_roster | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/locks.py:604 |
| 350 | lock_roster | _entries | Build the inventory rows from the roster SQL result. | — | — | clew/query/locks.py:614 |
| 351 | lock_roster | _roster_sql | The roster SQL, with the external column selected only when the index carries it. | — | — | clew/query/locks.py:614 |
| 352 | _roster_sql | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/locks.py:411 |
| 353 | lock_roster | nestings_on | Every outer→inner lock pair observed across a call, on an open connection. | REQ-DDB-SCHEMA-011 | — | clew/query/locks.py:615 |
| 354 | nestings_on | _layer_present | True when both lock-layer tables the accessors need are present. | — | — | clew/query/locks.py:304 |
| 355 | _layer_present | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/locks.py:85 |
| 356 | nestings_on | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/locks.py:304 |
| 357 | lock_roster | _nesting_pairs | Collapse nesting SITES onto nesting IDENTITIES, keeping the strongest exemplar. | — | — | clew/query/locks.py:616 |
| 358 | lock_roster | _origin_per_mutex | One origin per DISTINCT mutex, so the split matches the headline count. | — | — | clew/query/locks.py:622 |
| 359 | lock_roster | _object_route | Route a caller to the lock OBJECTS this layer cannot enumerate. | — | — | clew/query/locks.py:639 |
| 360 | lock_roster | _nesting_meaning | State the nesting count, the pair semantics and the evidence weakness in one sentence. | — | — | clew/query/locks.py:643 |
| 361 | corpus_payload | one | Serialize one R2 dataclass (an ENVELOPE) to its JSON wire form. | REQ-DDB-QUERY-001 | — | clew/query/export.py:555 |
| 362 | corpus_payload | one | Serialize one R2 dataclass (an ENVELOPE) to its JSON wire form. | REQ-DDB-QUERY-001 | — | clew/query/export.py:556 |
| 363 | corpus_payload | thread_roster | Every thread in the DB, with member counts and the origin split. | REQ-DDB-QUERY-001 REQ-DDB-QUERY-011 | — | clew/query/export.py:556 |
| 364 | thread_roster | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/symbols.py:1144 |
| 365 | thread_roster | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:1145 |
| 366 | thread_roster | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:1149 |
| 367 | thread_roster | _thread_columns | The threads column list this index can actually supply. | — | — | clew/query/symbols.py:1151 |
| 368 | _thread_columns | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:942 |
| 369 | _thread_columns | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:944 |
| 370 | _thread_columns | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:946 |
| 371 | thread_roster | _build_thread | Assemble a Thread dataclass from a threads row (+ member count). | — | — | clew/query/symbols.py:1153 |
| 372 | _build_thread | name_of | rowid→function name (DISTINCT-by-name is implicit: rowid is unique). | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:970 |
| 373 | _build_thread | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:976 |
| 374 | _build_thread | _spawn_attribution | The spawning file's repo-relative path and its external root. | — | — | clew/query/symbols.py:979 |
| 375 | _spawn_attribution | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/symbols.py:1017 |
| 376 | thread_roster | _thread_origins | One origin per thread, keyed on its SPAWN SITE. | — | — | clew/query/symbols.py:1154 |
| 377 | thread_roster | _roster_meaning | The sentence stating both the count and whose threads it counts. | — | — | clew/query/symbols.py:1158 |
| 378 | corpus_payload | _config_found_on_the_wire | Re-key a config payload so found means what it means everywhere else. | — | — | clew/query/export.py:557 |
| 379 | _config_found_on_the_wire | _compact_gate_panel | State a gate panel's invariant fields once instead of once per row. | — | — | clew/query/payload.py:795 |
| 380 | corpus_payload | kconfig_space | A repo's configuration space: its symbols, their groups, and what they gate. | REQ-DDB-QUERY-006 | — | clew/query/export.py:558 |
| 381 | kconfig_space | connect | Yield an open sqlite connection; close it only if we opened it. | REQ-DDB-QUERY-001 | — | clew/query/kconfig.py:477 |
| 382 | kconfig_space | _meta | Every kconfig. | — | — | clew/query/kconfig.py:478 |
| 383 | _meta | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/kconfig.py:213 |
| 384 | kconfig_space | _symbols | The symbol rows, each with the group it belongs to and its gate count. | — | — | clew/query/kconfig.py:479 |
| 385 | _symbols | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/kconfig.py:256 |
| 386 | kconfig_space | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/kconfig.py:479 |
| 387 | kconfig_space | _gate_layer_state | What the GATE HARVEST measured, independently of whether a Kconfig exists. | REQ-DDB-QUERY-006 | — | clew/query/kconfig.py:480 |
| 388 | _gate_layer_state | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/kconfig.py:446 |
| 389 | kconfig_space | _gate_symbol_names | The distinct symbols that gate code, optionally filtered by name. | REQ-DDB-QUERY-006 | — | clew/query/kconfig.py:484 |
| 390 | _gate_symbol_names | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/kconfig.py:370 |
| 391 | kconfig_space | _gates | The gating sites recorded for the whole repo, or for one symbol. | — | — | clew/query/kconfig.py:490 |
| 392 | _gates | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/kconfig.py:315 |
| 393 | _gates | _gate_columns | The SELECT list that builds a KconfigGate positionally. | — | — | clew/query/kconfig.py:317 |
| 394 | _gate_columns | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/kconfig.py:288 |
| 395 | _gate_columns | has_columns | True when a table exists AND carries every named column. | REQ-DDB-QUERY-003 | — | clew/query/kconfig.py:289 |
| 396 | _gates | _with_defaults | Attach each gating macro's shipped default to its gate. | — | — | clew/query/kconfig.py:330 |
| 397 | _with_defaults | table_exists | True when a table exists (partial/mini DBs lack later layers). | REQ-DDB-QUERY-003 | — | clew/query/kconfig.py:656 |
| 398 | _with_defaults | _defaults_for_macros | Read config_defaults rows for a macro list, in bounded chunks. | — | loop (line 660) | clew/query/kconfig.py:660 |
| 399 | _with_defaults | decided_default | The default state one macro's config rows decide, with the site that decides it. | REQ-DDB-QUERY-013 | — | clew/query/kconfig.py:667 |
| 400 | decided_default | is_shipped_config | Whether a config-header path is the repository's own shipped default. | REQ-DDB-QUERY-013 | — | clew/query/_common.py:1026 |
Functions¶
269 functions
clean_subprocess_envclew/_common.py_checked_documentclew/buildoptions.py_checked_entriesclew/buildoptions.py_checked_entryclew/buildoptions.pycheck_manifest_documentclew/buildoptions.pymainclew/cli.py_file_hitsclew/code_text.py_first_matchclew/code_text.py_has_tableclew/code_text.py_match_queryclew/code_text.pycount_codeclew/code_text.pysearch_codeclew/code_text.py_check_section_keysclew/declaration.py_checked_list_sectionclew/declaration.py_checked_requirementsclew/declaration.py_checked_sectionclew/declaration.py_checked_sectionsclew/declaration.py_checked_testsclew/declaration.py_parsed_declarationclew/declaration.py_read_mappingclew/declaration.pyload_declarationclew/declaration.pyload_declaration_locatedclew/declaration.pydiscover_doxyfileclew/doxygen.pydoxygen_supports_sqlite3clew/doxygen.py_parserclew/export_command.pyexport_mainclew/export_command.pystated_declarationclew/export_command.pybinary_fileclew/filetypes.pyself_declared_pathsclew/generated.py_no_ext_diffclew/gitenv.pygit_argvclew/gitenv.pygit_envclew/gitenv.py_config_pathclew/guard/config.py_suggest_keyclew/guard/config.py_validate_dict_nodeclew/guard/config.py_validate_map_ofclew/guard/config.py_validate_nodeclew/guard/config.py_ast_parse_one_fileclew/harvest.py_cached_parserclew/harvest.py_disambiguate_headerclew/harvest.py_grammar_availableclew/harvest.py_parse_error_countclew/harvest.py_parseable_fileclew/harvest.py_try_import_ts_moduleclew/harvest.py_ts_language_forclew/harvest.pyfind_indexclew/indexlocate.pyregistered_indexclew/indexlocate.py_blockingclew/init_command.py_check_client_configclew/init_command.py_check_declarationclew/init_command.py_check_doxygenclew/init_command.py_check_indexableclew/init_command.py_check_mcp_sdkclew/init_command.py_check_server_commandclew/init_command.py_emitclew/init_command.py_executeclew/init_command.py_format_checkclew/init_command.py_needs_doxygenclew/init_command.py_print_conflictclew/init_command.py_print_merge_previewclew/init_command.py_print_next_stepsclew/init_command.py_registerclew/init_command.pybuild_parserclew/init_command.pydiagnoseclew/init_command.pyinit_mainclew/init_command.py_classifyclew/mcp_config.py_entry_diffclew/mcp_config.py_indent_ofclew/mcp_config.py_locate_scriptclew/mcp_config.py_path_or_nameclew/mcp_config.py_repo_relativeclew/mcp_config.pyapply_planclew/mcp_config.pyclaude_state_dirclew/mcp_config.pyconfig_pathclew/mcp_config.pyglobal_config_availableclew/mcp_config.pyglobal_config_evidenceclew/mcp_config.pyglobal_config_pathclew/mcp_config.pyload_documentclew/mcp_config.pyplan_mergeclew/mcp_config.pyresolve_server_commandclew/mcp_config.pyserver_entryclew/mcp_config.py_eventsclew/mcp_server/comments.py_publicclew/mcp_server/comments.pyallclew/mcp_server/comments.py_safe_index_nameclew/mcp_server/state.pystate_homeclew/mcp_server/state.pytarget_forclew/mcp_server/state.py_bare_identifierclew/propose/astdefs.py_first_identifierclew/propose/astdefs.py_forward_callclew/propose/astdefs.py_forward_callsclew/propose/astdefs.py_function_declaratorclew/propose/astdefs.py_function_signatureclew/propose/astdefs.py_macro_bodyclew/propose/astdefs.py_macro_parserclew/propose/astdefs.py_macro_signatureclew/propose/astdefs.py_param_namesclew/propose/astdefs.py_signatureclew/propose/astdefs.py_tail_nameclew/propose/astdefs.pycallee_nameclew/propose/astdefs.pydefinition_recordclew/propose/astdefs.pytext_ofclew/propose/astdefs.py_configure_loggingclew/propose/command.py_emitclew/propose/command.py_refusalclew/propose/command.py_resolve_dbclew/propose/command.pybuild_parserclew/propose/command.pypropose_mainclew/propose/command.py_countclew/propose/dryrun.py_defect_reasonclew/propose/dryrun.pyindex_defectclew/propose/dryrun.py_as_dirsclew/propose/notindexed.py_dir_linesclew/propose/notindexed.pycandidate_dirsclew/propose/notindexed.pycross_section_conflictsclew/propose/notindexed.pyreport_not_indexedclew/propose/notindexed.pytracked_filesclew/propose/notindexed.py_blocked_sectionclew/propose/registry.py_blockingclew/propose/registry.py_hand_sectionclew/propose/registry.py_index_scope_sectionclew/propose/registry.py_sectionsclew/propose/registry.pybuild_contextclew/propose/registry.pydb_status_summaryclew/propose/registry.pyproposeclew/propose/registry.pyscope_summaryclew/propose/registry.py_checkedclew/propose/render.py_db_lineclew/propose/render.py_entriesclew/propose/render.py_headerclew/propose/render.py_notesclew/propose/render.py_rejectionsclew/propose/render.py_scope_lineclew/propose/render.py_section_blockclew/propose/render.py_summaryclew/propose/render.py_wrapclew/propose/render.py_yaml_blockclew/propose/render.pyrender_declarationclew/propose/render.py_absorb_fileclew/propose/scanning.py_accessor_siteclew/propose/scanning.py_scandirclew/propose/scanning.pyast_readable_in_scopeclew/propose/scanning.pyrelative_toclew/propose/scanning.pyrepo_source_filesclew/propose/scanning.pyscan_repoclew/propose/scanning.pyscope_membershipclew/propose/scanning.pyconnectclew/query/_common.pydecided_defaultclew/query/_common.pydocumented_firstclew/query/_common.pyhas_columnsclew/query/_common.pyis_shipped_configclew/query/_common.pyname_ofclew/query/_common.pyrecords_provenanceclew/query/_common.pystrip_xmlclew/query/_common.pysymbol_provenanceclew/query/_common.pytable_existsclew/query/_common.py_collapseclew/query/corpus.py_extensionsclew/query/corpus.py_fts_matchclew/query/corpus.py_indexed_pathsclew/query/corpus.py_matchesclew/query/corpus.py_not_indexedclew/query/corpus.py_query_tokensclew/query/corpus.py_scope_provenanceclew/query/corpus.pyclass_rowsclew/query/corpus.pydirectory_rollupclew/query/corpus.pydoc_scopeclew/query/corpus.pyfile_doc_rowsclew/query/corpus.pygate_symbol_rowsclew/query/corpus.pyhas_file_docsclew/query/corpus.pyhas_prose_corpusclew/query/corpus.pyindex_scopeclew/query/corpus.pylist_filesclew/query/corpus.pymember_doc_rowsclew/query/corpus.pyrollup_meaningclew/query/corpus.pysearch_prose_gradedclew/query/corpus.pyundocumented_path_rowsclew/query/corpus.py_conjunction_noteclew/query/emptiness.py_render_countsclew/query/emptiness.py_scope_payloadclew/query/emptiness.py_scope_sentenceclew/query/emptiness.py_unread_noteclew/query/emptiness.py_verdictclew/query/emptiness.pyprose_emptinessclew/query/emptiness.pysearch_emptinessclew/query/emptiness.py_code_corpusclew/query/export.py_files_corpusclew/query/export.py_prose_corpusclew/query/export.py_symbol_corpusclew/query/export.pycorpus_payloadclew/query/export.pyexport_searchclew/query/export.pyfiles_contextclew/query/export.pyfiles_missclew/query/export.pywith_limit_disclosureclew/query/export.py_defaults_for_macrosclew/query/kconfig.py_gate_columnsclew/query/kconfig.py_gate_layer_stateclew/query/kconfig.py_gate_symbol_namesclew/query/kconfig.py_gatesclew/query/kconfig.py_metaclew/query/kconfig.py_symbolsclew/query/kconfig.py_with_defaultsclew/query/kconfig.pykconfig_spaceclew/query/kconfig.py_entriesclew/query/locks.py_layer_presentclew/query/locks.py_nesting_meaningclew/query/locks.py_nesting_pairsclew/query/locks.py_object_routeclew/query/locks.py_origin_per_mutexclew/query/locks.py_roster_sqlclew/query/locks.pylock_rosterclew/query/locks.pynestings_onclew/query/locks.py_compact_gate_panelclew/query/payload.py_config_found_on_the_wireclew/query/payload.py_build_threadclew/query/symbols.py_class_candidatesclew/query/symbols.py_config_candidatesclew/query/symbols.py_doc_briefclew/query/symbols.py_expansion_sqlclew/query/symbols.py_file_candidatesclew/query/symbols.py_memberdef_candidatesclew/query/symbols.py_memberdef_corporaclew/query/symbols.py_one_lineclew/query/symbols.py_one_token_countclew/query/symbols.py_roster_meaningclew/query/symbols.py_search_rankclew/query/symbols.py_spawn_attributionclew/query/symbols.py_thread_columnsclew/query/symbols.py_thread_originsclew/query/symbols.py_unread_kind_countsclew/query/symbols.pysearch_countedclew/query/symbols.pythread_rosterclew/query/symbols.pytoken_hit_countsclew/query/symbols.pyunsearched_corporaclew/query/symbols.py_locateclew/query_command.py_parserclew/query_command.py_payloadclew/query_command.pyquery_mainclew/query_command.pyhas_cargo_manifestclew/rustdoc.pyuses_rustdocclew/rustdoc.py_declaration_adviceclew/scope.py_declaration_noteclew/scope.py_declared_index_scopeclew/scope.py_descendableclew/scope.py_existing_pathsclew/scope.py_gitignored_pathsclew/scope.py_holds_git_treeclew/scope.py_ignore_clauseclew/scope.py_is_withinclew/scope.py_nested_repos_underclew/scope.py_pruned_dirsclew/scope.py_skip_dirclew/scope.py_vendored_clauseclew/scope.py_warn_unwalkableclew/scope.pyderive_scopeclew/scope.pyis_derivedclew/scope.pynested_repo_rootsclew/scope.pywhole_repo_scopeclew/scope.pyread_build_signatureclew/signature.pycompiled_languagesclew/substrate.pyhas_languageclew/substrate.pyclaimsclew/synth.pylinkclew/wiki/themes/clew/static/web.jslistclew/wiki/themes/clew/static/web.js_absentclew/wire.py_listedclew/wire.py_prune_rowsclew/wire.py_pruned_rowclew/wire.pyoneclew/wire.py
This diagram as Mermaid · PlantUML · Graphviz DOT
Quick views¶
269 functions, each with its quick view
- clean_subprocess_env
os.environ + NO_COLOR/TERM=dumb so pipeline subprocesses emit no ANSI.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/_common.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _checked_document
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/buildoptions.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
No requirement names this function as an implementer.
- _checked_entries
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/buildoptions.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _checked_entry
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/buildoptions.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- check_manifest_document
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/buildoptions.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- main
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/cli.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _file_hits
Files whose file-scope text holds every word, as kind: "file" hits.
Map
Show it on the map, in its block's wedge.
Block
Build: docs, requirements and tests layers is the block holding
clew/code_text.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _first_match
Version 2: finds the snippet line by stem, as the match was made.
Map
Show it on the map, in its block's wedge.
Block
Build: docs, requirements and tests layers is the block holding
clew/code_text.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _has_table
Whether a table exists.
Map
Show it on the map, in its block's wedge.
Block
Build: docs, requirements and tests layers is the block holding
clew/code_text.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _match_query
The FTS expression for a word list: each word whole (stemmed) or as a prefix.
Map
Show it on the map, in its block's wedge.
Block
Build: docs, requirements and tests layers is the block holding
clew/code_text.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- count_code
How many units search_code would return with no limit.
Map
Show it on the map, in its block's wedge.
Block
Build: docs, requirements and tests layers is the block holding
clew/code_text.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- search_code
Version 5: a query word also matches as a prefix ( MBEDTLS_ERR_ finds its family).
Map
Show it on the map, in its block's wedge.
Block
Build: docs, requirements and tests layers is the block holding
clew/code_text.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
No requirement names this function as an implementer.
- _check_section_keys
Refuse a key a section-document section's reader never reads.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/declaration.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _checked_list_section
Read a list section, accepting one bare string as a one-item list.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/declaration.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _checked_requirements
Check the catalog section against the gate's own schema.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/declaration.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _checked_section
Check one section's shape.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/declaration.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _checked_sections
Check every declared section's shape, normalising a one-string list section.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/declaration.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _checked_tests
Check the list-shaped keys of tests: .
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/declaration.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _parsed_declaration
Parse a declaration file into (mapping, problem).
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/declaration.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _read_mapping
Parse a YAML file expected to hold a mapping.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/declaration.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- load_declaration
Load a repo's .clew.yaml , or an empty mapping when it has none.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/declaration.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- load_declaration_located
A repo's declaration AND the file it was read from.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/declaration.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- discover_doxyfile
Discover a repo's own Doxyfile (declaration-driven, never hardcoded).
Map
Show it on the map, in its block's wedge.
Block
Build: parse front ends is the block holding
clew/doxygen.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- doxygen_supports_sqlite3
Whether the doxygen on PATH was BUILT with sqlite3 output support.
Map
Show it on the map, in its block's wedge.
Block
Build: parse front ends is the block holding
clew/doxygen.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _parser
clew export 's argument parser.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/export_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- export_main
clew export entry point.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/export_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- stated_declaration
The declaration mapping an index's recorded tier-1 statements reproduce.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/export_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- binary_file
The binary classification of one file, or None when it is text or unreadable.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/filetypes.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- self_declared_paths
The exact paths of every self-declared generated file in an index.
Map
Show it on the map, in its block's wedge.
Block
Build: parse front ends is the block holding
clew/generated.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _no_ext_diff
Insert --no-ext-diff after a diff-family subcommand.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/gitenv.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- git_argv
One git argv with every command-valued configuration key disarmed.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/gitenv.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- git_env
The current environment with git's hook-repository overrides removed.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/gitenv.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- _config_path
Build a dotted config path from parent path and key.
Map
Show it on the map, in its block's wedge.
Block
Guard: the pre-commit gate is the block holding
clew/guard/config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _suggest_key
Suggest the closest known schema key for a misspelled one.
Map
Show it on the map, in its block's wedge.
Block
Guard: the pre-commit gate is the block holding
clew/guard/config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _validate_dict_node
Validate dict keys against schema, recursing into sub-nodes.
Map
Show it on the map, in its block's wedge.
Block
Guard: the pre-commit gate is the block holding
clew/guard/config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _validate_map_of
Validate a mapping of user-named entries against the schema every entry follows.
Map
Show it on the map, in its block's wedge.
Block
Guard: the pre-commit gate is the block holding
clew/guard/config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _validate_node
Validate a single config node against its schema spec.
Map
Show it on the map, in its block's wedge.
Block
Guard: the pre-commit gate is the block holding
clew/guard/config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- _ast_parse_one_file
Parse one file with the appropriate tree-sitter grammar.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/harvest.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
No requirement names this function as an implementer.
- _cached_parser
Memoized substrate parser for one grammar name.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/harvest.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _disambiguate_header
Re-parse an erroring ambiguous header as C++ and keep the cleaner tree.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/harvest.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _grammar_available
Whether a routed grammar is actually compiled into the installed substrate.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/harvest.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _parse_error_count
Count ERROR/MISSING nodes in a parsed tree.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/harvest.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _parseable_file
Whether a file may be parsed: it exists and is not binary.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/harvest.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _try_import_ts_module
The grammar handle for a substrate:<key> name, or None for any other name.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/harvest.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _ts_language_for
Select the C, C++, Python or Rust tree-sitter language by extension.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/harvest.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
No requirement names this function as an implementer.
- find_index
The existing index for a repository.
Map
Show it on the map, in its block's wedge.
Block
Guard: the pre-commit gate is the block holding
clew/indexlocate.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- registered_index
The database the MCP target registry has allocated for a repository.
Map
Show it on the map, in its block's wedge.
Block
Guard: the pre-commit gate is the block holding
clew/indexlocate.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _blocking
The blocking failures among a set of checks.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _check_client_config
Whether the user-scope config location can be established on this machine.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _check_declaration
Whether the repo declares its own indexing conventions.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _check_doxygen
Whether the external doxygen binary is available.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
No requirement names this function as an implementer.
- _check_indexable
Whether this repo can be indexed at all.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _check_mcp_sdk
Whether the SDK module the server imports can actually be imported.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _check_server_command
Whether the MCP server console script can be located.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _emit
Emit a plan: print it under dry-run, otherwise write it.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _execute
Apply a plan subject to the conflict rule, and pick the exit code.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _format_check
Render one check as a single report line.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _needs_doxygen
Whether any file in the repo is one doxygen would index.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _print_conflict
Print the refusal for a conflicting existing entry.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _print_merge_preview
Print what a dry run would change, scoped to this server's entry.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _print_next_steps
Tell the user what happens next.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _register
Compute and perform the registration, given the diagnostics.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- build_parser
Build the clew init argument parser.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- diagnose
Run every doctor check for a repo and scope.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- init_main
Run clew init .
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/init_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _classify
Classify what writing this entry would do.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _entry_diff
Unified diff between the existing entry and the proposed one.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _indent_of
Indentation to re-serialise with, taken from the file itself.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _locate_script
Locate the MCP server console script.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _path_or_name
Choose between the bare console-script name and an absolute path.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _repo_relative
Express a path relative to a repo root, when it is inside it.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- apply_plan
Write a planned edit to disk atomically, keeping a backup.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- claude_state_dir
Directory Claude Code keeps its per-user state in.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- config_path
The config file a given scope writes to.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- global_config_available
Whether a user-level Claude Code config can be written with confidence.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- global_config_evidence
The two paths that evidence a Claude Code install for this user.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- global_config_path
The user-scoped Claude Code config file.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- load_document
Read a config file into a document plus its original text.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- plan_merge
Plan the merge of this server's entry into a config file.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- resolve_server_command
Decide the command string to record for this machine.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- server_entry
The server entry this tool writes.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_config.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- _events
The log's events, in order; an unreadable line is skipped.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/comments.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _public
A stored event's public fields.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/comments.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- all
Every comment, oldest first, with its status.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/comments.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- _safe_index_name
Reduce a declared sub-index name to something safe as a directory component.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/state.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- state_home
Per-user state root for built databases and the registry.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/state.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- target_for
Allocate the Target record for a repo path (pure; no I/O).
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/state.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- _bare_identifier
The bare identifier an argument names, unwrapping &/casts/parentheses.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _first_identifier
The first identifier of a subtree in document order.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _forward_call
One call's parameter-forwarding map, or None when it forwards nothing.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _forward_calls
Calls inside a body that pass one of the definition's parameters on.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _function_declarator
Descend a declarator chain to its function_declarator .
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _function_signature
Name, parameters and body of a function_definition .
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _macro_body
Re-parse a macro's body so its calls become visible.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _macro_parser
Memoised C parser used for macro replacement text.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _macro_signature
Name and parameters of a preproc_function_def .
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _param_names
Parameter identifiers of a parameter list, in declaration order.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _signature
Name, parameters and walkable body of one definition node.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _tail_name
The trailing simple name of a declarator node.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- callee_name
The callee's text when it is an identifier / qualified identifier.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- definition_record
Build the FuncDef for one definition node, or None when unusable.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- text_of
Text of a node.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/astdefs.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _configure_logging
Send logging to stderr so the draft on stdout stays parseable.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _emit
Write the draft to a file or to stdout.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _refusal
Why the output path must not be written, if it must not.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _resolve_db
Resolve the index to measure candidates against.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- build_parser
Build the clew propose argument parser.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- propose_main
Run clew propose .
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- _count
Count rows in a table, tolerating its absence.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/dryrun.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _defect_reason
Turn a memberdef presence/row count into a defect reason.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/dryrun.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- index_defect
Why a database cannot be dry-run against, if it cannot.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/dryrun.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- _as_dirs
Convert the grouping buckets into sorted NotIndexedDir records.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/notindexed.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _dir_lines
One report line per candidate directory, with its hazards.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/notindexed.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- candidate_dirs
Group out-of-scope definitions into candidate directories.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/notindexed.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- cross_section_conflicts
Warn when a proposed section's evidence reaches outside the index.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/notindexed.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- report_not_indexed
Build the report-only index_scope section.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/notindexed.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- tracked_files
Git-tracked repo-relative paths, or None when git is unavailable.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/notindexed.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- _blocked_section
A detector section that could not run, carrying the reason it could not.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/registry.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _blocking
Why the AST detectors cannot run, when they cannot.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/registry.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _hand_section
A section clew refuses to detect: hand-declared, or already declared.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/registry.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _index_scope_section
The report-only index_scope section, plus the no-corpus caveat.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/registry.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _sections
Every section's result, in render order.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/registry.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- build_context
Assemble everything the detectors are allowed to read, once.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/registry.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- db_status_summary
Freshness and usability summary for the index a proposal measures against.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/registry.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- propose
Propose a starter .clew.yaml for one repo.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/registry.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- scope_summary
Scope and corpus summary for the rendered header.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/registry.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _checked
The checked counters as one wrapped line.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/render.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _db_line
One-line description of the index the proposal was measured against.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/render.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _entries
The evidence for every accepted entry, numbered.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/render.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _header
The document header: what this is, what it was measured against.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/render.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _notes
A section's free-standing notes, wrapped.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/render.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _rejections
Every refused candidate, with its reason and evidence.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/render.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _scope_line
One-line description of the derived index scope.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/render.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _section_block
One section's whole block: status, evidence, YAML, rejections, notes.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/render.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _summary
The section index: one row per section with its status and counts.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/render.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _wrap
Wrap prose into comment lines at the document width.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/render.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _yaml_block
The activatable YAML block for a section, marked with the gutter.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/render.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- render_declaration
Render a whole proposal as a commented .clew.yaml draft.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/render.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _absorb_file
Fold one parsed file's definitions and accessor sites into the corpus.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/scanning.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _accessor_site
One accessor-shaped call site, or None when the callee is not one.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/scanning.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _scandir
Directory entries, or an empty list when the directory is unreadable.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/scanning.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- ast_readable_in_scope
How many in-scope files a grammar the AST detectors understand handles.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/scanning.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- relative_to
Repo-root-relative POSIX path for an absolute path under the root.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/scanning.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- repo_source_files
Every C/C++ source file under a repo root, in sorted order.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/scanning.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- scan_repo
Scan the whole repo tree for definitions and accessor-shaped calls.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/scanning.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- scope_membership
Build the "is this path inside the derived index scope?" predicate.
Map
Show it on the map, in its block's wedge.
Block
Propose: declaration proposals is the block holding
clew/propose/scanning.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- connect
Yield an open sqlite connection; close it only if we opened it.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/_common.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- decided_default
The default state one macro's config rows decide, with the site that decides it.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/_common.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- documented_first
The ORDER BY fragment that makes doxygen's own row win a name collapse.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/_common.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- has_columns
True when a table exists AND carries every named column.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/_common.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- is_shipped_config
Whether a config-header path is the repository's own shipped default.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/_common.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- name_of
rowid→function name (DISTINCT-by-name is implicit: rowid is unique).
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/_common.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- records_provenance
Whether this index records where its memberdef rows came from.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/_common.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- strip_xml
Strip doxygen's XML-ish markup from a description column.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/_common.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- symbol_provenance
The provenance a symbol row should REPORT, or None when it says nothing.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/_common.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- table_exists
True when a table exists (partial/mini DBs lack later layers).
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/_common.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- _collapse
Collapse whitespace runs in a prose snippet (markup is NOT stripped).
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _extensions
Distinct dot-prefixed extensions of a path list.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _fts_match
Run one FTS5 MATCH, retrying the raw text as a quoted phrase.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _indexed_paths
Every indexed, non-synthetic file path.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _matches
Whether a repo-relative path matches a * -glob pattern.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _not_indexed
The build's record of file types it had in scope and holds no rows for.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _query_tokens
The query's tokens, stripped of FTS5 operator syntax.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _scope_provenance
The scope.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- class_rows
Compound rows matching EVERY token, or [] when compounds are unindexed.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- directory_rollup
The indexed file set rolled up by top-level directory.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- doc_scope
What the repository DECLARES about its own doc build and its vendored trees.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- file_doc_rows
File-level documentation rows matching EVERY token, or [] when unindexed.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- gate_symbol_rows
Gating-symbol rows matching EVERY token, with their gate-site counts.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- has_file_docs
Whether this index carries a file-level documentation corpus at all.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- has_prose_corpus
Whether this index carries an ingested markdown corpus at all.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- index_scope
A has_gate_layer helper lived here for gh#393 and is deliberately gone with the verdict change it existed to serve.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- list_files
The indexed source files, with documented-symbol counts.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- member_doc_rows
Member documentation rows matching EVERY token, or [] when unavailable.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- rollup_meaning
Say what the per-directory counts are, and what they are NOT.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- search_prose_graded
Full-text search over the ingested prose, widening to OR when the AND is empty.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
test_prose_search_reaches_documentation_attached_to_a_membertest_search_prose_does_not_widen_a_query_that_already_matchedtest_search_prose_punctuation_only_tokens_never_reach_fts5test_search_prose_single_token_miss_reports_no_wideningtest_search_prose_widens_to_or_when_one_absent_word_empties_the_and
Reqs
- undocumented_path_rows
Registered paths matching EVERY token that carry no file-level documentation.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/corpus.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _conjunction_note
Note for a zero-result multi-token search, naming what emptied it.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/emptiness.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _render_counts
Render per-token hit counts as token=count prose.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/emptiness.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _scope_payload
The scope block for a per-query reply: the covered shape, minus the derivation.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/emptiness.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
No requirement names this function as an implementer.
- _scope_sentence
One short sentence naming the indexed scope, without its derivation.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/emptiness.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _unread_note
The sentence naming rows an unread corpus holds, or '' when there are none.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/emptiness.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _verdict
Grade a single-token empty search: definitive only when nothing unread matched.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/emptiness.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- prose_emptiness
Note and payload for an empty <lsquo/>search(corpus='prose<rsquo/>)`.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/emptiness.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- search_emptiness
Note and payload for an empty search .
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/emptiness.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- _code_corpus
The code corpus: functions whose body contains every word.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/export.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _files_corpus
The file corpus: a directory rollup, or a glob's matching files with that context.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/export.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _prose_corpus
The prose corpus: the repo's markdown and reStructuredText, full-text.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/export.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _symbol_corpus
The symbols corpus, ranked, with its limit disclosed.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/export.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- corpus_payload
Build one corpus's reply through the given list envelope.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/export.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- export_search
Export one corpus's search or inventory, as the MCP tool answers it.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/export.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- files_context
The context every files reply carries, whatever was asked.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/export.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- files_miss
The note for a glob that matched no indexed file.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/export.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- with_limit_disclosure
Say that a search was cut by its limit, and how many rows matched.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/export.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _defaults_for_macros
Read config_defaults rows for a macro list, in bounded chunks.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/kconfig.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _gate_columns
The SELECT list that builds a KconfigGate positionally.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/kconfig.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _gate_layer_state
What the GATE HARVEST measured, independently of whether a Kconfig exists.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/kconfig.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _gate_symbol_names
The distinct symbols that gate code, optionally filtered by name.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/kconfig.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _gates
The gating sites recorded for the whole repo, or for one symbol.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/kconfig.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _meta
Every kconfig.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/kconfig.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _symbols
The symbol rows, each with the group it belongs to and its gate count.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/kconfig.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _with_defaults
Attach each gating macro's shipped default to its gate.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/kconfig.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
No requirement names this function as an implementer.
- kconfig_space
A repo's configuration space: its symbols, their groups, and what they gate.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/kconfig.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
test_a_config_prefixed_symbol_is_labelled_kconfig_whatever_else_is_declaredtest_a_config_symbols_own_gates_carry_the_resolved_defaulttest_a_gate_layer_without_defaults_reports_no_state_rather_than_raisingtest_a_gate_on_an_undeclared_symbol_is_kepttest_a_kconfig_that_cannot_be_parsed_is_recorded_rather_than_silent
Reqs
- _entries
Build the inventory rows from the roster SQL result.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/locks.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _layer_present
True when both lock-layer tables the accessors need are present.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/locks.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _nesting_meaning
State the nesting count, the pair semantics and the evidence weakness in one sentence.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/locks.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _nesting_pairs
Collapse nesting SITES onto nesting IDENTITIES, keeping the strongest exemplar.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/locks.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _object_route
Route a caller to the lock OBJECTS this layer cannot enumerate.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/locks.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _origin_per_mutex
One origin per DISTINCT mutex, so the split matches the headline count.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/locks.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _roster_sql
The roster SQL, with the external column selected only when the index carries it.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/locks.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- lock_roster
Every lock in the index, with the mutex count, the origin split and the nestings.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/locks.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
test_an_absent_lock_layer_still_carries_a_splittest_an_empty_nesting_layer_says_so_definitively_rather_than_saying_nothingtest_an_index_predating_the_tag_reads_as_all_first_partytest_lock_roster_carries_the_nestings_so_the_follow_up_call_is_unnecessarytest_lock_roster_on_an_index_without_the_layer_says_so
Reqs
- nestings_on
Every outer→inner lock pair observed across a call, on an open connection.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/locks.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _compact_gate_panel
State a gate panel's invariant fields once instead of once per row.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/payload.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _config_found_on_the_wire
Re-key a config payload so found means what it means everywhere else.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/payload.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _build_thread
Assemble a Thread dataclass from a threads row (+ member count).
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _class_candidates
Ranked compound candidates whose name or brief carries every token.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _config_candidates
Ranked configuration-symbol candidates whose name carries every token.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _doc_brief
Shorten a file's documentation to a brief, at a word boundary.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _expansion_sql
SQL for a macro's expansion, degrading to '' on a schema without the column.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _file_candidates
Ranked file candidates whose path or file-level documentation carries every token.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _memberdef_candidates
Ranked memberdef candidates of one kind whose name, brief, prose or FILE PATH carries every token.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _memberdef_corpora
Ranked candidates from EVERY searched memberdef corpus, in one list.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _one_line
Collapse whitespace and line continuations, then trim to brief length.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _one_token_count
Independent match count for one token across both search corpora.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _roster_meaning
The sentence stating both the count and whose threads it counts.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _search_rank
Rank one candidate against the query tokens (higher is better).
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _spawn_attribution
The spawning file's repo-relative path and its external root.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _thread_columns
The threads column list this index can actually supply.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _thread_origins
One origin per thread, keyed on its SPAWN SITE.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _unread_kind_counts
Per-kind match counts for the kinds of one table that search does not read.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- search_counted
search , plus how many rows matched before the limit cut them.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- thread_roster
Every thread in the DB, with member counts and the origin split.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- token_hit_counts
How many symbols and files each token matches ON ITS OWN.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- unsearched_corpora
Rows a zero-result query WOULD have matched in a corpus search does not read.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query/symbols.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- _locate
Resolve which database answers and which working tree bodies come from.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _parser
The argument parser for clew query .
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _payload
Build the payload the parsed request asks for.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- query_main
Parse arguments, answer, and print JSON.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/query_command.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- has_cargo_manifest
True when repo_root is a cargo package or workspace.
Map
Show it on the map, in its block's wedge.
Block
Build: parse front ends is the block holding
clew/rustdoc.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- uses_rustdoc
Whether repo_root 's build routes through rustdoc instead of doxygen.
Map
Show it on the map, in its block's wedge.
Block
Build: parse front ends is the block holding
clew/rustdoc.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _declaration_advice
How to declare an index scope, in this build's own spelling.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _declaration_note
Where a declaration was looked for, phrased for a fallback reason.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _declared_index_scope
Index scope declared directly in the repo's .clew.yaml .
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _descendable
Split one directory's children into those worth walking and those to exclude.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _existing_paths
Resolve declared repo-relative entries that exist INSIDE the repository.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _gitignored_paths
Paths the repo's own git configuration ignores.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _holds_git_tree
Whether a directory owns a git tree, as a SUBMODULE or as a clone.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _ignore_clause
The scope reason's clause about ignored paths, true to what git actually answered.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _is_within
Whether a path is the same as, or inside, another.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
No requirement names this function as an implementer.
- _nested_repos_under
Directories holding a .git strictly beneath one declared root.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _pruned_dirs
Dot and cache directories anywhere under a whole-repo root.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _skip_dir
Whether a directory entry should be skipped outright by the walk.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _vendored_clause
Name the indexed trees that look vendored, and how to exclude them.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _warn_unwalkable
Report a directory the nested-repository check could not read.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- derive_scope
Resolve the index scope: a declared index_scope, else the whole repository.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- is_derived
Whether this scope should override the Doxyfile's INPUT.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- nested_repo_roots
Directories holding their own git tree anywhere under a repo root.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- whole_repo_scope
The whole repository as one INPUT root, less only what git ignores.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/scope.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- read_build_signature
Read the build version stamped into a DB, or None if absent/unreadable.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/signature.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- compiled_languages
Every language key this substrate build can parse.
Map
Show it on the map, in its block's wedge.
Block
Build: parse front ends is the block holding
clew/substrate.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- has_language
Whether this substrate build can parse one language.
Map
Show it on the map, in its block's wedge.
Block
Build: parse front ends is the block holding
clew/substrate.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- claims
Whether a repo-relative path is one this front end claims.
Map
Show it on the map, in its block's wedge.
Block
Build: parse front ends is the block holding
clew/synth.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
No requirement names this function as an implementer.
- link
Map
Show it on the map, in its block's wedge.
Block
Wiki: this site is the block holding
clew/wiki/themes/clew/static/web.js.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- list
Map
Show it on the map, in its block's wedge.
Block
Wiki: this site is the block holding
clew/wiki/themes/clew/static/web.js.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
No requirement names this function as an implementer.
- _absent
True when a value carries nothing a consumer could read.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/wire.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _listed
asdict dict_factory that turns tuple-valued fields into lists.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/wire.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _prune_rows
Prune absent fields from ROWS (dicts inside a list), leaving the envelope whole.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/wire.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _pruned_row
One row with its absent fields removed, recursing into nested rows.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/wire.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- one
Serialize one R2 dataclass (an ENVELOPE) to its JSON wire form.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/wire.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs