thread clew-first-build- — _first_build_worker (clew/mcp_server/server.py)¶
Overview · 142 steps, 7 lanes
All 142 steps
| # | caller | callee | what it does | requirements | frames | call site |
|---|---|---|---|---|---|---|
| 1 | _first_build_worker | first_party_sub_index | The first-party sub-index of a split repository, without walking any vendored tree. | REQ-DDB-INDEX-002 | try (line 1664) | clew/mcp_server/server.py:1665 |
| 2 | 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 |
| 3 | whole_repo_scope | _gitignored_paths | Paths the repo's own git configuration ignores. | — | — | clew/scope.py:733 |
| 4 | _gitignored_paths | git_argv | One git argv with every command-valued configuration key disarmed. | REQ-DDB-CONFIG-001 | — | clew/scope.py:989 |
| 5 | git_argv | _no_ext_diff | Insert --no-ext-diff after a diff-family subcommand. | REQ-DDB-CONFIG-001 | — | clew/gitenv.py:110 |
| 6 | git_argv | list | — | — | — | clew/gitenv.py:110 |
| 7 | list | link | — | — | — | clew/wiki/themes/clew/static/web.js:85 |
| 8 | _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 |
| 9 | whole_repo_scope | list | — | — | — | clew/scope.py:734 |
| 10 | 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 |
| 11 | nested_repo_roots | _nested_repos_under | Directories holding a .git strictly beneath one declared root. | — | if (line 845) | clew/scope.py:845 |
| 12 | _nested_repos_under | _warn_unwalkable | Report a directory the nested-repository check could not read. | — | loop (line 1239) | clew/scope.py:1239 |
| 13 | _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 |
| 14 | _nested_repos_under | _skip_dir | Whether a directory entry should be skipped outright by the walk. | — | loop (line 1239) | clew/scope.py:1255 |
| 15 | nested_repo_roots | _nested_repos_under | Directories holding a .git strictly beneath one declared root. | — | if (line 847) | clew/scope.py:847 |
| 16 | whole_repo_scope | _gitignored_paths | Paths the repo's own git configuration ignores. | — | loop (line 746) | clew/scope.py:747 |
| 17 | whole_repo_scope | _pruned_dirs | Dot and cache directories anywhere under a whole-repo root. | — | — | clew/scope.py:751 |
| 18 | _pruned_dirs | _warn_unwalkable | Report a directory the nested-repository check could not read. | — | loop (line 1055) | clew/scope.py:1055 |
| 19 | _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 |
| 20 | _pruned_dirs | _descendable | Split one directory's children into those worth walking and those to exclude. | — | loop (line 1055) | clew/scope.py:1085 |
| 21 | _descendable | _is_within | Whether a path is the same as, or inside, another. | — | loop (line 1117) | clew/scope.py:1119 |
| 22 | _descendable | _skip_dir | Whether a directory entry should be skipped outright by the walk. | — | loop (line 1117) | clew/scope.py:1121 |
| 23 | whole_repo_scope | _declaration_note | Where a declaration was looked for, phrased for a fallback reason. | REQ-DDB-CONFIG-001 | — | clew/scope.py:763 |
| 24 | whole_repo_scope | _ignore_clause | The scope reason's clause about ignored paths, true to what git actually answered. | — | — | clew/scope.py:764 |
| 25 | whole_repo_scope | _vendored_clause | Name the indexed trees that look vendored, and how to exclude them. | — | — | clew/scope.py:765 |
| 26 | 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 |
| 27 | first_party_sub_index | _under_any | Whether a path is one of, or inside, any of the given roots. | — | — | clew/scope.py:387 |
| 28 | 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 |
| 29 | first_party_sub_index | _first_party | The first-party SubIndex from a repository's direct nested trees and its ignores. | — | — | clew/scope.py:391 |
| 30 | _first_party | _own_ignores | One tree's own gitignored paths, minus anything a child tree already excludes. | — | — | clew/scope.py:356 |
| 31 | _own_ignores | _under_any | Whether a path is one of, or inside, any of the given roots. | — | — | clew/scope.py:334 |
| 32 | first_party_sub_index | _gitignored_paths | Paths the repo's own git configuration ignores. | — | — | clew/scope.py:391 |
| 33 | _first_build_worker | target_for | Allocate the Target record for a repo path (pure; no I/O). | REQ-DDB-MCP-001 | try (line 1664), if (line 1666) | clew/mcp_server/server.py:1666 |
| 34 | 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 |
| 35 | target_for | state_home | Per-user state root for built databases and the registry. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:353 |
| 36 | _first_build_worker | _run_build | Run the build pipeline in this process for one target. | REQ-DDB-CONFIG-008 | try (line 1664) | clew/mcp_server/server.py:1673 |
| 37 | _run_build | nested_tree_cache | Share one nested-tree walk across everything a single build asks. | REQ-DDB-CONFIG-001 | — | clew/mcp_server/server.py:3133 |
| 38 | _run_build | _run_build_walked | The build itself, run inside the caller's walk cache. | REQ-DDB-CONFIG-008 | — | clew/mcp_server/server.py:3134 |
| 39 | _run_build_walked | _sub_index_rejection | Why this sub-index cannot be built, or None when it can. | — | — | clew/mcp_server/server.py:3201 |
| 40 | _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 |
| 41 | _sub_index_rejection | _buildable_sub_indexes | Every sub-index name this repository can be asked to build. | — | — | clew/mcp_server/server.py:1004 |
| 42 | _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 |
| 43 | 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 |
| 44 | derive_sub_indexes | _nested_trees_recursive | Every nested git tree under one root, at ANY depth. | — | — | clew/scope.py:279 |
| 45 | _nested_trees_recursive | _under_any | Whether a path is one of, or inside, any of the given roots. | — | — | clew/scope.py:202 |
| 46 | _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 |
| 47 | _nested_trees_recursive | list | — | — | — | clew/scope.py:204 |
| 48 | _nested_trees_recursive | _gitignored_paths | Paths the repo's own git configuration ignores. | — | loop (line 205) | clew/scope.py:206 |
| 49 | _nested_trees_recursive | _nested_trees_recursive | Every nested git tree under one root, at ANY depth. | — | loop (line 205) | clew/scope.py:207 |
| 50 | 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 |
| 51 | derive_sub_indexes | _gitignored_paths | Paths the repo's own git configuration ignores. | — | — | clew/scope.py:305 |
| 52 | derive_sub_indexes | _gitignored_paths | Paths the repo's own git configuration ignores. | — | loop (line 306) | clew/scope.py:307 |
| 53 | derive_sub_indexes | _first_party | The first-party SubIndex from a repository's direct nested trees and its ignores. | — | — | clew/scope.py:309 |
| 54 | 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 |
| 55 | 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 |
| 56 | _sub_index_rejection | _offered_sub_indexes | The buildable names a refusal should OFFER, rendered for a reader. | — | — | clew/mcp_server/server.py:1013 |
| 57 | _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 |
| 58 | _offered_sub_indexes | list | — | — | — | clew/mcp_server/server.py:943 |
| 59 | _run_build_walked | _buildable_sub_indexes | Every sub-index name this repository can be asked to build. | — | if (line 3215) | clew/mcp_server/server.py:3215 |
| 60 | _run_build_walked | discover_doxyfile | Discover a repo's own Doxyfile (declaration-driven, never hardcoded). | REQ-DDB-INDEX-001 | — | clew/mcp_server/server.py:3216 |
| 61 | _run_build_walked | captured_output | Send every pipeline writer into a buffer instead of the process stdout. | — | — | clew/mcp_server/server.py:3242 |
| 62 | _run_build_walked | build_lock | Hold an exclusive cross-process lock on one target's build, or report not holding it. | REQ-DDB-INDEX-002 | try (line 3260) | clew/mcp_server/server.py:3260 |
| 63 | build_lock | _os_lock | Take the OS advisory lock for one output, bounded and failing open. | — | — | clew/buildlock.py:110 |
| 64 | _os_lock | lock_path | Path of the lock file guarding one target's build. | — | — | clew/buildlock.py:154 |
| 65 | _run_build_walked | db_status | Freshness/identity report for one target's database. | try (line 3260) | clew/mcp_server/server.py:3277 | |
| 66 | 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 |
| 67 | _options_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1062 |
| 68 | _meta_section | meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:916 |
| 69 | 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 |
| 70 | 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 |
| 71 | db_status | _source_drift | Count indexed source files modified since the database was built. | — | — | clew/mcp_server/state.py:1185 |
| 72 | db_status | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1189 |
| 73 | db_status | _bounded_scope_meta | Bound the stored scope strings a status reply carries. | — | — | clew/mcp_server/state.py:1207 |
| 74 | db_status | _scope_meta | The scope decision recorded at build time, if any. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1207 |
| 75 | _scope_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:936 |
| 76 | db_status | _coverage_meta | The index-coverage measurement recorded at build time, if any. | REQ-DDB-INDEX-003 | — | clew/mcp_server/state.py:1209 |
| 77 | _coverage_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1009 |
| 78 | 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 |
| 79 | _refresh_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1037 |
| 80 | db_status | list | — | — | — | clew/mcp_server/state.py:1222 |
| 81 | 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 |
| 82 | _diagnostics_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:1091 |
| 83 | 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 |
| 84 | _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 |
| 85 | db_status | code_identity | The code identity the process is actually running. | REQ-DDB-MCP-004 | — | clew/mcp_server/state.py:1237 |
| 86 | code_identity | source_fingerprint | Fingerprint the package source's identity on disk. | REQ-DDB-MCP-004 | — | clew/mcp_server/freshness.py:244 |
| 87 | source_fingerprint | package_source_root | The installed package's source directory. | — | — | clew/mcp_server/freshness.py:168 |
| 88 | code_identity | package_version | The package version this process is running. | — | — | clew/mcp_server/freshness.py:247 |
| 89 | 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 |
| 90 | notices | code_identity | The code identity the process is actually running. | REQ-DDB-MCP-004 | — | clew/mcp_server/freshness.py:669 |
| 91 | notices | _data_notice | The data-axis notice, when the sources have drifted. | — | — | clew/mcp_server/freshness.py:671 |
| 92 | _data_notice | _cost_clause | Human phrasing for what a refresh of this target last cost. | — | — | clew/mcp_server/freshness.py:405 |
| 93 | _cost_clause | _humanise_ms | Spell a millisecond count the way a reader would say it. | — | — | clew/mcp_server/freshness.py:325 |
| 94 | _cost_clause | _dominant_clause | Name the stage that dominated a refresh, from that refresh's own timings. | — | — | clew/mcp_server/freshness.py:342 |
| 95 | notices | _schema_notice | The schema-axis notice, when the stamped and expected versions disagree. | — | — | clew/mcp_server/freshness.py:672 |
| 96 | notices | _partial_notice | The partial-index notice, when doxygen failed and the C/C++ layer is missing. | — | — | clew/mcp_server/freshness.py:673 |
| 97 | notices | _derived_notice | The derived-axis notice, while a fast in-place refresh awaits its full refresh. | — | — | clew/mcp_server/freshness.py:674 |
| 98 | notices | _code_notice | The code-axis notice, when the source moved under a running process. | — | — | clew/mcp_server/freshness.py:675 |
| 99 | _run_build_walked | declared_scope_rejection | Whether the repo's own index_scope would be REJECTED, without the fallback. | REQ-DDB-CONFIG-001 | try (line 3260) | clew/mcp_server/server.py:3310 |
| 100 | declared_scope_rejection | _declared_index_scope | Index scope declared directly in the repo's .clew.yaml . | — | — | clew/scope.py:653 |
| 101 | _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 |
| 102 | load_declaration_located | _read_mapping | Parse a YAML file expected to hold a mapping. | — | — | clew/declaration.py:429 |
| 103 | _read_mapping | _parsed_declaration | Parse a declaration file into (mapping, problem). | — | — | clew/declaration.py:668 |
| 104 | load_declaration_located | _checked_sections | Check every declared section's shape, normalising a one-string list section. | — | if (line 485) | clew/declaration.py:485 |
| 105 | _checked_sections | _checked_section | Check one section's shape. | — | loop (line 506) | clew/declaration.py:507 |
| 106 | _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 |
| 107 | _checked_list_section | all | Every comment, oldest first, with its status. | REQ-DDB-WIKI-054 | — | clew/declaration.py:619 |
| 108 | all | _events | — | — | loop (line 135) | clew/mcp_server/comments.py:135 |
| 109 | all | _public | A stored event's public fields. | — | loop (line 135), if (line 137) | clew/mcp_server/comments.py:137 |
| 110 | all | list | — | — | — | clew/mcp_server/comments.py:140 |
| 111 | _checked_section | _checked_requirements | Check the catalog section against the gate's own schema. | — | if (line 531) | clew/declaration.py:531 |
| 112 | _checked_requirements | _validate_node | Validate a single config node against its schema spec. | REQ-DDB-GUARD-012 | — | clew/declaration.py:602 |
| 113 | _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 |
| 114 | _validate_map_of | _config_path | Build a dotted config path from parent path and key. | — | loop (line 470) | clew/guard/config.py:471 |
| 115 | _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 |
| 116 | _validate_node | _validate_dict_node | Validate dict keys against schema, recursing into sub-nodes. | REQ-DDB-GUARD-012 | — | clew/guard/config.py:458 |
| 117 | _validate_dict_node | _config_path | Build a dotted config path from parent path and key. | — | loop (line 417) | clew/guard/config.py:418 |
| 118 | _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 |
| 119 | _suggest_key | list | — | — | — | clew/guard/config.py:431 |
| 120 | _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 |
| 121 | _checked_section | _checked_tests | Check the list-shaped keys of tests: . | — | if (line 533) | clew/declaration.py:533 |
| 122 | _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 |
| 123 | _checked_tests | … 1 not run | — | — | — | — |
| 124 | _checked_section | check_manifest_document | — | — | if (line 547), try (line 548) | clew/declaration.py:548 |
| 125 | check_manifest_document | _checked_document | — | — | — | clew/buildoptions.py:620 |
| 126 | _checked_document | _checked_entries | — | — | loop (line 598) | clew/buildoptions.py:599 |
| 127 | _checked_entries | _checked_entry | — | — | loop (line 648) | clew/buildoptions.py:649 |
| 128 | _checked_section | _check_section_keys | Refuse a key a section-document section's reader never reads. | — | — | clew/declaration.py:551 |
| 129 | _declared_index_scope | _existing_paths | Resolve declared repo-relative entries that exist INSIDE the repository. | — | — | clew/scope.py:1196 |
| 130 | _existing_paths | _is_within | Whether a path is the same as, or inside, another. | — | loop (line 1416) | clew/scope.py:1418 |
| 131 | _declared_index_scope | _existing_paths | Resolve declared repo-relative entries that exist INSIDE the repository. | — | — | clew/scope.py:1203 |
| 132 | _run_build_walked | _sub_index_scope | The scope arguments a build of one sub-index needs, or the caller's unchanged. | — | try (line 3260) | clew/mcp_server/server.py:3318 |
| 133 | _sub_index_scope | 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:1066 |
| 134 | _sub_index_scope | 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:1068 |
| 135 | _sub_index_scope | declared_sub_index_excludes | Excludes the parent repository declares for one of its named sub-indexes. | REQ-DDB-CONFIG-001 | — | clew/mcp_server/server.py:1091 |
| 136 | declared_sub_index_excludes | load_declaration | Load a repo's .clew.yaml , or an empty mapping when it has none. | REQ-DDB-CONFIG-001 | — | clew/scope.py:597 |
| 137 | load_declaration | load_declaration_located | A repo's declaration AND the file it was read from. | REQ-DDB-CONFIG-001 | — | clew/declaration.py:383 |
| 138 | _run_build_walked | _bounded_output | Bound a build's captured output without dropping what a reader acts on. | — | catch (line 3328) | clew/mcp_server/server.py:3330 |
| 139 | _bounded_output | all | Every comment, oldest first, with its status. | REQ-DDB-WIKI-054 | — | clew/mcp_server/server.py:416 |
| 140 | _run_build_walked | _failure_result | Report an in-process pipeline failure as a tool result. | REQ-DDB-MCP-002 | catch (line 3328) | clew/mcp_server/server.py:3330 |
| 141 | _run_build_walked | _bounded_output | Bound a build's captured output without dropping what a reader acts on. | — | — | clew/mcp_server/server.py:3338 |
| 142 | _run_build_walked | … 2 not run | — | — | — | — |
Functions¶
97 functions
captured_outputclew/_common.py_os_lockclew/buildlock.pybuild_lockclew/buildlock.pylock_pathclew/buildlock.py_checked_documentclew/buildoptions.py_checked_entriesclew/buildoptions.py_checked_entryclew/buildoptions.pycheck_manifest_documentclew/buildoptions.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.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_eventsclew/mcp_server/comments.py_publicclew/mcp_server/comments.pyallclew/mcp_server/comments.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.pysource_fingerprintclew/mcp_server/freshness.py_bounded_outputclew/mcp_server/server.py_buildable_sub_indexesclew/mcp_server/server.py_failure_resultclew/mcp_server/server.py_first_build_workerclew/mcp_server/server.py_offered_sub_indexesclew/mcp_server/server.py_run_buildclew/mcp_server/server.py_run_build_walkedclew/mcp_server/server.py_sub_index_rejectionclew/mcp_server/server.py_sub_index_scopeclew/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.pystate_homeclew/mcp_server/state.pytarget_forclew/mcp_server/state.pymeta_sectionclew/query/_common.py_declaration_adviceclew/scope.py_declaration_noteclew/scope.py_declared_index_scopeclew/scope.py_descendableclew/scope.py_direct_parentclew/scope.py_existing_pathsclew/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.pydeclared_scope_rejectionclew/scope.pydeclared_sub_index_excludesclew/scope.pyderive_sub_indexesclew/scope.pyfirst_party_sub_indexclew/scope.pynested_repo_rootsclew/scope.pynested_tree_cacheclew/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¶
97 functions, each with its quick view
- captured_output
Send every pipeline writer into a buffer instead of the process stdout.
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
Reqs
No requirement names this function as an implementer.
- _os_lock
Take the OS advisory lock for one output, bounded and failing open.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/buildlock.py.Flow
Replay
No 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
Hold an exclusive cross-process lock on one target's build, or report not holding it.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/buildlock.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- lock_path
Path of the lock file guarding one target's build.
Map
Show it on the map, in its block's wedge.
Block
Build: orchestration is the block holding
clew/buildlock.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_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.
- _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
- _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
- _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
- _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.
- 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
- _bounded_output
Bound a build's captured output without dropping what a reader acts on.
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.
- _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.
- _failure_result
Report an in-process pipeline failure as a tool 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
- _first_build_worker
Run one first build to completion in a worker thread.
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
- _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.
- _run_build
Run the build pipeline in this process for one 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
- _run_build_walked
The build itself, run inside the caller's walk cache.
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
- _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.
- _sub_index_scope
The scope arguments a build of one sub-index needs, or the caller's unchanged.
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.
- _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
- 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
- _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.
- _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.
- _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.
- _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.
- declared_scope_rejection
Whether the repo's own index_scope would be REJECTED, without the fallback.
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
- declared_sub_index_excludes
Excludes the parent repository declares for one of its named sub-indexes.
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
- 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
- nested_tree_cache
Share one nested-tree walk across everything a single build asks.
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.