Skip to content

feat: 👀 marks a session in flight, and comes off when it ends - #979

Merged
max-sixty merged 2 commits into
mainfrom
eyes
Aug 14, 2026
Merged

max-sixty merged 2 commits into
mainfrom
eyes

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

👀 meant two different things. On a comment that mentions the bot it tracked a session in flight and came off when the session ended; on an opened issue or PR it went on and stayed forever. Both now mean the same thing — a session is working on this right now — and the reaction is released at the end of the run under always(), so a failed or cancelled session doesn't strand it.

Review's reaction no longer narrows to opened. That narrowing made sense while the reaction was permanent (a push lands on a PR that already carries it), but once the eyes come off, a push mid-review boots a session with no reaction at all. Every run that clears the gate takes them.

The three workflows now share one react_eyes/unreact_eyes pair, parameterized by the reaction target — issues/<n> for an issue or PR, issues/comments/<id> or pulls/comments/<id> for a comment. Mention's try-issues-then-pulls fallback goes with it: github.event_name says which endpoint the comment lives under, so the target is computed rather than probed. That also closes a latent mis-target, since the probe would have accepted an unrelated issue comment that happened to share an id with the review comment.

Verification

Both API calls were run against tend-agent/tend-integration with the bot's own token: the POST, the filtered ?content=eyes lookup, and the DELETE all returned as expected, and the probe reaction was removed afterwards. actionlint (which runs shellcheck over the run: blocks) is clean on freshly generated workflows for every trigger — the committed tend-*.yaml in this repo still track the released generator and don't carry these steps yet.

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

Triage and review put the reaction on and never took it off, so 👀 meant
"the bot saw this" there and "a session is running" on a mentioning
comment. Both now release it at the end of the run, under `always()`, so
a failed or cancelled session doesn't strand it.

Review's reaction no longer narrows to `opened`: with the eyes coming
off, a push mid-review would boot a session carrying no reaction at all.
Every run that clears the gate takes them.

The three workflows share one `react_eyes`/`unreact_eyes` pair,
parameterized by reaction target. Mention's try-issues-then-pulls
fallback goes with it: the event name says which endpoint the comment
lives under, so the target is computed rather than probed.

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things inline: the README line still describes the opened-only narrowing this PR removes, and the gate test's assertion loosened to a substring check that would accept an ungated step.

Comment thread README.md Resolved
Comment thread generator/tests/test_generate.py Resolved
@max-sixty
max-sixty merged commit 45366b9 into main Aug 14, 2026
15 checks passed
@max-sixty
max-sixty deleted the eyes branch August 14, 2026 00:14
@max-sixty max-sixty mentioned this pull request Aug 14, 2026
max-sixty added a commit that referenced this pull request Aug 14, 2026
Release 0.1.17: the version bump, the lockfile sync, and the
`CHANGELOG.md` section that `pypi-release.yaml` publishes verbatim as
the release notes.

8 commits since 0.1.16. On the shipped surface: `tend check` reads the
bot's own bypass verdict where GitHub withholds the ruleset actor list,
so `credential-environments` resolves instead of parking at SKIP on
every adopter whose credential environments admit tags (#976); the
Codex harness pins `.claude/` to the base branch on a fork PR, and
restores instruction files through git without following destination
symlinks (#978, #980); and 👀 now means one thing across triage,
review, and mention — a session is working on this — released under
`always()` when the run ends (#974, #979).

After merge: tag `0.1.17` to publish, then regenerate tend's own
workflows with `uvx tend@latest init` and restamp
`review-reviewers.yaml`, whose action pin `init` never rewrites.

> _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 Aug 14, 2026
Release 0.1.17: the version bump, the lockfile sync, and the
`CHANGELOG.md` section that `pypi-release.yaml` publishes verbatim as
the release notes.

8 commits since 0.1.16. On the shipped surface:

- **`tend check` resolves `credential-environments` from the bot's own
token** ([#976](#976)). GitHub
serves a ruleset's `bypass_actors` only to repo admins, so the check
parked at SKIP on every adopter whose credential-holding environments
admit tags, and the nightly's drift issue stayed open indefinitely.
- **The Codex harness pins `.claude/` to the base branch on a fork PR**,
and restores instruction files through git without following destination
symlinks ([#978](#978),
[#980](#980)).
- **👀 means one thing across triage, review, and mention** — a session
is working on this — and is released under `always()` when the run ends
([#974](#974),
[#979](#979)).

Verified ahead of the tag: the in-tree generator's `check`, run under
each repo's own bot token, reports 8/8 PASS on `max-sixty/worktrunk`,
`numbagg/numbagg`, and `max-sixty/cargo-affected`, where published
0.1.16 under the same tokens reports the `credential-environments` SKIP
those three drift issues track
([worktrunk#3729](max-sixty/worktrunk#3729),
[numbagg#716](numbagg/numbagg#716),
[cargo-affected#34](max-sixty/cargo-affected#34)).
Their nightlies close the issues on an all-PASS run.

After merge: tag `0.1.17` to publish, then regenerate tend's own
workflows with `uvx tend@latest init` and restamp
`review-reviewers.yaml`, whose action pin `init` never rewrites.

> _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 Aug 14, 2026
Post-release regeneration for 0.1.17. The eight generated workflows move
to the `max-sixty/tend/[email protected]` pin, and `review-reviewers.yaml`
is restamped by hand, since `init` never rewrites it.

Beyond the pin, `tend-review` and `tend-triage` pick up the 👀 reaction
steps from [#974](#974) and
[#979](#979), and `tend-mention`
swaps its two-endpoint reaction probe for a target computed from
`github.event_name`.

> _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 Aug 15, 2026
Automated nightly regeneration of tend's workflow files.

**tend version:** 0.1.15 → 0.1.17

**Notable changes**

- 👀 reactions now mark a session in flight: the bot reacts when an issue
or PR is opened, and the reaction comes off when the session ends
(max-sixty/tend#974, max-sixty/tend#979).
- Mention gating was reworked — coarser pre-check gates, tested poll
scripts, and an anchor-based run window replace the hand-rolled matching
(max-sixty/tend#965, max-sixty/tend#971).
- Self-initiated fixes are now gated on cost as well as evidence, so the
bot doesn't open a PR whose value doesn't justify the session
(max-sixty/tend#960).
- `tend check` reads the bot's own bypass verdict on repos where the
actor list is withheld, instead of reporting a false FAIL
(max-sixty/tend#976).
- Weekly no longer trusts a re-anchored approval on a rebased dependency
PR (max-sixty/tend#890), and review-reviewers is paused as a scheduled
sweep, kept as a manual spot-check (max-sixty/tend#966).

Compare: max-sixty/tend@0.1.15...0.1.17

Co-authored-by: worktrunk-bot <[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