Repository navigation
Description
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)
- Benchmarks on all three platforms: 3-OS matrix + per-target publish (Windows + macOS graphs) #45 Benchmarks on all three platforms (3-OS publish matrix) — the next north-star; needs the rustc-based Win/mac reld measurement for reld on those graphs (clang can't drive reld off-Linux).
- Polylinker: flag-aware router over bundled linkers (LTO/optimized via routing + fallbacks) — design + docs #30 Polylinker flag-router (B8) — LTO/
-flto→ route to a capable engine; builds on B8a. - Linker daemon: thin reld-link client + broker-versioned daemon holding the object graph (running-process broker v2, zccache-embedded instrumentation) #19 Linker daemon (running-process broker v2) — gated by D16/IX-T0: measure per-phase timing first; don't build on assumption.
- Native codegen P3: PE/COFF backend, MinGW (windows-gnu) ABI #7/P4: Mach-O backend, aarch64-apple-darwin #8; ELF burn-down Track and remove inherited reld-diff ignore patterns #13/Burn down the native mold-suite skip list #14/test(linux): add scheduled >2 GiB ELF output scale gate #16.
- Follow-up bug found via test(ci): self-host — link reld with reld via ld64.lld on macos-arm64 (#43) #44: on a macOS host,
reld --version(and any invocation) bridges to ld64.lld instead of printing reld's own version, whereas on Windowsreld.exe --versionprintsReld <sha>. A real COFF-vs-Mach-O host asymmetry inmain.rs's bridge routing (bridge_target()short-circuits before version handling on macOS) — worth its own issue; doesn't affect linking.
How to work in this repo
- Toolchain: locally, ALL
cargo/rustcgo throughsoldr(a hook rejects bare invocations). CI uses barecargo. soldr builds undertarget/<triple>/debug/; CI's bare cargo usestarget/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/aoutput-path bug was found). - Bridge code:
crates/reld-core/src/bridge.rs(format-awareBridgeTarget{Coff,MachO}, engine registry,RELD_ENGINE/--engine=), routed fromcrates/reld/src/main.rsviaArgs::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_..._LINKERpointed at reld. - Benchmark:
benchmark-stats.ymlbuilds reld + installs theld.reldshim soreld-benchmeasures reld; publish is guarded to the default branch, soworkflow_dispatchon a branch validates without publishing. Schema v2 carriestarget+mode. - Honesty policy (DESIGN §6): never chart a failing linker as a silent
n/a; keepshippedvsdesignedexplicit 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
zackees commentedon Aug 23, 2026
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.