Repository navigation
fix(review-runs): keep each correction row's author - #1374
Merged
Merged
Conversation
… case test_a_review_row_names_its_author duplicated test_a_human_review_body_is_collected's setup verbatim to assert one more field. Assert it on that case instead, the way the deleted-account cases already do.
max-sixty
pushed a commit
to max-sixty/worktrunk
that referenced
this pull request
Sep 23, 2026
Regenerates the nine `tend-*.yaml` workflows from tend 0.3.1, up from 0.2.15. Behavior here is unchanged: the only substantive diff is two new action inputs, `merge: maintainer` and `control_plane_owner: ""`, both of which are the action's own defaults. `maintainer` is the merge authority this repo already runs under — the bot proposes, a maintainer merges. What the upgrade changes for this repo: - **`tend check` audits protected refs and credential environments more strictly** ([max-sixty/tend#1382](max-sixty/tend#1382)). A protected branch must now restrict creation, update and deletion together rather than update alone, and the credential audit no longer treats a ref-qualified reusable workflow as this tree's copy. This repo does not clear the new bar yet — the nightly filed #4242 with the single ruleset gap and the remediation. - **Yolo merge mode exists, and is off** ([max-sixty/tend#1172](max-sixty/tend#1172), [#1390](max-sixty/tend#1390)). The new inputs are how a repo would opt into letting the bot merge its own PRs; leaving them at the defaults keeps the current arrangement, and the `merge: maintainer` value is what the mitmproxy cache step is now gated on. - **`review-runs` sees the whole night** ([max-sixty/tend#1377](max-sixty/tend#1377)). Run listing now pages to the Actions ceiling instead of stopping at the first page, so a busy night's early runs stop falling out of the census; [#1374](max-sixty/tend#1374) keeps each correction row's author alongside it. - **CI polling is bounded by elapsed time, not iteration count** ([max-sixty/tend#1376](max-sixty/tend#1376), reinstating [#1371](max-sixty/tend#1371) after [#1375](max-sixty/tend#1375) reverted it). A settle loop against slow checks now stops on a sleep budget, so a long matrix can't quietly stretch a session. - **Install-test drift detection tightened** ([max-sixty/tend#1381](max-sixty/tend#1381)): generator output a PR never committed now fails tend's own drift check, which is the check that makes a regeneration PR like this one trustworthy. Full comparison: [0.2.15...0.3.1](max-sixty/tend@0.2.15...0.3.1). This PR does not touch `.config/tend.yaml`, whose `sandbox_setup:` key 0.3.1 now warns "will be refused in a later release". That migration is a separate change. #4240 overlaps this completely: it was generated with the same 0.3.1, so it carries the identical headers and the identical `merge: maintainer` / `control_plane_owner: ""` on the same lines, underneath a Claude → Codex harness swap. The only thing that distinguishes the two is which harness the action runs. Whichever lands first leaves the other conflicting on the eight `uses:` lines, resolved by regeneration rather than by hand. So this PR is worth landing on its own only for as long as the Codex cutover stays in draft — if that lands first, close this one. Verified by regenerating in the merged tree: `uvx [email protected] init` reproduces these nine files byte-for-byte, and the action declares `default: maintainer` and `default: ""` for the two new inputs at `0.3.1`, so neither changes behavior. Co-authored-by: worktrunk-bot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
correction_reportresolved each row's author only to compare it against the bot login, then dropped it from the emitted row. Step 4's reader goturlandbody[:300], so deciding whether a row was a maintainer correction at all meant re-fetching the URL — and the body alone misleads in both directions: a fork contributor retracting their own PR reads like a mistake the bot makes, and a maintainer's reply posted through an agent reads like the bot closing out its own finding.The login is now bound once in the comprehension's
ifand emitted asauthoron every comment and review row, so the filter and the field cannot diverge.dispositionsis unchanged — those rows are the bot's own PRs by construction. A deleted account still yields"", which is distinguishable from the bot login and from a maintainer. The review-runs skill's Step 4 gains one clause saying the login decides rather than the prose style, since that is the case the field exists for.generator/tests/test_review_runs_corrections.pyalready separatedBOTfromHUMAN, so the reproduction is a field check on rows the existing cases produce. Four assertions cover it: a newtest_a_comment_row_names_its_author, anauthor == HUMANassertion folded into the existing review-body case, andauthor == ""on the two deleted-account cases. All four fail withKeyError: 'author'before the change and pass after it; the file's 21 tests pass, as do the 49 matchingreview_runs or skill, and CI's lint and test jobs are green at this head.Closes #1372 — automated triage