frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Rethinking SaaS architecture for AI-native systems

2•RobertSerber•1h ago
Hello HN,

I’ve been experimenting with an architecture for long-lived AI-generated applications (CRUD systems, dashboards, workflows). One pattern keeps appearing: the traditional frontend / backend / database model starts to struggle once an LLM can modify the structure of the application.

The issue isn’t first generation.

The issue is evolution of application state and schema over time.

The first version of an AI-generated app usually works. Problems appear during the second or third iteration:

* schema changes silently breaking dashboards * metrics changing meaning across versions * UI components querying incompatible datasets * the model fixing a local issue while violating global invariants

In short: the system drifts.

Most SaaS systems today look like this:

User ↓ Frontend ↓ Backend API ↓ Database

The real semantics of the system end up scattered across API handlers, migrations, background jobs, RBAC logic, UI assumptions and reporting queries. Nothing explicitly defines the meaning of the system or guarantees invariants when the schema evolves.

When an LLM can propose structural changes (entities, workflows, dashboards), a naive architecture looks like:

User ↓ LLM ↓ JSON change ↓ Apply to system

This works for demos but breaks for long-lived systems. “Valid JSON” doesn’t guarantee reference integrity, workflow invariants, permission boundaries, metric semantics or UI binding compatibility.

One approach that seems to stabilize things is separating AI reasoning from deterministic execution.

Instead of mutating the system directly, the LLM proposes an intent plan:

User ↓ LLM ↓ Intent / Plan (IR) ↓ Runtime validation ↓ Deterministic execution

The runtime decides whether the change is valid before anything is applied.

This leads to a deterministic execution layer exposing primitives such as:

Entity Relation State Transition Event Handler Query Mutation Permission

These primitives define the semantic model of the application. The runtime enforces invariants like reference resolution, schema evolution safety, RBAC boundaries and deterministic state transitions.

At that point the application stops looking like APIs and starts looking like an executable semantic graph.

Entities become nodes, relations connect them, events trigger handlers and transitions define allowed state changes. Interfaces (UI, API, LLM, agents) interact with this runtime.

An interesting consequence is that the runtime itself can remain general-purpose infrastructure while the application becomes declarative.

For example a simple CRM could be described as a semantic model:

entities: Contact, Company, Deal relations: Contact→Company, Deal→Company workflows: Deal pipeline (Lead → Qualified → Won/Lost) metrics: pipeline_value, conversion_rate permissions: role policies

The runtime interprets this model and exposes queries, dashboards and workflows.

Runtime (constant)

* semantic model (JSON / DSL) = application

This effectively turns the runtime into a programmable application platform where different SaaS products are just different semantic models running on the same execution layer.

Conceptually this behaves less like a typical backend and more like a domain-specific runtime or application kernel.

In this architecture the LLM doesn’t execute the system directly. It proposes changes to the semantic model, and the runtime validates them before execution.

Curious if others building AI-native infrastructure, agent runtimes or programmable SaaS platforms have explored similar patterns.

Comments

RobertSerber•1h ago
For context, I'm experimenting with applying this architecture to a CRM system where the entire application is defined as a semantic JSON model executed by a runtime.

The LLM proposes structural changes (entities, workflows, metrics), while the runtime enforces invariants and deterministic execution.

Bringing Chrome to ARM64 Linux Devices

https://blog.chromium.org/2026/03/bringing-chrome-to-arm64-linux-devices.html
1•ingve•28s ago•0 comments

MCP tools for AI-native ontology engineering (Rust and Oxigraph)

https://github.com/fabio-rovai/open-ontologies
1•fabio_rovai•36s ago•1 comments

The Generational Prisoner's Dilemma: Three Certain Truths

https://twitter.com/dgt10011/status/2031757205888762205
1•washedup•37s ago•0 comments

The Official GBBS Pro Repository

https://gbbs.applearchives.com/
1•js2•58s ago•0 comments

You can turn Claude's most annoying feature off

https://jdlms.site/blog/claudes-most-annoying-feature
1•tietjens•3m ago•0 comments

Agentic Evidence

https://actis.world
1•blazingjolt•3m ago•1 comments

Ask HN: Do you struggle analyzing large log files with AI due to token limits?

1•DrTrader•4m ago•0 comments

Sitka's excellent Gravity clock Eurorack module is now open source

https://cdm.link/gravity-open-source/
1•bryanrasmussen•5m ago•0 comments

Show HN: RestaRules – A robots.txt for how AI agents interact with restaurants

https://github.com/selfradiance/restarules
1•selfradiance•6m ago•0 comments

One More Prompt: The Dopamine Trap of Agentic Coding

https://blog.quent.in/blog/2026/03/09/one-more-prompt-the-dopamine-trap-of-agentic-coding/
1•sylvainkalache•6m ago•0 comments

RAF vs. Usaaf: The Bombing Doctrine Split That Divided the Allies

https://warcommons.com/2026/03/11/raf-usaaf-bombing-doctrine-disagreement/
1•NENCMediaGroup•9m ago•0 comments

Grok 4.20 brings minimal improvements for Grok-4.1-fast

https://aibenchy.com/compare/x-ai-grok-4-20-beta-medium/x-ai-grok-4-20-multi-agent-beta-medium/x-...
1•XCSme•10m ago•1 comments

Show HN: Slack but Usage Priced

https://loftchat.com
1•valliveeti•11m ago•0 comments

Can LLMs Be Computers?

https://www.percepta.ai/blog/can-llms-be-computers
1•linolevan•11m ago•0 comments

Spacetime Quasicrystals

https://arxiv.org/abs/2601.07769
2•amai•11m ago•0 comments

Show HN: I'm building niche AI agents with OpenClaw (Clawsify)

https://clawsifyai.com
1•Vanshfin•12m ago•0 comments

Deepak Jain to Host Two Sessions at Nvidia GTC 2026

1•AiNETFactory•14m ago•0 comments

You Can Stop Marrying for Genes

https://fi-le.net/love/
2•fi-le•15m ago•0 comments

Amazon Employees Say AI Is Just Increasing Workload

https://gizmodo.com/amazon-employees-say-ai-is-just-increasing-workload-a-new-study-confirms-thei...
2•jamesgill•16m ago•0 comments

Ask HN: Developing .NET on Windows but deploying to Linux – common issues?

1•ghostlyInc•17m ago•2 comments

Boeing's Bizarre Planes That Were Never Built

https://www.airlineratings.com/articles/boeings-bizarre-planes-that-were-never-built
1•voxadam•18m ago•0 comments

On Making

https://beej.us/blog/data/ai-making/
1•ingve•19m ago•0 comments

Zeno's Paradox resolved by physics, not by math alone

https://bigthink.com/starts-with-a-bang/zenos-paradox/
2•bryanrasmussen•20m ago•1 comments

What's That? – Photo to personalized audio narrative in under 10 seconds

https://apps.apple.com/us/app/whats-that-ai-audio-guide/id6756409506
1•whatsthatapp•22m ago•1 comments

The Dopamine Trap of Vibe Coding

https://codn.dev/blog/the-dopamine-trap-of-vibe-coding/
3•romanhoffmann•24m ago•5 comments

MCPs, CLIs, and skills: when to use what?

https://jngiam.bearblog.dev/mcps-clis-and-skills-when-to-use-what/
6•jngiam1•24m ago•0 comments

A Snapshotable WASM Interpreter

https://github.com/friendlymatthew/gabagool
2•birdculture•25m ago•0 comments

Looking for Partner to Build Agent Memory (Zig/Erlang)

2•kendallgclark•26m ago•0 comments

Show HN: Codex Symphony – bootstrap OpenAI Symphony and Linear in any repo

https://github.com/Citedy/codex-symphony
1•ntty•28m ago•0 comments

How to use Claude Cowork – Complete guide

https://overtoncollective.com/blog/claude-cowork-complete-guide
2•Ali_Jiwani•28m ago•0 comments