# pavoz

> In-process Python workflow engine: static DAG + per-node retries + checkpoints + single-stage replay and time-travel forks. Standard library only, zero runtime dependencies, no server/scheduler/YAML.

Install: `pip install pavoz`

## Start here

- [README.md](README.md): what it is, why it exists, 30-second quickstart, feature table
- [docs/en/quickstart.md](docs/en/quickstart.md) · [docs/cn/quickstart.md](docs/cn/quickstart.md): CLI + code + `ctx.call` + TestPipe
- [docs/en/architecture.md](docs/en/architecture.md) · [docs/cn/architecture.md](docs/cn/architecture.md): core design decisions, extension surface, event table
- [docs/en/api.md](docs/en/api.md) · [docs/cn/api.md](docs/cn/api.md): public API reference
- [docs/storage.md](docs/storage.md): config-driven storage adapters
- [examples/](examples/): runnable demos (LLM pipeline, convergence loop, resume after crash)
- [CHANGELOG.md](CHANGELOG.md): version history, including `[Unreleased]`

## Rules that do not change

- **Core is stdlib-only.** `dependencies = []` in `pyproject.toml`, forever. Never import a third-party package from `pavoz/`.
- **Loops stay in business code.** No `retry_budget` / `escalation` / scheduler / distributed primitives in core — wrap a stage function in a decorator instead.
- **Extensions are separate packages.** Core never depends on them; see [pavoz-extensions](https://github.com/liyong-labs/pavoz-extensions) for the reference implementation.

## Before you commit

```bash
python -m pytest tests/ -q --cov=pavoz --cov-fail-under=80   # tests + coverage gate
python -m pyflakes pavoz tests examples tools              # lint (pyflakes, not ruff)
python -m pyright                          # type check (basic)
python tools/check_doc_links.py            # markdown links must resolve
python tools/check_doc_style.py            # doc style (clichés / headings / punctuation)
python tools/check_changelog.py            # released CHANGELOG sections are frozen
python tools/check_text_integrity.py       # no U+FFFD in tracked text
python tools/check_business_leak.py        # no vendor models / consumer keys
```

Docs in this repo are for humans first: value up front, runnable example early, no dead links.
The gate list above is derived from `.github/workflows/test.yml` and kept in sync by
`tests/test_llms_txt_current.py` — do not hand-edit it into disagreement.
