62 lines
2.7 KiB
Markdown
62 lines
2.7 KiB
Markdown
<!-- file: deltas/0.2.9/pre.005-fix.001.md -->
|
|
<!-- version: 1 -->
|
|
|
|
# Delta `0.2.9-pre.005-fix.001`
|
|
|
|
## Objet
|
|
|
|
Corriger le premier gate opérateur de `0.2.9-pre.005` sans modifier le contrat fonctionnel Accounts + Slots.
|
|
|
|
## Preuve opérateur avant fix
|
|
|
|
Le gate `pre.005` confirme :
|
|
|
|
```text
|
|
cargo fmt --all PASS
|
|
workspace Rust audit PASS / clean
|
|
cargo check --workspace PASS + 4 dead_code warnings
|
|
cargo clippy --workspace --all-targets FAIL: implicit_return + wrong_self_convention
|
|
Transport unit 364/364 PASS
|
|
Transport public_api 45/45 PASS
|
|
Transport release_completeness 38/38 PASS
|
|
Transport doctests 4/4 PASS
|
|
Core dependency canary 3/3 PASS
|
|
cargo test --workspace PASS + 4 dead_code warnings
|
|
```
|
|
|
|
## Corrections
|
|
|
|
| Surface | Correction | Justification |
|
|
|-------------------------------------------|--------------------------------------------|--------------------------------------------------------------------------------|
|
|
| quatre constantes de bounds update | ajout `#[cfg(test)]` | uniquement consommées par les décodeurs Account/Slot test-only avant `pre.008` |
|
|
| `YellowstoneSubscribeSlotFilter::to_wire` | receiver `self` | type `Copy`, conformité `clippy::wrong_self_convention` |
|
|
| `dead_error.as_ref().is_some_and(...)` | `return` explicite dans la closure | conformité `-D clippy::implicit-return` |
|
|
| `016` + `012` | réalignement de tous les tableaux Markdown | préserve le format visuel manuel demandé par l'opérateur |
|
|
| workspace version | `0.2.9-pre.5.fix.1` | signal technique de fix |
|
|
|
|
## Non-changements
|
|
|
|
```text
|
|
aucun changement du contrat public Accounts/Slots
|
|
aucun changement du wire protobuf
|
|
aucune dépendance/feature Cargo
|
|
aucun stream bidi
|
|
aucune famille Transactions/Blocks
|
|
aucun PublicNode / Config V3
|
|
aucun allow(dead_code)
|
|
```
|
|
|
|
## Gate attendu
|
|
|
|
```bash
|
|
cargo fmt --all
|
|
python3 scripts/audit_rust_workspace_rules.py
|
|
cargo check --workspace
|
|
cargo clippy --workspace --all-targets
|
|
cargo test -p ksp-onchain-transport-lib
|
|
cargo test -p ksp-core-lib --test workspace_dependencies
|
|
cargo test --workspace
|
|
```
|
|
|
|
Critère de fermeture : `check`, Clippy et workspace passent sans les quatre warnings `dead_code` de `pre.005`.
|