Repository navigation
feat(update): process moved repository commits with context update --pending (0.7.88) - #89
Merged
Merged
Conversation
…pending Moving a registration with source add repo --ref left approved knowledge processed at the old commit, and verify then reported every moved or changed citation. context update --pending now processes those sources: unchanged or moved citations settle at the new commit, and only pages whose cited text changed become candidates, listed in changed_references. A workflow node (sources.update_pending) routes to the command before the idle task gate; source add repo and verify point to it. History reads for settled commits check each commit once, fetch a missing one into shallow or partial checkouts, and read one file at a time per checkout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…story reads context update --pending no longer settles a moved commit on its own when every citation is unchanged or only moved: matching cited text proves a citation can relocate, not that additions or shared dependencies are covered. It always prepares the source update, with only changed pages as candidates, and the commit settles after the scope decision. Concurrent references during one inspection now share one history reader, so a shallow checkout fetches a missing commit once and every moved citation is confirmed. Co-Authored-By: Claude Opus 5.5 <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.
Summary
Moving a repository registration with
context source add repo --ref <sha>only changes the registration. Until now, nothing processed the new commit. The next production orverifyreported every cited region whose text moved or changed, so a routine re-pin produced dozens of warnings and no direct way to settle them. This PR makes the update a single, routed step:context update --pendingfinds registered repositories whose commit moved past the processed version recorded for approved knowledge. It needs no input file.changed_references(changedorunavailable). The list can be empty.scope_summary,new_topics) is still required, so additions and shared dependencies are reviewed before the baseline advances. Moved citations update their locations when the update settles.process-source-updatenode (sources.update_pending, reasonroute.source.update-pending) runs the command before the idlereopen-cleared-taskgate. The procedure is a recommended read, not a required one.source add reporeturns anexthint when the moved commit leaves processed knowledge behind.verifywarnings namecontext update --pendingwhen a cited repository moved.--depth=1) and read one file at a time per checkout. Recovered checkouts no longer misreport moved citations as changed. Large updates no longer trip remote rate limits.Local verification
3b0ce0a/dabfa49→ef395ea):verifyreported 35 issues before.update --pendingasked about 8 pages (19 citations); the moved citations elsewhere relocated at settlement. After review and build,verifyreports 0 issues with both this build and the released 0.7.87.119645f→3d6eb3d): there were 60 warnings before.update --pendingnow finishes in under a minute, with 21 candidate pages and 52 genuinely changed citations. The earlier attempt reported 64unavailablebecause of rate limiting and a processed commit missing from the remote. The content revisions are not part of this PR.Tests
projectPendingSourceUpdate.test.ts:source-update-pending.yaml; existing fixtures carryupdate_pending: false.🤖 Generated with Claude Code