Schema-check continueObstructed payloads, spreads and effect-free lawpack imports

Aperta
#451 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend

Direzione di ricerca

Read the schema-check implementation, especially check_reason_payload, check_schema_payload, and the unexported-coordinate refusal keyed by authenticated_effect_exports; then inspect the tests for those paths and the changes in blocked issue #448. Add regression cases for mismatched continue obstructed payloads, RecordEntry::Spread, and unexported coordinates in effect-free lawpack imports. Done when all three cases are refused by the schema check.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement type: goalpost
.dag: issue-dag/2
.id: ambyte-lang/ambyte#451
.kind: task
.type: feature
.blocked_by: [ambyte-lang/ambyte#448]

Outcome

The payload schema check from #448 also covers three paths it misses today.

Why

Round-2 Baker Street review of PR #449, non-blocking:

  1. A continue obstructed { reason: X, ... } payload goes through check_reason_payload and is never checked against X's payloadSchema. The unexported-coordinate refusal doesn't apply to it either.
  2. The repeated-field check in check_schema_payload skips RecordEntry::Spread.
  3. The unexported-coordinate refusal keys on authenticated_effect_exports. A lawpack imported without exported effects may have no entry there.

Test plan

  • RED first: a mismatched continue obstructed payload is refused. A spread payload under a schema is refused, or is shown to be refused already. A payload on an unexported coordinate of an effect-free lawpack import is refused.
Lingua principale
Rust
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di flyingrobots/edict

Tutte le issue di flyingrobots/edict

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.