Skip to content

Clarify Test Quality Sentinel safe-output comment invocation to prevent Copilot engine permission failures#39867

Merged
pelikhan merged 4 commits into
mainfrom
copilot/copilotfix-sample-property-schema
Jun 17, 2026
Merged

Clarify Test Quality Sentinel safe-output comment invocation to prevent Copilot engine permission failures#39867
pelikhan merged 4 commits into
mainfrom
copilot/copilotfix-sample-property-schema

Conversation

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Test Quality Sentinel failed when the Copilot engine attempted to post its report via shell (safeoutputs add_comment) and hit a non-interactive permission boundary. This change tightens the workflow prompt so comment posting is executed through the intended safe-output tool path.

  • Prompt contract hardening (test-quality-sentinel.md)

    • Step 7 now explicitly requires a safe-output tool call for add-comment (not bash/shell invocation).
    • Added the expected payload shape for clarity and consistency.
    • Explicitly instructs the agent to omit item_number so targeting stays on the triggering PR context.
  • Compiled workflow update (test-quality-sentinel.lock.yml)

    • Regenerated lockfile to reflect the prompt/body change and keep source + compiled workflow aligned.
{"add_comment":{"body":"<full markdown report>"}}

Copilot AI and others added 2 commits June 17, 2026 18:41
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Test Quality Sentinel failure Clarify Test Quality Sentinel safe-output comment invocation to prevent Copilot engine permission failures Jun 17, 2026
Copilot AI requested a review from pelikhan June 17, 2026 18:47
@github-actions github-actions Bot mentioned this pull request Jun 17, 2026
@pelikhan pelikhan marked this pull request as ready for review June 17, 2026 20:46
Copilot AI review requested due to automatic review settings June 17, 2026 20:46
@pelikhan pelikhan merged commit a2d3ece into main Jun 17, 2026
@pelikhan pelikhan deleted the copilot/copilotfix-sample-property-schema branch June 17, 2026 20:47

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.

Pull request overview

This PR updates the Test Quality Sentinel workflow prompt to ensure the run posts its report via the intended safe-output comment mechanism (rather than invoking safeoutputs from a shell), and regenerates the compiled lockfile to keep it in sync.

Changes:

  • Tighten Step 7 instructions in test-quality-sentinel.md to require a safe-output-based PR comment emission path and document the expected payload shape.
  • Regenerate test-quality-sentinel.lock.yml to reflect the updated prompt content (body hash).
Show a summary per file
File Description
.github/workflows/test-quality-sentinel.md Clarifies the Step 7 comment-posting contract to steer the agent away from shell-based safeoutputs usage.
.github/workflows/test-quality-sentinel.lock.yml Updates compiled workflow metadata to match the modified prompt content.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

## Step 7: Post PR Comment with Results

Post a comment to the pull request with the full analysis using `add-comment`. Use the `tqs-report-template` skill for the exact comment format.
Post a comment to the pull request with the full analysis using the `add-comment` safe-output tool (tool call, not shell). Use the `tqs-report-template` skill for the exact comment format.
{"add_comment":{"body":"<full markdown report>"}}
```

Do **not** invoke `safeoutputs` from bash, and do **not** set `item_number` for this step. Let `add_comment` auto-target the triggering pull request.
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