https://gerrit.wikimedia.org/r/#/c/416675/ was a commit from master sent for review to the the wmf branch. Since all ancestors were merged in master, Gerrit kindly assumes that is a merge attempt (of master to wmf) and that is not reflected in the GUI.
When the change got submitted, the master branch ended up being implicitly merged in the wmf branch.
https://wikitech.wikimedia.org/wiki/Incident_documentation/20180306-MasterMergedInWMFBranch
Gerrit 2.13 offers the option receive.rejectImplicitMerges to prevent that implict merge. From Gerrit 2.13 release notes:
''The ‘Reject Implicit Merges’ option can be enabled to prevent non-merge commits from implicitly bringing unwanted changes into a branch. This can happen for example when a commit is made based on one branch but is mistakenly pushed to another, for example based on refs/heads/master but pushed to refs/for/stable.''
At https://gerrit.wikimedia.org/r/#/admin/projects/All-Projects we should set receive.rejectImplicitMerges = TRUE.