Spaces:
Runtime error
Runtime error
Commit History
-
feat: add entropy display to game status messagesβ
- Show real-time entropy during playing rounds to track belief uncertainty - Include final entropy in completed game status alongside accuracy - Entropy displayed in bits with 2 decimal precision for educational value - Helps users understand Bayesian learning process and confidence levels π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>1b86466 -
refactor: improve clarity of Bayesian update with explicit posterior and marginal variablesβ
- Replace implicit normalization with explicit posterior_unnormalized calculation - Add explicit marginal calculation showing P(evidence) = sum of (prior * likelihood) - Improve pedagogical clarity of Bayes' rule implementation - Maintain identical mathematical behavior with better variable naming π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>6f1dba6
-
fix: move imports to top-level to resolve linting errorsβ
- Move belief_module import to top of test_architectural_constraints.py - Move BeliefUpdate import to top of test_game_coordination.py - Resolve PLC0415 linting errors from CI pipeline π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>f63cf4c -
feat: add multi-evidence extension with configurable evidence typesβ
- Add Basic and Extended evidence type configuration - Implement multi-evidence generation (e.g., ["lower", "half"]) - Update Bayesian inference for joint probability calculations - Add UI dropdown for evidence type selection - Maintain domain separation and architectural constraints - Update all tests (83 passing) for new multi-evidence format Basic Evidence: higher/lower/same Extended Evidence: adds half/double for richer inference π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>230696b -
fix: correct HF authentication format with configurable token nameβ
- Fix git URL to use correct Hugging Face authentication format - Add HF_TOKEN_NAME environment variable for token name configuration - Use token name instead of username for git authentication - Update instructions to include token name configuration - Should resolve authentication failed error in deployment π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>0f5f162 -
feat: improve HF deployment workflow with proper configurationβ
- Add configurable environment variables for HF username and space name - Include comprehensive setup instructions in workflow comments - Add error checking for missing HF_TOKEN secret - Update README with step-by-step deployment setup guide - Make deployment workflow generic and reusable π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>eb818c1 -
fix: resolve formatting inconsistencies between make format and pre-commitβ
- Update ruff version in pre-commit-config.yaml to v0.11.13 to match local ruff - Fix version mismatch that caused disagreement between make format and pre-commit - Standardize assert formatting throughout test_architectural_constraints.py - Both commands now run without making any formatting changes π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>706af58 -
fix: improve security scanning with graceful SARIF upload handlingβ
- Add table format output for immediate vulnerability visibility - Keep SARIF format for GitHub Security tab when permissions allow - Add continue-on-error to prevent CI failure on SARIF upload permission issues - Ensures security scanning always runs and provides results π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>69ed576 -
ci: fix formating in test
05d254d -
fix: update CodeQL Action to v3 to resolve deprecation warningβ
- Update github/codeql-action/upload-sarif from v2 to v3 - Resolves deprecation warning in CI pipeline - Maintains SARIF upload functionality for security scanning π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>755e6e4 -
ci: fix formating in test
9588ba3 -
feat: make HF deployment conditional on successful CIβ
- Update deploy workflow to trigger only after CI workflow completes successfully - Add workflow_run trigger with success condition check - Ensure deployment only happens when all tests, linting, and security checks pass - Maintain manual deployment option via workflow_dispatch π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>73accd1 -
refactor: fix CI/CD pipeline and modernize Python toolingβ
- Replace multiple linting tools with ruff for 10-100x performance improvement - Add comprehensive pre-commit hooks with ruff, mypy, and bandit - Create GitHub Actions workflows for multi-Python testing (3.10, 3.11, 3.12) - Add parallel test execution with pytest-xdist for faster CI - Configure security scanning with Trivy vulnerability scanner - Add auto-deployment workflow for Hugging Face Spaces - Create Makefile with uv run commands for consistent development workflow - Add centralized tool configuration in pyproject.toml - Remove round_info from UI for cleaner interface design - Update all tests to match new 3-tuple return format - Fix type annotations for modern Python (int | None syntax) - Add constants for magic numbers to improve code quality - Configure relaxed mypy settings for CI compatibility Breaking changes: - UI interface methods now return 3 values instead of 4 (removed round_info) - All linting now uses ruff instead of separate black/isort/flake8 tools π€ Generated β¦d10d3ce
-
feat: add comprehensive CI/CD automation and modern Python toolingβ
- Add pre-commit configuration with ruff (replaces black/isort/flake8), mypy, and bandit - Add GitHub Actions workflows for CI testing and automated HF Spaces deployment - Add pyproject.toml with modern Python packaging and centralized tool configuration - Update requirements.txt with development dependencies including ruff and pytest plugins - Add comprehensive ruff rule set: pycodestyle, pyflakes, bugbear, comprehensions, pyupgrade - Configure multi-Python version testing (3.10, 3.11, 3.12) with parallel execution - Add security scanning with bandit and Trivy vulnerability scanner - Update README with development workflow and CI/CD pipeline documentation Performance improvements: - Ruff provides 10-100x faster linting compared to traditional tools - pytest-xdist enables parallel test execution - Single tool replaces multiple separate linters π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>d989c27 -
refactor(ui): Remove round_info section to reduce visual clutter
a6994a0 -
refactor(ui): improve layout and code formattingβ
- Simplify layout by placing belief distribution and game log in right column - Improve code formatting with consistent string quotes and line breaks - Better visual hierarchy with status, round info, chart, and log in vertical flow - Maintain existing functionality while improving user experience8a0bc9d -
docs: add Hugging Face Spaces metadata to READMEβ
- Add YAML frontmatter with Gradio SDK configuration - Set title, emoji, and color scheme for HF Spaces - Specify app_file as app.py for proper deployment π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>821a5f5 -
feat: implement complete Bayesian Game with domain-driven architectureβ
- Add Environment Domain with EnvironmentEvidence dataclass and Environment class for pure evidence generation - Add Belief Domain with BeliefUpdate dataclass and BayesianBeliefState class for Bayesian inference - Add Game Coordination with GameState dataclass and BayesianGame orchestration class - Add Gradio web interface with real-time belief visualization and game controls - Implement proper information filtering: belief agent receives only comparison results, not dice values - Add comprehensive test suite (78 tests) including architectural constraint verification - Add memory leak prevention and graceful game completion in UI - Support configurable dice sides and round counts with reproducible seeded experiments π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>571f3d0