factor_agent.researcher.Researcher.revise#

Researcher.revise(number, inconsistent, gate, zoo)[source]#

Send each candidate the reviewer found inconsistent back to be rewritten once; return the rewrites, in order.

Every candidate goes, with the reviewer’s reason and its output unit, in one rewrite request per proposal group, all sent at once, and its first review becomes an attempt of stage "review". Each rewrite is checked by the parser and gate once, with no further retries: a refused rewrite is a proposal without checked. The refused versions’ graphs are withdrawn from gate first, so a rewrite that keeps its graph is not its own duplicate.