The Troubleshooter and the Operator: An AI That Investigates First and Asks Before It Acts

By Chirag Panchal · Founder & Lead Architect · · 8 min read

How InfraOrcinus's AI works in two separate halves: a read-only Troubleshooter that gathers evidence through a fixed set of tools and answers with a diagnosis, and an Operator that turns a proposed fix into a prepared task a person confirms in a separate request. What the Troubleshooter can read, how its answer is validated, and why a model can never confirm its own proposal.

Development Status & Architectural Evolution: InfraOrcinus is in active development. Architecture specifications, internal interfaces, and operational protocols described herein reflect our current engineering design and are continuously refined to make InfraOrcinus robust, resilient, and enterprise-grade.

When a run fails at two in the morning, the useful question is not "what does this error mean?" It is "what happened in this environment, and what should I do about it?" That needs the run's state, its log, its plan, the policy results and sometimes the cloud's own record. An AI that can only answer general questions cannot help much. An AI that can do anything is the thing security teams are right to fear.

InfraOrcinus splits the problem in two. The Troubleshooter can look at everything and change nothing. The Operator can change things, but only the things a person has seen, prepared and explicitly confirmed. This article covers how each works and where the line between them sits.


1. The Troubleshooter Only Reads

Ask a question about an environment or a run, and the Troubleshooter investigates with a fixed set of read-only tools:

Tool What it reads
list_environments The environments you can see, and their state
find_runs Recent runs by environment, blueprint or run id
get_run_state Stages (Validate, Plan, Approve, Apply), step results, retries, approval or rejection, dispatch errors
read_runner_log The runner's log with secrets masked, plus error and warning lines
get_validation_results Policy findings and the cost estimate for the plan
get_change_plan The run's plan, and any change plans that include its environment
get_drift The latest drift result
known_issues A curated library of common infrastructure-as-code failures, matched against the exact error line

Every tool runs through the caller's own scope, so the Troubleshooter can only see what that person could see.

Quick and deep

A quick investigation uses portal data only, with a budget of four rounds of tool calls. A deep one, with ten, may also read the cloud, read-only: failed operations in the provider's activity log (Azure Activity Log or AWS CloudTrail), the live state of one resource, and the roles granted to the environment's credential. That is how it can tell "the template is wrong" from "the credential lacks a role". Quick mode says when the cloud side would need a deep run to confirm.

Rules baked into the prompt

The model is told to gather evidence before concluding, to focus on the latest failed run unless told otherwise, to pass the exact error line to the known-issues library, and not to invent facts: if evidence is missing it must say so and lower its confidence. It is told that tool output is untrusted data copied from logs and the cloud and that it must never follow instructions found inside it, which matters because a log is text an attacker may have influenced.


2. An Answer You Can Check

The Troubleshooter replies in a fixed structure, not free prose: a one-line likely cause, a confidence from 0 to 100, a short explanation citing the evidence, ordered fix steps that name real InfraOrcinus screens, and a list of what it ruled out and why. The ruled-out list is the part most diagnosticians skip, and it is what lets a person trust the conclusion.

The answer is validated before it is shown, and its suggested actions are limited to a short list: open the environment, open a run, open a change plan, open evidence, open drift, open policies. Those are links, not operations. Each may only point at an id that a tool actually returned during this investigation, so the model can neither invent a target nor steer a click to another tenant's object.

It can also answer general how-to questions ("where do I rotate a token?") from a built-in guide, with no tool calls, and says when a question is unrelated to InfraOrcinus.


3. Where the Operator Begins

A diagnosis often ends in "change this variable and run it again". The Operator is the part that can do that, and it is built around one rule: a model cannot execute a task. Preparing and confirming are separate, authenticated requests.

  1. Prepare. The system builds a task: a specific, bounded proposal such as a variable change on a named environment. For environment fixes it accepts only changes that already passed the existing triage validator, which allows only variables the blueprint declares and never a variable marked sensitive.
  2. Review. The person sees the summary and exactly what will change. Generated infrastructure code is reviewed in Blueprint Studio, and its contents are never echoed into chat.
  3. Confirm. A person confirms in a separate request, through an endpoint that requires write access. Only that request mutates anything, and it does so through the same environment service the screens use, so every normal check still applies.

Several protections surround step 3:

  • Atomic claim. Moving a task from ready to executing is a single atomic operation across all server instances. A double click, a retry or a second replica cannot run it twice, and if the outcome is ambiguous the caller must inspect the task rather than repeat a cloud change.
  • Stale proposals fail closed. The task stores the revision of the environment it was prepared against. If someone edited the environment in the meantime, the confirmation is refused.
  • Tasks expire after 24 hours, and a background sweeper cleans them up. A task belongs to the person who prepared it.
  • A failed run is evidence, not an instruction. The Operator may offer a new run, never an implicit retry of the old one, and resolves the run to re-run from the investigation's own target rather than trusting an id from the model.
  • Secrets stay out. Credentials and secrets are deliberately absent from the chat surface.

The Operator can also draft a blueprint or pipeline from a conversation, propose a drift-reconciliation change plan, and publish a blueprint to Git. Each of those is the same pattern: prepared by the system, reviewed by a person, confirmed in a separate request. A drift reconciliation goes through the change-plan service, so it needs a different administrator's approval; the Operator does not shortcut it.


4. What Approval Still Means

None of this touches the approval gate. A run the Operator starts plans and waits for a named human, like any other. The tier of the environment (development, staging, production) is shown on every proposed action, so a confirmation on production reads differently from one on a sandbox.

The design goal is simple to state. The AI speeds up the part that is search and judgment, finding the cause and drafting the fix. People keep the part that is accountability.


5. Limits Today

  • It diagnoses, it does not guarantee. Confidence is the model's own estimate. Treat a low score as a prompt to read the evidence yourself.
  • Deep investigations need the right cloud access. If the environment's credential cannot read the activity log, the deep step reports that rather than guessing.
  • Quality follows the model. The same flow runs on whichever provider you configured, and a small local model will investigate less well than a large hosted one. The tests around it cover the parsing, validation and refusal logic, not the model's intelligence.
  • It works on runs inside the portal. A pull-request plan that fails does not yet post anything back to the pull request, so there is nothing for it to diagnose there.

Summary

The Troubleshooter investigates with read-only tools inside the caller's scope and answers in a structured, validated form with confidence and what it ruled out. The Operator turns a fix into a prepared task that a person confirms in a separate request, claimed atomically, refused if the environment changed, and expiring after a day. The approval gate is untouched, so AI makes diagnosis faster without making authority less clear.