v0.2.14-pre.004
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!-- file: docs/validation/017-V0_2_14_PROGRAM_API.md -->
|
||||
<!-- version: 3 -->
|
||||
<!-- version: 4 -->
|
||||
|
||||
# Validation `0.2.14` — Program API foundation
|
||||
|
||||
@@ -40,10 +40,10 @@ Le scope validé par `pre.001` est une foundation instruction-only avec output a
|
||||
| `ProgramInstructionRecognition` | `NoMatch / ProgramMatch / ExactMatch`, non exhaustif | PASS `pre.003` |
|
||||
| `ProgramInstructionDecodeOutcome<Decoded>` | `Decoded(Decoded) / Unsupported`, non exhaustif | PASS `pre.003` |
|
||||
| decoder failure | `ksp_core_lib::Result`, aucun statut `Failed` parallèle | `pre.003` / `pre.004` |
|
||||
| `ProgramInstructionDecoder` | `Send + Sync`, associated `Decoded` | `pre.004` |
|
||||
| input | `&ProgramInstruction` | `pre.004` |
|
||||
| Program IDs déclarés | `&[Pubkey]`, opaque et open-world | `pre.004` |
|
||||
| output | type concret de l'implémentation | `pre.004` |
|
||||
| `ProgramInstructionDecoder` | `Send + Sync`, associated `Decoded` | PASS `pre.004` |
|
||||
| input | `&ProgramInstruction` | PASS `pre.004` |
|
||||
| Program IDs déclarés | `&[Pubkey]`, opaque et open-world | PASS `pre.004` |
|
||||
| output | type concret de l'implémentation | PASS `pre.004` |
|
||||
| registry dyn | absent | completeness `pre.005` |
|
||||
| identity/version/coverage | absents | completeness `pre.005` |
|
||||
| Program Account/Event/ReturnData decoder | absents | completeness `pre.005` |
|
||||
@@ -53,7 +53,7 @@ Le scope validé par `pre.001` est une foundation instruction-only avec output a
|
||||
|
||||
## 4. External implementation canary
|
||||
|
||||
La preuve finale doit utiliser une crate consommatrice séparée et vérifier :
|
||||
La preuve matérialisée en `pre.004` utilise une crate d'intégration consommatrice séparée et vérifie :
|
||||
|
||||
```text
|
||||
implementation de ProgramInstructionDecoder
|
||||
@@ -66,7 +66,7 @@ aucun ksp-program-lib
|
||||
aucun module privé
|
||||
```
|
||||
|
||||
Ce canari remplace toute affirmation documentaire non exécutable d'extensibilité.
|
||||
Ce canari remplace toute affirmation documentaire non exécutable d'extensibilité. Son gate opérateur reste à confirmer avant de déclarer la tranche close.
|
||||
|
||||
## 5. Dependency firewall cible
|
||||
|
||||
@@ -102,17 +102,17 @@ tracing
|
||||
|
||||
| Gate | Attendu | Statut initial |
|
||||
|---------------------------|--------------------------------------------------------------------------|----------------|
|
||||
| unknown Program Pubkey | utilisable sans registry Core | PENDING |
|
||||
| unknown Program Pubkey | utilisable sans registry Core | PASS `pre.004` |
|
||||
| max Interface input | decoder consomme l'input déjà borné sans nouvelle allocation obligatoire | PENDING |
|
||||
| malformed program payload | `Err` ou `Unsupported` selon contrat, sans payload dans l'erreur | PENDING |
|
||||
| Debug recognition | aucun payload | PASS |
|
||||
| Debug outcome | contenu `Decoded` non rendu automatiquement | PASS |
|
||||
| default methods | aucun default method susceptible de masquer panic/policy | PENDING |
|
||||
| closed-world enum | aucun inventaire central de Program kinds | PENDING |
|
||||
| serde accidental | aucune dependency/derive | PENDING |
|
||||
| runtime creep | aucun réseau, wallet, store, logging ou UI | PENDING |
|
||||
| external output | type tiers accepté sans `Any`/JSON central | PENDING |
|
||||
| dyn claim | aucune assertion d'object-safety hétérogène dans cette release | PENDING |
|
||||
| default methods | aucun default method susceptible de masquer panic/policy | PASS `pre.004` |
|
||||
| closed-world enum | aucun inventaire central de Program kinds | PASS `pre.004` |
|
||||
| serde accidental | aucune dependency/derive | PASS `pre.004` |
|
||||
| runtime creep | aucun réseau, wallet, store, logging ou UI | PASS `pre.004` |
|
||||
| external output | type tiers accepté sans `Any`/JSON central | PASS `pre.004` |
|
||||
| dyn claim | aucune assertion d'object-safety hétérogène dans cette release | PASS `pre.004` |
|
||||
|
||||
## 7. Gates de fermeture
|
||||
|
||||
@@ -190,4 +190,39 @@ Ce gate autorise l'ouverture de `pre.003`.
|
||||
| registry / descriptor / payload D3 | ABSENT | hors scope maintenu |
|
||||
| serde / codec / logging / runtime | ABSENT | dependency firewall maintenu |
|
||||
|
||||
Les canaris unitaires et publics de `pre.003` doivent passer avant d'ouvrir `pre.004`. La preuve d'implémentation externe, le Program Pubkey open-world et l'associated output complet restent réservés au trait decoder de la tranche suivante.
|
||||
Le gate opérateur `pre.003` est confirmé intégralement vert : audits Rust/Markdown, check, Clippy, tests ciblés, workspace complet et graphes Cargo passent.
|
||||
|
||||
## 10. Gate opérateur `pre.003`
|
||||
|
||||
```text
|
||||
cargo fmt --all PASS
|
||||
audit Rust général / exports / workspace PASS
|
||||
audit Markdown PASS — 171 tables / 120 fichiers
|
||||
cargo check --workspace PASS
|
||||
cargo clippy --workspace --all-targets PASS
|
||||
cargo test -p ksp-program-api PASS — 8 tests Rust
|
||||
cargo test --workspace PASS
|
||||
cargo tree -p ksp-program-api --edges normal PASS — Core + Interface uniquement
|
||||
cargo tree --duplicates exécuté, inventaire workspace observé
|
||||
```
|
||||
|
||||
Ce gate autorise l'ouverture de `pre.004`.
|
||||
|
||||
## 11. État préparé `pre.004`
|
||||
|
||||
| Critère | Statut | Preuve |
|
||||
|------------------------------------|--------|----------------------------------------------------------------------|
|
||||
| `ProgramInstructionDecoder` | PASS | trait public `Send + Sync` |
|
||||
| associated `Decoded` | PASS | type sans bound imposé, possédé par l'implémentation |
|
||||
| `program_ids` | PASS | `&[Pubkey]`, aucune validation registry dans l'API |
|
||||
| `recognize` | PASS | input `&ProgramInstruction`, outcome `ProgramInstructionRecognition` |
|
||||
| `decode` | PASS | `Result<ProgramInstructionDecodeOutcome<Self::Decoded>>` |
|
||||
| default methods | ABSENT | toutes les méthodes sont obligatoires |
|
||||
| external implementation canary | PASS | test d'intégration downstream-style séparé |
|
||||
| Program Pubkey non enregistré | PASS | assertion `ksp_core_lib::find_program_pubkey(...) == None` |
|
||||
| output externe concret | PASS | `ExternalDecodedInstruction` défini dans le consumer canary |
|
||||
| `ksp-program-lib` | ABSENT | aucune dépendance ni implémentation officielle |
|
||||
| registry / descriptor / payload D3 | ABSENT | hors scope maintenu |
|
||||
| serde / codec / logging / runtime | ABSENT | dependency firewall inchangé |
|
||||
|
||||
Le canari d'implémentation consomme la façade `ksp_program_api` pour le trait, les types et les outcomes. Le registry Core n'est utilisé que par l'assertion de test négative et n'est pas réexporté par Program API. Le gate opérateur de cet overlay reste requis avant `pre.005`.
|
||||
|
||||
Reference in New Issue
Block a user