Send an incident and its fix to a case file
The incident-to-case-file manifest and its tools are merged in promptcompute.ai #966 and off behind INCIDENT_CASE_FILE, and the four item kinds are merged in Evidence Rooms #51 and off behind ROOMS_INCIDENT_ITEMS. It cannot run today: the runner will register it only once RUNNER_USE_CASES and INCIDENT_CASE_FILE are on and RepoOps's connector lists get_incident_evidence, which RepoOps has not shipped. Nothing is sent without an approved promptcompute.case_file.send request for that incident, and the tools check that themselves. The default sends digests only.
Use case
Send an incident and its fix to a case file: a workflow across RepoOps, PromptReports, PromptCompute, AI Source of Truth that starts from a person or an agent starts it for one incident.
Who would use it
Teams that must show a customer, an auditor or the other side in a dispute what an incident was and how it was fixed.
What value it provides
After a person approves, the workflow opens an Evidence Rooms case for one incident and files the incident, the fix packet, the session outcome record and the approval, each signed on upload. By default it files digests only, so no document leaves the org.
Why it matters to the user
Anyone the org invites can check the case export offline, with no account in the org's tools.
The problem
The incident, the change and session behind it, the fix and who approved it sit in the org's own tools. Nobody outside the org can check them without an account there.
Expected outcomes
- Incidents with a case whose export passes the offline verifier
- Case files sent with no document when digests only was chosen
Each run records its outcome as met, not met or not measured.
How it runs
Products and connections
| Product | Role in this workflow | Docs |
|---|---|---|
| RepoOps | Read the incident with the release, change and session it was traced to, the fix packet and the session outcome record, each with its digest (get_incident_evidence) | Reference · RepoOps docs |
| PromptReports | Plan the case file: the incident, the fix packet, the session outcome record and the approval, each with its digest. A dry run stops here and files nothing (plan_case_file); Record the case id and its registry anchor on the run record | Reference · PromptReports docs |
| PromptCompute | A person approves sending the evidence outside the org, and the approval sets digests only or documents (promptcompute.case_file.send) | Reference · PromptCompute docs |
| AI Source of Truth | Open one Evidence Rooms case for the incident, or reuse the one already open for it (open_case); File each item as a signed digest reference, or as the document when the approval chose documents. A private session's content is never sent (add_item) | Reference · AI Source of Truth docs |
Outside the family: The org's Evidence Rooms connection, with its partner key.
What a person approves
| Action | Default risk |
|---|---|
promptcompute.case_file.send | high |
Action keys are from the PromptCompute catalog.
How to access it from an agent
An agent runs a workflow through the PromptReports MCP server or API, and the runner calls each product for it. Both answer today, and the runner runs the code loop. This workflow will run there once its manifest ships. Switching on
// MCP: https://mcp.promptreports.ai/mcp
start_run({
workflow: "incident-to-case-file",
inputs: { "incident_id": "the RepoOps incident id" },
dry_run: false
})
// returns { run_id, status: "running", approvals_url }
get_run({ run_id }) // poll, or subscribe to run eventscurl -X POST https://api.promptreports.ai/v1/runs \
-H "Authorization: Bearer $PROMPTREPORTS_AGENT_TOKEN" \
-d '{"workflow":"incident-to-case-file"}'Or call the products yourself, step by step:
| Product | Endpoint | Tools |
|---|---|---|
| RepoOps | https://mcp.repoops.ai/mcp | search_brain get_pre_edit_context propose_brain_entry get_incident_attribution |
| PromptReports | Switching on | through the runner |
| PromptCompute | https://mcp.promptcompute.ai/mcp | request_approval get_approval cancel_approval answer_approver |
| AI Source of Truth | https://aisourceoftruth.com/v1/family/facts | to confirm |
Set it up
The app at app.promptreports.ai is live. These steps will work once this workflow is on the runner. Switching on
- Sign in at app.promptreports.ai with PromptReports ID, and pick your org.
- Connect RepoOps, PromptCompute, AI Source of Truth on the Connections page. Link The org's Evidence Rooms connection, with its partner key through the product that uses it.
- Register the agent that will run it on the Agents page, and give it a version manifest.
- Set the approval policy for promptcompute.case_file.send. Start with Require approval; critical actions are never auto.
- Fill in the inputs (Incident id) and choose the trigger: a person or an agent starts it for one incident.
- Start a dry run. It will count no workflow request, and it shows which steps would record missing evidence.
- Start the run. Approve each gate in the approvals inbox, then read the signed record when it ends.