Design human review and validation practices
Learning objectives
By the end of this lesson, you should be able to place evidence-bound human gates, choose collaboration mode independently of tool authority, and design escalation paths that preserve completed effects, uncertainty and safe resumption.
Human review works when the right person receives a decision they can actually make, with the evidence and controls needed to make it. Watching an agent work is useful, but it does not prevent an action. Designing review therefore means connecting business consequences, collaboration mode, tool authority and a durable decision record.
This lesson follows a fictional product-operations team preparing a weekly service briefing from issues in example/service. The team permits reading the selected issues, drafting recommendations and proposing a triage-guide change. A maintainer decides issue closure; a reviewer decides whether a guide change can be integrated. These are assumed business rules. All records and outcomes below are illustrative; they do not describe an installed workflow or an approval, test or deployment performed for this lesson.
Three surfaces recur: a Copilot session in a supported app, CLI or editor; a Copilot automation that starts cloud sessions; and a GitHub Agentic Workflow, authored as Markdown with frontmatter and executed through a generated Actions lock file. Their controls differ. Product procedures here describe supplied source snapshots, principally checked November 7, 2026. The study guide's October 13, 2026 update date is an exam-scope reference, not a claim that every later interface existed then.
Identify critical decision points where human judgment is required
Start with the consequence of the next action. Reading an already authorized issue history usually has a different decision boundary from closing a customer's report, sending information to another system or accepting a recommendation that affects people. Useful human gates occur when evidence is incomplete or conflicting, access would expand to new data or systems, an effect is consequential or difficult to reverse, groups could be affected disproportionately, or final business acceptance requires an accountable judgment.
An observer can inspect progress. A mandatory gate prevents the specified next effect until an authorized person decides. A dashboard that someone might notice is an observation mechanism. It does not implement a pre-closure gate if the closure tool can already execute independently. Make the disputed effect unavailable or held at the appropriate control point while allowing legitimate low-risk work to continue within its existing authority.
Responsible use extends beyond code correctness. Incorrect, incomplete or biased output can damage productivity and trust and can cause financial, psychological or physical harm. Sensitive or irreversible decisions need precautions appropriate to their actual setting. When AI supports consequential decisions or decisions in sensitive settings, make sure affected people can understand how decisions are made, appeal decisions and correct relevant inputs. Assess the applicable legal, regulatory and contractual obligations in the actual context; this guidance does not determine a universal legal rule. A provider's safeguards and a customer's deployment responsibilities coexist. Neither a confident response nor agreement from another model transfers that responsibility away from the person accountable for the decision.
Give each decision a distinct route
A gate should bind the current artifact, evidence, actor and next action. Approval means the specified reviewed action may advance. Rejection keeps it blocked and records why. Revision requests a concrete change, after which the new candidate must be checked again. Missing evidence leaves the decision unresolved and names the fact and owner needed to resolve it. Silence is still a pending decision.
Consider these fictional source reports:
| Input | Available evidence | What the comparison can support |
|---|---|---|
example/service#41 |
Client 4.2; reconnect after sleep; confirmed defect D-17; reproduction log A | A known reconnect defect under those conditions |
example/service#58 |
Client 4.3; initial connection; root cause unknown; reproduction log B | An initial-connection failure, not an established instance of D-17 |
Proposed comparison-v1 |
Calls both reports exact duplicates because both say “timeout” | An unsupported conclusion requiring revision |
The maintainer needs more than the candidate label. The two evidence addresses below belong to this fictional example. Each identifies the report and reproduction log used in the comparison. A complete handoff could be:
Task/run: weekly briefing / teaching-run-21
Repository: example/service
Artifact: comparison-v1
Source for #41, reproduction log A: https://evidence.example/gh700/example/service/issues/41#log-a
Source for #58, reproduction log B: https://evidence.example/gh700/example/service/issues/58#log-b
Matching observation: both users report a timeout
Material differences: 4.2 reconnect after sleep versus 4.3 initial connection
Contrary evidence: #58 does not establish confirmed defect D-17
Missing evidence: #58's confirmed cause and comparable reproduction
Uncertainty: exact duplicate relationship unresolved
Proposed next action: revise the comparison; do not close either issue
Completed effects: comparison draft saved; no external mutation supplied
Decision owner: repository maintainer
Pending decision: whether evidence supports any later closure
Permitted next step: read authorized evidence and prepare comparison-v2
These complete expected branches show what changes the decision:
| Response/input | Artifact and evidence checked | Decision record | Permitted next artifact/action | Remaining state |
|---|---|---|---|---|
| Request revision | comparison-v1, logs A/B |
Shared wording does not establish identical conditions | comparison-v2 with version, reproduction and defect evidence; no closure |
Closure pending; #58 cause unknown |
| Reject closure | comparison-v1, logs A/B |
Different established conditions make this proposed closure unsupported | Retain separate reports and a corrected briefing | No closure authorized |
| Request missing version | A later comparison lacks #58's version | Decision unresolved; reporter or maintainer must supply version | Clarification request or explicitly incomplete draft | Hold closure; missing field stays unknown |
| Approve a bounded action | Hypothetical comparison-v3 now documents the same confirmed defect, version and reproduction in both reports |
Authorized maintainer approves closing #58 as duplicate of #41 under this evidence | Only that closure, through an authorized path; then inspect #58 | Applied state remains unverified until inspected |
| Receive approval for v3 after candidate changed to v4 | Approval refers to v3; v4 adds a third report | Stale approval does not cover changed candidate or third report | Return current v4 and differences for decision | New material scope pending |
The approval row supplies new evidence explicitly. It cannot retroactively validate v1. A recommendation and a maintainer's decision are also different from an observed closed issue.
Persist the gate so resumption is safe
Before waiting, save the minimum durable state outside transient conversation memory: task/run identity, current artifact version, evidence references, completed effects, pending decision, decision owner and permitted next step. If interrupted, inspect that state, the actual current artifact and the real targets before continuing. A lost response after publication is an unknown effect, not evidence that publication did not occur. Do not repeat a completed write merely to reconstruct the conversation.
For teaching-run-21, a resumed session should find comparison-v1, no recorded approval and a pending comparison revision. It may revise within scope. It may not infer closure permission from the fact that a maintainer previously opened the draft. If an approval exists but the artifact changed materially, return for renewed judgment. This is a general architectural persistence principle, not a claim that every GitHub surface provides a universal gate API.
Choose the context for the receiving agent or stage, rather than forwarding all accumulated history automatically. Supply full raw evidence when necessary, a compact summary or selected context when sufficient, or a fresh instruction set when prior context is not useful. Monitor growth from reasoning, tool results and intermediate outputs; summarize or selectively prune between roles. Keep the durable recovery state limited to the progress, intermediate results and history actually needed, reducing token overhead and privacy exposure.
Use automated critique to improve the decision evidence
A maker-checker loop can draft a comparison, assess it against a stable rubric, return precise feedback, revise and recheck. The rubric might require cited issue identities, versions, reproduction conditions, explicit unknowns and no unauthorized closure. A checker saying “improve evidence” is less useful than “the v1 conclusion ignores the distinct initial-connection condition in #58.”
Define a finite cycle policy and a fallback. For example, the team can allow two revision cycles, then route unresolved findings to the maintainer. An enforced cycle limit needs an actual counter/control; a sentence asking for two cycles is only an instruction. Runtime turns, elapsed timeout and credit caps bound different resources and do not count completed critique cycles. Hitting a cap does not make a result acceptable. Preserve an incomplete result and its unresolved facts when the criteria remain unmet.
A second model or Rubber Duck critique can reveal issues but remains an automated assessment. More specialists can introduce latency, growing context, conflicting mutable-state edits and quota pressure. Use additional roles when they address a real uncertainty and reconcile their findings before handoff.
Validate a result before the next stage consumes it. Low-confidence, malformed or off-topic output should prompt a retry, clarification or a halt instead of propagating the defect. Design appropriate timeouts, retries, graceful degradation and visible error reporting; consider circuit breakers for dependencies. Isolate compute where practical and account for rate limits at a shared model endpoint or knowledge store. Available SDK checkpoint support can help recovery after interruption. These are design controls to establish, not a claim that this lesson implemented them.
Match the control pattern to the work as well. A fixed deterministic flow can be unsuitable for inherently nondeterministic decisions, while a nondeterministic agent can be unsuitable for a fixed deterministic rule. Additional coordination should solve a real problem rather than create unnecessary roles and communication hops.
Choose how the agent will perform work, including interactive, plan, and autopilot modes
Collaboration mode, tool-approval policy, model/effort and execution environment answer different questions. Interactive work supports frequent decisions. Plan work establishes an agreed sequence before implementation. Autopilot handles routine writing, testing and iteration autonomously. A stronger model or more reasoning effort grants neither tools nor business authority; higher effort may take longer without establishing correctness.
If you choose Fusion and an effort level, the app automatically selects models and execution patterns for the task. If you have configured your own model provider in the app, its models also appear in the picker. These routing and picker capabilities remain separate from collaboration mode, tool permissions and credential authority; they do not establish that a result is correct.
Configure the actual Copilot app session
In the supplied app guide, select the connected repository or folder, then Environment: This computer or Cloud. Select Workspace: New worktree or Current checkout, including the intended base branch. Choose mode, model and reasoning effort below the prompt. Active sessions appear grouped by repository in the sidebar. Confirm the actual session rather than carrying assumptions from another checkout.
The mode can change during the session. For that session's permissions, open the mode control below the prompt, hover over Tool permissions, and choose the intended setting. The separate Settings > Sessions > Tool permissions setting establishes the default for future local sessions. Changing that default is not the same as confirming the effective permissions of the current session.
| Tool policy | Documented behavior | Review implication |
|---|---|---|
| Ask every time/manual | Requests human approval for tool use under the effective policy | Inspect the actual request and existing grants |
| Assisted | A model assesses eligible requests and prompts for those still needing approval | Assessment is not a security verdict or business acceptance |
| Approve all/unconditional | Runs tools without individual-action approval | Per-action oversight is removed; business gates require their own implementation |
Autopilot can coexist with a separate approval policy and retained consequential-action gates. It does not imply that Approve all was selected.
A local sandbox restricts filesystem, network and credential access available to agent tools on the user's machine. A cloud sandbox hosts the entire session in GitHub's environment. Local /sandbox controls and policies do not apply to cloud sandboxes or remote-host sessions. Optional WSL setup has its own authentication and environment choices; it is not a prerequisite for selecting a collaboration mode.
A cloud session can be followed and steered across Copilot clients, according to the supplied app guide. Confirm the actual session and account; that continuity does not turn local sandbox settings into cloud or remote-host controls.
Recognize the CLI plan boundary and its exception
In the supplied Copilot CLI reference, /plan enforces protection against clear direct project-file edits, patches and workspace shell changes. Private planning files are permitted, and delegated helpers inherit the project-file restriction. Ordinary plan approval exits that protection so implementation can proceed.
The protection has material exceptions: ambiguous shell effects and connected external/MCP calls can still have effects. To require no external writes, constrain real tools and credentials. Enabling a tracker closure tool and relying on the word “plan” does not establish that closure is prevented.
CLI shell-safety analysis can trigger additional warnings for risky commands; whether approval is required depends on the permissions in effect. A warning or the word "plan" is not itself an airtight boundary.
With sandboxing enabled and Allow sandbox bypass on—the documented default for that setting—a synchronous shell command blocked by filesystem or network policy can prompt to run outside the sandbox. Approval reruns the command; declining retains the blocked result. The prompt can also offer to disable sandboxing for the rest of the current session. That choice affects every remaining command in that session, not just one call; starting a new session with /new sandboxes commands again. It does not change the saved sandbox setting or other running sessions.
A detached command cannot be wrapped by that sandbox because it outlives the tool call. With Allow sandbox bypass on, it requires approval before starting and runs unsandboxed if approved. On Windows hosts that support denial capture, approval of a blocked interactive shell command can first rerun it with file and process restrictions recording rather than blocking while network policy still applies. If it remains blocked, the disclosed retry can fall back to full bypass. The result is labeled "sandbox relaxed" when network policy remains or "sandbox bypassed" when fully unsandboxed; a failed retry still remains subject to host-level permissions. Inspect the actual result and scope instead of treating all approvals as the same grant.
The CLI startup combination --plan --mode autopilot explicitly plans and then proceeds automatically when ready. It is not a mandatory human approval gate. The reference rejects other --plan --mode pairings and disallows combining --plan with --autopilot. Keep this CLI-specific exception distinct from the ordinary app Plan review path.
Other CLI startup controls answer different questions. -i PROMPT starts an interactive session and executes the initial prompt; -p PROMPT runs programmatically and exits after completion, or with a nonzero status if interrupted. --no-ask-user disables the question tool; it does not grant tool permissions. --autopilot continues work until task_complete is called, then returns to interactive mode. Keep that continuation behavior separate from the explicit plan-then-autopilot combination above.
--max-ai-credits=CREDITS is a soft maximum for each response, resets per user message, and can be adjusted during a session with /limits. --max-autopilot-continues=COUNT instead limits automatic continuations outside an active Autopilot objective; its documented default is 5. It does not count critique cycles or cap the active objective itself.
| Continuation-count input | Documented outcome outside an active objective |
|---|---|
| Omitted | Default maximum of 5 automatic continuations |
0 |
Valid nonnegative integer; no automatic continuations under this outside-objective allowance |
5 |
Valid nonnegative integer bound |
Negative, fractional, NaN or scientific-notation value such as 1e3 |
Rejected as an invalid count |
These are source-defined control expectations, not observed CLI runs. A soft credit maximum, continuation count, runtime turn or timeout and an accepted business result are different contracts; no new CLI timeout flag or successful-delivery guarantee is implied.
Worked selection matrix
Each row is a proposed choice under the fictional policy, not an applied configuration or observed run.
| Task input/condition | Target and environment | Mode | Effective tool policy/capabilities to establish | Required result | Retained decision |
|---|---|---|---|---|---|
| “Find duplicates,” with no agreed definition | example/service, current local checkout |
Interactive | Manual; authorized issue reads; no closure tool | Agreed comparison criteria and list of unknowns | Maintainer defines acceptable duplicate evidence |
| Criteria agreed; collection sequence and exclusions need review | example/service, selected local worktree/base |
Plan | Manual; reading capabilities; external writes excluded | Reviewed plan listing inputs, dependencies, validation, limits and exclusions | Plan approval permits only reviewed implementation scope |
| Reviewed plan; bounded evidence-linked briefing and guide draft | Same repository, deliberately selected Cloud workspace/base | Autopilot | Separately selected effective permissions; only needed reads/drafting and reviewed output path | Briefing draft and guide proposal with sources/unknowns | Closure and guide integration still require accountable decisions |
| Plan session retains an enabled external close-issue MCP tool and broad credential | Selected external tracker plus repository | Plan alone is insufficient | Inspect and remove/constrain the write capability or hold delegation | Evidence that external write boundary is actually enforced | No assumption that plan protection covers the tracker |
If the effective tool policy, base branch or credential reach is unknown, record it as unknown and verify it before depending on the boundary. The matrix proposes a control design; it does not certify one.
Design and configure escalation paths based on tool usage
An escalation names the trigger, prevented effect, accountable recipient, evidence and resumption condition. Missing evidence calls for clarification. A failed validation calls for repair. A denied operation remains denied. Exhausted resources require an honest partial result and a decision, rather than broader access or an indefinite loop.
Diagnose availability before permission
Copilot CLI's --available-tools is an allowlist of tools the model can choose; --excluded-tools removes named tools. If both appear, the available-tools allowlist wins and the excluded-tools list is ignored. --allow-tool cannot restore a tool absent from the available set. For exposed tools, --deny-tool overrides allows, allow-all and saved consent. Autopilot does not bypass either layer.
CLI tools can read and write files, run shell commands, use the network and delegate work with effects permitted by the user's account. Read-only operations such as searching, reading files or read-only shell commands are generally allowed automatically, subject to applicable policy. In manual mode, requests not already allowed prompt for approval, with one-time or remainder-of-session choices. Those CLI rules are not established by the app's separate permission table.
Approval scope also varies. A one-time grant differs from a remainder-of-session grant. Current-location tool and directory grants are stored in permissions-config.json in the CLI configuration directory and scoped to the repository root or nonrepository working directory. Permanent URL-domain approvals live separately in settings.json under allowedUrls and span sessions. Startup rule options affect the current session.
/reset-allowed-tools returns to manual approval, clears current-location saved tool/directory grants and rearms Autopilot approval. Explicit startup tool/URL allow/deny baseline rules remain. It does not promise deletion of another location's grants or global URL-domain policy. Inspect the effective baseline before diagnosing a reset as ineffective.
Review autonomous cloud MCP reach before delegation
Assigned or @mentioned Copilot cloud work calls configured MCP tools autonomously without per-call approval. Inspect availability, tool selection and credential scope before assignment. The supplied cloud defaults use current-repository read-only GitHub access and Playwright access to localhost/127.0.0.1 in the agent environment. Explicit broader credentials can expand that reach. An automation's native Only this issue restriction does not narrow arbitrary MCP credentials.
Check whether managed MCP policy actually applies to the user. In the supplied snapshot, an enterprise or organization can enable or disable MCP through MCP servers in Copilot, which is disabled by default. This policy governs users whose Copilot Business or Enterprise subscription is supplied by the organization or enterprise configuring it. Copilot Free, Pro, Pro+ and Max access is not governed by this policy. That distinction does not override actual tool availability, authentication or credential limits.
Personal key-authenticated MCP servers are cloud-sandbox-specific, available in every personal cloud session without per-session selection. Personal secrets use approved COPILOT_MCP_ references; account/organization availability must match the session. Prefer an available verified connector where appropriate. Custom HTTP/SSE URLs do not support query parameters; use supported headers. The source allows up to 50 personal plus repository servers in total. An unavailable server needs a configuration, secret-availability and account check, not a blanket grant.
By default, personal MCP server secrets are available to sessions scoped to the personal account. Their use can also be explicitly allowed in selected organizations; verify that selection for the actual session rather than assuming cross-organization availability from the secret's name.
Repository administrators configure shared MCP servers available to writers and code review; use a service account rather than shared personal credentials. Repository settings cannot reference personal MCP secrets and override same-name personal servers. For cloud custom agents, default settings are processed before agent settings and then repository settings; this is not CLI project-file precedence. Direct IDE custom agents do not use that cloud mcp-servers property. Automations select their actual tools separately.
MCP tool use for code review can be disabled separately. That configuration decision is independent of whether a tool declares the required read-only annotation or a shared server is otherwise available to repository writers.
Cloud agent and code review support MCP tools, not server resources or prompts; repository/custom-profile remote OAuth is unsupported in the supplied snapshot. Code-review tools require annotations.readOnlyHint: true; this eligibility annotation does not restrict an overpowered credential. Review actual server/tool exposure, administrator policy, allowlists and least required credential reach for the specific host.
Examine the actual writer in gh-aw
Read-only agent work buffers proposed safe outputs; separate permission-controlled jobs apply permitted effects. A proposal, staged preview and created issue are distinct. Trusted custom jobs, setup code and injected credentials retain their own authority. Compiler, redaction, network and gateway defenses do not turn all custom code into read-only code. A domain allowlist is not a judgment about every request; gateway/proxy identifiers are not a substitute for arbitrary-code authentication. Host, runtime, kernel, firewall and credential producers remain trust dependencies even when containers or eligible microVMs provide isolation.
For trusted executable configuration, retain full commit-SHA or image-digest pins, update to reviewed patched releases, then recompile and review the deployed locks. An immutable historical pin does not acquire later fixes. Review strict-mode opt-outs, skipped or suppressed lint checks, broader role or bot admission and disabled sandbox/firewall/detection or custom mounts/credentials as changes to the trust model; acknowledging a warning is not enforcement. Compilation also does not establish host cleanliness, cache provenance or trusted upstream producer code. Review those actual states separately.
In this gh-aw architecture, configured container-based MCP servers each run in their own isolated container, separate from the agent. Each server's network controls limit its connections, and the workflow's tool allowlist limits which operations the agent can call. At runtime, the server receives its configured credentials through environment variables populated from secret references. Review the actual credential and target before deciding whether to permit a proposed effect.
Threat detection examines buffered artifacts in a separate job, not all live repository/runtime state. On a threat or detector failure, default continue-on-error: true warn policy annotates reviewable outputs, converts branch pushes into review PRs and aborts nonreviewable operations. continue-on-error: false blocks safe outputs. A failure or invalid result is no verdict. Any output that reaches review still requires judgment.
The functional order matters before and after detection. Preactivation admission checks can prevent startup; activation then prepares context, sanitizes event input and validates the lock before agent work. Agent output is redacted and buffered/uploaded before the separate detector consumes it. The configured detection policy determines which scoped output effects may proceed. The final conclusion aggregates results, including blocked or aborted outcomes; a generated summary is not proof that a target write was applied. Inspect the actual target state. This describes the dependency boundary, not a full job graph or an implemented business gate.
Complete escalation packet and branches
Task/run: weekly briefing / teaching-run-22
Artifact/evidence: comparison-v2; #41 log A; #58 log B
Tool/handler: proposed close-issue MCP operation
Target: example/service#58
Proposed change: close as duplicate of #41
Trigger: closure denied; defect evidence also incomplete
Blocked effect: issue closure
Completed effects: comparison draft only; external closure not established
Unknowns: #58 confirmed defect; any uninspected target state
Recipient: repository maintainer
Requested decision: reject closure or request the missing evidence
Resumption condition: current evidence and artifact reviewed; only a separately authorized next action may advance
Expected output: revised comparison or explicit unresolved handoff
| Different trigger | Correct routing | Expected state/result |
|---|---|---|
| Required lookup absent from available tools | Tool/configuration owner checks actual exposure | Lookup unavailable; no invented result; no repeated approval workaround |
| Available destructive call denied | Accountable maintainer assesses task boundary | Operation stays blocked; allowed drafting may continue |
| Missing version prevents comparison | Reporter/maintainer supplies deciding input | Recommendation unresolved; missing field named |
| Validation finds unsupported duplicate claim | Author repairs against the same rubric | New version requires recheck before downstream use |
| Two configured critique cycles exhausted | Maintainer receives partial result and failed criteria | Incomplete result; no automatic pass or unlimited loop |
| Detector fails with a reviewable output in warn mode | Security/repository reviewer inspects annotation and content | No verdict; review surface does not establish approval |
As autonomy increases, match evidence to the uncertainty. Report-only or staged results assess proposed decisions. A separately authorized shadow exercise uses a safe disposable nonproduction target to assess actual writes, permissions, deduplication and concurrency. Preview cannot prove those effects. Preserve predictions as they existed at decision time and identify later corrections by author/provenance. Production events and trusted human adjudication remain authoritative; an automated edit does not become a trusted label merely by existing. Production promotion is its own deliberate decision.
The resulting design should let authorized low-risk work proceed, stop the exact disputed effect, and give the appropriate person a current, evidence-linked decision. No permission, credential, gate, shadow test or external action was configured or executed to create this lesson.
Summary
Bind human decisions to current evidence, artifact and authority. Choose work mode, environment and tool permissions separately, and diagnose availability, denial and credential reach at their actual layers. Persist pending decisions and completed effects so clarification or repair permits only the appropriate next step. Automated critique and staged proposals support judgment; they do not establish accountable acceptance or verified live writes.
