Commit Graph
2 Commits
Author SHA1 Message Date
rock a616c0ebc2 feat: observability logs across entire query + compaction pipeline
CI / CI (pull_request) Successful in 11m38s
All components now emit target="observability" structured logs:

chunk_optimizer:
  event=chunk_optimize: input, after_threshold_filter, after_dedup,
    dedup_removed, selected, budget_bytes

result_compressor:
  event=result_compress: input_count, estimated_bytes, compressed_bytes,
    budget_bytes, strategy

query_router:
  event=query_route: route, candidates, prefiltered, selected, latency_ms

cache_alignment:
  event=cache_preload: preloaded, cache_hits, cache_misses, hit_ratio

full_pipeline:
  event=full_pipeline_complete: query, candidates, prefiltered, optimized,
    dedup_removed, boosts_applied, cache_hit_ratio, budget_bytes, total_ms

compaction:
  event=compaction_complete: mode, duration_ms, duplicate_edges_deleted,
    stale_facts_deleted, semantic_merged, llm_calls, bytes_freed

781 tests pass.
2026-09-10 10:25:40 +09:00
rock 21600c7231 feat(phase5-6): Wire metadata boost + cache alignment into FullPipeline
FullPipeline (Phase 1-6 Integration)
- FullPipeline: complete orchestration of all phases
- PipelineConfig: unified configuration for all phases
- PipelineBuilder: fluent API for pipeline construction
- EnrichedChunk: fully enriched result with all metadata
- PipelineMetrics: comprehensive metrics per phase
- 14 unit tests

Phase 5 Integration
- Query intent inference (FixError, LearnConcept, UseTool, FindReference)
- Category-based metadata boost
- Intent-category matching for relevance boost

Phase 6 Integration
- Wiki-distance based cache priority
- LRU cache preloading for hot chunks
- Cache slot assignment
- Phase timing profiling

Integration Tests (it_phase5_phase6.rs)
- 24 end-to-end tests covering all phases
- Metadata boost enable/disable
- Cache locality and preload
- Edge cases (empty, no matches, unknown intent)

Total: 145 tests passing (was 107)
2026-08-31 22:48:42 -07:00