Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    asked: &[&Challenge],
    all: &[Challenge],
    before: &str,
    after: &str,
    final_msg: &str,
    min_new: usize,
) -> (Vec<String>, Vec<String>)
Expand description

The word rule: what the drone did with each asked lesson after it was delivered: (changed, ignored). Never an outcome: its labels measured shared vocabulary (55% “changed” against 38% on a mismatched control, internal evaluation “phase-r” R1, not published). It only decides whether an early-delivered lesson counts as done (main.rs early_acted) and serves the offline replay (borg debug resolve); asked lessons are labelled by the consequence model (main.rs pending).

  • Declared, in its final message: <id>: applies is a change, <id>: skip an ignore (the block asks for one such line per question).
  • Undeclared: a change when its work after the block (after: the edits since, and the final message) brings in at least min_new of the lesson’s distinctive words (distinctive, over all) that its work before the block (before: prompt, touches, earlier edits, the blocked message) did not contain. Shared words alone are not enough: a drone working on the lesson’s topic already used them (the R1 replay’s control matched other cases’ edits as often as a run’s own).