r/AISystemsEngineering • • 8h ago

Is there a LeetCode for agent engineering? Where do you prove you can build production AI systems?

3 Upvotes

I'm a backend engineer in payments (Go, Kafka, AWS). I already build agentic tooling at work and want to move into agent/AI engineering roles.

LeetCode and HackerRank prove algorithm skills. I'm looking for the equivalent for agents: somewhere that shows I can build systems that hold up in production (evals, reliability, cost control, tool/MCP design, security), not just a demo that works once. I'm a backend engineer in payments (Go, Kafka, AWS). I already build agentic tooling at work and want to move into agent/AI engineering roles.

LeetCode and HackerRank prove algorithm skills. I'm looking for the equivalent for agents: somewhere that shows I can build systems that hold up in production (evals, reliability, cost control, tool/MCP design, security), not just a demo that works once.


r/AISystemsEngineering • • 2h ago

Building an evidence-driven AI system with Azure AI Foundry and AKS — Dendro Inspector

Post image
1 Upvotes

Happy Free Post Friday!

I've been working on an open-source project called Dendro Inspector, which recently reached its first 20 GitHub stars!

The idea is simple, but the implementation is challenging: identifying trees from bark, leaves, logs, and wood photographs using multimodal AI.

One of the biggest challenges is AI hallucinations. Models can confidently identify a tree even when the visual evidence is insufficient or contradictory.

I'm experimenting with Azure AI Foundry and Azure Kubernetes Service (AKS) to build a system that goes beyond simply returning a tree's name.

The technical side includes:

\- Azure AI Foundry for multimodal AI inference.

\- AKS-based evaluation runner for parallel processing of image datasets across Kubernetes pods.

\- Configurable parallelism and resource limits for running large-scale evaluations.

\- Evidence-based identification rather than blind confidence.

\- Detecting disagreements between observations and model predictions.

\- Acknowledging uncertainty when evidence is insufficient.

\- Reproducible benchmark runs to understand where models succeed and fail.

The project is still experimental. I'm focusing on building a reliable evaluation process and measuring actual identification accuracy rather than trusting confident AI responses.

I'm curious: Has anyone here built similar evaluation pipelines on Azure AI Foundry and AKS? How do you handle conflicting AI outputs, uncertainty, and reproducibility?

GitHub: https://github.com/Dendro-Inspector/Dendro-Inspector

Project subreddit: r/dendroinspectorai/


r/AISystemsEngineering • • 5h ago

How do you prevent AI agents from getting stuck in infinite tool-calling loops?

Thumbnail
reddit.com
1 Upvotes

r/AISystemsEngineering • • 8h ago

Is there a LeetCode for agent engineering ? Where do you prove you can build production AI systems?

Thumbnail reddit.com
1 Upvotes

r/AISystemsEngineering • • 1d ago

De uma observação em casa até construir um gateway de governança para LLMs baseado em Teoria de Controle (a jornada real, incluindo onde o sistema quebrou em produção)

3 Upvotes

r/AISystemsEngineering • • 1d ago

When one agent gets stuck, the rest pile on. I built a circuit breaker for that.

Thumbnail
reddit.com
2 Upvotes

r/AISystemsEngineering • • 23h ago

Can one AI leave unfinished work that another can actually use? That’s why we built Omnarai.

Thumbnail gallery
1 Upvotes

r/AISystemsEngineering • • 1d ago

Questions to Ask an AI Vendor Before Signing: A Practical Checklist

2 Upvotes

Choosing an AI development company is not just about comparing pricing or looking at impressive product demonstrations. Businesses need to understand whether a vendor can actually deliver, deploy, and maintain an AI solution that works in real-world operations.

I’m sharing this from my association with Agix Technologies, an AI systems engineering and consulting company. We've seen why evaluating the technical and business capabilities of an AI vendor is important before starting a project.

Here are six questions businesses should ask before signing an AI development agreement:

1. Have you delivered similar AI projects?

Ask for real production examples, relevant case studies, and details about how the solution performs after deployment.

2. How will you measure project success?

Discuss measurable outcomes such as workflow efficiency, accuracy, processing time, and operational costs.

3. What security measures do you follow?

Understand data protection, access controls, encryption, and compliance requirements relevant to your industry.

4. Who owns the source code and intellectual property?

Clarify ownership of custom-developed software, documentation, models, and other project deliverables.

5. What happens after deployment?

Ask about maintenance, monitoring, updates, troubleshooting, and ongoing support.

6. What will the complete project cost?

When evaluating what does it cost to hire an AI automation agency for a small business, consider development, integrations, infrastructure, licensing, maintenance, and ongoing usage costs—not just the initial quote.

For additional guidance, this resource on how to choose an AI development company discusses companies and considerations involved in selecting an AI development partner.

Question for the community: What's the one question you would always ask an AI vendor before signing a contract? Have you encountered any unexpected costs or delivery challenges?

I'd be interested to hear experiences from business owners, CTOs, developers, and procurement professionals.


r/AISystemsEngineering • • 1d ago

🏅Reverse-Engineering Challenge for Developers

Thumbnail reddit.com
2 Upvotes

r/AISystemsEngineering • • 1d ago

Stop telling LLMs who to pretend to be. Tell them what you actually expect.

Thumbnail reddit.com
1 Upvotes

Everyone is still treating system-prompt personas like some sort of cheat code for model intelligence.

“You are a principal distributed systems architect with 20 years of experience…”

Okay, and?

What exactly do you think that accomplished beyond telling the model how you want it to sound?

There’s a pretty substantial difference between getting an LLM to imitate the communication style of an experienced engineer and actually improving its ability to solve engineering problems.

I’ve been looking at the mechanics behind this, and I think people are considerably overestimating what persona prompting actually does.

1. You’re steering existing capabilities, not creating new ones.

Prepending a persona doesn’t magically update the model’s weights.

Your model isn’t suddenly acquiring 20 years of engineering experience because you told it to pretend it has them.

The parameters governing its attention mechanisms and feed-forward layers remain unchanged during ordinary inference.

There’s an interesting result from Petrov et al. (ICLR 2024) concerning relative attention invariance under specific positional-encoding assumptions. Essentially, prepending tokens can leave relative attention relationships between existing content tokens unchanged within the first layer, while changing how much attention is allocated to the prefix itself.

That’s a considerably more interesting explanation than pretending a job title unlocks some hidden intelligence.
Petrov et al. (2024), ICLR

Obviously, that doesn’t mean prompts can’t meaningfully change model behaviour. They can influence downstream activations, steer existing capabilities, change the likelihood of particular outputs and encourage the model to produce additional reasoning steps.

But there’s a difference between activating or steering existing capabilities and creating entirely new underlying capabilities.

And honestly, if you’re relying on a vague persona to accidentally encourage better reasoning, why not just explicitly tell it what reasoning and verification you expect?

2. Sounding like an expert isn’t the same as being correct.

This is where I think the entire persona meta gets particularly ridiculous.

You can tell a model it’s a senior security engineer, principal architect or Nobel Prize-winning mathematician.

It can produce an incredibly convincing response.

But where are the actual engineering invariants? Where’s the verification? Where are the benchmarks demonstrating that the output is better?

A model sounding more confident or using more sophisticated terminology doesn’t establish that its answers are more accurate.

Research by Zheng et al. (2024) examined 162 different system-prompt personas across 2,410 reasoning and knowledge questions. The reported average accuracy improvement was approximately 0.1 percentage points.
Zheng et al. (2024), EMNLP

That’s a pretty underwhelming return for something people keep treating as a fundamental improvement to intelligence.

And there’s another problem.

You’re introducing stylistic constraints into a system where the generation of style and substance aren’t independent processes.

If you force a model to be exceptionally concise, authoritative, friendly or whatever else, you’re influencing the distribution of possible outputs. Sometimes that helps. Sometimes it actively gets in the way.

I would much rather optimize for the true correct answer than an answer that sounds impressive lol. Because impressive answers are obviously the path of least resistance (think entropy), and is what we saw early on in the era.

Now unrelatedly, as new trends emerge, we systematically could be prioritizing prediction models around them to avoid harmful public perception. But explaining this and putting it into action would likely cause more harm than it’d solve (they’re trying to trick us!)

3. Your persona doesn’t magically survive an entire conversation.

Another thing people seem to overlook is that a system prompt is only one component of an increasingly complicated conversational context.

As conversations develop, you’re introducing new instructions, examples, corrections, tool outputs, stack traces and contradictory information.

The model has to continually process all of that.
A persona that worked reasonably well at the beginning doesn’t guarantee consistent behaviour twenty or so turns later.

And this is exactly why I prefer thinking about context management, explicit constraints and state preservation rather than relying on one enormous system prompt.

You need to distinguish between:
- what the model should consistently do;
- what the current task actually requires;
- what information must be preserved;
- what has already been verified;
- what needs to be reconsidered.

Those are fundamentally different responsibilities.
A static persona isn’t the most powerful way to create a substitute for managing them properly.

What actually moves the needle?

This is where I’d spend considerably more time.
Instead of telling the model to pretend it’s an expert, give it the information an expert would actually need.

For example, consider alternatives instead of the industry standard writing:
“Act as a senior security engineer and make this production-ready.”

🤮

Give it:
- the actual architecture;
- the relevant standards;
- the required deliverables;
- the security invariants;
- the failure conditions;
- the verification criteria.

Now (most of the following items are llm continuation):
- If you’re implementing password storage, say Argon2id.
- If you’re implementing distributed request handling, specify idempotency requirements.
- If you’re designing organizational responsibility, provide the actual RACI matrix.

You get the idea.

Stop making the model guess what expertise is supposed to mean. You’re likely furthering your own cognitive biases by doing so (model tells you what you want to hear)

Give it the actual problem and the information required to solve it.

TL;DR:
- Personas are useful for steering communication style, establishing context and setting expectations.
- But they’re NOT a substitute for actual reasoning methodology.

I’d much rather spend my time developing reusable workflows, explicit verification procedures, proper context management and task-specific constraints.

Knowing when to use a capability is considerably more important than telling a model to pretend it has that capability.

Drop the resume fluff in your system prompts. Tell the model what you’re actually trying to accomplish lol (assuming it has a large enough amount of a context window to handle it. Persona/role prompting potentially is a good shorthand).


r/AISystemsEngineering • • 2d ago

Every cloud now ships its own agent controls. Is that enough, or does a vendor-neutral policy layer still earn its budget?

Thumbnail reddit.com
2 Upvotes

r/AISystemsEngineering • • 2d ago

Hey everyone!

8 Upvotes

Hey everyone!

I just created this account. I want to start sharing my journey into AI engineering, particularly around building AI agents.

I'm interested in understanding how to build agents beyond simple demos: architecture, memory, tool execution, orchestration, reliability, and eventually production systems.

I'm still learning, experimenting, and figuring things out. I thought sharing the process, including mistakes and lessons learned, would be a good way to learn from the community.

Looking forward to exchanging ideas with you all!


r/AISystemsEngineering • • 2d ago

De uma observação em casa até construir um gateway de governança para LLMs baseado em Teoria de Controle (a jornada real, incluindo onde o sistema quebrou em produção)

Thumbnail reddit.com
1 Upvotes

r/AISystemsEngineering • • 2d ago

Agentic AI privacy risk: What data does one agent pass to the next?

Thumbnail
reddit.com
1 Upvotes

r/AISystemsEngineering • • 2d ago

Building AI agents that operate at the speed of human conversation is a different engineering problem.

1 Upvotes

Most AI agents have the luxury of completing a task asynchronously. Human conversations don't offer that luxury.

Intent changes. Context evolves. The window for delivering useful intelligence can disappear in seconds.

At SpikedAI, we're building around some interesting engineering challenges:

  • Continuous context understanding rather than isolated prompts.
  • Anticipatory retrieval rather than reactive search.
  • Coordinating specialized agents without introducing unnecessary latency.
  • Determining when intelligence adds value and when silence is more useful.

The challenge isn't simply generating the right answer. It's delivering relevant, trustworthy intelligence at the right moment without disrupting human thinking.

Curious how other agentic AI builders are approaching these trade-offs.


r/AISystemsEngineering • • 2d ago

How Predictive Analytics Is Helping Businesses Make Smarter Decisions

1 Upvotes

Businesses today are generating more data than ever, but collecting information is only one part of the process. The real challenge is understanding that data and using it to make better business decisions.

This is where predictive analytics becomes valuable. By combining historical data, statistical modeling, and machine learning, businesses can identify patterns, forecast future trends, and make more informed decisions.

Companies across industries are using predictive analytics for demand forecasting, customer behavior analysis, fraud detection, sales forecasting, and operational planning.

Why Are Businesses Investing in Predictive Analytics?

Predictive analytics helps organizations move beyond traditional reporting. Instead of only understanding what happened in the past, businesses can estimate what might happen next.

Some important applications include:

  • Demand Forecasting: Predicting future product demand and managing inventory more effectively.
  • Customer Insights: Understanding customer behavior and identifying potential buying patterns.
  • Fraud Detection: Identifying unusual transaction patterns and potential financial risks.
  • Predictive Maintenance: Anticipating equipment failures and reducing unexpected downtime.
  • Business Planning: Using data-driven forecasts to support strategic decisions.

What Should You Look for in a Predictive Analytics Consulting Company?

Choosing the right technology partner is an important step when implementing predictive analytics. Businesses should evaluate a company's technical capabilities, industry experience, data integration expertise, and ability to deliver scalable solutions.

A reliable predictive analytics consulting partner should understand business objectives and develop solutions that translate complex data into practical insights.

It's also important to consider whether the provider can support the complete implementation process, from data preparation and model development to deployment, monitoring, and optimization.

Exploring Predictive Analytics Companies in the USA

There are several companies in the USA offering predictive analytics development, machine learning, and data intelligence services. Each provider may have different strengths depending on its technology stack, industry expertise, and project experience.

I recently came across an industry overview covering 10 predictive analytics development companies in the USA. It provides a starting point for businesses researching potential technology partners and comparing available capabilities.

Final Thoughts

Predictive analytics is becoming an important part of modern business strategy. Organizations that use their data effectively can improve forecasting, identify potential risks, optimize operations, and make more informed decisions.

However, successful implementation depends on selecting the right technology approach and working with a partner that understands both the technical requirements and business goals.

Discussion question: Is your organization currently using predictive analytics? Which application has delivered the most value for your business—demand forecasting, fraud detection, customer analytics, or predictive maintenance?


r/AISystemsEngineering • • 2d ago

Tokens Tracking System

Thumbnail gallery
1 Upvotes

r/AISystemsEngineering • • 3d ago

SRE agent: alert → AI investigation → human-reviewed fix MR on GitLab. How to orchestrate.

Thumbnail reddit.com
3 Upvotes

r/AISystemsEngineering • • 3d ago

Every agent is a new hire. Except mine.

Thumbnail
reddit.com
2 Upvotes

r/AISystemsEngineering • • 3d ago

The trust problem to sub-agents

Thumbnail reddit.com
1 Upvotes

r/AISystemsEngineering • • 3d ago

When a Record Has No Word for "Unknown", an Empty Value Will Say "Everything Is Fine"

0 Upvotes

Something happened recently that I want to start with.

We fixed a defect: four different kinds of "nothing" were collapsed into a single switch, so the readings couldn't tell "by design" from "broken". Then we moved on to the next thing. The day after that new field landed, a reader pointed at it in a comment, named the same defect again, and wrote down what to do about it.

This isn't the same bug coming back. It's the same class of bug growing back in the place where we thought we had learned it.

This piece is about one thing: when a record has no slot for "unknown", "unknown" reads as "known" — and specifically as the strongest statement that field can make.

1. Four kinds of "nothing", one switch

Background first.

When the AI writes a record, we keep a snapshot of what it looked like before and after. Revocation needs to know where to go back to.

The trouble was in "we couldn't capture the after-snapshot". There are at least four reasons that happens:

  • no captor was wired at all — an optional piece by design
  • the entity didn't resolve, and the fallback data was empty too
  • the entity resolved but the row is gone — an anomaly
  • the capture threw — an error

The first two are what the design chose. The last two are something went wrong.

We had one boolean field for all of it. Four reasons, one switch.

So when someone asked "why are these snapshots empty", there was no answer: you couldn't tell by design from broken. The worse part is the direction. That switch defaults to false, which reads as "the snapshot is fine".

"Nothing" is not one value, it is four different values. Collapsing them into one boolean lets the strongest reading answer for all of them.

We split it into four causes, each stored and readable on its own. While splitting it we also found that two of the four names we had first proposed didn't belong in that class at all. One lives on a different path (the table consulted before the write), and the other is a mechanism rather than a cause. So the four that landed are not the four we started with.

2. The next day, in the field we had just written

With that fixed, we moved to the next thing: before a revoke, record which members this attempt intends to compare.

The promise matters here. Before the revoke it's a promise; after it, an actual. Only the difference between them lets you say "a member I promised to compare turned out not to be comparable". The implementation put a column on the group's root row to hold that difference. If this attempt found no difference, the column is written empty.

That looked fine. Then someone wrote this in a comment:

A per-reason column sits on the member row and gets rewritten by whichever revoke attempt ran last, so a second attempt erases the first attempt's broken promise. Append-only keeps them apart.

He's right, and it's slightly worse than he put it.

When the attempt finds no difference, that column is written empty. And that empty means two things at once: "the last comparison found no difference", and "this row was never revoked at all". So:

  • the first revoke found "promised, but couldn't compare" — recorded
  • the second revoke went fine — and wrote over the first attempt's record with an empty value
  • reading that row later: empty. You can't tell "there was once a broken promise", and you can't tell "it was cleared"

A retry that succeeds erases the earlier attempt's failure record.

To be fair to ourselves: that clearing is deliberate. The reasoning is in the design record from when it landed — a stale difference shouldn't outlive the comparison that produced it. The reasoning isn't wrong. What's wrong is that the empty value had no second meaning available.

Then we changed it to what he described.

One row per attempt that reached the comparison, instead of one shared cell. The two readings are separated where they are written: this row is either "a difference was found" or "checked, and there was none". So:

  • a later attempt no longer erases an earlier one — it writes its own row
  • an empty history (no attempt ever reached the comparison) and "checked, clean" are no longer the same reading
  • the old rule — a stale difference shouldn't outlive the comparison that produced it — was withdrawn. It was wrong about using one cell for two things, not about keeping old records

The old column wasn't dropped. It's still read, as a legacy entry marked "written at a time we can't know". Deleting it would erase exactly the evidence this whole argument was about.

3. One place in the same system got it right

Both of the above are "no slot for unknown". But one place in the same system does have a slot.

When a revoke goes out to an external system, all we can do is send the request; the terminal state is on their side. Their 2xx only proves the request arrived, not that they undid anything. So that row doesn't write "revoked". It writes "compensation requested, outcome unknown" — a dedicated reading.

The effect is immediate: nobody misreads it as done. The interface says plainly that the result is with the target system. No gloss needed.

So this isn't impossible. It's a question of whether you noticed that "unknown" needed a slot. Give it one and it stays put. Don't, and it falls into the strongest reading available.

4. Why it's hard

It's hard because the default is silent.

Every field decides for you, and it always picks the cheapest reading:

  • a null value reads as "no such item"
  • an empty collection reads as "no difference"
  • false reads as "not marked", and from there as "fine"

Those readings are correct almost every time. The problem is the rest: when "nothing" and "unknown" share a value, you have a field that lies — and it stays quiet while doing it, until somebody acts on it and gets "everything is fine" on your behalf.

Worse: fixing one instance doesn't remove the class — including while fixing it.

Here's something that happened inside that fix. Once "no difference" had its own reading, there was still a function whose empty return meant two things: everything really was compared, and there was nothing to promise in the first place (with no captor wired, "compare" isn't defined). Writing "checked, clean" is right for the first. Writing it for the second would vouch for a check that never ran.

We nearly did. What we changed it to: nothing was promised, so no row is written.

That's why the entry points for this class are every "nothing" there is. Fix one, and it waits for you in the line of code where you write the fix.

5. A check you can run yourself

Don't start with "is my record complete". Start with something more basic:

List every value in your system that means "none / unknown / empty", and ask of each: what does it read as?

Anything that carries two meanings at once is a potential misreport. Three common shapes:

ShapeIt also means
a null value"no such item" / "looked, found none" / "never looked"
an empty collection"genuinely none" / "couldn't read it out"
false / a default"not marked" / "marked as no"

The test is simple: when this value is empty, can a reader still say why it's empty? If not, the field is guessing on their behalf.

Closing

This kind of problem is hard to find because it doesn't throw. The system runs, the interface renders, and one cell quietly says something untrue.

And the place it shows up most is the place you just fixed — because that's when you're busy already knowing how to do it.

Where we stand: we know the pattern now, and we've fixed two instances — the second one's shape came from the reader. We have not done a systematic pass: how many of those three shapes are in our record layer, and what each one reads as, is not a list we have.

So this one doesn't close on a conclusion. Run the check against your own system and you'll likely find a few. On our side, we only know we haven't finished looking.

Drafted with an AI assistant. The system, the positions and the mistakes are mine.


r/AISystemsEngineering • • 3d ago

AI Audit Evidence, Part 11: Written Down Is Not the Same as Enforced

Thumbnail
reddit.com
1 Upvotes

r/AISystemsEngineering • • 4d ago

Why running an AI agent test once is mathematically meaningless

1 Upvotes

If you test traditional software once and the assertion passes, it passes. If you test an AI agent once and it passes, you have learned almost nothing.

On a 1/1 green test run, the 95% Wilson confidence lower bound is just 20.7%. A workflow that fails 30% of the time in production still passes on the first try 7 times out of 10.

And in multi-step agents, a single "green" output often hides real production bugs:

  1. Two orders, one intent: A write tool times out on the client after the server already processed it. The agent sees no error, retries, and silently creates a duplicate order.
  2. 200 OK with an empty [] payload: A lookup tool swallows an upstream error and returns []. The agent treats "no error" as "done" and writes a confident answer built on nothing.
  3. Activity without progress: An agent loops through tool calls for hours without changing the actual goal state—every step counter says it's working while burning tokens.
  4. Silent reasoning exhaustion: A reasoning model burns its entire token budget thinking and returns empty text (finish_reason: "length"), looking like a provider outage.

When teams ship agents with tool calls, a single-run final-text check misses all four:

  • Blocker gates (write idempotency + read-back, explicit ok | empty | error | unknown tool statuses, Zod schemas) need 100% deterministic passes on every PR.
  • Capability gates need multi-run sampling (N ≥ 3 to 5) gated on the 95% Wilson lower bound, not a lucky 1/1 pass.

How is your team currently deciding whether an agent change is "good enough" to deploy?

Are you asserting on the tool trajectory and running multi-sample evals in CI, or still relying on local vibe checks?

Thanks in advance for any hints and best practices. Much appreciated.


r/AISystemsEngineering • • 4d ago

How would you test whether an AI learned the right lesson from a mistake?

Thumbnail reddit.com
1 Upvotes

I’m working on this question at Ontal, and the part I keep getting stuck on is that a system can fix its mistake for a surprisingly bad reason.
Say an AI books a piece of shared equipment because the calendar shows it’s free. It turns out there’s a maintenance hold on a separate list. Next time, it checks the list first and catches the hold. That looks promising. But “check every list every time” would get that one right too.
I’d like to start two copies of the system at the same point, let one experience the booking mistake, then give both a few unfamiliar cases. In one, the calendar leaves out holds. In another, the calendar already includes them. I’d want to see whether the earlier mistake helps the system figure out when that extra check is worth doing.
Someday I’d love to open-source a small version of this so other people can change the cases and try to break the test. If you could add one case that would expose a system using a shortcut, what would you put in it?


r/AISystemsEngineering • • 4d ago

Does explicitly preparing an AI coding agent's context before implementation improve its performance?

Thumbnail reddit.com
1 Upvotes