Add typed Neon review findings API - #146
Merged
Merged
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 458bda3817
ℹ️ 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".
pandemicsyn
force-pushed
the
agent/neon-findings-api
branch
from
July 18, 2026 15:50
458bda3 to
c2aa610
Compare
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
.plans/DEVIATIONS.mdContract and limits
shared/review-finding.tsis the canonical schema-version-1 contract and the canonical source ofNeonReviewFindingSeverity. TheReviewFindingSeverityname added by #145 remains compatible through a type alias to that definition.A materialized finding contains
surfaceId,sourceId,revisionKey, file and side-aware anchor data, title/explanation,critical | major | minor | nitseverity, optional confidence and suggested action, trusted author/model/workflow-run provenance, server-owned creation time, andactive | stale | resolved | dismissed | promotedlifecycle vocabulary.Application-owned limits:
Trust boundaries and validation
sourceId + revisionKey. A non-active finding from an older source/revision may be replaced by the current-revision finding under the same raw id without consuming another retention slot; same-revision conflicting content remains an atomic error.sourceIdandrevisionKey, so delayed commands cannot mutate findings after a mounted surface changes.activeorstalefindings. Repeated dismissal is idempotent, andresolved/promotedrecords are not rewritten by dismissal.local-apiwith null model/run; Flue stamps the currentagentName/runIdwith null model. The registry stampscreatedAt.surfaceId, so two windows on one PR remain independent. Findings live only in process memory, and expiry, explicit close, and disposal remove associated state.API and Flue surface
Local API:
GET /api/review-surfaces/:surfaceId/findingsPOST /api/review-surfaces/:surfaceId/findings/applyPOST /api/review-surfaces/:surfaceId/findings/dismissPOST /api/review-surfaces/:surfaceId/findings/clearNeon capabilities:
neondeck_review_surfaces_lookupneondeck_review_surface_context_lookupneondeck_review_surface_navigateneondeck_review_surface_findings_applyneondeck_review_surface_findings_dismissneondeck_review_surface_findings_clearVerification
npm run check: 96 files / 600 tests passednpm run format:check: passedgit diff --check: passednpm run test:integration(9 files / 129 tests) andnpm run build:serverCoverage includes atomic invalid-batch rejection, same-scope conflicts and idempotency, old-scope stable-id replacement at the retention cap, delayed dismiss/clear rejection, active/stale/idempotent dismissal, server-stamped HTTP/Flue provenance, model-context paging and totals, multi-surface isolation, expiry/close cleanup, payload limits, and targeted finding changes.
Remaining UI work
This PR intentionally does not add Pierre/React inline rendering or promotion UI. The review UI workstream still needs to render finding anchors/provenance, add finding navigation, and provide explicit user-owned promotion into the existing GitHub draft and prepared-diff revision workflows. Those paths should own
resolved/promotedlifecycle transitions and retain their existing authority checks.