AI collaboration: recognition ruleset + in-adapter GitHub author classification (foundation) (#121) - #129
Merged
Merged
Conversation
Add embedded, versioned airuleset.json and matcher that classifies PR authors as recognized AI agent, bot, or human. Wire end-to-end in the GitHub adapter and record the ruleset version in the manifest. Files changed: - provider/recognition/airuleset.json -- embedded recognition ruleset - provider/recognition/recognition.go -- matcher (Classify, Version) - provider/recognition/recognition_test.go -- matcher unit tests - provider/provider.go -- add AuthorClass field to Review - provider/manifest.go -- add AIRecognitionVersion to Manifest - provider/github/github.go -- classify PR author at someone-else-PR branch - provider/github/github_test.go -- integration tests for classification - report/report.go -- add AIRecognitionVersion to AccessManifest - report/manifest_test.go -- manifest version propagation tests Key decisions: - Classify uses layered matching: curated ruleset first, structural bot (type:Bot / *[bot] login) second, human fallback third. - Only the class string leaves the adapter -- colleague identity (login, ID, type) is never written to the Review. - No new API endpoints, neverRequested and route tables unchanged. - AIRecognitionVersion is omitempty with a zero default for backward compat with pre-recognition reports. Co-Authored-By: Claude <noreply@anthropic.com>
Owner
Author
Round 1 — APPROVEDGate results
Gate outputtest (exit 0 - PASS) vet (exit 0 - PASS) (clean pass - no output) fmt (exit 0 - PASS) (clean pass - no output) QAA rationalerecognition_test.go lines 55-60)
Code Quality
No Issues FoundThe implementation correctly fulfills all acceptance criteria, maintains the existing data-minimization promise (no colleague profiles leave the adapter), and includes no extraneous changes or scope creep. |
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.
Closes #121
🤖 Autonomous loop in progress - DA/QAA rounds are posted as comments below.