PromptReports
Use cases/Send an incident and its fix to a case file

Send an incident and its fix to a case file

Partly builtNo plan row yetRepoOpsPromptReportsPromptComputeAI Source of Truth

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

1. 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)RepoOpsPlanned
2. 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)PromptReportsBuilt
3. A person approves sending the evidence outside the org, and the approval sets digests only or documents (promptcompute.case_file.send)PromptComputeBuilt
4. Open one Evidence Rooms case for the incident, or reuse the one already open for it (open_case)AI Source of TruthBuilt
5. 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)AI Source of TruthBuilt
6. Record the case id and its registry anchor on the run recordPromptReportsBuilt

Products and connections

ProductRole in this workflowDocs
RepoOpsRead 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
PromptReportsPlan 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 recordReference · PromptReports docs
PromptComputeA 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 TruthOpen 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

ActionDefault risk
promptcompute.case_file.sendhigh

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 events
curl -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:

ProductEndpointTools
RepoOpshttps://mcp.repoops.ai/mcpsearch_brain get_pre_edit_context propose_brain_entry get_incident_attribution
PromptReportsSwitching onthrough the runner
PromptComputehttps://mcp.promptcompute.ai/mcprequest_approval get_approval cancel_approval answer_approver
AI Source of Truthhttps://aisourceoftruth.com/v1/family/factsto 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

  1. Sign in at app.promptreports.ai with PromptReports ID, and pick your org.
  2. 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.
  3. Register the agent that will run it on the Agents page, and give it a version manifest.
  4. Set the approval policy for promptcompute.case_file.send. Start with Require approval; critical actions are never auto.
  5. Fill in the inputs (Incident id) and choose the trigger: a person or an agent starts it for one incident.
  6. Start a dry run. It will count no workflow request, and it shows which steps would record missing evidence.
  7. Start the run. Approve each gate in the approvals inbox, then read the signed record when it ends.