Skip to content

Fix Breaking Change Checker review coverage inputs - #76588

Merged
pelikhan merged 3 commits into
mainfrom
pelikhan/breaking-review-coverage-gaps
Nov 10, 2026
Merged

pelikhan merged 3 commits into
mainfrom
pelikhan/breaking-review-coverage-gaps

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Breaking Change Checker published useful findings in run 42838691761, but could not complete its review: its Git command missed the allowlist prefix, the checkout was shallow, merged-PR tools were unavailable, and oversized patch responses were left unread. This change repairs the input and evidence-consumption contract without weakening incomplete-result handling.

Approach

  • Prepare a compact context pinned to the run SHA and a UTC 24-hour interval ending at run creation, failing explicitly on invalid metadata.
  • Replace Git/history dependence with five repository-scoped read-only commit/file/PR tools, add pull-requests: read, retain approved-integrity filtering, and explicitly disable agent editing.
  • Require complete commit/PR/file pagination, bounded recovery of saved oversized outputs, immutable before/after evidence, and a coverage ledger with explicit exclusions and remaining identifiers.
  • Preserve useful partial finding publication followed by report_incomplete. A no-findings noop requires complete coverage; success messages no longer assert that every change was reviewed.

Validation

  • All 8 targeted workflow regressions passed, including pinned interval/SHA validation, metadata failures, emitted-script equality and compiled capability scope.
  • make agent-report-progress passed: formatting/lint, typecheck, impacted tests and workflow drift checks.
  • make recompile compiled all 365 workflows; only this workflow's lock changed.
  • Target diagnostic compilation passed built-in checks and shellcheck with zero warnings. Optional scanners were not run; authored preparation steps are omitted from diagnostic locks by design.

Review notes and limits

The initial security review found no confirmed vulnerabilities and verified the narrowed production controls, but its follow-up failed with a model DNS error after the test infrastructure intent was clarified. Final security review approval remains unavailable; this is a draft for review, not a claim that the security gate passed.

Pagination, overflow recovery and honest completeness reporting remain agent instructions, not a deterministic proof of model compliance. No workflow was dispatched or rerun, and existing reports were not modified.

Checked in-flight fixes by concrete paths/diffs: the previously open #76537 changed only the generated report_incomplete tool summary, not these coverage inputs. No equivalent open fix was identified. Relates to #76542.

Pin the review context, expose narrow read-only PR capabilities, and require bounded patch recovery with honest partial-report semantics.

Co-authored-by: Copilot App <[email protected]>
@pelikhan
pelikhan marked this pull request as ready for review November 10, 2026 19:19
Copilot AI adaptive review requested due to automatic review settings November 10, 2026 19:19
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from PR Code Quality Reviewer · gpt56 · ~3 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 1.6K · ◷

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated from Ponytail Reviewer · routed: gpt61 medium · ~3 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 181 · ◷

Generated by Ponytail Reviewer for #76588

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

Generated from Test Quality Sentinel · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 7.2K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ 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: reported_no_action

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.

Generated from Design Decision Gate 🏗️ · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 8.5K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

Generated by PR Specification Reviewer for #76588

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head 4efc93b0b0386722901059ad412977fe40b785f4. Applicable contract: specs/security-architecture-spec.md v1.1.9, IS-01/IS-11 and the runtime untrusted-data threat-model clarification.

Blocking finding: the new review procedure explicitly requires retrieving and recording merged PR title, body context at .github/workflows/breaking-change-checker.md:167, but does not instruct the agent to treat that MCP-returned text as untrusted data or prohibit following embedded instructions. A malicious PR body can therefore steer the compatibility reviewer while it processes untrusted repository content. Add an explicit prompt-injection boundary immediately before PR details are consumed (and apply it to commit messages, file contents, diffs, and saved oversized outputs), stating that these are evidence only and never instructions; preserve the requirement to report incomplete coverage. This finding is already present in the existing inline review comment and is not duplicated.

No specification synchronization is proposed: the change does not establish an intentional contract change, and the existing security obligations remain binding. Coverage limit: static review only; tests and conformance scripts were not run.

Generated by PR Specification Reviewer for #76588 · copilot · gpt50 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.6K
Comment /review-specs to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-10T19:30:00Z
review_event: REQUEST_CHANGES
top_themes:
  - incomplete-result contract unreachable on preparation failure
  - read-only capability regression test false positive
  - stale noop wording contradicts pinned coverage contract
files_reviewed:
  - .github/workflows/breaking-change-checker.md
  - actions/setup/js/breaking_change_checker_workflow.test.cjs
comment_count: 3

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷
Comment /review to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found three blocking correctness/test-contract issues:

  • Invalid metadata aborts before the agent, making the documented report_incomplete path unreachable.
  • The read-only regression assertion can pass without GITHUB_READ_ONLY=1 on the agent step.
  • The mandated noop message still claims generic last-24-hours analysis, contradicting the pinned interval and complete-coverage gate.

An existing review comment already covers the untrusted PR-content/prompt-injection concern; I did not duplicate it.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review 🧠

Applied /diagnosing-bugs (the fix pins its inputs and reports partial coverage) and /tdd (the new test covers the contract). The direction is sound: a pinned 24-hour window, a narrowed read-only tool allowlist, and explicit partial-report semantics. Three items need attention.

📋 Key Themes & Highlights

Key Themes

  • Timeout vs. coverage contract: the 10-minute step timeout may kill the agent before exhaustive pagination finishes, leaving no terminal signal.
  • Brittle GITHUB_READ_ONLY check: the test matches escaped JSON text instead of parsing the embedded MCP config.
  • Prose-only prompt tests: phrase checks can pass while the agent behaviour regresses.

Positive Highlights

  • ✅ The prep step fails closed when the run SHA, creation time, or base branch cannot be pinned, and it has tests for each case.
  • ✅ The run-success message no longer claims full review, which matches the partial-coverage design.
  • ✅ The existing prompt-injection note (line 167) already covers untrusted PR text, so I did not duplicate it.

Verification notes

  • Checked that the readDocumentMetadata options argument matches other tests in the repo; it is a convention, not a defect.
  • The GITHUB_READ_ONLY value is set only inside the embedded MCP JSON string in the lock (line 1094).
  • Triage (pr-triage) classified this as a bug_fix, and the skill selection followed it.

@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 · ⊞ 6.6K
Comment /matt to run again

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Conflicting instructions can cause incomplete reviews to be reported as complete, and the CLI bridge leaves tools outside the intended allowlist callable.

3 open issues
What changed in this PR

Updates gh-aw’s Breaking Change Checker workflow to use reproducible review inputs and distinguish complete reviews from partial results.

Changes:

  • Pins reviews to the run SHA and a UTC 24-hour window, rejecting invalid metadata.
  • Replaces Git-history commands with repository-scoped GitHub API reads and disables agent editing.
  • Adds pagination, bounded evidence recovery and coverage-reporting requirements, with regression tests and a regenerated workflow lock.
File Description
actions/​setup/​js/​breaking_change_checker_workflow.test.cjs Tests pinned context, metadata failures, compiled capabilities and reporting requirements.
.github/​workflows/​breaking-change-checker.md Defines review preparation, read-tool configuration and coverage-aware reporting instructions.
.github/​workflows/​breaking-change-checker.lock.yml Regenerates executable configuration for the updated workflow.

Review effort: Max (auto)

Parse compiled read-only policy structurally, document fail-closed preparation, reserve reporting time, and reinforce pinned output and untrusted-evidence boundaries.

Co-authored-by: Copilot App <[email protected]>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment): acknowledged the skills-review completion notice; it requests no standalone code change. The actionable inline findings are handled individually rather than treating this status as approval.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment): acknowledged the code-quality review status; the status itself requires no change. The three concrete findings are addressed in their inline threads, and publication is not being treated as proof of complete coverage.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment): no code change is needed for this completion notice. I am not interpreting the reported no-action outcome as verification of review coverage.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment): no code change is requested by this test-analysis completion notice. Test-quality concerns from the separate inline review are addressed directly rather than inferred to be cleared by this status.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment): no design or ADR change is requested by this completion notice. The batch remains scoped to the existing coverage contract and its regression checks.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment): acknowledged the specification-review completion notice; it does not itself establish approval. The review's untrusted-evidence finding is handled in the existing inline thread without changing the specification contract.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment): addressed the three recorded themes in their individual threads: structured read-only assertions, pinned complete-coverage noop wording, and an explicit intentional preparation-failure path. I have not edited the bot-managed memory block or treated it as a new independent defect.

Disable shell bridge access, qualify clean no-op requirements, and report precise preparation failures with effective callable-tool regressions.

Co-authored-by: Copilot App <[email protected]>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment), repeated in this batch: the earlier response still applies; this completion notice has no independent requested change. The new actionable Copilot review comments are handled separately.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment), repeated in this batch: no additional change is warranted by the status notice itself. The concrete findings remain covered by their individual replies and fixes, not by an assumption that reported_action means approval.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment), repeated in this batch: no further code change is requested. As before, reported_no_action is not being treated as proof of complete coverage.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment), repeated in this batch: the completion notice adds no new test requirement. The new callable-tool concern receives its own structural regression rather than relying on this status.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment), repeated in this batch: no additional design or ADR change is needed for this notification. The fixes remain within the existing review-coverage and read-only capability contract.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment), repeated in this batch: this is a completion notice, not an additional requested change or approval. The untrusted-evidence boundary from the associated review was addressed in the previous batch and remains intact.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #76588 (comment), repeated in this batch: the previously recorded findings have direct replies, and the newly reported no-op contradiction is handled in its new thread. No edit to the bot-managed memory block is needed.

@pelikhan
pelikhan merged commit 5c3dc53 into main Nov 10, 2026
59 checks passed
@pelikhan
pelikhan deleted the pelikhan/breaking-review-coverage-gaps branch November 10, 2026 22:34
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.3

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.

3 participants