# Pilot Go/No-Go Quickcheck (5-minute gate)

Use this right before demo or pilot handoff.

One-command option:

```bash
make pilot-quickcheck
```

Auto-create and validate one preset job end-to-end:

```bash
make pilot-quickcheck-auto
```

Light mode (skip local qa/smoke, keep API-level report checks):

```bash
make pilot-quickcheck-light
```

CI-friendly one-command smoke:

```bash
make ci-pilot-quickcheck-smoke
```

Useful env overrides:
- `API_KEY=<key>` (for protected API)
- `PRESET_KEY=<preset>` / `PRESET_TYPE=<type>`
- `JOB_TIMEOUT_SEC=<seconds>` / `POLL_INTERVAL_SEC=<seconds>`

Artifacts:
- `build/pilot-quickcheck/report.json`
- `build/pilot-quickcheck/report.md`
- `build/pilot-quickcheck/report.summary.txt`
- with `JOB_ID` (or `AUTO_JOB=1`): `build/pilot-quickcheck/report_api.json` + `build/pilot-quickcheck/report_api.md` + `build/pilot-quickcheck/report_api.csv`

## 1) Runtime up and healthy

```bash
make pilot-stack-check
```

Expected:
- `/health` returns 200
- `/ready` returns 200

## 2) Fast engineering gate

```bash
make qa-fast
```

Expected:
- tests pass
- `qa-hitl` pass
- mypy clean

## 3) Demo chain works end-to-end

```bash
make ci-demo-smoke
```

Expected:
- smoke artifacts created
- no blocker in summary

## 4) Export contract/readiness visible

```bash
curl -s http://127.0.0.1:8000/status/<JOB_ID>/quality | jq '.export_contract.submission_readiness_summary'
```

Expected:
- `readiness_status` present (`ready|partial|weak|missing`)
- `completeness_score` present
- `top_gap` present

## 5) Reviewer flow check

```bash
curl -s http://127.0.0.1:8000/status/<JOB_ID>/review/workflow | jq '.summary'
```

Expected:
- workflow summary present
- no unexpected stale/overdue spike before demo

## 6) Decision-ready quick report (new)

```bash
curl -s http://127.0.0.1:8000/status/<JOB_ID>/pilot-quick-report | jq
```

Expected key fields:
- `go_no_go_hint` (`go|conditional_go|no_go`)
- `primary_blocker` (top blocker code/reason)
- `recommended_next_action` (next operational action)

Export-ready formats:

```bash
curl -OJ "http://127.0.0.1:8000/status/<JOB_ID>/pilot-quick-report/export?format=json"
curl -OJ "http://127.0.0.1:8000/status/<JOB_ID>/pilot-quick-report/export?format=md"
curl -OJ "http://127.0.0.1:8000/status/<JOB_ID>/pilot-quick-report/export?format=csv"
```

---

## Decision rule

- **Go**: steps 1-3 pass, and step 6 returns `go_no_go_hint=go`.
- **Conditional Go**: steps 1-3 pass, and step 6 returns `go_no_go_hint=conditional_go` with named owner/date for `recommended_next_action`.
- **No-Go**: step 1, 2, or 3 fails, or step 6 returns `go_no_go_hint=no_go`.
