LegoFlow

BlocksTracerUsage

Validation Checks

Use this page when /tracer:check reports a problem and you want to understand what Tracer is validating. The slash command is the user-facing preflight: it checks task sources, repo pins, runtime environments, model endpoint, LiteLLM proxy port, Docker, agent runtime, and conversion settings before rollouts start.

The shell tests below are the lower-level version of that contract. Most users do not need to run them directly; they are useful when changing Tracer internals, plugin skills, dashboard behavior, or CI.

Run the Suite

# Cheap checks only. Safe for local development.
bash blocks/tracer/tests/run.sh

# Full path with the real-LLM, real-Docker 10-task smoke.
bash blocks/tracer/tests/run.sh --with-smoke

Each test returns 0 for pass, 77 for skip, and any other code for failure. The aggregate run.sh fails only when at least one test fails. Skipped tests are reported but do not fail the suite.

Check cases

CaseWhat it checksPass condition
01_config_schema.shTracer config.yaml shape and task-source mode.Required fields are present and task_source.provider is either local or huggingface.
02_repo_pins.shrepos/harbor and repos/swe_data_process.Both repos exist, match configured pins, keep expected origins, and have clean worktrees.
03_uv_envs_editable.shHarbor, LiteLLM, and swe_data_process environments.Expected envs exist; editable/import checks pass. swe_data_process may skip when SFT conversion is disabled.
04_llm_endpoint.shLLM endpoint and model catalog./models is reachable and the configured model is present, unless the check is explicitly skipped for external health.
05_hf_dataset.shHugging Face task source.Configured dataset is reachable when the provider is huggingface; local providers skip this case.
06_litellm_port.shLiteLLM proxy port.The configured port is free or already held by the current user.
07_runtime_image.shAgent runtime image cache.Configured image is already present, or a cold cache is skipped. Docker access failures still fail.
09_dashboard_regressions.shPublic dashboard export behavior.Exports avoid full trajectories, read R2 JSONL shards, show latest archives, and keep smoke config aligned.

Smoke run

The smoke test is smoke/10_hf_task_demo.sh. It temporarily swaps in a smoke configuration, runs up to 10 Hugging Face tasks, then restores the original config on exit.

It passes when at least one trial resolves successfully within the budget. This is a pipeline-health gate, not a model-quality benchmark. If it fails, inspect artifacts/jobs/smoke/<job>/*/result.json and the job logs to see whether the failure came from task preparation, Docker/runtime startup, the LLM endpoint, or verifier output.

Files

blocks/tracer/tests/
|-- cases/
|-- smoke/
`-- run.sh

See blocks/tracer/tests/README.md for detailed failure recipes.

On this page