Show HN: ADRs for AI – Deliberation records for human–AI work, versioned in Git
Why is this worth your time? Essentially, this solves two problems of AI-assisted programming: (a) the first problem is how to do oversight and what do oversight of and this is solved through the ORRCF (for Options, Recommendation, Rationale, Confidence, Falsifier) question format (in which models are supposed to surface all their doubts with fully fleshed out recommendations, with falsifier, to be approved or overridden) (b) the second problem is how to scaffold sustainable AI-written code; the ADRs (Architectural Deliberation Records, after Nygard's decision records) written by the models, summarize all the thought process involved in any design decision and provides the blueprint for the code. In tandem, the records provide both the reason why certain non-obvious design choices were made, from a constant, to a library choice, to an ordering in an operation; and also under what conditions different decisions would be made, for instance, in a different platform, or under different latency requirements, or for a different audience, and so on. This is a framework I've been working for over a year, that is the starting point of all my projects. It involves a lot of moving parts and my challenge is figuring out onboarding. I'm hoping the plugin, ADRs4AI/plugins, just created and now also submitted to Anthropic's marketplace, will make it easier. I am also in the process of recording introductory videos. I would like feedback on the onboarding, on what you make of the currently online materials, and how I could make any of this clearer. Thanks!
Discussion Highlights (20 comments)
dazzeloid
very cool. do you think of this primarily for engineering work or more generally collaborating with AI?
4b11b4
wait over a year? What were the design decisions which you have settled on and what did you throw out?
wrlach
This is cool, I have been working with something in a similar vein ( https://github.com/wlach/idr-tools ), though it seems like you emphasize keeping a decision log more than I do. For me, that aspect has been a lot less useful than structuring my thoughts about how implementation should proceed. It probably depends a lot on what you're trying to do. This might be my bias, but I feel like the site doesn't really immediately answer the question of why I would want to use these? What nagging issue does it solve? Some real world examples and case studies would go a long way to answering those questions. The theoretical stuff (papers, prior art, etc.) looks interesting but IMO does not belong on the front page.
ethanj8011
Megaslop. I stopped reading at "Your thinking stops disappearing. Your decisions start compounding." Like what even is this, we know about ADRs, this is a common framework.
diegof79
The title got me interested. However, I couldn’t bear your site, sorry. My feedback: cut the slop. I see a wall of text with explanations that are full of marketing phrases, filler sentences, and there isn’t a clear, curated explanation. Again, sorry for my blunt feedback.
kensuh
I really resonate with this since we do pretty much the same thing. If the same notes keep coming up during reviews, a human defines a single design rule, documents that call, and carries it over to the next round. Such as "intent.md"! search it
ozozozd
Tell what this does like you are telling w friend who trusts what you say, without the layers and layers of slop that aims to establish trust. Please.
varyherb
It sounds like a good idea, but having used this approach in a professional codebase with dozens of contributors, I can tell you firsthand it will start to degrade the code you get from a model surprisingly quickly. The agent will start to feel confused by the various conflicting "guardrails" and "constraints" the ADR is supposedly documenting. You will ask the agent why it did a particular contrived thing and it will cite various flawed or outdated assumptions. It's the same old problem of doc rot, but now the docs are blindly obeyed. It sounds simple to just keep the docs up-to-date, especially with AI, but that approach results in an unreadable AI slop trough. I'm still unsure what to recommend instead, especially in a collaborative setting.
deaux
> I would like feedback on the onboarding, on what you make of the currently online materials, and how I could make any of this clearer. Thanks! Currently the page is a lot of slop text without the main question most people who know what ADRs are and might be interested will have: what are the main differences and what do you see as the main advantages over other existing systems that use ADRs, the most popular one being Matt Pocock's? You need to realize that there are thousands of projects like these. Most people who are in your target audience is already using something similar, so it needs to be instantly clear what the difference is. You've got 5 seconds and having to scroll through slop takes up most of those. Just being realistic here.
buster
I think I see what happens with any new idea. You thought ADRs are important and now the agent produces piles of non-ADRs labeled as ADRs, which are really just some design decision, requirements, etc. From your screenshot alone I can tell that those are not architecture decision records on the left side. Ask yourself the question for each: is this truly an architecture decision or merely some design decision or requirement that now got some option a/b/c slapped onto it? In the end you will just have a repo with hundreds of meaningless ADRs that your agent has to wade through.
Garlef
And this post is a saddening bore, 'cause I wrote it ten times or more It's about to be writ again As I ask you to focus on phrases spilled out by an LLM ... --- On a more serious note: I've built similar things ad-hoc when creating my project harnesses. These decision lists kinda work but also they don't: The real challenge for me is fighting decoherence and keeping the orientation in a generated project. So: - I guess this works if you review and reshape the agents outputs manually. - It does not help you a lot building a software factory.
weinzierl
ADR's belong into version control but there they belong in the source code next to the thing they justify or substantiate. Not only is this the only way to have a chance that they stay in sync with the code it also is the right way to make them easy for agents. Y-statements are a nice way to practically do this.
mzhaase
I've done that too and given up on it. They got longer and longer, the LLM started adding them itself despite specific instructions to not do that, and in the end it let to context bloat. Better of without them.
vikrantrathore
Great to see another way to do specification. I also created So created guidedog: https://github.com/insanai/guidedog for working with multiple AI providers, inspired by PEP, RFC and Oxide RFD. I worked a lot of Python PEP which was adopted by rust and java later and working with RFC and RFC process since 1990's. Then later saw RFD by Oxide based on RFC. Learning from all of them created guidedog, the philosophy is if its good for human it is automatically very good for AI (most LLM are trained on it). guidedog supports RestructuredText (since its specification) as core markup with support for markdown. Its modeled after sphinx but can work for documentation, discussions (what you call as Deliberation Records) and can be a static site generator. So you don't need 3 tools one single tool a cli which can do all three. For doing this I worked by porting docutils and then building own parser and compiler in rust. This process so far worked extremely well for me as it is not just very good for AI, but provides complete control to humans. Also I like completely offline reading experience on paper. So this has first class pdf support. If you look at repos in insanai many projects used this process with AI and worked well. Just one hard work this process needs for human agency is to really read each discussion properly and sometimes they can be long. But its a very small work which can help later with verification and even writing documentation for what's being built.
zby
There is now a general consensus that agents should retain everything - but project from that retained state into more useful representations for each type of work. Your approach is good for creating evidence for all of the decisions - but the retained records will probably be too detailed as the main source for agents working in bigger or older repos. We need multilayer approach for this - but I am still not sure what it should be. Here is a comparison of ADR4All and my approach (which I am now revising): https://zby.github.io/commonplace/work/decision-lifecycle-ev... - it lives in the whole workshop for revising my approach: https://zby.github.io/commonplace/work/decision-lifecycle-ev...
jph
Want to add a link to your work to the architecture decision record repo? I maintain it. https://github.com/architecture-decision-record/architecture...
sornaensis
I made nearly the same idea but centered around semantic search with a pluggable embedding service and sqlite caching https://github.com/Sornaensis/adrai so it's just a CLI tool you tell your agents to use. ADRs are organized by a domain hierarchy and can relate directly to individual files and path globs. I find this absolutely improves cohesive development because it lets analysis and review agents scope ADRs with `adrai relevant path/to/file.rs` and `adrai search "blah blah"` And the ADR coverage can be more comprehensive and well organized without leading to too much context bloat if the models have to rediscover things all the time.
nickphx
It is not worth my time. How anyone believes writing magic incantations to be interpreted by a non-deterministic black box of bullshit is better than writing the actual structured programming language is befuddling. Thinking there is an actual market for such an inane concept is naive.
redwood
I must be dense but I'm not clear on what the acronym ADR refers to here. I assumed it might have referred to Account Development Representative (junior sales role) but was wrong. EDIT: I see it is defined in The Hacker News Post but not in the actual website
Selkirk
How many decisions per hour of work do you make? The answer is a lot. Most of them aren't worth recording. So, the questions that need to be answered in my mind are "What makes this decision worth recording?" and the related "How is having this ADR going to impact what agents actually do in the future?"