Build, refresh and check the index¶
Keep the index current with the working tree, and say plainly when it is not.
- Given a repository the server knows
- When an agent asks for a refresh
- Then clew rebuilds only what changed, or the whole index when it must
- When an agent asks for status
- Then clew names each way the index is stale: the data, the schema, or the server's code
Overview · 153 steps, 7 lanes
All 153 steps
| # | caller | callee | what it does | requirements | frames | call site |
|---|---|---|---|---|---|---|
| 1 | index | _index_action | Run one index action and return its raw result. | — | — | clew/mcp_server/server.py:2953 |
| 2 | _index_action | registry_wide_target_error | Explain that a registry-wide index action will not honour a supplied target. | REQ-DDB-MCP-002 | if (line 3017) | clew/mcp_server/server.py:3017 |
| 3 | _index_action | status | — | REQ-DDB-MCP-002 | if (line 3019) | clew/mcp_server/server.py:3019 |
| 4 | _index_action | build_or_refresh | Build or refresh the active target's clew.db, then expose tier-1. | if (line 3021) | clew/mcp_server/server.py:3021 | |
| 5 | build_or_refresh | _build_subject | The repository a build call is about. | REQ-DDB-MCP-001 | try (line 2509) | clew/mcp_server/server.py:2509 |
| 6 | _build_subject | ensure_target | The active target, resolving one from the client's roots if needed. | REQ-DDB-MCP-001 | if (line 2603) | clew/mcp_server/server.py:2608 |
| 7 | ensure_target | _target_from_roots | First usable repo root among the client's advertised roots. | — | — | clew/mcp_server/server.py:2187 |
| 8 | _target_from_roots | _roots | Roots advertised by the client, or an empty list. | — | loop (line 2353) | clew/mcp_server/server.py:2353 |
| 9 | _roots | _roots_askable | Whether this connection can be asked for its roots at all. | — | — | clew/mcp_server/server.py:2278 |
| 10 | _roots_askable | roots_request_supported | Whether a standalone roots/list request is carriable at this protocol revision. | — | — | clew/mcp_server/server.py:2315 |
| 11 | roots_request_supported | server_request_surface | The SDK's server-to-client request surface, or None when it cannot be read. | — | — | clew/mcp_server/state.py:155 |
| 12 | roots_request_supported | known_protocol_versions | Protocol revisions the installed SDK recognises, or empty when unreadable. | — | — | clew/mcp_server/state.py:156 |
| 13 | _roots | list | — | — | — | clew/mcp_server/server.py:2287 |
| 14 | list | link | — | — | — | clew/wiki/themes/clew/static/web.js:85 |
| 15 | _target_from_roots | root_uri_to_path | Convert one MCP root URI into a local directory path. | REQ-DDB-MCP-001 | loop (line 2353) | clew/mcp_server/server.py:2354 |
| 16 | ensure_target | adopt | Make a repo the active target and expose its query tools. | REQ-DDB-MCP-001 | — | clew/mcp_server/server.py:2188 |
| 17 | adopt | repo_indexes | Collect every known index of one repository without walking its tree. | REQ-DDB-MCP-001 | — | clew/mcp_server/server.py:2125 |
| 18 | repo_indexes | target_for | Allocate the Target record for a repo path (pure; no I/O). | REQ-DDB-MCP-001 | — | clew/mcp_server/routing.py:163 |
| 19 | 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 |
| 20 | target_for | state_home | Per-user state root for built databases and the registry. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:353 |
| 21 | repo_indexes | target_for | Allocate the Target record for a repo path (pure; no I/O). | REQ-DDB-MCP-001 | if (line 169), loop (line 169), if (line 171), if (line 172) | clew/mcp_server/routing.py:172 |
| 22 | adopt | target_for | Allocate the Target record for a repo path (pure; no I/O). | REQ-DDB-MCP-001 | — | clew/mcp_server/server.py:2125 |
| 23 | adopt | _sync_tier1 | Bring tier-1 into line with whether this server knows of any repository. | REQ-DDB-MCP-003 | — | clew/mcp_server/server.py:2130 |
| 24 | _sync_tier1 | register_query_tools | Add the tier-1 query tools to an MCP server instance. | REQ-DDB-MCP-003 REQ-DDB-MCP-004 | if (line 2070) | clew/mcp_server/server.py:2070 |
| 25 | register_query_tools | _add_tool | Register one tool, then drop the schema's generated title keys. | — | loop (line 662) | clew/mcp_server/server.py:664 |
| 26 | _add_tool | _strip_titles | Remove title keys from a JSON schema, recursively, in place. | — | loop (line 693) | clew/mcp_server/server.py:694 |
| 27 | _strip_titles | _strip_titles | Remove title keys from a JSON schema, recursively, in place. | — | if (line 709), loop (line 717) | clew/mcp_server/server.py:718 |
| 28 | _strip_titles | _strip_titles | Remove title keys from a JSON schema, recursively, in place. | — | elif (line 720), loop (line 720) | clew/mcp_server/server.py:721 |
| 29 | register_query_tools | _answering_with_refresh | Wrap a synchronous query tool so a stale index is refreshed before it answers. | REQ-DDB-MCP-004 | loop (line 662) | clew/mcp_server/server.py:666 |
| 30 | _answering_with_refresh | refused | Tag a deliberate refusal so a truncating client still shows the distinction. | REQ-DDB-MCP-004 | catch (line 562) | clew/mcp_server/server.py:576 |
| 31 | _answering_with_refresh | _take_context | Declare an injected ctx on a wrapper, outside its schema. | REQ-DDB-WIKI-054 | — | clew/mcp_server/server.py:578 |
| 32 | _take_context | list | — | — | — | clew/mcp_server/server.py:600 |
| 33 | register_query_tools | list | — | — | — | clew/mcp_server/server.py:670 |
| 34 | adopt | db_status | Freshness/identity report for one target's database. | — | clew/mcp_server/server.py:2131 | |
| 35 | db_status | _options_meta | Which precedence tier chose each layered setting this index was built with. | REQ-DDB-CONFIG-006 | — | clew/mcp_server/state.py:1181 |
| 36 | _options_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1062 |
| 37 | _meta_section | meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:916 |
| 38 | db_status | stated_options | Which options the index carries an operator's own statement for. | REQ-DDB-CONFIG-006 | — | clew/mcp_server/state.py:1182 |
| 39 | db_status | read_build_signature | Read the build version stamped into a DB, or None if absent/unreadable. | REQ-DDB-PIPE-005 | — | clew/mcp_server/state.py:1183 |
| 40 | db_status | _source_drift | Count indexed source files modified since the database was built. | — | — | clew/mcp_server/state.py:1185 |
| 41 | db_status | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1189 |
| 42 | db_status | _bounded_scope_meta | Bound the stored scope strings a status reply carries. | — | — | clew/mcp_server/state.py:1207 |
| 43 | db_status | _scope_meta | The scope decision recorded at build time, if any. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1207 |
| 44 | _scope_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:936 |
| 45 | db_status | _coverage_meta | The index-coverage measurement recorded at build time, if any. | REQ-DDB-INDEX-003 | — | clew/mcp_server/state.py:1209 |
| 46 | _coverage_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1009 |
| 47 | db_status | _refresh_meta | What the last refresh of this index actually cost, if it was measured. | REQ-DDB-MCP-004 | — | clew/mcp_server/state.py:1213 |
| 48 | _refresh_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1037 |
| 49 | db_status | list | — | — | — | clew/mcp_server/state.py:1222 |
| 50 | db_status | _diagnostics_meta | What the build searched for and did NOT find, counts included when they are zero. | REQ-DDB-CONFIG-007 | — | clew/mcp_server/state.py:1226 |
| 51 | _diagnostics_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1091 |
| 52 | db_status | _data_model_meta | The generated data model the repository declares, and what was declined. | REQ-DDB-CONFIG-007 | — | clew/mcp_server/state.py:1234 |
| 53 | _data_model_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1129 |
| 54 | db_status | code_identity | The code identity the process is actually running. | REQ-DDB-MCP-004 | — | clew/mcp_server/state.py:1237 |
| 55 | code_identity | source_fingerprint | Fingerprint the package source's identity on disk. | REQ-DDB-MCP-004 | — | clew/mcp_server/freshness.py:244 |
| 56 | source_fingerprint | package_source_root | The installed package's source directory. | — | — | clew/mcp_server/freshness.py:168 |
| 57 | code_identity | package_version | The package version this process is running. | — | — | clew/mcp_server/freshness.py:247 |
| 58 | db_status | notices | Every staleness axis currently in play, with the action that clears it. | REQ-DDB-MCP-004 | — | clew/mcp_server/state.py:1239 |
| 59 | notices | code_identity | The code identity the process is actually running. | REQ-DDB-MCP-004 | — | clew/mcp_server/freshness.py:669 |
| 60 | notices | _data_notice | The data-axis notice, when the sources have drifted. | — | — | clew/mcp_server/freshness.py:671 |
| 61 | _data_notice | _cost_clause | Human phrasing for what a refresh of this target last cost. | — | — | clew/mcp_server/freshness.py:405 |
| 62 | _cost_clause | _humanise_ms | Spell a millisecond count the way a reader would say it. | — | — | clew/mcp_server/freshness.py:325 |
| 63 | _cost_clause | _dominant_clause | Name the stage that dominated a refresh, from that refresh's own timings. | — | — | clew/mcp_server/freshness.py:342 |
| 64 | notices | _schema_notice | The schema-axis notice, when the stamped and expected versions disagree. | — | — | clew/mcp_server/freshness.py:672 |
| 65 | notices | _partial_notice | The partial-index notice, when doxygen failed and the C/C++ layer is missing. | — | — | clew/mcp_server/freshness.py:673 |
| 66 | notices | _derived_notice | The derived-axis notice, while a fast in-place refresh awaits its full refresh. | — | — | clew/mcp_server/freshness.py:674 |
| 67 | notices | _code_notice | The code-axis notice, when the source moved under a running process. | — | — | clew/mcp_server/freshness.py:675 |
| 68 | _build_subject | resolve_target | Resolve a caller-supplied target string to a known repository. | REQ-DDB-MCP-001 | — | clew/mcp_server/server.py:2609 |
| 69 | resolve_target | _indexes_for | Every index of the repository a target string names, or None when it names none. | REQ-DDB-MCP-001 | — | clew/mcp_server/server.py:1871 |
| 70 | _indexes_for | repo_indexes | Collect every known index of one repository without walking its tree. | REQ-DDB-MCP-001 | if (line 1826) | clew/mcp_server/server.py:1826 |
| 71 | _indexes_for | repo_indexes | Collect every known index of one repository without walking its tree. | REQ-DDB-MCP-001 | — | clew/mcp_server/server.py:1830 |
| 72 | resolve_target | list | — | — | — | clew/mcp_server/server.py:1872 |
| 73 | resolve_target | target_for | Allocate the Target record for a repo path (pure; no I/O). | REQ-DDB-MCP-001 | if (line 1874), if (line 1887) | clew/mcp_server/server.py:1887 |
| 74 | resolve_target | unknown_target_error | Explain that a caller-supplied target string resolved to nothing. | REQ-DDB-MCP-001 | if (line 1904) | clew/mcp_server/server.py:1904 |
| 75 | resolve_target | _background_note | The background first build a refusal about this index should describe. | — | if (line 1911) | clew/mcp_server/server.py:1912 |
| 76 | resolve_target | unbuilt_refusal | The one message for a query whose index does not exist. | REQ-DDB-MCP-001 | if (line 1911) | clew/mcp_server/server.py:1912 |
| 77 | unbuilt_refusal | no_index_message | The sentence every unbuilt-index refusal opens with. | REQ-DDB-MCP-003 | — | clew/mcp_server/routing.py:257 |
| 78 | unbuilt_refusal | listed_names | Render a bounded list of sub-index names for a sentence. | — | if (line 260) | clew/mcp_server/routing.py:260 |
| 79 | unbuilt_refusal | listed_names | Render a bounded list of sub-index names for a sentence. | — | if (line 263) | clew/mcp_server/routing.py:263 |
| 80 | unbuilt_refusal | describe_declaration | One sentence on a repository's .clew.yaml and whether a build honours it. | REQ-DDB-CONFIG-001 | — | clew/mcp_server/routing.py:270 |
| 81 | describe_declaration | _parsed_declaration | Parse a declaration file into (mapping, problem). | — | — | clew/declaration.py:726 |
| 82 | resolve_target | … 1 not run | — | — | — | — |
| 83 | _build_subject | target_for | Allocate the Target record for a repo path (pure; no I/O). | REQ-DDB-MCP-001 | — | clew/mcp_server/server.py:2619 |
| 84 | _build_subject | _sub_index_rejection | Why this sub-index cannot be built, or None when it can. | — | — | clew/mcp_server/server.py:2620 |
| 85 | _sub_index_rejection | first_party_sub_index | The first-party sub-index of a split repository, without walking any vendored tree. | REQ-DDB-INDEX-002 | — | clew/mcp_server/server.py:1002 |
| 86 | first_party_sub_index | whole_repo_scope | The whole repository as one INPUT root, less only what git ignores. | REQ-DDB-CONFIG-001 | — | clew/scope.py:385 |
| 87 | whole_repo_scope | _gitignored_paths | Paths the repo's own git configuration ignores. | — | — | clew/scope.py:733 |
| 88 | _gitignored_paths | git_argv | One git argv with every command-valued configuration key disarmed. | REQ-DDB-CONFIG-001 | — | clew/scope.py:989 |
| 89 | git_argv | _no_ext_diff | Insert --no-ext-diff after a diff-family subcommand. | REQ-DDB-CONFIG-001 | — | clew/gitenv.py:110 |
| 90 | git_argv | list | — | — | — | clew/gitenv.py:110 |
| 91 | _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 |
| 92 | whole_repo_scope | list | — | — | — | clew/scope.py:734 |
| 93 | 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 |
| 94 | nested_repo_roots | _nested_repos_under | Directories holding a .git strictly beneath one declared root. | — | if (line 845) | clew/scope.py:845 |
| 95 | _nested_repos_under | _warn_unwalkable | Report a directory the nested-repository check could not read. | — | loop (line 1239) | clew/scope.py:1239 |
| 96 | _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 |
| 97 | _nested_repos_under | _skip_dir | Whether a directory entry should be skipped outright by the walk. | — | loop (line 1239) | clew/scope.py:1255 |
| 98 | nested_repo_roots | _nested_repos_under | Directories holding a .git strictly beneath one declared root. | — | if (line 847) | clew/scope.py:847 |
| 99 | whole_repo_scope | _gitignored_paths | Paths the repo's own git configuration ignores. | — | loop (line 746) | clew/scope.py:747 |
| 100 | whole_repo_scope | _pruned_dirs | Dot and cache directories anywhere under a whole-repo root. | — | — | clew/scope.py:751 |
| 101 | _pruned_dirs | _warn_unwalkable | Report a directory the nested-repository check could not read. | — | loop (line 1055) | clew/scope.py:1055 |
| 102 | _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 |
| 103 | _pruned_dirs | _descendable | Split one directory's children into those worth walking and those to exclude. | — | loop (line 1055) | clew/scope.py:1085 |
| 104 | _descendable | _is_within | Whether a path is the same as, or inside, another. | — | loop (line 1117) | clew/scope.py:1119 |
| 105 | _descendable | _skip_dir | Whether a directory entry should be skipped outright by the walk. | — | loop (line 1117) | clew/scope.py:1121 |
| 106 | whole_repo_scope | _declaration_note | Where a declaration was looked for, phrased for a fallback reason. | REQ-DDB-CONFIG-001 | — | clew/scope.py:763 |
| 107 | whole_repo_scope | _ignore_clause | The scope reason's clause about ignored paths, true to what git actually answered. | — | — | clew/scope.py:764 |
| 108 | whole_repo_scope | _vendored_clause | Name the indexed trees that look vendored, and how to exclude them. | — | — | clew/scope.py:765 |
| 109 | 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 |
| 110 | first_party_sub_index | _under_any | Whether a path is one of, or inside, any of the given roots. | — | — | clew/scope.py:387 |
| 111 | first_party_sub_index | nested_repo_roots | Directories holding their own git tree anywhere under a repo root. | REQ-DDB-CONFIG-001 | — | clew/scope.py:387 |
| 112 | first_party_sub_index | _first_party | The first-party SubIndex from a repository's direct nested trees and its ignores. | — | — | clew/scope.py:391 |
| 113 | _first_party | _own_ignores | One tree's own gitignored paths, minus anything a child tree already excludes. | — | — | clew/scope.py:356 |
| 114 | _own_ignores | _under_any | Whether a path is one of, or inside, any of the given roots. | — | — | clew/scope.py:334 |
| 115 | first_party_sub_index | _gitignored_paths | Paths the repo's own git configuration ignores. | — | — | clew/scope.py:391 |
| 116 | _sub_index_rejection | _buildable_sub_indexes | Every sub-index name this repository can be asked to build. | — | — | clew/mcp_server/server.py:1004 |
| 117 | _buildable_sub_indexes | derive_sub_indexes | Split a repository into first-party and per-nested-tree indexes, at any depth. | REQ-DDB-INDEX-002 | — | clew/mcp_server/server.py:916 |
| 118 | derive_sub_indexes | whole_repo_scope | The whole repository as one INPUT root, less only what git ignores. | REQ-DDB-CONFIG-001 | — | clew/scope.py:278 |
| 119 | derive_sub_indexes | _nested_trees_recursive | Every nested git tree under one root, at ANY depth. | — | — | clew/scope.py:279 |
| 120 | _nested_trees_recursive | _under_any | Whether a path is one of, or inside, any of the given roots. | — | — | clew/scope.py:202 |
| 121 | _nested_trees_recursive | nested_repo_roots | Directories holding their own git tree anywhere under a repo root. | REQ-DDB-CONFIG-001 | — | clew/scope.py:202 |
| 122 | _nested_trees_recursive | list | — | — | — | clew/scope.py:204 |
| 123 | _nested_trees_recursive | _gitignored_paths | Paths the repo's own git configuration ignores. | — | loop (line 205) | clew/scope.py:206 |
| 124 | _nested_trees_recursive | _nested_trees_recursive | Every nested git tree under one root, at ANY depth. | — | loop (line 205) | clew/scope.py:207 |
| 125 | derive_sub_indexes | _direct_parent | The closest containing root for one nested tree, among a repo's own split. | — | loop (line 286) | clew/scope.py:287 |
| 126 | derive_sub_indexes | _gitignored_paths | Paths the repo's own git configuration ignores. | — | — | clew/scope.py:305 |
| 127 | derive_sub_indexes | _gitignored_paths | Paths the repo's own git configuration ignores. | — | loop (line 306) | clew/scope.py:307 |
| 128 | derive_sub_indexes | _first_party | The first-party SubIndex from a repository's direct nested trees and its ignores. | — | — | clew/scope.py:309 |
| 129 | derive_sub_indexes | _sub_index_name | Name a nested tree by its repo-relative path, safe as a directory component. | — | loop (line 311) | clew/scope.py:315 |
| 130 | derive_sub_indexes | _own_ignores | One tree's own gitignored paths, minus anything a child tree already excludes. | — | loop (line 311) | clew/scope.py:317 |
| 131 | _sub_index_rejection | _offered_sub_indexes | The buildable names a refusal should OFFER, rendered for a reader. | — | — | clew/mcp_server/server.py:1013 |
| 132 | _offered_sub_indexes | derive_sub_indexes | Split a repository into first-party and per-nested-tree indexes, at any depth. | REQ-DDB-INDEX-002 | — | clew/mcp_server/server.py:943 |
| 133 | _offered_sub_indexes | list | — | — | — | clew/mcp_server/server.py:943 |
| 134 | build_or_refresh | code_identity | The code identity the process is actually running. | REQ-DDB-MCP-004 | — | clew/mcp_server/server.py:2514 |
| 135 | build_or_refresh | stale_code_refusal | The refusal a write path owes its caller when this process predates its source. | REQ-DDB-MCP-004 | — | clew/mcp_server/server.py:2515 |
| 136 | stale_code_refusal | code_identity | The code identity the process is actually running. | REQ-DDB-MCP-004 | — | clew/mcp_server/freshness.py:631 |
| 137 | build_or_refresh | _build_lock | The build lock for one repository, allocated on first contention. | REQ-DDB-MCP-002 | — | clew/mcp_server/server.py:2518 |
| 138 | build_or_refresh | _build_once | Build one target, skipping when its index is already current. | REQ-DDB-CONFIG-008 REQ-DDB-MCP-002 | — | clew/mcp_server/server.py:2519 |
| 139 | _build_once | db_status | Freshness/identity report for one target's database. | — | clew/mcp_server/server.py:2666 | |
| 140 | build_or_refresh | adopt | Make a repo the active target and expose its query tools. | REQ-DDB-MCP-001 | if (line 2549) | clew/mcp_server/server.py:2549 |
| 141 | build_or_refresh | _activate_tier1 | Register tier-1 tools and notify the client of the change. | REQ-DDB-MCP-003 | if (line 2553) | clew/mcp_server/server.py:2557 |
| 142 | _activate_tier1 | register_query_tools | Add the tier-1 query tools to an MCP server instance. | REQ-DDB-MCP-003 REQ-DDB-MCP-004 | — | clew/mcp_server/server.py:3100 |
| 143 | build_or_refresh | db_status | Freshness/identity report for one target's database. | — | clew/mcp_server/server.py:2559 | |
| 144 | _index_action | read_comments | Read the wiki comments waiting for a repository, and mark them read. | REQ-DDB-WIKI-054 | if (line 3032) | clew/mcp_server/server.py:3032 |
| 145 | read_comments | ensure_target | The active target, resolving one from the client's roots if needed. | REQ-DDB-MCP-001 | — | clew/mcp_server/server.py:2744 |
| 146 | read_comments | resolve_target | Resolve a caller-supplied target string to a known repository. | REQ-DDB-MCP-001 | — | clew/mcp_server/server.py:2744 |
| 147 | _index_action | list_targets | Every known target with its database age and staleness. | REQ-DDB-MCP-002 | — | clew/mcp_server/server.py:3033 |
| 148 | list_targets | _listing_row | Reduce a full status dict to the listing row targets promises. | REQ-DDB-MCP-002 | — | clew/mcp_server/server.py:2803 |
| 149 | list_targets | db_status | Freshness/identity report for one target's database. | — | clew/mcp_server/server.py:2803 | |
| 150 | list_targets | _top_level_names | The derived names that are not nested inside another derived name. | — | loop (line 2805), loop (line 2807) | clew/mcp_server/server.py:2807 |
| 151 | list_targets | _buildable_row | A row for a sub-index that could be built but has not been. | — | loop (line 2805), loop (line 2807) | clew/mcp_server/server.py:2810 |
| 152 | list_targets | _nested_under | How many recorded names sit under one top-level name. | — | loop (line 2805), loop (line 2807) | clew/mcp_server/server.py:2810 |
| 153 | list_targets | _capped_listing | Trim a listing to the cap, disclosing what was dropped. | — | — | clew/mcp_server/server.py:2811 |
Functions¶
102 functions
_parsed_declarationclew/declaration.pydescribe_declarationclew/declaration.py_no_ext_diffclew/gitenv.pygit_argvclew/gitenv.pygit_envclew/gitenv.py_code_noticeclew/mcp_server/freshness.py_cost_clauseclew/mcp_server/freshness.py_data_noticeclew/mcp_server/freshness.py_derived_noticeclew/mcp_server/freshness.py_dominant_clauseclew/mcp_server/freshness.py_humanise_msclew/mcp_server/freshness.py_partial_noticeclew/mcp_server/freshness.py_schema_noticeclew/mcp_server/freshness.pycode_identityclew/mcp_server/freshness.pynoticesclew/mcp_server/freshness.pypackage_source_rootclew/mcp_server/freshness.pypackage_versionclew/mcp_server/freshness.pyrefusedclew/mcp_server/freshness.pysource_fingerprintclew/mcp_server/freshness.pystale_code_refusalclew/mcp_server/freshness.pylisted_namesclew/mcp_server/routing.pyno_index_messageclew/mcp_server/routing.pyrepo_indexesclew/mcp_server/routing.pyunbuilt_refusalclew/mcp_server/routing.py_activate_tier1clew/mcp_server/server.py_add_toolclew/mcp_server/server.py_answering_with_refreshclew/mcp_server/server.py_background_noteclew/mcp_server/server.py_build_lockclew/mcp_server/server.py_build_onceclew/mcp_server/server.py_build_subjectclew/mcp_server/server.py_buildable_rowclew/mcp_server/server.py_buildable_sub_indexesclew/mcp_server/server.py_capped_listingclew/mcp_server/server.py_index_actionclew/mcp_server/server.py_indexes_forclew/mcp_server/server.py_listing_rowclew/mcp_server/server.py_nested_underclew/mcp_server/server.py_offered_sub_indexesclew/mcp_server/server.py_rootsclew/mcp_server/server.py_roots_askableclew/mcp_server/server.py_strip_titlesclew/mcp_server/server.py_sub_index_rejectionclew/mcp_server/server.py_sync_tier1clew/mcp_server/server.py_take_contextclew/mcp_server/server.py_target_from_rootsclew/mcp_server/server.py_top_level_namesclew/mcp_server/server.pyadoptclew/mcp_server/server.pybuild_or_refreshclew/mcp_server/server.pyensure_targetclew/mcp_server/server.pyindexclew/mcp_server/server.pylist_targetsclew/mcp_server/server.pyread_commentsclew/mcp_server/server.pyregister_query_toolsclew/mcp_server/server.pyregistry_wide_target_errorclew/mcp_server/server.pyresolve_targetclew/mcp_server/server.pystatusclew/mcp_server/server.pyunknown_target_errorclew/mcp_server/server.py_bounded_scope_metaclew/mcp_server/state.py_coverage_metaclew/mcp_server/state.py_data_model_metaclew/mcp_server/state.py_diagnostics_metaclew/mcp_server/state.py_meta_sectionclew/mcp_server/state.py_options_metaclew/mcp_server/state.py_refresh_metaclew/mcp_server/state.py_safe_index_nameclew/mcp_server/state.py_scope_metaclew/mcp_server/state.py_source_driftclew/mcp_server/state.pydb_statusclew/mcp_server/state.pyknown_protocol_versionsclew/mcp_server/state.pyroot_uri_to_pathclew/mcp_server/state.pyroots_request_supportedclew/mcp_server/state.pyserver_request_surfaceclew/mcp_server/state.pystate_homeclew/mcp_server/state.pytarget_forclew/mcp_server/state.pymeta_sectionclew/query/_common.py_declaration_adviceclew/scope.py_declaration_noteclew/scope.py_descendableclew/scope.py_direct_parentclew/scope.py_first_partyclew/scope.py_gitignored_pathsclew/scope.py_holds_git_treeclew/scope.py_ignore_clauseclew/scope.py_is_withinclew/scope.py_nested_repos_underclew/scope.py_nested_trees_recursiveclew/scope.py_own_ignoresclew/scope.py_pruned_dirsclew/scope.py_skip_dirclew/scope.py_sub_index_nameclew/scope.py_under_anyclew/scope.py_vendored_clauseclew/scope.py_warn_unwalkableclew/scope.pyderive_sub_indexesclew/scope.pyfirst_party_sub_indexclew/scope.pynested_repo_rootsclew/scope.pywhole_repo_scopeclew/scope.pyread_build_signatureclew/signature.pystated_optionsclew/tiers.pylinkclew/wiki/themes/clew/static/web.jslistclew/wiki/themes/clew/static/web.js
This diagram as Mermaid · PlantUML · Graphviz DOT
Quick views¶
102 functions, each with its quick view
- _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.
- describe_declaration
One sentence on a repository's .clew.yaml and whether a build honours it.
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
- _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
- _code_notice
The code-axis notice, when the source moved under a running process.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.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.
- _cost_clause
Human phrasing for what a refresh of this target last cost.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.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.
- _data_notice
The data-axis notice, when the sources have drifted.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.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.
- _derived_notice
The derived-axis notice, while a fast in-place refresh awaits its full refresh.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.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.
- _dominant_clause
Name the stage that dominated a refresh, from that refresh's own timings.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.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.
- _humanise_ms
Spell a millisecond count the way a reader would say it.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.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.
- _partial_notice
The partial-index notice, when doxygen failed and the C/C++ layer is missing.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.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.
- _schema_notice
The schema-axis notice, when the stamped and expected versions disagree.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.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.
- code_identity
The code identity the process is actually running.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- notices
Every staleness axis currently in play, with the action that clears it.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- package_source_root
The installed package's source directory.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.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.
- package_version
The package version this process is running.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.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.
- refused
Tag a deliberate refusal so a truncating client still shows the distinction.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.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
- source_fingerprint
Fingerprint the package source's identity on disk.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- stale_code_refusal
The refusal a write path owes its caller when this process predates its source.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/freshness.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- listed_names
Render a bounded list of sub-index names for a sentence.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/routing.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_index_message
The sentence every unbuilt-index refusal opens with.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/routing.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_indexes
Collect every known index of one repository without walking its tree.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/routing.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
- unbuilt_refusal
The one message for a query whose index does not exist.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/routing.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
- _activate_tier1
Register tier-1 tools and notify the client of the change.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- _add_tool
Register one tool, then drop the schema's generated title keys.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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.
- _answering_with_refresh
Wrap a synchronous query tool so a stale index is refreshed before it answers.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- _background_note
The background first build a refusal about this index should describe.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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_lock
The build lock for one repository, allocated on first contention.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- _build_once
Build one target, skipping when its index is already current.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- _build_subject
The repository a build call is about.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- _buildable_row
A row for a sub-index that could be built but has not been.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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.
- _buildable_sub_indexes
Every sub-index name this repository can be asked to build.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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.
- _capped_listing
Trim a listing to the cap, disclosing what was dropped.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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_action
Run one index action and return its raw result.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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.
- _indexes_for
Every index of the repository a target string names, or None when it names none.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- _listing_row
Reduce a full status dict to the listing row targets promises.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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_under
How many recorded names sit under one top-level name.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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.
- _offered_sub_indexes
The buildable names a refusal should OFFER, rendered for a reader.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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.
- _roots
Roots advertised by the client, or an empty list.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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.
- _roots_askable
Whether this connection can be asked for its roots at all.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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.
- _strip_titles
Remove title keys from a JSON schema, recursively, in place.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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.
- _sub_index_rejection
Why this sub-index cannot be built, or None when it can.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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.
- _sync_tier1
Bring tier-1 into line with whether this server knows of any repository.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- _take_context
Declare an injected ctx on a wrapper, outside its schema.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- _target_from_roots
First usable repo root among the client's advertised roots.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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.
- _top_level_names
The derived names that are not nested inside another derived name.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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.
- adopt
Make a repo the active target and expose its query tools.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- build_or_refresh
Build or refresh the active target's clew.db, then expose tier-1.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
REQ-DDB-CONFIG-001 REQ-DDB-CONFIG-008 REQ-DDB-MCP-002 REQ-DDB-MCP-004
- ensure_target
The active target, resolving one from the client's roots if needed.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
Administer the index: status, refresh, targets — one tool, one action.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- list_targets
Every known target with its database age and staleness.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- read_comments
Read the wiki comments waiting for a repository, and mark them read.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- register_query_tools
Add the tier-1 query tools to an MCP server instance.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- registry_wide_target_error
Explain that a registry-wide index action will not honour a supplied target.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- resolve_target
Resolve a caller-supplied target string to a known repository.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- status
Current target, how it was resolved, database freshness and tier-1 state.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- unknown_target_error
Explain that a caller-supplied target string resolved to nothing.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/server.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
- _bounded_scope_meta
Bound the stored scope strings a status reply carries.
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.
- _coverage_meta
The index-coverage measurement recorded at build time, if any.
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
- _data_model_meta
The generated data model the repository declares, and what was declined.
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
- _diagnostics_meta
What the build searched for and did NOT find, counts included when they are zero.
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
- _meta_section
One namespaced build_meta section, read without its key prefix.
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
- _options_meta
Which precedence tier chose each layered setting this index was built with.
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
- _refresh_meta
What the last refresh of this index actually cost, if it was measured.
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
- _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.
- _scope_meta
The scope decision recorded at build time, if any.
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
- _source_drift
Count indexed source files modified since the database was built.
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
No requirement names this function as an implementer.
- db_status
Freshness/identity report for one target's database.
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
REQ-DDB-CONFIG-006 REQ-DDB-CONFIG-007 REQ-DDB-MCP-001 REQ-DDB-MCP-004
- known_protocol_versions
Protocol revisions the installed SDK recognises, or empty when unreadable.
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.
- root_uri_to_path
Convert one MCP root URI into a local directory path.
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
- roots_request_supported
Whether a standalone roots/list request is carriable at this protocol revision.
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
No requirement names this function as an implementer.
- server_request_surface
The SDK's server-to-client request surface, or None when it cannot be read.
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
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
- meta_section
One namespaced build_meta section, read without its key prefix.
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
- _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
- _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.
- _direct_parent
The closest containing root for one nested tree, among a repo's own split.
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.
- _first_party
The first-party SubIndex from a repository's direct nested trees and its 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.
- _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.
- _nested_trees_recursive
Every nested git tree under one root, at ANY depth.
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.
- _own_ignores
One tree's own gitignored paths, minus anything a child tree already excludes.
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.
- _sub_index_name
Name a nested tree by its repo-relative path, safe as a directory component.
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.
- _under_any
Whether a path is one of, or inside, any of the given roots.
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_sub_indexes
Split a repository into first-party and per-nested-tree indexes, at any depth.
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
- first_party_sub_index
The first-party sub-index of a split repository, without walking any vendored tree.
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
- 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
- stated_options
Which options the index carries an operator's own statement for.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/tiers.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
test_a_stated_configuration_survives_export_declare_rebuildtest_a_stated_manifest_survives_a_rebuild_and_a_withdrawal_undoes_ittest_a_stated_predefined_survives_a_rebuild_and_a_withdrawal_undoes_ittest_nothing_is_stated_and_nothing_replays_for_a_target_that_states_nothingtest_status_names_the_options_an_operator_stated
Reqs
- 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.