GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pm-dispatch(actions): documented numeric priority (10-90) always 400s — actions send it as a string, server only accepts names as strings · Issue #2679 · developing-today/code

pm-dispatch(actions): documented numeric priority (10-90) always 400s — actions send it as a string, server only accepts names as strings #2679

New issue
Copy link
New issue
Copy link
Closed
#3154
Closed
pm-dispatch(actions): documented numeric priority (10-90) always 400s — actions send it as a string, server only accepts names as strings#2679
#3154
Copy link
Assignees
dezren39
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 30, 2026
Issue body actions

Problem

The reusable pm-dispatch composite actions document a numeric priority form they can never deliver (main 65d87df, actions added in PR #2678):

  • .github/actions/pm-dispatch-queue/action.yml — input priority: "Optional priority: 10-90 or critical|high|normal|low."
  • .github/actions/pm-dispatch-start/action.yml — same documented input.

Both actions build the request payload with jq --arg (queue action.yml payload step; start action.yml payload step):

payload="$(jq -n --arg priority "$INPUT_PRIORITY" ... \
  '{...} + (if $priority != "" then {priority: $priority} else {} end)')"

--arg always produces a JSON string, so a caller passing the documented numeric form sends {"priority": "50"}. The server's resolvePriority (pm-stack/dispatch/src/validate.ts:28-48) only accepts a string that is a scale name (critical|high|normal|low); a numeric string falls into the name lookup, misses, and throws ValidationError → HTTP 400 priority: unknown name "50". The numeric path (integer 10-90, snapped to the scale) is only reachable from raw API callers who send a real JSON number — never through the Actions, which are the sanctioned cross-repo entry point under the grants mesh.

So any workflow in any allowlisted repo that follows the action documentation and passes priority: "10" … "90" gets a hard 400 from both /v1/tasks and /v1/sessions, while the name form works.

Evidence (verified this run)

Laptop probe importing the real validate.ts (md5 c1f61d5acf5c85da71de798f4c7056b8, identical in the sandbox clone at main 65d87df and the laptop primary; probe at ~/git/fleet/probe-2026-10-30-laneB-priority/ on the laptop), feeding each parser the exact payload shape the actions construct:

A priority-input "50" (documented numeric form, via action) parseTaskRequest: THROW ValidationError status=400 msg=priority: unknown name "50" (use critical|high|normal|low or a number 10-90)
A priority-input "50" (documented numeric form, via action) parseSessionRequest: THROW ValidationError status=400 msg=priority: unknown name "50" (...)
B priority-input "10" (documented critical numeric, via action) parseTaskRequest: THROW ValidationError status=400 ...
B priority-input "10" (documented critical numeric, via action) parseSessionRequest: THROW ValidationError status=400 ...
C priority-input "high" (documented name form, via action) parseTaskRequest: OK priority=20
C priority-input "high" (documented name form, via action) parseSessionRequest: OK priority=20
D direct API numeric 50 (no action) parseTaskRequest: OK priority=50
D direct API numeric 50 (no action) parseSessionRequest: OK priority=50
E omitted priority (via action) parseTaskRequest: OK priority=40
E omitted priority (via action) parseSessionRequest: OK priority=40

No in-repo workflow passes priority to the actions yet (grep over .github/workflows/), so this bites the next caller — most likely another allowlisted repo following the published action docs — rather than a current in-repo call site.

Why it matters

The actions are the documented, OIDC-authenticated way for any allowlisted repo to enqueue or launch dispatch work, and their input contract advertises the queue's full 10-90 scale. A caller using it gets an opaque 400 ("unknown name") for a value the docs told them was valid, with the failing layer (action jq typing vs server validation) not obvious from either side alone.

Acceptance criteria

  • Passing any documented priority form through either composite action — numeric string "10"-"90" and the names — produces a request the server accepts, resolving to the same scale value a raw API caller gets for the numeric form.
  • The fix layer is pinned by triage: actions emit a JSON number for numeric input (e.g. a numeric branch in the jq construction), or the server accepts numeric strings in resolvePriority — one canonical behaviour, tested at that layer. (If the server route is chosen, note it also changes raw-API behaviour for "50" string callers; if the action route, both actions must change identically.)
  • Tests pin the through-the-action payload for a numeric priority (payload-shape test or a validate test fed the action-constructed JSON), plus the existing name/omitted cases.
  • The action input descriptions and the server contract agree after the fix; existing dispatch tests still pass.

Related: #2668 (dispatch launch-pipeline boundary-validation design) — this is a concrete instance of a request the boundary mis-classifies, filed separately because the defect is in the action/server contract, not the launch pipeline ordering.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    effort/xsTrivial: expected under 30 minutes of work
    on Oct 30, 2026
  2. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: filed

    • Agent: new-issue-creator (lane B, new-issue-creator-code-b)
    • Session / ID: cron new-issue-creator-code-b, run 2026-10-30T10:20Z (America/Chicago 05:20)
    • Found via: filed this run
    • Task: Triage the pm-dispatch composite-action numeric-priority contract bug: actions document 10-90 but send priority as a JSON string, which the server's resolvePriority rejects as an unknown name (verified by laptop probe against the real validate.ts).
    • Expectation: effort xs triage — pin the fix layer (action jq numeric branch vs server numeric-string acceptance), then route a small_fix packet.
    • Links: probe ~/git/fleet/probe-2026-10-30-laneB-priority/ (laptop); evidence in the issue body.
  3. github-actions
    assigned
    dezren39
    on Oct 30, 2026
  4. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 31, 2026
  5. 8 remaining items

  6. dezren39
    removed
    queue/queuedHas a queued queue task
    on Oct 31, 2026
  7. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker, task 4416
    • State: parked after implementation; blocked on Git HTTPS push credentials.
    • Resume: worktree /home/user/git/fleet/4416-2679-numeric-priority, branch queue/4416-2679-numeric-priority, local commit 1c8061768; push commit, revalidate ownership, and open PR. Remote branch currently contains only the base commit.
    • Verification: dispatch bun test: 59 passed. No PR opened.
  8. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    queue/in-progress
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 31, 2026
  9. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane E
    • Session / ID: queue task 4416 (resume)
    • Found via: queue claim
    • Task: Resume at targeted_tests_passed: commit 1c80617 was parked only for unavailable git push auth. Verified this shift: worktree clean, diff = validate.ts numeric-string branch + validate tests + README (packet scope); push auth works — branch pushed unchanged (remote verified at 1c80617 via ls-remote); full dispatch suite re-run on the laptop: 59 pass / 0 fail. PR opened from the pushed branch.
    • Expectation: effort/xs; done = PR green in CI + Codex clean -> merge -> close pm-dispatch(actions): documented numeric priority (10-90) always 400s — actions send it as a string, server only accepts names as strings #2679 -> complete fixed_merged.
    • Links: branch queue/4416-2679-numeric-priority @1c8061768
  10. dezren39
    added a commit that references this issue on Oct 31, 2026

    fix(dispatch): resolvePriority accepts numeric strings (#2679) (#3154)

    cd8c113
  11. dezren39
    closed this as completedin #3154on Oct 31, 2026
  12. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 31, 2026
  13. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane E
    • Session / ID: queue task 4416 (resume)
    • Found via: queue claim
    • Task: pm-dispatch(actions): documented numeric priority (10-90) always 400s — actions send it as a string, server only accepts names as strings #2679 fixed and merged. The previous lane's commit 1c80617 (resolvePriority numeric-string branch in pm-stack/dispatch/src/validate.ts + tests + README) was parked only for unavailable push auth; this shift verified the worktree/diff, confirmed push auth works, pushed the branch unchanged (ls-remote verified), re-ran the full dispatch suite on the laptop (59 pass / 0 fail), opened PR fix(dispatch): resolvePriority accepts numeric strings (#2679) #3154, and merged it after Codex review completed clean on the head. No CI workflow covers pm-stack/dispatch (searched .github/workflows; pm-dispatch is an agent-dispatch workflow, its smoke file is a fabricated-context proof harness), so CI is not_applicable — laptop tests + Codex were the gates.
    • Expectation: done — PR fix(dispatch): resolvePriority accepts numeric strings (#2679) #3154 squash-merged as cd8c113; this issue auto-closed on merge.
    • Links: fix(dispatch): resolvePriority accepts numeric strings (#2679) #3154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.