Skip to content

feat(code-review): prepare scoped drafts and durable intents - #399

Closed
BunsDev wants to merge 2 commits into
mainfrom
cr7-intents
Closed

BunsDev wants to merge 2 commits into
mainfrom
cr7-intents

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

This preparatory CR-7 increment adds durable local drafts and operation intents scoped to account, repository, PR, reviewed revision and target. Version comparison preserves newer draft edits. A one-use confirmation yields a dispatch permit only after durable admission; restart turns interrupted dispatches into unknown and never resends them.

The module remains unwired in main-only engine/code-review-actions/. It adds no GitHub mutation transport, IPC command, UI behavior or capability enablement. Write-principal authorization and scope decisions 2–4 remain unanswered; CR-6 isolation and C82 are unchanged.

Validation:

  • pnpm build: passed.
  • pnpm test: 2,048 passed, 17 skipped, zero failed.
  • Focused model plus unchanged read-path IPC guard: 30 passed, one Windows-only skip.
  • Two rapid clicks yield one counted mock request. Real child-process kills before/after the mock request recover unknown with zero/one recorded requests and no replay.
  • Storage failures, stale/forged confirmations, draft races, corruption, capacity and same-body reconciliation are covered.
  • Independent review reproduced correlation reuse and missing preview cancellation; both were fixed with regressions. Final review found no important issues for this bounded foundation.

The first full run failed the existing read-directory inventory guard. Moving the new module into a sibling directory preserved that guard unchanged; the final full rerun passed. Original failures and raw receipts are archived outside the worktree.

Tested signed implementation: ff260f1d9694beab983d1856c7dd5b7d0942fc47. See the evidence report for commands, request counts and limits. UI E2E was not required because UI behavior is unchanged. GitHub correlation/authorization, IPC/UI integration and a separately authorized disposable live-write canary remain open gates; local receipts do not provide server exactly-once execution. Hosted checks are pending; no hosted pass is claimed.

Refs #326 and #319. No comments/reviews, merge, queue enrollment, release, live inference or live-write canary were performed.

Superseded by merged #404 (merge commit e3527f4), which integrates this candidate with provenance and validation repairs. Closing this source PR does not close outstanding human, original-reference, provider, or write-authorization acceptance gates.

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 24, 2026 3:44am UTC

Request Review

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main 70123b9 cr7-intents 4f3b9af +/-
65% 65% 0%
View coverage of the 2 most impacted files.
File main 70123b9 cr7-intents 4f3b9af +/-
apps/desktop/sr.../code-review.ts 100% 100% 0%
apps/desktop/sr...ions/intents.ts 0% 100% +100%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@BunsDev
BunsDev added this pull request to the merge queue Oct 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 24, 2026
@BunsDev BunsDev closed this Oct 24, 2026

This branch was successfully deployed

1 active deployment
Preview — 4f3b9afd Deployed Oct 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant