Skip to content

chore: release 0.1.13 - #812

Merged
max-sixty merged 1 commit into
mainfrom
maintain
Aug 3, 2026
Merged

max-sixty merged 1 commit into
mainfrom
maintain

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Bumps the generator to 0.1.13, syncs the lockfile, and adds the CHANGELOG section the release workflow publishes verbatim as the GitHub Release notes.

13 commits since 0.1.12. The release's substance is the security work: the operational secrets move into a gated tend deployment environment, with a secretless review-event relay in tend-mention and two new tend check checks (#810), and tend check now verifies the bot cannot bypass the merge restriction (#795). Alongside those: the claude-interactive harness is removed (#804), tend-review runs the adopter's setup: on the base tree rather than the PR's (#806), tend's uv is pinned and isolated from the adopter's (#807), and the proxy readiness check waits for the port instead of trusting the CA file (#811).

Adopters have manual work after this ships: the environment gate is inert until each repo's regenerated workflows name the environment and its secrets are re-minted into it. TODO.md carries the per-repo recipe.

Once this merges: tag 0.1.13, which publishes to PyPI and creates the GitHub Release, then regenerate tend's own workflows against the published version.

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

Bumps generator version to 0.1.13 and syncs lockfile.

13 commits since 0.1.12: operational secrets move into a gated `tend`
deployment environment, with a secretless review-event relay in
`tend-mention` and two new `tend check` checks (#810); `tend check` now
verifies the bot cannot bypass the merge restriction (#795); the
`claude-interactive` harness is removed (#804); `tend-review` runs the
adopter's `setup:` on the base tree (#806); tend's uv is pinned and
isolated from the adopter's (#807); the proxy readiness check waits for
the port (#811).
@max-sixty
max-sixty merged commit 0e7c002 into main Aug 3, 2026
7 checks passed
@max-sixty
max-sixty deleted the maintain branch August 3, 2026 05:43
max-sixty pushed a commit that referenced this pull request Aug 5, 2026
…cord guards (#835)

## Problem

`review` derives three separate signals from the bot's own review
records, and all three counted any record the bot owns. GitHub creates
the *same* record shape for something that is not a review: replying to
a review thread via `POST /pulls/{n}/comments/{id}/replies` wraps the
reply in a synthetic zero-body `COMMENTED` review anchored at whatever
HEAD was when the reply posted. So after any `tend-mention` run answers
review threads inline — its normal response path — containers sit on the
current HEAD, and every guard that asks "did the bot review this
commit?" answers yes:

- **`LAST_REVIEW_SHA`** (step 1) advances to a commit nothing reviewed,
so the next `tend-review` run computes its incremental against code it
never read and skips everything before it under the trivial-change
heuristic. This is #828.
- **`ALREADY_POSTED`** (step 5, *Posting mechanics*) becomes a false
positive and the run exits at `Already reviewed — skipping`. Same
lost-review-signal symptom, relocated to the close-out — and it costs
more, because the run has already read the diff and formed the verdict
before throwing it away. Fixing the derivation doesn't cover it: that
routes the run *into* a full review, and this guard then discards the
result.
- **`ORPHAN_ID`** (*Recovering from inline comment 422 errors*) resolves
to the container, so the case-(a) recovery would `PUT` the review body
over an unrelated inline reply.

Nothing goes red in any of the three; the run reports a well-reasoned
decision to stay silent. On a repo where the bot both authors and
reviews its own PRs, that removes the PR's only review signal. It is
deterministic — no decision point — so it recurs on every
reply-then-push flow.

## Solution

Count a review record only when it carries a body, owns at least one
*top-level* (non-reply) inline comment, or is `APPROVED`. Reply
containers have none of the three; an empty-body review carrying real
inline findings still anchors, and so does an empty-body approval.
`LAST_REVIEW_SHA` and `ALREADY_POSTED` use the full predicate (the
latter re-derives `SUBSTANTIVE`, since shell state doesn't carry between
tool calls); `ORPHAN_ID` needs only the body test, because a case-(a)
orphan always persisted a body and a container never has one. The review
and comment calls are `--paginate`d — container churn is exactly what
pushes a PR past one page of reviews — and each reduction runs over the
merged array via `jq -rs 'add | …'`, not inside `--jq`: `gh` applies
`--jq` per page, so a `| last` there yields one record *per page* rather
than one overall.

Where the two shapes are genuinely indistinguishable (a UI review whose
only content is thread replies), the filter skips it — that moves
`LAST_REVIEW_SHA` *earlier*, widening the incremental. The failure
direction is more review, not less.

## Testing

No test file covers skill prompt text, so the reproduction is a live API
comparison rather than a committed test.

**Step 1, against `max-sixty/cargo-affected` PR #54** — the case in
#828:

| review | `commit_id` | body | comments |
|---|---|---|---|
| 4851810736 | `1ffcde2` | 2441 chars | 2 top-level |
| 4851851883 | `551e059` | 0 | 1 reply (`in_reply_to_id` 3710403279) |
| 4851852052 | `551e059` | 0 | 1 reply (`in_reply_to_id` 3710403291) |

The old recipe returns `551e059` — a commit with no review, and the one
whose refactor got skipped. The new recipe returns `1ffcde2`, the real
review.

**Steps 5 and the 422 recovery, against this PR's own records.**
`tend-mention` answered both threads from the first review after the
`8699228` push, so the containers landed on the then-current HEAD:

| record | `commit_id` | body | inline comments |
|---|---|---|---|
| 4860021420 | `b75b165` | 2286 | 2 top-level |
| 4860032792 | `8699228` | 0 | 1 reply (`in_reply_to_id` 3717103568) |
| 4860032847 | `8699228` | 0 | 1 reply (`in_reply_to_id` 3717103574) |
| 4860059883 | `8699228` | 2812 | 0 |

Evaluated against `8699228` as the reviewing run saw it — that is,
before its own record 4860059883 existed — the old `ALREADY_POSTED`
returns `2026-08-05T00:32:19Z` and the old `ORPHAN_ID` returns
`4860032847`. Neither is a review; following the skill literally, that
review would not have been posted at all. The new guards discard both
containers: at `8699228` they return `2026-08-05T00:39:33Z` and
`4860059883`, the one real review at that SHA, and at `7a11332` and
`cdbf065` both return empty, where no review exists yet. The zero-body
`APPROVED` records on #812 (`02f8dce`) and #820 (`3a5621c`, alongside
two containers) both still anchor, which is what the `APPROVED` clause
is for.

Other consumers of the same records were checked and left alone:
`weekly` filters on `state == "APPROVED"` (reply containers are always
`COMMENTED`), and `notifications` counts recent bot reviews for dedup,
where a reply container legitimately means the bot responded.

---

Closes #828 — automated triage

---------

Co-authored-by: tend-agent <[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