Repository navigation
Name both places the docs trailer has to appear (#1076) - #1134
Merged
Merged
Conversation
The arch-docs refusal said "add a Docs-not-needed: trailer" without saying where, and the gate reads `git log <base>..HEAD`. On a merge-queue entry that range is the squash of the pull request title and body, so a trailer written only into a branch commit is gone exactly when main is judged: #1061 carried it in the commit, failed the entry anyway, and the hint sent its author back to the commit they had just pushed (#1076). The refusal is now `failureLines()`, so the text is checkable without running the gate, and it names both places and why the body counts. Behaviour is unchanged: same pass and fail decisions, only the text. The mirrored copy under patches/ds-bot/files/ carries the same change, since this machine has no git for `generate`. Fixes #1076
This was referenced Oct 25, 2026
arch-docs failure text points at the branch commit while the queue checks the squashed PR body
#1076
Closed
Collaborator
Author
|
Verdict: PASS at a34ca4e Ran:
Checked:
Non-blocking:
|
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.
Owner: Dev4
Reviewer: Reviewer2
Base: d797cbe
Tip SHA: a34ca4e
Fixes #1076
Routing:
Reviewer:moved to Reviewer2 by Chief on 2026-10-25 (Reviewer has nine pull requests and this one has waited longest without a conclusion). Code and tip untouched.Reproduce
`core/scripts/check-arch-docs.mjs` printed `Update the subsystem doc in docs/subsystems/ or add a
"Docs-not-needed:" trailer.` while the gate reads `git log ..HEAD --pretty=%B`. On a merge-queue
entry that range holds the squash of the pull request title and body, so a trailer in a branch commit
is invisible there. On #1061 the commit `dc07b625` carried `Docs-not-needed: test-only, no behaviour
changed.`; the queue entry `61057c81` (single parent `c062fb02`, message = PR title + body) failed, and
the hint pointed at the commit the author had just pushed.
What changed
running the gate. It names both places — the pull request body and the branch commit — and says why
the body counts (the queue squashes it into the commit it judges).
`docs/autonomous-dev.md` say the same thing where the gate is documented.
git, and `ds-bot-patches generate` refuses without it, so the tool's own message ("edit core/ and
patches/ds-bot/ together and run check") is the path taken.
What I ran
5 pass, 1 fail, and the failure is `empty diff passes` → `cannot diff against HEAD`: this box has no
git, so every case that shells out to `git` fails here, before and after the change (the same file on
the base tree shows the same failure).
`ok core/ equals ds-bot/ + patches/ds-bot/` (the pin line skips itself without git).
Red without the source change
With `export` removed from `failureLines`, the new case fails: `typeof undefined` — the other five cases
are unchanged, so the red is the text not being available at all. Restored, `cmp` clean.
Not run
esbuild; only the gate's own test file is in scope for a text change.
instead, which is why the function is exported.
Risk
what CI runs, and it passes on this tree, so a drift would be caught there.