v0.3.7-pre.007-fix.001

This commit is contained in:
2026-09-02 16:14:38 +02:00
parent 9c4469248a
commit 6e406a6b84
4 changed files with 117 additions and 7 deletions

View File

@@ -0,0 +1,97 @@
<!-- file: deltas/0.3.7/pre.007-fix.001.md -->
<!-- version: 1 -->
# Delta `0.3.7-pre.007-fix.001` — Shadowing du helper JobId dans un test Backfill Desk
## 1. Base requise
```text
0.3.7-pre.007
workspace.package.version = 0.3.7-pre.7
```
## 2. Objectif
Corriger l'unique blocage du gate opérateur `pre.007` : le test unitaire `explicit_signatures_reject_address_context_and_deduplicate_in_job_contract` masque la fonction helper `job_id()` par une variable locale du même nom.
## 3. Cause
Après construction d'un premier `JobId`, la variable locale `job_id` reste dans la portée du test. L'appel ultérieur `job_id()` est alors résolu sur cette valeur et Rust produit `E0618: expected function, found JobId`.
## 4. Correction
- renommer uniquement la variable locale concernée en `request_job_id` ;
- conserver le helper `job_id()` inchangé ;
- ne modifier aucun code de production, DTO, mapping `BackfillRequest`, frontend, runtime Transport/Store ou contrat Job.
## 5. Version
Le correctif modifie un fichier Rust compilé. Conformément à `VER-ID-007` et `VER-ID-010` :
```text
workspace.package.version = 0.3.7-pre.7.fix.1
label = 0.3.7-pre.007-fix.001
```
## 6. Fichiers ajoutés
```text
deltas/0.3.7/pre.007-fix.001.md
```
## 7. Fichiers modifiés
```text
Cargo.toml
crates/ksp-app-backfill-desk/unit_tests/backfill_request.rs
docs/validation/024-V0_3_7_BACKFILL_DESK.md
```
## 8. Fichiers supprimés
Aucun.
## 9. Gate opérateur ayant déclenché le fix
```text
cargo fmt --all exécuté
python3 scripts/audit_rust_workspace_rules.py PASS
python3 scripts/audit_markdown_tables.py ... deltas/0.3.7 PASS
cargo check --workspace PASS
cargo clippy --workspace --all-targets FAIL — E0618 dans unit_tests/backfill_request.rs
cargo test -p ksp-job-backfill-lib PASS — 47 unitaires + suites d'intégration
cargo test -p ksp-app-backfill-desk FAIL compile — même E0618
```
## 10. 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.7
```
Contrôles ciblés :
- la variable locale ne masque plus `job_id()` ;
- aucun fichier fonctionnel de `pre.007` hors test/version/validation/delta n'est modifié ;
- le diff reste strictement limité au correctif de compilation du test.
## 11. Validations non exécutées dans l'environnement d'assemblage
`cargo` et `rustfmt` ne sont pas disponibles dans l'environnement d'assemblage. Gate opérateur :
```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.7
cargo check --workspace
cargo clippy --workspace --all-targets
cargo test -p ksp-job-backfill-lib
cargo test -p ksp-app-backfill-desk
cargo tree -p ksp-app-backfill-desk --edges normal
cargo tree -p ksp-app-backfill-desk -e features
```
## 12. Questions ouvertes
Aucune pour ce correctif.