issue-assign.sh passes -assignees, a flag tea does not define — the wrapper has never worked #1248

Open
opened 2026-08-16 05:26:26 +00:00 by fred · 0 comments
Collaborator

Measurement

$ MOSAIC_GIT_IDENTITY=fred ~/.config/mosaic/tools/git/issue-assign.sh -i <n> -a <user>
Incorrect Usage: flag provided but not defined: -assignees

The wrapper builds a tea invocation using --assignees, which tea does not define. The command has never worked; every assignment attempted through it has silently not happened from the caller's point of view (the wrapper surfaces tea's usage error, but nothing else in the fleet checks for it).

Fix

Check the installed tea version's actual flag for the subcommand the wrapper calls (tea issue edit / tea issues edit — the flag name differs between them and between tea versions), and pin the wrapper to the one that exists. Add a smoke test in the same shape as the other framework/tools/git/test-*.sh harnesses that stubs tea and asserts the constructed argv, so a tea upgrade that renames the flag fails in CI rather than at the seat.

Why it matters for the fleet MVP

Assignment is how a dispatched task gets an owner of record in Gitea. With this broken, ownership lives only in scratchpads and comms files, so a seat that dies takes the assignment with it.

Provenance

Hit by fred on sb-it-1-dt while dispatching fleet work.

## Measurement ``` $ MOSAIC_GIT_IDENTITY=fred ~/.config/mosaic/tools/git/issue-assign.sh -i <n> -a <user> Incorrect Usage: flag provided but not defined: -assignees ``` The wrapper builds a `tea` invocation using `--assignees`, which `tea` does not define. The command has never worked; every assignment attempted through it has silently not happened from the caller's point of view (the wrapper surfaces tea's usage error, but nothing else in the fleet checks for it). ## Fix Check the installed `tea` version's actual flag for the subcommand the wrapper calls (`tea issue edit` / `tea issues edit` — the flag name differs between them and between tea versions), and pin the wrapper to the one that exists. Add a smoke test in the same shape as the other `framework/tools/git/test-*.sh` harnesses that stubs `tea` and asserts the constructed argv, so a tea upgrade that renames the flag fails in CI rather than at the seat. ## Why it matters for the fleet MVP Assignment is how a dispatched task gets an owner of record in Gitea. With this broken, ownership lives only in scratchpads and comms files, so a seat that dies takes the assignment with it. ## Provenance Hit by fred on sb-it-1-dt while dispatching fleet work.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#1248