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

Open
#451 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
backend

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flyingrobots/edict

All issues in flyingrobots/edict

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.