The Operator's skill: every piece of an epic is an HQ child; a rig piece's child closes with its pull request; an epic closes after a goal check #93
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!93
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/gascitypacks-mtcg"
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?
Adds a section "Epics" to the Operator's skill (
roles/agents/operator/skills/operator/SKILL.md), as bead gascitypacks-mtcg asks. The user's report was that the Operator never closes an epic because nothing tells it to.The rule:
gc bd create --parent <epic>). A piece that changes the city is the child itself.rig-piece, withrigandrig_beadin its metadata, andrig_pr_urlonce the pull request is open. It is a tracker: never slung, not assigned, and it never carriespr_url, which the forgejo pack's merge, checks and review orders list (the merge order would close the child as shipped).Pull request merged: <pr_url>). The merge order mails nothing for the common case (an open bead with apr_urlis closed with no mail), so the skill tells the Operator to read an epic's open children and their rig beads whenever the epic comes up, and does not add a poller.bd epic close-eligibleis forbidden: it counts only children.External dependencies. The skill answers the bead's question:
bd dep add <child> external:<project>:<capability>does not fit a rig bead. Tried with bd 1.3.4 against two scratch embedded projects (not the city's stores):external_projects.rigset to the other project's.beads, a child that depended onexternal:rig:neverwas still inbd readyand not inbd blocked, so the dependency blocked nothing;provides:<capability>, whichbd shipadds to a closed bead that hasexport:<capability>, and nothing in this repository runsbd ship;external_projectsmaps a name to a path on one machine, and the city's HQ store has none (gc bd config get external_projectsprints "not set").The HQ child that names the rig bead is therefore the rule. The skill says the trial used scratch stores.
Also checked in scratch stores:
bd epic close-eligible --dry-runlists an epic once all of its existing children are closed, whatever else the epic's notes say, and does not list an epic with no children.Tests.
tests/formula.shholds the rule's phrases (11 checks, section 8 of the Operator's skill block). I restored the skill fromorigin/main, ran the test and saw all 11 fail, then restored the change and sawok. Every added check was run this way; none could not be.changelog -base mainis valid; the fragment is.changelog/operator-epics.md.Follow-up. I filed a P3 bead in the rig's store for the missing merge event (the merge order mails only for the closed shape), to decide once the rule has been used.
Bead: gascitypacks-mtcg
Review of
2f2c0fde3efor gascitypacks-mtcg. Checks of the head: success.Verdict
pass
Findings
gc.work_outcome=shipped", which is whatcloseShipped(forgejo/assets/forgejo/order.go:378) writes on an open bead of the old shape. A rig bead closed at hand-over is already closed before the merge, and when its pull request mergesrecordMergewritesmerge_result=mergedandmerged_shaon it (order.go:641-656), notgc.work_outcome=shipped. An Operator who missed the mail and reads such a bead sees no cue from the skill. Fix: name both, "closed withgc.work_outcome=shipped, or carryingmerge_result=merged", and say a closed bead without either has not merged.Pull request merged: <pr_url>. When more thanfloodLimit(3) pull requests merge in one run,recordMergedManysends a single mail with the subject<n> pull requests merged (<store>)and a list in its body (order.go:693). The skill could say that mail lists the pull requests too.mergeorder closes the bead when the pull request merges, and mails you". The new section rightly says the order sends no mail for an open bead whose pull request merged, so the skill now contradicts itself. Line 42 is not in this diff; a follow-up could change it to match.None of these blocks: the rule the bead asks for is there, and the periodic read of an epic's children and their rig beads covers a merge that sent no mail.
Verified
holdschecks in tests/formula.sh, and a changelog fragment. Each item the bead wants is in the skill: every piece is an HQ child; a rig piece gets a child carryingrig/rig_bead(andrig_pr_url); the child closes on merge; the epic closes only after a goal check, with that check in the close reason;bd epic close-eligibleis forbidden; and the bead's question aboutexternal:<project>:<capability>is answered. Nothing unrelated is in the diff.settleOpenlists bypr_urland skipspr_event/review_headbeads (order.go:323-341), so a tracker child that carriedpr_urlwould be closed as shipped. Keepingpr_urloff the child is therefore correct, and checks_order.go and revieworder.go also readpr_url. The close reasonPull request merged: <url>matches order.go:383, and the claim that an open bead gets no mail matches order.go:376-386.--helpthat the commands' flags exist:list --metadata-field/--parent/--status/--all,create --parent/--type/--labels/--metadata(JSON),close --reason.gc bd --rig <rig>is the form the skill's existing section "Routing a request" uses. I did not repeat the external-dependency trial.mergeable), with the city's variables removed:bash tests/formula.shgives ok;changelog -base maingives valid=true;go test -v -run TestShellBudget ./internal/budgetreports 0 findings;gc lint .reports 2 packs ok.