93 lines
2.4 KiB
Markdown
93 lines
2.4 KiB
Markdown
<!-- file: deltas/0.3.3/pre.006-fix.001.md -->
|
|
<!-- version: 1 -->
|
|
|
|
# Delta `0.3.3-pre.006-fix.001` — correction gate pagination
|
|
|
|
## 1. Base
|
|
|
|
Base opérateur obligatoire :
|
|
|
|
```text
|
|
0.3.3-pre.6
|
|
```
|
|
|
|
Le gate opérateur de `pre.006` a confirmé les audits Rust/Markdown et la compilation de la majorité du workspace, puis a détecté deux défauts locaux dans `ksp-store-postgres-lib` :
|
|
|
|
```text
|
|
unused import: RawTransactionDecodedCursor
|
|
hardening_completeness.rs: argument never used
|
|
```
|
|
|
|
Aucun défaut fonctionnel de pagination, cursor ou migration n'a été signalé avant cet arrêt.
|
|
|
|
## 2. Version
|
|
|
|
```text
|
|
workspace.package.version = 0.3.3-pre.6.fix.1
|
|
```
|
|
|
|
## 3. Corrections
|
|
|
|
### 3.1 Re-export interne inutilisé
|
|
|
|
Le re-export crate-root suivant est supprimé :
|
|
|
|
```text
|
|
RawTransactionDecodedCursor
|
|
```
|
|
|
|
Le type reste privé dans `raw_transaction::cursor` et continue d'être utilisé directement par le codec qui le produit. Aucun contrat public ou comportement cursor n'est modifié.
|
|
|
|
### 3.2 Canari de hardening
|
|
|
|
`pre_009_backend_has_no_env_bypass_or_direct_store_trait_implementation` concatène huit sources backend, dont `schema.rs`, mais son format string ne contenait que sept placeholders. Le format string est corrigé à huit placeholders ; le canari conserve exactement le même périmètre d'inspection.
|
|
|
|
## 4. Invariants
|
|
|
|
Ce fix ne modifie pas :
|
|
|
|
```text
|
|
raw_transaction.rs
|
|
raw_transaction/cursor.rs
|
|
SQL de lecture/écriture/pagination
|
|
migrations V000/V001
|
|
format cursor V1 109 octets
|
|
digest/binding cursor
|
|
keyset ASC/DESC
|
|
limite physique requested <= i64::MAX - 1
|
|
```
|
|
|
|
Checksums attendus inchangés :
|
|
|
|
```text
|
|
V000 d29068b8c13b9dc0cc9ef6aaadd0fa12d41e0fe4c56541a1118c4bfc846a1450
|
|
V001 31488cda2f08f3f46c4cdbdbb6c18c243662fada02eac4487040c8735d72cc51
|
|
```
|
|
|
|
## 5. Fichiers modifiés
|
|
|
|
```text
|
|
Cargo.toml
|
|
crates/ksp-store-postgres-lib/src/lib.rs
|
|
crates/ksp-store-postgres-lib/tests/hardening_completeness.rs
|
|
docs/validation/020-V0_3_3_STORE_POSTGRES_RAW_TRANSACTION.md
|
|
deltas/0.3.3/pre.006-fix.001.md
|
|
```
|
|
|
|
Aucune suppression de fichier.
|
|
|
|
## 6. Gate opérateur
|
|
|
|
```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/0.3.3
|
|
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
|
|
```
|