Skip to content

fix: gate tole-replay behind a non-default replay feature - #127

Merged
ajianaz merged 1 commit into
developfrom
fix/replay-bin-gate
Sep 22, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/replay-bin-gate

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

What (description of the change)

Gates the tole-replay eval bin behind a non-default replay feature: required-features = ["replay"] on the [[bin]] target. Default builds, cargo install tole-cli, and cargo package never include it; eval sessions opt in via cargo build -p tole-cli --features replay --bin tole-replay. Build commands updated in evals/README.md and the run.py docstring.

Why (the problem you're solving)

Closes #118 (cora full-scan MAJOR #12 — my own error from #108): every [[bin]] target builds unconditionally, so the comment claiming "NOT installed by cargo install" was false; the comment now matches enforced reality instead of aspiration.

Testing (how you verified this works)

  • Default build after removing stale artifacts: tole-replay NOT produced (PASS).
  • Building without the feature errors clearly: "target tole-replay requires the features: replay".
  • --features replay --bin tole-replay builds it (PASS).
  • cargo package -p tole-cli --list excludes replay.rs.
  • Full workspace suites green; cora review: No issues found.

Every [[bin]] target builds unconditionally, so the eval scorer
shipped in plain builds and cargo install tole-cli — contradicting
the documented operator-only contract (cora full-scan #12, my error
from #108). required-features = ["replay"] with a non-default
replay = [] feature: default builds/installations never produce it,
eval sessions opt in via --features replay. Build commands in
evals/README.md + run.py docstring updated. Verified: default build
produces no tole-replay, --features replay builds it, package list
excludes replay.rs.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 8f81867 into develop Sep 22, 2026
16 checks passed
@ajianaz
ajianaz deleted the fix/replay-bin-gate branch September 22, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

packaging: gate tole-replay behind a non-default feature (eval-only bin)

1 participant