← Latest papers
🤖 AI

SKILL.nb: Selective Formalization and Gated Execution for Durable Agent Workflows

SKILL.nb is a framework that enhances the durability and reliability of reusable AI agent workflows by employing selective formalization and gated execution within auditable notebooks, allowing dynamic adaptation to environmental drift while achieving superior performance and stability across diverse web automation benchmarks.

Original authors: Amine El Hattami, Nicolas Chapados, Christopher Pal

Published 2026-06-09
📖 5 min read🧠 Deep dive

Original authors: Amine El Hattami, Nicolas Chapados, Christopher Pal

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 are teaching a robot assistant how to do a complex job, like booking a flight or managing a project on a website. In the past, if the robot learned a trick that worked once, we might just save that trick and hope it works forever. But websites change. Buttons move, menus disappear, and layouts shift. If the robot tries to use an old trick on a new website, it often crashes or gets stuck.

This paper introduces SKILL.nb, a new way to manage these robot "tricks" so they don't break when the world changes. Think of it as a smart, self-updating recipe book that knows exactly when to follow a strict set of instructions and when to be flexible.

Here is how it works, using simple analogies:

1. The Problem: The "Set-and-Forget" Trap

Imagine you write down a recipe for a cake. It works perfectly today. But next week, the store changes the brand of flour, and the oven temperature is slightly different. If you blindly follow the old recipe, the cake might burn.

Current AI agents are like that. They learn a workflow (a series of steps) to do a task. If the website changes (the "flour brand"), the agent fails. Existing systems try to fix this by just re-reading the old instructions, but they don't have a good way to decide which parts of the recipe are still valid and which parts need to be rewritten.

2. The Solution: The "Smart Notebook" (SKILL.nb)

The authors created a system called SKILL.nb. Instead of just saving a text file with instructions, they save a living, versioned notebook (like a digital lab journal).

This notebook has three special features:

  • Selective Formalization (The "Hardening" Choice):
    Imagine you are teaching a robot to click a button.

    • The Flexible Part: Some steps are written in plain English (e.g., "Find the login button"). This is flexible. If the button moves, the robot can still look for it using its eyes (AI vision).
    • The Hardened Part: Other steps are turned into strict computer code (e.g., "Click element ID #login-btn"). This is fast and precise, but brittle. If the ID changes, the code breaks.
    • The Magic: SKILL.nb decides which steps should be strict code and which should remain flexible English. It learns this by watching what happens. If a code step keeps breaking, the system automatically "downgrades" it back to flexible English so the robot can adapt. If an English step is very stable, it "upgrades" it to code for speed.
  • The "Gatekeeper" (Gated Execution):
    Before the robot takes a step, it checks a Gate.

    • Think of a gate like a security guard at a club. The robot tries to run the strict code. The guard checks: "Is the button still in the same spot? Is the page loaded?"
    • If the gate opens: The robot runs the fast code.
    • If the gate closes: The robot doesn't crash. It immediately switches to the "Plan B" (the flexible English instruction) to try a different approach.
    • This prevents the "all-or-nothing" failure where one small change stops the whole process.
  • The "Audit Trail" (Evidence-Based):
    Every time the robot tries a step, the notebook records the result: a screenshot, an error message, or a success log.

    • If a step fails often, the notebook sees the evidence and says, "Okay, this specific code is too fragile. Let's stop using it and go back to the flexible instructions."
    • It keeps a history of what worked, what broke, and why, so the robot learns from its mistakes without needing a human to fix it every time.

3. Real-World Results: The "GitLab Migration" Test

The researchers tested this on a real-world scenario: migrating tasks from an old version of a software platform (GitLab 15) to newer versions (GitLab 16 and 18). These versions had different layouts and buttons.

  • The Old Way: Other AI systems tried to use their old "memories" (the old recipes) on the new websites. They failed miserably because they were stuck on the old layout. Their success rate dropped by about 10–14 points.
  • The SKILL.nb Way: Because SKILL.nb had the "Gatekeepers" and the "Flexible/Strict" switch, it realized the old code didn't fit the new website. It automatically fell back to the flexible instructions.
    • Result: It kept its success rate almost exactly the same, even on the brand-new, changed websites. It didn't need to relearn everything from scratch; it just adjusted its strategy.

4. Why This Matters

The paper argues that for AI agents to be truly useful in the long run, we can't just treat their memories as static files. We need to treat them as managed artifacts.

  • Lifecycle Management: Just like software engineers manage code updates, SKILL.nb manages the "lifecycle" of an agent's skills. It knows when to promote a skill (make it strict code), when to demote it (make it flexible), and when to retire it (throw it away because it's too broken).
  • Reliability: It makes agents more durable. They don't just succeed once; they keep succeeding even when the environment changes.

In short: SKILL.nb is a framework that gives AI agents a "self-correcting" recipe book. It knows when to follow a strict script and when to improvise, ensuring the robot keeps working even when the world around it changes.

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 →