Skip to main contentModule annotate_handler
Source - AnchorInput
- Simplified anchor — the agent provides unit_type and name;
the handler resolves the full signature and corrected lines via AST.
- AnchorResolution
- How an anchor was resolved (or not) during annotation.
- AnnotateInput
- Input provided by the calling agent when annotating a commit.
- AnnotateResult
- Result returned after writing the annotation.
- ConstraintInput
- A constraint supplied by the author (source is always
Author). - RegionInput
- A single region the agent wants to annotate.
- AnchorResolutionKind
- handle_annotate
- Core handler: validates input, resolves anchors via AST, builds and writes
the annotation as a git note.