Pack · source-control
scm.check
An automated verdict on one revision of a repository: a build, a test suite, a linter, a whole pipeline. A check run is queued for a revision, starts (optionally as an instance of a workload, agentic.runtime), and completes once with an outcome; a queued or running check may be cancelled. A check run never changes after it completes; a new verdict is a new run.
Depends on
- scm.repository · pack source-control · 9 references
- runtime · layer 8 · 6 references
- workspace · layer 8 · 6 references
- shared · layer 0 · 6 references
Used by
No block depends on this one.
Entities
CheckRun
One run of one named check on one revision.
Identified by check_run_id (CheckRunId).
| field | type | meaning |
|---|---|---|
repository_id | RepositoryId | |
revision | Revision | The revision the check judges. |
name | Name | The check's name, the same for every run of it. |
queued_at | timestamp | |
instance_id | optional InstanceId | The running copy of the workload that carries out the check, when it runs as one. |
| outcome | optional CheckOutcome | |
report | optional Content | The digest of the check's report. |
completed_at | optional timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
repositoryreferences Repository of scm.repository (one, byrepository_id)instancereferences Instance of runtime (one, byinstance_id)
Lifecycle of CheckRun
Cancelled, Completed.Commands
CancelCheck
Cancel a check.
Called by: Check runner.
| field | type |
|---|---|
check_run_id | CheckRunId |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-run refused | no such CheckRun | Check: No check run of this identity exists. |
cancelled | otherwise | moves the CheckRun Queued, Running → Cancelled; emits Check |
wrong-state refused | the CheckRun is in a state that does not allow it | Check: The check run is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
CompleteCheck
Complete a running check with its outcome.
Called by: Check runner.
| field | type |
|---|---|
check_run_id | CheckRunId |
| outcome | CheckOutcome |
report | Content |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-run refused | no such CheckRun | Check: No check run of this identity exists. |
completed | otherwise | moves the CheckRun Running → Completed; emits Check |
wrong-state refused | the CheckRun is in a state that does not allow it | Check: The check run is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
QueueCheck
Queue a check on a revision.
Called by: Check runner.
| field | type |
|---|---|
check_run_id | CheckRunId |
repository_id | RepositoryId |
revision | Revision |
name | Name |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
already-queued refused | the CheckRun exists already | Check: A check run of this identity exists. |
unknown-repository refused | no Repository for repository_ | Unknown: No repository of this identity exists. |
archived refused | the Repository of repository_ has state == Archived | Repository: The repository is archived; no new check runs on it. |
queued | otherwise | creates a CheckRun in Queued; emits Check |
More columns: swipe horizontally, or focus the table and use the arrow keys.
StartCheck
Start a queued check.
Called by: Check runner.
| field | type |
|---|---|
check_run_id | CheckRunId |
instance_id | optional InstanceId |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-run refused | no such CheckRun | Check: No check run of this identity exists. |
unknown-instance refused | no Instance for instance_ | Unknown: No workload instance of this identity exists. |
started | otherwise | moves the CheckRun Queued → Running; emits Check |
wrong-state refused | the CheckRun is in a state that does not allow it | Check: The check run is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Events
| event | fields | emitted by |
|---|---|---|
CheckCancelled | check_ CheckRunId, at timestamp | Cancel |
CheckCompleted | check_ CheckRunId, repository_ RepositoryId, revision Revision, name Name, outcome CheckOutcome, at timestamp | Complete |
CheckQueued | check_ CheckRunId, repository_ RepositoryId, revision Revision, name Name, at timestamp | Queue |
CheckStarted | check_ CheckRunId, instance_ optional InstanceId, at timestamp | Start |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Views
| view | rows | fields |
|---|---|---|
CheckRunsCheck runs | each CheckRun | check_ CheckRunId, repository_ RepositoryId, revision Revision, name Name, queued_ timestamp, instance_ optional InstanceId, outcome optional CheckOutcome, report optional Content, completed_ optional timestamp, state State |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Types
| type | is | values or fields |
|---|---|---|
CheckOutcomePassed means the revision met the check. Failed means it did not. Errored means the check itself could not judge (its runner broke), which says nothing about the revision. | one of | Passed, Failed, Errored |
CheckRunId | an identifier or value | uuid |
More columns: swipe horizontally, or focus the table and use the arrow keys.
KPIs
3 KPIs from the pack's catalogue, packs/source-control/kpis.yaml. A gate must be zero for a variant of an architecture to count.
Quality
| KPI | unit | better | gate | status |
|---|---|---|---|---|
check_errored_shareShare of completed check runs that ended Errored rather than Passed or Failed. How: CheckCompleted events with outcome Errored divided by all CheckCompleted events. An errored check says nothing about the revision. | share | lower | – | planned source: design |
check_queue_secondsSeconds a check run waits between being queued and starting. How: Median of CheckStarted time minus CheckQueued time per check run. | seconds | lower | – | planned source: design |
check_flaky_shareShare of checks that both passed and failed on the same revision. How: Pairs of check name and revision with at least one CheckCompleted Passed and one CheckCompleted Failed, divided by all pairs with a completed run. | share | lower | – | planned source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Settings
The settings a part of this block carries in an architecture document. agenticspec sim check refuses any other setting (setting_unknown) and a value outside its type (setting_invalid), and a part that lacks a setting marked required in the default column; the contract copies a setting into the ports it narrows. The last rows of each table are the settings every part takes. What no setting here types (a file, a path, an audience, the use of a model) goes into the part's notes, a map with free keys and values that the check takes as written and nothing reads.
A part scm.check:
| setting | type | unit | default | contract | what |
|---|---|---|---|---|---|
count | integer of at least 1 | 1 | How many copies of the part run. | ||
per | part | One copy of the part for each copy of the named part. | |||
notes | notes | Free notes on the part, a map with keys and values of any kind: what no setting of its block types. The check takes any map; the simulator, the search and the contract never read it. |
More columns: swipe horizontally, or focus the table and use the arrow keys.