Skip to content

check: read the bot's own bypass verdict where the actor list is withheld - #976

Merged
max-sixty merged 6 commits into
mainfrom
checks
Aug 13, 2026
Merged

max-sixty merged 6 commits into
mainfrom
checks

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

GitHub serves a ruleset's bypass_actors only to repo admins, so the nightly — running as the bot — could never verify the all-tags ruleset tend itself prescribes: credential-environments parks at SKIP on every repo whose release environment admits tags, the skill's close condition (all-PASS) is unreachable, and the drift issues tracking already-shut gaps stay open indefinitely (max-sixty/cargo-affected#34, max-sixty/worktrunk#3729, numbagg/numbagg#716).

Every ruleset response also carries current_user_can_bypass: GitHub's own evaluation of the caller against the full bypass list — the same signal shared/steps/security-preflight.sh already trusts. When the caller is the bot (casefolded login match), that verdict is exactly the question, including principals the actor-list inference can't resolve; "never" is credited as gated. Any other caller's verdict proves nothing about the bot and falls through to the existing inference.

Along the way: _same_login and _fetch_ruleset extract the identity test and the fetch+parse both call sites duplicated (the latter closes _tags_admin_gated's missing not-a-dict guard); the branch- and tag-side unknown messages now name the same cause set including the new settling path; test fixtures carry current_user_can_bypass, which real responses always include. Separately, TODO.md's completed secret-migration section is deleted and CLAUDE.md's "still being adopted" note updated — every adopter now keeps both secrets in the tend environment.

Verified live: the in-tree check run with the bot's own token against max-sixty/tend reports 8/8 PASS, where the published generator reports a SKIP; admin-token runs are unchanged on worktrunk and numbagg. The nightlies pick this up at the next release.

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

max-sixty and others added 6 commits August 13, 2026 09:09
…held

GitHub serves a ruleset's bypass_actors only to repo admins, so the
nightly — running as the bot — could never verify the all-tags ruleset
it prescribes, and credential-environments parked at SKIP on every repo
with a tag-admitting environment. The skill closes a drift issue only on
all-PASS, so the issues tracking already-fixed gaps stayed open.

Every ruleset response also carries current_user_can_bypass: GitHub's
own evaluation of the caller against the full bypass list — the same
signal the action's security preflight already trusts. When the caller
is the bot, that verdict is exactly the question, including principals
the actor-list inference can't resolve, and without its assumption that
the bot sits at write. Credit "never" as gated; any other caller's
verdict proves nothing about the bot and falls through to the actor-list
inference.

Co-Authored-By: Claude Fable 5 <[email protected]>
Every adopter now keeps both secrets in the tend environment with no
repo-level copies, and tend check passes every line on each. The
sweep-behavior paragraph lives on in check_credential_environments's
docstring and the install skill.

Co-Authored-By: Claude Fable 5 <[email protected]>
… messages

_same_login and _fetch_ruleset extract the identity test and the
fetch+parse both call sites duplicated (the latter also closes
_tags_admin_gated's missing not-a-dict guard). The branch and tag
unknown messages now name the same cause set, including the
bot-identity path this branch added. Test fixtures carry
current_user_can_bypass, which real responses always include, so the
legacy suite exercises the identity gate's ordering.

Co-Authored-By: Claude Fable 5 <[email protected]>
@max-sixty
max-sixty merged commit c545f38 into main Aug 13, 2026
10 checks passed
@max-sixty
max-sixty deleted the checks branch August 13, 2026 23:19
@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 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