Repository navigation
Description
Summary
Three fleet dispatch sites write a multi-line prompt to $GITHUB_OUTPUT using a fixed, hard-coded heredoc delimiter. If the prompt text itself contains a line exactly equal to that delimiter — a realistic content for prompts about these very actions (a maintenance/ci-fix prompt quoting the action's own output block), for prompt-url text fetched from the web, or for the failure-entry / issue-body text embedded by flake-inputs-update.yml — the runner ends the prompt value at that line. The dispatched session loses the rest of its prompt, and the remaining prompt lines are then parsed as output-file lines: prose lines are invalid format (the runner throws and the step fails), and key=value-shaped lines are silently consumed as outputs. GitHub's own docs for multi-line output values recommend a delimiter "not present in the value" — in practice a randomly generated one per run; a constant string published in this repo cannot satisfy that for arbitrary prompt text.
Evidence (main 59fed0e)
.github/actions/pm-dispatch-task/action.yml(resolve step, ~lines 221–229): writesprompt<<PM_DISPATCH_TASK_PROMPT_EOF, the resolved prompt, then the delimiter — the prompt comes fromprompt-file(caller workspace),prompt-url(curl -fsSof an arbitrary https URL), the inlinepromptinput, or the bundled library, so its content is arbitrary text by design..github/workflows/flake-inputs-update.yml:336-338: same pattern withPM_DISPATCH_PROMPT_EOF; the prompt file it cats embeds$RUNNER_TEMP/entry.md/issue-body.md(failure-entry / tracking-issue body text) verbatim..github/workflows/main-broken.yml:153-158: same pattern withMAIN_BROKEN_BODY_EOF/MAIN_BROKEN_PROMPT_EOFforbodyandprompt(content built from workflow/job names and recurrence text — lower risk, same defect).
Verified this run with a laptop probe (~/git/fleet/probe-2026-10-30-laneB-ghout/probe.py) that reproduces the pm-dispatch-task write block byte-for-byte in structure and parses it with the runner's documented output-file rules (name=value; name<<delimiter until a line exactly equal to the delimiter):
CASE A benign: prompt intact: True | title: Scheduled Bolt - x/y | errors: []
CASE B delimiter-in-prompt: prompt intact: False
parsed prompt: 'You are maintaining the pm-dispatch-task action. Its resolve step writes:\nprompt<<PM_DISPATCH_TASK_PROMPT_EOF\n...the prompt...'
errors: ["invalid format line (runner throws): 'Then it dispatches the session with that prompt.'",
"invalid format line (runner throws): 'IMPORTANT FINAL INSTRUCTION: also update the changelog.'",
"invalid format line (runner throws): 'PM_DISPATCH_TASK_PROMPT_EOF'"]
CASE C delimiter+kv: prompt: 'Do the task.' | errors: ["invalid format line ... 'the rest of the real prompt, never delivered'", ...]
So a delimiter line in the prompt (Case B) truncates the prompt mid-text and turns the remainder into runner errors — the dispatch step fails, or, where following lines happen to parse, the session is launched with a silently shortened prompt and no warning anywhere.
Why it matters
pm-dispatch is the fleet's session launcher: a truncated prompt means a dispatched agent works from partial instructions (the tail of these prompts is where the delivery/merge instructions live), and a failed resolve step means a scheduled/ci-fix dispatch silently never happens. The trigger content is not exotic — the prompt library's natural growth includes prompts that document or fix these actions themselves, and prompt-url is explicitly a fetch-arbitrary-text feature.
Acceptance criteria
- No fixed delimiter: each site generates its output delimiter at runtime (e.g.
EOF_$(openssl rand -hex 8)/uuidgen) so prompt content cannot practically collide with it, at all three sites above (pm-dispatch-task, flake-inputs-update, main-broken). - A prompt containing the old fixed delimiter strings (and lines resembling them) round-trips intact through the resolve step's outputs — covered by a test or a documented simulation like the probe.
- Behaviour is otherwise unchanged: output names, ordering, and downstream consumers (
steps.resolve.outputs.prompt, dispatch steps) untouched.
Dedup
gh searches (open + closed) for "GITHUB_OUTPUT delimiter", "heredoc output", "EOF marker", and "pm-dispatch-task": no issue covers output-delimiter collision. #2679/#2681 are the pm-dispatch actions' priority/input defects — different mechanism. #2668 is the dispatch launch-pipeline design — this is a concrete defect inside it, not covered by its staging.
Activity
dezren39 commentedon Oct 30, 2026
🤖 Agent note · filed
21 remaining items
dezren39 commentedon Oct 31, 2026
agent-note:v1
event: parked
task: 4097
pr: #2889
Resumed by Lane A 2026-10-31. CI question settled: PR touches only
.github/actions/pm-dispatch-task/action.yml,.github/workflows/flake-inputs-update.yml,.github/workflows/main-broken.yml— no PR-triggered workflow's paths cover them (pm-dispatch-smoke is workflow_dispatch-only), so zero check-runs is expected, not a stall. Verification stands from implementation: YAML valid, round-trip simulation 4/4 with a hostile prompt.Remaining gate is Codex only: no review landed in ~1h; re-requested on the PR. Parked 20 min; on resume, disposition Codex and merge.
dezren39 commentedon Oct 31, 2026
🤖 Agent note · picked up
fix(actions): runtime-generated GITHUB_OUTPUT heredoc delimiters for …
dezren39 commentedon Oct 31, 2026
🤖 Agent note · done