clew — main (clew/cli.py)

Overview · 400 steps, 7 lanes

  1. steps 1–154 · other files, clew/scope.py, clew/propose/astdefs.py
  2. steps 155–157 · other files
  3. steps 158–202 · other files, clew/init_command.py, clew/scope.py
  4. steps 203–400 · other files, clew/query/symbols.py, clew/query/_common.py +1
command-line usercommand-line usercommand-line usercommand-line usercommand-line usercommand-line usercommand-line usercommand-line usercommand-line usercommand-line usercommand-line usercommand-line usercommand-line usercommand-line usercommand-line usercommand-line usercommand-line userclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/propose/astdefs.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyclew/query/corpus.pyother filesother filesother filesother filesother filesother filesother filesother filesother filesother filesother filesother filesother filesother filesother filesother filesother filesopt (line 3996)optalt (line 1171)altopt (line 547)opttry (line 548)tryopt (line 696)opttry (line 1003)tryloop (line 268)loopopt (line 270)optelif (line 274)elifopt (line 4002)optopt (line 4008)optloop (line 312)looploop (line 314)looptry (line 1304)tryloop (line 710)looptry (line 683)tryopt (line 4018)optloop (line 1576)looploop (line 1494)loopopt (line 1497)optloop (line 1507)loopopt (line 1966)optopt (line 1968)optopt (line 333)optloop (line 1856)loopopt (line 1902)optopt (line 1012)optopt (line 474)optopt (line 504)optloop (line 660)looploop ×2 (line 1488)loop ×2loop ×2 (line 555)loop ×2loop ×3 (line 942)loop ×3loop ×2 (line 288)loop ×2main1–11. main → propose_main1propose_main +10 more12. build_context → derive_scope12derive_scope13. derive_scope → _declared_index_scope13_declared_index_scope14. _declared_index_scope → load_declaration_located14load_declaration_located15–35. load_declaration_located → _read_mapping15_read_mapping +20 more36. _checked_tests → 36… 1 call not run37–41. _checked_section → check_manifest_document37check_manifest_document +4 more42–44. _declared_index_scope → _existing_paths42_existing_paths +2 more45–46. derive_scope → whole_repo_scope45whole_repo_scope +1 more47. _gitignored_paths → git_argv47git_argv48–49. git_argv → _no_ext_diff48_no_ext_diff +1 more50. _gitignored_paths → git_env50git_env51. whole_repo_scope → list51list52–68. whole_repo_scope → nested_repo_roots52nested_repo_roots +16 more69. derive_scope → whole_repo_scope69whole_repo_scope70–89. build_context → repo_source_files70repo_source_files +19 more90. _absorb_file → definition_record90definition_record91–109. definition_record → _signature91_signature +18 more110. _absorb_file → _accessor_site110_accessor_site111. _accessor_site → callee_name111callee_name112–113. build_context → load_declaration112load_declaration +1 more114–117. propose → _sections114_sections +3 more118. _blocking → is_derived118is_derived119–127. _sections → _blocked_section119_blocked_section +8 more128. candidate_dirs → 128… 1 call not run129–130. report_not_indexed → _dir_lines129_dir_lines +1 more131. propose → scope_summary131scope_summary132. scope_summary → is_derived132is_derived133. scope_summary → ast_readable_in_scope133ast_readable_in_scope134–150. propose → render_declaration134render_declaration +16 more151–154. propose_main → _resolve_db151_resolve_db +3 more155–157. main → export_main155export_main +2 more158. main → init_main158init_main159–161. init_main → build_parser159build_parser +2 more162. _check_client_config → global_config_evidence162global_config_evidence163–164. global_config_evidence → claude_state_dir163claude_state_dir +1 more165. _check_client_config → global_config_available165global_config_available166. global_config_available → global_config_evidence166global_config_evidence167. diagnose → _check_server_command167_check_server_command168. _check_server_command → resolve_server_command168resolve_server_command169–171. resolve_server_command → _locate_script169_locate_script +2 more172–173. diagnose → _check_mcp_sdk172_check_mcp_sdk +1 more174. _check_doxygen → uses_rustdoc174uses_rustdoc175–176. uses_rustdoc → discover_doxyfile175discover_doxyfile +1 more177. _check_doxygen → _needs_doxygen177_needs_doxygen178. _needs_doxygen → claims178claims179. _check_doxygen → doxygen_supports_sqlite3179doxygen_supports_sqlite3180. doxygen_supports_sqlite3 → clean_subprocess_env180clean_subprocess_env181. diagnose → _check_indexable181_check_indexable182. _check_indexable → discover_doxyfile182discover_doxyfile183. _check_indexable → derive_scope183derive_scope184. diagnose → _check_declaration184_check_declaration185–187. init_main → _format_check185_format_check +2 more188. _register → resolve_server_command188resolve_server_command189. _register → server_entry189server_entry190. _register → config_path190config_path191. config_path → global_config_path191global_config_path192. _register → plan_merge192plan_merge193–196. plan_merge → load_document193load_document +3 more197–200. _register → _execute197_execute +3 more201. _emit → apply_plan201apply_plan202. _execute → _print_next_steps202_print_next_steps203–212. main → query_main203query_main +9 more213. _symbol_corpus → search_counted213search_counted214. search_counted → connect214connect215–216. search_counted → _memberdef_corpora215_memberdef_corpora +1 more217. _expansion_sql → has_columns217has_columns218. has_columns → table_exists218table_exists219. _memberdef_corpora → _memberdef_candidates219_memberdef_candidates220. _memberdef_candidates → table_exists220table_exists221. _memberdef_candidates → documented_first221documented_first222–223. documented_first → records_provenance222records_provenance +1 more224. _memberdef_candidates → symbol_provenance224symbol_provenance225. symbol_provenance → records_provenance225records_provenance226. _memberdef_candidates → self_declared_paths226self_declared_paths227–228. _memberdef_candidates → _one_line227_one_line +1 more229. _memberdef_candidates → strip_xml229strip_xml230. _memberdef_candidates → _search_rank230_search_rank231. _memberdef_candidates → symbol_provenance231symbol_provenance232–233. search_counted → _class_candidates232_class_candidates +1 more234. _class_candidates → class_rows234class_rows235. class_rows → table_exists235table_exists236. class_rows → strip_xml236strip_xml237–238. search_counted → _config_candidates237_config_candidates +1 more239. _config_candidates → gate_symbol_rows239gate_symbol_rows240. gate_symbol_rows → table_exists240table_exists241. gate_symbol_rows → has_columns241has_columns242. search_counted → _file_candidates242_file_candidates243. _file_candidates → self_declared_paths243self_declared_paths244–245. _file_candidates → _search_rank244_search_rank +1 more246. _file_candidates → file_doc_rows246file_doc_rows247. file_doc_rows → table_exists247table_exists248. _file_candidates → undocumented_path_rows248undocumented_path_rows249. undocumented_path_rows → table_exists249table_exists250. undocumented_path_rows → has_columns250has_columns251. undocumented_path_rows → table_exists251table_exists252. _symbol_corpus → search_emptiness252search_emptiness253. search_emptiness → index_scope253index_scope254. index_scope → connect254connect255. index_scope → _scope_provenance255_scope_provenance256. _scope_provenance → table_exists256table_exists257. index_scope → _indexed_paths257_indexed_paths258. _indexed_paths → table_exists258table_exists259–260. index_scope → _extensions259_extensions +1 more261–269. search_emptiness → _scope_payload261_scope_payload +8 more270. search_emptiness → unsearched_corpora270unsearched_corpora271. unsearched_corpora → connect271connect272. unsearched_corpora → table_exists272table_exists273. unsearched_corpora → _unread_kind_counts273_unread_kind_counts274. unsearched_corpora → table_exists274table_exists275. unsearched_corpora → _unread_kind_counts275_unread_kind_counts276. search_emptiness → token_hit_counts276token_hit_counts277. token_hit_counts → connect277connect278. token_hit_counts → _one_token_count278_one_token_count279. _one_token_count → table_exists279table_exists280. _one_token_count → _expansion_sql280_expansion_sql281. _one_token_count → class_rows281class_rows282. _one_token_count → file_doc_rows282file_doc_rows283–288. search_emptiness → _conjunction_note283_conjunction_note +5 more289. _verdict → has_file_docs289has_file_docs290. has_file_docs → connect290connect291. has_file_docs → table_exists291table_exists292. search_emptiness → _scope_sentence292_scope_sentence293. _symbol_corpus → with_limit_disclosure293with_limit_disclosure294. corpus_payload → _prose_corpus294_prose_corpus295. _prose_corpus → search_prose_graded295search_prose_graded296. search_prose_graded → _query_tokens296_query_tokens297. search_prose_graded → connect297connect298. search_prose_graded → table_exists298table_exists299–300. search_prose_graded → _fts_match299_fts_match +1 more301. search_prose_graded → strip_xml301strip_xml302. search_prose_graded → list302list303. search_prose_graded → member_doc_rows303member_doc_rows304. member_doc_rows → table_exists304table_exists305. member_doc_rows → has_columns305has_columns306. search_prose_graded → _collapse306_collapse307. _prose_corpus → prose_emptiness307prose_emptiness308. prose_emptiness → has_prose_corpus308has_prose_corpus309. has_prose_corpus → connect309connect310. has_prose_corpus → table_exists310table_exists311. prose_emptiness → token_hit_counts311token_hit_counts312. prose_emptiness → _render_counts312_render_counts313–329. corpus_payload → _code_corpus313_code_corpus +16 more330. files_context → directory_rollup330directory_rollup331. directory_rollup → connect331connect332–333. directory_rollup → has_columns332has_columns ×2334. directory_rollup → rollup_meaning334rollup_meaning335. files_context → one335one336. files_context → doc_scope336doc_scope337. doc_scope → connect337connect338. doc_scope → _scope_provenance338_scope_provenance339. _files_corpus → directory_rollup339directory_rollup340. _files_corpus → one340one341. _files_corpus → list_files341list_files342. list_files → connect342connect343. list_files → has_columns343has_columns344. list_files → table_exists344table_exists345. list_files → _matches345_matches346. _files_corpus → files_miss346files_miss347. corpus_payload → lock_roster347lock_roster348. lock_roster → connect348connect349. lock_roster → table_exists349table_exists350–351. lock_roster → _entries350_entries +1 more352. _roster_sql → has_columns352has_columns353–354. lock_roster → nestings_on353nestings_on +1 more355. _layer_present → table_exists355table_exists356. nestings_on → table_exists356table_exists357–360. lock_roster → _nesting_pairs357_nesting_pairs +3 more361–362. corpus_payload → one361one ×2363. corpus_payload → thread_roster363thread_roster364. thread_roster → connect364connect365. thread_roster → table_exists365table_exists366. thread_roster → has_columns366has_columns367. thread_roster → _thread_columns367_thread_columns368–370. _thread_columns → has_columns368has_columns ×3371. thread_roster → _build_thread371_build_thread372. _build_thread → name_of372name_of373. _build_thread → table_exists373table_exists374. _build_thread → _spawn_attribution374_spawn_attribution375. _spawn_attribution → has_columns375has_columns376–377. thread_roster → _thread_origins376_thread_origins +1 more378–380. corpus_payload → _config_found_on_the_wire378_config_found_on_the_wire +2 more381. kconfig_space → connect381connect382. kconfig_space → _meta382_meta383. _meta → table_exists383table_exists384. kconfig_space → _symbols384_symbols385. _symbols → table_exists385table_exists386. kconfig_space → table_exists386table_exists387. kconfig_space → _gate_layer_state387_gate_layer_state388. _gate_layer_state → table_exists388table_exists389. kconfig_space → _gate_symbol_names389_gate_symbol_names390. _gate_symbol_names → table_exists390table_exists391. kconfig_space → _gates391_gates392. _gates → table_exists392table_exists393. _gates → _gate_columns393_gate_columns394–395. _gate_columns → has_columns394has_columns ×2396. _gates → _with_defaults396_with_defaults397. _with_defaults → table_exists397table_exists398. _with_defaults → _defaults_for_macros398_defaults_for_macros399. _with_defaults → decided_default399decided_default400. decided_default → is_shipped_config400is_shipped_config
All 400 steps
#callercalleewhat it doesrequirementsframescall site
1mainpropose_mainRun clew propose .REQ-DDB-CONFIG-001if (line 3996)clew/cli.py:4000
2propose_mainbuild_parserBuild the clew propose argument parser.REQ-DDB-CONFIG-001—clew/propose/command.py:127
3propose_main_configure_loggingSend logging to stderr so the draft on stdout stays parseable.——clew/propose/command.py:128
4propose_main_refusalWhy the output path must not be written, if it must not.——clew/propose/command.py:131
5propose_mainproposePropose a starter .clew.yaml for one repo.REQ-DDB-CONFIG-001—clew/propose/command.py:136
6proposedb_status_summaryFreshness and usability summary for the index a proposal measures against.REQ-DDB-CONFIG-001—clew/propose/registry.py:307
7db_status_summaryindex_defectWhy a database cannot be dry-run against, if it cannot.REQ-DDB-CONFIG-001—clew/propose/registry.py:460
8index_defect_countCount rows in a table, tolerating its absence.—try (line 86)clew/propose/dryrun.py:86
9index_defect_defect_reasonTurn a memberdef presence/row count into a defect reason.——clew/propose/dryrun.py:96
10db_status_summaryread_build_signatureRead the build version stamped into a DB, or None if absent/unreadable.REQ-DDB-PIPE-005—clew/propose/registry.py:461
11proposebuild_contextAssemble everything the detectors are allowed to read, once.REQ-DDB-CONFIG-001—clew/propose/registry.py:308
12build_contextderive_scopeResolve the index scope: a declared index_scope, else the whole repository.REQ-DDB-CONFIG-001—clew/propose/registry.py:268
13derive_scope_declared_index_scopeIndex scope declared directly in the repo's .clew.yaml .——clew/scope.py:691
14_declared_index_scopeload_declaration_locatedA repo's declaration AND the file it was read from.REQ-DDB-CONFIG-001else (line 1171)clew/scope.py:1172
15load_declaration_located_read_mappingParse a YAML file expected to hold a mapping.——clew/declaration.py:429
16_read_mapping_parsed_declarationParse a declaration file into (mapping, problem).——clew/declaration.py:668
17load_declaration_located_checked_sectionsCheck every declared section's shape, normalising a one-string list section.—if (line 485)clew/declaration.py:485
18_checked_sections_checked_sectionCheck one section's shape.—loop (line 506)clew/declaration.py:507
19_checked_section_checked_list_sectionRead a list section, accepting one bare string as a one-item list.—if (line 529)clew/declaration.py:529
20_checked_list_sectionallEvery comment, oldest first, with its status.REQ-DDB-WIKI-054—clew/declaration.py:619
21all_events——loop (line 135)clew/mcp_server/comments.py:135
22all_publicA stored event's public fields.—loop (line 135), if (line 137)clew/mcp_server/comments.py:137
23alllist———clew/mcp_server/comments.py:140
24listlink———clew/wiki/themes/clew/static/web.js:85
25_checked_section_checked_requirementsCheck the catalog section against the gate's own schema.—if (line 531)clew/declaration.py:531
26_checked_requirements_validate_nodeValidate a single config node against its schema spec.REQ-DDB-GUARD-012—clew/declaration.py:602
27_validate_node_validate_map_ofValidate a mapping of user-named entries against the schema every entry follows.—if (line 445)clew/guard/config.py:445
28_validate_map_of_config_pathBuild a dotted config path from parent path and key.—loop (line 470)clew/guard/config.py:471
29_validate_map_of_validate_nodeValidate a single config node against its schema spec.REQ-DDB-GUARD-012loop (line 470)clew/guard/config.py:471
30_validate_node_validate_dict_nodeValidate dict keys against schema, recursing into sub-nodes.REQ-DDB-GUARD-012—clew/guard/config.py:458
31_validate_dict_node_config_pathBuild a dotted config path from parent path and key.—loop (line 417)clew/guard/config.py:418
32_validate_dict_node_suggest_keySuggest the closest known schema key for a misspelled one.—loop (line 417), if (line 420)clew/guard/config.py:420
33_validate_dict_node_validate_nodeValidate a single config node against its schema spec.REQ-DDB-GUARD-012loop (line 417), else (line 421)clew/guard/config.py:422
34_checked_section_checked_testsCheck the list-shaped keys of tests: .—if (line 533)clew/declaration.py:533
35_checked_tests_checked_list_sectionRead a list section, accepting one bare string as a one-item list.—loop (line 569), if (line 571)clew/declaration.py:571
36_checked_tests… 1 not run————
37_checked_sectioncheck_manifest_document——if (line 547), try (line 548)clew/declaration.py:548
38check_manifest_document_checked_document———clew/buildoptions.py:620
39_checked_document_checked_entries——loop (line 598)clew/buildoptions.py:599
40_checked_entries_checked_entry——loop (line 648)clew/buildoptions.py:649
41_checked_section_check_section_keysRefuse a key a section-document section's reader never reads.——clew/declaration.py:551
42_declared_index_scope_existing_pathsResolve declared repo-relative entries that exist INSIDE the repository.——clew/scope.py:1196
43_existing_paths_is_withinWhether a path is the same as, or inside, another.—loop (line 1416)clew/scope.py:1418
44_declared_index_scope_existing_pathsResolve declared repo-relative entries that exist INSIDE the repository.——clew/scope.py:1203
45derive_scopewhole_repo_scopeThe whole repository as one INPUT root, less only what git ignores.REQ-DDB-CONFIG-001if (line 696)clew/scope.py:697
46whole_repo_scope_gitignored_pathsPaths the repo's own git configuration ignores.——clew/scope.py:733
47_gitignored_pathsgit_argvOne git argv with every command-valued configuration key disarmed.REQ-DDB-CONFIG-001—clew/scope.py:989
48git_argv_no_ext_diffInsert --no-ext-diff after a diff-family subcommand.REQ-DDB-CONFIG-001—clew/gitenv.py:110
49git_argvlist———clew/gitenv.py:110
50_gitignored_pathsgit_envThe current environment with git's hook-repository overrides removed.REQ-DDB-CONFIG-001try (line 1003)clew/scope.py:1008
51whole_repo_scopelist———clew/scope.py:734
52whole_repo_scopenested_repo_rootsDirectories holding their own git tree anywhere under a repo root.REQ-DDB-CONFIG-001—clew/scope.py:745
53nested_repo_roots_nested_repos_underDirectories holding a .git strictly beneath one declared root.—if (line 845)clew/scope.py:845
54_nested_repos_under_warn_unwalkableReport a directory the nested-repository check could not read.—loop (line 1239)clew/scope.py:1239
55_nested_repos_under_holds_git_treeWhether a directory owns a git tree, as a SUBMODULE or as a clone.—loop (line 1239)clew/scope.py:1241
56_nested_repos_under_skip_dirWhether a directory entry should be skipped outright by the walk.—loop (line 1239)clew/scope.py:1255
57nested_repo_roots_nested_repos_underDirectories holding a .git strictly beneath one declared root.—if (line 847)clew/scope.py:847
58whole_repo_scope_gitignored_pathsPaths the repo's own git configuration ignores.—loop (line 746)clew/scope.py:747
59whole_repo_scope_pruned_dirsDot and cache directories anywhere under a whole-repo root.——clew/scope.py:751
60_pruned_dirs_warn_unwalkableReport a directory the nested-repository check could not read.—loop (line 1055)clew/scope.py:1055
61_pruned_dirs_skip_dirWhether a directory entry should be skipped outright by the walk.—loop (line 1055), if (line 1075)clew/scope.py:1075
62_pruned_dirs_descendableSplit one directory's children into those worth walking and those to exclude.—loop (line 1055)clew/scope.py:1085
63_descendable_is_withinWhether a path is the same as, or inside, another.—loop (line 1117)clew/scope.py:1119
64_descendable_skip_dirWhether a directory entry should be skipped outright by the walk.—loop (line 1117)clew/scope.py:1121
65whole_repo_scope_declaration_noteWhere a declaration was looked for, phrased for a fallback reason.REQ-DDB-CONFIG-001—clew/scope.py:763
66whole_repo_scope_ignore_clauseThe scope reason's clause about ignored paths, true to what git actually answered.——clew/scope.py:764
67whole_repo_scope_vendored_clauseName the indexed trees that look vendored, and how to exclude them.——clew/scope.py:765
68whole_repo_scope_declaration_adviceHow to declare an index scope, in this build's own spelling.REQ-DDB-CONFIG-001—clew/scope.py:768
69derive_scopewhole_repo_scopeThe whole repository as one INPUT root, less only what git ignores.REQ-DDB-CONFIG-001—clew/scope.py:698
70build_contextrepo_source_filesEvery C/C++ source file under a repo root, in sorted order.REQ-DDB-CONFIG-001—clew/propose/registry.py:269
71repo_source_files_scandirDirectory entries, or an empty list when the directory is unreadable.—loop (line 134), loop (line 135)clew/propose/scanning.py:135
72repo_source_files_ts_language_forSelect the C, C++, Python or Rust tree-sitter language by extension.—loop (line 134), loop (line 135)clew/propose/scanning.py:139
73_ts_language_for_grammar_availableWhether a routed grammar is actually compiled into the installed substrate.——clew/harvest.py:230
74_grammar_availablehas_languageWhether this substrate build can parse one language.REQ-DDB-PIPE-012—clew/harvest.py:252
75has_languagecompiled_languagesEvery language key this substrate build can parse.REQ-DDB-PIPE-012—clew/substrate.py:61
76_ts_language_for_try_import_ts_moduleThe grammar handle for a substrate: name, or None for any other name.——clew/harvest.py:232
77build_contextscope_membershipBuild the "is this path inside the derived index scope?" predicate.REQ-DDB-CONFIG-001—clew/propose/registry.py:270
78build_contextscan_repoScan the whole repo tree for definitions and accessor-shaped calls.REQ-DDB-CONFIG-001—clew/propose/registry.py:271
79scan_reporelative_toRepo-root-relative POSIX path for an absolute path under the root.REQ-DDB-CONFIG-001loop (line 239)clew/propose/scanning.py:240
80scan_repo_ast_parse_one_fileParse one file with the appropriate tree-sitter grammar.—loop (line 239)clew/propose/scanning.py:241
81_ast_parse_one_file_ts_language_forSelect the C, C++, Python or Rust tree-sitter language by extension.——clew/harvest.py:375
82_ast_parse_one_file_cached_parserMemoized substrate parser for one grammar name.——clew/harvest.py:376
83_cached_parser_try_import_ts_moduleThe grammar handle for a substrate: name, or None for any other name.—if (line 288)clew/harvest.py:288
84_ast_parse_one_file_parseable_fileWhether a file may be parsed: it exists and is not binary.REQ-DDB-PIPE-011—clew/harvest.py:377
85_parseable_filebinary_fileThe binary classification of one file, or None when it is text or unreadable.REQ-DDB-PIPE-011—clew/harvest.py:313
86_ast_parse_one_file_disambiguate_headerRe-parse an erroring ambiguous header as C++ and keep the cleaner tree.—if (line 385)clew/harvest.py:385
87_disambiguate_header_cached_parserMemoized substrate parser for one grammar name.——clew/harvest.py:346
88_disambiguate_header_parse_error_countCount ERROR/MISSING nodes in a parsed tree.——clew/harvest.py:350
89scan_repo_absorb_fileFold one parsed file's definitions and accessor sites into the corpus.—loop (line 239)clew/propose/scanning.py:247
90_absorb_filedefinition_recordBuild the FuncDef for one definition node, or None when unusable.REQ-DDB-CONFIG-001loop (line 268), if (line 270)clew/propose/scanning.py:270
91definition_record_signatureName, parameters and walkable body of one definition node.——clew/propose/astdefs.py:137
92_signature_macro_signatureName and parameters of a preproc_function_def .—if (line 168)clew/propose/astdefs.py:168
93_macro_signaturetext_ofText of a node.REQ-DDB-CONFIG-001—clew/propose/astdefs.py:207
94_macro_signaturetext_ofText of a node.REQ-DDB-CONFIG-001—clew/propose/astdefs.py:211
95_signature_macro_bodyRe-parse a macro's body so its calls become visible.—if (line 168)clew/propose/astdefs.py:169
96_macro_bodytext_ofText of a node.REQ-DDB-CONFIG-001—clew/propose/astdefs.py:230
97_macro_body_macro_parserMemoised C parser used for macro replacement text.——clew/propose/astdefs.py:234
98_signature_function_signatureName, parameters and body of a function_definition .——clew/propose/astdefs.py:171
99_function_signature_function_declaratorDescend a declarator chain to its function_declarator .——clew/propose/astdefs.py:183
100_function_signature_tail_nameThe trailing simple name of a declarator node.——clew/propose/astdefs.py:187
101_tail_name_first_identifierThe first identifier of a subtree in document order.——clew/propose/astdefs.py:296
102_first_identifiertext_ofText of a node.REQ-DDB-CONFIG-001loop (line 317), if (line 320)clew/propose/astdefs.py:320
103_function_signature_param_namesParameter identifiers of a parameter list, in declaration order.——clew/propose/astdefs.py:190
104_param_names_first_identifierThe first identifier of a subtree in document order.——clew/propose/astdefs.py:339
105definition_record_forward_callsCalls inside a body that pass one of the definition's parameters on.——clew/propose/astdefs.py:149
106_forward_calls_forward_callOne call's parameter-forwarding map, or None when it forwards nothing.—loop (line 361)clew/propose/astdefs.py:364
107_forward_callcallee_nameThe callee's text when it is an identifier / qualified identifier.REQ-DDB-CONFIG-001—clew/propose/astdefs.py:382
108_forward_call_bare_identifierThe bare identifier an argument names, unwrapping &/casts/parentheses.——clew/propose/astdefs.py:389
109_bare_identifiertext_ofText of a node.REQ-DDB-CONFIG-001—clew/propose/astdefs.py:410
110_absorb_file_accessor_siteOne accessor-shaped call site, or None when the callee is not one.—loop (line 268), elif (line 274)clew/propose/scanning.py:274
111_accessor_sitecallee_nameThe callee's text when it is an identifier / qualified identifier.REQ-DDB-CONFIG-001—clew/propose/scanning.py:292
112build_contextload_declarationLoad a repo's .clew.yaml , or an empty mapping when it has none.REQ-DDB-CONFIG-001—clew/propose/registry.py:276
113load_declarationload_declaration_locatedA repo's declaration AND the file it was read from.REQ-DDB-CONFIG-001—clew/declaration.py:383
114propose_sectionsEvery section's result, in render order.——clew/propose/registry.py:314
115_sections_blockingWhy the AST detectors cannot run, when they cannot.——clew/propose/registry.py:333
116_blockingast_readable_in_scopeHow many in-scope files a grammar the AST detectors understand handles.REQ-DDB-CONFIG-001—clew/propose/registry.py:362
117ast_readable_in_scope_ts_language_forSelect the C, C++, Python or Rust tree-sitter language by extension.——clew/propose/scanning.py:169
118_blockingis_derivedWhether this scope should override the Doxyfile's INPUT.REQ-DDB-CONFIG-001—clew/propose/registry.py:365
119_sections_blocked_sectionA detector section that could not run, carrying the reason it could not.——clew/propose/registry.py:335
120_sections_hand_sectionA section clew refuses to detect: hand-declared, or already declared.——clew/propose/registry.py:338
121_sections_index_scope_sectionThe report-only index_scope section, plus the no-corpus caveat.——clew/propose/registry.py:339
122_index_scope_sectionreport_not_indexedBuild the report-only index_scope section.REQ-DDB-CONFIG-001—clew/propose/registry.py:430
123report_not_indexedtracked_filesGit-tracked repo-relative paths, or None when git is unavailable.REQ-DDB-CONFIG-001—clew/propose/notindexed.py:270
124tracked_filesgit_argvOne git argv with every command-valued configuration key disarmed.REQ-DDB-CONFIG-001try (line 96)clew/propose/notindexed.py:97
125tracked_filesgit_envThe current environment with git's hook-repository overrides removed.REQ-DDB-CONFIG-001try (line 96)clew/propose/notindexed.py:103
126report_not_indexedcandidate_dirsGroup out-of-scope definitions into candidate directories.REQ-DDB-CONFIG-001—clew/propose/notindexed.py:271
127candidate_dirs_as_dirsConvert the grouping buckets into sorted NotIndexedDir records.——clew/propose/notindexed.py:202
128candidate_dirs… 1 not run————
129report_not_indexed_dir_linesOne report line per candidate directory, with its hazards.——clew/propose/notindexed.py:276
130report_not_indexedcross_section_conflictsWarn when a proposed section's evidence reaches outside the index.REQ-DDB-CONFIG-001—clew/propose/notindexed.py:278
131proposescope_summaryScope and corpus summary for the rendered header.REQ-DDB-CONFIG-001—clew/propose/registry.py:315
132scope_summaryis_derivedWhether this scope should override the Doxyfile's INPUT.REQ-DDB-CONFIG-001—clew/propose/registry.py:489
133scope_summaryast_readable_in_scopeHow many in-scope files a grammar the AST detectors understand handles.REQ-DDB-CONFIG-001—clew/propose/registry.py:494
134proposerender_declarationRender a whole proposal as a commented .clew.yaml draft.REQ-DDB-CONFIG-001—clew/propose/registry.py:322
135render_declaration_headerThe document header: what this is, what it was measured against.——clew/propose/render.py:86
136_header_scope_lineOne-line description of the derived index scope.——clew/propose/render.py:187
137_header_db_lineOne-line description of the index the proposal was measured against.——clew/propose/render.py:188
138_header_wrapWrap prose into comment lines at the document width.——clew/propose/render.py:190
139_header_wrapWrap prose into comment lines at the document width.——clew/propose/render.py:192
140render_declaration_summaryThe section index: one row per section with its status and counts.——clew/propose/render.py:86
141render_declaration_section_blockOne section's whole block: status, evidence, YAML, rejections, notes.—loop (line 87)clew/propose/render.py:88
142_section_block_wrapWrap prose into comment lines at the document width.——clew/propose/render.py:284
143_section_block_checkedThe checked counters as one wrapped line.——clew/propose/render.py:285
144_checked_wrapWrap prose into comment lines at the document width.——clew/propose/render.py:305
145_section_block_entriesThe evidence for every accepted entry, numbered.——clew/propose/render.py:287
146_section_block_yaml_blockThe activatable YAML block for a section, marked with the gutter.——clew/propose/render.py:288
147_section_block_rejectionsEvery refused candidate, with its reason and evidence.——clew/propose/render.py:289
148_rejections_wrapWrap prose into comment lines at the document width.—loop (line 369)clew/propose/render.py:371
149_section_block_notesA section's free-standing notes, wrapped.——clew/propose/render.py:290
150_notes_wrapWrap prose into comment lines at the document width.—loop (line 387)clew/propose/render.py:388
151propose_main_resolve_dbResolve the index to measure candidates against.——clew/propose/command.py:138
152_resolve_dbfind_indexThe existing index for a repository.REQ-DDB-GUARD-010—clew/propose/command.py:206
153find_indexregistered_indexThe database the MCP target registry has allocated for a repository.——clew/indexlocate.py:30
154propose_main_emitWrite the draft to a file or to stdout.——clew/propose/command.py:142
155mainexport_mainclew export entry point.REQ-DDB-CLI-001if (line 4002)clew/cli.py:4006
156export_main_parserclew export 's argument parser.——clew/export_command.py:177
157export_mainstated_declarationThe declaration mapping an index's recorded tier-1 statements reproduce.REQ-DDB-CONFIG-001—clew/export_command.py:183
158maininit_mainRun clew init .REQ-DDB-CLI-001if (line 4008)clew/cli.py:4012
159init_mainbuild_parserBuild the clew init argument parser.REQ-DDB-CLI-001 REQ-DDB-CLI-002—clew/init_command.py:705
160init_maindiagnoseRun every doctor check for a repo and scope.REQ-DDB-CLI-001 REQ-DDB-CLI-002—clew/init_command.py:707
161diagnose_check_client_configWhether the user-scope config location can be established on this machine.——clew/init_command.py:501
162_check_client_configglobal_config_evidenceThe two paths that evidence a Claude Code install for this user.REQ-DDB-MCP-001—clew/init_command.py:202
163global_config_evidenceclaude_state_dirDirectory Claude Code keeps its per-user state in.REQ-DDB-MCP-001—clew/mcp_config.py:234
164global_config_evidenceglobal_config_pathThe user-scoped Claude Code config file.REQ-DDB-MCP-001—clew/mcp_config.py:234
165_check_client_configglobal_config_availableWhether a user-level Claude Code config can be written with confidence.REQ-DDB-MCP-001—clew/init_command.py:203
166global_config_availableglobal_config_evidenceThe two paths that evidence a Claude Code install for this user.REQ-DDB-MCP-001—clew/mcp_config.py:257
167diagnose_check_server_commandWhether the MCP server console script can be located.——clew/init_command.py:502
168_check_server_commandresolve_server_commandDecide the command string to record for this machine.REQ-DDB-MCP-001—clew/init_command.py:226
169resolve_server_command_locate_scriptLocate the MCP server console script.——clew/mcp_config.py:380
170resolve_server_command_repo_relativeExpress a path relative to a repo root, when it is inside it.——clew/mcp_config.py:389
171resolve_server_command_path_or_nameChoose between the bare console-script name and an absolute path.——clew/mcp_config.py:392
172diagnose_check_mcp_sdkWhether the SDK module the server imports can actually be imported.——clew/init_command.py:503
173diagnose_check_doxygenWhether the external doxygen binary is available.——clew/init_command.py:504
174_check_doxygenuses_rustdocWhether repo_root 's build routes through rustdoc instead of doxygen.——clew/init_command.py:350
175uses_rustdocdiscover_doxyfileDiscover a repo's own Doxyfile (declaration-driven, never hardcoded).REQ-DDB-INDEX-001—clew/rustdoc.py:150
176uses_rustdochas_cargo_manifestTrue when repo_root is a cargo package or workspace.——clew/rustdoc.py:150
177_check_doxygen_needs_doxygenWhether any file in the repo is one doxygen would index.REQ-DDB-PIPE-012—clew/init_command.py:358
178_needs_doxygenclaimsWhether a repo-relative path is one this front end claims.—loop (line 312), loop (line 314)clew/init_command.py:318
179_check_doxygendoxygen_supports_sqlite3Whether the doxygen on PATH was BUILT with sqlite3 output support.REQ-DDB-CLI-002—clew/init_command.py:380
180doxygen_supports_sqlite3clean_subprocess_envos.environ + NO_COLOR/TERM=dumb so pipeline subprocesses emit no ANSI.REQ-DDB-PIPE-006try (line 1304)clew/doxygen.py:1309
181diagnose_check_indexableWhether this repo can be indexed at all.——clew/init_command.py:505
182_check_indexablediscover_doxyfileDiscover a repo's own Doxyfile (declaration-driven, never hardcoded).REQ-DDB-INDEX-001—clew/init_command.py:422
183_check_indexablederive_scopeResolve the index scope: a declared index_scope, else the whole repository.REQ-DDB-CONFIG-001—clew/init_command.py:443
184diagnose_check_declarationWhether the repo declares its own indexing conventions.——clew/init_command.py:506
185init_main_format_checkRender one check as a single report line.—loop (line 710)clew/init_command.py:711
186init_main_registerCompute and perform the registration, given the diagnostics.——clew/init_command.py:712
187_register_blockingThe blocking failures among a set of checks.——clew/init_command.py:676
188_registerresolve_server_commandDecide the command string to record for this machine.REQ-DDB-MCP-001—clew/init_command.py:680
189_registerserver_entryThe server entry this tool writes.REQ-DDB-MCP-001—clew/init_command.py:681
190_registerconfig_pathThe config file a given scope writes to.REQ-DDB-MCP-001try (line 683)clew/init_command.py:683
191config_pathglobal_config_pathThe user-scoped Claude Code config file.REQ-DDB-MCP-001—clew/mcp_config.py:275
192_registerplan_mergePlan the merge of this server's entry into a config file.REQ-DDB-MCP-001try (line 683)clew/init_command.py:683
193plan_mergeload_documentRead a config file into a document plus its original text.REQ-DDB-MCP-001—clew/mcp_config.py:545
194plan_merge_classifyClassify what writing this entry would do.——clew/mcp_config.py:552
195plan_merge_indent_ofIndentation to re-serialise with, taken from the file itself.——clew/mcp_config.py:557
196plan_merge_entry_diffUnified diff between the existing entry and the proposed one.——clew/mcp_config.py:565
197_register_executeApply a plan subject to the conflict rule, and pick the exit code.——clew/init_command.py:687
198_execute_print_conflictPrint the refusal for a conflicting existing entry.—if (line 638)clew/init_command.py:638
199_execute_emitEmit a plan: print it under dry-run, otherwise write it.——clew/init_command.py:640
200_emit_print_merge_previewPrint what a dry run would change, scoped to this server's entry.—if (line 610)clew/init_command.py:610
201_emitapply_planWrite a planned edit to disk atomically, keeping a backup.REQ-DDB-CLI-002 REQ-DDB-MCP-001—clew/init_command.py:615
202_execute_print_next_stepsTell the user what happens next.——clew/init_command.py:641
203mainquery_mainParse arguments, answer, and print JSON.REQ-DDB-QUERY-014if (line 4018)clew/cli.py:4020
204query_main_parserThe argument parser for clew query .——clew/query_command.py:149
205query_main_locateResolve which database answers and which working tree bodies come from.——clew/query_command.py:150
206_locatetarget_forAllocate the Target record for a repo path (pure; no I/O).REQ-DDB-MCP-001—clew/query_command.py:102
207target_for_safe_index_nameReduce a declared sub-index name to something safe as a directory component.—if (line 352)clew/mcp_server/state.py:352
208target_forstate_homePer-user state root for built databases and the registry.REQ-DDB-MCP-001—clew/mcp_server/state.py:353
209query_main_payloadBuild the payload the parsed request asks for.—try (line 155)clew/query_command.py:155
210_payloadexport_searchExport one corpus's search or inventory, as the MCP tool answers it.REQ-DDB-QUERY-014if (line 118)clew/query_command.py:118
211export_searchcorpus_payloadBuild one corpus's reply through the given list envelope.REQ-DDB-QUERY-014—clew/query/export.py:592
212corpus_payload_symbol_corpusThe symbols corpus, ranked, with its limit disclosed.——clew/query/export.py:551
213_symbol_corpussearch_countedsearch , plus how many rows matched before the limit cut them.REQ-DDB-QUERY-001—clew/query/export.py:429
214search_countedconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/symbols.py:1809
215search_counted_memberdef_corporaRanked candidates from EVERY searched memberdef corpus, in one list.——clew/query/symbols.py:1811
216_memberdef_corpora_expansion_sqlSQL for a macro's expansion, degrading to '' on a schema without the column.—loop (line 1576)clew/query/symbols.py:1577
217_expansion_sqlhas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/symbols.py:1544
218has_columnstable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/_common.py:131
219_memberdef_corpora_memberdef_candidatesRanked memberdef candidates of one kind whose name, brief, prose or FILE PATH carries every token.—loop (line 1576)clew/query/symbols.py:1578
220_memberdef_candidatestable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/symbols.py:1453
221_memberdef_candidatesdocumented_firstThe ORDER BY fragment that makes doxygen's own row win a name collapse.REQ-DDB-INDEX-004—clew/query/symbols.py:1474
222documented_firstrecords_provenanceWhether this index records where its memberdef rows came from.REQ-DDB-INDEX-004—clew/query/_common.py:608
223records_provenancehas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/_common.py:540
224_memberdef_candidatessymbol_provenanceThe provenance a symbol row should REPORT, or None when it says nothing.REQ-DDB-INDEX-004loop (line 1494), if (line 1497)clew/query/symbols.py:1497
225symbol_provenancerecords_provenanceWhether this index records where its memberdef rows came from.REQ-DDB-INDEX-004—clew/query/_common.py:572
226_memberdef_candidatesself_declared_pathsThe exact paths of every self-declared generated file in an index.——clew/query/symbols.py:1505
227_memberdef_candidates_one_lineCollapse whitespace and line continuations, then trim to brief length.—loop (line 1507)clew/query/symbols.py:1508
228_one_line_doc_briefShorten a file's documentation to a brief, at a word boundary.——clew/query/symbols.py:1402
229_memberdef_candidatesstrip_xmlStrip doxygen's XML-ish markup from a description column.REQ-DDB-QUERY-003loop (line 1507)clew/query/symbols.py:1508
230_memberdef_candidates_search_rankRank one candidate against the query tokens (higher is better).—loop (line 1507)clew/query/symbols.py:1512
231_memberdef_candidatessymbol_provenanceThe provenance a symbol row should REPORT, or None when it says nothing.REQ-DDB-INDEX-004loop (line 1507)clew/query/symbols.py:1520
232search_counted_class_candidatesRanked compound candidates whose name or brief carries every token.——clew/query/symbols.py:1812
233_class_candidates_search_rankRank one candidate against the query tokens (higher is better).——clew/query/symbols.py:1658
234_class_candidatesclass_rowsCompound rows matching EVERY token, or [] when compounds are unindexed.REQ-DDB-QUERY-007—clew/query/symbols.py:1663
235class_rowstable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/corpus.py:1099
236class_rowsstrip_xmlStrip doxygen's XML-ish markup from a description column.REQ-DDB-QUERY-003—clew/query/corpus.py:1115
237search_counted_config_candidatesRanked configuration-symbol candidates whose name carries every token.——clew/query/symbols.py:1813
238_config_candidates_search_rankRank one candidate against the query tokens (higher is better).——clew/query/symbols.py:1691
239_config_candidatesgate_symbol_rowsGating-symbol rows matching EVERY token, with their gate-site counts.REQ-DDB-QUERY-007—clew/query/symbols.py:1701
240gate_symbol_rowstable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/corpus.py:1155
241gate_symbol_rowshas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/corpus.py:1157
242search_counted_file_candidatesRanked file candidates whose path or file-level documentation carries every token.——clew/query/symbols.py:1814
243_file_candidatesself_declared_pathsThe exact paths of every self-declared generated file in an index.——clew/query/symbols.py:1616
244_file_candidates_search_rankRank one candidate against the query tokens (higher is better).——clew/query/symbols.py:1620
245_file_candidates_doc_briefShorten a file's documentation to a brief, at a word boundary.——clew/query/symbols.py:1629
246_file_candidatesfile_doc_rowsFile-level documentation rows matching EVERY token, or [] when unindexed.REQ-DDB-QUERY-007—clew/query/symbols.py:1633
247file_doc_rowstable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/corpus.py:618
248_file_candidatesundocumented_path_rowsRegistered paths matching EVERY token that carry no file-level documentation.REQ-DDB-QUERY-007—clew/query/symbols.py:1633
249undocumented_path_rowstable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/corpus.py:659
250undocumented_path_rowshas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/corpus.py:662
251undocumented_path_rowstable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/corpus.py:670
252_symbol_corpussearch_emptinessNote and payload for an empty search .REQ-DDB-QUERY-007—clew/query/export.py:431
253search_emptinessindex_scopeA has_gate_layer helper lived here for gh#393 and is deliberately gone with the verdict change it existed to serve.REQ-DDB-QUERY-007—clew/query/emptiness.py:327
254index_scopeconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/corpus.py:812
255index_scope_scope_provenanceThe scope.——clew/query/corpus.py:813
256_scope_provenancetable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/corpus.py:899
257index_scope_indexed_pathsEvery indexed, non-synthetic file path.——clew/query/corpus.py:814
258_indexed_pathstable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/corpus.py:915
259index_scope_extensionsDistinct dot-prefixed extensions of a path list.——clew/query/corpus.py:821
260index_scope_not_indexedThe build's record of file types it had in scope and holds no rows for.REQ-DDB-QUERY-007—clew/query/corpus.py:822
261search_emptiness_scope_payloadThe scope block for a per-query reply: the covered shape, minus the derivation.——clew/query/emptiness.py:328
262_scope_payloadoneSerialize one R2 dataclass (an ENVELOPE) to its JSON wire form.REQ-DDB-QUERY-001—clew/query/emptiness.py:232
263one_listedasdict dict_factory that turns tuple-valued fields into lists.——clew/wire.py:167
264one_prune_rowsPrune absent fields from ROWS (dicts inside a list), leaving the envelope whole.——clew/wire.py:167
265_prune_rows_prune_rowsPrune absent fields from ROWS (dicts inside a list), leaving the envelope whole.—if (line 148)clew/wire.py:148
266_prune_rows_prune_rowsPrune absent fields from ROWS (dicts inside a list), leaving the envelope whole.—if (line 150)clew/wire.py:150
267_prune_rows_pruned_rowOne row with its absent fields removed, recursing into nested rows.—if (line 150)clew/wire.py:150
268_pruned_row_absentTrue when a value carries nothing a consumer could read.——clew/wire.py:110
269_pruned_row_prune_rowsPrune absent fields from ROWS (dicts inside a list), leaving the envelope whole.——clew/wire.py:110
270search_emptinessunsearched_corporaRows a zero-result query WOULD have matched in a corpus search does not read.REQ-DDB-QUERY-007—clew/query/emptiness.py:329
271unsearched_corporaconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/symbols.py:1963
272unsearched_corporatable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/symbols.py:1965
273unsearched_corpora_unread_kind_countsPer-kind match counts for the kinds of one table that search does not read.—if (line 1966)clew/query/symbols.py:1966
274unsearched_corporatable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/symbols.py:1967
275unsearched_corpora_unread_kind_countsPer-kind match counts for the kinds of one table that search does not read.—if (line 1968)clew/query/symbols.py:1969
276search_emptinesstoken_hit_countsHow many symbols and files each token matches ON ITS OWN.REQ-DDB-QUERY-007if (line 333)clew/query/emptiness.py:333
277token_hit_countsconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/symbols.py:1855
278token_hit_counts_one_token_countIndependent match count for one token across both search corpora.—loop (line 1856)clew/query/symbols.py:1857
279_one_token_counttable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/symbols.py:1901
280_one_token_count_expansion_sqlSQL for a macro's expansion, degrading to '' on a schema without the column.—if (line 1902)clew/query/symbols.py:1908
281_one_token_countclass_rowsCompound rows matching EVERY token, or [] when compounds are unindexed.REQ-DDB-QUERY-007—clew/query/symbols.py:1911
282_one_token_countfile_doc_rowsFile-level documentation rows matching EVERY token, or [] when unindexed.REQ-DDB-QUERY-007—clew/query/symbols.py:1911
283search_emptiness_conjunction_noteNote for a zero-result multi-token search, naming what emptied it.—if (line 333)clew/query/emptiness.py:335
284_conjunction_note_render_countsRender per-token hit counts as token=count prose.——clew/query/emptiness.py:293
285search_emptiness_scope_sentenceOne short sentence naming the indexed scope, without its derivation.—if (line 333)clew/query/emptiness.py:335
286search_emptiness_unread_noteThe sentence naming rows an unread corpus holds, or '' when there are none.—if (line 333)clew/query/emptiness.py:336
287search_emptiness_verdictGrade a single-token empty search: definitive only when nothing unread matched.——clew/query/emptiness.py:337
288_verdict_unread_noteThe sentence naming rows an unread corpus holds, or '' when there are none.—if (line 399)clew/query/emptiness.py:399
289_verdicthas_file_docsWhether this index carries a file-level documentation corpus at all.REQ-DDB-QUERY-007—clew/query/emptiness.py:400
290has_file_docsconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/corpus.py:778
291has_file_docstable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/corpus.py:779
292search_emptiness_scope_sentenceOne short sentence naming the indexed scope, without its derivation.——clew/query/emptiness.py:339
293_symbol_corpuswith_limit_disclosureSay that a search was cut by its limit, and how many rows matched.REQ-DDB-QUERY-014—clew/query/export.py:433
294corpus_payload_prose_corpusThe prose corpus: the repo's markdown and reStructuredText, full-text.——clew/query/export.py:552
295_prose_corpussearch_prose_gradedFull-text search over the ingested prose, widening to OR when the AND is empty.REQ-DDB-QUERY-001—clew/query/export.py:368
296search_prose_graded_query_tokensThe query's tokens, stripped of FTS5 operator syntax.——clew/query/corpus.py:1007
297search_prose_gradedconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/corpus.py:1008
298search_prose_gradedtable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/corpus.py:1011
299search_prose_graded_fts_matchRun one FTS5 MATCH, retrying the raw text as a quoted phrase.—if (line 1012)clew/query/corpus.py:1012
300search_prose_graded_fts_matchRun one FTS5 MATCH, retrying the raw text as a quoted phrase.—if (line 1012), if (line 1014)clew/query/corpus.py:1015
301search_prose_gradedstrip_xmlStrip doxygen's XML-ish markup from a description column.REQ-DDB-QUERY-003—clew/query/corpus.py:1025
302search_prose_gradedlist———clew/query/corpus.py:1026
303search_prose_gradedmember_doc_rowsMember documentation rows matching EVERY token, or [] when unavailable.REQ-DDB-QUERY-007—clew/query/corpus.py:1026
304member_doc_rowstable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/corpus.py:717
305member_doc_rowshas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/corpus.py:720
306search_prose_graded_collapseCollapse whitespace runs in a prose snippet (markup is NOT stripped).——clew/query/corpus.py:1032
307_prose_corpusprose_emptinessNote and payload for an empty search(corpus='prose )`.REQ-DDB-QUERY-007—clew/query/export.py:370
308prose_emptinesshas_prose_corpusWhether this index carries an ingested markdown corpus at all.REQ-DDB-QUERY-007—clew/query/emptiness.py:469
309has_prose_corpusconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/corpus.py:759
310has_prose_corpustable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/corpus.py:760
311prose_emptinesstoken_hit_countsHow many symbols and files each token matches ON ITS OWN.REQ-DDB-QUERY-007—clew/query/emptiness.py:471
312prose_emptiness_render_countsRender per-token hit counts as token=count prose.—if (line 474)clew/query/emptiness.py:477
313corpus_payload_code_corpusThe code corpus: functions whose body contains every word.——clew/query/export.py:553
314_code_corpussearch_codeVersion 5: a query word also matches as a prefix ( MBEDTLS_ERR_ finds its family).——clew/query/export.py:328
315search_code_has_tableWhether a table exists.——clew/code_text.py:415
316search_code_match_queryThe FTS expression for a word list: each word whole (stemmed) or as a prefix.——clew/code_text.py:425
317search_code_has_tableWhether a table exists.——clew/code_text.py:428
318search_code_has_tableWhether a table exists.——clew/code_text.py:433
319search_code_first_matchVersion 2: finds the snippet line by stem, as the match was made.—loop (line 448)clew/code_text.py:449
320search_code_has_tableWhether a table exists.——clew/code_text.py:463
321search_code_file_hitsFiles whose file-scope text holds every word, as kind: "file" hits.—if (line 464)clew/code_text.py:464
322_file_hits_first_matchVersion 2: finds the snippet line by stem, as the match was made.—loop (line 538)clew/code_text.py:539
323_code_corpuscount_codeHow many units search_code would return with no limit.REQ-DDB-QUERY-014—clew/query/export.py:329
324count_code_has_tableWhether a table exists.——clew/code_text.py:496
325count_code_match_queryThe FTS expression for a word list: each word whole (stemmed) or as a prefix.——clew/code_text.py:498
326count_code_has_tableWhether a table exists.——clew/code_text.py:505
327_code_corpuswith_limit_disclosureSay that a search was cut by its limit, and how many rows matched.REQ-DDB-QUERY-014—clew/query/export.py:340
328corpus_payload_files_corpusThe file corpus: a directory rollup, or a glob's matching files with that context.——clew/query/export.py:554
329_files_corpusfiles_contextThe context every files reply carries, whatever was asked.REQ-DDB-QUERY-014—clew/query/export.py:502
330files_contextdirectory_rollupThe indexed file set rolled up by top-level directory.REQ-DDB-QUERY-002—clew/query/export.py:473
331directory_rollupconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/corpus.py:1486
332directory_rolluphas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/corpus.py:1488
333directory_rolluphas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/corpus.py:1492
334directory_rolluprollup_meaningSay what the per-directory counts are, and what they are NOT.REQ-DDB-QUERY-002—clew/query/corpus.py:1518
335files_contextoneSerialize one R2 dataclass (an ENVELOPE) to its JSON wire form.REQ-DDB-QUERY-001—clew/query/export.py:473
336files_contextdoc_scopeWhat the repository DECLARES about its own doc build and its vendored trees.REQ-DDB-QUERY-007—clew/query/export.py:480
337doc_scopeconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/corpus.py:1559
338doc_scope_scope_provenanceThe scope.——clew/query/corpus.py:1560
339_files_corpusdirectory_rollupThe indexed file set rolled up by top-level directory.REQ-DDB-QUERY-002if (line 504)clew/query/export.py:505
340_files_corpusoneSerialize one R2 dataclass (an ENVELOPE) to its JSON wire form.REQ-DDB-QUERY-001if (line 504)clew/query/export.py:505
341_files_corpuslist_filesThe indexed source files, with documented-symbol counts.REQ-DDB-QUERY-001—clew/query/export.py:509
342list_filesconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/corpus.py:158
343list_fileshas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/corpus.py:163
344list_filestable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/corpus.py:173
345list_files_matchesWhether a repo-relative path matches a * -glob pattern.——clew/query/corpus.py:186
346_files_corpusfiles_missThe note for a glob that matched no indexed file.REQ-DDB-QUERY-014—clew/query/export.py:512
347corpus_payloadlock_rosterEvery lock in the index, with the mutex count, the origin split and the nestings.REQ-DDB-QUERY-001 REQ-DDB-QUERY-011—clew/query/export.py:555
348lock_rosterconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/locks.py:603
349lock_rostertable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/locks.py:604
350lock_roster_entriesBuild the inventory rows from the roster SQL result.——clew/query/locks.py:614
351lock_roster_roster_sqlThe roster SQL, with the external column selected only when the index carries it.——clew/query/locks.py:614
352_roster_sqlhas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/locks.py:411
353lock_rosternestings_onEvery outer→inner lock pair observed across a call, on an open connection.REQ-DDB-SCHEMA-011—clew/query/locks.py:615
354nestings_on_layer_presentTrue when both lock-layer tables the accessors need are present.——clew/query/locks.py:304
355_layer_presenttable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/locks.py:85
356nestings_ontable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/locks.py:304
357lock_roster_nesting_pairsCollapse nesting SITES onto nesting IDENTITIES, keeping the strongest exemplar.——clew/query/locks.py:616
358lock_roster_origin_per_mutexOne origin per DISTINCT mutex, so the split matches the headline count.——clew/query/locks.py:622
359lock_roster_object_routeRoute a caller to the lock OBJECTS this layer cannot enumerate.——clew/query/locks.py:639
360lock_roster_nesting_meaningState the nesting count, the pair semantics and the evidence weakness in one sentence.——clew/query/locks.py:643
361corpus_payloadoneSerialize one R2 dataclass (an ENVELOPE) to its JSON wire form.REQ-DDB-QUERY-001—clew/query/export.py:555
362corpus_payloadoneSerialize one R2 dataclass (an ENVELOPE) to its JSON wire form.REQ-DDB-QUERY-001—clew/query/export.py:556
363corpus_payloadthread_rosterEvery thread in the DB, with member counts and the origin split.REQ-DDB-QUERY-001 REQ-DDB-QUERY-011—clew/query/export.py:556
364thread_rosterconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/symbols.py:1144
365thread_rostertable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/symbols.py:1145
366thread_rosterhas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/symbols.py:1149
367thread_roster_thread_columnsThe threads column list this index can actually supply.——clew/query/symbols.py:1151
368_thread_columnshas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/symbols.py:942
369_thread_columnshas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/symbols.py:944
370_thread_columnshas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/symbols.py:946
371thread_roster_build_threadAssemble a Thread dataclass from a threads row (+ member count).——clew/query/symbols.py:1153
372_build_threadname_ofrowid→function name (DISTINCT-by-name is implicit: rowid is unique).REQ-DDB-QUERY-003—clew/query/symbols.py:970
373_build_threadtable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/symbols.py:976
374_build_thread_spawn_attributionThe spawning file's repo-relative path and its external root.——clew/query/symbols.py:979
375_spawn_attributionhas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/symbols.py:1017
376thread_roster_thread_originsOne origin per thread, keyed on its SPAWN SITE.——clew/query/symbols.py:1154
377thread_roster_roster_meaningThe sentence stating both the count and whose threads it counts.——clew/query/symbols.py:1158
378corpus_payload_config_found_on_the_wireRe-key a config payload so found means what it means everywhere else.——clew/query/export.py:557
379_config_found_on_the_wire_compact_gate_panelState a gate panel's invariant fields once instead of once per row.——clew/query/payload.py:795
380corpus_payloadkconfig_spaceA repo's configuration space: its symbols, their groups, and what they gate.REQ-DDB-QUERY-006—clew/query/export.py:558
381kconfig_spaceconnectYield an open sqlite connection; close it only if we opened it.REQ-DDB-QUERY-001—clew/query/kconfig.py:477
382kconfig_space_metaEvery kconfig.——clew/query/kconfig.py:478
383_metatable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/kconfig.py:213
384kconfig_space_symbolsThe symbol rows, each with the group it belongs to and its gate count.——clew/query/kconfig.py:479
385_symbolstable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/kconfig.py:256
386kconfig_spacetable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/kconfig.py:479
387kconfig_space_gate_layer_stateWhat the GATE HARVEST measured, independently of whether a Kconfig exists.REQ-DDB-QUERY-006—clew/query/kconfig.py:480
388_gate_layer_statetable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/kconfig.py:446
389kconfig_space_gate_symbol_namesThe distinct symbols that gate code, optionally filtered by name.REQ-DDB-QUERY-006—clew/query/kconfig.py:484
390_gate_symbol_namestable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/kconfig.py:370
391kconfig_space_gatesThe gating sites recorded for the whole repo, or for one symbol.——clew/query/kconfig.py:490
392_gatestable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/kconfig.py:315
393_gates_gate_columnsThe SELECT list that builds a KconfigGate positionally.——clew/query/kconfig.py:317
394_gate_columnshas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/kconfig.py:288
395_gate_columnshas_columnsTrue when a table exists AND carries every named column.REQ-DDB-QUERY-003—clew/query/kconfig.py:289
396_gates_with_defaultsAttach each gating macro's shipped default to its gate.——clew/query/kconfig.py:330
397_with_defaultstable_existsTrue when a table exists (partial/mini DBs lack later layers).REQ-DDB-QUERY-003—clew/query/kconfig.py:656
398_with_defaults_defaults_for_macrosRead config_defaults rows for a macro list, in bounded chunks.—loop (line 660)clew/query/kconfig.py:660
399_with_defaultsdecided_defaultThe default state one macro's config rows decide, with the site that decides it.REQ-DDB-QUERY-013—clew/query/kconfig.py:667
400decided_defaultis_shipped_configWhether a config-header path is the repository's own shipped default.REQ-DDB-QUERY-013—clew/query/_common.py:1026

Functions

269 functions

This diagram as Mermaid · PlantUML · Graphviz DOT

Quick views

269 functions, each with its quick view