HITL: Approval queue, code diff view, graduation, confidence scoring, and notifications#13
Draft
HITL: Approval queue, code diff view, graduation, confidence scoring, and notifications#13
Conversation
…uation, and notifications Co-authored-by: michaeloboyle <[email protected]>
Copilot
AI
changed the title
[WIP] Formalize human-in-the-loop approval workflow
HITL: Approval queue, code diff view, graduation, confidence scoring, and notifications
Mar 15, 2026
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.
Formalizes the human-in-the-loop workflow that connects the Fix Review panel, pattern library, and self-healing mode into a cohesive system with persistence, graduation logic, and autonomous promotion.
Backend (
serve.py)Persistent Queue
fix-queue.json/fix-approval-history.jsonsurvive restarts; all mutations guarded by_fixes_lockissue_class,confidence,created_at,outcome,changed_files,diffs,auto_appliedNew endpoints
POST/api/fix/resolveGET/api/fix/diffEdit/Writetool calls → unified diff per filePOST/api/fix/revertgit checkout -- <changed_files>for rejected fixesGET/api/fix/graduation-statsPOST/api/fix/graduateauto_apply: true)POST/api/fix/webhookGraduation & confidence
compute_confidence()scales 0.3–1.0 from class approval history; novel classes default to 0.3check_graduation()requires ≥95% approval over ≥10 fixesconfidence ≥ 0.9auto-apply and skip the HITL queue entirelyauto_applyFrontend (
js/fix-review.js)+green /-red /@@blue)POST /api/fix/graduatePOST /api/fix/revertresolve()now persists viaPOST /api/fix/resolve(previously only calledwindow.__claude.resolve)NotificationAPI fires when a fix transitions toready_escHtml()helper applied throughout to prevent XSS from untrusted fix metadataCSS (
style.css)Adds 222 lines: confidence badges, unified-diff syntax highlighting, graduation bar/stats table, batch action bar, revert button.
Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.