Repository navigation
Context 0.7.106: read repository checkouts outside the workspace; batch source refreshes - #118
Merged
Merged
Conversation
…tch source refreshes - Repository citations and their history are read as Git objects of the registered commit, so a checkout bound through a symlinked local path outside the workspace no longer reports every citation as source-path-outside-scope. - kept-reference-unresolved says the text at the repeated lines changed and offers a unique quote locator. - Guidance: refresh several registered sources in batches by requirement, corrections-only updates, and task adjust refresh keeping computed results. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 of 6 tasks
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
Release 0.7.106.
Background. During a refresh of a workspace with seven registered sources, every citation of one repository (677) was reported
unavailablewithsource-path-outside-scope, including citations of files that did not change between the two commits. The registeredlocalpath was a symlink to an existing checkout outside the workspace, ascontext source restorebinds it. The same refresh took six review rounds because the Agent applied "one new repository per stage" to already registered repositories and learned the corrections-only rule only after the first review.Changes.
articleSourceReader.ts: repository citations and their history are read as Git objects of the registered commit, so the checkout's real path no longer has to be inside the workspace. The check that a cited path stays inside the repository is unchanged; captured documents and notes must still be inside the workspace. Root cause: the workspace check dated from when repository citations were read as files, whilesource restoreaccepts any existing checkout after verifying its remote and commit.approvedRevisionReferences.ts: when a revision repeats an earlier citation's line numbers and the text there changed,kept-reference-unresolvedsays that the text changed and, when the new text occurs once in the file, gives the quote locator to submit. The meaning of repeated line numbers ("keep the earlier evidence") is unchanged.git diff --name-status, large repositories and monorepos in their own batch, the rest grouped by requirement, onecontext update --inputper batch with repository and document scopes,--pendingonly for a repository-only batch), pointers from thecontextandcontext-planSkills and the routine-update reference, the corrections-only rule in the source-update and approved-revision procedures, and a note thattask adjustwithrefresh: truekeeps a source update's computed citation results.Compatibility
None for workspaces, snapshots, approved knowledge, package output, CLI JSON or SDK consumers. No new files, configuration or fields. Workspaces whose checkouts are inside the workspace behave as before; repositories behind a checkout outside the workspace become readable. The error text of
kept-reference-unresolvedchanges; its reason code does not.Risks. Repository reads now accept a checkout anywhere on the machine; they still read only Git objects of the registered, verified commit and reject paths outside the repository.
Verification
projectPendingSourceUpdate.test.ts: a checkout outside the workspace behind a symlinkedlocalpath — an update where only an uncited file changed reports no changed or unavailable citation; a changed citation reports its current text and history. Both fail on 0.7.105 withsource-path-outside-scopeand pass with this change.approvedRevisionReferences.test.tsextended: the error gives the quote locator when the text is unique and names quote/heading locators otherwise.build:workflowandbuild:plugin;typecheckand lint pass.source add repo --ref→update --pendingsequence: 0.7.105 reported 677 unavailable citations; this change reports 51 changed citations with current and historical text and none unavailable.Checklist
bun run verify:fullpasses.🤖 Generated with Claude Code