Repository navigation
Description
Goal
task start no longer attempts to assign an app:-typed caller (GitHub refuses Apps as assignees, so the note was permanent) and says nothing; status shows the holder of an in-progress or in-review task from its latest Started-by record rather than the assignee list. Adopts #287.
Requirements
M15-R2
Adopts
- Backlog capture: task start cannot assign an App to the issue (403) and says so on every run #287 — Backlog capture: task start cannot assign an App to the issue (403) and says so on every run
Plan
task start (internal/cli/task.go). The c.t.Assign(ref, viewer) call and its note: could not assign fallback move behind a predicate on the caller's identity kind. The predicate is the existing crewIdentity(c) — it already answers exactly "is this login a GitHub App": true for a [bot] suffix (an App by construction) and for a login the routing table resolves to an app:-typed row, false for user:, team: and the unrouted operator. An App caller is not assigned and nothing is printed about assignment; the **Started by** record is posted as before and is the fact. A user:/team:/operator caller is still assigned, and a failure there is still the existing note.
The verb is split the way taskNew/runTaskNew already are — taskStart parses and loads, runTaskStart(c, w, ref) does the work — so the behaviour is reachable from a fake tracker.
status (internal/cli/status.go). For a task whose inferred state is in progress or in review, the name shown is tracker.StartedBy of the task's comments, falling back to the first assignee when nothing records a start. One Comments read per task, only in those two states; a read that fails falls through to the assignee rather than failing the report.
Docs. SPEC §6's task start row loses "(and assigns the caller where GitHub allows — humans; App identities are not assignable)" for what the verb now does; the status row gains the holder sentence. docs/identities.md's "Bot identities are not assignable to issues" quirk says the verb no longer attempts it. git grep "could not assign" finds no other doc sentence.
Tests. task_test.go: an app-typed routed viewer starts a task — Assign never called, output carries no note:; a user:-typed viewer — Assign called with the login; an assignment that fails for a human still prints the note. status_test.go: an in-progress task with no assignees shows @radiusred-cody[bot] from a start-record comment; a start record differing from the assignee wins; no record falls back to the assignee; a ready task reads no comments.
Decisions to record. The [bot]-suffixed unrouted login (treated as an App — GitHub refuses it either way); keeping the assignee as a display fallback; and not making the start record an in-progress signal in InferState.
Ask-the-human points
None. The two judgment calls the brief flags — the unrouted [bot] login and the assignee fallback — are ordinary engineering calls and are recorded as Decisions on this issue.
Activity
radiusred-cody commentedon Sep 6, 2026
Started by @radiusred-cody[bot].
radiusred-cody commentedon Sep 7, 2026
Decision: an unrouted login carrying the
[bot]suffix is treated as an App and is not offered as an assignee either, so the predicatetask startbranches on is the existingcrewIdentity(c)— true for a[bot]suffix and for a login the routing table resolves to anapp:-typed row, false foruser:,team:and the operator.Trade-off: the skip is now slightly wider than "the routing table says
app:". A[bot]login this project's table does not name is still a GitHub App by construction, and GitHub refuses it as an assignee exactly as it refuses a routed one, so the call skipped is a call that could only have produced the 403 #287 is about.crewIdentity's own contract already says this — "a[bot]login is an App by construction, and a routed seat is crew only when its row saysapp:" — so the two predicates are the same set, and reusing it means the answer to "is this login a GitHub App" cannot come out two different ways in two places.Rejected: a narrower
identity.Kind == config.KindApptest on the routed row alone. It would leave an unrouted App seat — a fleet repo mid-migration, a harness minting an App this hub's table does not list — printing the permanent 403 note that this task exists to remove, and it would put a second, subtly different definition of "is an App" next tocrewIdentity.radiusred-cody commentedon Sep 7, 2026
Decision:
statusprefers the latest**Started by**record for a task in progress or in review, and keeps the first assignee as a fallback when nothing records a start.Trade-off: 2.0 deleted the assignee fallback from
tracker.StartedByon the principle that an assignee is not a start record (M13-R7), and keeping one here reads at first like reinstating that shim. It is not the same thing:StartedByanswers "who owns this task", a gatetask finishrefuses on, and it still has no fallback — a task with no record still refusesNOT_OWNER.statusanswers "what is GitHub showing about this task", and there the fallback is forced by the state machine above it: SPEC §4 infers "in progress" from the assignee being set, so a task in that state with no start record would print a state with no name capable of explaining it. The helper's doc comment says the fallback is display-only.Rejected: dropping the fallback entirely for consistency with
StartedBy. It makes the board strictly less informative than the issue page for a hand-assigned task, and prints a self-contradictory line —[in progress]with nobody named — for the one case that produced the state.radiusred-cody commentedon Sep 7, 2026
Decision:
tracker.InferStateis left alone; the start record does not become an "in progress" signal in this task.Trade-off: the consequence is that an App-run task that has started but has no PR open yet still shows
[ready], and so never reaches the state whose holder this task teachesstatusto name — the new holder line reaches an App-run task in thein reviewstate, and reaches a human-run task in both. R2's own words are "in progress or in review", so the change satisfies the requirement as written, but the App case is thinner than it first reads.Rejected: making a
**Started by**record inferInProgress. That is an edit to SPEC §4's lifecycle table — "In progress | Assignee set" — and so a protocol change; M15's Goal states that all seven captures it adopts are implementation corrections and none is a protocol change, and the implementer contract forbids editing requirement definitions. It would also make the state machine need a comments read for every task in every state, where the requirement bounds the cost at one read per task in two states. Flagged for the reviewer and the operator as a possible backlog capture rather than resolved here.fix: task start does not offer an App as an assignee (#307)
feat: status names the holder of a task in flight from its start reco…
docs: the SPEC rows and the identities quirk follow task start and st…
fix: task start does not offer an App as an assignee (#307)
feat: status names the holder of a task in flight from its start reco…
docs: the SPEC rows and the identities quirk follow task start and st…