Compile one witnessed optional-slot optic and guarded candidate

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

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
12/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
rust
Domain
compilers

Research direction

This is a roadmap-level compiler design item that depends on amblicit#290 landing first. Start by reading the Collections v2 O2 and sections 2.1–2.3 referenced in the body, then the existing generic effect and import machinery in the compiler. Done means the Present, Absent, unavailable and integrity-failure cases are covered by positive and negative compiler tests, and targets without the slot capability refuse the package.

Written by the indexing model from the issue text.

Description

enhancement
.dag: issue-dag/2
.id: ambyte-lang/ambyte#293
.kind: task
.type: feature
.blocked_by: [ambyte-lang/ambyte#290]

Roadmap: flyingrobots/amblicit#288. Executable issue: one coherent, independently mergeable PR.

Outcome

The compiler represents an optional membership observation and a bounded proposed slot change under the versioned collection law.

Scope

  • Implement the chosen at/existing representation, typed place namespace, supported reading outcomes, basis/support obligations, and single-slot candidate form.
  • Distinguish owner missing from member absent; copying a payload/reading cannot copy ownership or grant authority.
  • Add canonical schemas, capability admission, native Target IR checks, and public source specimens; keep runtime enforcement delegated to the target.

Exclusions

  • General traversal/composition and a production collection storage implementation.

Acceptance checks

  • Positive and negative compiler cases distinguish Present, established Absent, unavailable/partial evidence and typed domain versus integrity failures as specified.
  • A copied description cannot fabricate authorization; a reading from another basis cannot silently become current.
  • Canonical aliasing, payload/structure misuse, missing operation-level failure declarations and malformed support metadata refuse.
  • A target without the slot capability explicitly refuses the package; this PR does not claim Echo execution.

Required prior merges

These are contract prerequisites, not scheduling or shared-file preferences. Native blocked_by relationships carry the same edges.

Safe state after merge

Existing code remains accepted; new artifact forms are explicitly versioned and cannot claim execution on unsupported consumers.

Evidence and baseline

  • Collections v2 O2 and sections 2.1–2.3; current generic effect/import machinery is the starting seam.

This is a plan, not a claim that the behavior already exists. Before implementation, refresh the relevant source and artifact pins. Preserve compatibility or explicitly version and refuse unsupported capabilities.

Closure evidence

Link the implementation PR using GitHub's closing reference for this exact issue. Record meaningful regression evidence, required repository checks and independent review, exact source/component identities where applicable, and the resulting mainline integration commit. A compiler-only result cannot stand in for verifier/publication/runtime evidence. Keep the live status here rather than in a parallel local checklist.

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.