[INFRA-010] Herald status updates #172

Closed
opened 2026-02-01 07:25:12 +00:00 by jason.woltje · 0 comments
Owner

Summary

Implement mosaic-herald functionality for status reporting. Herald pushes updates back through bridge to chat channels.

Responsibilities

  • Subscribe to job events
  • Format status updates for chat
  • Push updates to appropriate channels/threads
  • Create PR comments
  • Send notifications

Update Types

Event Format
job.started Runner: Gathering context...
step.completed Weaver: Implementing... ✓
gate.passed Inspector: Tests passed ✓
gate.failed Inspector: Tests failed ✗ [details]
job.completed Herald: PR created → #456

Tasks

  • Create apps/api/src/herald/herald.module.ts
  • Create apps/api/src/herald/herald.service.ts
  • Subscribe to job events
  • Format messages for different verbosity levels
  • Push to Discord threads via bridge
  • Create Gitea PR comments

Files to Create

  • apps/api/src/herald/herald.module.ts
  • apps/api/src/herald/herald.service.ts
  • apps/api/src/herald/formatters/

Acceptance Criteria

  • Herald subscribes to all job events
  • Updates appear in Discord threads
  • PR comments are created on completion
  • Verbosity levels are respected
## Summary Implement mosaic-herald functionality for status reporting. Herald pushes updates back through bridge to chat channels. ## Responsibilities - Subscribe to job events - Format status updates for chat - Push updates to appropriate channels/threads - Create PR comments - Send notifications ## Update Types | Event | Format | |-------|--------| | job.started | Runner: Gathering context... | | step.completed | Weaver: Implementing... ✓ | | gate.passed | Inspector: Tests passed ✓ | | gate.failed | Inspector: Tests failed ✗ [details] | | job.completed | Herald: PR created → #456 | ## Tasks - [ ] Create apps/api/src/herald/herald.module.ts - [ ] Create apps/api/src/herald/herald.service.ts - [ ] Subscribe to job events - [ ] Format messages for different verbosity levels - [ ] Push to Discord threads via bridge - [ ] Create Gitea PR comments ## Files to Create - apps/api/src/herald/herald.module.ts - apps/api/src/herald/herald.service.ts - apps/api/src/herald/formatters/ ## Acceptance Criteria - Herald subscribes to all job events - Updates appear in Discord threads - PR comments are created on completion - Verbosity levels are respected ## Related - Epic: #162 - Depends on: #169 (job events), #170 (Discord)
jason.woltje added this to the M4.2-Infrastructure (0.0.4) milestone 2026-02-01 07:25:12 +00:00
jason.woltje added the apiapiphase-3p1 labels 2026-02-01 07:25:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#172