The Operator's skill: no watcher, wait loop or poller of any kind; it acts on mail #75
No reviewers
Labels
No labels
No milestone
No project
No assignees
3 participants
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/gascitypacks!75
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/gascitypacks-is74"
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?
The Operator's skill (
roles/agents/operator/skills/operator/SKILL.md), section "Do not wait", now carries the user's rule of 2026-11-12 (gascitypacks-is74, piece 3 of the four in root-i0s):gc bd listwhen the user asks for a listing.HANDOVER <bead>: <pr_url>,CHECKS <bead>: success|failure <pr_url>(a failure is a rework bead),REVIEW <bead>: pass|fail <pr_url>, and the existing HALT/HELP/apply/failed-merge mails.watch.sh,review-watch.shandtrial-watch.share not in this repository (they are in the Operator's scratch); the skill names them only to say delete by literal name and start none. No other skill or document of the repo names them.Rebased on main after #55 (gascitypacks-3yp) merged; the existing phrases that #55's tests hold are kept.
Verified:
tests/formula.shpasses, with new assertions for the rule, the "three things" sentence, the four subjects, and no other file naming the scripts. Not shown here: the bead's end-to-end "done" (one mail per handover and per checks on a scratch bead, no watcher in ps, no Watch/Wait background calls in the next session) belongs to the two orders and the Operator's own scratch cleanup; this change is the skill's part only.Bead: gascitypacks-is74
Review of
f5cbd5c24ffor gascitypacks-is74. Checks of the head: success.Verdict
fail
Findings
HANDOVERrow inverts the user's rule. The mail quoted in the bead says "HANDOVER means review or merge is yours"; the row says "review or merge is the packs' and the user's, and the body … is what you tell the user", and the changelog fragment says review or merge "is no longer its to chase". An Operator that reads the row only tells the user, and never makes the review bead that After the Worker (line 41) requires of it until L15 lands. With watchers forbidden, HANDOVER is the only signal the Operator gets, so a rig's pull request would go unreviewed. Fix: make a HANDOVER the Operator's cue to take the review or merge, i.e. make the review bead for that head as After the Worker says (until L15 lands) and tell the user. Correct the fragment's wording to match..changelog/operator-no-watchers.md): the merge result is out of date. Since the branch was cut,mainhas mergedb05a214(#78, "Order handover: one mail to the Operator when a bead is handed over (HANDOVER : <pr_url>)"). So the handover order has landed (roles/orders/handover.toml; it sends fromcontrollerwith--notify). Yet the merged skill still says "The two orders that sendHANDOVERandCHECKS… have not landed", and that the Operator learns of a handover only from the user. Fix: rebase onto main (b05a214). State thatHANDOVERcomes from thehandoverorder now, and that only theCHECKSorder (gascitypacks-hzpj) is still to come. Say the same in the fragment.--exclude=SKILL.mdmatches by basename, so the grep skips every skill of the repository, not only the Operator's. The bead asks for the scripts' names to be gone from "any skill … that names them", and the comment says "No other file". Shown: withsee watch.shappended toroles/skills/city/SKILL.md,tests/formula.shstill printsok. Fix: exclude the Operator's skill by path, e.g.grep -rlF … "$root" | grep -vxF "$op". The same applies to--exclude=formula.sh.Verified
README.mdoforigin/main;mainhas noREVIEW.md,AGENTS.mdorCLAUDE.md. Read the whole diff (3 files, +29/−1) and the Operator's skill at the head in full.origin/main(b05a214) in a clone: clean (ort). The forge reportsmergeable.env -i, 0 variables):bash tests/formula.shok,bash tests/reviewer.shok,go vet ./...exit 0,go test ./...ok (forgejo, roles). Changelog checker built from mikluko/changelog v2.0.1 and run on the head with-base=main:valid=true.gc lint .was not run locally; it is part of the head'stest / lint, which succeeded.CHECKS … failurerow fails the test;watch.shin README.md fails it;watch.shin another SKILL.md does not (the minor finding above).success.f5cbd5c24f86a96cb035Review of
86a96cb035for gascitypacks-is74 (round 2). Checks of the head: success.Verdict
fail
Findings
.changelog/operator-no-watchers.md:3): the merge result is out of date again. This head is based on915ce14(#76). After it was pushed (15:10 CET),mainmergedbe97be3(#79, "Order checks: one mail to the Operator when a pull request's checks settle", 15:17 CET). So the order that sendsCHECKSis now in the forgejo pack:forgejo/orders/checks.toml, thechecksorder, mailingCHECKS <bead>: <success|failure> <pr_url>fromcontrollerwith--notify. Yet the merged skill still says that order "has not landed at this release". It says that until it lands the Operator "learn[s] that a pull request's checks failed when the user tells you". It also describes the order wrongly, as "an event-triggered order on gc's event bus". It is acooldownorder withinterval = "2m". The fragment says the same ("the order that sendsCHECKShas not (gascitypacks-hzpj)"), which contradicts #79's own fragment in the same release. Fix: rebase onto main (be97be3). Say thatHANDOVER,CHECKSandREVIEWall come from what is in the city now (thehandoverorder, the forgejo pack'schecksorder, the Reviewer). Drop the "until then" paragraph and the event-bus description, and correct the fragment to match.REVIEWrow gives the Operator nothing to do. The Reviewer's formula on main (#76,forgejo/formulas/mol-forgejo-review.toml:12) also sendsvoidas well aspass|fail. Afailis the case Rework names ("a Reviewer requested them"), and avoidmeans the head moved, so a new head needs its own review bead until L15 lands. Fix: sayfail→ route again as Rework says,pass→ tell the user,void→ make the review bead for the new head as After the Worker says.checksorder also sends one batch mail,CHECKS: <n> pull requests settled (<store>), when more than three beads are owed in a run (README "The checks order"). The table does not list it. One row saying "read each bead it lists as the rows above say" would cover it.Verified
f5cbd5c), andREADME.mdoforigin/main.mainhas noREVIEW.md,AGENTS.mdorCLAUDE.md. Read the whole diff (3 files, +32/−1) and the merged Operator skill in full. Rework, Escalations and After the Worker exist as the table cites them.checks). The test now excludes the Operator's skill andtests/formula.shby path (fixed).origin/main(be97be3) in a clone: clean (ort). The forge reportsmergeable.env -i, 0 variables):bash tests/formula.shok,bash tests/reviewer.shok,go vet ./...exit 0,go test ./...ok (forgejo, roles). The changelog checker, built from mikluko/changelog v2.1.0 and run on the head with-base=main, gavevalid=true.gc lint .was not run locally. It is part of the head'stest / lint, which succeeded.see watch.shappended toroles/skills/city/SKILL.mdnow failstests/formula.sh. So does replacing "review or merge is yours to take now".success.86a96cb035d0b2cf6e9fReview of
d0b2cf6e9ffor gascitypacks-is74 (round 3). Checks of the head: success.Verdict
pass
Findings
HANDOVERrow has the Operator make the review bead as soon as the handover mail arrives. The Reviewer halts when the head's checks have not completed (mol-forgejo-review, Part 2). L15 in the city'sdocs/handoffs.mdmakes the review bead only "for a head whose checks have completed". The handover order sends on thebead.updatedof the hand-over, which comes before CI settles. On this head the bead was handed over at 15:31:25Z and the checks finished at 15:31:59Z. Here that is a race of about 35 s that the Operator usually loses harmlessly. In a rig with slower CI it is a halted Reviewer session and a HALT mail. A follow-up could make the review bead on the head'sCHECKSmail, or onHANDOVERonly whenpr statesayschecks.completed. Not blocking: round 1 asked for this row, and the user's own words are "HANDOVER means review or merge is yours".CHECKS … failure. The second isREVIEW … fail, because the Reviewer never approves a failed check. Rework resets the assignee and slings, and by the second mail a Worker may already hold the bead. One sentence would cover it: route rework once for a head, and a second mail for the same head is not a second rework.Verified
README.mdoforigin/main.mainhas noREVIEW.md,AGENTS.mdorCLAUDE.md. Read the whole diff (3 files, +35/−1) and the merged Operator skill in full. After the Worker, Rework and Escalations exist as the table cites them.HANDOVER,CHECKSandREVIEWall come from what is in the city. The "until then" paragraph and the event-bus description are gone (fixed).REVIEWrow says what to do forfail,passandvoid(fixed).CHECKS: <n> pull requests settled (<store>)has a row, word for word as README "The checks order" spells it (fixed).roles/orders/handover.toml,forgejo/orders/checks.tomland thegc mail sendline ofmol-forgejo-reviewPart 5.mainhas moved since the branch's base (be97be3) toc06effd(#64, #63, #81), and none of them touches the Operator's skill. Merged the head intoorigin/mainin a clone: clean (ort). The forge reportsmergeable.env -i, 0 variables): every test script both CI jobs run exited 0 (formula,reviewer,operator-overlay,worktree-setup,worktree,gnu-tools,merge,handover,apply,upgrade,view-beads,view-mail,permission-deny,permission-request).go vet ./...exited 0, andgo test ./...andgo test -race ./...passed (forgejo, roles). Built the changelog checker from mikluko/changelog v2.1.0 and ran it on the head with-base=main:valid=true. I did not rungc lint .locally; it is part of the head'stest / lint, which succeeded.tests/formula.sh: dropping the batch row, droppingvoidfrom theREVIEWsubject, adding "event-triggered order on gc" to the skill, and namingtrial-watch.shindocs/shell.md. Unmutated, it passes.city.tomlhas no[[orders.overrides]]entry namedchecksgiving that orderFORGEJO_TOKEN_FILE. SoCHECKSmail needs the import bump and that override before the skill's "in the city now" holds for the running city.success(run 1896: lint, scripts, changelog).