I'm vibe coding a platform for fullstack web apps and as part of dogfooding I'm generating a bunch of simple projects that catch some issues. While doing it I've caught a bug that makes nested encoders fail.
I've PR with tests and fix here https://github.com/roc-lang/roc/pull/13365
It's AI generated as I'm not familiar with Zig. What's Roc policy when it comes to such contributions? The fix looks okayish to me, but real verification without knowledge of Roc internals (and Zig) is hard. Is it fine to post such PRs or would issue with reproduction be better if I cannot take ownership of the change?
EDIT. for context this was minimal failing repro
Badge := { name : Str }.{ encoder_for : _ }
badge : Badge
badge = { name: "Ada" }
expect Json.to_str_try({ id: "a1", badge }) == Ok("{\"badge\":{\"name\":\"Ada\"},\"id\":\"a1\"}")
I don't know the exact policy, but you should name the agent and the version of Roc you tested with. Point your agent at https://github.com/roc-lang/roc/pull/12925
I don't know if my PR is a perfect example, but it did get merged. (Mine was agent-written by Claude.)
@Dawid Danieluk the strong preference is for you to put together a GH issue with what you have. Having a candidate patch in the issue is helpful.
I wouldn't close this PR though, I'll have a look at it
@Luke Boswell I'll keep this in mind. I'll leave this one as PR and if I find anything else I'll open an issue next time :-)
Last updated: Nov 26 2026 at 20:35 UTC