materializer: add doc and spec
downstream: spec fixes
Construct logrecord in uniform format