Repository navigation
Description
Context
Observed on 2026-03-17 while retesting a repo-assist workflow compiled with gh-aw v0.60.0. A targeted workflow_dispatch with issue_number=7 produced the correct activation prompt binding, but the agent never read issue #7. Instead, it queried unrelated issues (#14, #9, #11, #13), concluded the repository had been "reset or cleaned," emitted a single noop, and the workflow finished success.
The same repo and workflow on v0.59.0 did follow issue #7 and reached the create_pull_request path in run 23211258497, so this looks like a regression rather than a repo configuration problem.
The run is public and the activation logs show the full prompt.
Problem
The activation prompt correctly contains:
If
7is non-empty, this run was dispatched for a specific issue and is bound to issue#7.
Treat issue#7as the only candidate for Task 1 in this run.
But the agent's execution path was:
- Activation bound the run to issue
#7 - Called
issue_readfor#14,#9,#11,#13 - Never called
issue_readfor#7 - Concluded: "It appears this repository has been reset or cleaned. There are no open issues, no open PRs, and no implementation code."
- Emitted
noop
The framework constructed the correct prompt, but in this run the bound issue was never read before a noop was accepted. When the agent ignores the binding and exits via noop, the workflow reports success even though the targeted work was never attempted.
Location
The targeted dispatch binding is constructed in the activation prompt step. The observed failure is that a noop was accepted even though the bound issue was never read.
Relevant areas (not pinned to exact lines since the prompt construction spans multiple files):
- Activation prompt template: targeted issue dispatch instructions
- Agent execution path: selected unrelated issues instead of the bound issue
noophandling / post-agent validation: accepted a noop after the bound issue was skipped
Reproduction
- Create a repository with a
repo-assistworkflow compiled withgh-aw v0.60.0 - Ensure the repo has an open issue
#7withpipeline+infralabels - Run
workflow_dispatchwithissue_number=7 - Observe that the activation prompt correctly binds to issue
#7 - Observe whether the agent actually reads issue
#7 - In the failing case, the agent reads unrelated issues instead, emits
noop, and the workflow concludessuccess
In the observed failing run, stale references to other issue numbers were present in memory/history, but this report does not depend on proving that memory is the root cause. The key failure is that the bound issue was not read before noop was accepted.
Expected behavior
When issue_number is provided via workflow_dispatch:
- The agent should read issue
#7before making any decisions about the run - If the agent emits
noopwithout having read the bound issue, the workflow should reject thenoopor flag it as a validation failure - A targeted dispatch run should not conclude
successwhen the bound issue was never read
Evidence
v0.60.0 run (regression): 23214643269
- Branch:
codex/gh-aw-v060-retest - Activation prompt:
"If 7 is non-empty, this run was dispatched for a specific issue and is bound to issue #7." - Agent
issue_readcalls:#14,#9,#11,#13— no#7 - Agent reasoning:
"It appears this repository has been reset or cleaned" safe_outputssummary:Total messages: 1, Successful: 0, Failed: 0, Skipped (standalone step): 1- Noop comment posted to issue #17 (
[aw] No-Op Runs) - Issue
#7unchanged, no PRs created
v0.59.0 run (working): 23211258497
- Branch:
codex/gh-aw-v059-retest - Same repo, same workflow, same issue
#7 - Agent followed issue
#7and reachedcreate_pull_request(failed on protected files, but the binding was honored)
Proposed fix
Add a runtime validation when targeted dispatch is active and the agent emits noop:
- After the agent step completes, check the MCP gateway logs or agent step summary for
issue_readcalls - If
issue_numberwas provided and the agent never calledissue_readfor that issue number, reject thenoopwith a clear error:"Targeted dispatch bound to issue #N but the agent never read issue #N" - This turns a silent success-with-no-work into a visible failure that can be triaged
Alternatively, strengthen the activation path so the bound issue is harder to skip — for example, inject the bound issue's title and body directly into the prompt context rather than relying entirely on the agent to fetch it.
Environment
- Regression run:
v0.60.0, run 23214643269 - Working run:
v0.59.0, run 23211258497 - Repo:
samuelkahessay/team-standup-tracker
Activity
pelikhan commentedon Mar 18, 2026
/scout investigate repo-assist based on this description.
github-actions commentedon Mar 18, 2026
🔭 Recon complete! Scout has charted the territory. Map ready! 🗺️
github-actions commentedon Mar 18, 2026
🔍 Scout Research Report
Triggered by
@pelikhanExecutive Summary
This report investigates the
workflow_dispatchtargeted issue binding regression betweengh-aw v0.59.0andv0.60.0forrepo-assist-style workflows. The core failure has two layers: the framework correctly builds the activation prompt with the issue binding, but (a) the agent ignores the binding due to stale cache/repo memory content, and (b) the framework has no post-execution guard that rejects anoopwhen the bound issue was never read. The most likely regression trigger is the activation artifact restructuring (prompt generated in activation job, uploaded, then downloaded by agent), combined with changes to prompt section ordering or expression substitution timing.Click to expand detailed findings
Research Findings
How the Targeted Dispatch Binding Is Constructed
The
repo-assistworkflow (sourced fromgithubnext/agentics) includes aworkflow_dispatchtrigger with anissue_numberinput. The activation prompt template in that workflow's markdown contains text such as:The
gh-awcompiler resolves this expression during the prompt creation step inside the activation job (compiler_activation_job.go,generatePromptInActivationJob). The resultingprompt.txt(with7substituted for the expression) is uploaded as theactivationartifact and downloaded by the agent job.The prompt text itself is correct — this is confirmed by the issue reporter ("activation prompt correctly contains…"). The bug is downstream of prompt generation.
Why the Agent Ignores the Binding
The
repo-assistworkflow usesrepo-memory(orcache-memory). The memory prompt (actions/setup/md/repo_memory_prompt.md) tells the agent it has access to a persistent folder backed by a git branch: files created in previous runs (e.g., notes about issues #14, #9, #11, #13) survive into the new run. When the agent starts, it reads those memory files first, picks up the stale issue references, and begins resolving them — all before checking the activation binding instruction.Key source:
pkg/workflow/unified_prompt_step.go:collectPromptSections()assembles prompt sections in this order:The targeted dispatch binding instruction (from the user's workflow markdown) comes after the built-in sections. Memory is referenced in sections 6–7, so the agent may resolve memory content before it reaches the binding instruction in section order.
The Missing Post-Execution Validation
actions/setup/js/noop_handler.cjsonly validates that themessagefield is present and non-empty. There is no check for:inputs.issue_numberwas set (targeted dispatch was active)issue_readfor that specific issue number before emittingnoopSimilarly,
actions/setup/js/noop.cjsprocesses noop messages only for logging/summary — no binding validation is performed.Result: a targeted dispatch run can complete with
successand a noop comment on the noop-runs issue, while the bound issue is completely untouched.Most Likely Regression Factor (v0.59.0 → v0.60.0)
Based on the changesets in this repo, the most impactful changes between these versions are:
patch-activation-activation-artifactprompt.txt+aw_info.jsonuploaded together asactivationartifactpatch-move-github-checkout.github/.agentssparse checkout moved into activation jobpatch-generate-needs-expressionsneeds.*expression mappings and rewritesneeds.activation.outputs.*refspatch-merge-validate-contextgenerate_aw_infostepThe activation artifact change is the most likely regression trigger. Previously the prompt was created inline in the agent job, where expression evaluation context (e.g.,
inputs.issue_number) was immediate. Now it is evaluated in the activation job, serialized to a file, and re-read by the agent. If expression substitution timing or order changed subtly, the binding instruction could be affected — although the reporter confirms the substitution is correct (7appears in the prompt).A secondary regression risk: the
patch-generate-needs-expressionschange rewrites known activation output references. Ifinputs.issue_numberbecame mapped to an empty or incorrect expression through this rewrite, it could cause silent failures in some prompt paths (though again, the reporter sees7correctly).The Most Likely True Root Cause
The stale memory reading pattern predates this regression. What v0.60.0 may have changed is the relative weight or prominence of the activation binding instruction in the assembled prompt. If the prompt ordering or section content changed (e.g., new content was added to sections 6–7, or the user prompt binding instruction now appears further from the top), the model may weight it lower against the memory context.
Recommendations
Add targeted dispatch noop validation: After the agent completes, check the MCP gateway logs (already available) for
issue_readcalls. Ifinputs.issue_number(orinputs.item_number) was provided and the agent emittednoopwithout reading that issue, surface a warning or fail the safe-outputs step with a clear error:Inject bound issue content directly into the prompt: Rather than relying on the agent to fetch the issue, inject its title and body into the activation prompt context (similarly to how
needs.activation.outputs.textis injected for comment triggers). This makes the binding impossible to skip via memory distraction.Strengthen the binding instruction's position: In
collectPromptSections(), consider inserting a targeted-dispatch section after memory sections (currently 6–7) and before safe-outputs (8), so it appears closer to the agent's decision point.Add a test case for targeted-dispatch noop rejection: A golden test that compiles a workflow with
issue_numberinput, simulates an agent noop without anissue_readcall for the bound issue, and asserts that the safe-outputs step fails validation.Key Sources
pkg/workflow/unified_prompt_step.go—collectPromptSections()at line 221pkg/workflow/compiler_activation_job.go—buildActivationJob()andgeneratePromptInActivationJob()at lines 17 and 551actions/setup/js/noop_handler.cjs— noop validation logic (lines 43–51)actions/setup/js/noop.cjs— noop processing (no binding validation)actions/setup/md/repo_memory_prompt.md/cache_memory_prompt.md— memory section promptspkg/workflow/tools.go:392—injectWorkflowDispatchForIssue(trial mode path).changeset/patch-activation-activation-artifact.md— the most relevant v0.60.0 changeSuggested Next Steps
generate_aw_info.cjsandcollect_ndjson_output.cjsto confirm what env vars are available when the activation artifact is downloaded by the agent job — specifically whetherinputs.issue_numberis accessible at validation time.issue_readcall data to implement post-execution binding validation without adding new infrastructure.prompt.txtartifact from a v0.59.0 run against a v0.60.0 run (both available as public artifacts on the linked runs) to isolate whether any content ordering or section content changed between versions.GH_AW_DISPATCH_ISSUE_NUMBER(or equivalent) and checks the agent output NDJSON for a matchingissue_readcall before allowing noop to succeed.References:
dsyme commentedon Mar 18, 2026
Hi @samuelkahessay
I think this is (mostly) not a GH-AW bug per se but more of a prompting bug which you might need to work on. You've added this new targeted issue mode which is cool. The agent is indeed however confused by this:
The reasoning at step 4 "The issue number
7is also just "#" - meaning no targeted issue dispatch" is just poor agent reasoning but I think the "Mode" prompting could be a bit clearer.There is however one bug for us here - the text "${{ steps.sanitized.outputs.text }}" is still in the prompt but should be empty. Equally your prompting around this case needs work I think as it would just be
which is a bit confusing.
dsyme commentedon Mar 18, 2026
I'll close this out, thanks, the other things covered in #21624