Skip to main content

CI contract tests

reagent-flow tests should be deterministic. Do not make live LLM API calls in CI. Build contract tests with mocks, fixtures, or manually logged sessions, then fail the PR when a handoff or tool-output contract drifts.

Minimal command

If your reagent-flow tests live in a specific folder:

GitHub Actions

For a repository using reagent-flow itself, run:

Trace files in CI

Use a temporary trace_dir in tests unless you intentionally want trace files as artifacts. Do not upload .trace.json files from public CI unless they are sanitized. For sensitive keys, use redact_fields:
Redaction only affects saved trace files. Assertions still validate the original in-memory values.