Skip to content

feat(cli): vectors-phase index progress; retire Spinner/emit_vectors; optimize phase#328

Merged
HumanBean17 merged 2 commits into
feat/index-graph-progressfrom
feat/index-vectors-progress
Jun 15, 2026
Merged

feat(cli): vectors-phase index progress; retire Spinner/emit_vectors; optimize phase#328
HumanBean17 merged 2 commits into
feat/index-graph-progressfrom
feat/index-vectors-progress

Conversation

@HumanBean17

Copy link
Copy Markdown
Owner

What

Wires the VECTORS and OPTIMIZE phases and retires the old spinner (PR-3 of INDEX-OUTPUT-REWORK, stacks on PR-2):

  • java_index_flow_lancedb.py emits JCIRAG_PROGRESS kind=vectors from inside process_*_file (approximate total from an app_main pre-walk + throttled per-file ticks). The PARENT emits the terminal vectors event on cocoindex exit (drives clamp-on-completion).
  • lance_optimize.optimize_lance_tables emits kind=optimize IN-PROCESS (covers both call sites; exception-safe).
  • pipeline + server.run_refresh_pipeline (async) wire on_progress; drop Spinner + emit_vectors_*.
  • Operator commands render the full Vectors -> Optimize -> Graph list.

Stack

Base feat/index-graph-progress (PR-2). PR-4 stacks above. Implements plans/active/PLAN-INDEX-OUTPUT-REWORK.md § PR-3.

Ontology / reindex

None (stays 17; pure output/UX; no re-index). Spinner/emit_vectors_* fully retired (grep zero across the tree).

Tests

.venv/bin/python -m pytest tests -v -> 818 passed, 13 skipped. JAVA_CODEBASE_RAG_RUN_HEAVY=1 runs the 2 cocoindex flow/divergence tests (pre-walk total = actual processed = 139 on the fixture; divergence 0). New light tests cover clamp, indeterminate, approximate-overstate-then-clamp, parent-emits-terminal, optimize phase, retirement.

🤖 Generated with Claude Code

HumanBean17 and others added 2 commits June 15, 2026 02:48
…ize phase

process_*_file emit JCIRAG_PROGRESS kind=vectors (approximate total from
app_main pre-walk + throttled per-file ticks); the parent emits the
terminal vectors event on cocoindex exit (drives clamp-on-completion).
optimize_lance_tables emits kind=optimize in-process (covers both call
sites). server.run_refresh_pipeline wires the async drain + renderer.
Retire Spinner + emit_vectors_start/_finish. Operator commands render
Vectors -> Optimize -> Graph.

Co-Authored-By: Claude <noreply@anthropic.com>
_approximate_vectors_total's YAML predicate ("/application" in fn)
was always False for a bare filename, so the pre-walk under-counted
application YAML and the divergence went negative (gap=-4). Use
fn.startswith("application"). Move the vectors tick emission under
the lock to match its comment. Drop a dead type-ignore. Tighten the
divergence test to assert gap==0 on the fixture.

Co-Authored-By: Claude <noreply@anthropic.com>
@HumanBean17 HumanBean17 merged commit adfe18c into feat/index-graph-progress Jun 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant