Why traditional technique disappoints
Many LLM courses teach us that, in order to generate a special form of writing, we should write long prompts filled with guidance and examples. This technique can work, but their success rates vary. In most cases, the LLM model needs to be complex and a lot of testing and fine-tuning is needed. Regardless of the effort and time put in, this technique can be quite temperamental and there are many cases where the LLM model abandons the given examples completely, despite the best effort to remedy it. This phenomenon is often called "prompt-brittleness" and is a source of headache for LLM developers across the world, see Commey, D. (2026), When “Better” Prompts Hurt: Evaluation-Driven Iteration for LLM Applications.
Avoiding the common pitfalls with hydration pattern
Because non-refoulement cases have a highly predictable and rigid structure, we can avoid prompt-brittelness altogether with the Hydration Pattern, see Frank J.E. Flitton, “A Practical Pattern for Hydrating AI-Generated Object Templates”.
With a Hydration Pattern, we first create a traditional computer program to write the mundane portion of the CA judgment. We then rely on LLM to extract the information from the case paper. The information from the LLM to then used to "hydrate" (or bring-alive) the traditional computer program that generates the CA judgment. In the demonstration below, black text represents the immovable text from the traditional computer program while the green text represents the information supplied by the LLM.