Hello Niels:
I would take a look to PGN standards. There are various sources, I hope that without differences among them:
https://ia902908.us.archive.org/26/item ... -03-12.txt
https://www.thechessdrum.net/PGN_Reference.txt
https://www.chessclub.com/help/PGN-spec
I think that this exact question is asked once in a while and there is not a definitive answer. Could you raise a warning if the last two fields are missing without invalidating the full FEN for this only issue, or is it nor practical? OTOH, the halfmove clock field is important for the 50-move rule, so IMHO the last two fields should appear, but it is only my opinion, which is unimportant.
------------
Replying to Jost, I agree that a number of places accept FEN strings without the last two fields, but I think that the default should be 0 1 —like it is found in many compositions— instead of 0 0, just taking a glance into the paragraph 16.1.3.6 'Fullmove number', which says the following (bold and underline added by me):
16.1.3.6: Fullmove number
The sixth and last field is a positive integer that gives the fullmove number.
This will have the value "1" for the first move of a game for both White and
Black. It is incremented by one immediately after each move by Black.
So 0 should not be allowed. OTOH we know that appending 0 1 is a workaround and for example the fullmove number field can be fooled in a simple position like the set up of the Grünfeld Defence, which is:
rnbqkb1r/ppp1pp1p/5np1/3p4/2PP4/2N5/PP2PPPP/R1BQKBNR w KQkq - 0 4
And could be found as:
rnbqkb1r/ppp1pp1p/5np1/3p4/2PP4/2N5/PP2PPPP/R1BQKBNR w KQkq - 0 1
The importance of the fullmove number field roots in time controls, i.e. know where is the position within the game and be able to set the correct amount of remaining time in an adjourned game with repeating time controls. I know that this argument is a bit elaborated and reinforces my POV of 'better to have all the fields correct than missing some', but invalidate the full FEN for only missing those two fields seems excessive to me.
Regards from Spain.
Ajedrecista.