Skip to content

Have Tend weigh a change's intent and the interface before repairing a red test - #2607

Merged
max-sixty merged 2 commits into
mainfrom
tend-broken-test-guidance
Oct 12, 2026
Merged

max-sixty merged 2 commits into
mainfrom
tend-broken-test-guidance

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Bot CI repairs have reversed deliberate behavior twice. After #1781 let thread cards cover the margin rail to keep message width, #1810 changed the code back to satisfy an old test, and #1838 rewrote the remaining test to match; #2330 restored it. Then #2102 landed after "Reading a red suite" already asked Tend to preserve intended behavior. It let every widget-offered control keep its pointer gestures in Draw mode, so clicking a choice selected it, and it rewrote the capture test on the bot reviewer's request; #2341 repaired it.

"Reading a red suite" now names what a repair weighs: the intent of the change that turned the test red, and the interface users and callers rely on. A repair keeps both where it can. Where no repair can, reverting the change, or the part at fault, is allowed. A revert, any intent given up, or an interface moved beyond the change needs an issue addressed to the change's author, so the fix can return deliberately. For a bot's change, that is the person who requested or merged it, or the maintainer. The rule covers changes still in a pull request, and the review threshold holds any fix for a red test to it.

Validation: a scratch A/B with each arm's running-tend pasted into the prompt (Opus 5.5; 2–3 runs per scenario per arm). Both arms reverted an unsafe change and filed an issue; the new text's issues carry the intent, the conflict and what was given up. Both arms updated only the test, with no issue, for a pure rename and for a test the change deliberately made stale. Both refused to merge the #2102 shape. These cases establish conformance, not a measured improvement: the failures happened deep in long CI sessions, which a cold scenario does not reproduce. Codex reviewed the text, and its two findings (scope to open pull requests, an addressee when no person touched a bot change) are applied.

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

max-sixty and others added 2 commits October 12, 2026 08:50
…a red test

Bot CI repairs reversed deliberate behavior twice. #1810 changed the code
back to satisfy an old test after #1781 let thread cards cover the margin
rail to keep message width, and #1838 rewrote the remaining test to match.
#2102, landing after "Reading a red suite" asked Tend to preserve intended
behavior, let every widget-offered control keep pointer gestures in Draw
mode, so clicking a choice selected it, and rewrote the capture test on the
bot reviewer's request.

"Reading a red suite" now names what a repair weighs: the intent of the
change that turned the test red, and the interface users and callers rely
on. A repair keeps both where it can. Where no repair can, reverting the
change, or the part at fault, is allowed, and a revert, any intent given up,
or an interface moved beyond the change needs an issue addressed to the
change's author (for a bot's change, the person who requested or merged it,
or the maintainer), so the fix can return deliberately. The rule covers
changes still in a pull request, and the review threshold holds any fix for
a red test to it.

Validation: a scratch A/B with each arm's running-tend pasted into the
prompt (Opus 5.5; 2-3 runs per scenario per arm). Both arms reverted an
unsafe change and filed an issue; the new text's issues carry the intent,
conflict and what was given up. Both arms updated only the test, with no
issue, for a pure rename and for a test the change deliberately made stale.
Both refused to merge the #2102 shape. The cases establish conformance, not
a measured improvement: the failures happened deep in long CI sessions,
which a cold scenario does not reproduce. Codex reviewed the text; its two
findings (scope to open pull requests, an addressee when no person touched a
bot change) are applied.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 09de810 into main Oct 12, 2026
3 checks passed
@max-sixty
max-sixty deleted the tend-broken-test-guidance branch October 12, 2026 16:01
max-sixty added a commit that referenced this pull request Oct 12, 2026
… one that moves the interface (#2620)

"Reading a red suite" (#2607) told Tend to revert rather than ship a
behavior neither side chose. It then listed a repair that moves the
interface beyond the change among those that ship with an issue, which
reads as permission to ship it. Now an issue covers a revert, intent
given up, or an uncertain choice, and the review threshold treats a
moved interface as a regression outright. It also rewraps one overlong
line.

The same rule, with this correction, goes into tend's bundled
`fix-a-bug` skill in a tend PR. Once leaf runs a tend release carrying
it, this overlay can point at that section and keep only the
Leaf-specific parts.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit to max-sixty/tend that referenced this pull request Oct 12, 2026
…#1546)

When a change turns a test red, the repair decides between the change
and the behavior the test protects, and the bundled skills gave the bot
no basis for that choice. In leaf, CI repairs twice made a test pass by
reversing a deliberate change. One changed placement code back after a
maintainer's PR let thread cards cover margin controls. The other
exempted every widget control from Draw mode to keep a relocated Edit
button usable, and its review asked for the capture test to be rewritten
to expect activation. leaf's overlay gained this rule in
max-sixty/leaf#2607. It belongs to every consumer, so this moves it into
the bundled defaults.

`fix-a-bug` gains **Weigh intent and interface when a test goes red**.
It applies whether the change is merged or still in a PR. The repair
weighs the change's intent, read from its PR, against the interface
users and callers rely on, and prefers a repair that keeps both: update
a test the change deliberately made stale, or fix the code without
moving the interface further. Where nothing keeps both, it reverts the
change or the part at fault. A revert, any intent given up, or a choice
the evidence left uncertain needs an issue addressed to the change's
author (for a bot's change, whoever requested or merged it, or a
maintainer), so the fix can return deliberately. `review`'s testing
checklist points at the section, since the review is where the test
rewrite was suggested.

Two focused eval cases come from those leaf events:

- **`red-test-review-reversal`**: review the CI repair with the broad
Draw-mode exemption and the red capture test.
- **`red-test-deliberate-change`**: repair the stale placement test
after the deliberate change.

Codex executor, 3 attempts per arm against 0.3.13:

- **Review case:** the historical arm withheld a fix and deferred the
choice to a maintainer in all three attempts, and one attempt offered
rewriting the test as an option (2/3). The current arm proposed the fix
that keeps both, narrowing the exemption to draft-owned controls, in all
three (3/3).
- **Placement case:** both arms proposed only the test change in every
attempt. The rubric was reworded to grade the proposed repair rather
than an applied one, and on a rerun both arms passed 3/3. It guards
against the rule pushing a deliberate change back.

Neither arm reproduced the original failure, so this is coverage and an
observed shift toward the keep-both repair, not an established
improvement. No kept case exercises the revert-plus-issue path. In a
leaf scratch A/B with the rule pasted into the prompt, both arms
reverted an unsafe change and filed an issue. The new text's issues
carried the intent, the conflict and what was given up.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5.5 (1M context) <[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