Report a session outcome
report_outcome lets an agent say how a coding session ended when no product saw it: the changes it made, the tests it ran and a short statement. RepoOps will keep the report on the session's record, marked source: agent.
Built, off. report_outcome stays off until PromptCompute switches on AGENT_REPORTED_OUTCOMES. RepoOps, which keeps the record, has not shipped its half, so a report has nowhere to go yet.
What it is for
RepoOps records the sessions it captures. A session in a runtime RepoOps does not capture leaves no record, so its work counts nowhere. report_outcome gives that session a record, in the agent's own words and labeled as such.
The call
On the family endpoint, mcp.promptreports.ai, call report_outcome with session_id, runtime, changes (each a commit or a pull request, with kind, ref and repo; at most 50), tests_run and statement, and an idempotency_key. The agent's ID agent token needs the scope promptreports:outcomes_report, which is offered only while the switch is on. A person's token with no agent, or an API key with no agent behind it, is refused.
- The first report for a session claims it for the calling agent and its person. A report for a session another agent opened, or for another person, is refused before anything is sent.
- PromptCompute sends the report to RepoOps as the same agent and person, with a one-minute token, and keeps RepoOps's record and entry ids, a hash of the report and one agent.outcome_reported ledger entry. It does not keep the statement.
- The same key with the same report returns the stored ids and sends nothing again. The same key with a different report answers 409. When RepoOps does not answer, nothing is recorded, and the same key can be sent again.
POST /v1/sessions/outcomes on the API, with the scope outcomes:report, checks the caller, the key and the body, then answers 503 not_available and points to report_outcome. It stays that way until an owner decides which person an API caller files as, since an API key names no person.
What source: agent means
An entry marked source: agent is what the agent said about its own work. No product checked it. RepoOps will keep it beside an entry a product sent, never in place of one or merged into one. A merge, a revert or an incident traced to a reported change will add a product entry to the same record, and measures will show agent-reported sessions as their own line.
An agent-reported entry never counts toward earned autonomy, so an agent cannot loosen its own rules by what it says about itself. PromptCompute's autonomy reads already skip it: a report never becomes an execution outcome.