Compile collection membership operations into one validated candidate

Open
#295 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
8/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Domain
compilers

Research direction

This is a roadmap-level compiler design task with no named source files or tests. Start with the prerequisite amblicit#294 (fixed-basis entry selection and read-support contracts) and the linked roadmap amblicit#288, then locate the existing slot and traversal contracts. Done means the acceptance checks in the issue are covered by the implementation PR, with candidate-level failure attribution and deterministic precedence preserved.

Written by the indexing model from the issue text.

Description

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

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

Outcome

Authors can express get/add/remove/replace/iter under one fixed basis while the compiler preserves payload, ownership and candidate obligations.

Scope

  • Build the author-facing verbs on the demonstrated slot/traversal contracts; use authoritative canonical place keys.
  • Represent exclusive same-place mutations, aggregate metadata, owner survival, capacity and operation-level obstructions without eagerly applying effects.
  • Reject payload operations that copy, erase or detach owning collections; do not imply read-your-writes semantics.

Exclusions

  • Production candidate admission, cascading clear, Seq and incarnation-sensitive references.

Acceptance checks

  • Compile full remove-plus-add, stable-owner movement, snapshot get after proposed add/remove and same-value replacement.
  • Reject two alias paths mutating one place, new-owner-plus-child where v1 forbids it, and nonempty-owner removal according to the declared snapshot rule.
  • Preserve candidate-level failure attribution and deterministic precedence; coalescing does not refund performed computation.
  • Existing targets refuse the new candidate capability until its consumer lands.

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

The source/Core contract is complete and gated; no half-implemented collection profile is enabled for production execution.

Evidence and baseline

  • Collections v2 C1 and sections 1.2–1.8.

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.