Skip to main content

repeated_shape_note

Function repeated_shape_note 

Source
pub fn repeated_shape_note(streak: u8) -> String
Expand description

Anti-thrash coaching appended once the same failure shape has recurred.

Shared by every loop that tracks a fingerprint streak so the wording stays identical across the interactive runloop and the headless runner. Returns an empty string for streaks below 2 (a single sighting is evidence, not thrash).

§Requires

None.

§Ensures

The result is empty for streak < 2, otherwise a bounded sentence naming the streak count. It never reproduces verifier output.

§Termination

Straight-line formatting.