Skip to content

Feat/serve auto freshen#8

Merged
ColinVaughn merged 11 commits into
masterfrom
feat/serve-auto-freshen
Jun 21, 2026
Merged

Feat/serve auto freshen#8
ColinVaughn merged 11 commits into
masterfrom
feat/serve-auto-freshen

Conversation

@ColinVaughn

Copy link
Copy Markdown
Owner

No description provided.

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.
@ColinVaughn ColinVaughn merged commit 19fd3d1 into master Jun 21, 2026
92 checks 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