Adopt Echo's merged bound-carrying provider package and move the compiler's Echo pins

Open
#385 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
35/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
git, rust
Domain
build-system

Research direction

Read the repository’s AGENTS.md and code conventions, then inspect scripts/consumer-witnesses/jedit-state-read.Dockerfile, scripts/consumer-witnesses/README.md, and the provider fixture paths named in the issue. Start by checking that Echo#1052 has merged and identify commit P; compare the copied tree and component digests with the manifest. Add the named compiler build test, run the consumer witness by hand, and confirm the acceptance checks and CHANGELOG update.

Written by the indexing model from the issue text.

Description

enhancement release:target-ir
.dag: issue-dag/2
.id: ambyte-lang/ambyte#385
.kind: task
.type: feature
.blocked_by: [flyingrobots/echo#1052]
.size_hours: 3

Feature

You are the engineer for this issue. Read all sections of this issue.
Write tests from section 2c (Test Plan) first. Make sure that they fail before you write the code.
Do the work in section 2b. Make sure that all tests pass.
Make sure that each item under Acceptance is true.
Do not change anything that Out of scope names.
Read AGENTS.md and the project's code conventions before you change code.
Run the project's checks as AGENTS.md or the README gives them. Do not use --no-verify.
Open a draft pull request. Link this issue. Write progress comments on the pull request.
Make the pull request ready only when every item under Acceptance and in the Definition of Done is true and CI passes.

Outcome

The compiler repository holds Echo's replacement provider package from flyingrobots/echo#1052's merge commit P, with recorded provenance, and its consumer witness pins P.

Scope

  • Copy schemas/edict-provider/package/v1 from Echo commit P into a new fixture directory. fixtures/providers/echo-generated/ stays the provider-envelope fixture.
  • Record P, the exact tree copied, each component's SHA-256 and the manifest's bindings beside the copy.
  • Move the Echo revision in scripts/consumer-witnesses/jedit-state-read.Dockerfile and scripts/consumer-witnesses/README.md to P. Refresh fixtures/providers/echo-target-profile/ if its bytes differ at P.
  • A compiler build of node-atom-read through the copied package.

Out of scope

  • The emission: flyingrobots/amblicit#359. The oracle's reader: flyingrobots/amblicit#376. Host conversion of the bound refusals: flyingrobots/amblicit#379.
  • Any compatibility reader or older package kept beside the current one.

Prerequisites

  • flyingrobots/echo#1052: the replacement package merged on Echo's main (ruling C010 of Echo's docs/architecture/one-admission-path.md). This replaces flyingrobots/echo#1086, which named this work in the Echo repository.

Safe intermediate state

Before this task, the compiler's Echo pins name Echo 49e9efb6 and 5413f553, which predate the field, and the manual consumer witness fails with the emitting compiler. After it, the pins name P.

Acceptance

  • git merge-base --is-ancestor P origin/main succeeds in flyingrobots/echo, and the copied tree equals git archive P schemas/edict-provider/package/v1.
  • Each component's SHA-256 equals the digest bound in the copied provider-manifest.echo.json.
  • node_atom_read_builds_through_echo_package: the build yields a package whose semantic_bound equals the target IR's semanticBound (units = 1,048,584) (boundary: compiler public build).
  • The consumer witness passes against P (run by hand; the result is attached).
  • Compiler CI is green on the pull request before the merge.

1. Background Context

Under ruling C010 the compiler's emission merges first and Echo's replacement second. The compiler's CI reads no Echo provider package, and its only real Echo pins are the consumer witness and the target-profile copy.

2. Problem Description

The compiler holds no package that accepts its emission, so no compiler-side build through Echo's components is possible.

2b. Proposed Solution

Copy the merged package with provenance and test one build through it. Rejected: replacing echo-generated/, which is an envelope fixture whose tests do not load providers (crates/amblicit-syntax/tests/provider.rs:1-15).

2c. Test Plan

First test: node_atom_read_builds_through_echo_package. Boundary: compiler public build. Pre-change behaviour: no Echo package with semantic_bound exists in the repository, so the test fails at the missing fixture. Kind: baseline RED (missing artifact).
Edges: a component byte changed (digest mismatch refused).
Known failure modes: copying from an unmerged Echo branch.
Fuzz and stress: not applicable.

3. Why now

flyingrobots/amblicit#379 needs Echo's refusal codes in the compiler repository.

4. Risks

A stale copy; the tree-equality check guards it.

5. Definition of Done

Acceptance true; CHANGELOG updated.

6. Stakeholders

flyingrobots (owner); Ambyte and Echo maintainers.

7. Related Issues

flyingrobots/echo#1076, flyingrobots/echo#1086, flyingrobots/amblicit#359, flyingrobots/amblicit#379.

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.