Skip to main content
0 reactions

Fixed: Rasa Mantle Sub-skill Tries to Do the Parent Skill’s Job

Featured card for Fixed: Rasa Mantle Sub-skill Tries to Do the Parent Skill’s Job. A chat window shows the customer saying Riverton Station, please, a wrong reply marked with a dashed outline, “We’re open Monday to Saturday.”, asked by Find a Branch, and the right reply, “Loan advisers work Monday to Friday.”, with a tick. Chips read Seen on Rasa Pro 3.22 and Fix: one sentence in the sub-skill.
Fixed: Rasa Mantle Sub-skill Tries to Do the Parent Skill’s Job

In Rasa Pro’s Mantle engine, a skill can hand one of its steps to another skill with @skill, and the other skill is meant to hand back when it’s done. Mine didn’t: the sub-skill saved the customer’s branch, then asked the parent skill’s next question itself, with the wrong days, and Rasa answered one of its calls with “’book_appointment’ is paused under ‘find_branch’. Not saved: branch, day, topic. Record these values once ‘book_appointment’ is running again.” Here’s how it showed up in the Rasa Inspector, why it happened, and the one sentence that fixed it.

Seen on Rasa Pro 3.22.0 with the Mantle engine and Claude Sonnet 5.5.

What I Was Doing

I was writing Rasa Tutorial — Part 11: Sub-skills: Reuse One Skill Inside Another. Its booking skill, Book an Appointment, hands the branch search to the Find a Branch skill when the customer doesn’t know which branch to visit:

skills/book_appointment/skill.md (excerpt)Plain text
1. Find out which branch they want to visit, what the appointment is about
   and which day suits them. Ask for anything they haven't said, one question
   at a time. Record each answer with `set_memory` as soon as they give it.
2. If they don't know which branch to choose, help them find one with
   @skill.find_branch. When it finishes, record the branch they chose there.
3. When you have all three, book it with @tool.book_appointment.

Find a Branch saves the branch the customer picks in a public memory field, chosen_branch. This was its skill.md:

skills/find_branch/skill.md (before the fix)Plain text
---
name: Find a Branch
description: Branch locations - addresses of our branches in a town or city
---

Help the customer find a branch.

1. If they haven't said which town or city, ask them.
2. Look it up with @tool.find_branches.
3. Give the name and address of each branch it returns, and only those. If it
   returns none, say we have no branch there and mention that the mobile app
   works around the clock.
4. If they need to pick one, for example for an appointment, ask which branch
   suits them and record their choice with `set_memory`.

What I Expected

Rasa’s Sub-skills (opens in a new tab) guide says the parent resumes when the sub-skill finishes, with the sub-skill’s public memory available to it. So after Riverton Station, please., Find a Branch would save the branch and finish, and the booking would ask for the day, with its own rule from Part 9: loan advisers work Monday to Friday.

What I Got

Find a Branch saved the branch and kept going. It asked the booking’s question in its own words, with the wrong days for a loan:

Part of a conversation in the Rasa Inspector: the customer says “Riverton Station, please.”, the agent replies “I’ve noted Riverton Station. Which day would you like your loan appointment? We’re open Monday to Saturday.”, and the customer answers “Friday”.
The day question came from Find a Branch, with the wrong days for a loan.

In Inspect mode, the events show that Find a Branch was still running. It finished only after the next message, Friday:

The Rasa Inspector event list: two LLM calls, the reply “I’ve noted Riverton Station. Which day would you like your loan appointment? We’re open Monday to Saturday.” marked LLM generated, the customer’s message Friday, two more LLM calls, then Find a Branch skill completed and Tool call: complete.
Find a Branch completes one message late.

The first LLM call after Friday answered with activate: Claude tried to start the booking again from inside Find a Branch. Rasa refused, and the next call’s Prompt ends with Rasa’s answer:

The Prompt box of the Rasa Inspector’s LLM call panel, ending with the customer’s message Friday and a tool message that starts “’book_appointment’ is paused under ’find_branch’.”, and the response “[assistant] → complete”.
Rasa’s answer to the activate call, then complete.
Output (the tool message in the Prompt)Plain text
'book_appointment' is paused under 'find_branch'. Not saved: branch, day, topic. Record these values once 'book_appointment' is running again.

In other conversations, Find a Branch finished in the same turn, but only after the same activate call and the same answer from Rasa. Sometimes Claude later passed those values to the booking tool, which reads them from memory and takes none, and the call failed with “Invalid tool arguments: Unexpected argument(s): ‘branch’, ‘day’, ‘topic’.” before Claude tried again without them.

What I Checked

I clicked the LLM call that answered with activate and read its Prompt. While Find a Branch runs, Claude reads Find a Branch’s instructions, which ended at saving the choice. The booking appears only in the list of other skills that Claude can switch to, with the fields it still needs:

Prompt in the Inspector (excerpt)Plain text
### Other skills (switch with `activate` when the user changes topic):
- book_appointment: Branch appointments - book a meeting with an adviser at one of our branches
  fields:
  - branch (text): The branch the customer wants to visit, as they named it, such as Riverton Station.
  - day (one of: monday, tuesday, wednesday, thursday, friday, saturday): The weekday the customer wants. Branches are closed on Sundays.
  - topic (one of: new_account, loan, card, other): What the customer wants to talk about with the adviser.

Nothing in that prompt says that the booking is waiting for Find a Branch.

Rasa’s skill.md (opens in a new tab) reference says how the booking was parked: a skill started with @skill is a delegation, and the parent resumes “automatically, when the referenced skill finishes”. So nothing had to start the booking again. Find a Branch only had to finish.

Why It Happens

  • Find a Branch’s step 4 ended at saving the choice. It didn’t say what came next.
  • Claude, working inside Find a Branch, could see that the customer wanted a loan appointment, and the booking was listed as a skill it could switch to. So it tried to carry on with the booking itself: by calling activate for it, or by asking the day question in its own words.
  • The booking was already waiting underneath Find a Branch, so Rasa saved nothing from that activate call and said so.
  • Find a Branch’s prompt has the booking’s fields but not its instructions. That’s why its question used the day field’s choices, Monday to Saturday, instead of the booking’s loan rule.

The Fix

Tell the sub-skill where its job ends. In skills/find_branch/skill.md, add one sentence to the end of step 4:

skills/find_branch/skill.md (excerpt)Plain text
4. If they need to pick one, for example for an appointment, ask which branch
   suits them and record their choice with `set_memory`. Then finish: the
   task that needed the branch carries on by itself.

The sentence matches how Rasa works: a skill reached with @skill hands back to its parent when it finishes, so Find a Branch has nothing to start. Train again and restart the agent:

TerminalBash
rasa train
rasa inspect

After the Fix

The same conversation after training again:

The Rasa Inspector event list after the fix, under “Riverton Station, please.”: an LLM call with chosen_branch set to Riverton Station, another LLM call, Find a Branch skill completed, Tool call: complete, a third LLM call, then the reply “Riverton Station is noted. Which day would you like your loan appointment? Loan advisers work Monday to Friday.”
Find a Branch finishes in the same turn, and the booking asks for the day.

Find a Branch saves the choice, its next call answers only with complete, and the following reply comes from the booking, with its loan rule. No call asks to activate the booking.

Common Mistakes

MistakeDo this instead
Telling the sub-skill to start the parent skill againLet it finish. Rasa brings the parent back by itself.
Putting the sentence in the parent skillPut it in the sub-skill: while Find a Branch runs, Claude reads Find a Branch’s instructions, not the booking’s.
Moving the parent’s questions into the sub-skillKeep each question in the skill that has its rules. The day question belongs to the booking.

Troubleshooting

ProblemFix
An LLM call’s prompt shows “'<parent>’ is paused under ‘<sub-skill>’. Not saved: …”Claude called activate for the waiting parent. End the sub-skill’s step with where its job ends, as above, and train again.
“Invalid tool arguments: Unexpected argument(s): …” on a tool that reads memoryClaude passed values that the tool takes from memory. If it follows the message above, the same fix applies.

FAQ

Does the parent always come back after a sub-skill?

Yes. Rasa calls that return guaranteed for a skill started with @skill. Only a topic change, when the customer asks for something else, ends with an offer to go back instead (Rasa’s skill stack (opens in a new tab)).

Why did the sub-skill know the booking’s days but not its loan rule?

Find a Branch’s prompt lists the booking with its memory fields, including the day field’s choices. The loan rule is in the booking’s instructions, which Claude reads only while the booking is the running skill.

Conclusion

Find a Branch did its step, then tried to carry on with the booking, because nothing told it where its job ended. One sentence that says to finish once the choice is saved lets Rasa hand back to the booking, which asks its own questions with its own rules.

Additional Resources

Rasa, Claude and other names mentioned are trademarks of their respective owners. JD Bots isn’t affiliated with or endorsed by Rasa Technologies or Anthropic.

0 comments