# Changelog

## Score

- CAI 59 → 60 (+0.6)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

## Lenses

- Code Health 69 → 64 (-4.3)
- Architecture 90 → 90 (-0.5)
- Maturity 50 → 53 (+3.1)
- Readiness 59 → 58 (-1.1)
- Security 72 → 72 (+0.3)
- Domain Modelling 100 → 100 (+0.0)
- Performance 80 → 80 (+0.0)

## Resolved (20)

- Ambiguous reset semantics. `Account` has two reset methods with overlapping responsibilities. `reset_report` likely clears metrics, while `reset` clears state. However, `reset` also takes `benchmark_config` and `port_metr_enabled`, suggesting it might re-initialize the account entirely. This forces users to guess which method to call to 'start over' vs 'clear history'.
- CSIIndex._read_change_from_url (cognitive 21) (scripts/data_collector/cn_index/collector.py)
- DataHealthChecker.check_large_step_changes (cognitive 16) (scripts/check_data_health.py)
- Documentation: no project overview (README.md)
- DumpPitData._dump_pit (cognitive 38) (scripts/dump_pit.py)
- DumpPitData._dump_pit (cyclomatic 17) (scripts/dump_pit.py)
- Duplicate implementation across Position types. `BasePosition`, `Position`, and `InfPosition` all expose identical `update_order` signatures. While they may have different internal implementations, exposing all three as distinct public types with identical interfaces suggests a lack of clear inheritance or abstraction, potentially confusing users about which Position type to instantiate.
- Duplicated block (5 lines × 2) (qlib/contrib/data/highfreq_handler.py)
- Duplicated block (5 lines × 2) (qlib/contrib/model/pytorch_gats.py)
- Duplicated block (5 lines × 2) (qlib/workflow/record_temp.py)
- Duplicated block (6–8 lines × 2) (examples/highfreq/highfreq_handler.py)
- Duplicated block (7 lines × 4) (qlib/contrib/model/pytorch_localformer.py)
- FileTooLong: yahoo/collector.py (scripts/data_collector/yahoo/collector.py)
- Inconsistent return types for identical operations. `PandasQuote.get_data` and `NumpyQuote.get_data` likely return different data structures (DataFrame vs ndarray) despite having the same signature and intent. While this is a polymorphic design, the lack of a unified return type or clear documentation in the signature can lead to inconsistent user code handling.
- Naming collision between module-level function and internal loop method. `backtest.backtest` (module) and `backtest.backtest_loop` (class/module) appear to perform the same orchestration logic. The distinction between 'backtest' (high-level API) and 'backtest_loop' (internal execution) is not clear from the signature names alone, especially since `backtest_loop` is exposed in the public surface.
- Near-duplicate member family (4 members, 29 shared lines) (qlib/contrib/model/pytorch_localformer.py)
- No ADRs found
- Off-boarding risk: anonymized user #1
- Redundant initialization entry points. `init` and `init_from_yaml_conf` perform the same core action (initializing the library state) but are split by input format. `auto_init` is a convenience wrapper that likely calls one of these, creating confusion about which method to use for explicit configuration.
- TodoComment repeated across 10 files (qlib/backtest/decision.py)

## New (64)

- Critical CVE: [GHSA redacted] (examples/benchmarks_dynamic/DDG-DA/requirements.txt)
- Edited copies of one member (3 members, 16+ corresponding lines) (examples/rolling_process_data/rolling_handler.py)
- Edited copies of one member (3 members, 18+ corresponding lines) (qlib/contrib/model/pytorch_gats.py)
- Edited copies of one member (3 members, 4+ corresponding lines) (qlib/contrib/model/pytorch_gru.py)
- Edited copies of one member (3 members, 77+ corresponding lines) (qlib/contrib/model/pytorch_add.py)
- Edited copies of one member (4 members, 12+ corresponding lines) (qlib/contrib/model/pytorch_alstm_ts.py)
- Edited copies of one member (4 members, 4+ corresponding lines) (qlib/contrib/model/catboost_model.py)
- Edited copy of a member (10 corresponding lines) (qlib/data/ops.py)
- Edited copy of a member (12 corresponding lines) (qlib/backtest/report.py)
- Edited copy of a member (12 corresponding lines) (qlib/data/ops.py)
- Edited copy of a member (12 corresponding lines) (qlib/rl/utils/log.py)
- Edited copy of a member (12 corresponding lines) (qlib/utils/index_data.py)
- Edited copy of a member (13 corresponding lines) (qlib/contrib/strategy/rule_strategy.py)
- Edited copy of a member (13 corresponding lines) (qlib/rl/order_execution/simulator_simple.py)
- Edited copy of a member (13 corresponding lines) (qlib/workflow/exp.py)
- Edited copy of a member (14 corresponding lines) (qlib/contrib/model/pytorch_gats_ts.py)
- Edited copy of a member (14 corresponding lines) (qlib/data/dataset/processor.py)
- Edited copy of a member (18 corresponding lines) (qlib/contrib/model/pytorch_alstm_ts.py)
- Edited copy of a member (2 corresponding lines) (qlib/rl/data/native.py)
- Edited copy of a member (2 corresponding lines) (qlib/rl/data/native.py)
- …and 44 more

## Architecture

- Unchanged — 0 containers · 1 contexts · 0 edges
