You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose incident postmortems/runbooks (#19) through the API, MCP and Slack #198
Since #19 (PR #187), every completed incident gets postmortem.md, runbook.md and kb.md written next to its logs ({org}/logs/<y>/<m>/<incident_id>/). The only way to read them now is to open the storage bucket directly.
Proposed solution
GET /orgs/{org}/incidents/{incident_id}/docs lists the available documents (viewer role).
GET /orgs/{org}/incidents/{incident_id}/docs/{name} returns the markdown (text/markdown).
Add an MCP tool get_incident_docs.
Link the postmortem from the Slack resolution message when PUBLIC_BASE_URL is set.
Optionally, an POST …/docs/{name}/publish that copies a reviewed runbook into the org's docs (/orgs/{org}/docs). This must be an explicit human action, never automatic: incident text can contain attacker-controlled log lines, and the agent reads org docs back.
Tests: RBAC (viewer can read, another org gets 403), 404 for unknown incidents, and that the month folder is found without the caller knowing it.
Activity