Feat/component level updater - #111
Merged
Merged
Conversation
Replace file-level cache invalidation with a component-level updater: diff the saved dependency graph against the new one (body hash, signature, edges, rename pairing), repair the module tree (renames, deletions, routing rules 1-3, routing agent for orphans, growth check), build a per-leaf change report (Own / Up / RefCh / Tree), check the fallback ratios, then run one editing agent per active leaf, in dependency order, restricted to a write set enforced by str_replace_editor. Missing pages are regenerated by the normal pipeline, a stale-name scan fixes leftovers, and every decision, verdict and call cost lands in update_record.json. `codewiki generate --update` now runs the new updater (rung 3); `--update-rung 0` keeps the previous file-level behaviour as the baseline, rungs 1/2/3b are ablations, and --tau-*/--k-hop/ --max-diff-tokens override the hyperparameters. Also: LLMBackend.run_update_agent + last_usage on both backends, allowed_write_paths on CodeWikiDeps, absolute/.. path rejection in the pydantic-ai editor path, and a guard on the module-level stdout rewrap in str_replace_editor that broke pytest capture.
… files The dependency graph is named after the checkout directory. With one worktree per revision, each update left a new *_dependency_graph.json next to the older ones, and snapshot_old_graph refused to choose among several, so the update fell back to a full build with 'previous dependency graph not found'. - find_any_graph_file: several candidates resolve to the newest (logged) - prune_superseded_graphs: after a successful update, drop graph files other than the current checkout's, so the next update finds one - tests for both paths
Move the module-level logger definition below the import block so all imports sit at the top of the file. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.