Repository navigation
Preserve submitted review anchors during comment identity lookup - #75865
Conversation
Co-authored-by: Copilot App <[email protected]>
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
Found two blocking correctness issues in the new identity enrichment path:
- Partial lookups can throw when
matchesis empty instead of preserving the submitted anchor. - Missing submitted
sidevalues can prevent enrichment when GitHub returnsRIGHT.
Please guard the empty-match case and normalize side defaults, with regression coverage.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the inline-comment publication and dependency-handling changes.
No open issues 🎉
What changed in this PR
This PR preserves evidence of successfully published inline review comments in gh-aw, preventing optional identity lookups from incorrectly marking comments as skipped and blocking dependent safe outputs.
Changes:
- Preserve submitted anchors and attach comment identities only when matches are unique in both lists.
- Add regression coverage for null coordinates, partial results, reordered results, and ambiguous identities.
- Document when buffered inline comments satisfy safe-output dependencies.
| File | Description |
|---|---|
docs/src/content/docs/reference/safe-outputs-pull-requests.md |
Clarifies publication and dependency semantics. |
actions/setup/js/pr_review_buffer.test.cjs |
Tests anchor preservation and dependent-output eligibility. |
actions/setup/js/pr_review_buffer.cjs |
Makes identity lookup optional enrichment without replacing submitted anchors. |
Review effort: Balanced (auto)
Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs and /tdd (triage: bug fix). Verdict: COMMENT. The fix is sound, and the new regression test fails on pre-fix code and passes with this change. Three non-blocking suggestions are inline.
📋 Verification and details
What I verified
- Traced identity lookup through
safe_output_outcomes.cjsandsafe_output_dependencies.cjs. Filtered-out comments still end asskipped, whichsafe_output_outcomes.test.cjs:78already covers. - Rebuilt the pre-fix
pr_review_buffer.cjs. All fourit.eachscenarios fail on it and pass on this branch, so the test guards the regression. - Probed duplicate submitted anchors against a single API match. Neither comment receives an ID, which is the safe outcome.
Limits
- vitest, prettier, and
make lint-cjswere not run. Sandbox TLS interception blocked npm, so these results come from a standalone Node harness that loads the real modules.
Positive highlights
- ✅ Null or ambiguous identity keeps the submitted anchor instead of marking a published comment as skipped.
- ✅ The uniqueness check covers both the API side and the submitted side.
- ✅ The docs paragraph matches the implementation.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~12 AIC · ⌖ ~2 AIC · ⊞ 5.4K
Comment /matt to run again
| ]); | ||
| expect(records.every(record => !record.skipped && !record.result.buffered && !record.result.deferred_manifest)).toBe(true); | ||
| expect(checkSafeOutputDependencies(plan, 2, records, false)).toEqual({ state: "ready" }); | ||
| expect(review.review_comments[0].id).toBe(scenario === "null anchors" || scenario === "ambiguous identities" ? undefined : 200); |
There was a problem hiding this comment.
[/tdd] The expected IDs come from a ternary on scenario, so each row's expectation is hard to read and easy to get wrong. Use an explicit per-scenario table with the expected IDs for both comments, so each named case states its outcome directly.
@copilot please address this.
There was a problem hiding this comment.
Fixed in 03b3c16: each named scenario now declares its lookup response and expected IDs for both comments directly in the table. All focused regressions pass.
|
In response to comment 6719097274: accepted as an informational status report, with no code change requested. |
|
In response to comment 6719098636: accepted as an informational status report, with no code change requested. The no-op outcome does not independently verify design requirements or publication capability. |
|
In response to comment 6719098651: accepted as a test-analysis status report, with no actionable change requested. The side-matching update has focused regression coverage; this no-op notice alone does not establish test adequacy. |
|
In response to comment 6719099188: accepted as a reviewer activity marker rather than an actionable finding. No code change is needed, and the marker does not establish review completion. |
|
In response to comment 6719101666: accepted as an informational status report, with no code change requested. The no-op outcome is not independent verification of review coverage or publication capability. |
|
In response to comment 6719103737: accepted as a completion notice, with no separate change requested by this comment. Both actionable inline findings were evaluated individually: side normalization was fixed, and the empty-match crash claim was declined because the existing guard short-circuits safely. |
|
In response to comment 6719153433: partially accepted; side-default enrichment is fixed in 2860d14 with passing regressions, while the reported empty-match crash is prevented by the existing short-circuit guard. The managed memory body was left untouched. |
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: 2860d14
|
Assignment running:
Sous-chef requested-head: 2860d14 No PR merge or CI dispatch will be performed. |
…failures Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
|
🎉 This pull request is included in a new release. Release: |
Why
A successfully published inline review comment could be reported as skipped when GitHub's optional comment-identity lookup returned null coordinates. This incorrectly failed dependent safe outputs despite successful publication, as observed in PR Code Quality Reviewer run 42453377632.
Approach
Preserve the anchor metadata for exactly the inline comments included in a successful review POST. Treat identity lookup as optional enrichment, assigning IDs only when anchor matches are unique in both the returned and submitted lists. Sparse, partial, reordered, or ambiguous responses cannot erase publication evidence. Comments filtered out before submission or moved into a body-only fallback remain excluded.
Update the reference documentation to explain publication and dependency semantics. This change does not weaken branch-protection checks, change credentials or permissions, or address the separate queue-delivery and telemetry failures found during the investigation.
Validation
make lint-cjsandmake agent-report-progresspassed.No workflows were dispatched or rerun.