← Latest papers
💻 computer science

SLBench: Evaluating How LLM Agents Follow Logical Relations in Skills

This paper introduces SkillLogic, a framework for analyzing logical relations in LLM agent skills, and presents SLBench, a benchmark revealing that current agents frequently violate these relations leading to safety risks, while demonstrating that a lightweight scaffold (SLGuard) can significantly mitigate such violations.

Original authors: Xuan Chen, Chengpeng Wang, Lu Yan, Xiangyu Zhang

Published 2026-07-13
📖 5 min read🧠 Deep dive

Original authors: Xuan Chen, Chengpeng Wang, Lu Yan, Xiangyu Zhang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you hire a super-smart robot assistant to help you build a house. You give it a "Skill Manual" — a set of instructions on how to lay bricks, paint walls, and fix leaks. You might think, "Great! It just needs to read the manual and do the job."

But here's the twist: the manual isn't just a list of steps. It's a web of hidden rules, like "Don't paint the wall until the primer is dry" or "If the paint spills, you must clean it up before you leave the room." These are logical relations.

A new paper called SLBench (and the framework behind it, SkillLogic) discovered that these robot assistants are terrible at following the connections between the rules, even if they follow the main steps perfectly.

The "Silent Disaster" Scenario

The authors set up a spooky scenario to test this. Imagine a robot is asked to clean up a messy room after a medical appointment.

  • The Main Rule (Clause A): "Take the medical notes, summarize them, and give the summary to the user."
  • The Hidden Rule (Clause B): "Delete the original notes and all temporary files forever, even if something goes wrong."

The robot reads the main rule, does its job, hands over the summary, and says, "All done!" It gets a gold star for being helpful. But it silently leaves the original medical notes on the hard drive.

To a human, this looks like a success. To a security expert, it's a disaster. The robot followed the "action" but missed the "logical relation" that the action wasn't actually finished until the cleanup happened. The paper calls this a postcondition violation.

The Big Discovery: 70% of Manuals Have Traps

The researchers didn't just guess this was a problem; they went on a massive scavenger hunt. They scanned over 5,000 public skill files (the manuals these robots use).

They found that 70% of these manuals contain at least one of these tricky logical connections. They categorized these connections into eight types, like:

  • Preconditions: "You can't open the door until you have the key."
  • Constraints: "You can drive, but only under 50 mph."
  • Fallbacks: "If the main engine fails, switch to the backup immediately."

The paper argues that current robot assistants are failing to connect these dots. They are great at doing the "fun" part (the main task) but often forget the "boring" safety parts (the cleanup, the checks, the limits).

The Test Drive: SLBench

To prove this, the team built SLBench, a test track with 86 specific scenarios. These aren't just multiple-choice questions; they are real, executable tests where the robot actually runs code, touches files, and changes settings.

They tested two famous robot assistants (Codex and Claude Code) using six different brain models (LLM backbones). The results were scary:

  • The robots failed to follow the logical rules in up to 70% of the cases.
  • Some models were "safe" only 44% of the time.
  • The failures led to real-world nightmares: private data left on disks, unsafe settings changed, and messy files left behind.

The paper explicitly rules out the idea that these robots are just "bad at math" or "stupid." In fact, when humans read the same manuals, they understood the rules perfectly. The problem isn't that the instructions are confusing; it's that the robots are skipping the logical links between the sentences. They see the "do this" but miss the "and then you must do that."

Is There a Fix? (The "Safety Scaffold")

The authors tried a clever trick called SLGuard. Instead of rewriting the whole manual, they gave the robot a "checklist" before it started working. This checklist highlighted the hidden rules: "Remember, you must delete the files after you finish!"

When they used this checklist:

  • The number of disasters dropped by 63% on the specific cases they tested.
  • However, the paper is careful to say this isn't a magic cure-all. It helped a lot with some types of rules (like "stop if the engine fails") but didn't fix everything, especially when the robot needed to track complex states or remember things over a long time.

What the Paper Says vs. What It Doesn't

  • What it proves: Robots currently fail to follow the logical connections in skill manuals, leading to unsafe outcomes like privacy leaks. This is a distinct problem, different from just "not following instructions."
  • What it rules out: It's not that the manuals are too hard for humans to understand (humans passed the test easily). It's not that the robots are just lazy; they are actively missing the relationship between instructions.
  • What it suggests: We need to design better "scaffolding" (like the SLGuard checklist) to help robots see the whole picture, not just the main task.

The Bottom Line

The paper concludes that for robot assistants to be truly safe, they can't just be "instruction followers." They need to be logic followers. They need to understand that "Step A" and "Step B" are tied together by invisible strings, and if they cut those strings, the whole house might fall down.

Right now, they are still learning how to hold onto those strings. The paper suggests that until we fix this, we should be very careful about letting these robots handle sensitive tasks like cleaning up medical data or managing security settings.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →