Open
Conversation
3660eb4 to
f8ed882
Compare
Add a gitnotes detector that reads authorship logs from refs/notes/ai, parsing the git-ai standard v3.0.0 format to extract tool and model information from the metadata section's prompt records. Signed-off-by: Andrew Nesbitt <andrewnez@gmail.com>
b7678e7 to
3ea5d86
Compare
Contributor
|
Does this fix #9? |
MoralCode
reviewed
Mar 19, 2026
| if err != nil { | ||
| continue | ||
| } | ||
|
|
Contributor
There was a problem hiding this comment.
this function feels like it belongs in the gitnotes module. the gitops name makes me think of generic git operations, rather than something specific to gitnotes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
gitnotesdetector that reads AI authorship logs stored underrefs/notes/aiper the git-ai standard v3.0.0.The detector parses the attestation and JSON metadata sections, extracting tool names and models from prompt records. Findings are reported at high confidence since git-ai notes are an explicit, structured declaration of AI involvement.
Changes:
detection/gitnotespackage with detector and testsgitops.Commitanddetection.Inputgain aNotesfieldgitops.readNote()reads note blobs fromrefs/notes/ai, handling both flat and split hash path formatsscan_test.gocreates a real repo with git notes via the git CLIfixes #9