Repository navigation
Bind CR-7 intents to CR-5's shared line anchors - #410
Merged
Merged
Conversation
CR-5's anchorFor returns a seven-field LineAnchor with commitSha, the commit its line numbers count in. The unwired intent model checked for an exact six-field shape, so it refused every real anchor, and its digest never bound the diff base. LineAnchor moves into the shared contract. patch.ts re-exports it and the model uses it. commitSha must be 40-hex, must be the head on the head side, and is part of the digest. The future write adapter still checks a base-side commitSha against the fresh read's diffBaseSha. This also records the check of CR-4's action slots. Adds no GitHub mutation, IPC channel or UI. Refs #326. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 25, 2026
This branch was successfully deployed
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.
CR-7's draft/intent model is on
main(unwired, via #404). This PR checks it against the producer slices that have since landed and fixes the one mismatch.CR-5 (#395) anchors didn't fit the model.
anchorForreturns a seven-fieldLineAnchor. The extra field iscommitSha: the head, or the proven diff base for the base side.The fix
LineAnchormoves into the shared contract.patch.tsre-exports it and the model uses it, so the two can't drift apart silently.commitShamust be 40-hex and, on the head side, must be the revision's head. It's part of the intent digest.commitShato the fresh read'sdiffBaseShabefore dispatch. The design page says so.CR-4 (#393) slots fit.
comment,editandrequestReviewersare zero-argument callbacks bound by the host. There's no slot yet for submitting a review, the state menu or Merge; the write increments add those.This PR adds no GitHub mutation, IPC channel, UI or capability. Write authorization and scope decisions 2–4 are asked on #326 and still unanswered.
Validation (local, macOS, at
56691ab's tree):pnpm build && pnpm test: exit 0. Desktop: 1,940 passed, 17 skipped, 0 failed.pnpm test:e2e: exit 0. 451 desktop and 7 site tests passed, 7 skipped.56691ab: all checks passed, including the requiredunit + e2e (macOS).Evidence. Mock only: no comment, review, merge or live write was performed.
Refs #326, #319.
🤖 Generated with Claude Code