Repository navigation
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]>
Val decided on 2026-10-25: Code Review writes go through the person's own gh login, and decisions 2-4 are in scope. This is the first increment. - code-review:write: a separate localOnly channel. Main names the session from the sender and document epoch, re-reads the account, repository permission and PR before preview and before send, and checks gh's login state before dispatch. Fixed endpoints only: two POSTs, bodies on stdin. - Sends are durable, at most once per intent; an unclear outcome stays unknown until a read-back matches the intent marker or the person stops tracking it. - Comment and review composers, line comments from Changes, and a doubt card. - Unit, IPC and Electron coverage of success, rejection, timeout, crash and reconciliation, all against a synthetic gh. No live write was run. 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
Contributor
Author
|
Superseded by #416, now verified merged as This PR's published head is an ancestor of the reviewed integration head. The integration includes the reviewed write-race and uncertainty repairs. This closure records supersession, not live-write or human acceptance of #326. Your source worktree remains protected; no owner release or deletion is performed here. |
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.
Part of #326, first of three increments. Stacked on #410 (
cr7-anchors); GitHub retargets it tomainwhen #410 merges.Decision
Val answered on 2026-10-25: writes go through the person's own
ghlogin (not a GitHub App), and decisions 2–4 (state menu, title/description, reviewer requests) are in scope.AGENTS.mdrecords the approval and its limits.What this adds
code-review:write: a separate,localOnlychannel, nevercode-review:read.owner/repo #nand head. Comment on this line in Changes. A card for a send in doubt.Not in this PR: the head-guarded merge (increment 2; its pure preflight is #412) and decisions 2–4 (increment 3).
Validation
pnpm build && pnpm test && pnpm test:e2e: exit 0.e2e/code-review-actions.spec.ts). They cover success, a double click, rejection, a head move, a timeout, a crash during a POST GitHub recorded → restart → reconcile, and a 502 → stop tracking.ghonly. No live write was run, and no real PR, comment or review was created. A live check needs a disposable repository Val names.Evidence:
docs/reviews/2026-10-25-cr7-write-submit.md. Design:docs/design/code-review.md(CR-7 writes).Please don't merge without Val's go-ahead.
🤖 Generated with Claude Code