# Changelog

## Score

- CAI 38 → 38 (-0.1)

## Lenses

- Code Health 48 → 47 (-0.3)
- Architecture 89 → 89 (-0.2)
- Maturity 67 → 70 (+3.3)
- Readiness 33 → 33 (+0.0)
- Security 56 → 53 (-3.4)
- Domain Modelling 33 → 33 (+0.0)
- Accessibility 42 → 42 (+0.0)
- Performance 100 → 100 (+0.0)

## Resolved (14)

- Duplicate Enum Definition: Two distinct classes named `Mode` exist in different modules with identical fields (`sft`, `rm`, `rl`). This forces users to import from specific modules rather than a central location, increasing coupling and confusion.
- Fork-triggerable workflow runs with an unscoped write token
- High CVE: [GHSA redacted] (backend/requirements.txt)
- High CVE: [GHSA redacted] (data/datasets/zhihu-kol/requirements.txt)
- High CVE: [GHSA redacted] (data/datasets/zhihu-kol/requirements.txt)
- Inconsistent Dataset Loading API: Different modules use different function names (`load_alpaca_dataset`, `load_oasst_export`, `load_oig_file`) for similar operations (loading a specific dataset into a usable format). There is no unified `load_dataset` interface.
- Inconsistent Method Signatures: `DatasetEntrySft.get_formatted` returns `list[str]`, while `DatasetEntryRm.get_formatted` returns `tuple[str, ...]`. While functionally similar, the return types differ, which can cause type-checking issues for consumers expecting a consistent interface.
- Most significant orphaned file (model/model_training/custom_datasets/qa_datasets.py)
- Most significant orphaned file (model/model_training/models/prefix_llama.py)
- PR-triggered workflow without a permissions block
- Secret: generic-api-key (notebooks/closed-book-qa/Closed Book QA Generator.ipynb)
- Secret: square-access-token (notebooks/detoxify-evaluation/detoxify-evaluation.ipynb)
- Split website
- Workflow holding a long-lived secret is unscoped

## New (194)

- Fork-triggerable workflow runs with an unscoped write token (.github/workflows/pre-commit.yaml)
- High CVE: [GHSA redacted] (data/datasets/zhihu-kol/requirements.txt)
- High secret: WD-SECRET-0005 (backend/alembic.ini)
- High vulnerability: [GHSA redacted] (backend/requirements.txt)
- High vulnerability: [GHSA redacted] (data/datasets/zhihu-kol/requirements.txt)
- Most significant orphaned file (backend/oasst_backend/prompt_repository.py)
- Most significant orphaned file (backend/oasst_backend/tree_manager.py)
- Orphaned file (backend/alembic/versions/2022_12_15_0000-23e5fea252dd_first_revision.py)
- Orphaned file (backend/alembic/versions/2022_12_16_0000-cd7de470586e_v1_db_structure.py)
- Orphaned file (backend/alembic/versions/2022_12_27_1444-3358eb6834e6_add_journal_table.py)
- Orphaned file (backend/alembic/versions/2022_12_30_2054-abb47e9d145a_name_changes_person_user_post_message_.py)
- Orphaned file (backend/alembic/versions/2023_01_08_2208-92a367bb9f40_restructure_message_tree_state_table.py)
- Orphaned file (backend/alembic/versions/2023_01_14_1509-619255ae9076_add_rank_to_message_table.py)
- Orphaned file (backend/alembic/versions/2023_01_15_0002-7c98102efbca_change_user_stats_ranking_counts.py)
- Orphaned file (backend/alembic/versions/2023_01_19_2153-7f0a28a156f4_switch_to_timestamp_with_tz.py)
- Orphaned file (backend/alembic/versions/2023_02_02_1544-4d7e0b0ebe84_add_troll_stats.py)
- Orphaned file (backend/export.py)
- Orphaned file (backend/import.py)
- Orphaned file (backend/main.py)
- Orphaned file (backend/oasst_backend/api/deps.py)
- …and 174 more

## Architecture

- Unchanged — 0 containers · 4 contexts · 0 edges
