Skip to content

docs(design): resolve the two DESIGN.md contradictions blocking incremental - #191

Merged
zackees merged 1 commit into
mainfrom
docs/10-design-contradictions
Sep 18, 2026
Merged

zackees merged 1 commit into
mainfrom
docs/10-design-contradictions

Conversation

@zackees

@zackees zackees commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Closes #10.

#10 raised two contradictions in DESIGN.md, plus a third question for I6, and asked for answers before I2 starts. #154 flags this as the one long-horizon item that shouldn't wait on #153, because the longer it stays open, the more the contradictions leak into Windows and Mac design choices.

1. Peak RSS vs the daemon

The owner's comment on #10 settles it: cold and warm relink must both win. Cold serves GitHub Actions, and warm serves local dev. CI reloads the object graph from an artifact archive through setup-soldr.

  • §2.3, category 4: peak RSS is a win condition on the cold link, where reld and wild do the same work and where CI pays for it. The warm path's resident graph is a deliberate trade, spending memory to buy the millisecond relink. So its RSS is reported separately and must stay bounded. It isn't required to beat a cold wild link that holds nothing between runs. The bound gets set from I2 measurements rather than guessed now. An unbounded or unreported warm RSS still fails the category.
  • §2.2 and §4.2: the graph is a persisted, relocatable artifact first and a resident structure second. The daemon speeds up a graph that already exists on disk; it's never the only copy. That makes warm-from-artifact (no daemon, graph restored) a mode of its own, and it's the mode CI actually runs.

2. Archive semantics

In scope. wild excludes them on the grounds that Rust doesn't use them, but C and C++ on three platforms make them unavoidable. §2.2 now says this is the biggest scope difference from the design we forked.

The graph records archive member selection and symbol resolution. Any edit that changes either one falls back to a full link under §4.2's existing "correctness beats cleverness" rule instead of being patched. That covers a newly pulled member, the malloc-cascade case, and a weak symbol gaining or losing a definition. So the fast path covers the common edit, and the rest stay correct, just no longer fast.

3. Debug info on the warm path (the I6 question)

Settled as a requirement, following from D5 in #9: the warm path emits usable debug info, meaning DWARF on ELF and Mach-O, and PDB on Windows via llvm-ld's LLD writer. The dev loop is where people debug, so a relink with no debug info doesn't count as a warm relink. How that stays incremental is still an I6 design question.

Also

docs/plan/09-INCREMENTAL.md §0.1 now points at these resolutions. Its analysis stays as the record of why.

Docs only. uv run --no-sync python -m pytest ci/tests -q passes, 346 tests, including the check that reads DESIGN.md.

🤖 Generated with Claude Code

…mental (#10)

Peak RSS vs the daemon: the owner's answer on #10 is that cold and warm relink
must both win — cold for CI, warm for local dev — and that CI reloads the object
graph from an artifact archive through setup-soldr. So peak RSS is a win
condition on the cold link, where reld and wild do the same work; the warm
path's resident graph is reported separately and must stay bounded, with the
bound set from I2 measurements rather than guessed. The graph is a persisted
artifact first and a resident structure second, which makes warm-from-artifact
(no daemon, graph restored) a mode of its own.

Archive semantics: in scope, because C and C++ on three platforms make them
unavoidable, unlike the Rust-only case wild's design excludes them for. Member
selection and symbol resolution are part of the graph, and an edit that changes
either falls back to a full link under the existing §4.2 rule.

The I6 debug-info question follows from D5 (#9): the warm path emits usable
DWARF and PDB, because the dev loop is where people debug.

09-INCREMENTAL.md §0.1 now points at the resolution and keeps its analysis as the
record of why.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@zackees
zackees merged commit f0adf64 into main Sep 18, 2026
@zackees
zackees deleted the docs/10-design-contradictions branch September 18, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DECISION: two contradictions in DESIGN.md that block incremental

1 participant