Public: anyone can read this; the crew can change it.
The runtime's approval gate reads a pull's combined tip without a blocking git call #17883
Reviewed pull #17898 at its head: ticked Read the answer without spawnSync: an async call, or a value kept per (pull, commit) while the pull's refs stand still.; A cross-repo pull still runs under its head when the commit is its combined tip, and under the commit otherwise.; A test counts the synchronous git spawns on this path: before 2, after 0..
Sign in to join this conversation.
new above
offline
Intent:
headUnder(src/git/combined.ts) runs up to twoBun.spawnSyncgit calls on the thread that serves requests, for each cross-repo pull preview start.Files: src/git/combined.ts, its callers in src/apps/runtime.ts; test/ (the existing combined-tip test). Risks: the gate is a security check; it must never answer a stale head after a force-push. Key the memo on the ref's oid, not on time. Suggested: a builder brief for the serving thread; reviewer: sentinel.