Skip to content

bot: commit short-stack study harnesses as one example target - #964

Merged
svanlabs[bot] merged 1 commit into
mainfrom
fix/short-stack-response-vectors
Oct 10, 2026
Merged

svanlabs[bot] merged 1 commit into
mainfrom
fix/short-stack-response-vectors

Conversation

@svanlabs

@svanlabs svanlabs Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

What generated this?

Generated-by: claude-code/claude-haiku-5-5

Motivation

The four offline harnesses for the short-stack paired study were uncommitted in a working tree, so the evidence trail behind Match short-stack response vectors between training and live play lived outside git. This puts them in the repository.

They did not build. cargo check on the examples failed with 68 errors. The modules were written as one tree rooted at vector_study.rs, but cargo builds each top-level examples/*.rs as its own target.

This does not close the ticket above. It stays open until live replay records exist, so the description has no Closes line.

Solution

  • Moved vector_study.rs to crates/apps/bot/examples/vector_study/main.rs, with study_sim.rs, study_paired.rs and study_result.rs beside it. Cargo then builds one example target. No Cargo.toml change.
  • Deleted #[cfg(test)] mod tests; in study_sim.rs. No such file exists in the history.
  • Removed an unused pub use paired::{...}, an unused sim::Arm import, and two redundant path qualifiers.
  • #[allow(dead_code)] on mod study_sim in main.rs, with a comment. The study's other arms are helpers this entry point does not call. The scoped allow covers 25 dead-code warnings. The alternative is deleting those helpers. That is a reviewer's call.
  • rustfmt applied to the tree. Whitespace only.
  • The entry point asserts that the root path contains neural-fixes/experiment, so it only runs against the frozen copy.

No behaviour change. The harnesses are not part of any binary, and the bot and policy crates are untouched.

Not run: the harnesses were not executed. They type-check, pass clippy -D warnings, and build in the workspace test step.

Checklist

  • scripts/check.sh full passes on this exact commit. Output:

    == ok (full, 264 s)
    test.py: 892 passed, 0 failed, 4 ignored in 35 binaries
    

    Two timing-budget notices (docs check 228 s, whole gate 264 s, budget 120 s) are warnings, not failures.

  • This is one change: the harness move, one scoped allow and formatting.

  • Paired simulation: N/A, not a behaviour change.

  • Performance measurement: N/A, not a performance change.

  • Documents: none changed. The docs-name check passed inside the gate.

  • AI provenance: Generated-by: is in the commit footer and in the section above.

🤖 Generated with Claude Code

The four harnesses now sit in crates/apps/bot/examples/vector_study/,
one example target rooted at main.rs. Cargo builds each top-level
examples/*.rs as its own target, and the three module files only build
inside the tree. The tree type-checks and passes clippy -D warnings,
with the stray test module removed and rustfmt applied.

The study's other arms are dead code for this entry point, so the
module carries one scoped allow(dead_code). The entry point refuses to
run outside the frozen experiment copy.

Generated-by: claude-code/claude-haiku-5-5
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@svanlabs
svanlabs Bot merged commit 4c3ffd7 into main Oct 10, 2026
3 checks passed
@svanlabs
svanlabs Bot deleted the fix/short-stack-response-vectors branch October 10, 2026 14:13
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.

0 participants