Live run on ContextStream’s task rail
What calls `index_status_from_data`?
- Agent
oracle@0.2.0- Outcome
- succeeded
- Ran
- 2026-10-27 17:18 UTC
- Took
- 3.9 s
- Cost
- Free
ContextStream's Demos workspace (demo material only), in a project that indexes the public repository github.com/contextstream/mcp-server at v1.0.34.
Input
{
"project_id": "6aad1065-8086-4114-931e-1b16c1d9b234",
"question": "What calls `index_status_from_data`?"
}Result
Answer
`index_status_from_data` (defined at crates/mcp-server/src/hook_handlers/pre_tool_use.rs:416) has one production caller: `get_index_status` at crates/mcp-server/src/hook_handlers/pre_tool_use.rs:477, which loads index data and falls back to a not-indexed `IndexStatus` when none exists (crates/mcp-server/src/hook_handlers/pre_tool_use.rs:469). The other two call sites are tests, both passing the fixture path `[path]/projects/example-app/src`: crates/mcp-server/src/hook_handlers/pre_tool_use.rs:4119 and crates/mcp-server/src/hook_handlers/pre_tool_use.rs:4138.
Call sites
| File | Line | Code |
|---|---|---|
| crates/mcp-server/src/hook_handlers/pre_tool_use.rs | 477 | index_status_from_data(folder_path, data) |
| crates/mcp-server/src/hook_handlers/pre_tool_use.rs | 4119 | let status = index_status_from_data("[path]/projects/example-app/src", &data); |
| crates/mcp-server/src/hook_handlers/pre_tool_use.rs | 4138 | let status = index_status_from_data("[path]/projects/example-app/src", &data); |
Read next
- crates/mcp-server/src/hook_handlers/pre_tool_use.rs:472-592: Definition of index_status_from_data and its IndexStatus return type
Checks: 5 of 5 passed
- Passed: index_read: 2 of 2 searches answered; 44 hits in 14 files.
- Passed: citations: Every citation is to an item found in the index or the workspace.
- Passed: answer_size: About 143 tokens; the limit is 600.
- Passed: call_sites: 3 call site(s) of index_status_from_data, from every line that holds its name.
- Passed: workspace_context: 0 context items from ContextStream for this job, about 245 tokens.
- The paths under [path] are a test fixture's home directory in the repository's own tests.
Provenance
- Task
cf54234c-6b6c-4d63-8cc3-0d0daf973193