Repository navigation
Description
Re-measured with cora 0.21.1 and closed (2026-11-17). The findings below were accepted and fixed in cora-code 0.21.0 (changelog items #714, #715, #716, #717, #743, #746, #750). Same commands on tole
developat99dca90(175,942 lines of Rust, 41% more than the first measurement; the release binary with the bundled code model; index in about 3 s, 8,123 symbols from 412 files, 20.8 MB database, 0 errors):
Command 0.20.0 ( 8c05cd1)0.21.1 ( 99dca90)callers WebFetchTool"No callers found" 2 callers, correct ( tool_roster.rs:516,tool_specs.rs:82)callers WebSearchTool::from_envmerged with every from_env2 callers, correct impact WebSearchTool"No impact found" 46 affected callers from_env(bare name)16 (merged) 19 (still merged by bare name; impact from_env: 684 affected, was 507)trace from_lookup --direction incoming --depth 3121 nodes 8 nodes affected crates/tole-core/src/web.rs118 test files 5 test files, each with the type-resolved edge path dead-code944 symbols (913 test functions) 20 symbols; tool_kindandapproval_config_option(called insidejson!andvec!) are no longer reportedexplore fetch50 matches, mostly noise "Showing 8 of 24 symbols", ranked, with a count explore web_fetchthe four FETCH_*_ENVconstants"No symbols found" (it matches symbol names only now; --docsalso matches signatures)brain "how does web_search pick its backend and read env"20 results, none relevant ( signals=vector)20 results, the top four are the SEARCH_*_ENVconstants ofweb.rs,WebSearchToolis in the list (signals=fts,vector); some noise remains (env/readhelpers in tests)query "dispatch -> *"50 callees including std names still 50 callees, std names such as contextandcurrent_dirstill shownquery "WebFetchTool -> *"nothing nothing (unchanged) archtwo modules ( crates,evals)grouped by crate and module (for example tole-cli, 4,046 symbols, thenconfig::apply,plugin::cmd_tests, ...)routes"No routes detected" "No routes detected" (expected: hand-written HTTP routing) Still true, so keep verifying with grep: calls by a bare function name are merged (
from_env), thequerycallee list still includes std method names and is capped at 50, and thedead-codelist was not checked symbol by symbol. If one of these matters, file it incodecoradev/cora-code. The raw output of this run is in the session notes, not attached.
What this is
A measured evaluation of cora index | explore | brain | callers | impact | trace | affected | dead-code | query | arch | routes (cora 0.20.0) on tole develop at 8c05cd1 (about 124,600 lines of Rust), written down so the findings can be optimised in cora-code and re-measured. A second data point comes from an agent that used the same tools on a real task (adding a feature around web.rs and tool_roster.rs). This is a note first; it can be moved to cora-code when ready.
Takeaways (0.20.0)
- Useful:
indexplusexplorepluscallerson distinctive names, as a quick pointer. - Not reliable in Rust at the time:
impact,affected,dead-code,trace. Worth optimising in cora-code, in this order: (1) resolve calls by type-qualified path anduseimports instead of the bare name; (2) parse macro bodies (json!,vec!,format!,matches!,assert!); (3) skip#[test]and#[cfg(test)]items indead-codeby default, treat trait impls and librarypubitems as live; (4) rankexploreby exact match first and show a count when truncated; (5) drop std method names fromqueryoutput or add a flag; (6) makeaffectedfollow only type-resolved edges; (7)brain: use a code embedding model; (8)arch: group by crate and module path.
How to reproduce
git checkout <commit> && cora index
cora callers from_env ; cora callers WebFetchTool ; cora impact from_env
cora affected crates/tole-core/src/web.rs | wc -l
cora dead-code | grep -E "tool_kind|approval_config_option"
cora brain "how does web_search pick its backend and read env"
Activity
ajianaz commentedon Nov 13, 2026
The optimisation items from this note are now filed in cora-code:
Type::methodandusepaths are not resolved (callers, impact, trace, affected inflate or miss) cora-code#714: calls resolve by bare function name (type-qualified andusepaths are not resolved)json!,vec!,format!,matches!,assert!) are not indexed;dead-codereports live functions cora-code#715: calls inside macro bodies (json!,vec!, ...) are not indexed, sodead-codereports live functionsdead-codeshould skip tests, trait impls and public library items by default;affectedshould follow type-resolved edges only cora-code#716:dead-codeshould skip tests, trait impls and public library items;affectedshould follow type-resolved edges onlyexploreexact matches first, drop std-method noise fromquery, check whybrainreturns unrelated vector hits, grouparchbelow the top directory cora-code#717:exploreranking,querystd-method noise,brainunrelated vector hits,archgranularityThis issue stays as the measurement record: re-run the table after each fix and keep the numbers here.
Generated by Claude Code
docs: say cora impact and affected are noisy on Rust and list tole-tui
ci(cora): scope index-breaking-change out of binary-only modules (mov…
refactor(cli): move config apply tests out of src into an integration…
feat(tools): read-only history search over the session's own ledger (#…
docs(epics): refresh the open-work table and open owner decisions (20…