Refuse a bare obstruction coordinate against a non-empty payloadSchema

Open
#450 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
28/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
compilers

Research direction

Start by reading issue #448 and the lawpack fixtures named here, including hello.echo, example.cell, consumer.links, the bounded-* fixtures, and jedit.text@1. First migrate fixtures to empty-record schemas or written payloads and regenerate their pinned digests, then add failing coverage for terminal requires, attempt arms, and effect arms. Done means all in-repository fixtures and affected Echo pins are updated and bare coordinates against non-empty schemas are refused.

Written by the indexing model from the issue text.

Description

enhancement release:target-ir
.dag: issue-dag/2
.id: ambyte-lang/ambyte#450
.kind: task
.type: feature
.blocked_by: [ambyte-lang/ambyte#448]

Outcome

A bare obstruction coordinate is refused where the lawpack's payloadSchema for that coordinate is not the empty record, so a refusal can't silently encode 0xa0 against a schema that promises fields.

Why

amblicit#448 checks every written payload against its schema but still admits bare coordinates against any schema. Refusing them now breaks every published lawpack: hello.echo (ExistingGreeting), example.cell (ExistingValue), consumer.links (ObstructionDetail = String<max=256>), the bounded-* fixtures and Jim's jedit.text@1, about 200 tests in this repository alone, plus Echo's pinned copies. Ruled on #448 (without counsel; codex re-review queued).

Test plan

  • Migrate each in-repo lawpack fixture to an empty-record schema or a written payload; regenerate their pinned digests in one pass and list the Echo pins that follow.
  • Then refuse a bare coordinate against a non-empty schema, at terminal requires, attempt arms and effect arms (RED first).
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.