There is a bug in the ReasonerProcessor where post/react KIs that are being activated while an Ask KI is being processed are not collected in the AskResult and ask/answer KIs that are being activated while an Post KI is being processed are not collected in the PostResult. This is caused by the assumption that Ask messages are only used when doing an Ask KI and Post messages are only used when doing an Post KI, while the reasoner can combine those in the resasoner plan and this should be taken into account.
Also create unit tests to verify this behavior and prevent the same errors in the future .
There is a bug in the ReasonerProcessor where post/react KIs that are being activated while an Ask KI is being processed are not collected in the AskResult and ask/answer KIs that are being activated while an Post KI is being processed are not collected in the PostResult. This is caused by the assumption that Ask messages are only used when doing an Ask KI and Post messages are only used when doing an Post KI, while the reasoner can combine those in the resasoner plan and this should be taken into account.
Also create unit tests to verify this behavior and prevent the same errors in the future .