Skip to content

docs(mention-relay): record why the relay carries no TEND_ENABLED check - #1258

Merged
max-sixty merged 1 commit into
mainfrom
docs/issue-1257
Sep 16, 2026
Merged

max-sixty merged 1 commit into
mainfrom
docs/issue-1257

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Problem

#1257 reports tend-mention-relay's job as the one generated job missing vars.TEND_ENABLED != 'false', and reads the omission as a gate dropped when #1230 split the relay out and not restored by #1233.

The mechanics in that report are right, but the omission is deliberate. #1233 landed after the split and named the relay in its own body under "Not checked, since they run no agent", recorded the rule beside TEND_ENABLED_CONDITION in generator/src/tend/workflows.py, and pinned it with the no_agent set in test_tend_enabled_variable_guards_every_agent_job. What is missing is not the check but any trace of that reasoning in the file an adopter actually reads: the generated workflow carries a long comment on the fork filter and on contents: write, and nothing on the pause variable. Someone auditing if: conditions across the tend-*.yaml set sees eight workflows with the check and one without.

Solution

State the rule in the relay template, next to the if: whose shortness prompts the question: the variable gates the jobs that boot the agent, this job boots none, and a paused repo still relays into a tend-mention run whose verify job — and handle, which needs it — skip. That is comment-only; the generated if: is unchanged, so the behavior #1257 describes still holds.

This PR does not add the gate #1257 proposes. Whether "paused" should mean "no agent boots" (today's rule) or "no tend run starts at all" is a call for a maintainer, not a contract for triage to flip three commits after it was announced and merged. Either answer leaves this comment wanted: it records the rule if the rule stands, and it is the line to edit if it changes.

Testing

uv run pytest passes except the two test_refresh_consumers.py cases that need DNS, which the sandbox denies. The test_mention_relay_regtest snapshot is updated, and pre-commit's generated-workflow actionlint hook passes over it.

Refs #1257 — automated triage

The relay is the one generated job without the pause check, and the
generated workflow file did not say why, so a reader auditing `if:`
conditions across the tend-*.yaml set reads it as a dropped gate. State
in the template that the variable gates the agent-booting jobs, and that
a paused repo still relays into a tend-mention run whose jobs skip.

Refs #1257
@max-sixty
max-sixty merged commit 0080903 into main Sep 16, 2026
11 checks passed
@max-sixty
max-sixty deleted the docs/issue-1257 branch September 16, 2026 17:00
@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 added a commit that referenced this pull request Sep 16, 2026
Deploys the 0.2.9 release to tend's own workflows: `uvx [email protected] init`
regenerates the nine `tend-*.yaml` files onto
`max-sixty/tend/[email protected]`, and the hand-maintained
`review-reviewers.yaml` is restamped onto the same ref.

Beyond the version stamp, the regenerated `tend-notifications.yaml` and
`tend-mention.yaml` pick up the `NO_COLOR=1` / `CLICOLOR_FORCE=0` guard
from #1254 in their inline pre-check scripts, and
`tend-mention-relay.yaml` gains the comment from #1258.

🤖 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 that referenced this pull request Sep 29, 2026
)

The generated `tend-mention-relay.yaml` job now carries the
`TEND_ENABLED` pause check alongside its fork filter, so a paused
repository no longer starts a `relay` run on each review event, POSTs
the `tend-mention-review` dispatch, or starts the second `tend-mention`
run whose jobs all skip. The relay has no job of its own to do while
paused: everything it dispatches lands in `tend-mention`, whose `verify`
and `handle` jobs already check the variable.

This reverses the exception recorded in #1258, at the maintainer's
direction on #1257. The Codex credential refresher and install-test
remain unchecked; the refresher still has a reason to run while paused,
since it keeps the subscription's tokens valid.

`test_tend_enabled_variable_guards_every_agent_job` now expects the
relay to carry the check, and the relay snapshot is updated.

Closes #1257

Co-authored-by: tend-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