Expand description
Git notes attached at refs/notes/heddle carry Heddle state metadata
(change_id, agent, confidence, status) without polluting the commit
message — and so without changing the commit SHA.
This is the “fallback channel” half of the Phase B identity model. The
primary channel is the bridge-mapping.json sidecar; notes are consulted
when the sidecar is missing or empty (e.g., a developer ran git clone <url> of a heddle-exported repo without copying the heddle dir).
gix v0.80 has no high-level notes API; we hand-roll the standard tree
layout (entry name = full 40-hex commit SHA, entry blob = serialized JSON)
using the same primitives the rest of the bridge already relies on
(write_blob, edit_tree, new_commit_as, set_reference).
Structs§
- Heddle
Note - JSON payload stored inside each note blob.
- Note
Agent - Note
Attribution - Omitted
Breakdown - Per-scope omitted-annotation counts emitted alongside
refs/notes/heddle. - Signal
Counts - Per-module risk-signal fire counts on this state.
Constants§
- NOTES_
REF - The notes ref heddle uses. Standard
git notes --ref=heddlereads from this location, andgit log --notes=heddledisplays them inline.
Functions§
- read_
all_ notes - Read every (commit_oid → note) entry under
refs/notes/heddle. Used by the import path’s identity-recovery scan. - read_
note - Look up the note attached to
commit_oid, if any. - write_
note - Attach
notetocommit_oidinrepounderrefs/notes/heddle.