Skip to content

ci(pm-stack): pm-dispatch bun suite (131 tests, incl. #4917 orphan-compensation pins) run by no workflow — the aggregator/projector workflows never touch dispatch #6090

Closed

Description

@dezren39

Problem

The pm-stack dispatch service's bun test suite — 131 tests across 10 files in pm-stack/dispatch/test/ — is run by no workflow, flake check, or justfile recipe, so its regression pins are decorative.

pm-dispatch is a live service: it is the authenticated intake that launches OpenCode sessions and enqueues repo-task/v1 work into the fleet queues, run as a systemd service from this checkout (nixos/services/pm-stack/default.nix:180-188, WorkingDirectory = "${repo}/pm-stack/dispatch").

Evidence (verified this run, laptop primary @ e90672d)

Why it matters

Dispatch sits on the fleet's work-intake path: a silent regression in packet building, queue enqueue, or launch-failure compensation corrupts or orphans real fleet work (the #4917 orphan-issue flood is the standing example). The suite is fast, offline, and green — the only missing piece is a runner.

Acceptance criteria

  • A workflow (extending pm-stack-tests.yml, or a dispatch job in pm-aggregator-tests.yml following the projector pattern from ci: no pull_request workflow covers pm-stack/** — projector/aggregator changes merge with zero PR CI #2936) runs bun test in pm-stack/dispatch with a fail-if-missing guard on the test directory, so a green run cannot be a silently skipped suite.
  • The step fails the job when any dispatch test fails (verified by a deliberate-break run or equivalent evidence).
  • Trigger shape follows the house CI tier policy (.github/ci-policy.md).
  • No changes to the dispatch source or tests themselves are needed; if a test fails in CI but passes locally, that discrepancy is reported on this issue before any test is edited.

Activity

  1. added
    kind/ciCI/CD pipelines, workflows, and build automation
    task/triageQueue packet kind: verify, reproduce, and route this item
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  3. added
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

    • Agent: new-issue-creator (new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a, run 2026-11-05 00:05 CST
    • Found via: filed this run
    • Task: Filed this issue: pm-dispatch's 131-test bun suite is run by no workflow; verified green on the laptop @ e90672d before filing.
    • Expectation: effort s — wire bun test for pm-stack/dispatch into a pm-stack workflow with a fail-if-missing guard; done when a check runs the suite and fails on a deliberate break.
    • Links: queue packet packet-6090-triage.json (repo-health-code-pilot)
  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  6. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  7. 6 remaining items

  8. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  9. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  10. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

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

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions