In the CODEX for Chess Composition Rulebook, you always-always assume castling is okay....unless you're told otherwise.
http://www.saunalahti.fi/~stniekat/pccc/codex.htm
See....Part One / Chapter IV / Article 16 / (1).
Not true; the article referred to by Remellion takes precedence over this one (see PRA). The Codex and FIDE lawbooks, like most lawbooks, must be interpreted in their entirety.
Due to the way the Codex lays out the rules, it is in fact necessary to assume that every directmate problem might have a retro component. The PRA/RS conventions (a more detailed analysis given here) apply to all problems - see here examples of confusion when castling conventions (the simple ones, not PRA/RS) they slip into a mainstream publication.
The major issue with these extensions is that they go under the heading 'conventions' and not 'rules'. Conventions relate to 'what is usually done' and 'what is agreed upon' but they are not mandatory in any way. When you wonder about where these things are 'usually done' you come up with one area: the retrograde field. The endgame community will shrug its shoulders about strange conventions dreamt up by retro-weirdos. Not that they won't accept the basic ones - we all need to know that we can or cannot play 0-0 or e.p. - but beyond that the conventions are laid aside at will. This is a good thing since these convention are partly absurd, partly in conflict with FIDE-laws and partly missing where they are absolutely necessary.
Basically, it works the other way. The problem-author and the solvers recognize that a problem is of the retro-type. That places them in Rome and invites them to do as the romans - apply the retro-conventions. Still, these are only conventions; just add 'RS' or 'PRA' to the stipulation to override them.