feat(cli): graph-phase index progress (count-first pass1 + pass steps)#327
Merged
HumanBean17 merged 2 commits intoJun 15, 2026
Merged
Conversation
build_ast_graph emits JCIRAG_PROGRESS kind=graph under --verbose (count-first exact total in pass 1; pass 2-6 step lines). The sync and async subprocess drains route progress events to an on_progress callback via ProgressRelay (parse-first, single-writer). init/increment/ reprocess render a determinate graph-phase bar in default TTY mode (running only after the builder spawns); --quiet silent; --verbose raw. Renderer.apply() is a no-op after stop() (drain-thread safety). Co-Authored-By: Claude <[email protected]>
…lay factory - ProgressRelay guards renderer.apply() so a render-chain exception can't silently kill the drain thread (try/except + stderr note) - incremental pass-1 total excludes removed files (done no longer undercounts then clamps) - make_relay() factory centralizes the sync+async drain wiring - drop unreachable console fallback in ProgressRelay._route_line erase unused-renderer (review Minor #3) and failing-builder tests (Minor #6) deferred. Co-Authored-By: Claude <[email protected]>
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.
What
Wires the GRAPH phase of index-build progress (PR-2 of INDEX-OUTPUT-REWORK, stacks on PR-1):
build_ast_graph.pyemitsJCIRAG_PROGRESS kind=graphunder--verbose(count-first pass 1 with an EXACT filtered-walk total + per-file ticks; passes 2-6 step lines).pipeline._popen_capturing_stderr) and async (cli_progress.accumulate_and_relay_subprocess_streams) drains route progress events to anon_progresscallback viaProgressRelay/make_relay.cli._run_with_pipeline_progressrenders a determinate graph-phase bar (TTY/default) forinit/increment/reprocess --graph-only;--quietsilent,--verboseraw relay. Graph task running only after the builder spawns.IndexProgressRenderer.apply()no-ops afterstop()(drain-thread safety); drains survive a renderer exception.Stack
Base
feat/index-progress-protocol(PR-1). PR-3/PR-4 stack above. Implementsplans/active/PLAN-INDEX-OUTPUT-REWORK.md§ PR-2.Ontology / reindex
None (stays 17; pure output/UX; no re-index).
Tests
.venv/bin/python -m pytest tests -v-> 818 passed, 13 skipped. New:test_build_ast_graph_pass1_*,test_build_ast_graph_passes_2_to_6_*,test_build_ast_graph_quiet_emits_no_progress,test_cli_{init,increment}_graph_phase_progress*,test_cli_graph_progress_absent_when_quiet, plus relay/apply-stop hardening tests.🤖 Generated with Claude Code