check_writes


Description:

public bool check_writes (Format link)

Whether link.hash matches a heading in any WriteChange body or in this.document.

Only considers bare fragment links (empty path and non-empty hash). If the model emits path-plus-hash links, extend this helper once that shape appears in executor output.

Parameters:

link

parsed link (fragment-style: path empty, hash set)

Returns:

true if the anchor resolves in writes or document