small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo

test(model_loop): model repetition runs and check similarity against difflib

`repetition.with_settings` builds a watch without reading saved settings, so repetition_test can replay generated steps (repeated, changed, waiting-only, multi-cell) against a model of the documented run rule. A new `similarity` contract sends generated string pairs, including long popular runs that trigger autojunk and multibyte scalars, to Python's difflib and checks `similarity.at_least` at, and just either side of, each ratio. Nothing checked that claim before. Replaces these end-to-end cases: - repetition_test.test_steps_whose_code_changes_are_not_repeats (a streak surviving changed code) by repetition_test and the contract; - repetition_test.test_steps_that_only_wait_are_not_repeats (waiting-only steps counted) by repetition_test. The kept cases cover the kernel trace naming a step's bindings and the note reaching the model and the transcript.


Author aly.codes
Date Commit Parent 3a5f7daa
+279 -32
6 changed files
+279 -32
6 changed files