main (scripts/stage_probe.py)¶
Overview · 37 steps, 7 lanes
All 37 steps
| # | caller | callee | what it does | requirements | call site |
|---|---|---|---|---|---|
| 1 | main | db_status | Freshness/identity report for one target's database. | scripts/stage_probe.py:121 | |
| 2 | 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 |
| 3 | _options_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | clew/mcp_server/state.py:1062 |
| 4 | _meta_section | meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | clew/mcp_server/state.py:916 |
| 5 | 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 |
| 6 | 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 |
| 7 | db_status | _source_drift | Count indexed source files modified since the database was built. | — | clew/mcp_server/state.py:1185 |
| 8 | db_status | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | clew/mcp_server/state.py:1189 |
| 9 | db_status | _bounded_scope_meta | Bound the stored scope strings a status reply carries. | — | clew/mcp_server/state.py:1207 |
| 10 | db_status | _scope_meta | The scope decision recorded at build time, if any. | REQ-DDB-MCP-001 | clew/mcp_server/state.py:1207 |
| 11 | _scope_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | clew/mcp_server/state.py:936 |
| 12 | db_status | _coverage_meta | The index-coverage measurement recorded at build time, if any. | REQ-DDB-INDEX-003 | clew/mcp_server/state.py:1209 |
| 13 | _coverage_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | clew/mcp_server/state.py:1009 |
| 14 | 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 |
| 15 | _refresh_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | clew/mcp_server/state.py:1037 |
| 16 | db_status | list | — | — | clew/mcp_server/state.py:1222 |
| 17 | list | link | — | — | clew/wiki/themes/clew/static/web.js:85 |
| 18 | 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 |
| 19 | _diagnostics_meta | _meta_section | One namespaced build_meta section, read without its key prefix. | REQ-DDB-MCP-001 | clew/mcp_server/state.py:1091 |
| 20 | 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 |
| 21 | _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 |
| 22 | db_status | code_identity | The code identity the process is actually running. | REQ-DDB-MCP-004 | clew/mcp_server/state.py:1237 |
| 23 | code_identity | source_fingerprint | Fingerprint the package source's identity on disk. | REQ-DDB-MCP-004 | clew/mcp_server/freshness.py:244 |
| 24 | source_fingerprint | package_source_root | The installed package's source directory. | — | clew/mcp_server/freshness.py:168 |
| 25 | code_identity | package_version | The package version this process is running. | — | clew/mcp_server/freshness.py:247 |
| 26 | 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 |
| 27 | notices | code_identity | The code identity the process is actually running. | REQ-DDB-MCP-004 | clew/mcp_server/freshness.py:669 |
| 28 | notices | _data_notice | The data-axis notice, when the sources have drifted. | — | clew/mcp_server/freshness.py:671 |
| 29 | _data_notice | _cost_clause | Human phrasing for what a refresh of this target last cost. | — | clew/mcp_server/freshness.py:405 |
| 30 | _cost_clause | _humanise_ms | Spell a millisecond count the way a reader would say it. | — | clew/mcp_server/freshness.py:325 |
| 31 | _cost_clause | _dominant_clause | Name the stage that dominated a refresh, from that refresh's own timings. | — | clew/mcp_server/freshness.py:342 |
| 32 | notices | _schema_notice | The schema-axis notice, when the stamped and expected versions disagree. | — | clew/mcp_server/freshness.py:672 |
| 33 | notices | _partial_notice | The partial-index notice, when doxygen failed and the C/C++ layer is missing. | — | clew/mcp_server/freshness.py:673 |
| 34 | notices | _derived_notice | The derived-axis notice, while a fast in-place refresh awaits its full refresh. | — | clew/mcp_server/freshness.py:674 |
| 35 | notices | _code_notice | The code-axis notice, when the source moved under a running process. | — | clew/mcp_server/freshness.py:675 |
| 36 | main | _counts | Count the rows of interest for a stage, before and after. | — | scripts/stage_probe.py:143 |
| 37 | main | _counts | Count the rows of interest for a stage, before and after. | — | scripts/stage_probe.py:151 |
Functions¶
30 functions
_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_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_scope_metaclew/mcp_server/state.py_source_driftclew/mcp_server/state.pydb_statusclew/mcp_server/state.pymeta_sectionclew/query/_common.pyread_build_signatureclew/signature.pystated_optionsclew/tiers.pylinkclew/wiki/themes/clew/static/web.jslistclew/wiki/themes/clew/static/web.js_countsscripts/stage_probe.pymainscripts/stage_probe.py
This diagram as Mermaid · PlantUML · Graphviz DOT
Quick views¶
30 functions, each with its quick view
- _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_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
- _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
- 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
- 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.
- _counts
Count the rows of interest for a stage, before and after.
Map
Show it on the map, in its block's wedge.
Block
Tooling: scripts is the block holding
scripts/stage_probe.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- main
Copy an index, re-run one stage against the copy, and print the diff.
Map
Show it on the map, in its block's wedge.
Block
Tooling: scripts is the block holding
scripts/stage_probe.py.Flow
Replay
No 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.