Repository navigation
fix: the bug reproduced from #720 - #723
Open
dilux-bot[bot] wants to merge 3 commits into
Open
dilux-bot[bot] wants to merge 3 commits into
dilux-bot[bot] wants to merge 3 commits into
Conversation
Written by the reproduction job from the report in #720; it fails on main, which confirms the bug. The fix goes in on top of it. 🤖 AI-generated · claude-sonnet-5-5 (Anthropic)
Contributor
Author
|
@soydiloreto: accept it (the 🤖 AI-generated · Claude Opus 5.5 (Anthropic) |
Contributor
Author
|
The pull request's board
🤖 AI-generated · Claude Opus 5.5 (Anthropic) |
Open
The review labelled a pull request type:docs, and wrote docs into its title, from the model's reading alone, while scripts/conventions.sh rejects a docs title as soon as a file is outside surface.py --docs-paths. scripts/review-type.sh now takes an optional --diff KIND BASE HEAD: the review's docs becomes chore when a changed file matches none of those paths, with the same case match as the conventions check. A person's type:* label still wins. Both workflow steps pass it, and the review's prompt says docs only when every file is documentation. Assisted-by: Claude Opus 5.5 (Anthropic)
Contributor
Author
|
@soydiloreto: accept it (the 🤖 AI-generated · Claude Opus 5.5 (Anthropic) |
Contributor
Author
|
@soydiloreto: accept it (the 🤖 AI-generated · Claude Opus 5.5 (Anthropic) |
This branch has not been deployed
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.
📝 What changes
The review labels a pull request
type:docs(and the "Correct the title's type" step writesdocs:into its title) from the model's reading alone, whilescripts/conventions.shrejects a docs title as soon as one changed file is outsidescripts/surface.py --docs-paths <kind>. A diff with a doc and a test is therefore labelled docs by one and refused by the other. The fix bounds the review's type by the same paths, in the one place both workflow steps already call,scripts/review-type.sh.scripts/review-type.shgains an optional trailing--diff KIND BASE HEAD: when the review's TYPE isdocsandgit diff --no-renames --name-only BASE...HEADhas a file that matches none of the globspython3 surface.py --docs-paths KINDprints (matched with the same shellcaseas conventions.sh), the review's type becomeschore. A type:* label a person set still wins, as today (it is theirs; the conventions check then tells them). If the docs paths cannot be read, the script fails, like an unreadable timeline. Without--diffit behaves exactly as now, so older callers keep working..github/workflows/claude-review.yml: the Verdict step and the "Correct the title's type" step pass--diff "$KIND" "$BASE" "$SHA"(KIND fromsteps.policy.outputs.kind, BASE the pull request's base SHA, the checkout already has full history); the review prompt's line ontypesays docs only when every file is documentation.review-type.sh --testfor: docs with a doc and a test → chore; docs with docs only → docs; a kind's own docs path (wordpress-pluginreadme.txt) → docs; a non-docs type untouched; a person's type:docs label still stands; unreadable kind fails.Option to decide: what the review's
docsbecomes when the diff has more than documentation.chore(recommended): closes any accepted issue, never claims new behaviour, and the reviewer cannot be second-guessed into feat/fix by a script.testwhen every other file is a test, elsechore: closer to the Conventional Commits meaning, but needs a notion of "test path" per kind that the packs do not have yet.Nothing widens a permission, secret, lane or limit.
💡 Why
Closes #721. The autopilot works it here in the open: one commit per criterion, each box ticked once its commit is pushed.
🎯 Acceptance criteria
Test: tests/repro/test_issue_720.py
🧭 Decisions
🙌 Credits
🧪 How I tested it
repro-run.sh run-ref HEAD tests/repro/test_issue_720.py):outcome=passed. It failed on b25a3cf.bash scripts/review-type.sh --test: every check passes, including the new ones for fix: a docs pull request that carries its test never passes conventions #720. They cover a doc plus a test becoming chore, docs only staying docs, wordpress-plugin'sreadme.txtcounting as docs (and not counting without that kind), a non-docs type left as it was, a person's type:docs label still winning, an unreadable kind failing, and--diffwithout HEAD being refused. shellcheck is clean.make pre-pr.The reproduction test
tests/repro/test_issue_720.pyat f35229f, the pull request's head, is the one that failed on the default branch (its SHA-256 is the sealed PRD's). The agent ran it in the sandbox (a clean copy of its commit; no network, no secrets) before finishing, and gate G7 runs it again theworkflowway it was written, at the head, before it merges.🤖 AI-generated · Claude Opus 5.5 (Anthropic)