Skip to content

fix: fail the security preflight on an unreadable CODEOWNERS read, not as a missing rule - #1643

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-1642-preflight
Nov 3, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-1642-preflight

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

When the bot's GitHub quota runs out, yolo runs failed the security preflight with "requires a pull-request rule … Run tend check --fix", though the rule was in place. codeowners_text caught a failed gh read and returned None, the same answer as a missing CODEOWNERS file, and has_valid_control_plane_codeowners did the same for the codeowners/errors read. Both now raise, as the gate's other required reads already do. _common.run turns that into a step error naming the failed gh call, with gh's "API rate limit exceeded" above it. The gate still fails closed. A query that reads cleanly but has an unexpected shape still counts as no valid CODEOWNERS.

The leaf run linked in the issue shows one rate-limited gh call in the preflight step followed directly by the control-plane error, which matches these two reads. The parametrized test_control_plane_codeowners_raises_on_a_failed_read fails on the old code for both reads and passes now. It replaces the test that pinned the old return 1.

Refs #1642 — automated triage. The issue's token-report half is in a separate PR.

…t as a missing rule

A rate-limited CODEOWNERS query or codeowners/errors read returned the same
answer as a missing file, so yolo runs failed with the 'run tend check --fix'
control-plane error for a rule that was in place. Both reads now raise, like
the gate's other required reads, so the step's error names the failed gh call.

Refs #1642
@max-sixty
max-sixty merged commit 251cd8f into main Nov 3, 2026
12 checks passed
@max-sixty
max-sixty deleted the fix/issue-1642-preflight branch November 3, 2026 08:21
max-sixty pushed a commit to max-sixty/worktrunk that referenced this pull request Nov 10, 2026
Regenerates the Tend workflows with tend 0.3.24 (from 0.3.23). The only
structural change is to `tend-triage`: triage now runs one concurrency
group per issue instead of a single workflow-wide lane, so a burst of
new issues is triaged in parallel rather than queuing behind each other.
The same issue still never runs twice at once, and `max-parallel` still
bounds one dispatched batch. The other workflows only move their action
pins and the generator stamp to 0.3.24.

Other behavior consumers may notice in the bundled skills and actions
([compare](max-sixty/tend@0.3.23...0.3.24)):

- Review sessions treat a stale-approval dismissal on push as GitHub's
own, not the PR author's (max-sixty/tend#1650).
- `tend check`'s security preflight fails on an unreadable CODEOWNERS
file instead of reporting the rule as missing (max-sixty/tend#1643), and
setup refuses to overwrite customized tag-ruleset conditions
(max-sixty/tend#1638).
- The monthly review-reviewers run closes prior months' tracking issues
(max-sixty/tend#1657).
- Claude Code is bumped to 2.1.316 (max-sixty/tend#1633).

max-sixty/tend#1648 and max-sixty/tend#1652 also change how sessions
hand bot PRs' CI to `tend-land`; that path applies under `yolo` merge
mode, and this repo runs `restricted`, so bot sessions here keep polling
their own PRs' CI.

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