Who should be allowed to declare an AI agent's work complete?

I've started wondering whether “task completed” should even be something the agent gets to decide.

The agent can plan the work, call the tools, and report what happened.

But the system should probably be the one that decides whether the task is actually complete.

For example:

Agent: “The customer record was updated.”

System: “Show me the state that proves it.”

That could be a database read, an API response, a test result, a file diff, or some other source of truth depending on the task.

So I'm thinking about separating:

execution → observation → verification → completion

rather than:

execution → agent says done → completion

The interesting part is what happens when verification is unknown, not simply passed or failed.

Maybe “unknown” should be a first-class state that triggers reconciliation or human review instead of letting the agent continue as if everything succeeded.

How are people handling this in real agent workflows?

Do you let the agent own the definition of “done”, or is completion determined outside the agent loop?

reddit.com

I think the hardest part of agentic marketing isn't autonomy — it's giving the agent the right memory

I've been thinking about agentic marketing from more of an engineering side, and one thing keeps bothering me: we talk a lot about making agents more autonomous, but not enough about giving them reliable memory.

An agent can research a customer, analyze a campaign, write a message, and trigger an action. But what happens when it interacts with that same customer again next week?

If it doesn't remember what happened before, it's not really building a relationship. It's just starting another conversation with a bigger prompt.

For me, useful agentic marketing would need to keep track of things like:

what the customer has already seen

what they ignored or responded to

previous questions or objections

their current segment or stage

what they've already been offered

contact/frequency limits

why the agent made a particular decision

what happened after that decision

And I don't think simply throwing the entire customer history into an LLM context window is the answer.

I'd rather see something closer to:

Events → State → Decision → Policy check → Action → Outcome → Updated state

That feels much closer to an actual agentic system than just giving an LLM more tools.

It also makes me wonder: should we really measure an agent by how autonomous it is, or by how well it learns from the outcomes of its previous decisions?

I'm leaning toward the second one.

Curious how others here are approaching this. Are you maintaining explicit customer/campaign state outside the model, or mostly relying on retrieval and prompts to reconstruct the context each time?

Once these systems operate for weeks or months, I think memory, state, attribution, and auditability become just as important as the model itself.

reddit.com
u/GeneralPhilosophy950 — 8 days ago

If AI becomes part of the commerce decision loop, should e-commerce architecture change?

I've been thinking about what happens to e-commerce architecture when AI moves beyond recommendations and becomes part of the actual decision and transaction flow.

Traditional e-commerce systems are generally built around a fairly deterministic pipeline:

User → UI → API → Commerce Services → Database → Payment/Inventory/Order Systems

AI introduces a different kind of interaction.

A user might say:

"Find me a laptop under ₹80,000 that's good for development, has at least 32 GB RAM, and can arrive this week."

The system now needs to reason over product data, inventory, pricing, user preferences, delivery availability, and potentially multiple backend services before producing an answer.

If the AI is eventually allowed to perform actions as well, the architecture becomes even more interesting:

User intent

→ AI orchestration

→ product/search services

→ pricing

→ inventory

→ personalization

→ cart

→ payment

→ order

→ fulfillment

I'm wondering whether treating AI as simply another "service" is the wrong architectural abstraction.

A design I'm interested in is separating the system into a few clear layers:

  1. Experience layer

Web/mobile/voice interfaces that capture user intent and present results.

  1. AI orchestration layer

Intent interpretation, retrieval, recommendation, tool selection, workflow orchestration and context management.

  1. Commerce domain layer

Products, catalog, pricing, promotions, inventory, cart, orders, customers and fulfillment.

  1. Real-time/data layer

Events, inventory changes, user behavior, analytics and recommendation signals.

  1. Trust and transaction layer

Authentication, authorization, fraud controls, payment processing, auditability and explicit approval for high-impact actions.

The important boundary for me is that the AI layer should not become the owner of core business state.

For example, I wouldn't want an LLM deciding whether an item is actually in stock or whether a payment succeeded.

The AI should request those facts from deterministic domain services and then reason over the returned data.

Similarly, an agent might decide:

"Add this product to the cart."

But the actual cart mutation should still go through the normal commerce domain and authorization boundaries.

This seems to create an interesting architecture:

AI handles interpretation and orchestration.

Deterministic services remain responsible for business invariants.

Event-driven infrastructure keeps state synchronized.

Human approval or policy enforcement sits around sensitive actions.

The more I think about it, the less I believe "AI-native commerce" means replacing traditional e-commerce architecture with agents.

It may instead mean putting an intelligence/orchestration layer above a strongly designed commerce core.

I'm curious how other architects see this.

If you were designing a large-scale AI-native commerce platform today:

Would you make the AI orchestration layer a separate architectural boundary?

Where would you draw the boundary between AI reasoning and deterministic business logic?

Would you keep inventory, pricing, payments and orders completely outside the agent layer?

And how would you design the system so that adding a new model or agent framework doesn't require rewriting the commerce domain?

I'm especially interested in architectural trade-offs and production experience rather than specific AI vendors or frameworks.

reddit.com
u/GeneralPhilosophy950 — 10 days ago

If AI becomes part of the commerce decision loop, should e-commerce architecture change?

I've been thinking about what happens to e-commerce architecture when AI moves beyond recommendations and becomes part of the actual decision and transaction flow.

Traditional e-commerce systems are generally built around a fairly deterministic pipeline:

User → UI → API → Commerce Services → Database → Payment/Inventory/Order Systems

AI introduces a different kind of interaction.

A user might say:

"Find me a laptop under ₹80,000 that's good for development, has at least 32 GB RAM, and can arrive this week."

The system now needs to reason over product data, inventory, pricing, user preferences, delivery availability, and potentially multiple backend services before producing an answer.

If the AI is eventually allowed to perform actions as well, the architecture becomes even more interesting:

User intent

→ AI orchestration

→ product/search services

→ pricing

→ inventory

→ personalization

→ cart

→ payment

→ order

→ fulfillment

I'm wondering whether treating AI as simply another "service" is the wrong architectural abstraction.

A design I'm interested in is separating the system into a few clear layers:

  1. Experience layer

Web/mobile/voice interfaces that capture user intent and present results.

  1. AI orchestration layer

Intent interpretation, retrieval, recommendation, tool selection, workflow orchestration and context management.

  1. Commerce domain layer

Products, catalog, pricing, promotions, inventory, cart, orders, customers and fulfillment.

  1. Real-time/data layer

Events, inventory changes, user behavior, analytics and recommendation signals.

  1. Trust and transaction layer

Authentication, authorization, fraud controls, payment processing, auditability and explicit approval for high-impact actions.

The important boundary for me is that the AI layer should not become the owner of core business state.

For example, I wouldn't want an LLM deciding whether an item is actually in stock or whether a payment succeeded.

The AI should request those facts from deterministic domain services and then reason over the returned data.

Similarly, an agent might decide:

"Add this product to the cart."

But the actual cart mutation should still go through the normal commerce domain and authorization boundaries.

This seems to create an interesting architecture:

AI handles interpretation and orchestration.

Deterministic services remain responsible for business invariants.

Event-driven infrastructure keeps state synchronized.

Human approval or policy enforcement sits around sensitive actions.

The more I think about it, the less I believe "AI-native commerce" means replacing traditional e-commerce architecture with agents.

It may instead mean putting an intelligence/orchestration layer above a strongly designed commerce core.

I'm curious how other architects see this.

If you were designing a large-scale AI-native commerce platform today:

Would you make the AI orchestration layer a separate architectural boundary?

Where would you draw the boundary between AI reasoning and deterministic business logic?

Would you keep inventory, pricing, payments and orders completely outside the agent layer?

And how would you design the system so that adding a new model or agent framework doesn't require rewriting the commerce domain?

I'm especially interested in architectural trade-offs and production experience rather than specific AI vendors or frameworks.

reddit.com
u/GeneralPhilosophy950 — 10 days ago