pub struct ChangeAnchor {
pub change_anchor: String,
pub file: String,
pub start_line: u32,
pub line_count: u32,
pub previous_change_anchor: Option<String>,
}Expand description
One stable per-hunk CHANGE ANCHOR: a changed region the agent may cite as a
judgment anchor IN ADDITION to a signal_id. Where a signal_id anchors a
graph FINDING (“fallow emitted this exact finding”), a change_anchor anchors
only a changed REGION (“fallow confirms this region changed”) , a strictly
weaker guarantee, surfaced as anchor_kind on the accepted judgment so a
consumer can tell the two apart. Graph/diff-derived; NEVER from prose.
Fields§
§change_anchor: StringStable, CONTENT-addressed id: chg:<16-hex> over the file path + the
normalized added text (line numbers are NOT hashed, so an edit above the
hunk or a whitespace-only change does not move the id).
file: StringRoot-relative path of the changed file.
start_line: u321-based first line of the hunk in the head file (display/deep-link only; NOT part of the id).
line_count: u32Number of added lines in the hunk (display only; NOT part of the id).
previous_change_anchor: Option<String>Rename-durable anchor: the id this same hunk would have had under the
pre-rename path. None unless the file was renamed in this change, so an
agent that cited the anchor before a git mv still resolves.