Skip to content

Handoff: reld cross-platform linker — state, next work, and how to continue #46

Closed

Description

@zackees

Dedicated handoff for the next agent/contributor. (Session summary also on the meta issue #2.)

Where reld is now

reld runs on Windows, Linux, and macOS, self-hosts, and posts competitive numbers on the published benchmark graph. Founding claims 1 ("runs everywhere") and 4 ("benchmarks auto-published") are real and CI-proven.

Strategy: reld is a polylinker / bridge — Linux links natively (inherited wild ELF core); Windows/macOS link by delegating to lld (the rust-lld in every toolchain): COFF→lld-link, Mach-O→ld64.lld. Native COFF/Mach-O codegen (#7/#8) is later work.

Merged this session

BR-1 Windows COFF bridge (#20) · BR-2 Windows CI proof (#22) · BR-3 macOS Mach-O bridge (#31) · BR-4a reld in benchmark (#24) · BR-4b schema v2 (#26) · BR-4c cross-platform bench smoke (#28) · Polylinker docs + D13 amendment + agents/docs/polylinker.md (#33) · B8a router foundation — engine registry + RELD_ENGINE/--engine= override (#35) · Benchmark ON — reld charts real numbers (fixed a time_link output-path bug, added link-failure surfacing) (#39) · Windows self-host (#41) · macOS self-host (#44, in flight).

Open issues (design + next work)

How to work in this repo

  • Toolchain: locally, ALL cargo/rustc go through soldr (a hook rejects bare invocations). CI uses bare cargo. soldr builds under target/<triple>/debug/; CI's bare cargo uses target/debug/.
  • Dev box is Windows → macOS/Mach-O work is CI-verified only (macos-arm64 runner). Compose proven patterns; let CI judge. Dispatch-verify benchmark/workflow changes before merging — a code review can't catch a runner-only bug (that's how the reld benchmark n/a output-path bug was found).
  • Bridge code: crates/reld-core/src/bridge.rs (format-aware BridgeTarget{Coff,MachO}, engine registry, RELD_ENGINE/--engine=), routed from crates/reld/src/main.rs via Args::bridge_target(). The ELF/native path is the untouched wild core.
  • Standard link gate: ci/e2e/sqlite-bridge/ — a 16-file, 4-dep (rusqlite bundled → SQLite C) two-crate project, its own workspace (root-excluded), built with -Clinker/CARGO_TARGET_..._LINKER pointed at reld.
  • Benchmark: benchmark-stats.yml builds reld + installs the ld.reld shim so reld-bench measures reld; publish is guarded to the default branch, so workflow_dispatch on a branch validates without publishing. Schema v2 carries target + mode.
  • Honesty policy (DESIGN §6): never chart a failing linker as a silent n/a; keep shipped vs designed explicit in docs (the polylinker flag-router is designed, not implemented).

Autonomous loop pattern used

Each iteration: read the epic, pick one micro-task, spawn a sonnet5 implementer, review with a fresh sonnet5 agent, self-review, run the rusqlite e2e (+ dispatch-verify for benchmark/CI changes), PR, CI-gated merge, sync main. One issue per iteration.

Activity

  1. added
    documentation
    on Aug 7, 2026
  2. zackees commented on Aug 23, 2026

    @zackees
    CollaboratorAuthor

    Closing this session handoff as superseded by the completed recovery meta issue #68 and merged PR #69. The current state is now encoded in the README/workflows and verified by Benchmark Stats run 32668402943. Remaining broad work stays tracked in #6, #17, #55, #56, and the native backend issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions