Configuration reference

Ready CI reads .readyci.yml or .readyci.yaml, walking from the current directory toward the filesystem root. Unknown fields, unsupported versions, and invalid combinations fail before upload. Prefer .readyci.yml in new projects.

Validate and inspect the effective result whenever configuration changes:

readyci config validate
readyci config explain --fields
readyci check --dry-run --why --json CHECK_NAME
readyci affected audit --strict --examples --duplicates

The machine schema is cli/schema/readyci.schema.json. This page explains the same fields in user terms.

Precedence

The most specific explicit value wins: command flag, check configuration, project configuration, then the CLI default. Check-level sync.exclude, cache paths, cache key files, and artifact paths can add to project collections rather than replacing them; inspect check --dry-run --json for the resolved result. Environment variables provide command defaults, not secret interpolation into the YAML file.

Project fields

Field Type / values Default Purpose
version 1 1 Configuration format version. Other versions fail.
project_id string proj_dev for a local API; required for hosted use Project receiving runs, caches, settings, and secrets. A flag or READYCI_PROJECT_ID can supply it.
region region identifier default Worker location used unless a check or flag overrides it. default is always accepted; any other region must have a registered worker, or run and session creation fail with 400 request_invalid naming the available regions.
image image identifier ubuntu-24.04-ci Preloaded runner image. Arbitrary image pulls are not implied.
environment_requirements controlled feature list empty Guest filesystem/network requirements inherited by checks; check requirements add to this list.
runner_size small, standard, large, xlarge standard Default compute size. Larger sizes consume more slots.
timeout_seconds positive integer command default Default timeout in seconds. Prefer timeout.
timeout duration such as 20m or 1h command default Default timeout. Cannot conflict with an invalid seconds value.
retries non-negative integer 0 Default retry count for named checks, limited to failures the service classifies as retryable. Literal run commands and their reruns use only an explicit --retry value.
concurrency_group string unset Project/team-scoped group used to serialize related work.
concurrency_limit non-negative integer 1 when a group is set Maximum active runs in the group; 0 disables an inherited group at check level.
cache_mode ephemeral, cache-only cache-only Older spelling for cache.mode; prefer the nested field.
sync object see below Workspace upload selection.
cache object see below Persistent cache behavior.
artifacts object see below Retained run output.
affected object see below Changed-file routing and coverage tests.
network object mode: none Verify and warm egress policy.
resources object unset Older resource override structure; prefer direct project/check fields.
services map empty Named services checks may attach.
checks map empty Named commands or step sequences.

Workspace sync

Source bundles are limited to 400 MiB compressed and 900 MiB expanded, including archive metadata. These are independent limits, not a compression-ratio restriction, and cannot be overridden in project configuration. Bundles may contain at most 100,000 archive entries and a 16 MiB manifest.

readyci sync --dry-run --json and check previews enforce these same limits before upload. The sync report includes manifest_bytes, entry_count, and admission_limits alongside compressed and expanded sizes. Packaging uses compact manifest JSON; it rejects source that still exceeds a limit instead of reporting a successful preview followed by an upload rejection.

Field Meaning
sync.include_untracked Include untracked files in working/all bundles. Defaults to true unless a selected check explicitly disables it; staged bundles always exclude untracked files.
sync.respect_gitignore Must be true. false is rejected; ignored dependency/build trees are not silently uploaded.
sync.exclude Additional exclusion globs: *, ?, [abc], and recursive **. Slashless globs match names at any depth; path globs are workspace-relative. Directory matches exclude descendants. Negation (!) is rejected. Built-in secret and VCS exclusions still apply.
sync.reviewed_fixtures Exact regular Git-tracked fixture paths and reviewed SHA-256 hashes permitted through default confidentiality exclusions. No globs, directories, untracked files, or Git metadata. Explicit exclusions still win.

Each check can set checks.<name>.sync.include_untracked, checks.<name>.sync.respect_gitignore, checks.<name>.sync.exclude, and checks.<name>.sync.reviewed_fixtures. Project and check fixture declarations are combined; duplicate paths or differing hashes are rejected.

Generated-output defaults (dist, target, coverage, node_modules, and apps/web/.next) filter untracked files. Credential-shaped configuration names such as .npmrc, .pypirc, .netrc, credentials.json, service-account.json, application_default_credentials.json, .docker/config.json, .ssh/, and kubeconfig also filter untracked files. Tracked configuration and fixtures under those names remain included. Explicit sync.exclude and .readyciignore rules apply to tracked and untracked files.

Built-in exclusions apply to .env*, Git control metadata, known SSH private-key names, .git-credentials, and .aws/credentials regardless of tracking. A tracked private-key or credential-store path fails packaging with a request for an explicit exclusion or an exact reviewed fixture; it never silently vanishes. .env.example and filenames ending in .env.example remain public template exceptions. Generated configuration includes untracked source by default; Git-ignored files remain excluded.

Every upload prints a source-entry count, the included and omitted untracked counts, and the number of tracked files removed by sync rules on stderr, including with JSON output. A tracked file removed by a rule, such as a committed .env.test or a file inside a pinned submodule, exists locally but not in the remote workspace, so it is named rather than dropped silently. Omitted paths have a bounded preview; readyci sync --dry-run --json includes the complete lists as omitted_untracked_files and omitted_tracked_files. Uploads also warn about included credential-shaped names (including .pem files, which can contain public certificates): one line for each untracked file, and a single line naming the first few committed ones. Filename rules are conservative and do not inspect file contents. Explicitly exclude secrets with other names.

Registered sessions fetch current source rules from the service. A cached source recipe using older rules is rejected; fetch the binding and rebuild the bundle. Source-rule changes alone do not change the registered YAML policy digest.

Repositories that intentionally test a public dotenv fixture can authorize its exact reviewed bytes. First inspect the file and confirm it contains public test data, then calculate its SHA-256 with sha256sum tests/test_apps/.env. For a fixture containing exactly READYCI_TEST_FIXTURE=public-placeholder followed by a newline:

sync:
  reviewed_fixtures:
    - path: tests/test_apps/.env
      sha256: ca732cf8e7c4a8cae9aecb92e8db7031c5bbb04feea3f4d288371474a75138bf

Preview and upload reject a missing fixture, a symlink, an explicitly excluded path, or selected bytes that differ from the reviewed hash. Every transmitted Git baseline and workspace version must match, including baseline bytes later overwritten by a workspace change. This bounded contract requires committing a reviewed fixture update before authorizing its new hash. Staged mode checks the selected index bytes. Fixtures are bound into source identities and session recipes, and the service rechecks actual uploaded bytes. Registered verification uses independently authorized fixture declarations from the active policy; candidate configuration cannot expand them.

Preview, packaging, and currentness use the same selected file set. A tracked file replaced by a directory does not make its children tracked: descendants are included only when Git tracks them or permits them as untracked files. Working snapshots read actual tracked file bytes, including files marked assume-unchanged. Source reads are confined to the checkout and reject files that change identity during packaging. Unsupported special files fail early. Relative symlinks may use .. when their targets stay inside the selected workspace. Validation resolves declared symlink hops before parent components in both the Git baseline and the final workspace; dangling internal targets are allowed. Escaping or absolute targets, Git control metadata targets, cycles, paths through regular files, targets over 4,095 bytes, and chains over 40 symlink hops are rejected before upload. Extraction preserves target text and refuses to write through symlink parents. Executable modes follow Git’s owner execute bit on Unix and the tracked index mode on Windows. Working mode rejects eligible skip-worktree paths and partial sparse checkouts; staged mode deliberately tests the index instead. Initialized Git submodules are included recursively when their checked-out HEAD, index, and tracked working files match the parent repository's committed gitlink pin. Modified, untracked, sparse, uninitialized, or mismatched module source fails before upload; changing or staging a parent gitlink is not yet supported. Initialize missing dependencies locally with git submodule update --init --recursive before retrying, preserving or resolving local edits first. Ready CI never fetches submodule source or uses its remote credentials. Limits are 1,024 included modules and 32 nested module levels, within the ordinary total source limits.

The source bundle binds each module path and full commit ID alongside its files. Runners materialize those files in a flattened Git baseline and retain the declarations at .git/readyci/submodules.json; native submodule Git metadata and history are not reconstructed. Checks that require native git submodule operations need a different preparation contract. Untracked nested Git repositories, including linked worktrees, must also be explicitly excluded when untracked files are enabled; Git does not enumerate their eligible files. Unsupported directories fail before an upload is built.

Check excludes add to project exclusions. Run readyci sync --dry-run --json to see the exact baseline, workspace, deletion, changed, and untracked lists.

Cache and artifacts

Field Meaning
cache.mode cache-only mounts a persistent project lane; ephemeral runs without one.
cache.size Requested lane size such as 10GiB or 30GB, subject to plan limits.
cache.paths Home-relative (~/...) or workspace-relative paths linked into the lane, at most 64 distinct paths across the project and check lists. A workspace path cannot start with a directory named ~. Source paths are retained data; treat them accordingly.
cache.key_files Lockfiles/toolchain files hashed into the cache target. A changed digest selects a fresh target.
artifacts.paths Workspace-relative globs collected after the run. Missing paths are ignored.

Cache persistence is best-effort. A lane can be evicted at any time, including before the next run; cache-only does not promise a cache hit or durable storage. Keep required source in workspace sync and prepare dependencies through the declared preparation workflow. A missing cache does not authorize additional network access or skipping checks. Use artifacts, not caches, for retained run outputs.

Cache paths start as links to their persistent backing. At declared command and step boundaries, Ready CI publishes replacement directories or regular files, including removals, and restores the links for the next command. A removed path clears its cached contents. An installer such as npm ci can replace a link while it runs; assertions inside that same shell command observe its replacement until the command returns. Use a subsequent step or check to validate persistence.

An unexpected link or failed cache publication fails the run. A command that already failed retains its original exit code. Interrupted publication leaves the affected cache data invalid for reuse; a later run discards that incomplete data before preparing its cache paths. These handoffs preserve the configured cache namespace and budget and do not guarantee a hit on the next run.

Firecracker runs also receive a fresh temporary filesystem for /tmp and /var/tmp, independent of the persistent cache. Scratch device capacities are 8 GiB for small, 16 GiB for standard, 32 GiB for large, and 64 GiB for xlarge; filesystem metadata reduces usable space. Setup reports the selected profile, and execution logs report actual filesystem capacity. The worker reserves this storage before starting the job and removes it after the run. Insufficient host space stops preparation. Increasing cache.size does not increase scratch capacity.

Cancellation, expired worker leases, or missing teardown acknowledgement retire a cache generation permanently. A retry may therefore need fresh dependency preparation. Retirement never permits deleting a disk still held by a runtime.

Cache generations retire after seven days from creation, not seven days from the last hit. An active generation is purged after the run releases it; physical removal depends on successful worker cleanup. This is neither a minimum lifetime nor an exact seven-day deletion guarantee.

New artifacts expire 30 days after upload; existing artifacts retain their original expiry. Raw stdout/stderr is unavailable after 30 days from each event's creation. Project settings distinguishes availability from scheduled physical cleanup.

Checks can extend or override these with checks.<name>.cache_mode, checks.<name>.cache.mode, checks.<name>.cache.size, checks.<name>.cache.paths, checks.<name>.cache.key_files, and checks.<name>.artifact_paths. Artifact paths cannot be absolute, traverse outside the workspace, or enter .git.

When the selected artifacts exceed collection limits, Ready CI retains whole small test report candidates first, then failed-case logs and traces, ahead of bulk files. The archive includes .readyci/artifact-retention.json with matched, retained and omitted counts and a bounded omitted-file list. unmatched_paths records configured literal paths with no matching files separately from omissions, so missing-path warnings remain available even when the omission list is shortened. No individual file is shortened to fit. runs tests --json exposes this metadata under collection. Reported test counts describe retained reports only. Required omissions prevent successful verification even when some useful diagnostics were retained. An omitted optional generated failed-workspace archive alone remains a warning. omitted_report_count counts report candidates identified by path; omitted files are not parsed and do not establish test execution counts.

For large XML evidence, retain .xml.gz files or package regular XML reports in an explicitly named .junit.tar.gz or .junit.tgz archive. These formats retain native test indexing under its normal bounded parsing limits. Archive members must use normalized relative paths; links, sparse entries, other compressed archives and non-XML payloads are unsupported. Generic .tar.gz files remain downloadable evidence without automatic report indexing. Compression preserves raw reports; it does not make partial indexed counts equal the full test suite.

Affected-file routing

Field Meaning
affected.profiles Expands built-in docs, go, readyci, or shell routing rules. Profiles select existing checks only.
affected.rules Ordered explicit mappings from paths to checks. Multiple matching rules may contribute checks.
affected.unmatched_checks Comprehensive checks selected only when no ordinary rule matches a changed path.
affected.subsumes Map from an aggregate check to narrower checks it replaces when both are selected.
affected.tests Expected path-to-check fixtures exercised by affected audit.
affected.audit_ignore Tracked legacy/vendor/data paths intentionally exempt from strict coverage audit. It does not change upload behavior.
affected.rules[].paths One or more changed-path globs.
affected.rules[].paths_from A manifest object or list used to derive globs.
affected.rules[].paths_from.file Workspace-relative manifest whose non-empty lines are inputs.
affected.rules[].paths_from.template Template such as tests/${line}.rs; without it, each line is a path.
affected.rules[].exclude Negative globs applied to this rule.
affected.rules[].checks Check name or list selected by this rule.
affected.tests[].path One example changed path. Use either path or paths.
affected.tests[].paths A set of paths representing one example change.
affected.tests[].checks Exact checks expected for the example.

An uncovered source-like path is a harness_gap, not success. Use affected.unmatched_checks for a deliberate safe fallback and affected.audit_ignore only for paths that truly need no verification.

Network

Field Values Meaning
network.mode none, allowlist, default Default verify-run egress. Omitted configuration resolves to none.
network.allowlist host/IP strings Destinations permitted only when mode is allowlist.
network.warm_mode allowlist, default Explicit egress for dependency warm nodes. default is local/private-only.
network.warm_allowlist host/IP strings Destinations for warm_mode: allowlist.

There is no implicit unrestricted warm fallback. On a public deployment, configure an allowlist for package registries and artifact hosts, then verify with no network.

Docker-enabled checks can use allowlist too, including containers using --network host. Include registry authentication and redirect/CDN hosts when pulling images. Hostnames resolve to a fixed set of permitted public IPv4 destinations for that run; this is IP filtering, not HTTP hostname or TLS/SNI filtering. Containers cannot bypass it by selecting a different DNS resolver.

When automatic dependency preparation is enabled, each dependent check uses the exact cache populated by its successful warm step. It waits if that cache is busy. If the cache was removed, expired, or no longer fits the effective size, the check stops with dependency_setup_failed; rerun with preparation enabled. --skip-warm skips this prerequisite and uses ordinary project cache selection.

Use checks.<name>.dependency_check to select a component-specific installer. When omitted, a check uses the configured dependencies check, if present. Installer definitions do not inherit another installer implicitly. Missing, self-referencing or nested dependency_check references are rejected. Explicit component preparation requires persistent cache mode.

With affected rules, readyci warm --profile dependencies selects only the installers of affected consumers. An explicitly named installer still fails if it has no affected consumers; an empty dependency profile also fails clearly.

For a simple monorepo configuration, keep shared upload settings in the top-level sync policy. Scope commands to each component and give each consumer its own installer. Installers can also declare smaller source views when preparation does not need all compilation or test inputs.

sync:
  include_untracked: true
  exclude: [node_modules, target]
network:
  mode: none
  warm_mode: allowlist
  warm_allowlist: [registry.npmjs.org, index.crates.io, static.crates.io]
checks:
  web-dependencies:
    command: pnpm --dir apps/web install --frozen-lockfile
  web-test:
    command: pnpm --dir apps/web test
    dependency_check: web-dependencies
  server-dependencies:
    command: cargo fetch --manifest-path apps/server/Cargo.toml --locked
  server-test:
    command: cargo test --manifest-path apps/server/Cargo.toml --offline
    dependency_check: server-dependencies
affected:
  rules:
    - paths: [apps/web/**]
      checks: [web-test]
    - paths: [apps/server/**]
      checks: [server-test]
    - paths: [Cargo.toml, Cargo.lock, package.json, pnpm-lock.yaml, .readyci.yml]
      checks: [web-test, server-test]

Run readyci check to prepare and test all affected components in one server-owned session, or readyci check web-test for just the web component. Review affected rules for shared libraries and workspace declarations in your repository. Installers use the explicit warm network policy without project secrets; tests keep their configured network policy. Each installer namespaces its cache paths and binds its consumers to its successful preparation.

Each check and its dependency installer can declare independent upload settings, including exclusions, reviewed fixtures and untracked-file selection. For example, a Cargo installer can omit large assets that Rust needs at compile time:

checks:
  dependencies:
    command: cargo fetch --locked
    sync:
      exclude: [apps/backend/assets]
  rust-test:
    command: cargo test --offline

Use the persistent cache and warm network policy from the preceding example. Keep all required manifests, workspace members, local dependencies and installer scripts in the installer's view. A missing preparation input fails the warm step; Ready CI does not infer inputs from the command or widen its source view.

readyci check packages the union of the selected nodes' inputs once and gives each installer and test only its declared view. Overlapping paths have the same bytes in every view. Preparation and testing retain their distinct network policies and the consumer uses its successful prerequisite's exact cache lane. A session that requests project secrets cannot include this preparation; see Use project secrets. The service validates every view against the complete canonical upload before scheduling work. These requested checks report checks_passed; they do not establish workspace-wide verification authority. Project .readyciignore rules are recorded as explicit exclusions in every requested view.

With an active trusted verification policy, readyci verify derives the source views and required checks from that registered policy. The service seals each view's snapshot and manifest digest into the plan. Passing every required check with trusted runner evidence can establish one verified verdict for the combined snapshot. Uncovered changes remain harness_gap. Candidate-controlled ignore rules cannot narrow a registered source view.

For example, register sync: {exclude: [apps/server]} on both web-dependencies and web-test, and sync: {exclude: [apps/web]} on both server checks in the preceding example, then run readyci verify. Either installer may declare further exclusions for inputs needed only during compilation or tests. Shared-file affected rules still need to select every required consumer.

Different source views require a complete upload and one change mode. A baseline path restored as untracked is rejected until its tracking state is resolved. Conflicting reviewed fixture bytes are rejected.

Standalone warming does not bind a later independent --skip-warm invocation to that lane; automatic preparation supplies that guarantee within one session.

Resources

resources remains accepted for existing pre-release configurations:

Field Meaning
resources.default Default older-style resource object.
resources.checks Map of check name to older-style resource object.
resources.*.size small, standard, large, or xlarge. Prefer runner_size.
resources.*.timeout Duration string. Prefer timeout.
resources.*.docker Boolean Docker enablement. Prefer check-level docker.

For clarity, the concrete paths are resources.default.size, resources.default.timeout, resources.default.docker, resources.checks.<name>.size, resources.checks.<name>.timeout, and resources.checks.<name>.docker.

Services

Service names contain letters, digits, _, or -. Every service needs a health probe and is either a built-in Postgres service or a preloaded container image.

Field Meaning
services.<name>.type postgres or container. May be omitted when image establishes a container service.
services.<name>.version Postgres 15, 16, or 17; not valid for generic containers.
services.<name>.image Preloaded generic container image. Ready CI does not pull it during the run.
services.<name>.ports Up to 16 entries such as 5432/tcp.
services.<name>.env Literal uppercase environment map for the service. Do not place secrets here.
services.<name>.health Required readiness probe object.
services.<name>.health.command Required non-empty health command.
services.<name>.health.timeout Overall readiness deadline.
services.<name>.health.interval Polling interval.
services.<name>.logs Service log paths retained as run events/evidence.

The check must enable Docker and list the service name under checks.<name>.services.

Checks

Use environment_requirements for guest features beyond language runtimes:

checks:
  socket-tests:
    command: python -m pytest tests/socket
    environment_requirements:
      - network:ipv6-loopback

The supported names are filesystem:btrfs, filesystem:minix, network:ipv6-loopback and network:ipv6-interface. Filesystem probes format, mount, write and unmount a disposable fixture during privileged preparation. The network probes test local IPv6 loopback sockets; network:ipv6-interface also tests resolution of the loopback interface name. Requirements are part of the sealed plan and execution identity. Worker selection requires acceptance for the exact image, kernel, promoted worker release and selected network mode; the runner probes the required features again before repository preparation. Missing acceptance or unsupported names fail explicitly. Installing filesystem userspace tools alone does not establish kernel support. These requirements do not grant mount privileges, authorize sudo, or expand external network access.

runtime_requirements binds runtime constraints to the selected check, its sealed plan, and execution evidence. For example:

checks:
  test:
    command: python -m pytest tests
    runtime_requirements:
      python: ">=3.9,<4"

Supported families are go, node, python, java, rust, cargo, npm, pnpm, and yarn. installed requires that family and preserves the image default version; setup uses it when the selected command declares no version. Other families cannot be required; setup leaves them to the runner image's installed toolchain. A bare major/minor selects its series (24, 24.18); a complete version selects exactly that version. =3.12 and ==3.12 mean 3.12.0; ==3.12.* selects the 3.12 series. Numeric comparisons use zero-filled versions, with comma/space conjunctions and || alternatives; ^ and ~ ranges are supported. Prefer full versions in comparisons to make their bounds explicit. This is a bounded numeric grammar, not an implementation of every package manager's range syntax. Setup translates supported npm source ranges before sealing them, so npm's >20.19 becomes >=20.20.0 and <=20 becomes <21.0.0.

Repository and workflow runtime declarations are advisory during setup. Setup seals a declaration only when it is a supported numeric requirement for a supported family. It never fails because a declaration cannot be translated, and it never resolves a moving selector locally or through the service. These declarations are not emitted, and the runner image's installed toolchain is used instead:

  • runtimes outside the supported families, such as Ruby, .NET or Bun;
  • moving or named selectors, such as lts/*, lts/iron, node, stable, latest or an action's implicit default;
  • unsupported syntax, such as ~=3.9, !=3.8.* or *;
  • a pnpm VERSION+sha512.HEX pin that no approved pnpm archive matches;
  • declarations that conflict with the workflow's explicit selection or with another declaration for the same family.

Every skipped declaration produces one structured unresolved item, which is also the source of its review note: a Runtime review: comment in the generated configuration, an environment.unresolved item in readyci setup --preview --json with kind runtime_declaration_not_applied or runtime_family_unsupported, its declared value and the note text as detail, and an unresolved line in human output. The note is not repeated under environment.warnings. Workflow selectors also appear in the import candidate's unresolved. While any item remains, environment.status is review_required rather than ready, even when the runner is compatible; see what setup confirms before the first run. Review the note and add an explicit runtime_requirements value when the check needs a specific version. Every preview recomputes these items, including for a saved configuration. Repository-file declarations come from the repository. Workflow declarations come from the workflow job named by the check's imported_from.candidate, read as it currently is and compared with the check's runtime_requirements: a selector such as setup-node lts/* is an item, and so is a version the workflow declares that the check does not apply, for example node-version: 26 added after the configuration was saved. A job that no longer exists contributes no items, and neither does a hand-written check without imported_from.

check-latest: true does not discard a supported numeric workflow version or version-file constraint. Setup retains that constraint and reports that latest-release freshness is not guaranteed: execution selects a matching installed toolchain or approved provider archive without resolving the latest remote release. An explicit --runtime pin must still satisfy the numeric constraint.

For an imported workflow, --runtime NAME=VERSION replaces an untranslated selector such as node-version: lts/*. Preview readyci setup --preview --runtime node=24, then save the selected workflow with readyci setup --candidate ID --runtime node=24 --write-config. Source compatibility constraints still apply. Supported numeric workflow declarations can also be narrowed with repeated --runtime flags for node, go, python, java and pnpm. Runtime pins appear under runtime_pins in setup reports and in generated comments. The saved check records them under imported_from.runtime_pins, because a repository declaration such as package.json engines can give a pinned and an unpinned import the same runtime_requirements. A recorded pin replaces the selector only while the check's runtime_requirements still apply it; if you loosen the requirement, the selector is reported again. Execution ignores imported_from; execution requests contain only runtime_requirements. Resolving a runtime does not establish full upstream workflow coverage.

An exact numeric pin for a family without an approved archive provider, such as rust-toolchain.toml with channel = "1.75.0", is still sealed: only the selected image's advertised inventory can satisfy it, and setup cannot see that inventory offline. With credentials, setup's capability preflight reports a mismatch before the first run.

The service matches requirements against the selected image's installed inventory. A worker reads that inventory from the verified immutable image and checks the actual executable as the job user before preparation or tests. Where several installed versions satisfy a constraint, it selects the highest matching version. Node and cached Yarn select that exact installed version; Go uses its local toolchain and Rust disables automatic installation. When no installed Go, Node or pnpm version satisfies a declared numeric constraint, a compatible Linux/AMD64 runner can prepare a distribution from Ready CI's release-reviewed archive catalogs, selecting the highest approved version that satisfies the constraint. Exact pins remain exact. The catalogs contain reviewed Go, Node, pnpm 10 and pnpm 12 archives and grow only through reviewed Ready CI releases, so a range may resolve to a newer approved archive after a release. pnpm 12 requires both its wrapper and pinned native distribution, composed without an install script. Downloaded Node preserves independently selected image package-manager versions. Unsupported versions remain explicit blockers.

A pnpm declaration may preserve the Corepack form VERSION+sha512.HEX, with an exact numeric version and the complete 128-character lowercase hex SHA-512 of the npm tarball. Setup preserves this integrity through workflow ranges, configuration and the sealed plan. A version-only installed inventory cannot satisfy it: the approved catalog must contain that exact version and digest. Configuration rejects malformed pins. Setup emits a repository pin only when an approved archive matches it; a malformed, unmatched or conflicting pin becomes a review note.

Setup discloses each archive's runtime, version, checksum and size. The run's existing network policy must already allow dl.google.com for Go, nodejs.org for Node, and registry.npmjs.org for pnpm; runtime declarations do not add access or enable downloads for installed presence requirements.

SDK preparation runs as the job user in fresh per-run scratch space, verifies the catalog's exact size and SHA-256 (also SHA-512 for Node/pnpm) before bounded extraction, and probes the actual selected executable before repository preparation or tests. The archive catalogs are part of the approved worker release identity; CLI requests cannot choose a URL or checksum. The selected test command, runner size and timeout remain unchanged, so SDK preparation consumes the same run budget. Download, verification or storage failure prevents tests from starting. Other missing runtime families still require explicit preparation or another installed image.

A shared dependency warm phase requires compatible runtime constraints from its consumers; separate incompatible runtime preparation into separate workflows. A writable warmed cache alone cannot authorize an SDK: each preparation uses the approved artifact in fresh scratch space.

A check may be a string shorthand or an object. An object must set exactly one of checks.<name>.command or checks.<name>.steps.

Field Meaning
checks.<name>.command Main shell command.
checks.<name>.steps Ordered named steps; cannot coexist with command.
checks.<name>.runtime_requirements Runtime version constraints and supported pnpm integrity pins, enforced in worker matching and preparation.
checks.<name>.environment_requirements Explicit guest filesystem/network features, checked against release-bound acceptance and before repository preparation.
checks.<name>.dependency_check Named dependency installer; defaults to dependencies when defined. Preparation may use its own declared source view and binds the consumer to its successful cache lane. Nested references are unsupported.
checks.<name>.prepare Command or list run before the main command/steps, in order, stopping at the first failure. Each entry logs under phase prepare, step prepare-N from 1.
checks.<name>.post Command or list run after successful main execution.
checks.<name>.always Command or list run even after failure.
checks.<name>.changes working, staged, or all source selection.
checks.<name>.region Region override. Non-default regions must have a registered worker, as for region.
checks.<name>.image Runner image override.
checks.<name>.runner_size Preferred compute-size override.
checks.<name>.size Older compute-size spelling.
checks.<name>.timeout_seconds Positive timeout in seconds. Prefer timeout.
checks.<name>.timeout Duration override.
checks.<name>.retries Non-negative retry override.
checks.<name>.concurrency_group Group shared by mutually constrained runs.
checks.<name>.concurrency_limit Active-run limit; zero opts out of an inherited project group.
checks.<name>.matrix Shorthand axes map or expanded matrix object.
checks.<name>.when Conditional selection rules used by imported/planned workflows.
checks.<name>.sync Check-level sync override described above.
checks.<name>.cache_mode Older cache-mode spelling.
checks.<name>.cache Check-level cache settings described above.
checks.<name>.network_mode none, allowlist, or default.
checks.<name>.network_allowlist Check-specific allowlist. It is used only with allowlist mode.
checks.<name>.docker Request Docker/Testcontainers support.
checks.<name>.browser Install chromium, firefox, or webkit binaries through Playwright. The runner image must already contain the required operating-system libraries; this helper does not invoke privileged package installation.
checks.<name>.services Unique list of named project services to attach.
checks.<name>.worker_selector Required non-reserved worker label map. Avoid this outside controlled private fleets.
checks.<name>.keep_failed Retain a failed-workspace archive; default false.
checks.<name>.artifact_paths Check-specific artifact globs.
checks.<name>.outputs Reviewable output configuration.
checks.<name>.outputs.reviewable Generated files/reports retained for artifact handoff.
checks.<name>.imported_from Written by setup for an imported check. Setup previews use it to compare the upstream workflow job's current runtime declarations with the check's runtime_requirements; execution ignores it.
checks.<name>.imported_from.candidate Import candidate ID from readyci setup --preview --json, such as github-actions:.github/workflows/ci.yml:test.
checks.<name>.imported_from.runtime_pins Numeric --runtime choices for go, node, python, java or pnpm that replaced or narrowed the job's selectors. A pin counts only while the check's runtime_requirements still apply it.

Steps

Each check allows up to 32 steps:

Field Meaning
checks.<name>.steps[].name Required stable identifier containing letters, digits, _, or -.
checks.<name>.steps[].command Required shell command.
checks.<name>.steps[].always Run even after an earlier step fails; default false.
checks.<name>.steps[].env Up to 32 uppercase environment entries. Do not put stored project secrets here.
checks.<name>.steps[].timeout Per-step duration deadline.

A step deadline sends TERM to the step's process group. After one second of termination grace, processes that remain are killed. Deadline failures retain exit status 124, including forced termination; a command that independently exits 137 retains that status. Later always steps may run after a step timeout, subject to the independent whole-run deadline. The execution environment must provide GNU coreutils timeout (or gnutimeout on Ubuntu releases where timeout is provided by uutils); otherwise a timed step fails before running its command with exit status 125.

Matrix

A simple matrix is a map of uppercase variable names to non-empty string lists. The expanded form supports:

Field Meaning
checks.<name>.matrix.axes Cartesian-product variables.
checks.<name>.matrix.include Additional variants.
checks.<name>.matrix.exclude Exact variants removed from the product.
checks.<name>.matrix.fail_fast Stop scheduling later variants after failure; default false.
checks.<name>.matrix.max_parallel Bound concurrently active variants.

Conditions

Field Meaning
checks.<name>.when.event Event names that may select the check.
checks.<name>.when.branch Branch globs that may select the check.
checks.<name>.when.tag Tag glob that may select the check.
checks.<name>.when.env Required environment values.
checks.<name>.when.status Currently only success.
checks.<name>.when.changes Changed-path condition.
checks.<name>.when.changes.include Enabling path globs.
checks.<name>.when.changes.exclude Suppressing path globs.

Conditions inform local/imported planning; server-authorized verification still derives its plan from the active registered policy.

Complete example

version: 1
project_id: owner/repository
region: default
runner_size: standard
timeout: 30m

sync:
  include_untracked: true
  exclude: [dist/**, coverage/**]

cache:
  mode: cache-only
  size: 20GiB
  paths: [~/.cache/go-build, ~/go/pkg/mod]
  key_files: [go.work.sum, cli/go.sum, platform/go.sum]

network:
  mode: none
  warm_mode: allowlist
  warm_allowlist: [proxy.golang.org, sum.golang.org]

artifacts:
  paths: [coverage/**, test-results/**]

services:
  postgres:
    type: postgres
    version: "17"
    health:
      command: pg_isready -h postgres
      timeout: 30s
      interval: 1s

checks:
  dependencies:
    command: go mod download
  go-test:
    command: go test ./...
    docker: true
    services: [postgres]
    timeout: 20m
    outputs:
      reviewable: [test-results/**]

affected:
  rules:
    - paths: [cli/**, platform/**, go.work, go.work.sum]
      checks: go-test
  unmatched_checks: go-test
  tests:
    - path: cli/cmd/readyci/main.go
      checks: go-test