Skip to content

The mission’s completion report as it stands now

GET
/v1/missions/{id}/report/draft
curl --request GET \
--url https://beta-api.plune.ai/v1/missions/example/report/draft \
--header 'Authorization: Bearer <token>'

What POST /v1/missions/{id}/report would queue now, built on this call and stored nowhere. 409 strategy_required without an accepted strategy. Anyone in the project.

id
required
string

The mission’s id

The report

Media type application/json

A mission’s completion report (#2193), built by the server from the mission’s data: the accepted strategy, the latest result of each case its risks link (directly and through their requirements’ matrix) since the mission began, the bugs on those cases opened since then, the mission’s questions. It never says there are no bugs: it says how many risks were covered and how many defects were found. Lists hold at most 200 items; totals count all.

object
missionId
required
string
strategyVersion
required
integer
>= 1
since
required

When the mission began: results and bugs count from here

string format: date-time
generatedAt
required
string format: date-time
totals
required
object
risks
required
integer
covered
required

Risks with a case executed since the mission began

integer
passed
required
integer
failed
required
integer
notRun
required
integer
noCases
required
integer
defects
required
integer
failures
required
integer
risks
required
Array<object>
<= 200 items
object
index
required

In the strategy’s risks

integer
text
required
string
level
required
integer
>= 1 <= 9
priority
required
string
Allowed values: low medium high
coverage
required
string
Allowed values: failed passed not-run no-cases
cases
required
Array<object>
<= 200 items
object
testCaseId
required
string
title
required
string
status
required

The latest result since the mission began; null: not run since

string
nullable
Allowed values: passed failed broken blocked skipped
runId
required
string
nullable
at
required
string format: date-time
nullable
found
required
object
defects
required
Array<object>
<= 200 items
object
bugId
required
string
number
required
integer
title
required
string
state
required
string
Allowed values: open closed
failures
required
Array<object>
<= 200 items
object
testCaseId
required
string
title
required
string
status
required

The latest result since the mission began; null: not run since

string
nullable
Allowed values: passed failed broken blocked skipped
runId
required
string
nullable
at
required
string format: date-time
nullable
deadClicks
required

Not reported: Cairn does not send them to the platform yet

object
reported
required
boolean
reason
required
string
ambiguousElements
required

Not reported: Cairn does not send them to the platform yet

object
reported
required
boolean
reason
required
string
notTested
required
object
outOfScope
required

What the strategy deliberately left out, and why

Array<object>
<= 200 items
object
text
required
string
uncovered
required
Array<object>
<= 200 items
object
index
required
integer
text
required
string
why
required
string
Allowed values: no-cases not-run
openQuestions
required
Array<object>
<= 200 items
object
questionId
required
string
text
required
string
waiting
required
Array<object>
<= 200 items
object
path
required
string
questionId
required
string
lessons
required

Answered plain questions of the mission - candidates for the project’s memory (E7)

Array<object>
<= 200 items
object
questionId
required
string
question
required
string
answer
required
string
Example
{
"missionId": "6f1c2b3a-0000-4000-8000-000000002188",
"strategyVersion": 1,
"since": "2026-11-04T09:00:00.000Z",
"generatedAt": "2026-11-06T09:00:00.000Z",
"totals": {
"risks": 2,
"covered": 1,
"passed": 0,
"failed": 1,
"notRun": 1,
"noCases": 0,
"defects": 1,
"failures": 1
},
"risks": [
{
"index": 0,
"text": "A card is charged twice when the payment page is reloaded",
"level": 6,
"priority": "high",
"coverage": "failed",
"cases": [
{
"testCaseId": "6f1c2b3a-0000-4000-8000-0000000000c1",
"title": "Pay by card",
"status": "failed",
"runId": "6f1c2b3a-0000-4000-8000-0000000000d1",
"at": "2026-11-05T10:00:00.000Z"
}
]
},
{
"index": 1,
"text": "A voucher past its date is taken",
"level": 2,
"priority": "low",
"coverage": "not-run",
"cases": [
{
"testCaseId": "6f1c2b3a-0000-4000-8000-0000000000c1",
"title": "Pay with a voucher",
"status": null,
"runId": null,
"at": null
}
]
}
],
"found": {
"defects": [
{
"bugId": "6f1c2b3a-0000-4000-8000-0000000000f6",
"number": 1,
"title": "A card is charged twice",
"state": "open"
}
],
"failures": [
{
"testCaseId": "6f1c2b3a-0000-4000-8000-0000000000c1",
"title": "Pay by card",
"status": "failed",
"runId": "6f1c2b3a-0000-4000-8000-0000000000d1",
"at": "2026-11-05T10:00:00.000Z"
}
],
"deadClicks": {
"reported": false,
"reason": "Cairn does not send them to the platform yet (plune-ai/cairn#232)"
},
"ambiguousElements": {
"reported": false,
"reason": "Cairn does not send them to the platform yet (plune-ai/cairn#232)"
}
},
"notTested": {
"outOfScope": [
{
"text": "The warehouse back office: another team owns it and tests it"
}
],
"uncovered": [
{
"index": 1,
"text": "A voucher past its date is taken",
"why": "not-run"
}
]
},
"openQuestions": [
{
"questionId": "6f1c2b3a-0000-4000-8000-000000002190",
"text": "Does a refunded voucher count as used?"
}
],
"waiting": [
{
"path": "exitCriteria[0]",
"questionId": "6f1c2b3a-0000-4000-8000-000000002190"
}
],
"lessons": [
{
"questionId": "6f1c2b3a-0000-4000-8000-000000002190",
"question": "Which flow is the checkout?",
"answer": "Three steps"
}
]
}

No / invalid token or session

No such mission in your project

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}

The mission has no accepted strategy

Media type application/json
object
error
required
string
Example
{
"error": "the mission has no accepted strategy - a report says what was covered of it",
"code": "strategy_required"
}