Skip to content

chore(dispatch): factor startup-failure reporter out of each job and narrow its credentials #9713

Open

Description

@waynesun09

Follow-up from #9206 (startup-failure reporting). These review points were left open when #9206 was approved; none blocks it.

1. Factor the reporter bootstrap out of each job

The "Report ... launch failure" step repeats about 25 lines of shell (find report-agent-startup-failure.sh under .defaults or .fullsend/.defaults, else fetch it through the contents API at job.workflow_sha, export FULLSEND_FAILURE_*, run it) in the triage, code, review, fix, retro, prioritize and harness-dispatch jobs of .github/workflows/reusable-dispatch.yml, and again in .github/workflows/reusable-prioritize.yml. Copies can drift.

Suggested fix: move the lookup and fallback into one composite action under .github/actions/ (or one helper script) and call it from each job.

2. Narrow the reporting credentials

  • reusable-prioritize.yml, "Mint prioritize status token": the token is used only for the startup-failure comment, but it is minted at the default write level, which also grants organization_projects: write. A comment-only level or role would be enough.
  • reusable-dispatch.yml, harness-dispatch job: issues: write is granted job-wide, so CLI install and fullsend dispatch hold it too. Moving the report into a separate job that alone holds issues: write would keep the rest read-only.

3. Remaining #1297 acceptance runs

#1297 asks for live runs of mint 502, mint timeout and dispatch failure. A token-mint failure (unreachable mint) was checked live before #9206 merged: the triage job failed at "Mint triage token" and "Report triage launch failure" posted the comment. Mint 502, mint timeout and a dispatch failure have not been run yet.

Activity

  1. fullsend-ai-triage commented on Nov 19, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 8:07 PM UTC · Completed 8:09 PM UTC

    Commit: f24e7d3 · View workflow run →

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

  2. added
    blocked
    on Nov 19, 2026
  3. fullsend-ai-triage commented on Nov 19, 2026

    @fullsend-ai-triage

    This follow-up depends on PR #9206 (startup-failure reporting), which is still open (approved, but not merged) as of this triage. On the current main branch, the reporter script and the repeated "Report ... launch failure" steps in the reusable dispatch and prioritize workflows do not exist yet. They are introduced by that PR, so there is nothing to factor out or narrow until it lands.

    Once #9206 merges, this issue should be re-triaged. Two points for then:

    • Items 1 and 2 edit workflow files under .github/workflows/ (and add a composite action under .github/actions/). The code agent cannot modify workflow files under current permissions, so these changes need a human PR or maintainer action.
    • Item 3 (live mint 502, mint timeout and dispatch-failure runs for Dispatch-layer failures (mint 502) should notify the PR, not fail silently #1297) is a manual verification task rather than a code change. It could be tracked separately from items 1 and 2 so it does not hold up the refactor.

    Blocked by:

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

    blocked

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions