Hacker News new | ask | show | jobs
by ChicagoDave 49 days ago
If you build guardrails on what is generated, verification is done at the same time as generation.
6 comments

A lot of the risk is insider risk. A hacked credential, an annoyed engineer going to a competitor, etc.

Think embezzlement. Think someone with a political agenda who changes the homepage on the way out the door.

Having a single point of control is asking for trouble.

There's a reason verification and code review shouldn't be done by the person who wrote the code, and those reasons don't magically go away because a code generation tool did it instead.

Of course, since AI will be doing the writing and maintaining, there's really no reason for that any more. Let the AI do it all and wait for management to realize they're paying senior salaries to people that are little more than entering prompts, a job that really only requires someone to be able to read and write English.

It’s amazing how much developers want to automate themselves out of a career.
Is it okay to automate into higher level tasks?
what are the guardrails?

if there are many of them (e.g. unit tests), who generates those guardrails and who verifies their correctness?

if they are a few, then how can they cover vast product capability surface?

Also known as harness engineering and is written about by Martin Fowler, RedHat, and many senior graybeard architects. I was at the DDD conference in Denver a few weeks ago and there were discussions about extracting value from GenAI and harnesses were the happy path.

In my own works, I've been using a home grown harness called DevArch for about 10 months.

Visit https://genai.cornelson.net/ if you want a detailed rundown of my experiences.

A not-insignificant portion of HN has full blown AI psychosis. These are the devs churning out Windows 11 and all of the inexplicably broken functionality that has started plaguing software we used to consider reliable in the past year.
it's bull-crap

Guard-rails are totally ineffective

I have evidence you're probably wrong, but open to evidence-based commentary.

If you're just knee-jerk anti-AI, then you probably need to sit down because some of us are taking serious evidence-based paths with GenAI.

If you have real data on guardrail ineffectiveness, that would be excellent material to share.

You can make skills files all you want and have testing agents that evidently reduce need for revisions post deployment but it's not 100% and the more you don't understand what's going on because you didn't write it, the more complex the system is, especially if it's not all testable in a way that reduces risk, and especially in a security-relevant system or one that could have consequences to people the worse all of that is.
Right.

This is why those of us that follow DDD principles are successful. We know how to manage complexity whether we’re doing it manually or by using GenAI.

There are plenty of non AI security analysis tools we still use and add review gates for security gaps.

There is a huge misunderstanding about understanding the code. It implies knowledge of the classes, interfaces, and even internal logic.

If you design a modular system and generate code under strict rules, no one needs to know any of those things. We only need to understand the design and the results.

If we miss things, iteration is cheap.

"If you design a modular system and generate code under strict rules, no one needs to know any of those things. We only need to understand the design and the results."

Doubt!

Sounds like utter bull-crap!

What "guardrails" specifically ensure that? I assume you have a more interesting idea than simply suggesting more tests.
It’s not just me:

https://martinfowler.com/articles/harness-engineering.html

https://milvus.io/blog/harness-engineering-ai-agents.md

https://devarch.ai/

I personally follow Domain-Driven Design principles and old enough to have designed software through the old Anderson Consulting Method/1 practices.

Some of the results of my practices are documented at https://genai.cornelson.net

Speed replaces pragmatism by allowing design flaws to be refactored N times where in the past we’d design around tech debt.

DDD leads to modularity and smaller bounded contexts has a significantly lower risk of being incorrect and significantly higher ability to refactor quickly.

And no you still have to understand how to construct software. We’re just skipping the coding skills and pushing everyone to be architects.

This is mathematically challenging as your system gets more complicated.

If you give up on trying to reduce the number of permutations you need to test, you're gonna also (even if not intentionally) give up on testing them.

We knew this, of course. But everything old is new again.

“Make no mistake.”