feat(search): expose semantic index build timings#82
Open
Suknna wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
elapsed_msandstage_elapsed_msto semantic index build progress/status.status_changedpush frame.Context
Related issue: #81
stage_elapsed_msstarts when AFT first observes a stage transition in semantic progress events. This keeps the implementation small and avoids adding a new metrics subsystem before deeper performance work.Verification
cargo fmt -p agent-file-tools -- --checkcargo check -p agent-file-toolscargo test -p agent-file-tools status_exposes_semantic_build_timingscargo test -p agent-file-tools semantic_progress_event_pushes_status_snapshotcargo test -p agent-file-tools building_status_returns_lexical_fallback_resultscargo test -p agent-file-tools natural_language_auto_falls_back_to_grep_while_semantic_buildscargo test -p agent-file-tools lexical_only_fallback_reports_more_available_when_capped_or_over_top_kNeed help on this PR? Tag
@codesmithwith what you need. Autofix is disabled.Summary by cubic
Expose semantic index build timings (total
elapsed_msand per-stagestage_elapsed_ms) in progress events and the status API to improve observability while indexing. Observational only; no changes to search behavior, storage, or UI. Related to #81.elapsed_msandstage_elapsed_mstoSemanticIndexEvent::Progressand surface them in thestatusJSON and debouncedstatus_changedpush frames.stage_elapsed_msand reuse the existing progress pipeline.Written for commit 638b4c1. Summary will update on new commits.