93 lines
2.2 KiB
Markdown
93 lines
2.2 KiB
Markdown
<!-- file: deltas/0.3.14/pre.011-fix.001.md -->
|
|
<!-- version: 1 -->
|
|
|
|
# Delta `0.3.14-pre.011-fix.001` — annotation explicite du slot de gap le plus ancien
|
|
|
|
## Base requise
|
|
|
|
```text
|
|
0.3.14-pre.011
|
|
workspace.package.version = 0.3.14-pre.11
|
|
deltas/0.3.14/pre.011.md présent
|
|
```
|
|
|
|
## Défaut observé au gate opérateur
|
|
|
|
Les audits statiques de `pre.011` passent, mais `cargo check`, Clippy et les tests ne peuvent pas compiler le Worker à cause d'une inférence ambiguë :
|
|
|
|
```text
|
|
error[E0282]: type annotations needed for `Option<_>`
|
|
crates/ksp-worker-raw-transaction-ingest-lib/src/continuity.rs:476
|
|
```
|
|
|
|
La variable `oldest_open_gap_start_slot` est initialisée à `None` puis utilisée avec `u64::min`; Rust exige ici que le type de l'`Option` soit fixé explicitement.
|
|
|
|
## Correction
|
|
|
|
La variable devient explicitement :
|
|
|
|
```rust
|
|
let mut oldest_open_gap_start_slot: std::option::Option<u64> = std::option::Option::None;
|
|
```
|
|
|
|
Aucune logique de projection, aucun compteur, aucun état de gap et aucune méthode de réparation n'est modifié.
|
|
|
|
## Périmètre
|
|
|
|
Le fix reste strictement dans la responsabilité de `pre.011` :
|
|
|
|
```text
|
|
aucune modification de la surface publique
|
|
aucune modification de health policy
|
|
aucune modification de fairness
|
|
aucune modification de replay/reconnect ownership
|
|
aucune modification du pipeline Common RAW/Store
|
|
aucune nouvelle dépendance
|
|
```
|
|
|
|
## Fichiers ajoutés
|
|
|
|
```text
|
|
deltas/0.3.14/pre.011-fix.001.md
|
|
```
|
|
|
|
## Fichiers modifiés
|
|
|
|
```text
|
|
Cargo.toml
|
|
crates/ksp-worker-raw-transaction-ingest-lib/src/continuity.rs
|
|
```
|
|
|
|
## Fichiers supprimés
|
|
|
|
```text
|
|
aucun
|
|
```
|
|
|
|
## Version Cargo
|
|
|
|
Conformément à `VER-ID-007` et `VER-ID-010` :
|
|
|
|
```text
|
|
header Cargo.toml : 584 -> 585
|
|
workspace.package.version : 0.3.14-pre.11 -> 0.3.14-pre.11.fix.1
|
|
```
|
|
|
|
Version du fichier Rust modifié :
|
|
|
|
```text
|
|
src/continuity.rs : 10 -> 11
|
|
```
|
|
|
|
## Gate opérateur après application
|
|
|
|
```bash
|
|
cargo fmt --all
|
|
cargo fmt --all -- --check
|
|
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
|
|
cargo check --workspace
|
|
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
cargo test -p ksp-worker-raw-transaction-ingest-lib --all-targets --all-features
|
|
```
|