PUBLIC BETA OFFER

Save 50% off on an Eligible Learning PlanValid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026

Interact with agentic workflows

Respond, steer, diagnose and stop the correct run while preserving separate approval and effect states.

Identify the exact approval object, artifact version and execution before responding or steering. Verify corrections through later activity, diagnose the first supported failure layer and inspect partial or unknown effects before recovery. Keep maintenance replay authority, current-run stopping, future-start controls and external reversal separate, retaining pinned version conditions and unresolved outcomes.

Knowledge domain
Perform human-in-the-loop tasks for agentic workflows (20–25%)
Topics & tags
Published
Author
LearningPathX Editorial TeamContent version 1.0
Resources

Interact with agentic workflows

Learning objectives

By the end of this lesson, you should be able to respond to a version-bound decision request, use supported current-run intervention, diagnose failures before recovery, and distinguish verified stopping from remaining effects and future-start controls.

An interaction changes the course of work only when it reaches the right execution at a supported control point. Approval, revision, steering, failure recovery and stopping are related operations, but they affect different objects and states. Effective supervision begins by identifying the exact session or run, what has already happened, and the next effect that remains controllable.

This lesson uses a fictional weekly briefing task in example/service. Reading selected issues and drafting a guide change are allowed; issue closure and guide integration require their separate maintainer decisions. Example run IDs, files, observations and expected results are teaching inputs. No approval, comment publication, compilation, replay, cancellation or remote test was performed for this lesson. Procedures follow supplied source snapshots, principally November 7, 2026. The four implementation findings explicitly identified below bind gh-aw v1.2.2, commit 399a445fe2d8926c616b54b1b82a16b5b2be4445, released November 10, 2026.

Respond to requests for interaction from agentic workflows, including approvals, rejections, or revisions

First identify the approval object. Plan approval accepts a sequence, scope, exclusions, dependencies, validation and stopping conditions. Tool permission permits a capability under a stated boundary. Artifact review judges a current result. PR approval is a repository review action. Assignment delegates work. None automatically supplies the other decisions.

For a tool request, inspect the operation, inputs, target, affected data and consequence. For an artifact, compare its exact version with the requirements and evidence. The authorized actor's approval covers that reviewed boundary. Material changes in content, target or scope require renewed judgment under the applicable process. An acknowledgment or a resolved feedback marker is not proof that the requested state exists.

Give a response the agent can act on

Suppose comparison-v1 proposes closing report #58 as a duplicate of #41. Supplied evidence says #41 affects client 4.2 reconnect after sleep with confirmed defect D-17; #58 affects client 4.3 initial connection with no confirmed cause. Both mention timeouts.

Request revision of comparison-v1. Compare each report's affected version,
reproduction condition and confirmed-defect evidence. Cite the deciding
source for each fact and identify unknowns. Do not close either report or
publish a comment. Return comparison-v2 for the maintainer's decision.

The expected record is complete enough to resume:

{
  "task_run": "weekly-briefing/teaching-run-31",
  "reviewed_artifact": "comparison-v1",
  "decision": "revision-requested",
  "evidence": ["#41: client 4.2 reconnect; D-17 confirmed", "#58: client 4.3 initial connection; cause unknown"],
  "reason": "Common timeout wording does not establish matching conditions",
  "required_revision": "Compare version, reproduction and defect evidence with citations",
  "authorized_next_step": "Prepare comparison-v2 from authorized issue evidence",
  "blocked_actions": ["Close #41", "Close #58", "Publish comment"],
  "remaining_uncertainty": "#58 confirmed cause",
  "completed_effects": ["comparison-v1 draft"],
  "next_owner": "Repository maintainer",
  "external_effect_state": "No external mutation established by this example"
}

Under the same policy, a request to close a report in another repository receives rejection of that action while allowed comparison continues. Missing #58 version produces an unresolved-input response naming the missing field and its owner. A hypothetical v3 with matching confirmed defect, version and reproduction can receive approval for the specific closure from the authorized maintainer. Afterward, inspect the actual issue state. An approval for v3 cannot cover v4 if v4 materially changes the recommendation.

Use the actual harness review controls

In supported VS Code Copilot/Local editor working sets, pending edits are already saved on disk. Tests use those changed files before Keep. Keep retains edits and clears their pending-review state without staging or committing. Undo reverts pending edits without rewinding the conversation. Staging corresponding changes keeps those pending edits. These are distinct file-review states, not interchangeable merge decisions.

The working set tracks supported edit tools. Terminal commands, scripts, MCP and untracked-tool changes can be absent. Inspect Source Control's changed and untracked files in Git folders and inspect external targets separately. Claude/Codex editor harnesses use saved diffs; the Agents window uses Changes; cloud sessions use PR diffs or the checked-out branch. Agents Other Files can include outside-workspace plans that will not be committed with the workspace. Select the actual changeset and inspect its scope.

In Agents Changes, select the relevant code range, enter comments and use Submit Feedback to send accumulated comments to the agent. Reopen the revised content after the agent resolves them. A reviewed marker can clear when a file changes; the marker tracks review activity, not acceptance of every later version.

The separate experimental Add PR Comment publishes to GitHub and does not instruct the agent to edit. Its supplied conditions jointly require chat.experimental.agentsWindowPRComments, a Copilot/Claude harness or experimental Codex integration, an associated open PR, and a selected range consisting entirely of PR-diff lines. If multiple PRs are associated, inspect the displayed owner/repository#number target. Choose the route according to the intended recipient and effect.

Verify repository integration gates independently

Actual branch configuration can require approving reviews by writers, code-owner approval, status checks and resolved conversations. In the supplied documentation, protected branches are available for public repositories on Free offerings and for public/private repositories on the listed Pro, Team and Enterprise offerings. Confirm the real repository and effective configuration; the lesson does not establish current entitlement.

Administrators and bypass roles are exempt by default unless enforcement includes them. One matching branch-protection rule applies at a time; rulesets compose differently. Optional stale-diff dismissal and approval of the latest reviewable push address freshness differently. The latter requires approval by someone other than the latest pusher. Requested changes and relevant pending/rejected reviews still need authorized resolution.

Only organization-owned repositories can add actors to branch-protection bypass lists. By default, a branch-protection rule blocks force pushes and deletion of matching branches; those restrictions can be disabled explicitly. A rule can match a specific branch, all branches or a fnmatch pattern, and auto-merge still waits for the applicable merge requirements. Repository administrators or custom roles with edit repository rules can configure required approvals; qualifying writers or designated code owners provide the approvals. If stale-approval dismissal and/or approval of the latest reviewable push is enabled, a manually created merge commit pushed directly to the protected branch fails unless its contents exactly match the merge GitHub would generate for that PR.

When required-review controls are enforced, an administrator who requests changes must approve before merge. If a change-requesting reviewer is unavailable, someone with repository Write can dismiss the blocking review, subject to any configured dismissal restrictions. Even after this PR has its required approvals, another open PR whose head branch points to the same commit blocks merging while its review is pending or rejected. Someone with Write must approve or dismiss that blocking review under the applicable rules. With either freshness option described above enabled, a merge-base change that introduces new changes dismisses earlier approvals as stale and requires new approval.

Required checks also have their own semantics. The supplied rule accepts successful, skipped or neutral required-check states. A skipped technical check is not proof that a business criterion was exercised. Inspect the actual producer separately from the status. When a specific GitHub App is the expected source, a status set by another person or integration does not satisfy that source gate and merging is blocked. With “any source”, you can still manually verify each status's author. Avoid ambiguous duplicate job names across workflows. Strict is the documented default for required checks and requires the head branch to be up to date with the base branch before merging. Loose does not require that update, but incompatible base-branch changes can make checks fail after merge. Disabling required checks removes that specific restriction, not every other gate. Resolve conversations when the effective rule requires it.

The source-dated automation guidance adds a distinct extra approval for shared-automation PRs when the repository requires at least one approval. Its override is controlled through rulesets, not branch-protection rules. A personal automation acts as its creator, who cannot self-approve that attributed PR. Writer approval before Actions runs on a Copilot-produced PR is another gate. Assignment, permission to execute Actions and integration approval remain separate decisions.

Interact with an agentic workflow while it is running

Open the actual run or session. Inspect its current call/stage, input scope, artifact version and completed effects before intervening. Logs and signed/coauthored commit links support provenance; they do not establish correctness or business acceptance. A later instruction cannot undo a completed write.

Steer a supported Copilot session

On GitHub, open Copilot home, choose the actual session and inspect its log/overview. The supplied native route uses the prompt box below the session log. A bounded correction can say:

Keep this briefing within example/service. #41 is a client 4.2 reconnect
defect; #58 concerns client 4.3 initial connection with an unknown cause.
Compare those conditions before recommending a duplicate. Preserve the
uncertainty. Do not close issues or publish comments.

This input applies after the current tool call finishes. It consumes AI credits and is unsupported for third-party coding agents in the documented route. If a current dangerous effect must be stopped, a follow-up is not an immediate interrupt. Inspect the subsequent activity and resulting artifact to establish whether the correction took effect.

Fictional before/intervention case Expected after-state and required evidence
Session 31 is reading #58; no writes completed; the correction above is sent Message is pending during the read. Later comparison-v2 must preserve version/condition differences; inspect the actual next artifact
Session 32's comment-publication call completes before follow-up is applied Existing comment remains a separate effect. Inspect it and obtain authorized recovery; subsequent corrected work does not remove it
Session 33 is a third-party coding agent Do not assume the native prompt-box steering feature works; use its actual supported controls or escalate
gh-aw run 34 has an identified experimental steering issue Use the run-specific issue route described next, then verify the relevant comment was read and affected later work

A durable intervention record should contain run/session, current call, completed effects, correction text, target scope, evidence, expected next artifact, observed read/application state and unresolved effects. For session 31, the application state before its read finishes is not yet effective, and the external-effect state is none supplied in the fictional input. Do not replace either with “corrected” merely because the message was submitted.

Use experimental gh-aw steering on its own terms

A compiled gh-aw workflow executes its generated Actions definition; it does not automatically expose the Copilot session prompt box. The supplied Safe Outputs reference separately defines experimental safe-outputs.steer: true. Compilation emits a warning. Activation creates an issue scoped to the actual run before agent startup. Users add comments containing steer; the injected prompt identifies that issue and directs the agent to read relevant user-authored comments using GitHub MCP issue_read. No guaranteed polling interval or interruption latency is established.

permissions:
  contents: read
  issues: read
safe-outputs:
  steer: true

This is a fragment, not a complete workflow. Explicit top-level issues: read is required; the compiler errors instead of adding it. Separately, activation/conclusion need issues: write through the global safe-output github-token or github-app credential. Verify approved credential references and effective rights without placing secret values in a workflow explanation or issue. A user comment is task input, not a permission grant.

The initial issue includes generated-by attribution and workflow/run/tracker/available-engine metadata, using configured messages.footer when supplied. On success, conclusion closes that same issue and links a created PR when available. On failure, it retitles and updates that same workflow-repository issue instead of creating a second steering issue. This reuse makes failure-issue-repo incompatible.

Staged mode creates no steering issue. Neither does a run whose daily AIC guardrail actually blocks startup; normal failure-report deduplication is separate. Missing-by-design is different from failed creation or missing write authority. The daily guardrail's event exceptions must still be evaluated under the actual version.

For run 34, a complete expected intervention record is:

Run/target: teaching-run-34 / example/service / identified steering issue #120
Before: agent running; current activity read #58; completed effects #120 only
Configuration prerequisite: experimental steer enabled; explicit issues:read;
  global safe-output credential verified for issues:write
Input: user-authored “steer: preserve the different versions and reproduction
  conditions in #41 and #58; no closure or permission expansion”
Evidence: #41 log A; #58 log B
Expected next artifact: comparison-v2 with unknown #58 cause retained
Read state: unknown until actual issue_read evidence is inspected
Success evidence required: relevant comment read plus corrected artifact/actions
Conclusion expectation: same #120 closed on success or retitled/updated on failure
Unresolved: actual comment consumption and later content in this teaching example

For a staged or startup-blocked input, change the issue field to not created by design; there is no #120 lifecycle to apply.

Distinguish intervention from the next definition

A Markdown body-only change can affect the next gh-aw run without product-mandated recompilation in the supplied lifecycle guidance. Frontmatter changes to execution configuration require compilation and source/lock review; repository policy may additionally require compiling body changes. Commit the reviewed source/lock pair as required. Neither edit proves instructions already consumed by the current run were rewritten. Choose current-run steering or stopping separately from future-definition repair.

Interact with agentic workflows to resolve failures

“No published report” is an observation with several possible causes. Establish whether a run exists, then find the first relevant blocked/failed layer. Preserve the exact repository, workflow, run URL/ID, job, inputs and current target state. Separate observed facts from causal diagnosis and proposed repair.

Evidence Classification Next evidence to inspect
No run exists Trigger/activation unestablished Enablement, event, default-branch definition, filters and actor lifecycle
Run waits for a decision or command gate Gated work Required decision and authorized actor
Job's runtime if is false Conditional skip Expanded condition values and intended policy
Agent/tool step errors Execution failure First relevant error, dependencies and effective tools/credentials
Agent completed; handler staged Intent produced, write withheld Summary preview and actual staging scope
Report exists; later guide handler failed Partial application Existing report identity and guide target before retry

For no-run cases, check disabled workflows, on: events, event/default-branch requirements, filters, PR merge conflicts and commit-skip annotations. The supplied path-filter reference evaluates only the first 3,000 changed files. Scheduled Actions can be delayed or dropped; an actor being suspended, deleted or deprovisioned can affect scheduling even when manual runs work. An expected minute passing is not proof of model malfunction.

For created-run skips, download the job log archive and inspect JOB-NAME/system.txt for Evaluating, Expanded and Result. Expanded shows actual substituted runtime values. “Explain error” advice can help investigate but is not a demonstrated repair.

Connect the selected run to bounded diagnostic evidence

Use the documented CLI routes to locate evidence at the right scope. These are command examples, not executed investigations:

gh aw logs
gh aw logs issue-triage-agent
gh aw audit <run-id>
gh aw logs --format markdown [workflow]

The first command gives recent per-run elapsed duration, tokens, AIC and turns; the second selects one workflow. Replace <run-id> with the exact selected run for its tools, token/inference use, AIC and estimated-cost detail. The Markdown route reports cross-run trends and anomalies; [workflow] denotes an optional workflow selector, not a literal bracketed name. A routing summary separates classifier overhead from selected-model and deviated traffic, which can include sub-agents or overrides.

Elapsed duration is wall-clock time. Actions compute is billed in minutes rounded up per job, so a run's duration is not its billed minutes or hands-on operator time. Tokens, AIC, turns and estimated inference spend have their own units and scope. Do not infer a cause, accepted result, actual invoice or labor saving from a shorter or cheaper run. Keep missing measurements unknown and inspect the exact failed stage and target before choosing a repair.

Use failure categories as evidence rules

The following source-defined categories distinguish different layers. Choose a supported class from actual evidence; a category name is not proof that its underlying cause was established.

Category Evidence-sensitive meaning
agent_failure Agent crash or nonzero exit, excluding timeouts; preserve more specific runtime evidence
timed_out Agent execution exceeded its timeout
missing_safe_outputs Agent succeeded but produced no safe outputs
report_incomplete The task was reported incomplete; this can coexist with ordinary outputs
agent_startup_failure Matching not_started/setup evidence establishes failure before agent execution
engine_driver_failure Driver failure before terminal output, or a final engine error even with process exit 0 and safe outputs present
secret_redaction_failure Secret redaction is the selected failing step, independently of generic agent failure
safeoutputs_cli_error Safeoutputs CLI failed and no terminal safe output was recorded
invalid_safe_outputs Output validation rejected the output, leaving no terminal safe output
missing_terminal_safe_output No terminal safe output remains, including diagnostic-only exits, absent a more specific runtime failure
missing_tool Required functionality is unavailable
missing_data Required deciding data is inaccessible
inference_access_error Inference endpoint authentication/access failure
model_endpoint_mismatch The configured model does not support the selected API endpoint
copilot_org_billing_error Copilot CLI organization billing prevents authorization
mcp_policy_error MCP policy prevents the required server use
ai_credits_rate_limit_error An AI-credit rate limit was exceeded
max_ai_credits_exceeded The maximum AI-credit budget was exceeded
activation_failed Activation failed before agent startup without a named guardrail failure
cache_miss_misconfiguration Cache configuration failed
code_push_failures A branch push failed
assignment_errors Issue or reviewer assignment failed

A startup diagnosis needs an actual matching not_started record and, where available, the failing setup/gateway step. Missing, unreadable, invalid or mismatched evidence does not establish that state. Observed agent execution overrides a stale marker. If the jobs API positively confirms that the entire run has no jobs, generated failure reporting creates no failure issue, update or parent report; such a run may be awaiting approval rather than failing in the agent. An API error or missing metadata in a nonempty job list does not qualify. Setup failures inside a started job remain reportable.

An unexplained nonzero final driver exit has the documented driver_crash diagnosis, not an invented provider outage. A final fatal-signal exit takes priority over earlier request errors; a recovered crash attempt does not override a recorded non-crash final exit. Explicit provider, request or budget evidence can explain ordinary nonzero exits. Preserve recognized exit/signal meaning and bounded runtime-stage diagnostics, not raw stderr. A final engine-result error can still be engine_driver_failure when the process exited 0 and safe outputs exist. Secret-redaction failure has separate bounded operation/error-code diagnostics; a recorded startup failure retains priority over a later redaction failure.

Without a more specific runtime failure, missing terminal output is missing_terminal_safe_output, not inferred outage or exhaustion. Tool registration prefers a valid setup cache, then an archived gateway snapshot if that cache is absent, unreadable or invalid. Neither proves continuing availability: a recorded gateway zero-tools flag overrides registration as unavailable, and an unreadable flag leaves availability unknown. Report CLI attempts and gateway requests separately; the same invocation can appear in both, so do not add them as distinct calls.

Output persistence records missing, empty, nonempty or unreadable files and record/malformed-record counts. Those observations do not prove validation or publication. Explicit report_incomplete may accompany ordinary safe outputs and is not relabeled as missing terminal output. Run summaries still exist when failure-issue reporting is disabled.

Publish only bounded, secret-redacted diagnostic reasons. An agent-declared reason stays unverified unless it matches a trusted collector cause; a matching reason is presented as runtime-derived classification. Exclude agent tool names, commands, arguments, results, schemas and diagnostic/error text even when no recognized secret appears. Omit reasons from summaries when secret redaction fails. Missing evidence remains unknown/not recorded, malformed call logs remain partial, and unrecognized failure formats require the exact run's logs rather than a raw fallback tail.

Review the real executable root Markdown and lock, actual imported shared files and relevant tools/context/network configuration. A shared imported Markdown component is not a missing-lock error simply because it has no standalone executable lock. The pinned health-manager example's inventory, scores, thresholds, phase times and folder choices are example policy. Revalidate its old diagnoses against current commits; an old warning can outlive a merged fix while a metric still lags.

Investigate connectivity at its demonstrated layer: DNS, firewall/proxy, certificate, subnet/IP, operating system or third-party service. Use secret references and actual identity/permission evidence, never token values. OIDC, WireGuard and Azure private-networking references in the supplied troubleshooting guide are optional infrastructure pointers; they are not instructions to install new networking or a claim that an OIDC identity is authorized for the failed target. Route actual organizational-network issues to its administrator and unresolved service/platform issues to the appropriate owner or Support.

Establish what was applied before choosing recovery

The gh-aw agent's read-only analysis and buffered agent_output.json differ from privileged safe-output jobs. Trusted custom code and credentials have separate authority. Queue output_id acknowledgement is not resource creation. Dependencies need actual successful prerequisite operations: staged, skipped, failed, cancelled, deferred or delegated work is not success. Missing, ambiguous or cyclic dependencies fail closed; preceding successful effects are not automatically rolled back. A report can exist even though an attachment or later guide operation failed.

Inspect the actual distribution of credentials, job permissions, host mounts and network access. Authored pre-activation, setup/post-steps, custom jobs, detection steps and safe-output steps/actions are trusted executable code, not automatically confined to the agent sandbox. A read-only GITHUB_TOKEN does not remove other credentials or privileged host access. A domain allowlist limits destinations; it does not establish that every request to an allowed service is safe.

For a repair that changes this configuration, retain full commit-SHA or digest pins, update to reviewed patched releases, then recompile and review deployed locks; an old immutable pin does not acquire later fixes. Review policy opt-outs such as strict: false, skipped or suppressed lint, broader roles or bot admission, disabled sandbox/firewall/detection, and custom mounts or credentials as changes to the trust model. Check the actual host isolation and cross-run artifact producer rules: compilation alone establishes neither host cleanliness, cache provenance nor producer-code trust.

Separate no action from an incomplete task

Use noop only when analysis establishes that no GitHub action is needed and no other safe-output action was taken. It is enabled by default but can be disabled with noop: false. The default maximum is two real calls. Obvious placeholder probes such as test or probe are ignored entirely and do not consume that budget or appear as real completion messages.

For an otherwise successful run containing only no-op outputs, reported_no_action means that the agent succeeded and reported no action; it does not independently verify business completion or publication readiness. A failed agent remains incomplete despite emitting noop. Explicit report_incomplete also makes reusable tracking incomplete. Registration-only diagnostic reports are ignored only when both terminal completion evidence and real task-level outputs exist. This narrow exception does not override agent failure. Other unconfirmed agent conclusions are not posted to the tracker, and historical tracker comments are not rewritten. Silence is not intentional no action.

When no terminal safe output is recorded, post-agent validation adds report_incomplete with the detected cause. A diagnostic-only report_missing_tool or report_missing_data does not complete the requested task. Distinguish unavailable functionality/permission from inaccessible deciding data so the next owner repairs the right prerequisite rather than widening access unnecessarily.

The YAML controls report-missing-tool and report-missing-data are enabled by default and explicitly disableable. Missing-data reporting can optionally create or update a real diagnostic issue when create-issue: true; it records the needed data, why it matters, alternatives and intended use. Its title prefix, labels, maximum and actual reporting token determine that separate effect. The maximum defaults to unlimited, not the illustrative limit below. A diagnostic issue supplies neither missing evidence nor authority to change the original task.

# Illustrative fragment, not a complete workflow or verified credential setup
safe-outputs:
  report-missing-data:
    create-issue: true
    title-prefix: "[data]"
    labels: [data, blocked]
    max: 10
    github-token: ${{ secrets.DIAGNOSTIC_ISSUE_TOKEN }}

DIAGNOSTIC_ISSUE_TOKEN is a placeholder secret reference; verify its actual identity and issue rights without exposing its value. Disabling report-missing-tool or report-missing-data changes that reporting control, not whether the task's missing prerequisite exists.

Keep three naming layers separate. Current tools are report_missing_tool and report_missing_data; recorded legacy tool/output names missing_tool and missing_data remain supported. YAML missing-tool and missing-data are deprecated aliases, and missing-tools is a migration typo. The documented gh aw fix --write migration preserves values and comments and reports conflicts for manual resolution instead of overwriting either entry. Failure-category names missing_tool and missing_data do not change. No diagnostic issue or migration command was executed here.

Global safe-outputs.staged: true skips safe-output writes and shows previews in step summaries. Per-output staging suppresses only that type; other handlers may remain live. Validation reads may still occur. Removing staging or setting it false deliberately enables real resource creation and is an execution-configuration change requiring corresponding compilation/review. A preview is neither an applied output nor a real write-path test.

On threats or detector failure, default continue-on-error: true annotates reviewable outputs, converts branch pushes into review PRs and aborts nonreviewable operations; false blocks safe outputs. Invalid/failing detection gives no security verdict. The separate detector inspects buffered artifacts, not all live state. Do not use recovery to bypass a rejected business proposal or unresolved security decision.

Locate a failure report independently of the failure

report-failure-as-issue defaults to true. Setting it to false suppresses automatic failure issue creation; category filters select included or excluded categories. A mixed policy requires included AND not excluded. Thus a category excluded by the effective policy remains unreported even if it also appears in the include list. Absence of an issue does not establish absence of a failure or a repaired task.

Failure reports use bounded/redacted diagnostics in fenced collapsed details and link the exact run for full logs. They do not publish arbitrary engine log tails. Cancelled startup failures are suppressed only when readable check annotations rule out a job timeout and no independent model-configuration error is present. If annotations cannot be read, the startup failure remains reportable. Enabled reporting grants checks: read to the conclusion job and generated GitHub App reporting tokens; a custom reporting token also needs that permission to inspect annotations. Cancellation alone is insufficient evidence for suppression.

Failure issues default to the current repository. A trusted literal owner/repo configured through failure-issue-repo may name another repository, but the actual reporting credential still needs issue-creation rights there. A runtime expression is caller-supplied data: it must resolve to owner/repo under the same owner as the running repository, otherwise the destination is ignored with a warning and reporting falls back to the current repository. This reporting setting does not remove experimental steering's separate incompatibility described earlier.

group-reports is opt-in and defaults to false. When enabled, individual failed-run reports are linked as sub-issues under a shared [aw] Failed runs parent; otherwise reports remain independent. Grouping changes presentation, not the failure or repair state. The positively confirmed whole-run no-jobs exception above suppresses generated issue/update/parent reports; a missing report for any other reason needs its actual policy, destination and credential evidence checked.

Apply the actual maintenance replay contract

Agentic Maintenance is generated when a workflow uses expires in create-issue, create-discussion or create-pull-request. It is not a universal retry control. For a qualifying case, the documented route is Actions > Agentic Maintenance > Run workflow, set operation to safe_outputs, and supply the prior run URL or ID. Its apply_safe_outputs job downloads the old agent_output.json and applies buffered outputs; it does not perform new agent reasoning.

Authorization requires exact repository admin or maintain access. A custom organization's role must resolve to its inherited standard-role metadata; a reassuring role name is insufficient, and unresolved metadata is rejected. Before replay, verify the generated workflow, exact artifact/run, current authority, resolved cause, current business/threat decision and completed/unknown effects. Old buffered proposals can include earlier blocked or unreviewed actions, and replay can repeat already-applied effects.

Preserve three pinned implementation distinctions during diagnosis

The following apply only to the adopted gh-aw v1.2.2 commit stated at the start.

Daily guardrail skip. Every workflow_dispatch skips this daily AWF-AIC guardrail: absent, valid and malformed aw_context all take the documented skip paths. workflow_call, repository_dispatch and separately gated command events have their own documented exceptions. Skipping this gate removes neither accounting nor per-run caps, costs or other policy. It does not mean the workflow was skipped or completed successfully.

Accounting snapshot trust. A producer must match workflow ID, workflow path and producer repository, and satisfy one of two branches: pull_request_target compatibility, without an extra default-head test; or push, schedule, workflow_dispatch, issues or issue_comment, with known default branch, matching head_branch and matching head_repository.full_name. Other events, including pull_request, are rejected. Exclude the current run and require the named unexpired artifact and valid observations. This compatibility is not advice to author pull_request_target; a snapshot miss is an optimization miss, followed by authoritative full-window accounting, not zero usage.

Cross-repository dispatch. Resolve destination from trusted target-repo, otherwise the context repository. A different destination requires a nonempty explicit allowed-repos match, allowed workflow/count, applicable ref rules, a real target workflow accepting workflow_dispatch and compatible inputs, and target-authorized credentials. Cross-repository local-file validation is skipped, which does not validate remote existence/inputs. Compiler-injected trusted target-ref has a documented exception; it does not exempt agent-supplied refs. Repository matching is case-sensitive under the supported patterns. An allowlist or returned output URL grants no API rights; do not assume the context token reaches another repository.

Worked recovery decisions

The following are supplied fictional evidence, expected decisions and expected later verification, not live investigations:

Run/input and first evidence Diagnosis and effects Narrow next action/owner Retry scope and expected verification
F1: no run; workflow disabled Configuration prevents start; no execution evidenced Owner decides whether future enablement is wanted Later qualifying event only; inspect actual enablement/run
F2: run 401 skipped; Expanded condition false for event Gate, not model failure; no handler effect Maintainer compares rule with intended event policy Correct only demonstrated policy mismatch; inspect next runtime values
F3: run 420; report #82 exists; guide API handler errors Partial application; guide cause/target unknown Maintainer preserves #82, inspects guide target/logs and current source Hold retry until reconciled; verify missing guide result without duplicate report
F4: run 421; invalid detector result No verdict; affected effect withheld/unknown until inspected Security/repository owner repairs detection and reviews proposal No bypass replay; valid policy result and fresh decision required
F5: old note says missing credential; newer commit changed setup Old cause may be stale; current effect unknown Operator revalidates current identity, source and target No credential expansion from stale note; rerun only demonstrated repaired scope
F6: maintenance role “Operations Lead”; inherited role unresolved Replay authority unestablished Administrator resolves supported role metadata Replay denied until exact eligible authority is established
F7: creation request sent; response lost; target not inspected Effect unknown, not absent Authorized target owner checks for created object Hold repetition; identify existing object or evidenced absence first

A complete F3 handoff retains task=weekly briefing/no closure, run=https://github.com/example/service/actions/runs/420, artifact=this run's buffered output, first failed stage=guide handler, confirmed effect=#82, unknown=guide target and exact API cause, repair=diagnose only guide layer, retry=hold, owner=maintainer, and verification=no duplicate report plus correct guide proposal or explicit hold. Repetition of the whole red run would lose those boundaries.

Worked diagnostic evidence records

The following independent inputs extend the earlier recovery cases; they are not later observations of F3 or the same mutable run. Every case is a fictional weekly-briefing run in example/service, with the original no-closure task boundary. Log/marker/API fragments below are the supplied evidence. Missing facts remain unknown. The outputs are expected diagnostic decisions, not results of executed commands or completed repairs.

For D0 / teaching run 601, assume the selected overview reports status=failed, elapsed=95 seconds, tokens=800, AIC=18 and turns=3. No per-job durations, route breakdown, failed tool detail or target inspection were supplied. A complete expected evidence handoff is:

Task/repository/workflow: weekly briefing / example/service / weekly-briefing
Run and evidence: teaching run 601 / supplied selected-run overview D0
Observed metrics: elapsed 95 seconds; tokens 800; AIC 18; turns 3
Next evidence route: gh aw audit <run-id> for this exact run; selected workflow logs
Route cost: classifier, selected-model and deviated traffic breakdown unknown
Actions billed minutes: unknown; per-job rounded durations were not supplied
Hands-on time, actual invoice and quality: unknown
First failed stage/cause: unknown; overview status alone does not identify them
Target/completed effects: uninspected, unknown; do not infer that nothing applied
Next action/owner: maintainer inspects exact-run tools/error, source and target
Repair/retry: hold until demonstrated cause and existing effects are reconciled
Expected verification: narrow repaired scope and actual required target result,
  without repeating any existing write; retain the original authorization boundary

The numerical fields are teaching assumptions, not product defaults, rates, benchmark observations or a claim that 95 seconds equals billed compute or labor. The workflow-filtered overview identifies the population; the exact-run audit supplies detail, and a cross-run Markdown report can flag trends without proving this run's cause.

Independent run and supplied evidence Expected classification and effect state Narrow action/owner Retry and expected verification
D1: run 602; matching not_started record; setup/gateway step failed before agent execution; target uninspected agent_startup_failure; agent never started, but external setup effects remain unknown Setup owner inspects that step and approved configuration; no imagined agent omission Hold until cause/effects reconciled; verify actual startup and required target outcome
D2: run 603; old not_started marker, but current logs show agent tool execution; no terminal result supplied Stale marker cannot establish startup failure; actual executed failure/terminal state still needs evidence Maintainer inspects the actual final step and target; do not invent an outage Hold; verify the demonstrated layer and complete result, preserving existing/unknown effects
D3: run 604; jobs API positively returns an empty list for the whole run; no job execution evidenced Whole-run no-jobs reporting exception: no generated failure issue, update or parent report; approval/waiting state is not an agent failure Authorized workflow/decision owner checks the actual gate; no nonexistent agent artifact to replay Observe a later legitimate start/status if authorized; silence alone never proves task completion
D4: run 605; jobs API request fails; job state/target uninspected Whole-run no-jobs is unestablished; missing API evidence is unknown, not an exception Access/platform owner resolves the read problem without treating missing metadata as no jobs Hold causal conclusion/retry; inspect positive job and effect evidence first
D5: run 606; nonempty jobs list; a started setup job fails; agent metadata missing Still a reportable setup failure, not a confirmed entirely jobless run; effects unknown Setup owner inspects the actual failed job and target Repair only demonstrated setup cause; verify startup and avoid repeating any prior effect
D6: run 607; unexplained final fatal-signal driver exit after an earlier request error; target uninspected Final driver_crash diagnosis takes priority; earlier request text does not establish provider outage Runtime owner inspects bounded final-exit/signal/stage evidence, not copied raw stderr Hold until cause/effects reconciled; verify non-crash final state and actual task result
D7: run 608; an earlier crash attempt recovered; final process exit 0, final engine result explicitly errors, ordinary safe outputs exist Earlier crash does not override the final non-crash exit; final engine error still supports engine_driver_failure, not accepted completion Engine owner inspects the final result and actual applied/unknown targets Preserve any existing effects; verify repaired final engine result and business output separately
D8: run 609; valid setup registration cache; gateway zero-tools flag; CLI attempts 3 and gateway requests 3; output file nonempty with 2 records, 1 malformed; target uninspected Tools unavailable despite registration; counts stay separate, not 6 calls; partial persistence proves neither validation nor publication Tool/output owners repair the demonstrated availability or malformed record; report target effects unknown Hold blanket replay; verify live tool availability, valid terminal output and actual target state
D9: run 610; setup cache invalid, archived gateway registration exists, availability flag unreadable; output file unreadable Registration fallback is recorded, but current availability/persistence remain unknown Tool/evidence owner inspects the missing flags/file and target under existing authority No invented zero tools, empty output or publication; obtain actual evidence before retry
D10: run 611; ordinary output created report #83; explicit report_incomplete; agent declares a cause with no trusted collector match Remains incomplete, not missing-terminal; #83 is a completed effect and the bounded redacted declared reason is unverified Maintainer preserves #83 and investigates only the missing result/cause Hold repeat creation; verify the remaining task without duplicating #83; summaries still exist if issue reporting is disabled
D11: run 612; matching startup-failure evidence followed by secret-redaction failure Startup failure keeps priority; redaction has separate bounded diagnostics and summary reasons are omitted Setup/security owners resolve the actual stages without publishing raw agent/error text Hold; verify readable trusted evidence, redaction and actual task/effect state

For the no-action branch, a successful run 613 with a real noop, no other safe-output action and no needed GitHub action yields reported_no_action, not independently confirmed acceptance. A failed run 614 with the same no-op stays incomplete. For run 615, registration-only diagnostics can be ignored only if both terminal completion evidence and real task-level outputs are supplied; if either is missing, or the agent failed, retain incomplete/unverified status. These expected records do not rewrite historical tracker comments or validate unrelated conclusions.

Stop an agentic workflow that is running

Stopping the current execution, reversing completed effects and disabling future starts are three decisions. Select the exact surface/run, inspect its state and use its supported control. Hidden or archived work is not evidence that execution ended.

For compiled gh-aw, the documented Actions UI path requires repository Write: open repository Actions, select the workflow, open the exact queued/in-progress run and choose Cancel workflow. Viewing logs with Read access does not establish cancellation authority. Record the request separately from the later observed state.

For the supplied Actions-backed Copilot session path, Stop session in the session-log viewer ends its Actions run and preserves pushed commits. Do not project that toolbar/backing execution onto every cloud sandbox or gh-aw workflow. Archiving the stopped session removes it from the active list. The adopted session-data matrix supports Archive but not Delete for Actions-backed cloud sessions, and both Archive and Delete for cloud-sandbox sessions; local/synced data management has different semantics. Deleting a session record does not roll back completed external effects. A shared local session's viewer has view-only access, not steering/control authority.

Cancellation may not finish normally. An always() condition can resist ordinary cancellation; the force-cancel API is a separate operation. A queued/in-progress run with no jobs, “Failed to cancel workflow,” or HTTP 500/409 can be stuck/out of sync. Force cancellation may also fail, and Support may be needed. Such a run can block its concurrency group. Report cancellation requested or unresolved until the actual terminal outcome is inspected; a request does not prove immediate physical cessation of every process.

Inspect pushed commits, issues/comments, changed files, service writes and creation requests with lost responses. Recover each through Git or the relevant service under actual authority, checking later valid work before reverting. File restoration cannot reopen an external issue or remove a published report. Preserve evidence of both completed and unknown effects.

The automation-management Disable control turns off future runs while preserving the definition; deletion removes the future definition. Neither establishes that an already-active session ended or effects were reversed. Keep future-start state separate from current-run and recovery state.

Fictional case Surface/identity/authority and request Supplied after-evidence Complete expected report and next owner
S1 Actions-backed Copilot session 510, example/service, authorized session operator; Stop session Backing run terminal cancelled; commit C510 remains pushed Current execution ended in supplied case; commit remains for maintainer review; recovery pending; future starts unchanged
S2 Compiled Actions run 511, repository Write; exact Cancel workflow requested Still queued, no jobs, failed-cancel message/409 Cancellation unresolved; effects unknown until inspected; operator investigates concurrency and supported escalation/Support; future starts unchanged
S3 Copilot automation definition disabled by its authorized owner; active session 512 Future setting disabled; session still in progress Future starts disabled; current execution active; no stop result yet; inspect supported session stop and existing effects separately

For S1, a saved stop record should identify repository/run/session, prior status, authority, selected control, request result, observed terminal state, remaining commit C510, unknown effects outside inspected scope, recovery owner/scope and future-start state. For S2 its outcome must remain unresolved; copying S1's cancelled state would invent evidence. The lesson's records describe expected decisions under supplied fictional evidence, not actual cancellation or recovery.

Summary

Identify the exact approval object, current execution and existing effects before acting. Use the actual harness's feedback and review controls, verify steering through subsequent evidence, and repair the demonstrated failure layer before any bounded retry or replay. Stopping, external recovery and disabling future starts have separate scope and outcomes; keep unresolved states explicit until the appropriate evidence changes them.

References

PUBLIC BETA OFFER

Save 50% off on an Eligible Learning Plan

Valid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026