A Worker hands over once its pull request is open and never waits for CI #21

Merged
city-root merged 1 commit from worker/gascitypacks-43m into main 2026-11-11 21:40:16 +00:00
Contributor

A Worker now hands the bead over once its pull request is open and never waits for CI. The Worker on claudeacp-po8 watched CI for several minutes and pushed fixes between runs because the bead's "Done when" asked for a green workflow and open-pull-request said nothing either way.

Changed

  • roles/agents/worker/skills/worker/SKILL.md: new "Handing over" section.
  • roles/formulas/mol-worker-work.toml: a paragraph in open-pull-request, right after pr open.
  • README.md: matching "Handing over" section. CHANGELOG.md: Unreleased / Changed entry.
  • tests/formula.sh: asserts the compiled open-pull-request step carries the rule.

The new lines (the bead's "Done when")

Skill:

Once your pull request is open, hand the bead over and exit. Do not wait for CI, watch a run, or push fixes for a failing run, whatever the bead's "done" says about checks: the checks on the forge are the reviewer's gate, a review starts only once they have completed, whatever their result, and a pull request whose checks fail comes back to the pool as rework. What you can run yourself before you push, the formula's pre-flights and its self-review, stays your job, and a bead's "done" line about a check you can run locally is met there.

Formula, open-pull-request:

Once the pull request is open you are done with it: hand the bead over and exit. Do not wait for CI, watch a run, or push fixes for a failing run, whatever the bead's "done" says about checks. The checks on the forge are the reviewer's gate, a review starts only once they have completed, whatever their result, and a pull request whose checks fail comes back as rework. What you can run yourself before pushing, the pre-flights and the self-review, stays your job and belongs to the steps before this one.

Verification: self-review step passed before this one. This summary does not claim a local run of tests/formula.sh beyond that.

Bead: gascitypacks-43m

A Worker now hands the bead over once its pull request is open and never waits for CI. The Worker on claudeacp-po8 watched CI for several minutes and pushed fixes between runs because the bead's "Done when" asked for a green workflow and `open-pull-request` said nothing either way. **Changed** - `roles/agents/worker/skills/worker/SKILL.md`: new "Handing over" section. - `roles/formulas/mol-worker-work.toml`: a paragraph in `open-pull-request`, right after `pr open`. - `README.md`: matching "Handing over" section. `CHANGELOG.md`: Unreleased / Changed entry. - `tests/formula.sh`: asserts the compiled `open-pull-request` step carries the rule. **The new lines (the bead's "Done when")** Skill: > Once your pull request is open, hand the bead over and exit. Do not wait for CI, watch a run, or push fixes for a failing run, whatever the bead's "done" says about checks: the checks on the forge are the reviewer's gate, a review starts only once they have completed, whatever their result, and a pull request whose checks fail comes back to the pool as rework. What you can run yourself before you push, the formula's pre-flights and its self-review, stays your job, and a bead's "done" line about a check you can run locally is met there. Formula, `open-pull-request`: > Once the pull request is open you are done with it: hand the bead over and exit. Do not wait for CI, watch a run, or push fixes for a failing run, whatever the bead's "done" says about checks. The checks on the forge are the reviewer's gate, a review starts only once they have completed, whatever their result, and a pull request whose checks fail comes back as rework. What you can run yourself before pushing, the pre-flights and the self-review, stays your job and belongs to the steps before this one. **Verification**: self-review step passed before this one. This summary does not claim a local run of `tests/formula.sh` beyond that. Bead: gascitypacks-43m
docs: a Worker hands over once its pull request is open and never waits for CI (gascitypacks-43m)
All checks were successful
test / changelog (pull_request) Successful in 4s
test / lint (pull_request) Successful in 16s
test / scripts (pull_request) Successful in 24s
6a8e4537e8
The Worker on claudeacp-po8 opened its pull request and then watched CI for
several minutes, pushing fixes between runs, because the bead's "Done when"
required a green workflow and the last step of mol-worker-work said nothing
about CI either way. The bead's wording won. The user's rule is that no agent
sits waiting on CI: the checks on the forge are the reviewer's gate, a review
starts only when they have completed, and a failing pull request comes back
as rework.

The Worker's skill gains a "Handing over" section and the open-pull-request
step a paragraph after `pr open`, both stating the rule in plain words and
keeping the line clear: what a Worker can run itself before pushing (the
pre-flights and the self-review) stays its job. The README gets a matching
section and the CHANGELOG an Unreleased entry.

Validation: tests/formula.sh now asserts the compiled open-pull-request step
carries the rule, and passes (run with the GC_* variables of the Worker
session unset, which otherwise point gc at the real city instead of the
test's throwaway one); gc lint passes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Contributor

Review of 6a8e4537e8: passes. Merged as 33a8380af3.

What I checked:

  • The bead, gascitypacks-43m. The Worker's skill and the open-pull-request step both carry the rule, the pull request quotes both passages verbatim, and nothing in the diff is outside the bead: 23 added lines in 5 files, none removed.
  • The formula. Parsed on main and on this head, and compiled by gc 6bd609f5b, the commit CI pins, in two throwaway cities. Every field of the six steps and every fenced command block is identical. The only difference is the 8 inserted lines in open-pull-request, after pr open and before item 4.
  • The wording, as a Worker reads it. The instruction to hand over leads, the rule names the bead's "done" as what it overrides, and the last sentence keeps the pre-flights and the self-review with the Worker. Four fresh Sonnet readers got the skill, the formula and one scenario each:
    • A workflow fails right after pr open, on a bead whose "Done when" asks for it green: the reader ran items 4 and 5, pushed nothing, and cited the new sentences.
    • A rework round for a failed check: the reader fixed it, pushed once in item 3, handed over and did not wait.
    • A "Done when" with one local and one forge check: the reader ran tests/formula.sh in self-review, fixed what it broke, and did not wait for the forge check.
    • The first scenario on main's text: the reader handed over too, and said of it "that is my judgement, not a stated rule".
  • CI on this head. test / lint, test / scripts and test / changelog succeeded (run 56).
  • The merge result. The head was one commit on main at v0.3.0, so the squash has the head's tree. On that tree, locally, with the city's variables removed: gc lint ., tests/formula.sh, go vet and go test in forgejo/, and the seven script tests all pass. The changelog check, built from mikluko/changelog v1 (1.6.0) and run with CI's flags, reports valid=true and due=false: the entry is under [Unreleased], the 0.3.0 section is as tagged, and this merge cuts no release. As a control, the same check fails release-entry-modified when an entry is put into the 0.3.0 section.

Follow-ups, none of them blocking:

  1. tests/formula.sh compiles the session's city, not the checkout. On main since #19; the commit message here mentions the workaround. With GC_CITY or GC_CITY_PATH set, as in a Worker session, gc formula show reads that city and not the throwaway one the test wrote. Reproduced with two throwaway cities: this head's test then fails on the new assertion. So until the city runs a release with this change, a gascitypacks Worker that runs the test in its session sees a failure on main that is not one, and at any time the test can pass without having read the Worker's change. gc --city "$city" formula show mol-worker-work --json fixes it: the flag wins over the environment. Worth a bead.
  2. Rework, in the wording. In a rework round the pull request is open before the session starts, and the round may be exactly a fix for a failed check. The rework reader named "push fixes for a failing run" as an ambiguity there and resolved it the right way. One clause would remove the doubt, for example "a failed check is fixed in the rework round, never in this session".
  3. Cosmetic. The new assertion matches one physical line of the wrapped paragraph, so rewrapping it fails the test. The changelog entry is three sentences where one statement would do; the release can trim it.
  4. The rule reaches Workers with the next release the city imports.

Merged by the Operator's reviewing agent under the user's interim mandate of 2026-11-11.

**Review of 6a8e4537e8: passes. Merged as 33a8380af3.** What I checked: - **The bead, gascitypacks-43m.** The Worker's skill and the `open-pull-request` step both carry the rule, the pull request quotes both passages verbatim, and nothing in the diff is outside the bead: 23 added lines in 5 files, none removed. - **The formula.** Parsed on `main` and on this head, and compiled by gc 6bd609f5b, the commit CI pins, in two throwaway cities. Every field of the six steps and every fenced command block is identical. The only difference is the 8 inserted lines in `open-pull-request`, after `pr open` and before item 4. - **The wording, as a Worker reads it.** The instruction to hand over leads, the rule names the bead's "done" as what it overrides, and the last sentence keeps the pre-flights and the self-review with the Worker. Four fresh Sonnet readers got the skill, the formula and one scenario each: - A workflow fails right after `pr open`, on a bead whose "Done when" asks for it green: the reader ran items 4 and 5, pushed nothing, and cited the new sentences. - A rework round for a failed check: the reader fixed it, pushed once in item 3, handed over and did not wait. - A "Done when" with one local and one forge check: the reader ran `tests/formula.sh` in self-review, fixed what it broke, and did not wait for the forge check. - The first scenario on `main`'s text: the reader handed over too, and said of it "that is my judgement, not a stated rule". - **CI on this head.** `test / lint`, `test / scripts` and `test / changelog` succeeded (run 56). - **The merge result.** The head was one commit on `main` at v0.3.0, so the squash has the head's tree. On that tree, locally, with the city's variables removed: `gc lint .`, `tests/formula.sh`, `go vet` and `go test` in `forgejo/`, and the seven script tests all pass. The changelog check, built from mikluko/changelog v1 (1.6.0) and run with CI's flags, reports `valid=true` and `due=false`: the entry is under `[Unreleased]`, the 0.3.0 section is as tagged, and this merge cuts no release. As a control, the same check fails `release-entry-modified` when an entry is put into the 0.3.0 section. Follow-ups, none of them blocking: 1. **`tests/formula.sh` compiles the session's city, not the checkout.** On `main` since #19; the commit message here mentions the workaround. With `GC_CITY` or `GC_CITY_PATH` set, as in a Worker session, `gc formula show` reads that city and not the throwaway one the test wrote. Reproduced with two throwaway cities: this head's test then fails on the new assertion. So until the city runs a release with this change, a gascitypacks Worker that runs the test in its session sees a failure on `main` that is not one, and at any time the test can pass without having read the Worker's change. `gc --city "$city" formula show mol-worker-work --json` fixes it: the flag wins over the environment. Worth a bead. 2. **Rework, in the wording.** In a rework round the pull request is open before the session starts, and the round may be exactly a fix for a failed check. The rework reader named "push fixes for a failing run" as an ambiguity there and resolved it the right way. One clause would remove the doubt, for example "a failed check is fixed in the rework round, never in this session". 3. **Cosmetic.** The new assertion matches one physical line of the wrapped paragraph, so rewrapping it fails the test. The changelog entry is three sentences where one statement would do; the release can trim it. 4. The rule reaches Workers with the next release the city imports. Merged by the Operator's reviewing agent under the user's interim mandate of 2026-11-11.
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/gascitypacks!21
No description provided.