Repository navigation
Conversation
✅ Deploy Preview for thriving-cassata-78ae72 canceled.
|
|
AI ReviewSummaryThe PR adds a DataJunction review skill and structured bot handoff. The earlier reported schema fixes are present, but the strict handoff still accepts an approving incomplete review and reply actions whose targets are not validated at the publishing boundary. Request changes before using it for automated publication. Findings
Tests
Missing context / blind spots
Final Verdict
|
There was a problem hiding this comment.
DataJunction deep review of 17ed7f631470af49b40ac5efa4d82ae0e5ce88eb. Maintained summary includes off-diff findings. Advisory only.
| } | ||
| } | ||
| }, | ||
| "if": {"properties": {"status": {"const": "incomplete"}}}, |
There was a problem hiding this comment.
The incomplete-status rule requires only a nonempty limitations array. A payload with status: "incomplete", verdict: "approve", no findings, and limitations: ["Timed out before reviewing SQL changes"] passes the strict schema. That contradicts the handoff's rule that an incomplete review is not clean and can carry an approval into the maintained summary or check decision for unreviewed code.
Reject this combination at the handoff boundary and explicitly require the publisher to treat every incomplete review as non-passing. Add a validation test for the payload above.
|
|
||
| The publisher must validate this JSON, confirm that the PR still points to | ||
| `head_sha`, and decide the check conclusion from configured severity policy. | ||
| Before thread writes, compare the reviewed context digest with a fresh snapshot |
There was a problem hiding this comment.
The publishing checks verify that a targeted thread is bot-authored, but do not require verification that reply_to_comment_id identifies an external author's comment in that same thread. The strict schema also accepts a reply kind with no target or body, and accepts any positive comment ID regardless of thread. A schema-valid model result can therefore request a malformed reply or address the wrong discussion.
Require coherent all-or-none reply fields and have the publisher check reply-target membership and authorship against its fresh snapshot before any write. Cover missing fields and a comment ID from another thread in focused tests.
Summary
Add a maintainer-focused review skill for DataJunction changes. It traces semantic-layer correctness, query grain, materialization, metadata, authorization, API/client compatibility, and lifecycle risks beyond changed lines.
The automated-review reference defines a structured handoff for an advisory bot, including exact-head and discussion verification, existing-thread links, explicit resolution of verified fixes, and one maintained summary. It does not authorize the skill user to publish comments. The v2 handoff does not ask the model to reply in threads or reopen them.
Review feedback
Greptile's initial summary reviewed
5ce0e561, not the current head. Its three findings were addressed ind46692f5: structured reviews require a trusted discussion snapshot, and the strict handoff requires verdict, minimum actions, and test gaps.17ed7f63adds focused invariant tracing.The later DataJunction bot summary also predates the current head.
5bacc47fremoved model-directed reply actions and their target fields; the publisher derives writes from validated findings and explicit bot-thread resolutions.7d928fc4rejectsstatus: incompletewith an approving verdict.723bf9c9clarifies that an incomplete result fails the worker before PR publication, so operational warnings do not appear in PR comments or checks.Verification
The skill validator passes. Agent and worker policy bundles match this skill, and the internal Newt suites pass (18 agent and 59 worker tests, plus Ruff). This PR changes no application runtime code.