inire/docs/development.md

20 lines
1.4 KiB
Markdown
Raw Normal View History

# Developer guide
## Choose a task
- Measure a single case, compare modes, or run the regression corpus with the [benchmark CLI](benchmarks.md).
- Find where to change planner selection, locks, search, or verification in the [architecture guide](architecture.md).
- Investigate coverage, route quality, or runtime using the [routing diagnostics](routing-diagnostics.md).
- Check the caller contract before changing an option or result field in the [public API reference](user/api-reference.md).
## Check a change
1. Run `uv sync` to install development dependencies. Activate `.venv` or prefix the commands with `uv run`.
2. Run `python -m pytest` for the correctness suite. Use `python -m pytest -m "not routing_corpus"` for a shorter local check and `ruff check inire scripts` for lint.
3. For a routing change, compare coverage, geometry, and work using a consistent [benchmark profile](benchmarks.md#choose-a-profile). If you expect exact paths, costs, and trace data to match, run an [exact parity comparison](routing-diagnostics.md#reproduce-and-compare).
For documentation figures, run `python -m scripts.render_documentation_figures` from the repository root. It writes the route plots and planner diagram under `docs/figures`. Pass `--output-dir` to render a scratch copy for comparison.
## Development history
See the [routing development archive](../archive/routing/README.md) for old plans, optimization logs, and recorded trace and performance data.