Spaces:
Sleeping
Sleeping
Commit History
-
Phase 6: finish deferred items + fix packaging
Closes the two items Phase 5 deliberately deferred, plus a real packaging bug. - /v1 back-compat alias: a tiny ASGI path-rewrite (_V1PathRewriteMiddleware) maps /v1/<path> to the existing unversioned handler — no route duplication, and the stable /reset|/step|/state contract is untouched. tests/test_api_v1.py asserts /v1/* responses are byte-identical to /* and the bare paths still work. - Trajectory-store concurrency: WAL journal mode + synchronous=NORMAL via a connect-time PRAGMA, and check_same_thread=False so the pooled SQLite connection is reused across worker threads. tests/test_db_pooling.py verifies WAL is on. - Packaging fix: switched [tool.setuptools] to find-packages with include globs and added env/learning/__init__.py, so a built wheel now ships every subpackage (env.agents/learning/safety/eval/connectors) instead of just top-level env. tests/test_packaging.py guards it. No grader change -> golden snapshots unchanged. 385 tests pass, coverage 82.46%, ruff…b67f537
-
Phase 1: add ruff + pre-commit tooling and apply lint/format pass
- Configure ruff (lint: E/F/I/W/UP/B; ignore E501 [formatter] and B008 [FastAPI]; format: double-quote) in pyproject.toml. - Add .pre-commit-config.yaml (ruff lint+format, prettier for dashboard sources, standard whitespace/EOF/yaml/toml hooks). - Apply 'ruff check --fix' + 'ruff format' across the repo (imports sorted, unused imports removed, consistent formatting) and fix the remaining lints (unused loop vars, dead conflicting_deadlines var, mid-file import in llm_agent). 'ruff check' is now clean; full suite stays green (165 passed). Validator log format preserved (test_validator_parity passes).6020272 -
Phase 1: commit untracked backend source (agents, approval, learning, benchmark, reports, telemetry)
These modules were present in the working tree and imported/tested but were never committed, leaving the history incomplete. Add them as-is: - env/agents/* (multi-agent coordinator + specialists) - env/approval.py, env/dashboard_api.py - env/learning/{example_extractor,prompt_enhancer}.py - benchmark/*, reports/*, telemetry/*be5a5d4 -
Phase 0: replace deprecated datetime.utcnow() with timezone-aware UTC
datetime.utcnow() is deprecated in Python 3.12+. Switch all call sites in db.py, repositories.py, trajectory_store.py and alerts.py to datetime.now(timezone.utc). Suite is clean under -W error::DeprecationWarning. Also drop the redundant ENV/ gitignore rule that, under core.ignorecase on Windows, shadowed the env/ source package and blocked staging new files.600a7f0