Skip to content

docs(rfc): explain best-first speculation generation - #513

Merged
behinddwalls merged 1 commit into
mainfrom
preetam/speculation-generator-rfc
Aug 6, 2026
Merged

docs(rfc): explain best-first speculation generation#513
behinddwalls merged 1 commit into
mainfrom
preetam/speculation-generator-rfc

Conversation

@behinddwalls

@behinddwalls behinddwalls commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Why?

The best-first generator needs a durable explanation of how it ranks paths lazily without enumerating every dependency-outcome combination.

What?

Document the Generate and Next flow: the strict snapshot contract, preferred assumptions and flip costs, per-head streams that sort flips only when a head is first pulled, the extend/swap subset walk, the global k-way merge over each head’s current best, logarithmic scoring, tie-breaks, per-pull complexity, and rejected alternatives.

Comment thread doc/rfc/submitqueue/speculation-generator-best-first.md Outdated
Comment thread doc/rfc/submitqueue/speculation-generator-best-first.md Outdated
Comment thread doc/rfc/submitqueue/speculation-generator-best-first.md Outdated
@behinddwalls
behinddwalls force-pushed the preetam/speculation-generator-rfc branch 2 times, most recently from ffb9cf4 to 65b2836 Compare August 6, 2026 02:34
## Summary

### Why?

The best-first generator needs a durable explanation of how it ranks paths lazily without enumerating every dependency-outcome combination.

### What?

Document the Generate and Next flow: the strict snapshot contract, preferred assumptions and flip costs, per-head streams that sort flips only when a head is first pulled, the extend/swap subset walk, the global k-way merge over each head’s current best, logarithmic scoring, tie-breaks, per-pull complexity, and rejected alternatives.
@behinddwalls
behinddwalls force-pushed the preetam/speculation-generator-rfc branch from 65b2836 to 705c403 Compare August 6, 2026 03:04
@behinddwalls
behinddwalls added this pull request to the merge queue Aug 6, 2026
Merged via the queue into main with commit 913c877 Aug 6, 2026
14 checks passed
@behinddwalls
behinddwalls deleted the preetam/speculation-generator-rfc branch August 6, 2026 03:17
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.

2 participants