gc roles view beads: show a rig's work in flight (with a Worker, in review, in rework), not 'waiting on you' #73
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/gascitypacks!73
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/gascitypacks-uwub"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
gc roles view beadsnow shows what is in flight for a rig, first, one line a bead with its pull request's number, andwaiting on youholds only what waits for the user.Groups, in the order of the screen: with a Worker · in review · in rework · approved · waiting on you · with the Operator · queued · backlog (count per rig) · parked (count per rig) · recently closed.
mol-worker-work(in_progress,worker_sessionset, no assignee) — this is the view's part of Landing's L21 — or, as before, a held workflow step. The line endssince HH:MM.reviewlabel,work_bead= the bead, noreview_verdict) names it.pr_urlor thereworklabel and a Worker holds it (PR n · Worker HH:MM), it is slung again and waits (queued), or its last review failed (changes asked).gc events --type bead.closed --since 24hby the newreviews.jq) counts only if it is later than the work bead's last change, so a bead handed over again is not taken for its old review's. Beyond 24h a closed review's verdict is no longer known to the view (stated in the README).waiting on you. Service beads and convoys are still left out; lines are still cut to the pane's width.One rig:
--rig <name>, else the rig whose path holds the directory the command was started in (meta.jqnow readspath; both the shell's$PWDandpwd -Pare tried), else every rig as before. An unknown name draws one line naming the rigs there are.jq or Go (docs/shell.md): the view stays jq; no logic moves to Go. The shell gains the
--rigflag, the start directory and a second jq run (reviews.jq) over the events it already reads.For the Operator, after the release: a rig tab's pane should run
(for rexcity:
gc roles view beads --rig rexcity), which needs no particular directory. Started from inside the rig's directory the plaingc roles view beadspicks the rig by itself. Change the city'srexcity.tomlpane command to that once this is released and imported.Verified:
tests/view-beads.shpasses on jq 1.6, 1.7.1 and 1.8.2 with new fixtures for each group (claim mark, review open, review closed pass/fail/void, stale verdict, rework by Worker/queued, parked), the scope by name, directory, subdirectory, link and unknown name, and the command's--rigflag;shellcheckclean;gc lint .ok. A changelog fragment is in.changelog/view-beads-in-flight.md. The v2 changelog checker could not resolveorigin/mainfrom this linked worktree (missing-fragment: no branch, reference or commit), so CI is its first run.Not done / notes: the Reviewer's review order (L15) does not exist yet, so on a live city nothing creates review beads today; until it does, handed-over beads still show under
waiting on you. The rework case by verdict also needs that order.Bead: gascitypacks-uwub
Review of
9bef88e7edfor gascitypacks-uwub. Checks of the head: success.Verdict
pass
Findings
gascitypackslists 15 beads under "in review" (gascitypacks-uwub among them, through this very review bead, gascitypacks-i1wb) and 5 under "approved". The code is right; the note is out of date. Nothing to change in the code.--rigparse, the start directory and a second jq run. Measured with the counter of docs/shell.md Appendix A, the unit goes from S=105 D=25 P=9 F=3 on main to S=112 D=25 P=10 F=3. The unit is already over Moderate on main and is set to move to Go last (section 5), and the ledger (gascitypacks-0uk) does not exist yet. The work bead let the view stay jq if the PR said so, and it does, listing what the shell gains. Not blocking: this is the least shell the feature can have. Recorded so that the ledger's first measure of this unit is the one after this merge.Verified
labels,secs,clock).go vet ./...andgo test ./...pass, and shellcheck is clean on run.sh and tests/view-beads.sh.gc init --no-start, throwaway HOME), a probe pack command showed two things. gc runs a pack command in the directory it was started in (PWD is kept, so finding the rig from the directory works). And gc passes--rig rexcityand--rig=rexcitythrough to the command even though gc has a global--rigflag of its own. So the pane commandgc roles view beads --rig <rig>reaches run.sh as the PR intends.gc config showon the live city prints each rig'spathas an absolute path under[[rigs]], which is what meta.jq now reads. The workspace has no path, so the city directory shows every rig.gc events --type bead.closedpayloads carrylabels[review, service] and the metadatawork_beadandreview_verdict, which reviews.jq relies on.secsreads their timestamp format (fractional seconds, +01:00).--rig gascitypacks --once). The groups come out in the stated order and only gascitypacks beads are listed. The beads under "in review" each have an open review bead with no verdict (checked 5 of them by hand). The approved beads (mkr, 2naa, …) match the pass verdicts closed in the last 24h. Parked beads are counted, and service beads and convoys are left out.city-root referenced this pull request2026-11-12 17:36:47 +00:00