112 lines
3.4 KiB
Markdown
112 lines
3.4 KiB
Markdown
<!-- file: deltas/0.3.4/pre.003-fix.001.md -->
|
|
<!-- version: 1 -->
|
|
|
|
# Delta `0.3.4-pre.003-fix.001` — conformité `RUST-FMT-104` du bloc migration
|
|
|
|
## 1. Base requise
|
|
|
|
```text
|
|
0.3.4-pre.003
|
|
workspace.package.version = 0.3.4-pre.3
|
|
```
|
|
|
|
Le gate opérateur du 2026-08-30 confirme :
|
|
|
|
```text
|
|
Markdown audit PASS, 239 tables / 138 files
|
|
cargo check --workspace PASS
|
|
cargo clippy --workspace --all-targets PASS
|
|
cargo test -p ksp-store-api PASS
|
|
cargo test -p ksp-store-lib PASS
|
|
cargo test -p ksp-store-postgres-lib PASS, 45 tests
|
|
cargo test -p ksp-config-lib PASS, 128 tests
|
|
cargo check -p ksp-store-lib --no-default-features PASS
|
|
Rust rule audit FAIL, 1 x RUST-FMT-104
|
|
```
|
|
|
|
## 2. Objectif
|
|
|
|
Corriger l'unique violation de conformité restante de `pre.003` sans modifier le comportement de migration ni le schéma V002.
|
|
|
|
## 3. Correction
|
|
|
|
Dans `crates/ksp-store-postgres-lib/src/migration.rs`, le bloc homogène de constantes est remis dans l'ordre alphabétique attendu par `RUST-FMT-104` :
|
|
|
|
```text
|
|
HISTORY_INSERT_SQL
|
|
HISTORY_LOAD_SQL
|
|
HISTORY_UPDATE_CHECKSUM_SQL
|
|
```
|
|
|
|
`HISTORY_LOAD_SQL` est seulement déplacée avant `HISTORY_UPDATE_CHECKSUM_SQL`. Aucune valeur de constante, chaîne SQL ou logique de code n'est modifiée.
|
|
|
|
## 4. Version
|
|
|
|
Le correctif touche un fichier Rust ; `VER-ID-007/010` impose donc :
|
|
|
|
```text
|
|
workspace.package.version = 0.3.4-pre.3.fix.1
|
|
label = 0.3.4-pre.003-fix.001
|
|
```
|
|
|
|
## 5. Fichiers ajoutés
|
|
|
|
```text
|
|
deltas/0.3.4/pre.003-fix.001.md
|
|
```
|
|
|
|
## 6. Fichiers modifiés
|
|
|
|
```text
|
|
Cargo.toml
|
|
crates/ksp-store-postgres-lib/src/migration.rs
|
|
docs/plans/025-V0_3_4_STORE_POSTGRES_RAW_ACCOUNT_PLAN.md
|
|
docs/validation/021-V0_3_4_STORE_POSTGRES_RAW_ACCOUNT.md
|
|
```
|
|
|
|
## 7. Fichiers supprimés
|
|
|
|
Aucun.
|
|
|
|
## 8. Invariants conservés
|
|
|
|
- V002 reste à 32 resources : 2 tables, 29 contraintes, 1 index ;
|
|
- checksum V002 final inchangé : `ff21605ed45f7ab4c0f92bbb692700b4118a9488b04d50a31d259ac59bdb550e` ;
|
|
- checksum provisoire `pre.002` inchangé et bridge conditionnel inchangé ;
|
|
- V000/V001 inchangées ;
|
|
- aucune ressource SQL modifiée ;
|
|
- aucun repository `raw_account`, dispatch Store ou implémentation `RawAccount*` ajouté ;
|
|
- aucun changement fonctionnel, de migration, de runtime ou de configuration hors identifiant technique Cargo du fix.
|
|
|
|
## 9. Validations exécutées dans l'environnement d'assemblage
|
|
|
|
```text
|
|
python3 scripts/audit_rust_workspace_rules.py
|
|
python3 scripts/audit_markdown_tables.py README.md RULES.md ROADMAP.md CHANGELOG.md docs prompts crates deltas/0.3.4
|
|
```
|
|
|
|
## 10. Validations non exécutées dans l'environnement d'assemblage
|
|
|
|
`cargo` n'est pas disponible dans cet environnement. Le gate opérateur complet du fix reste à rejouer :
|
|
|
|
```text
|
|
cargo fmt --all
|
|
python3 scripts/audit_rust_workspace_rules.py
|
|
python3 scripts/audit_markdown_tables.py README.md RULES.md ROADMAP.md CHANGELOG.md docs prompts crates deltas/0.3.4
|
|
cargo check --workspace
|
|
cargo clippy --workspace --all-targets
|
|
cargo test -p ksp-store-api
|
|
cargo test -p ksp-store-lib
|
|
cargo test -p ksp-store-postgres-lib
|
|
cargo test -p ksp-config-lib
|
|
cargo check -p ksp-store-lib --no-default-features
|
|
```
|
|
|
|
## 11. Décisions
|
|
|
|
Le défaut appartient strictement au couloir `pre.003` : il est donc corrigé par `pre.003-fix.001` et ne justifie pas l'ouverture de `pre.004`.
|
|
|
|
## 12. Questions ouvertes
|
|
|
|
Aucune.
|