Skip to content

Release polish for 1.0.0: lags in the config, steps as floats, atomic Run.save, release date check - #92

Merged
PatrickHenkel1 merged 1 commit into
refactoring_v1.0.0from
v1/release-polish
Nov 8, 2026
Merged

PatrickHenkel1 merged 1 commit into
refactoring_v1.0.0from
v1/release-polish

Conversation

@PatrickHenkel1

Copy link
Copy Markdown
Collaborator

Small fixes from the final release review of 1.0.0.

  • Lags in the preprocessing config: with inputs taken from the model (inputs=None), lags={'T': 2} was not part of get_config(). PreprocessingData.from_config, and with it repeat_training, then trained without the lagged inputs. The lags now stay in the config (lags) until the inputs are resolved, after that they are part of inputs (lags: null). The key is additive, AgentLib-MPC only reads test_size, val_size, random_state and the inputs/outputs.
  • Whole floats as steps: _resolve_steps(96.0) gave 0, because pandas reads a number as nanoseconds. eval_horizon=96.0 was therefore silently dropped. Whole floats are now steps, other floats raise a ValueError.
  • Run.save checks before it writes: with overwrite=False, the JSON configs used to be written before the check on the existing model file, so new configs ended up next to an old model. All target files are now checked first.
  • Version Check: on a tag push, the CHANGELOG entry of the version needs a date (YYYY-MM-DD), so a tag with ## [1.0.0] – unreleased fails. docs/release_1.0.0.md is updated accordingly.

Tests: tests/test_preprocessing (lags round trip, steps as numbers) and tests/test_io/test_run.py (save stops before any file is written). Full suite locally: 274 passed, 1 skipped (RNN contract test, AgentLib-MPC main installed).

🤖 Generated with Claude Code

…ps, atomic Run.save, release date check

- Lags of inputs taken from the model (inputs=None) are kept in the preprocessing config until the
  inputs are resolved, so from_config (repeat_training) trains with the same inputs.
- Numbers of steps given as whole floats (96.0) are steps instead of nanoseconds; other floats raise.
- Run.save checks all target files before writing, a run without overwrite is not left half written.
- Version Check requires a release date in the CHANGELOG entry of the tagged version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 8, 2026 16:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@PatrickHenkel1
PatrickHenkel1 merged commit 525ff18 into refactoring_v1.0.0 Nov 8, 2026
28 checks passed
@PatrickHenkel1
PatrickHenkel1 deleted the v1/release-polish branch November 8, 2026 16:25
@PatrickHenkel1 PatrickHenkel1 mentioned this pull request Nov 8, 2026
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.

2 participants