In Europe during the Medieval period, guilds were formed by craftsmen to organise their trades and written contracts have survived, particularly in relation to ecclesiastical buildings. The role of architect was usually one with that of master mason, or Magister lathomorum as they are sometimes described in contemporary documents.
Try to answer this question if possible (otherwise reply "unanswerable"): What was the main thing the contracts were had to do with?
ecclesiastical buildings