Skip to content

skills: review the change before the push that opens or fixes a PR - #1259

Merged
max-sixty merged 2 commits into
mainfrom
consistency
Sep 16, 2026
Merged

max-sixty merged 2 commits into
mainfrom
consistency

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Bot-authored PRs get their first review only after they open, and a review session that pushes a fix to one hands the check on that fix to the next queued run. So each finding costs a whole session: in the last 30 days, 46% of 495 bot PRs across the consumer repos went two or more self-review rounds, and 18% went four or more. A round that finds something costs $3–7 and 20–60 minutes.

This adds Review the change before the push to running-in-ci/references/pushing.md, which every session reads before git push. Before the push that opens a PR, or pushes a fix to a PR under review, the session reviews its own diff at a depth set by what the change touches and how likely it is to be wrong:

  • Docs, config, or a mechanical change gets a read-through.
  • The project's logic, anything it writes on a user's behalf, or a helper with other call sites gets the code-review pass plus a search for the same pattern elsewhere.

Triage, ci-fix, and the review skill's push step point at the section, and the references table names it. The review skill no longer describes reaching a clean pass as the next run's job.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

max-sixty and others added 2 commits September 16, 2026 09:46
A bot-authored PR gets its first review only after it opens, and a review
session that pushes a fix hands verification of that fix to the next run.
Each round is a fresh session; half of bot PRs go two or more rounds.

Add a pre-push review to pushing.md, at a depth set by what the change
touches and how likely it is to be wrong: a read-through for docs, config,
and mechanical changes; the code-review pass plus a same-pattern search for
logic, user-data writes, and shared helpers. Point to it from triage,
ci-fix, review's push step, and the running-in-ci index, and drop the
review skill's "until a pass finds nothing" loop framing.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
# Conflicts:
#	plugins/tend-ci-runner/skills/running-in-ci/SKILL.md
@max-sixty
max-sixty merged commit 354aa73 into main Sep 16, 2026
17 of 18 checks passed
@max-sixty
max-sixty deleted the consistency branch September 16, 2026 17:05
@max-sixty max-sixty mentioned this pull request Sep 16, 2026
max-sixty added a commit that referenced this pull request Sep 16, 2026
Bumps the generator to 0.2.9, syncs `uv.lock`, and adds the `## 0.2.9`
changelog section that `pypi-release.yaml` publishes as the GitHub
Release notes.

The release covers 7 commits since 0.2.8. #1254 sets `NO_COLOR=1` and
`CLICOLOR_FORCE=0` on tend's Python `gh` readers, including the
pre-check scripts inlined into the generated `tend-notifications` and
`tend-mention` workflows, so an inherited forced colour setting no
longer breaks their JSON parsing. #1259 has a session review its own
diff before the push that opens a PR or pushes a fix to one under
review. #1253 makes `running-in-ci`'s references index a table keyed by
action, so PR and issue creation reads `posting.md`. #1258 adds a
comment to the generated `tend-mention-relay.yaml`. No config format
changes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
max-sixty pushed a commit to max-sixty/worktrunk that referenced this pull request Sep 17, 2026
Regenerates the `tend-*.yaml` workflows with tend 0.2.9 (from 0.2.8) and
moves the
`max-sixty/tend/claude` action pin with them.

Two changes reach the generated files:

- **`gh` JSON reads are no longer corrupted by a forced-colour
environment.** The
preflight scripts in `tend-mention` and `tend-notifications` parse `gh
--json`
output; when the job environment forces colour, `gh` writes ANSI codes
into that
  piped response and the parse sees them. Both readers now run `gh` with
`NO_COLOR=1` and `CLICOLOR_FORCE=0` — `gh` ranks a forced value above
`NO_COLOR`,
  so the second variable is the one that actually settles it
  (max-sixty/tend#1254).
- **`tend-mention-relay` records why it carries no pause check.**
Comment only: the
relay job boots no agent, and `TEND_ENABLED=false` already skips the
jobs that do,
  so a paused repo relays an event that then reaches nothing
  (max-sixty/tend#1258).

The action bump also picks up the bundled-skill changes at that ref,
which change
how the bot behaves rather than what the workflow files say: it now
reviews a change
before the push that opens or fixes a PR (max-sixty/tend#1259), and the
`running-in-ci` references index is keyed by when to read each file
(max-sixty/tend#1253).

Release mechanics and tend-internal test/doc fixes in the range are
omitted.

Full comparison: max-sixty/tend@0.2.8...0.2.9

`.config/tend.yaml` pins no model, so nothing there needed updating.

Co-authored-by: worktrunk-bot <[email protected]>
max-sixty pushed a commit to max-sixty/leaf that referenced this pull request Sep 17, 2026
Regenerates the tend workflows from 0.2.8 to 0.2.9 and moves the
`max-sixty/tend/claude`
action pin with them.

The change adopters will notice is the forced-colour fix in the
preflight readers
(max-sixty/tend#1254). `tend-mention` and `tend-notifications` each
embed a small Python
`gh` wrapper whose `--json` output is parsed before the agent boots.
`gh` colourizes a
piped JSON response when the job environment forces colour, and those
ANSI codes landed
inside the body the wrapper hands to `json.loads`, failing the preflight
and stranding the
trigger. Both wrappers now run `gh` with `NO_COLOR=1` and
`CLICOLOR_FORCE=0`; the second is
what actually defeats it, since `gh` ranks a forced value above
`NO_COLOR`.

The bundled skills carry one behaviour change with it: the bot now
reviews its own change
before the push that opens or fixes a PR (max-sixty/tend#1259), so a PR
it opens should
arrive having had a pass over its own diff.

`tend-mention-relay` gains comment-only text recording why the relay job
carries no
`TEND_ENABLED` check — it boots no agent, and a paused repo stops at
`tend-mention`'s
`verify` regardless. No behaviour change there.

Support: <max-sixty/tend@0.2.8...0.2.9>

<details><summary>Upstream commits in this range</summary>

The remaining entries are tend-internal and produce no adopter-visible
effect: the
references-index rule and its scoping (max-sixty/tend#1253), an
integration-test count
correction (max-sixty/tend#1255), and release mechanics
(max-sixty/tend#1251, max-sixty/tend#1260).

</details>

Co-authored-by: leaf-agent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants