---
title: "Proof: how a merged task closes itself | CommitCycle"
description: "A merged task whose only refusal is missing evidence closes on its green checks, or on a verifier's verdict per criterion, without anyone pasting a link."
url: https://commitcycle.com/docs/operations/proof/
language: en
---

# Proof: how a merged task closes itself

> A merged task whose only refusal is missing evidence closes on its green checks, or on a verifier's verdict per criterion, without anyone pasting a link.

A pull request merges and the [closing gate](https://commitcycle.com/docs/operations/closing-gate/) refuses the task for one reason only: its quality gate asked for evidence and none was attached. Often that evidence already exists. The board goes and gets it, and what it can get depends on the gate.

| Quality gate                                                 | What proves it                                             | Who does the looking                      |
| ------------------------------------------------------------ | ---------------------------------------------------------- | ----------------------------------------- |
| `none`                                                       | Nothing is asked                                           | —                                         |
| regression suite, test, API contract check, round trip green | The checks on each merged pull request’s head commit       | The board, with its GitHub App            |
| visual review, QA sign-off                                   | Captures of the running product, one verdict per criterion | A verifier working for a signed-in person |
| anything else                                                | A person’s judgement                                       | A person                                  |

## CI gates close on their checks

When the task’s pull request merges, and on later reconcile passes (each task at most once every six hours), the board reads the check runs and commit statuses on the head commit of each of the task’s last five verified merged pull requests. Its own check run (`CommitCycle / Layer 3`) is left out, because the board cannot be its own evidence.

- **All finished, none red, and at least one green check that is not a deploy build on every pull request:** the task closes through the same gate, signed `board:ci-proof`. The evidence is the pull request’s checks page, and the transition in the task’s history names the checks that passed (`closed on CI: …`).
- **Only deploy builds passed:** the task stays in review with `CI did not run tests on #n`. Deploy and preview builds are not tests: checks from Cloudflare Workers and Pages, Vercel, Netlify or GitHub Pages, and checks named `Workers Builds`, `Cloudflare Pages` or `Deploy`, never count as proof on their own unless the board names them in `ci_required`. A red deploy build still counts as red.
- **A required check did not pass:** a board can name the checks it requires in `ci_required` on `PUT /v1/<tenant>/<repo>/proof-config` (up to 10 names or name prefixes). When one is missing, skipped or neutral, the task stays in review with the same line, naming it; a red one counts as red.
- **Any red:** the task stays in review and is flagged `CI failed on #N: job, job`.
- **Still running, or no checks at all:** the task stays in review, flagged with the gate’s refusal, and the board asks again on a later reconcile pass. No checks is not a pass.

On a reconcile pass these reads spend the autopilot’s GitHub budget like every other call it makes; the read at merge time does not.

## Gates that need eyes get a proof request

`GET /v1/<tenant>/<repo>/proofs` lists the tasks a verifier can work on: merged with a merge GitHub confirmed, refused only for evidence, gate visual review or QA sign-off. Each item carries the goal, the non-goals, the acceptance criteria and the merged pull requests; the page carries the board’s proof settings once, as `config`: the URLs to open, a note and `ci_required`. A board owner sets those with `PUT /v1/<tenant>/<repo>/proof-config`. Tasks whose gate is a person’s call are listed too, marked `who: "person"`, so a verifier knows to leave them.

The verifier opens the product, checks each criterion, and posts what it saw to `POST /v1/<tenant>/<repo>/tasks/<id>/proof`:

```json
{
  "verifier": "aside",
  "summary": "Walked the onboarding in production",
  "criteria": [
    { "n": 1, "verdict": "pass", "evidence": ["https://…/doors.png"] },
    { "n": 2, "verdict": "fail", "note": "No chips under Creator", "evidence": ["https://…/creator.png"] }
  ]
}
```

Every criterion needs a verdict. A pass needs at least one capture, and a fail or an unclear needs a note.

- **All pass:** the task closes through the same gate, with its captures as evidence (the first 20), signed by the person the verifier works for (`person via verifier`).
- **Any fail:** the task stays in review, flagged `proof failed (verifier): criterion N — note`.
- **Unclear and no fail:** the task stays in review, flagged `needs a person (verifier): criterion N — note`.

A proof is a person’s act, like a close: a paired machine’s token cannot post one. The task panel shows each criterion’s verdict, note and captures, and the GitHub page filters by CI failed, proof failed and needs a person. Nothing here changes what the gate checks. A refusal for undeclared zones or unobserved files still needs a person.
