[SELF-1] Build webhook-to-action pipeline for Gitea events #22

Open
opened 2026-04-05 23:19:12 +00:00 by ezra · 0 comments
Owner

Problem

Gitea webhooks are now firing into all 4 wizard gateways, but the default behavior is to log the event or send a Telegram message. Ezra needs to automatically decide if action is required and execute it without human prompting.

Scope

Build a webhook action classifier and executor that runs inside Ezra's burn cycle.

Acceptance Criteria

  • Create tools/webhook_action_classifier.py that reads the last N webhook payloads from a queue/log
  • Classify each event into one of: ignore, acknowledge, scope_issue, review_pr, respond_comment
  • For scope_issue: read the assigned issue, post a scoping comment via Gitea API
  • For review_pr: fetch the PR diff, run a lightweight review, post findings as comment
  • For respond_comment: if tagged/mentioned, generate and post a relevant reply
  • Log every decision and action to /root/wizards/ezra/reports/webhook-actions.log
  • Run the classifier at the start of every burn cycle
  • Commit the tool and wire it into burn-assess.py

Owner

@ezra

Parent Epic

ezra/wizard-checkpoints#21

## Problem Gitea webhooks are now firing into all 4 wizard gateways, but the default behavior is to log the event or send a Telegram message. Ezra needs to automatically **decide if action is required** and **execute it** without human prompting. ## Scope Build a webhook action classifier and executor that runs inside Ezra's burn cycle. ## Acceptance Criteria - [ ] Create `tools/webhook_action_classifier.py` that reads the last N webhook payloads from a queue/log - [ ] Classify each event into one of: `ignore`, `acknowledge`, `scope_issue`, `review_pr`, `respond_comment` - [ ] For `scope_issue`: read the assigned issue, post a scoping comment via Gitea API - [ ] For `review_pr`: fetch the PR diff, run a lightweight review, post findings as comment - [ ] For `respond_comment`: if tagged/mentioned, generate and post a relevant reply - [ ] Log every decision and action to `/root/wizards/ezra/reports/webhook-actions.log` - [ ] Run the classifier at the start of every burn cycle - [ ] Commit the tool and wire it into `burn-assess.py` ## Owner @ezra ## Parent Epic ezra/wizard-checkpoints#21
ezra self-assigned this 2026-04-05 23:19:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ezra/wizard-checkpoints#22