Skip to content

Require PR and issue titles that name the problem in plain words - #45

Closed
leaf-agent wants to merge 1 commit into
mainfrom
skills/plain-titles-32954487598
Closed

leaf-agent wants to merge 1 commit into
mainfrom
skills/plain-titles-32954487598

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Aug 26, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The bot's titles here have drifted into a register only their author can read. Two landed on main this morning: "Press again for the tab the driver lost, not the one Chromium never made" (#40) and "Sort a red suite by what the failure is, not by how steady it looks" (#42). Neither names its subject — a flaky Playwright test and the red-suite triage list respectively — so the merge commit tells someone scanning main nothing about what changed. @max-sixty asked for the fix: a title has to leave a normal reader with some idea of the problem.

The trap is a real one rather than carelessness. Leaf's own commit titles are imperative and elliptical — "Read a cut ring through the layer's own band", "Excuse a ring only where the control itself will not fit" — and they work because their subjects are things a reader of this repo already knows. Matching that register on machinery nobody has met yet produces a riddle instead.

Fix

One section at the top of .claude/skills/running-tend/SKILL.md, 22 lines: keep the repo's imperative voice and drop its ellipsis, name the concrete test or widget or command rather than a figure standing in for it, skip an "X rather than Y" contrast whose Y only means something after reading the body, and re-read the finished title as someone holding only the notification. Two before/after pairs, both taken from the bot's own titles, carry what the prose can't.

It sits above Landing rather than in a corner, because it applies to every PR and issue the bot opens here, not to one workflow.

Relationship to the bundled rule

tend-agent noted that tend's bundled running-in-ci skill has required plain titles since max-sixty/tend#1022 (merged 2026-08-20). That rule has not reached this repo: tend's latest release is 0.1.18 from 2026-08-16, every workflow here pins max-sixty/tend/[email protected], and grepping the bundled skills this session loaded finds no title rule. So the overlay is the only thing enforcing this at the current pin, and it should land on its own terms.

What the overlay carries that the bundled rule can't is the repo-specific half — that leaf's own elliptical commit register is what pulls a title into the riddle, and the before/after pairs drawn from titles this bot actually wrote. When the pin advances past a release carrying #1022 and #1060 (open, which sharpens the bundled rule with a reader test and extends it to issue titles), the generic prose in this section can be trimmed back to that repo-specific half rather than kept in two places.

Verification

Documentation only. Prettier is scoped to [javascript, html] in .pre-commit-config.yaml and deliberately excludes markdown, so the only hooks reaching this file are whitespace and typos; the file has no trailing whitespace, ends in a single newline, and adds no unusual words.

I also retitled the one open bot PR, #44, to "Replace a 250ms sleep in the work-line test with a real control" as the first application. The two merged titles are commits on main now and stay as they are.

@max-sixty

Copy link
Copy Markdown
Owner

this is an upstream issue; why are you making a local change

@leaf-agent this probably needs a clear split in our guidance; to prioritize upstream for issues that are shared across all consuming repos

@leaf-agent

Copy link
Copy Markdown
Collaborator Author

You're right, and the split you're asking for is itself upstream guidance, so that's where I've put it rather than adding a section here that says "prefer upstream" — which would be the same mistake one level up.

Closing this PR. Its content is already in tend twice over: max-sixty/tend#1022 merged the plain-title rule on 2026-08-20, and #1060 sharpened it with a reader test and extended it to issue titles about two minutes before your comment. What kept it from reaching this repo is the release lag — 0.1.18 is from 2026-08-16 and every workflow here pins it — and a lag is a reason to cut a release, not a reason to fork the rule into an overlay that then has to be found and deleted.

Filed upstream: max-sixty/tend#1061. Three concrete things send a generic correction to the overlay today — Learning from Feedback names the consumer overlay in its first sentence and the upstream route only two levels down in a reference file; the upstream signal is conditioned on the corrected behaviour "coming from bundled skill text", so a bundled skill's silence reads as not-upstream; and nothing says an unreleased upstream fix isn't grounds for a local copy. That last one is what I reasoned my way into in this PR body.

The rest of this repo's overlay looks like it's on the right side of the line — landing via PR because of the Merge access ruleset, ci-fix as the primary gate because nothing lands through a PR here, the browser-suite failure classes, the two vendored bundles dependabot can't watch. All facts about leaf, none of them portable. This section was the outlier.

#44 keeps its retitle ("Replace a 250ms sleep in the work-line test with a real control") — that was applying the rule, not adding it.

@leaf-agent leaf-agent closed this Aug 26, 2026
max-sixty added a commit that referenced this pull request Sep 25, 2026
…test it

#45 renamed --sheet-max to --wide-page-max, which left the plain guide's width hook
pointing at an undefined property. The guide now names whichever the theme defines,
and make_arms.sh renders a page using the hook before any run starts.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Sep 25, 2026
…tial pass

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Sep 25, 2026
The first review read screenshots by paths naming the arm. The blind re-review counts a
pair for an arm only when both passes pick it: main 1 pair to 14 for the plain arm, #45
4 to 11, with the preference met in every #45 judgment. The results now carry phase-two
cost, correct the claims the data contradicted, and state the isolation limits.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 23, 2026
…3696)

`page check --render` now reads a page's desktop at the window of the
browser that last reported viewing it, and at a fixed 1280×720 laptop
window when no browser has reported in the last day. Before, it read
every page at 1200×900, taller than many laptop windows, so it never saw
a page that only breaks in a shorter one. This implements Max's
decisions #44 ("Read desktop at 1280×720") and #45 ("for the normal
runtime we should do the current viewport; for evals etc we should obv
override it") on the overnight report.

**Which window.** The gate takes the latest report in the page's
`user-views.json` (`render_gate.command.desktop_viewport`). It uses the
report's layout `viewport`, such as Max's 1728×999, and not its
`shown_window` (1728×941), because the gate draws Leaf's panel into the
viewport just as the user's browser did. Matching the shown window would
subtract the panel twice. A report counts while the page keeps it, which
is one day (`user_views.RETAIN_FOR`); window sizes rarely change, so any
kept report is a better guess than the fixed window.

**What follows the window.** The width sweep (360–1920px), the
margin-width renders and the saved desktop and widest-window screens use
the chosen window's height. The phone render stays at 540×720 with its
own sweep, and the phone screens stay at 390×844. The page's own code
run (`run_page_code`) and `package check --render` have no viewer to
follow, so they read at the fixed window, which is now 1280×720.

**The pin.** Callers whose verdicts must not depend on who last viewed a
page set `LEAF_RENDER_VIEWPORT=fixed`, which reads 1280×720 whatever the
page has seen. The suite's `isolated_session` fixture sets it, which
covers CI, and so does `leaf_dev.arms.environment`, which every eval
agent, journey and arm command takes its environment from. Any other
value is an error. Tests and the corpus that call `render_version`
directly get 1280×720 by default.

**Output.** `browser.desktop` in the `page check` JSON names the window
and where it came from: `{"width": 1728, "height": 999, "from": "the
user's window"}`, or `"fixed, since no browser has shown the page in a
day"`, or `"fixed, pinned by LEAF_RENDER_VIEWPORT"`.
`page-checkpoints.md` and `conversation-loop.md` tell the agent so.

**Checks.**
- A new model test covers the choice: no report gives 1280×720, the
latest of two reports wins, a report more than a day old drops out, the
pin gives 1280×720, and a bad pin raises.
- A new journey test runs `page check --render` on a page with a
1000×640 report. Unpinned, it reads `{"width": 1000, "height": 640,
"from": "the user's window"}` and saves `1000px-1.png`. Pinned, it reads
1280×720.
- On a copy of a real page carrying Max's 1728×999 report, the unpinned
check read 1728×999 and saved `1728px-*.png`. With the pin it read
1280×720. Both passed.
- I ran the render gate over all 40 corpus pages (shipped examples,
regression pages and developer pages) at 1200×900 before this change and
at 1280×720 after it. Only one page gained a refusal:
`developer/visual-review-gallery`. Its mobile-capture `lf-shot` already
failed at 1200×900, drawn 18px outside its box at every width. That page
already fails `test_page_fixture_renders` in the nightly run. At 720px
tall, its bounded region leaves the shot about 5px, so its toolbar
controls are clipped at 720–920px wide. The shorter window shows a real
defect on a page that was already red, so this PR leaves it as is. The
only other change was in advice: pr-walkthrough's `lf-pr-brief` now
draws 1034px tall where it drew 1062px. The overflowing panes the
earlier survey named, rust-sort's stage and source and wt-merge's step
list, scroll and refuse nothing. Per #43, they stay unchecked.
-
`test_the_render_gate_fails_a_page_that_scrolls_sideways_only_between_viewports`
now reads a 1280×900 desktop. At 720px tall, the desktop sweep would
also catch its short-window case, which is meant to show that the phone
sweep catches a clip a taller user window would miss.

`test_bundled_widgets_meet_the_widget_quality_checks` fails on its
`lf-code` and `lf-shot` worked examples at 1280×720, and fails with the
same findings at 1200×900 on this tree, so that failure was there before
this change.

`evals/record-read-without-the-notes` still quotes an old check's
"1200x900" output, because it replays a recorded session.

> _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