Feat/serve auto freshen#8
Merged
Merged
Conversation
Detect files added/changed/removed since the last extraction and run an incremental rebuild before answering a query, so files an agent writes mid-session are queryable without a separate watch/update. - synaptic-incremental: new `freshen` module (build-provenance manifest + on-disk change detection via the mtime fastpath); `rebuild_with_detect` reuses one scan so the serve catch-up walks the tree once. - serve: debounced on-query staleness gate (`needs_freshen`) + synchronous incremental catch-up (`apply_freshen`) under the rebuild lock, on both the stdio and HTTP transports. Opt-out via SYNAPTIC_SERVE_AUTOFRESH; tunable debounce (SYNAPTIC_SERVE_AUTOFRESH_DEBOUNCE_MS) and cap (SYNAPTIC_SERVE_AUTOFRESH_MAX_FILES). - rebuild: allow a bounded shrink on incremental rebuilds so symbol removals (e.g. deleting a method) propagate; the strict shrink guard is kept for full rebuilds. - extract/update persist the provenance manifest (reusing their existing scan).
Wrap long assert!/call_tool lines per rustfmt so `cargo fmt --all --check` (the lint CI job) passes. No behavior change.
Surface cross-repo federation as a top-of-README selling point: the same workflow scales from a single small folder to a large monorepo or a fleet of separate repositories federated into one graph with real cross-repo edges.
Fixes the docs CI job: rustdoc parsed `<hex>`/`<filename>` as HTML tags under RUSTDOCFLAGS=-D warnings.
…shen # Conflicts: # Cargo.lock
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.
No description provided.