Repository navigation
ci: add GitHub Actions workflows; fix merge-marker defects, Q-learnin… - #20
Merged
Merged
Conversation
…g restore, rust lints; add regression tests Repository quality and CI pass for METARGON. Fixes: - python/benchmark_v09.py and python/test_benchmark_v09.py contained unresolved merge conflict markers (HEAD vs origin/main) that broke the v0.9 suite at import time. Restored the canonical v0.9 content from fd47b6b; only marker lines and the old origin/main branches removed. - academy/agents/baselines.py QLearningPolicy.load_state wrapped saved signatures in an extra tuple, so a reloaded Q-table was unreachable at decision time (silently discarding learning). Keys now rebuild from the saved row directly. - rust: fix clippy lints (map_or -> is_none_or; format! capture; scoped borrows in rust_academy memory) so cargo clippy -D warnings passes. - README/CONTRIBUTING: document that the Academy layer requires Python 3.11+ (stdlib tomllib) while python/ suites still run on 3.10+; note hash-seed sensitivity of internal Academy bookkeeping. Tests added: - academy/tests/test_agents.py: QLearningPolicy save/load round-trip and committed-policy load regression tests (runtime-reachable keys). - python/test_repo_hygiene.py: fails if unresolved merge markers reappear. CI (.github/workflows/ci.yml): repo hygiene checks, python v0.9 + historical suite, Academy suite (3.11/3.12) + CLI smoke, and both Rust crates (test --locked + clippy -D warnings) on pinned 1.88.0 toolchain. Python jobs pin PYTHONHASHSEED=0 for intra-job determinism. Known limitations (documented): full Academy eval/ rain runs are slow (Bayes baseline dominates); Academy internal hypothesis bookkeeping is hash-seed sensitive while summary metrics reproduce; cargo fmt is not enforced in CI because the crates are currently not rustfmt-clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…g restore, rust lints; add regression tests
Repository quality and CI pass for METARGON.
Fixes:
Tests added:
CI (.github/workflows/ci.yml): repo hygiene checks, python v0.9 +
historical suite, Academy suite (3.11/3.12) + CLI smoke, and both Rust
crates (test --locked + clippy -D warnings) on pinned 1.88.0 toolchain.
Python jobs pin PYTHONHASHSEED=0 for intra-job determinism.
Known limitations (documented): full Academy eval/ rain runs are slow (Bayes baseline dominates); Academy internal hypothesis bookkeeping is hash-seed sensitive while summary metrics reproduce; cargo fmt is not enforced in CI because the crates are currently not rustfmt-clean.