Skip to content

The mission’s approved completion report

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

The latest report a person approved, as it was built, with its text. 404 until one is approved. Anyone in the project, a reader too — the client of an agency reads it.

id
required
string

The mission’s id

The report

Media type application/json
object
missionId
required
string
version
required
integer
>= 1
reviewItemId
required
string
nullable
proposedBy
required
string
nullable
approvedBy
required
string
approvedAt
required
string format: date-time
content
required

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
markdown
required

The report as text: it starts with «Covered X of N risks; found Y defects and Z failed cases.»

string
Example
{
"missionId": "6f1c2b3a-0000-4000-8000-000000002188",
"version": 1,
"reviewItemId": "6f1c2b3a-0000-4000-8000-0000000000b1",
"proposedBy": "6f1c2b3a-0000-4000-8000-0000000000a2",
"approvedBy": "6f1c2b3a-0000-4000-8000-0000000000a2",
"approvedAt": "2026-11-06T10:00:00.000Z",
"content": {
"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"
}
]
},
"markdown": "# Test completion report\n\nCovered 1 of 2 risks; found 1 defect and 1 failed case.\n\nTesting shows the presence of defects, not their absence: what was found is what the covered risks turned up, and a risk that was not covered says nothing either way.\n\nStrategy version 1; results since 2026-11-04T09:00:00.000Z.\n\n## Risks\n\nPassed 0, failed 1, not run 1, without a case 0.\n\n- **high** (6) A card is charged twice when the payment page is reloaded — failed: Pay by card (failed)\n- **low** (2) A voucher past its date is taken — not-run: Pay with a voucher (not run)\n\n## Found\n\n- Bug #1: A card is charged twice (open)\n- Failed: Pay by card (failed)\nDead clicks: not reported — Cairn does not send them to the platform yet (plune-ai/cairn#232)\nAmbiguous elements: not reported — Cairn does not send them to the platform yet (plune-ai/cairn#232)\n\n## Not tested\n\n- Out of scope: The warehouse back office: another team owns it and tests it\n- Risk not covered (not-run): A voucher past its date is taken\n\n## Open questions\n\n- Does a refunded voucher count as used?\n- Waiting: exitCriteria[0]\n\n## Lessons\n\n- Which flow is the checkout? — Three steps\n"
}

No / invalid token or session

No such mission in your project, or no report approved for it yet

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