Skip to content

fix: refuse to overwrite customized tag ruleset conditions - #1638

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

max-sixty merged 1 commit into
mainfrom
fix/issue-1637

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

check --fix replaced an existing Tag operations ruleset without reading its conditions, dropping exclusions such as refs/tags/hosted/**. It now reads the existing ruleset and refuses to write when its target or conditions differ from the canonical all-tags selection. The error explains that customized coverage needs manual review. Unreadable rulesets return an unknown result without writing.

Regression tests cover exclusions, narrower includes, missing conditions, unreadable rulesets, and successful repair of the canonical selection. The new refusal tests failed before the change; all 280 tests in generator/tests/test_checks.py now pass, and Python compilation passes.

This addresses item 1 through the requested refusal option. Crediting split tag rulesets and review gates reached through needs (items 2 and 3) remains a separate security-policy decision; this PR leaves those checks unchanged.

Refs #1637 — automated triage

@max-sixty
max-sixty merged commit bef1631 into main Nov 3, 2026
12 checks passed
@max-sixty
max-sixty deleted the fix/issue-1637 branch November 3, 2026 01:05
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