Traditionally, this is the place for a one-liner comment explaining the rationale for an awkward looking piece of code or logic that fails first-pass sanity checks.
You don't comment to describe code, but to tell why. If the reason LLMs are catching on to these bits of code is because of "tribal knowledge", then minimal comments should be added for clarity.
The problem I have is with individuals pretending that the AI output is their own, when it was just a simple prompt to the AI. It also conveys a larger degree of verification on the output then typically exists.
I swear that this was the feeling I got from reading this guy Andrew's PRs but I couldn't put it into words!
And this is the cherry on top:
> Just to be annoying, I fed this into Claude Fable.
Edit: as an example of what I mean, take what TFA says about padding:
> This is correct. By design there is never any padding between metadata,
> and any padding is incorrect. This has always been the case back since
> 2002.
>
> No Squashfs filesystem should be able to hide information (like
> malicious metadata) by adding padding between metadata tables.
> If it is there, then someone is trying to do something naughty.
> The fact the previously sanity check didn't check for this, is
> because it was added in the relaxed days of 2011, when the check
> was needed to block a fuzzer, and the check added then was
> sufficient. Now, if it is not 100% exact, something like
> Sashiko will scream it is not sufficient.
One would wonder why exactly this was never documented anywhere (and no, I don't buy the "the check was sufficient, it was back in the days of 2011" argument all that much)? Had it been, the AI wouldn't have raised this as a problem.
Edit 2: formatting
Real-world conditions are non-uniform. In many circumstances, we can invoke best practices and use standard approaches and technologies, and we can deploy those in unsurprising and boring ways that are legible to LLMs and outsiders.
In others, the non-uniformity of the real-world produces constraints that can completely dominate the decision calculus. This is how you get tribal knowledge.
One common way in which these circumstances arise is from a need to prioritize something other than your beloved software system. See e.g. why clinical data is notoriously messy -- part of this is because it is understood that ultimately a clinician should not be slowed down by software in delivering care to the patient in front of them, so if they are plugging an email into a phone number field, then so it goes.
Here's another: different people or units within the same organization require different ontologies, and the boundaries are not always clear, and sometimes these will be ephemeral, and the rules for determining these boundaries are not rules-based but heuristics based
Sometimes it's because relationships are more important than anything else. The food industry thrives on this. A local produce distributor may have rules like "We price organic bok choy at ${agreed_price} for each store, except for Customer A, where we negotiated ${agreed_price}*.85 under a 5 case minimum, and also we need to ensure Customer B receives the best-looking case available because they are a Michelin star restaurant and need the best looking specimens. Customer C has said they don't mind uglier/dented product, so give them a discount. Customer D is a grocery delivery startup and they are fairly annoying to work with and might go bust and not pay their last bill so give them the worst of the lot."
Would it be cheaper and easier to not operate like this? Sure, but your competitor won't mind, and will happily take your Michelin star customer from you.
Regardless, it's a terrible thing to want to eliminate this. I realize that Silicon Valley has always longed to operate in a world without the messiness and idiosyncracies of actual human beings, but alas, they are here to stay, and so you will not do away with tribal knowledge entirely.
The fundamental problem with tacit knowledge is that it creates this endless cycle of rediscovery of problems that didn't exist. Maybe LLMs will help us figure out what needs writing down and what doesn't. If you just keep all the knowledge in your head, those who come after you will have to either re-discover it on their own (somehow) or will just... Change the system to work how they think it should work, and then fix all the chain reactions that follow.
This problem is old. But it is just elevated with all these LLMs which are smart to spot an “obvious” problem but not smart enough to understand it in context of the system.
And anybody working with AI agents will notice that. So source code first needs to be made AI-friendly (basically explain system point of view to modules and components).
However, as much as you write down best practices and rules, agents tend to be paperclip maximizers, in ways that are uncommon for humans (usually we screen for that bad behavior in interviews)
I’m reminded of a bit of test code I saw where the test was spinning up a new node process and passing in a string literal of code. The code being tested didn’t actually require a separate process, it was just written that way because the code otherwise triggered a blocking eslint rule, and eslint disables were also banned without an explicit ratchet override. but eslint doesn’t check code in string literals.
My point is, even written best practices and “common sense” are no match for byzantine agents looking to achieve their goal and are able to find loopholes faster than they can be patched by a human with taste.
They really fight you on things like design patterns and deep modules. And the total aversion to libraries is so frustrating that it must of been a deliberate instruction.
Documenting more is great. I believe this maintainer would be happy to help someone write a document covering details, answer questions. What they don't want is you to just chuck your AI's output at them.
Any professional software engineer not using AI at this point is committing malpractice. It is like a Doctor refusing to use X-Rays.
I've discovered this is does currently still lead to awful code, if you just let the AIs chat directly, because they love each other's output.
Of course, if you strawman it like that, it sounds stupid. The point is that as a software engineer it is your professional responsibility to understand the technology and how to correctly apply it. The technology is unquestionably extraordinarily powerful and if you haven't figured out how to apply it to your craft then you better get started.
As a rule, popular projects that live on maintainer status and dictatorships are buggy because the old boys club isn't as good as they think they are.
Which would include every engineer who thinks that they can work professionally without AI.
This is not to say that there are humans and human teams perfectly capable of writing decent code, but they are the exception rather than the rule, and none of them can do it bug free. Any of those people who actually can write high quality code could do it better and at greater scale with AI.
Having the humility to recognize the limitations of your own abilities and clearly understanding what a tool like AI is good for and how to apply it is what separates different levels in this profession.
The guy whinging in this mailing list is talking to someone who is a better engineer with far greater responsibilities in maintaining the linux kernel than him. And that guy is using AI, and Linus is using AI, and every other elite low level systems engineer is using AI.
What I wonder is what is happening in the brains of the people spending tokens doing this and then forwarding the results to maintainers
Personally, I constantly am exhausted by people being people; my preference to work with machines is what led me to become a SWE in the first place.
The AI may have shortcomings, but no more than the average junior at this point. As you say, onboarding is part of the solution, and I firmly believe that new models and architectures will solve the other technical problems.
In the meantime, I am torn here. Andrew Morton is a well-known and respected kernel maintainer. I do not see the bullying being described in the provided context. I see a bunch of valid technical questions and a maintainer who snapped. Did I miss something?
I've never been on a job where it was expected to baby sit junior employees all day. To train them, yes. But that's only need something like one to five hours a week. And in most cases, I believe that after the first two weeks of onboarding, it's mostly the occasional guidance or review.
Dealing with people is rewarding, unless having to be done with the kind of people who say stuff like you just did.
For them while I'll be in a decision position I can say one thing: I'll make sure me or my employers will rather pay for computers than for them. We like to work with kind people who have respect for themselves and others alike.
Basically, I'm working with AI to comment the design pattern we made yesterday. We're coming up with a plan to add some instructions to AGENTS.md that say "when adding a heuristic for ... go read the comments in [some files that handle that pattern.]"
---
In the PR's case, the maintainer should be pushing that these issues are retroactively documented in an AI-friendly way. If they're constantly having the same conversation with newcomers using AI, that's the "cue" that the problem needs a solution.
He is also promoting AI on company time like a good boy.
Open source dynamics are absolutely horrible. The only good thing is that AI exposes how poorly the Linux kernel was developed. They need the AI wheelchair, other projects don't get any reports at all.