keepcalculator

06 Numbers and Powers

Human-in-the-Loop Infrastructure Automation Explained

Card No. 06·55456 · Updated · Standard formula, shown below

The calculator on this card is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

Human-in-the-loop (HITL) infrastructure automation is an approach where automated systems handle routine or repetitive tasks in IT infrastructure management, but a human reviews, approves, or intervenes at critical decision points. You enter your automation policies and approval thresholds, and the system executes the routine work while flagging high-risk or ambiguous changes for your review. The result is a balance between the speed of automation and the judgment of a human operator.

Formula

The calculator above uses a simple decision rule to determine whether a given infrastructure change requires human review. The formula is:

Human review needed = YES if risk score ≥ 7, otherwise NO

Where:

  • Risk score (r) is a number from 1 to 10 that you assign to a change based on its potential impact (1 = trivial, 10 = catastrophic).
  • Approval threshold (t) is the maximum time you are willing to wait for human approval before the change is auto-approved (not used in the decision above, but included as a parameter for context).

This is a simplified model. In real systems, the decision is often based on multiple factors, such as the type of change, the affected systems, the time of day, and the change’s blast radius.

Worked Example

Using the default values from the calculator: risk score = 7, approval threshold = 24 hours.

  1. Risk score is 7.
  2. Since 7 ≥ 7, the decision is “Yes, human review needed.”
  3. The risk label is “High”.

So, with these defaults, the change is flagged for human review. If you set the risk score to 6, the decision would be “No” and the risk label would be “Medium”.

Background: Why HITL Emerged

Infrastructure automation has evolved from simple scripting to complex orchestration platforms that can provision servers, deploy code, and manage networks with little or no human input. However, fully autonomous automation carries risks: a misconfigured firewall rule or a bad deployment can take down an entire service. HITL emerged as a middle ground, where automation handles the bulk of work but escalates high-stakes decisions to humans. This approach is common in DevOps, IT operations, and cloud management, where the cost of a mistake is high.

How HITL Infrastructure Automation Works

In practice, HITL systems operate on a workflow that includes several stages:

  • Detection: The system monitors infrastructure and detects events that require action (e.g., a server is at 90% CPU).
  • Classification: It assigns a risk score to the event based on predefined rules (e.g., scaling a production database is high risk, adding a test instance is low).
  • Execution: For low-risk actions, the system proceeds automatically. For high-risk ones, it creates a ticket or notification and waits for approval.
  • Review: A human operator reviews the proposed change, the context, and the potential impact, then approves or rejects it.
  • Learning: Some systems adjust their risk models based on past approvals or rejections, though this is still an emerging area.

For example, a cloud orchestration tool might automatically scale a web server cluster when traffic spikes (low risk), but require human approval before changing a security group rule that affects external access (high risk).

How to Choose a HITL Strategy

Selecting the right level of human involvement depends on your organization’s risk tolerance, team size, and the criticality of your systems. Consider these factors:

  • Risk tolerance: If a mistake could cause a major outage or data breach, err on the side of more human checkpoints.
  • Team workload: If your team is small, too many approval gates will cause bottlenecks. Automate more low-risk tasks.
  • Regulatory requirements: Some industries require human sign-off on certain changes (e.g., financial services).
  • Speed vs. safety: For non-critical systems, you may allow auto-approval after a timeout (e.g., if no one reviews in 24 hours, proceed).

A common misconception is that HITL means “manual” – but in reality, it’s a spectrum. You can tune the threshold so that 90% of changes are automatic and only 10% require human review.

Common Problems and Misconceptions

One frequent issue is “alert fatigue” – if the system flags too many changes, operators start ignoring them. This defeats the purpose of HITL. To avoid this, you must set your risk thresholds carefully and ensure alerts are actionable. Another problem is the “human bottleneck” – if a critical change waits for approval and the approver is on vacation, the system stalls. This is why many HITL systems include an escalation path or a timeout that auto-approves after a set period (though this can be dangerous).

A common misconception is that HITL is only for large enterprises. In fact, even a small startup can benefit from a simple approval step for production deployments. Another misconception is that HITL is the same as “human-on-the-loop”, where a human monitors but does not approve each action. HITL implies direct involvement in the decision, while human-on-the-loop is more supervisory.

Comparison: HITL vs. Full Automation vs. Manual

To understand HITL, it helps to compare it with the alternatives:

  • Full automation: The system acts on its own. Pros: speed, consistency. Cons: risk of cascading failures, no context awareness.
  • Manual operations: Every change is done by a human. Pros: maximum control. Cons: slow, error-prone, doesn’t scale.
  • HITL: Automation does the routine, humans do the judgment calls. Pros: balance of speed and safety. Cons: can be complex to implement, requires trust in the risk classification.

In practice, many organizations start with manual, then move to HITL, and only consider full automation for very stable, low-risk processes.

Costs and Benefits

Implementing HITL has both direct and indirect costs. Direct costs include the development time to build the approval workflows and the ongoing time humans spend reviewing changes. Indirect costs include the risk of human error in approvals and the potential for delays. However, the benefits often outweigh these: reduced downtime from bad changes, better compliance, and improved team morale (since humans are not doing repetitive work).

To estimate the cost, you can use the calculator above: if you know your average risk score and your approval threshold, you can gauge how many changes will need human review. For example, if you have 100 changes per week and 30% have a risk score of 7 or higher, you’ll need 30 human reviews per week. At 10 minutes each, that’s 5 hours of human time per week.

Safety and Best Practices

When implementing HITL, safety should be your top priority. Here are some best practices:

  • Define clear risk criteria: Document what makes a change high-risk (e.g., affects production, involves data deletion, changes security settings).
  • Set a maximum approval time: Decide what happens if no one approves within a certain time – deny, auto-approve, or escalate.
  • Log all decisions: Keep an audit trail of what was approved, rejected, and why. This helps with compliance and learning.
  • Test your thresholds: Start with a conservative threshold (e.g., risk ≥ 8) and gradually lower it as you gain confidence.
  • Have a rollback plan: Even with human approval, changes can fail. Ensure you can quickly revert.

Remember, HITL is not a one-time setup – it requires ongoing tuning as your infrastructure and team change.

Frequently Asked Questions

What is the difference between human-in-the-loop and human-on-the-loop?

Human-in-the-loop means a human is directly involved in the decision-making process for each action (e.g., approving a change). Human-on-the-loop means a human supervises the system at a higher level, only intervening when something unusual happens. HITL is more granular and is used for high-risk actions, while human-on-the-loop is more about monitoring and setting policies.

How do I decide what risk score to assign to a change?

Start by evaluating the potential impact of a change: how many users will be affected, what is the chance of failure, and what is the cost of downtime? You can create a simple matrix: low impact (1-3), medium (4-6), high (7-10). For example, restarting a non-critical service might be a 2, while changing a firewall rule on a production network might be an 8. Adjust your thresholds based on your team’s comfort level.

Can HITL automation work for small teams?

Yes, but you need to be careful not to create too many approval steps. For a small team, focus on the top 10% of changes that are truly high-risk and automate the rest. You can also set a timeout so that if no one approves within a few hours, the change is automatically rejected (or escalated to a manager).

What happens if a human approves a bad change?

That is always a risk. To mitigate it, you should have a robust rollback plan and monitoring in place. Also, consider requiring two approvals for extremely high-risk changes (risk 9-10). Finally, after an incident, review what happened and adjust your risk criteria to prevent similar mistakes in the future.

Is HITL the same as “approval workflows” in CI/CD?

Approval workflows in CI/CD are a specific example of HITL. They allow a human to approve a deployment before it goes to production. However, HITL is broader – it can apply to any infrastructure change, not just software deployments, such as scaling, configuration changes, or network updates.

Related

Formula used
in t | Approval threshold (hours) | h | 24 | 1 | 168
in r | Risk score of change (1-10) | - | 7 | 1 | 10
out decision | Human review needed? | - | if(r >= 7, "Yes", "No") | 0
out risk_label | Risk level | - | if(r >= 7, "High", if(r >= 4, "Medium", "Low")) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →