CerebeCerebe Docs
Cerebe Factory

Objectives

Bind an objective to a check, including a Workshop task's recorded evidence at one commit.

An objective names the evidence that proves it in attestedBy. A binding with kind: check names one check in one repository. cyclone prove reads that check's recorded evidence for the commit it is proving.

Fields

Every field except taskName is required. An unknown field is rejected.

FieldWhat it is
kindcheck.
providerWho recorded the check. workshop reads a Workshop task's test evidence.
repository.forgeInstanceIdThe forge instance that holds the repository.
repository.nativeIdThe repository on that forge, such as acme/widgets.
commitproved, or the full lowercase id of the commit being proved (40 or 64 hex digits). A short id or a branch name is rejected.
checkNameThe name of the check.
producerIdThe producer that recorded the evidence.
classcriterion-specific or suite-wide.
taskNameRequired when provider is workshop. One path segment: letters, digits, ., _, ~, and -.

commit: proved means the commit cyclone prove is judging. A full id proves only when it is that same commit.

A Workshop task

With provider: workshop and a taskName, prove reads that task's recorded test evidence. The binding is proven only when every record is for the commit being proved and a result passed with its marker held.

A record for any other commit stays pending. A failed result at the proved commit fails the binding. A name that was not recorded, or a body that is not test evidence, stays pending. A file in the git checkout is not this record, and neither is test evidence stored for a different commit.

class: suite-wide does not prove the objective by itself. The binding line still shows the record. class: criterion-specific can prove the objective from that record.

attestedBy:
  - kind: check
    provider: workshop
    repository:
      forgeInstanceId: "11111111-1111-4111-8111-111111111111"
      nativeId: acme/widgets
    commit: proved
    checkName: widget-builds
    producerId: workshop
    class: criterion-specific
    taskName: widget-build

On this page