Skip to content
Engine has no release yet: these pages describe unreleased main.

Checks

A check is how Crewlet verifies that something happened: a step a person took at a vendor, a deploy that ran, a page that went live. Ask Crewlet’s plans and agents’ watches name a check; the engine makes it. Every check reads and none writes, every target is one the company holds, and no check adds a permission to anyone (internal/check).

KindReadsAsLimits
engine_readone GET route the API reference documents, with a condition on one field of the answerthe caller: the person in a plan, the agent’s own tool authority in a watchthe route’s own authority
requirementan integration setup requirement’s own check (GET /setup/integrations/{kind}/requirements/{field}/check)the person; plans only, since the route is an administrator’s setup readthe route’s budget
vendor_probeone read an integration declares (Vendor probes)the credential the engine already reads that integration withoffered only where that credential holds the read
public_urlan https GET of one of the company’s own hosts: the status, and whether a literal is on the pagethe engine, anonymous, no cookiesPublic URL checks
agenta seat asked to verify something only it can see, answered on a work item with update_work_item’s verified (passed, failed or unknown; its evidence is the seat’s words and never part of the result)that seat’s own grantsone model turn of that seat per check, the only kind that costs one

A re-check after a while is not a sixth kind: it is a wait step in a plan, or a watch on an agent’s work item, over a vendor probe or a public URL check.

A check is a typed spec. A model fills it in; the engine validates every field against what the company holds before anything runs, and answers every fault at once.

{"kind": "vendor_probe", "integration": "github", "probe": "workflow_run",
"target": {"repo": "acme/web", "workflow": "deploy.yml", "branch": "main"},
"cond": {"op": "equals", "value": "success"}}
  • Bound targets. A repository, app, zone, project, monitor, seat or host must be one of the company’s: from its config, or a record the engine wrote from the vendor’s own API. Other parameters (a workflow file, a branch, a track) are held to a strict pattern under a bound one. A value a model read somewhere, such as another organisation’s repository or a lookalike host, is refused. A plan and a watch bind the same values and hosts; in a plan, an integration’s probes and values are offered only where the person may read its setup.
  • Conditions. equals, not_equals, exists, absent, contains, at_least, at_most (numbers) and changed (against the first reading). A value is at most 200 bytes and never shaped like a credential. A requirement or agent check is decided by its own outcome and takes no condition.
  • Results. passed, failed, unknown (a first reading kept to compare with, or a requirement the engine cannot see), pending (a vendor probe read something still in progress that does not meet the condition yet) or error (the read was refused or failed), with the engine’s own sentence. Only a settled reading fails: a run queued or running, check runs not all finished with none failed, a deployment queued, in progress or not reported on yet, a Play release still rolling out (inProgress), an EAS build new, queued, in progress or being cancelled, and a Cloudflare zone initializing or pending are each pending. A reading that already meets the condition passes, and a changed check compares only a settled reading.

No one’s words reach the model through a check

Section titled “No one’s words reach the model through a check”

A result shows what it read only where that is a typed value: a number, a boolean, a status, an id, a version or an instant. A field holding somebody’s words (a title, a message) can still be tested with equals, contains, exists or changed; the result says whether it held, never what it says. A log search answers whether the literal was found, and a public page’s body never leaves the engine.

Each probe is declared in its integration’s package and runs on that integration’s typed client. It is offered only where the company’s credential already holds its read, so no permission is ever added for one.

IntegrationProbeTargetReadsCredential and permission
GitHubworkflow_runrepo, workflow, branchthe latest run: conclusion, status, head sha, timean installation token of an agent’s GitHub App that holds the read, minted for the run with that one permission on that one repository and revoked after; Actions (Read)
GitHubrun_log_containsrepo, workflow, textwhether the latest completed run’s logs hold the literal: the archive (at most 8 MiB, fetched through the public-address guard) is searched in the engine, and only the answer leaves; a miss while a newer run is still going is pendingthe same; Actions (Read)
GitHubchecksrepo, refthe combined check-run conclusion, leaving out runs an agent’s own app postedthe same; Checks (Read)
GitHubdeploymentrepo, environmentthe newest deployment’s newest statethe same; Deployments (Read)
Google Playtrackapp, trackthe newest release on a track: its status and version codes, in an edit that is discardedthe watching agent’s own Google identity in a watch; the company reader in a plan; View app information
Google Playapp_reachableappwhether the Android Publisher API answers for the app, and why not (not_found, permission_denied)the same
Expobuildproject, platform, profilethe latest EAS build: status, versions, timethe atlas’s robot token; the Viewer role
Cloudflaredns_recordzone, name, typewhether the record exists, and its address for A, AAAA and CNAME (never a TXT record’s words)the provisioner token; Zone Read and DNS Read
Cloudflarezone_statuszonethe zone’s activationthe provisioner token; Zone Read
Datadogmonitormonitorthe monitor’s state: ok, warn, alert, no_data or unknownthe application key; monitors_read
Google Cloudapi_enabledproject, servicewhether a service is ENABLED or DISABLEDthe company’s Google identity, only on projects where it holds serviceusage.services.get

An engine fetch of any address a model names would carry what the model read to whoever runs that address, with no click. So a public_url check reads only:

  • the company’s Cloudflare zones and every name under them;
  • the public addresses of atlas entries;
  • a Google Play app’s store listing (play.google.com/store/apps/details?id=<app>);
  • the hosts listed in public_hosts, for sites on no integrated DNS.

The address is https on port 443, with a path held to the one grammar a vendor page’s path is, and no query. The fetch goes through the engine’s public-address guard (ADR-0072), which judges each connection’s actual address, so a name that resolves to a private address is refused at connect time. It sends no cookie, follows at most 3 redirects, each held again to https and the company’s hosts, gives up after 10 s, reads at most 1 MiB, and says who asks (User-Agent: Crewlet-Check/1.0).

Part of Crewlet. Generated from crewlet/crewlet main at 3f5565e.