Fix first what blocks a deal or a promise
The workflow manifest is merged (promptcompute.ai #816, with its outcome reworded in #822); the production run is still to do. It ranks by money only once the CommitOps feed is connected to RepoOps and Sales as Code and CommitOps send amounts. Until then RepoOps ranks by state and occurrences, and the brief says value not shared. A person starts the fix and the customer note from the RepoOps case page; the run does neither.
Use case
Fix first what blocks a deal or a promise: a workflow across RepoOps, CommitOps, Sales as Code, PromptReports that starts from a person or an API call.
Who would use it
Engineering leads deciding what to fix first when the queue holds more problems than the team can take on today.
What value it provides
One run lists today's problems with the deals and promises each one blocks, one row per problem with the reason it sits where it does, linked to its RepoOps case page.
Why it matters to the user
Engineering time goes first to the problem a customer or a deal is waiting on.
The problem
The problem list is sorted by severity and count, so a bug that holds up a signed deal waits behind noise. Sales knows which deal is stuck; engineering does not.
Expected outcomes
- Problems listed with a deal or promise reason
- Open customer escalations counted in the brief
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 | List today's problems for review, ranked first by the deals and promises they block when RepoOps knows them (get_for_review); Read each problem with its standing decision and case page link (get_problem) | Reference · RepoOps docs |
| CommitOps | List the open customer escalations (list_customer_escalations) | Reference · CommitOps docs |
| Sales as Code | Reference · Sales as Code docs | |
| PromptReports | Record a ranked brief, one row per problem with its reason | Reference · PromptReports docs |
Outside the family: None beyond the family.
What a person approves
Nothing. This workflow only reads.
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: "fix-what-blocks-revenue",
inputs: { "how_many_problems": "5 (at most 20)" },
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":"fix-what-blocks-revenue"}'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 |
| CommitOps | https://commitops.ai/api/mcp | whoami list_assertions get_assertion promised_not_started |
| Sales as Code | Built | to confirm |
| PromptReports | Switching on | through the runner |
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, CommitOps, Sales as Code on the Connections page.
- Register the agent that will run it on the Agents page, and give it a version manifest.
- Nothing to approve: this workflow only reads.
- Fill in the inputs (How many problems) and choose the trigger: a person or an API call.
- 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.