Skip to content

improve performance - #48

Merged
khezen merged 1 commit into
mainfrom
perf2
Sep 19, 2026
Merged

khezen merged 1 commit into
mainfrom
perf2

Conversation

@khezen

@khezen khezen commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

Changed

  • Performance: Scope resolution fast-path for clean single-scope repos
    • When deterministic resolution finds exactly 1 scope and 0 orphans, skip expensive ReAct LLM refinement
    • New skip_refinement_when_clean setting on scope signature (default: true)
    • Env var: SCOPE_SKIP_REFINEMENT_WHEN_CLEAN=true|false
    • Improves scope duration from ~45s to <1s for typical single-scope repositories
    • Enhanced deterministic scope descriptions to include package name and scope type
  • Performance: Audit episode save now runs in background
    • Moved hippo.end_episode() from synchronous to submit_episode_save() background thread
    • Audit duration drops from ~48s to ~5-15s (just the ChainOfThought LLM call + memory load)
    • Stats collection now runs after join_episode_saves() to ensure complete distiller/cartographer stats

Added

  • New SignatureConfig.skip_refinement_when_clean field (scope-specific optimization)
  • New Settings.get_scope_skip_refinement() method (returns True by default)
  • New _finalize_scopes() helper in scope resolver for skills attachment

@khezen khezen self-assigned this Sep 18, 2026
@khezen
khezen merged commit 7039801 into main Sep 19, 2026
6 checks passed
@khezen
khezen deleted the perf2 branch September 19, 2026 00:08
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