Skip to content

Dispatch-layer failures (mint 502) should notify the PR, not fail silently #1297

Open

Description

@fullsend-ai-retro

What happened

On PR #60, the fullsend workflow routed to the Review stage, but both runs (26201259495, 26201259546) failed at the "Mint review token" step — the mint service returned HTTP 502 six times before giving up. The review agent never started. No comment or status was posted to the PR. The author had no indication that automated review failed, and merged the PR 11 hours later without any review.

Existing issue #837 proposes adding if: failure() steps in the agent workflows (e.g., review.yml in .fullsend). However, this PR demonstrates a failure mode that #837's proposed fix would NOT catch: the failure occurred in the dispatch layer (the fullsend.yaml workflow in the source repo) before the agent workflow was ever dispatched. The if: failure() step in the agent workflow never runs because the agent workflow never starts.

What could go better

There are two layers where failures can occur: (1) the dispatch layer in fullsend.yaml (mint token, workflow dispatch) and (2) the agent layer in .fullsend workflows. Issue #837 addresses layer 2 but not layer 1. For dispatch-layer failures, a notification step should be added to the dispatch job itself in the reusable workflow (reusable-review.yml, etc.) with if: failure(). This would post a comment like "Review agent could not start — view logs" to the PR. Confidence: High — the logs clearly show the failure is in the dispatch job, before any agent workflow runs.

Proposed change

In the fullsend reusable workflows (e.g., reusable-review.yml at fullsend-ai/fullsend/.github/workflows/), add an if: failure() step after the mint/dispatch steps in the Review job that posts a comment to the originating PR indicating the review agent could not start, with a link to the failed workflow run. This complements #837 (which handles agent-layer failures) by covering dispatch-layer failures. The comment should use the same token/permissions already available in the dispatch job. Update #837's description to note this gap and link to this proposal.

Validation criteria

The next time a review dispatch fails at the mint step (or any pre-agent step), a comment should appear on the PR within 2 minutes indicating the failure and linking to the run logs. Test by temporarily misconfiguring the mint endpoint and verifying the notification appears. This should be verified across at least 3 different failure scenarios: mint 502, mint timeout, and workflow dispatch failure.


Generated by retro agent from nonflux/integration-service#60

Activity

  1. added
    feature
    triaged
    agent/review
    type/feature
    priority/medium
    on May 21, 2026
  2. fullsend-ai-triage commented on May 21, 2026

    @fullsend-ai-triage

    Re-triage: still relevant, scope should broaden

    Checked against current main. The gap is real, and it is wider than the original mint-502 report.

    Answers to the questions raised in the latest request:

    1. Ownership. This issue should own the whole "fails before the agent starts" class (token mint, CLI/Podman/OpenShell setup). The user-visible outcome and the fix mechanism are the same, so a separate issue would only duplicate work. Surface clear error when triage token minting fails #1283 (triage-only mint failure) is a strict subset and should be resolved together with this one. action: make runtime dependency setup resilient to transient download failures #9203 (making the downloads resilient) is complementary and stays separate. Retrying downloads reduces how often the failure happens, but does not tell the user when it does.
    2. Existing reconciliation vs. workflow-level step. fullsend reconcile-status only finalizes a status comment that already exists. If fullsend run never started, there is nothing to reconcile, so it cannot cover mint, Podman or OpenShell failures. Those need a new if: failure() path. Startup failures where no step runs at all (Agent workflow runs that hit startup_failure are silently lost #1919) cannot be handled inside the workflow.
    3. Where. Both. The stage jobs and the harness run job in reusable-dispatch.yml need a post-mint failure step. The mint step itself may be what failed, so that step should use the job GITHUB_TOKEN, which these jobs already hold with issue/PR write access. The final always() step in action.yml should also post the fallback when the run step never started, to cover the install-step failures. The older reference to separate reusable-review.yml-style files is out of date; those jobs are now inlined in reusable-dispatch.yml.
    4. Comment shape. One sticky, deduplicated comment (dedicated marker) that states the agent did not run, links the failed run/job, gives a coarse category (token mint, runtime setup, other), and shows the retry command for that stage, such as /fs-triage. The existing fullsend issues post-comment command already supports sticky markers.
    5. Existing PRs. None addresses this. PR ci(#7555): notify users when agent launch is unauthorized #8190 (authorization-denied notices) adds a notification job to the same workflow with its own dedup marker. It does not fix this issue, but the implementation should reuse its conventions to avoid two competing notification mechanisms.

    Heads-up: the fix edits GitHub Actions workflow YAML, which the automated code agent cannot modify under its current permissions, so a human-authored PR is needed. As requested, this is a scope/relevance review only and is not being promoted for implementation; it stays open for human prioritization.

    Proposed test case:

    Given a stage job whose mint step fails (502/timeout) or whose Podman/OpenShell install fails
    When the job finishes with failure
    Then exactly one sticky fallback comment appears on the originating issue/PR:
      - says the agent did not run
      - links the failed run/job
      - names a coarse failure category
      - shows the retry command
    And a repeat failure does not add a second comment
    And successful runs, or runs where `fullsend run` already posted a status comment, get no fallback comment
    

    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
    Previous run

    Re-checked relevance per the stale-issue request: this issue's specific technical claim still holds today.

    A lot has changed since filing. #837 (the closely related "stale working-on-this comment" issue) is now closed as completed — a status-notification overhaul (status posting moved into fullsend run, plus a fullsend reconcile-status step that finalizes orphaned comments on hard kills, tracked under #2149) now covers agent-layer failures. Per-repo installs also moved from separate reusable-review.yml-style files to stage jobs inlined into reusable-dispatch.yml (per ADR 62).

    However, tracing the current reusable-dispatch.yml end to end confirms the dispatch-layer gap this issue describes is untouched by that work: the reconciliation logic added for #837/#2149 lives inside the shared composite action, which is only invoked after the per-role "Mint <role> token" step succeeds. That mint step still has no if: failure()/always() companion in any stage job (review, triage, coder, fix, retro), so a mint 502 (or similar pre-agent failure) still short-circuits the job with zero notification to the PR or issue — reproducing the exact scenario in the original report.

    Note #1283 (still open) tracks the same gap scoped narrowly to the triage role's mint failure — worth resolving together with this one rather than in parallel, to avoid duplicated per-role fixes.

    As requested, this is not being promoted to ready-to-code; it's being left open for human prioritization. Separately, the fix requires editing GitHub Actions workflow YAML directly, which the automated code agent cannot do under its current permissions — implementation will need a human-authored PR (or an explicit maintainer decision) regardless of prioritization timing.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
    Previous run (2)

    Triage Summary

    This issue identifies a gap in failure notification coverage: when a pre-agent step (e.g., token minting) fails in a reusable workflow, no feedback reaches the PR. This complements #837, which covers agent-layer failures.

    Problem: The reusable workflows (reusable-review.yml, etc.) have no if: failure() steps after mint/dispatch steps. When these fail, the workflow exits silently — the PR author never learns that automated review didn't run.

    Observed instance: On a PR in an external repo, both review dispatch runs failed with HTTP 502 at the mint step. The PR was merged 11 hours later with no review.

    Recommended approach:

    • Add an if: failure() step at the end of each reusable workflow job that posts a comment to the originating PR/issue
    • Use the GITHUB_TOKEN (already has pull-requests: write) since the minted app token may not be available at failure time
    • Include a link to the failed workflow run (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
    • Cover all reusable workflows: review, triage, code, fix, retro
    • Update Failed review agent runs should update the status comment on the PR #837 description to note this complementary coverage

    Related issues: #837 (agent-layer failure notifications), #1283 (triage mint failure surfacing)

    Proposed test case:

    Scenario: Dispatch-layer failure produces PR notification
      Given: A reusable workflow with a failing mint step (502, timeout, or dispatch error)
      When: The workflow runs to completion (with failure)
      Then: A comment appears on the originating PR containing:
        - Text indicating the agent could not start
        - A link to the failed workflow run logs
      And: No such comment appears on successful runs
    

    Labels: Dispatch-layer failure notification is an area/dispatch feature affecting the review agent workflow, with medium priority since it causes silent review failures.

  3. added
    component/dispatch
    and removed on May 29, 2026
  4. fullsend-ai-prioritize commented on Jun 2, 2026

    @fullsend-ai-prioritize

    RICE Priority Score: 2.4

    Score breakdown
    Dimension Score Reasoning
    Reach 2 This is a platform-wide gap in the dispatch layer affecting all reusable workflows (review, triage, code, fix, retro). Any user whose PR triggers the review workflow could silently lose automated review when the mint service or dispatch step fails. The observed instance affected an external repo (nonflux/integration-service), indicating this impacts users across orgs.
    Impact 1.5 When dispatch fails silently, the PR author receives no indication that automated review didn't run, leading to PRs being merged without review (as happened in the observed case — merged 11 hours later with no review). This is a significant pain point that undermines trust in the review system, but a workaround exists (manually checking workflow runs).
    Confidence 0.8 High confidence — the issue is exceptionally well-documented with specific run IDs, clear logs showing the failure mode, a concrete proposed fix, and a triage comment confirming the approach. The gap between dispatch-layer and agent-layer failure handling (#837) is clearly articulated.
    Effort 1 Medium — requires adding if: failure() steps to multiple reusable workflows (review, triage, code, fix, retro) and posting PR comments using existing GITHUB_TOKEN permissions. Each individual change is small and well-scoped, but it touches several workflow files and needs testing across 3 failure scenarios.

    Formula: (2 x 1.5 x 0.8) / 1 = 2.4

  5. ralphbean commented on Sep 21, 2026

    @ralphbean
    Member

    /fs-triage lots of things have changed between when this was originally filed and now across both the https://github.com/fullsend-ai/fullsend and https://github.com/fullsend-ai/agents repos. Is this still relevant? This is a stale-issue review, not an implementation request: even if the issue is still a valid bug and has sufficient information, do not recommend or trigger ready-to-code yet. Leave it for human prioritization after confirming whether it remains relevant. Do not close a still-relevant bug merely to avoid coding it.

  6. fullsend-ai-triage commented on Sep 21, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 6:24 PM UTC · Completed 6:29 PM UTC

    Commit: eb8149a · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $0.49

  7. added
    feature
    triaged
    and removed
    feature
    triaged
    on Sep 21, 2026
  8. csoceanu commented on Nov 9, 2026

    @csoceanu
    Contributor

    /fs-triage

    Please re-evaluate this issue against the current upstream
    fullsend-ai/fullsend and fullsend-ai/agents repositories. This is a
    relevance and scope review only; please do not promote it to ready-to-code or
    trigger implementation.

    The triage of #4325
    concluded that its remaining pre-CLI failure-notification gap should be owned
    by this issue.

    There are now multiple concrete reproductions:

    • Run 41999958566:
      route and harness dispatch succeeded, but Podman installation failed after
      four HTTP 504 responses. fullsend run never started and no user-facing
      failure comment was posted.
    • Run 42580946753:
      the same Podman setup failure occurred again, with no user-facing failure
      comment.
    • Run 42583616935:
      Podman setup succeeded, but OpenShell installation failed after three
      attempts to download the pinned package. The triage agent did not run and no
      user-facing failure comment was posted.

    These failures occur after routing and harness dispatch but before the agent
    work can begin. They are later than the token-mint failure originally
    described by this issue, but the user-visible outcome is the same: an
    authorized command is accepted, the workflow fails, and the requester is not
    clearly told that the agent did not run.

    ADR 0093
    defines tracker-aware, agent-agnostic status notifications and
    reconcile-status behavior once fullsend run or reconcile-status is
    reached. It does not cover failures before the notification machinery is
    initialized, such as token minting, CLI installation, Podman setup, or
    OpenShell setup.

    Please determine:

    1. Whether Dispatch-layer failures (mint 502) should notify the PR, not fail silently #1297 should own the broader pre-CLI/pre-agent notification gap,
      including workflow setup and runtime dependency failures, or whether those
      cases need a separate issue.
    2. Which failures can be handled by the existing finalization/reconciliation
      path and which require an always()/if: failure() workflow-level step.
    3. Whether the notification should be implemented in
      reusable-dispatch.yml, action.yml, or both.
    4. What deduplicated failure comment should be posted for an authorized
      slash-command trigger. It should include the workflow/job link, a coarse
      failure category, an explicit statement that the agent did not run, and the
      appropriate retry command such as /fs-triage.
    5. Whether any current open or merged PR already addresses this broader case.

    The underlying runtime dependency download reliability problem is tracked
    separately in #9203.

  9. fullsend-ai-triage commented on Nov 9, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 8:38 AM UTC · Completed 8:41 AM UTC

    Commit: 5c41e93 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.32

  10. added
    feature
    triaged
    and removed
    feature
    triaged
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/dispatchfeaturepriority/mediumtriagedtype/feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions