2026-11-27 16:21 UTC

GHC permits AI-assisted contributions with human accountability

state: expiredheat: mediumuncertainty: mediumrelevance: mediumai-assisted-coding open-source-policy compiler-developmentGHCSerokellSimon Peyton Jones

What is this?

Serokell published an account on October 28, 2026, of GHC’s LLM-contribution policy. Serokell is involved in GHC development, so the article offers an informed but interested perspective; it says the current policy grew out of a ghc-devs discussion associated with Simon Peyton Jones. The policy permits LLM-assisted contributions, but requires human contributors to understand and take responsibility for submitted work, disclose directly generated material, and make changes reviewable. It prioritizes people and community, while preferring—not requiring—that contributors write the final version themselves. The supplied web results include discussion-list excerpts on disclosure, draft submissions, and reviewer discretion, but not the policy page itself; details here rely chiefly on Serokell’s account.

Why it matters

This is a concrete example of an open-source project adapting its contribution rules to AI-assisted coding without either banning it or treating generated patches as automatically acceptable. The policy’s emphasis on review cost and human responsibility matters beyond GHC: AI can make producing plausible code easier, but maintainers’ attention and project knowledge remain scarce. Serokell describes some assisted GHC work, including a proof of concept on a difficult compiler problem, but that account does not establish broad productivity gains or adoption.

Current assessment

New: Serokell’s October 28 account says GHC now has a four-point policy plus a strong preference. Contributors must prioritize community, submit reviewable changes, understand and take responsibility for every submitted line, and disclose LLM-generated code, tests, documentation, or other review material in the issue/MR and commit message. Private exploratory use need not be disclosed, though disclosure is encouraged; generated drafts may be marked as drafts. Writing the final version themselves is preferred, not mandatory. The account says the policy does not resolve broader questions about LLMs and that GHC maintainers can reject work that shifts excessive reasoning or maintenance burden onto reviewers. It also reports examples of assisted patches and a model-assisted proof of concept later rewritten and extended by a GHC engineer; these are reported examples, not independent evidence of net productivity. Serokell acknowledges its stake in the discussion. Search results show mailing-list debate on disclosure and review practices, but do not independently verify the final policy text. Useful follow-up: confirm the current GHC policy page and track how the rules work in practice, especially reviewer workload, disclosure norms, and community effects.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

07-09 14:00⭐ origin echo-reconstructedThe earliest primary artifact located is Simon Peyton Jones’s original Google Docs draft, “Draft policy on LLMs in the GHC project” (July 20
Simon Peyton Jones on other (echo) · attributed from hn.story.50293025
—
10-29 17:42first on hacker news · published · +2691.7hAI Contributions to GHC
alexandersechin
—
10-29 17:42amplified on hacker news 👑hn.story.50293025
alexandersechin
peak 18 · 8 comments · 100% of case engagement
10-29 19:21our radar first saw it · +2693.4hdiscovery anchor: hn.story.50293025—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnAI Contributions to GHC
Retrieved article excerpt

Open article · Retrieved 2026-10-29T19:23:20.431735+00:00

[Research](https://serokell.io/blog/research)[Programming](https://serokell.io/blog/programming)[Artificial Intelligence](https://serokell.io/blog/artificial-intelligence)[Interviews](https://serokell.io/blog/interviews)[Other](https://serokell.io/blog/other)

# AI Contributions to GHC

[Serokell PR](https://serokell.io/team#serokellpr)

Article by [Serokell PR](https://serokell.io/team#serokellpr)

October 28th, 2026

13 min read

[Copy Link](https://serokell.io/blog/ai-contributions-to-ghc)Mail[Telegram](https://t.me/share/url?url=https%3A%2F%2Fserokell.io%2Fblog%2Fai-contributions-to-ghc&text=Check out this post by Serokell.)[Linkedin](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fserokell.io%2Fblog%2Fai-contributions-to-ghc)[Twitter](https://twitter.com/intent/tweet?url=https%3A%2F%2Fserokell.io%2Fblog%2Fai-contributions-to-ghc&text=Check%20out%20AI%20Contributions%20to%20GHC%20by%20%40serokell)[Facebook](https://www.facebook.com/sharer.php?u=https%3A%2F%2Fserokell.io%2Fblog%2Fai-contributions-to-ghc)[WhatsApp](https://api.whatsapp.com/send?text=Check%20out%20this%20post%20by%20Serokell%3A%20AI%20Contributions%20to%20GHC%20-%20https%3A%2F%2Fserokell.io%2Fblog%2Fai-contributions-to-ghc)

1

## What contributors can do, what they must disclose, and why we think the policy is reasonable.

GHC now has a concrete policy for LLM-assisted contributions. By mid-October, maintainers were already referring to it directly in review discussions: Julian Ospald cited P3 of “the AI policy”, while Andreas Klebinger described LLM-generated bug fixes as “fine, it’s policy”.

The [GHC wiki page](https://gitlab.haskell.org/ghc/ghc/-/wikis/contributing/AI) itself predates this summer’s debate, so the URL alone does not show what changed. The current text does.

The policy follows the document Simon Peyton Jones developed through the ghc-devs discussion, rather than the competing “shared statement” proposed in July. The authors of that statement explicitly said it was not intended to replace a contribution policy, and Teo Camarasu argued against treating it as one.

The structure changed during the discussion. On July 27, the draft was being summarised as three policy points and one recommendation: make merge requests easy to review, take full responsibility for the contribution, declare direct LLM use, and preferably write the final version yourself. The current document has four policy points and one strong preference. “Prioritise people and community” is now P1; the earlier points move to P2–P4; writing the final version yourself becomes P5 and remains a preference rather than a requirement.

We have a direct stake in the discussion. Vladislav Zavialov and Andrei Borzenkov work on GHC at Serokell, and Andrei participated in the policy discussion. Coding assistants have also become part of our own engineering workflow.

For GHC, the practical problem is reviewer cost. Tool-assisted work is useful only if it does not leave maintainers doing the contributor’s thinking for them.

GHC currently has more than 6,500 open tickets. Some are difficult compiler problems. Others are routine but still useful: reproducing an old report, reducing a test case, adding a missing benchmark, or checking whether a bug still exists.

## **What the policy says**

The policy does not take a position on whether LLMs are good or bad overall. It says explicitly that the project has no consensus on their costs and benefits. Instead, it defines expectations for contributions and reviews.

There are four policy points and one strong preference.

**P1: prioritise people and community.** Contributors may use LLMs, but direct discussion with reviewers is expected to remain human. Generated text should not be relayed as a substitute for the contributor’s own judgement. Using an LLM to navigate the codebase, translate text, or investigate a problem is allowed, but the tool should not replace the conversations through which an open-source project develops contributors and maintainers.

**P2: make merge requests easy to review.** Contributors are expected to invest substantially more effort in a contribution than reviewers will need to spend understanding it. MRs should have a clear goal, an explained design, useful examples and tests, and be split into digestible pieces. A generated patch that compiles but leaves the reviewer to reconstruct the reasoning does not meet this bar.

**P3: human authorship and full responsibility.** Every contribution needs an identifiable human author who understands and can explain every line of code and every sentence of documentation submitted for review. Generated material is allowed if the contributor has reviewed it closely enough to take responsibility for it. Tickets are treated more loosely because a useful bug report may come from someone who does not understand the underlying compiler failure. Draft MRs may also contain unfinished or generated work if they are clearly marked as drafts and are not yet asking maintainers for review.

**P4: declare direct LLM generation.** If an LLM generated any part of the code, documentation, tests, or other material submitted for review, that use must be disclosed. Contributors do not need to publish prompts or account for every interaction. Private use for exploration, debugging, or design ideas does not require disclosure, although the policy encourages it. For submitted material, the declaration should be visible in the issue or MR description and in the commit message, usually with an `Assisted-By:` line.

**P5: preferably write the final version yourself.** Generated code is still allowed. The document argues that rewriting the final version is often the simplest way to make sure the contributor has thought through every line, kept the patch small, and removed unnecessary prose. GHC `Note`s receive particular attention because they preserve architectural reasoning that may matter years later. Generated material can still be submitted if it has been reviewed and revised closely enough to satisfy P3.

LLM-assisted reviews follow the same rules. The document also uses “LLM” broadly enough to cover future systems that play the same role, including agents.

## **What changed from the draft**

The final policy keeps the central position of Simon’s draft: assisted contributions are allowed, direct generation must be disclosed, and responsibility stays with the human contributor.

The main structural change is that community became a policy point of its own. The July draft already discussed human conversation and the health of the contributor community; the current document promotes that concern to P1 and renumbers the operational rules beneath it.

The recommendation to write the final version yourself also survived. Some participants argued during the discussion that this should be softened. The final text keeps the strong wording but states the boundary clearly: P5 is a preference. Contributions are judged under the policy points, not according to whether a human typed every character.

The policy therefore avoids trying to settle the broader argument over LLMs. It defines the condition under which a contribution is ready to consume reviewer time.

## **Review is the scarce resource**

Maintainer time is the main constraint.

GHC already has far more work waiting than people available to review it. Cheaper patch generation does not help much if review becomes more expensive. A patch produced in twenty minutes can still cost a maintainer two hours to understand.

LLVM calls one version of this an [**extractive contribution**](https://llvm.org/docs/AIToolPolicy.html), borrowing the idea from Nadia Eghbal’s *Working in Public*: the contributor receives the benefit of submitting something while the project spends more effort reviewing and integrating it than the contribution is worth.

The problem predates LLMs. Anyone could submit a 2,000-line patch they barely understood. Generating one is now much easier.

Commercial development shows a similar pattern. [Faros](https://www.faros.ai/blog/ai-software-engineering) found that teams with heavier AI adoption produced more and larger pull requests while review times also increased. The data is observational, and a corporate engineering organisation is not directly comparable to GHC, but the bottleneck is the same: code production is only one part of the development process.

GHC review also depends heavily on project history. A patch may look correct in isolation while contradicting a proposal from four years ago, reintroducing an old performance regression, or making a planned compiler change harder. Human contributors can make exactly the same mistakes when they do not know enough of the surrounding history. LLMs mainly reduce the amount of context someone needs before they can produce something that looks plausible.

Maintenance has the same dependency on context. Six months after a merge, the important question is whether anyone understands why a line exists.

## **What about growing new maintainers?**

Open-source contributions also train future maintainers.

Small issues are useful partly because contributors have to work through them. A reviewer explains why the obvious solution fails, the contributor learns another part of the system, and after enough iterations may eventually review other people’s work.

Loris Cro calls this [**contributor poker**](https://kristoff.it/blog/contributor-poker-and-ai/) in his explanation of Zig’s policy. Maintainer time is an investment, and Zig prefers to spend it on people who may stay with the project rather than on drive-by patches produced cheaply with an LLM.

LLVM takes a narrower version of the same position. Its policy does not allow AI tools to solve `good first issue` tasks because those tasks are intended to introduce people to the project.

This becomes a real problem when generated patches displace other contributors or consume a significant share of reviewer attention. We do not see much evidence of that in GHC today. The project has a reviewer shortage, but not a flood of low-quality LLM submissions competing with a large queue of human contributors for the same tickets.

The policy can be tightened if that starts happening. Today, a blanket ban would be aimed at a problem GHC is not yet seeing at scale.

## **A ban is hard to police**

OpenJDK took a stricter route. Its [interim AI policy](https://openjdk.org/legal/ai) excludes contributed material generated in whole or in part by LLMs, while still allowing private use for code comprehension, research, debugging, and review.

OpenJDK also acknowledges the enforcement problem: reliably distinguishing generated content from human-written content is generally impossible.

The rule can still serve a purpose. A project may want a clear norm, or may have legal and provenance concerns that justify a stricter boundary. The practical incentive is less tidy: a contributor who discloses model use can be rejected immediately, while another contributor who used the same tool privately and says nothing may be indistinguishable.

GHC takes a different route. Disclosure gives reviewers context but does not automatically disqualify the contribution.

Other projects have made different choices. GCC rejects legally significant contributions containing or derived from generated material, while allowing AI for investigation and review. LLVM accepts assisted contributions when a human checks the result and takes responsibility for it. GraalVM expects submitters to understand the change well enough to answer reviewers and maintain it afterwards.

The Linux kernel has explicit [guidance for coding assistants](https://docs.kernel.org/process/coding-assistants.html). AI-assisted contributions are allowed. The human contributor reviews the code, takes responsibility for it and certifies the DCO; the assistance is recorded with an `Assisted-by:` tag.

Functional-language projects disagree as well. [OCaml]
alexandersechin188
🟧 echo.other ⭐The earliest primary artifact located is Simon Peyton Jones’s original Google Docs draft, “Draft policy on LLMs in the GHC project” (July 20Simon Peyton Jones——

Interpretation history

Decision trace