[PATCH v2 1/8] history: add cancelled status