Skip to content

Run lane script entry points through one lib helper (part 2 of 2) #15454

Description

@kyle-sexton

Agent Brief

Type: Task
Summary: Run the remaining seven lane scripts' entry points through .github/scripts/lib/run-main.mjs in place of their copied entry tail (part 2 of 2, part of restructuring pass #14159).

Current behavior:
Seven .github/scripts/pr-unblock/ scripts still end with their own copy of the 11-line entry tail (if (process.argv[1] && import.meta.url === pathToFileURL(...)), main(...), then ::error::<label> failed):

  • main(process.env): gate-recheck.mjs:83, lane-hold.mjs:98, publish-feedback.mjs:1052, resolve-threads.mjs:196, verify-notes.mjs:362.
  • A different label: dispatch.mjs:959, refine-event-dispatch.mjs:104.

Desired behavior:
Each of the seven calls runAsScript(metaUrl, label, run) from ../lib/run-main.mjs in place of its tail. Blocked by part 1, which creates lib/run-main.mjs and adds its floor row, so this item has no floor change.

Files:

  • .github/scripts/pr-unblock/gate-recheck.mjs
  • .github/scripts/pr-unblock/lane-hold.mjs
  • .github/scripts/pr-unblock/publish-feedback.mjs
  • .github/scripts/pr-unblock/resolve-threads.mjs
  • .github/scripts/pr-unblock/verify-notes.mjs
  • .github/scripts/pr-unblock/dispatch.mjs
  • .github/scripts/pr-unblock/refine-event-dispatch.mjs

Key interfaces:

  • Each script runs main only when executed directly, with the same arguments, and on failure prints the same ::error::<label> failed line, with its own label, and exits with the same code as now.
  • Importing any of these modules from a test still runs nothing.

Acceptance criteria:

  • None of the seven scripts keeps its own entry tail; each uses lib/run-main.mjs.
  • Behavior is unchanged: the same outputs, ::error:: lines and exit codes for the same inputs.
  • The diff edits only the listed files and the lines of a test that assert on them when the change breaks that assertion.
  • The pull request stays within 400 changed lines and 15 hand-edited files.
  • python3 -I scripts/sync-hold-floor.py --check passes.
  • test_merge_holds_sync.py, test_babysit_risk.py, .github/actions/resolve-config/callers.test.mjs and the node suite of .github/scripts/pr-unblock/ pass.
  • ci-status is green.

Out of scope:

  • lib/run-main.mjs itself, other duplication, eval cases, fixtures, and skill and agent text.

Activity

  1. added
    status: ready
    on Nov 11, 2026
  2. added theissue type on Nov 11, 2026
  3. removed
    status: ready
    on Nov 11, 2026
  4. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"fd1563aa0e672e1e875791bdbf41b8332d0eac7d813f760a954e63f257369cfd","body_sha256":"c4526fc237d49884f7dfb837d022997c3f7f76e27b4d6613ddf9debb347a1b3d"}

  5. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor
    No description provided.
  6. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue run that agent-ready started failed or was cancelled before it reported, or it stopped or the token broker refused it because its workflow files differ from main's. work-unblock removed and added agent-ready back to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.

  7. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor
    No description provided.
  8. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    already-leased: another session holds a live lease on #15454, so run https://github.com/melodic-software/claude-code-plugins/actions/runs/43158392653 ran no model.

  9. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue run that agent-ready started ended over 3 hours ago with no report and no pull request. work-unblock has re-fired it 2 time(s) on lane workflow files 429cd22fd603025d6f20a201142b2b2a87bfd019-34a45f0342aceeb68ac397a87fb982a9262f7484 and keeps re-firing it, waiting longer each time, up to 24 hours, until a run reports. This is a fault in the lanes, not in the issue; this comment is updated on each re-fire.

  10. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor
    No description provided.
  11. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor
    No description provided.
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

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions