Skills and agentic planning: how to constrain what an agent can do
The eight-part skill contract, three levels of autonomy, the plan as a recorded artefact, and the four-layer stack that makes behaviour predictable.
In short. A skill is a declared procedure: it states what gets done, with which tools, within which limits and under what exit condition. Agentic planning is the step where a system breaks an objective into steps and decides their order. Leaving planning free produces convincing demos and systems that take unexpected routes in production. Constraining it to the available skills reduces the space of possible actions to the one somebody authorised.
This article sets out how a skill is written, when it pays to let the model plan and when the sequence has to be fixed, and what it takes to verify afterwards what actually happened.
Three levels of autonomy
| Level | Who decides the sequence | Where it fits |
|---|---|---|
| Fixed flow | Written by a person, the model executes individual steps | Known processes, high volume, costly errors |
| Constrained planning | The model picks among declared skills, in a permitted order | Cases with variants, defined scope |
| Free planning | The model generates the steps and picks the tools | Exploration, one-off work, isolated environments |
Almost all enterprise value sits in the first two rows, because those are where the set of possible actions is known in advance and somebody approved it. The third produces the most spectacular demo results and carries behaviour nobody can predict or document before release.
The choice isn't ideological, it follows the cost of error. Where a wrong step produces a message to a customer or a write to a core system, the action space gets closed.
These three levels describe how much freedom an agent has in deciding the sequence of steps, and they apply to processes a company has chosen to take to the AI-native level on the map of delegation levels, where the upstream question is who produces the output and who checks it.
The skill contract
A useful skill is described as a contract, with the same parts as a technical interface.
| Part | Content |
|---|---|
| Purpose | The result it produces, in one verifiable sentence |
| Preconditions | What must be true for it to start |
| Input | The data required, with format and provenance |
| Permitted tools | Which connectors and which operations it may use |
| Limits | Volumes, amounts, time ranges, systems it may not write to |
| Output | What it returns, in what structure |
| Exit criteria | When the task is complete |
| Escalation | What it does when preconditions fail or confidence drops |
The last two rows go missing most often. Without exit criteria an agent keeps trying, burning resources and leaving partial attempts on real systems. Without escalation, a case outside scope gets treated like one inside it.
One property is worth looking for in the writing. A well-written skill is readable by a person who knows the process and not the technology, because that person is the one who has to approve it.
Recording the plan before executing it
When a system plans, the plan is itself an artefact, and belongs treated as one.
The generated plan gets saved before execution, with the steps, the chosen skills, the parameters and the reason for selection where available. During execution, what was actually run gets recorded, along with deviations from the original plan. At the end, the outcome of each step is kept.
That record has two concrete uses. It makes it possible to understand why a case went wrong, separating a planning error from an execution error. It makes it possible to replay the same plan in a test environment, which is the cheapest way to check the effect of a model update.
Without the recorded plan, anomalous behaviour can only be narrated, and in control functions a narration isn't evidence.
The four-layer stack
The four components covered in this series stack up, and each answers a different question.
| Layer | Question it answers | Nature |
|---|---|---|
| Ontology | Which object are we talking about | Declarative, versioned |
| Connectors and retrieval | Where the information comes from | Deterministic for the first, probabilistic for the second |
| Skills | Which procedures are permitted, within which limits | Declarative, approved |
| Planning | In which order to run them in this case | Probabilistic, constrained by the layers below |
Read from the bottom, the stack says something simple: the more explicit the lower layers, the less work remains for the probabilistic layer on top, and the more predictable the overall behaviour becomes.
Read from the top, it explains why many agentic projects fail without a visible error. Planning gets built on layers that don't exist, so the model has to invent the identity of objects, the provenance of data and the limits of actions, and it invents them differently every time.
Which framework does your company actually need?
AI Rating measures maturity across the four areas of the model and shows where to start, with priorities and estimated effort.
Start your AI RatingHow an agent is evaluated before release
Evaluation takes three levels, and skipping one leaves a class of errors uncovered.
It starts with testing individual skills, with known cases and expected results, run at every release as an ordinary automated suite. That is the simplest part and the only one resembling conventional development work.
Next comes verification on plans, built on a set of real scenarios collected from the process, measuring three things: how often the system picks the correct sequence, how often it picks a different but acceptable one, and how often it steps outside the perimeter of authorised skills. The last category counts as blocking, because it describes a system doing things nobody approved.
Last comes observation in production over a subset of cases, with human approval on every action that writes to a system, and this phase exists to surface situations nobody anticipated at design time. It runs until the rate of human intervention settles at a level the organisation considers acceptable.
A note on timing: the second level is the one organisations skip most often, because it requires collecting real scenarios with their correct outcome, and that work looks like documentation rather than development.
Governing skills over time
Skills are versioned objects, with an owner and a change process.
It has to be clear who approves a new skill and who approves a change to its limits, because raising an amount threshold or adding a system it may write to changes the risk profile of the whole system. A register is needed saying which version was live on a given date, so a case can be reconstructed. A periodic review is needed to retire unused skills, because every live skill is an open surface for action.
When the agent operates inside a high-risk use case, this apparatus feeds the documentation required by the AI Act, alongside the human oversight criteria. Outside that perimeter it remains the condition that makes the agent governable.
The errors that recur
The first is putting the rules into natural-language instructions. A limit written in a prompt is a polite request, a limit enforced by the system exposing the tool is a constraint.
The second is giving an agent broadly permissioned tools because it was quicker. Least privilege per skill is more work upfront and shrinks the radius of any later error.
The third is evaluating an agent on the final result alone. Two different plans can produce the same outcome, and one of them may have touched systems it shouldn't, so evaluation looks at the path alongside the result.
The fourth is leaving planning free after the prototype. The exploratory phase exists to discover which sequences work, and those sequences then belong written as flows, otherwise the production system repeats the discovery on every run.
Where to start
The basic rule on what to leave to the model and what to the rules is in probabilistic and deterministic.
The channel the data arrives through is covered in RAG and connectors, and the layer defining the objects acted upon is in enterprise ontology.
On governing agents, with an inventory and a named owner, see no agent goes to production without an owner.
To define the skills and limits of your first agents you can book an assessment session.