markEdited

Idempotently mark the document edited since the last run. No-op when already true (no spurious StateFlow emission). Hosts fan their own side effects (last-result invalidation for structural edits, validation refresh, model-aware staleness flag, etc.) off this call; this method only flips the edited-since-last-run flag.