Promote Neon findings into review workflows - #153
Merged
Merged
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 611786ac50
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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
Durable workflow reuse and trust boundaries
GitHub pull requests
Promotion validates the current file patch and exact single- or multi-line anchor, creates or reuses the existing local review draft, and adds a normal local draft comment with Neon origin/provenance. It never calls GitHub or submits the review. An existing draft on a different head is rejected with explicit refresh/re-anchor guidance rather than silently changing its head. Existing draft validation, dirty-composer suppression, re-anchoring, submission, and recovery remain authoritative.
Trust boundary shown in the UI: local finding -> local GitHub draft; submission remains separate.
Prepared diffs and Kilo results
Promotion validates the current prepared patch, recomputes the current worktree fingerprint, and enters the existing typed
requestPreparedDiffRevisiontransition with bounded finding provenance in its summary. Prepared-backed Kilo results use the same controller and transition. The existing explicit confirmation, task authority, approval/recovery state, and later execution action are unchanged. There is no second revision endpoint and promotion never starts a revision run.Trust boundary shown in the UI: local finding -> prepared revision request; authority and execution remain separate.
Lifecycle, retries, and accessibility
Verification
npm run check— lint, layer check, migration check, app/docs typecheck, and 102 unit files / 651 tests passednpm run typecheck:appgit diff --checkCoverage includes source/revision/surface/finding matching, lifecycle gates, atomic failures, destination metadata, retry after bounded cache eviction, request-id conflicts, lone-surrogate finding IDs, delayed cross-surface dismiss ordering, targeted events, GitHub single/multi-line anchors and local-draft-only behavior, stale-draft head rejection, prepared worktree revision rechecks, prepared/Kilo revision-path reuse and confirmation, composer identity, surface-wide pending controls, unsupported sources, unanchorable patches, retained history, and failure retry.
Per review direction, broad Git/worktree/integration suites and
npm run verifywere not rerun for this bounded delta.Performance and data loading
Promotion remains bounded metadata/control flow. GitHub and prepared promotion load at most the requested file patch for anchor validation. Prepared promotion additionally recomputes the current worktree revision from changed-file identity metadata immediately before transition, without eagerly loading every patch, adding speculative caching, or relaxing existing performance gates.
Plan handoff