Skip to content

Review itinerary: risk-ranked read order for every agent diff - #517

Merged
currentbits merged 3 commits into
mainfrom
coder/review-itinerary-an-ordered-risk-ranked--b48cd5
Aug 18, 2026
Merged

currentbits merged 3 commits into
mainfrom
coder/review-itinerary-an-ordered-risk-ranked--b48cd5

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Summary

Fixes #421. Experts do not read diffs top-to-bottom. The Changes panel now builds an ordered, risk-ranked review plan for each agent diff: CI/config first, then a reuse scan, critical path, tests (toggleable to the front), then evidence.

What changed

  • Hard-stop banner when CI/config files move (.github/, package.json, tsconfig, Vite/Electron builder, .env, publish scripts).
  • Reuse scan flags new helpers that already exist in the code index, or that were added twice in this diff.
  • Plan vs diff callout: issue says X; diff also touches Y when the issue/plan/first prompt does not mention files the diff also changed.
  • Files are chunked by functional area and sorted by blast radius, never alphabetical.
  • Tests first toggle moves tests ahead of critical path. CI stays first either way.
  • Mark reviewed on each hunk. Hashes persist on the thread (reviewAcceptedHunks); a body change gets a new hash so only new/changed hunks stay in scope.
  • Finishing agents on a worktree thread get a standing note to write .solenta/review-itinerary.json (read order, per-chunk rationale, self-found risks). The panel shows those notes when present.
  • /review opens the Changes panel (local, pre-push).

Planner is pure renderer (src/reviewItinerary.ts). Extras come from git.reviewContext / git.setReviewAccepted so DiffResult stays unchanged.

Tests

npx tsc --noEmit
node --experimental-strip-types --test test/reviewItinerary.test.ts
node --import=./test/support/disable-grok-mcp.mjs --import=./test/support/render.mjs \
  --experimental-strip-types --test --test-timeout=20000 \
  test/reviewItineraryPanel.test.tsx test/composerSlashActions.test.tsx
node --test electron/test/review-itinerary.test.js

17 + 10 + 5 pass. Typecheck clean. Full renderer suite was 1075 pass before the main merge.

  • PR created by the Grok agent

Willem and others added 3 commits August 18, 2026 14:44
… We have start dev twice once in the envirenment bar and in t
Keep both the #421 itinerary wiring and main's teach-mode notes/types.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@currentbits
currentbits merged commit 663431e into main Aug 18, 2026
2 of 6 checks passed
@currentbits
currentbits deleted the coder/review-itinerary-an-ordered-risk-ranked--b48cd5 branch October 3, 2026 16:07
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.

Review itinerary: an ordered, risk-ranked review plan for every agent diff

1 participant