Submatter/.convoys/owner-cockpit-v02/brief-4-doc-writer-sop.md
Randall Stillwell 6f139d6af2 feat(owner-cockpit): forge webhooks + artifacts + copilot (Epic 8/11/12)
- Forge webhook POST /api/webhooks/forge HMAC sha256 verify, marker echodo-convoy → pr_review→merged as automation
- Completion artifacts table 0017, deterministic summary template, gallery /artifacts
- Ops copilot tRPC copilot + context tools (fleet, convoy, backlog) + panel + Draft Task → backlog.createTask
- Doc-writer SOPs: webhook rotation, copilot prompt, published flow examples
- Allow pr_review→merged as automation for webhook

Convoy: .convoys/owner-cockpit-v02

Co-authored-by: orchestrator
2026-08-25 17:49:38 -05:00

1.5 KiB

brief convoy role title status priority slice_dependencies recommended_model model_tier
4 owner-cockpit-v02 role-doc-writer Doc-writer SOPs — webhook secret rotation + copilot prompt ready P2
1
qwen-coder local

Brief 4 — role-doc-writer SOPs for owner cockpit

Goal

Document rotation and prompts so future agents read them as second-brain context, not just code.

Files

  • docs/operations/webhook-secret-rotation.md NEW — one page: where FORGE_WEBHOOK_SECRET lives (Coolify env), how to rotate (generate openssl rand -hex 32, update Forgejo webhook + Coolify FORGE_WEBHOOK_SECRET, test via curl -H 'X-Hub-Signature-256: sha256=...' http://localhost:3000/api/webhooks/forge).
  • docs/copilot-prompt.md NEW — system prompt for gate-copilot and ops copilot (reuse convoys.ts:gut prompt but versioned in docs/ for harness portability).
  • docs/examples/sop-published-flow.md NEW — one SOP showing Task-write-sop → doc_review → published → artifact gallery e2e with screenshots placeholder.

Acceptance

  • Three docs exist, linked from docs/README or docs/operations/live-e2e-checklist.md.
  • No code, only markdown; pnpm lint still passes (markdown ignored).

Prompt

You are role-doc-writer brief 4. Read docs/convoy-lifecycle.md, apps/web/app/api/webhooks/forge/route.ts (once brief 1 lands) to document accurately. Keep docs small, imperative, no narration.

Depends

Brief 1 — needs webhook route to document accurately.