Almost record what is served by law (4)
I believe the answer is:
writ
'is served by law' is the definition.
I can't judge whether this definition defines the answer.
'almost record' is the wordplay.
'almost' means to remove the last letter (almost the whole word is kept).
'record' becomes 'write' (I've seen this in another clue).
'write' with its last letter taken off is 'WRIT'.
'what' acts as a link.
Can you help me to learn more?
(Other definitions for writ that I've seen before include "Legal document (usually issued)" , "Legal document, usually served" , "Court order document" , "Legal or formal document" , "Legal order in writing" .)