[INFRA-004] Stitcher module structure #166

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

Summary

Create the mosaic-stitcher module - the workflow orchestration layer that wraps OpenClaw.

Responsibilities

  • Receive webhooks from @mosaic bot
  • Apply Guard Rails (capability permissions)
  • Apply Quality Rails (mandatory gates)
  • Track all job steps and events
  • Dispatch work to OpenClaw with constraints

Tasks

  • Create apps/api/src/stitcher/stitcher.module.ts
  • Create apps/api/src/stitcher/stitcher.service.ts
  • Create apps/api/src/stitcher/stitcher.controller.ts (webhook endpoint)
  • Define interfaces for job dispatch
  • Add module to app.module.ts

Files to Create

  • apps/api/src/stitcher/stitcher.module.ts
  • apps/api/src/stitcher/stitcher.service.ts
  • apps/api/src/stitcher/stitcher.controller.ts
  • apps/api/src/stitcher/interfaces/
  • apps/api/src/stitcher/dto/

Acceptance Criteria

  • Module loads successfully
  • Webhook endpoint responds to POST /stitcher/webhook
  • Service can be injected into other modules
## Summary Create the mosaic-stitcher module - the workflow orchestration layer that wraps OpenClaw. ## Responsibilities - Receive webhooks from @mosaic bot - Apply Guard Rails (capability permissions) - Apply Quality Rails (mandatory gates) - Track all job steps and events - Dispatch work to OpenClaw with constraints ## Tasks - [ ] Create apps/api/src/stitcher/stitcher.module.ts - [ ] Create apps/api/src/stitcher/stitcher.service.ts - [ ] Create apps/api/src/stitcher/stitcher.controller.ts (webhook endpoint) - [ ] Define interfaces for job dispatch - [ ] Add module to app.module.ts ## Files to Create - apps/api/src/stitcher/stitcher.module.ts - apps/api/src/stitcher/stitcher.service.ts - apps/api/src/stitcher/stitcher.controller.ts - apps/api/src/stitcher/interfaces/ - apps/api/src/stitcher/dto/ ## Acceptance Criteria - Module loads successfully - Webhook endpoint responds to POST /stitcher/webhook - Service can be injected into other modules ## Related - Epic: #162 - Depends on: #165 (BullMQ module)
jason.woltje added this to the M4.2-Infrastructure (0.0.4) milestone 2026-02-01 07:24:20 +00:00
jason.woltje added the phase-2apip0api labels 2026-02-01 07:24:20 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#166