Repository navigation
Conversation
Moves Tend's eight generated workflows and the hand-maintained reviewer workflow to the published `max-sixty/tend/[email protected]` action. Two behavior changes ride along, both already merged into the generator: - `tend-review` drops its pre-boot gate and the `tend-review/<pr>` commit status it read, and gains `queue: max` so a push cannot displace a pending `ready_for_review` run (#1078). - `tend-notifications` replaces the three-layer inbox sweep with a paginated cutoff snapshot, repairs repository watching on every poll, passes the cutoff to the agent, and serializes on a `tend-notifications` concurrency group (#1074). Verified by rerunning `uvx [email protected] init` to an unchanged generated diff and running pre-commit on all nine workflows. Pre-commit strips one trailing-whitespace line the generator emits in the notifications prompt; the generator fix for that lands separately. > _This was written by Claude Code on behalf of max-sixty_
tend-agent
left a comment
There was a problem hiding this comment.
Regenerated with the in-tree generator — which is exactly 0.1.21, since the release commit is this PR's base — into a scratch tree and diffed all eight generated files against the committed ones. Byte-identical except the one line the description discloses. 0.1.21 resolves as a tag, and grep -oh 'max-sixty/tend/[a-z-]*@[0-9.]*' .github/workflows/*.yaml | sort -u is a single line, so the hand-maintained review-reviewers.yaml is restamped correctly. The dropped tend-review/<pr> stamp has no remaining reader: the 0.1.21 review skill no longer writes it, test_generate.py and test_bot_review_state.py assert its absence, and it isn't a required context.
One thing the "caveat" paragraph understates. The 12-space line isn't only a cosmetic divergence — it makes the nightly regen fail CI, starting the first night after this lands:
uvx tend@latest initre-adds the trailing whitespace on.github/workflows/tend-notifications.yamlline 98.- Nightly's stamp-only guard doesn't absorb it:
NON_STAMP_DIFFcounts both the-and+whitespace lines, so it's 2, and the PR gets created. - That PR's
lintjob runspre-commit/[email protected], which defaults to--all-files, sotrailing-whitespacerewrites the file and fails the job.
The result is a valueless PR carrying a red check, re-opened every night at 06:17 UTC until the macro fix ships in a release — which puts the follow-up on a clock rather than in the backlog. Not a reason to hold this PR: leaving the workflows on a superseded ref is worse.
The generator side is smaller than "lands separately" suggests. macros.yaml.j2 renders prompt|indent(12, first=True, blank=True); deleting blank=True leaves blank lines unindented, which is exactly the form committed here. I tried it locally — the full regtest set passes with no recorded-output changes, because pytest-regtest strips trailing whitespace when it compares, which is also why the [notifications] .out files on disk already have an unindented line 94. So it's a one-word deletion with no test churn.
Happy to open that PR if you want it queued behind this one.
Patch release carrying one generator fix. A multi-line `prompt:` rendered its blank lines padded out to the block scalar's indent, so an adopter running pre-commit's `trailing-whitespace` or `end-of-file-fixer` hooks could never commit a file matching what `init` emits. The nightly regeneration then opened a PR over that difference every night, and that PR's own `lint` job failed on it. This ships urgently because 0.1.21 is the first release where the bug is reachable: [#1074](#1074) gave `tend-notifications` the first multi-line prompt. Until 0.1.22 is on PyPI every adopter's nightly regeneration produces a red PR — `uvx tend@latest` is what the nightly runs, so merging the fix to `main` alone does not stop it. [#1089](#1089) is also in the range; it moved tend's own workflows onto 0.1.21 and has no adopter-visible effect, so it gets no changelog bullet. > _This was written by Claude Code on behalf of max-sixty_
Release step 11: moves Tend's eight generated workflows and the
hand-maintained
review-reviewers.yamlonto the publishedmax-sixty/tend/[email protected]action.initrewrites only the generatedtend-*.yamlfiles, so the reviewer workflow is restamped by hand; everyworkflow in the repo now agrees on one ref.
Two behavior changes ride along, both already merged into the generator
and released:
tend-reviewdrops its pre-boot gate and thetend-review/<pr>commit status the gate read, so reviewed commits no longer carry an
extra check row. It gains
queue: max, so a push cannot displace apending
ready_for_reviewrun.(#1078)
tend-notificationsreplaces the three-layer inbox sweep with apaginated snapshot taken at a 10-minute cutoff, repairs repository
watching on every poll, passes the cutoff through to the agent, and
serializes on a
tend-notificationsconcurrency group.(#1074)
0.1.20...0.1.21
Verification
uvx [email protected] initreruns to an unchanged generated diff; pre-commitand
uv run pytest(761 passed) are clean.One caveat, and it is the reason the diff is not purely mechanical:
pre-commit's
trailing-whitespacehook strips a 12-space line thegenerator emits inside the notifications prompt.
block_promptrendersit with
indent(12, blank=True), which indents the blank line separatingthe slash command from the cutoff line. #1074 introduced the first
multi-line prompt to go through that macro, so this is the first
regeneration to hit it. Both forms parse identically inside a YAML block
scalar, but the committed file can never match generator output until the
macro changes. The generator fix lands separately.