# 신고와 상태 확인

> 서버 쪽 문제를 운영자에게 알리는 호출, 서버 상태와 준비 중인 기능을 읽는 호출.

웹 페이지: https://guides.somaro.ai/api/reports.html

서버가 잘못한 것 같을 때 운영자에게 알리는 호출과, 인증 없이 서버의 상태를 읽는 호출 둘이에요.

## 서버 쪽 문제 알리기

`POST https://somaro.ai/v1/reports` (패스포트 필요)

앱이 아니라 서버의 문제일 때 써요. 배포가 `ok`라고 했는데 주소가 다른 것을 답할 때, 문서가 설명하지 못하는 답이 올 때, 서버 쪽 실패 상태(`push_failed`, `engine_failed`, `not_recorded`, `cut`)가 두 번 연달아 나올 때예요. 앱 코드의 문제는 알릴 대상이 아니에요.

본문은 폼이에요.

| 필드 | 뜻 |
|---|---|
| `text` | 무엇을 실행했고, 무엇이 돌아왔고, 무엇을 기대했는지. 몇 문장으로, 4000바이트까지. `--data-urlencode`로 보내요 |
| `app` | 관련된 앱 이름. 앱과 상관없으면 빼요 |
| `job` | 관련된 작업 ID. 없으면 빼요 |

```sh
curl -sS -K "$HOME/.somaro/somaro.ai/token" --data-urlencode "text=<what happened>" -d app=<name> -d job=<job id> https://somaro.ai/v1/reports
```

- 하루에 다섯 건까지 보낼 수 있어요.
- 비밀값을 넣지 않아요. 문제를 설명하는 데 필요 없는 사람의 정보도 넣지 않아요.
- 답으로 번호를 줘요. 보냈다는 사실과 그 번호를 사람에게 알려 줘요.
- 운영자가 읽지만 서버를 거쳐 답이 돌아오지는 않아요. 답을 기다리지 말고 문서대로 진행해요.

CLI에서는 `somaro report "<text>" [--app <app>] [--job <job id>]`예요.

사람이 직접 문의하거나 앱을 신고할 때는 hello@somaro.ai로 메일을 보내요.

## 서버 상태

`GET https://somaro.ai/v1/health` (인증 없음)

서버가 살아 있는지와, 앱이 임시로 유지되는 조건을 답해요.

```sh
curl https://somaro.ai/v1/health
```

2026-12-05에 받은 실제 응답이에요.

```json
{"host":"somaro-1","ok":true,"temporary":{"app_lifetime_secs":86400,"kept_by":"guardian"}}
```

| 필드 | 뜻 |
|---|---|
| `host` | 답한 서버의 이름 |
| `ok` | 서버가 정상인지 |
| `temporary` | 이 서버에서 앱이 임시라는 표시. 테스트넷은 이 자리에 `testnet`을 써요 |
| `temporary.app_lifetime_secs` | 임시 앱이 유지되는 시간(초). 86400은 24시간이에요 |
| `temporary.kept_by` | 무엇이 앱을 계속 두게 하는지. `guardian`은 이메일 인증이에요 |

`host`와 `ok`는 원문이 뜻을 따로 설명하지 않아서 이름대로 풀었어요. `temporary`의 설명은 manual에 있어요.

같은 `temporary`가 `GET /v1/me`에도 있고 거기에는 묻는 패스포트의 `approved`가 함께 있어요.

## 준비 중인 기능

`GET https://somaro.ai/coming.json` (인증 없음)

서버가 만들고 있거나 계획한 기능의 목록이에요. 여기 있는 기능은 아직 쓸 수 없고 날짜와 가격이 정해지지 않았어요. 에이전트가 없는 기능을 약속하지 않도록 서버가 직접 알려 주는 거예요.

```sh
curl https://somaro.ai/coming.json
```

2026-12-05에 받은 실제 응답이에요.

```json
{
  "coming": [
    {
      "key": "pay-account",
      "status": "building",
      "name": "Pay without a wallet",
      "text": "Pay for a plan from your HPP account. Credit there is bought in won, with a card or a simple-pay service (간편결제), so no crypto wallet is needed.",
      "issue": 357
    },
    {
      "key": "somaro-domain",
      "status": "planned",
      "name": "Domains your agent can buy",
      "text": "Ask your agent for a domain and the app is live on it, with nothing to set up. With a plan or without one.",
      "issue": 358
    }
  ],
  "heading": "What is coming",
  "note": "Being built or decided, not here yet: no date and no price is promised.",
  "statuses": {
    "building": "in development",
    "planned": "planned",
    "soon": "coming soon"
  }
}
```

| 필드 | 뜻 |
|---|---|
| `coming` | 기능 목록. 각 항목에 `key`, `status`, `name`, `text`, `issue`가 있어요 |
| `statuses` | `status` 값의 뜻. `building`은 개발 중, `planned`는 예정, `soon`은 곧 나옴 |
| `heading`, `note` | 목록의 제목과 안내 글 |

## 관련 문서

- [문제 해결](https://guides.somaro.ai/help/troubleshooting.html)
- [오류 코드](https://guides.somaro.ai/api/errors.html)
- [준비 중인 기능](https://guides.somaro.ai/features/coming.html)
