Repository navigation
Context 0.7.106: complete outside checkouts, batch preview and source refresh guidance - #119
Merged
Merged
Conversation
- New pages read repositories whose registered link points to a checkout outside the workspace; the registration must stay in the workspace (directly under the root is fine) and reads stay inside the checkout. - Batch revision preview checks citations against the processed scopes, as submission does, so stale citations block in preview too. - `context update --schema` prints the update input schema that existing hints point to; the missing-input error names it. - Quote locators are offered only when they resolve back to the same lines and are not capture gaps; kept-reference errors name unreadable sources and lines past the end of the file. - source-outside-revision points to task adjust for the revision and to supporting_sources in later source-update decisions. - Guidance: shared sources listed once per requirement, preview before re-citing, positional document evidence, formatting-only changes, .tmp/repo aliases, run records as generated output, missing file sources. 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
Completes Context 0.7.106 on top of #118 (whose release was withdrawn before npm publish).
Background. A full local source refresh of a production knowledge base (4 repositories, 69 Lark documents, 34 page revisions in 4 batches) with the 0.7.106 build found the remaining gaps below; a code review round followed.
Changes.
articleReferenceInput.ts: writing a new page from a repository whose registered link points to a checkout outside the workspace now works. The registration's parent directory must be the workspace or inside it (top-level custommaterializedAtkeeps working), relative roots resolve against the workspace, and per-file realpath and captured-digest checks are unchanged.approvedRevisionSubmission.ts: the batch preview checked pages against the task input files, which carry noprocessed_scopes, so stale citations of processed sources passed preview and failed only at submission. The preview now uses the processed scopes of the issued requests.context update --schema: status, the pending-update response andexpand_scopealready pointed to it; it now prints the input schema, and the missing-input error names it.exactQuoteLocator(shared by the kept-reference error and source-update evidence): offered only when the quote is unique, resolves back to the same lines and is not a capture gap.kept-reference-unresolveddistinguishes changed text, lines past the end of the file, and unreadable sources.source-outside-revision: when the source belongs to the page's source update, the message points totask adjustfor the revision and tosupporting_sourcesin later decisions.reference_warnings,.tmp/repoaliases for outside checkouts, run records counted as generated output, missingfilesource directories.Compatibility
No new protocol, configuration files or fields. Old workspaces need no migration. Behaviour changes are limited to accepting outside checkouts (reads still stay inside the checkout), error text, a read-only
--schemaflag, and the preview now matching submission.Risks. The preview can now report issues it used to pass; they are the same issues submission already rejected.
Verification
articleReferenceInput.test.ts(outside checkout, top-level registration plain and linked, relative root, escape rejected; fails on the previous check),projectPendingSourceUpdate.test.ts(outside checkout reads,../rejected, batch preview blocks stale processed citations; fails without the fix),articleSourceReaderBoundary.test.ts,submittedSourceLocator.test.ts,approvedRevisionReferences.test.ts,knowledgeUpdateSchema.test.ts.typecheckand lint pass.verifyreported 466source-path-outside-scopewith 0.7.105 and none with this build; all four batches settled, build and verify passed.Checklist
bun run verify:fullpasses.🤖 Generated with Claude Code