Workflow guides
These workflows use the supported CLI and dashboard boundaries. Review configuration
and check selection before the first upload, and use verify when you need a durable,
workspace-bound verdict.
Choose a guide
- Run your first test: account, install, project setup, and results.
- Node.js with npm: dependency preparation and offline tests.
- Go modules: module caches and test configuration.
- Docker and services: Postgres and Testcontainers.
- Team administration: billing, invitations, roles, and SSO.
Configure a monorepo
Define a narrow check for each independently testable area, then map changed
paths under affected.rules:
checks:
api:
command: go test ./services/api/...
web:
command: pnpm --dir apps/web test
all:
command: make check
affected:
rules:
- paths: [services/api/**]
checks: api
- paths: [apps/web/**]
checks: web
unmatched_checks: all
subsumes:
all: [api, web]
tests:
- path: apps/web/src/App.tsx
checks: web
Then run:
readyci affected audit --strict --examples --duplicates
readyci affected explain apps/web/src/App.tsx
readyci affected --dry-run --json
Do not use a broad "**" rule merely to silence coverage errors. An explicit
unmatched_checks fallback runs only for otherwise unknown paths and preserves
narrow routing.
Move existing CI commands into Ready CI
Use local inspection first:
readyci plan --repo-map --json
readyci import make --json
readyci import github-actions --json
Imports extract recognizable commands; they do not reproduce provider images,
permissions, secrets, triggers, or service topology. Copy only the checks you
review. To select a candidate, review configuration, and run it through guided
setup, use readyci setup --import make or readyci setup --import github-actions.
Use readyci setup --preview --json for candidate IDs and requirements. Automation
must name its selection with --candidate ID --yes. Configure unsupported
resources, provider behavior, and services manually, then validate with
readyci check --dry-run --why --json NAME. Existing configuration is preserved
unless replacement is explicitly requested with --force.
Keep broad push, pull-request, and release regression in CI. Ready CI's primary edit loop is fast affected verification before handing the change back or pushing.
Give a coding agent verification access
Create a least-privilege token from the dashboard or an authenticated developer CLI:
readyci agent token create --preset verify-only --ttl 30d --json
Store the returned value in the agent's secret environment as
READYCI_API_TOKEN; never write it into repo instructions. Install portable
instructions and validate them:
readyci agent setup
readyci agent instructions doctor --json
readyci agent plan --json --intent edit-loop
The agent's normal command is:
readyci verify --json --progress=status --intent edit-loop \
--task-id "$TASK_ID" --idempotency-key "$SESSION_KEY"
Use final-handoff for the last verification of a completed change,
fixture-update when files must return through artifact handoff, and
security-sensitive for forced no-network/no-secret planning.
Establish authoritative verification policy
Without registered policy, the client chooses the plan and passing work reports
checks_passed with exit 6. To establish an authoritative verdict:
- Edit and review the intended
.readyci.ymlpolicy source. - Submit it with
readyci project policy propose --file .readyci.yml --json. - Open the returned
review_url, review the field changes, and approve the saved proposal in the dashboard as an owner or admin. No YAML copying or digest typing is required. - Run plain
readyci verify; avoid--checkwhen complete affected coverage is required. - Inspect
plan.authority,coverage,snapshot.digest,result_digest, andcurrentnessin the JSON result.
An agent token with policies:propose may submit a proposal but cannot activate
or change the trusted policy. Candidate
workspace bytes are never automatically promoted to trusted policy.
A real repair loop
On October 10, 2026, we used Ready CI to check changes to this site's landing
page and documentation. The hosted web-e2e check failed: two browser tests
still looked for copy we had intentionally replaced. The other three selected
checks passed. The following excerpts come from those recorded runs.
Read the failure before changing code
The failed run was run_215f2032f6c2b1cd. We can inspect its report with:
readyci agent explain --json run_215f2032f6c2b1cd
These are selected fields from that report; the full command and evidence are omitted:
{
"run_id": "run_215f2032f6c2b1cd",
"status": "failed",
"exit_code": 1,
"check": "web-e2e",
"repair": {
"classification": "test_failed",
"agent_action": "fix_code",
"primary_file": "/workspace/web/tests/e2e/user-stories.spec.ts",
"rerun_command": "readyci verify --json --progress=status --check web-e2e"
}
}
The browser log showed an expectation that could no longer find the old landing page text:
Locator: getByText(/Ready CI runs tests against your current workspace, including uncommitted changes/)
Expected: visible
Error: element(s) not found
The report pointed to the test file. Deciding whether the page or the test was
wrong still required reviewing the intended change. Here, the new copy was
intentional, so the repair updated the landing-page and how-it-works text
selectors in web/tests/e2e/user-stories.spec.ts. The tests continued checking
that the product explanation was visible and the calls to action worked.
Test the edited workspace
After the repair, the targeted hosted check passed:
readyci verify --json --progress=status --check web-e2e
| Recorded result | Before the repair | After the repair |
|---|---|---|
| Session | group_33caf9c7c6d6cdab |
group_c247f72a8bd23bd5 |
| Browser run | run_215f2032f6c2b1cd |
run_82e0b705ff7ce613 |
| Browser status | failed |
succeeded |
| Browser classification | test_failed |
success |
| Browser process exit | 1 |
0 |
| Session verdict | failed |
checks_passed |
| Session classification | test_failed |
partial_verification |
The passing browser process did not establish complete affected coverage. The
targeted verification command exited 6: other affected checks were outside
that session's scope. Use plain readyci verify for a complete affected plan
under approved project policy.
Keep the result with the files it tested
Both sessions tested uncommitted changes against the same Git commit. Their workspace fingerprints differed:
Before: sha256:6e086d70472bbbdb17c46e1b8a1b816f4de0524741ae4b33381ce21494158657
After: sha256:bf59e27e850dc97f046cfed6b61569b4c771540da98e20e094cfc78f11a0cbe8
The earlier failure remains a record of the earlier files. The later pass
belongs to the repaired snapshot. Further edits need another run, even if the
commit has not changed. A saved currentness: current value describes the
comparison made when that result was collected; it does not cover future edits.
To follow this loop in your own project, use your run ID with
readyci agent explain --json RUN_ID, inspect its logs and artifacts, make the
repair, and run verification again. Historical Ready CI run IDs require access
to our project; the excerpts above preserve the relevant evidence for readers.
Warm dependencies, then verify without network
Create an explicit dependency check and warm allowlist:
network:
mode: none
warm_mode: allowlist
warm_allowlist:
- registry.npmjs.org
cache:
paths: [~/.local/share/pnpm/store]
key_files: [pnpm-lock.yaml]
checks:
dependencies:
command: pnpm install --frozen-lockfile
web:
command: pnpm test
Preview and warm:
readyci warm --profile dependencies --dry-run
readyci warm --profile dependencies
readyci verify --json --progress=status
Warm execution uses the declared dependency commands and network allowlist.
Setup can generate supported installation commands for review before saving
configuration. The dependency profile uses the same consumer selection and
runtime groups as readyci verify --check dependencies; it does not rerun the
installer offline. All targets must use the same cache-lane key and size.
Different effective runtime requirements get separate preparation and cache
namespaces, so later checks can reuse dependencies without mixing toolchains.
Collect and apply generated artifacts
Declare retained paths:
artifacts:
paths: [coverage/**, test-results/**]
checks:
snapshots:
command: pnpm test --update-snapshots
outputs:
reviewable: [tests/__snapshots__/**]
Inspect and download:
readyci artifacts ls RUN_ID
readyci artifacts download RUN_ID
Apply selected generated files only after a preview:
readyci agent artifacts plan --json RUN_ID --paths 'tests/__snapshots__/**'
readyci agent artifacts apply --json RUN_ID --paths 'tests/__snapshots__/**'
readyci agent artifacts apply --json RUN_ID --confirm --paths 'tests/__snapshots__/**'
Run local diff and verification again after applying files because the workspace digest has changed.
Use project secrets
Set and list write-only secret metadata:
readyci secrets set --project owner/repo --from-env NPM_TOKEN NPM_TOKEN
readyci secrets list --project owner/repo
Review the source in a trusted checkout. For a registered verification check, use
the same change mode as the planned run and read snapshot_digest from the preview.
This prints the check's own source digest even when its dependency installer
uses a different set of files. For a local execution policy, omit --registered.
readyci sync --dry-run --registered --project owner/repo --check integration --json
readyci project set --project owner/repo --trusted-secret-snapshot "$REVIEWED_DIGEST" --trusted-secret-check integration
--trusted-secret-check plans the check from .readyci.yml in the current
directory, so run it from the reviewed checkout; for a registered check, that
file must match the registered policy. Each grant then covers the check's
command, the cache paths, environment, phases and keep_failed setting
rendered around it, and the reviewed source digest. A check with a matrix gets
one grant per variant. --trusted-secret-command COMMAND approves only a
command that runs without a generated wrapper, because a check with any of
those settings does not run its command text alone. readyci run inherits the
project's cache paths, so its runs usually have a wrapper too. A run's
secret_policy_command_hash in readyci runs status shows the hash the
service computed for it; approve such a run by passing that hash and the
reviewed digest to --trusted-secret-command-hash HASH@DIGEST. Edits that change the digest or the check require
approval by someone with secrets:write.
A run that receives secrets sees only that source: its Git HEAD and index
hold the reviewed snapshot rather than the uploaded baseline, so git diff
reports no local changes. Git there compares exact bytes, without the
repository's line-ending, filter or encoding attributes. The approval does not
cover the upload's change metadata, so the run receives none: no changed-file
list (READYCI_CHANGED_FILES and CHECK_TOUCHED_FILES_FROM are unset), no
READYCI_CHANGE_MODE, and the fixed branch readyci-snapshot instead of the
uploaded branch name.
Adding a grant preserves existing approvals, including those for queued runs.
To retire one grant, copy its pair from readyci project get and run
readyci project set --project owner/repo --remove-trusted-secret-command-hash "$PAIR".
Queued runs that rely on other grants keep their approvals.
Use --clear-trusted-secret-command-hashes to revoke all grants. Each project can
hold up to 128 distinct approvals.
The server checks the current approvals when a worker claims the session node.
Approval covers the command and source, not the files a run publishes. A
secret-bearing check can publish artifact_paths only under a registered
verification policy; with a local execution policy, the run is denied.
Secrets that need no approval
Every edit an agent makes changes the workspace digest, so a check that needs an approved secret waits for a person after each change. For low-value credentials, such as a payment provider's test-mode key or a throwaway test database, you can skip that wait:
readyci secrets set --project owner/repo --requires-approval=false STRIPE_TEST_KEY
A run whose command and workspace have no approval then receives only the secrets marked this way; an approved run still receives every secret.
Treat these values as readable by anyone whose token can start a session with
runs:create_with_secrets, and by anyone who can read the project's runs.
Code nobody reviewed runs with them and can print a value to the run's output
in a form log redaction does not catch, such as base64. What the server does
limit is where the run itself can send a value. The run must use
network_mode: none, or the network allowlist of a registered verification
policy, so code in the run, such as a compromised dependency, cannot post the
value to a server of its choosing. An allowlist the session supplied itself
does not count, because the agent could name any host. In allowlist mode the
VM's DNS answers only the listed hosts, but the filter permits IP addresses,
not hostnames: when a listed host shares its addresses with other services, as
many CDN-hosted APIs do, the run can reach those services too. Prefer
network_mode: none when the check can run without the network.
Every other rule in this section still applies, including the
runs:create_with_secrets scope and the artifact restriction.
A run that breaks the network rule is denied, with both the missing approval
and the network rule as reasons. These runs use their own cache lanes, apart from approved
secret runs and from runs without secrets. Run detail shows
secret_release: approval_free for them. Changing whether a secret requires
approval clears the project's secret lanes. Pass --requires-approval=true to
restore the default. Never mark a production or high-value credential this way.
Secret-bearing runs use their own cache lanes, which no other run can read or
write. The first such run on each worker starts cold. Dependency preparation
fills a shared lane, so a session where any check requests secrets cannot
include it. The CLI reports this before upload, including in --dry-run
previews and readyci agent plan. The service rejects such a session at
creation, including an API recipe that sets warm_checks. Install
dependencies in the check's own command and run it with readyci check --skip-warm, or do not request secrets. Because readyci verify always
prepares dependencies for a selected check that has a dependency check, it
cannot request secrets for that check. A dependency check selected by name
cannot request secrets either. Revoking an
approval, or changing or deleting a secret, clears the project's secret lanes.
The standalone POST /v1/runs endpoint rejects requests for secrets at creation.
The CLI's readyci run uses an execution session. Configuring a Git repository
or branch gate requires independently verified Git source. Removing the last
Git restriction while approvals are configured requires secrets:write.
Ordinary tests exclude secrets by default. Opt in explicitly when needed:
readyci check --request-secrets integration
readyci run --request-secrets "npm run integration"
readyci affected --request-secrets
The request also needs a token with runs:create_with_secrets and server
secret-release policy permitting the command and source. Automatic dependency
preparation never receives project secrets. Session retries and reruns preserve
the opt-in and recheck authorization. Advanced verification also supports
readyci verify --request-secrets and requires its registered verification policy.
secrets:read authorizes metadata access only. Neither it nor secrets:*
authorizes injection. The Developer CLI preset and login token do not grant
secret injection; create a scoped token with
runs:create_with_secrets when needed.
Secret values are never returned by list, dashboard, run detail, or evidence receipts.
Cancel, retry, and rerun
- Cancel an individual run with
readyci runs cancel --reason TEXT RUN_ID. - Cancel the durable verification session with
readyci sessions cancel SESSION_ID. - Use
readyci sessions retry SESSION_IDto reuse exact retained source and frozen policy after a retryable infrastructure failure. - Use
readyci sessions rerun SESSION_IDafter the local workspace or active policy changes.
Do not reconstruct a verification retry from an old run specification; that would lose the exact source, policy, and evidence binding.
Reusing warm dependencies in the edit loop
After preparing dependencies, use readyci check --skip-warm --watch NAME or
readyci affected --skip-warm --watch to omit automatic preparation from each
iteration. Dry runs disclose this choice, and readyci sessions rerun SESSION_ID
preserves it. A cache miss does not trigger extra preparation or widen network
access; run readyci warm --check dependencies explicitly when needed.