ragtrail adds two small pieces to the same pipeline, one before searching and one after answering. The shaded part is the same in both columns.
The two pieces look alike: each makes one check and one decision. The first decides whether the agent can skip the search. The second decides whether the path it took is worth keeping for next time.