A team adds a manual workflow so reviewers can record the intended contract for an agent task before assigning the issue to Copilot. The team expects this workflow to make the input issue, expected output, and success criteria explicit. Evaluate the following statements. 1. The workflow requires reviewers to provide task contract fields when manually started. 2. The workflow automatically validates Copilot draft pull requests targeting main. 3. The workflow records criteria but does not prove the agent met them.
name: record-agent-task-contract
on:
workflow_dispatch:
inputs:
issue_number:
description: "Issue used as the agent input"
required: true
type: string
expected_outputs:
description: "Files or artifacts the agent should produce"
required: true
type: string
success_criteria:
description: "Checks that must pass before review"
required: true
type: string
permissions:
contents: read
issues: write
jobs:
record-contract:
runs-on: ubuntu-latest
steps:
- name: Write contract summary
run: |
echo "Input issue: ${{ inputs.issue_number }}"
echo "Expected outputs: ${{ inputs.expected_outputs }}"
echo "Success criteria: ${{ inputs.success_criteria }}"Choose an answer
Tap an option to check your answer.
Correct answer: 1=Yes 2=No 3=Yes.
Why this is the answer
Statement 1 is correct because the workflowdispatch event with required: true for issuenumber, expectedoutputs, and successcriteria explicitly forces the user to provide these fields when manually triggering the workflow. Statement 2 is incorrect because the workflow is triggered by workflowdispatch (manual trigger), not by pull request events, and its steps only print a summary, not validate PRs. Statement 3 is correct because the workflow's record-contract job merely prints the provided successcriteria to the console; it does not contain any logic to execute or verify these criteria against an agent's output.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed