v0.3.10-pre.005-fix.001
This commit is contained in:
92
deltas/0.3.10/pre.005-fix.001.md
Normal file
92
deltas/0.3.10/pre.005-fix.001.md
Normal file
@@ -0,0 +1,92 @@
|
||||
<!-- file: deltas/0.3.10/pre.005-fix.001.md -->
|
||||
<!-- version: 1 -->
|
||||
|
||||
# Delta `0.3.10-pre.005-fix.001` — correction de typage du canari WS RAW parity
|
||||
|
||||
## Base requise
|
||||
|
||||
```text
|
||||
0.3.10-pre.005
|
||||
```
|
||||
|
||||
## Motif du fix
|
||||
|
||||
Le premier rejeu opérateur de `pre.005` valide les audits statiques, `cargo check --workspace`, la common RAW, la suite Transport complète et les arbres Cargo, mais Clippy strict et la suite Backfill s’arrêtent sur une unique erreur de compilation `E0308` dans `tests/ws_raw_parity.rs`.
|
||||
|
||||
Le canari comparait :
|
||||
|
||||
```text
|
||||
RawTransaction::block_time().unix_millis() -> u64
|
||||
FIXTURE_BLOCK_TIME * 1_000 -> i64
|
||||
```
|
||||
|
||||
L’assertion produisait donc `Option<u64> != Option<i64>` au niveau du type.
|
||||
|
||||
## Correction
|
||||
|
||||
La constante de fixture devient directement :
|
||||
|
||||
```text
|
||||
FIXTURE_BLOCK_TIME_MILLIS: u64 = 1_787_072_400_000
|
||||
```
|
||||
|
||||
L’assertion compare désormais `Option<u64>` à `Option<u64>` sans cast, conversion runtime, `unwrap`, `expect` ou modification du comportement testé.
|
||||
|
||||
## Invariants inchangés
|
||||
|
||||
```text
|
||||
blockSubscribe standard confirmed/full/base64 legacy-v0 -> golden RAW-direct positif
|
||||
Helius transactionSubscribe full/base64 -> signal + hydration HTTP
|
||||
RAW v1 bytes/hash contracts
|
||||
TR-C2 Worker-owned
|
||||
tokio-tungstenite strictement dev-only
|
||||
aucun code de production modifié
|
||||
aucune dépendance ni feature modifiée
|
||||
```
|
||||
|
||||
## Version technique
|
||||
|
||||
```text
|
||||
workspace.package.version = 0.3.10-pre.5.fix.1
|
||||
Cargo.toml header = 497
|
||||
workspace members = 20
|
||||
```
|
||||
|
||||
## Fichiers modifiés
|
||||
|
||||
```text
|
||||
Cargo.toml
|
||||
crates/ksp-job-backfill-lib/tests/ws_raw_parity.rs
|
||||
docs/plans/031-V0_3_10_RAW_TRANSACTION_INGEST_PLAN.md
|
||||
docs/validation/027-V0_3_10_RAW_TRANSACTION_INGEST.md
|
||||
```
|
||||
|
||||
## Fichier ajouté
|
||||
|
||||
```text
|
||||
deltas/0.3.10/pre.005-fix.001.md
|
||||
```
|
||||
|
||||
## Audits d’assemblage
|
||||
|
||||
```text
|
||||
General Rust rule audit: clean
|
||||
Rust export completeness audit: 0 candidate(s)
|
||||
KSP workspace Rust rule audit: clean
|
||||
Markdown table audit: clean (339 table(s), 760 file(s))
|
||||
```
|
||||
|
||||
## Gate opérateur à rejouer
|
||||
|
||||
```bash
|
||||
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
|
||||
cargo check --workspace
|
||||
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||
cargo test -p ksp-raw-transaction-lib
|
||||
cargo test -p ksp-onchain-transport-lib
|
||||
cargo test -p ksp-job-backfill-lib
|
||||
```
|
||||
|
||||
Les arbres Cargo n’ont pas besoin d’être rejoués pour ce fix : ni `Cargo.toml` de crate, ni dépendance, ni feature ne change.
|
||||
Reference in New Issue
Block a user