code, test, doc or external. By default the rule of new-unit: a file that is not Python is a doc, a Python file below the source directory is code, one below tests is a test, any other is code.
If the unit is unknown, ref is already declared (as a consumer, an evaluation file or a unit test), a ref that is not external does not exist (a similar path is suggested when its directory holds one), the record keeps its consumers as an inline array or the result would not load.