For the couple of PRs I've submitted, I read through the code and got the LLM to describe the changes to me. Several still got rejected because even though I'm a human and I reviewed stuff, and I made sure to edit the PR to show that. Because I didn't have enough context to know that blah-foo() was actually accepted behaviour. So that nuance wasn't documented (which is something perhaps LLMs should be used to do)
So I've stopped submitting PRs because I can't be sure I'm not causing offence like happened to you.
What kind of stuff do you wish those PR submitters had done before even beginning the patch/fix/etc? Should they open a simple ticket with "hey, this thing got flagged by $MODEL, you ok with a patch?" Like, get a human in the loop right at the start?
Yes, of course. Same as I myself work with AI to write code. But very different to actually understand what's broken, the correct way to fix it according to how the project works and aims for, and making it concise enough to not waste maintainers time either reading or reviewing.
If you're unsure, then opening a discussion issue first is best. Sending over a 1K LOC long patch with a 10K character description is a surefire way of getting told to leave immediately.
But if you accurately and concisely manage to describe what the issue is and why it happens, and what you believe to be the right fix, according to the guidelines, together with a small patch for specifically fixing that issue, then that's OK.
Most of the AI-assisted PRs are not like that. They're bloated both in terms of what the changes are and how the "author" describes the changes.
Ask your agent to figure out the contribution guidelines if you're too lazy to do this yourself, do 1-3 passes to ensure everything follows what the project asks for. If you don't have enough context, don't just "skip getting the right context" and submit a patch anyway, but instead focus on building up the right context.
> Several still got rejected because
You never really say why they got rejected even though there is a "because" in there. Did you get any sort of reply? Would you be OK with sharing one of them here? Then I could tell you if something sticks out as "low effort" or whatever, maybe that'd be helpful.
My PRs were rejected because I didn't know that certain decisions made much earlier in the project meant that they weren't needed. They weren't documented either in a comment or in the documentation. But, still, I should have asked first and sent a PR later.
There's possibly some value for an LLM to read every single github issue for a project to see if there's nuance that's missing from the documentation, or every forum post etc. Could be an interesting avenue to explore, comparing the docs and comments against the wider corpus of knowledge.
I've had someone submit a PR, I politely tell them that's the wrong fix, the right fix is described in issue 42 which unfortunately I haven't had the time to do for over a year. They close the PR, and in 20min come back with a full implementation of issue 42.
As if the problem is that I don't have access to and AI to ask it "implement issue 42, make no mistakes." Dude, my thing is popular enough that GitHub offers me an AI subscription for free.
So I mean, please, fork me and vibe code your own version. I've also had that happen, and I honestly don't mind. Just don't assume I'll review or promote it (which I've also been asked to).
OTOH if you look at the style I'm following, the pace, the way I communicate, what issues I'm dealing with, if you meet me halfway, engage and build trust, I'll gladly look at your entire Fable implementation of a feature it would take me months to do by hand. I'll take your prototype, stress it, waste time, get my AI on it, modify it, make it mine, then credit you specifically in the commit and release notes.
Also worth pointing out that four AI-prompted fixes were real, per https://fosswire.org/news/squashfs-maintainer-phillip-loughe... . How much grief is it worth to fix four problems in critical code? I'm not sure. But worth mentioning.
All of this is just rearranging deck chairs on the Titanic, of course. Presumably Mr. Lougher isn't being paid fulltime to maintain SquashFS, which would also solve this problem. Or should, at least.
> Unlike chatgpt, Fable is able to build kernels and run them in VMs all
> inside its sandbox. Pretty cool stuff.
The more I read about this, the weirder this entire exchange becomes.
Maybe my opinion but the developer experience around the Linux kernel is pretty bad, it only worked before because the bar to produce a patch was so high that only 1% of the developers could manage to submit anything. Now that the bar is lower, the kernel must invest a lot of resources to improve the tooling in my opinion.
Tooling is not an issue IMO. It's just that it's closer to reality than most programming which happily happens at the top of the abstraction tower. And the real world is messy.