You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] perf(install): no per-dependency git process on warm-cache installs #4841
performanceLegacy classification name; prefer type/performance. Retained for history.status/acceptedHuman scope approval; verify the issue's approval record and review contact before work.type/featureNew capability, new flag, new primitive.
Proposals are welcome before implementation. For substantive changes, wait
for a responsible human maintainer to approve the scope and identify a review
contact. An automated recommendation, label alone, or silence is not approval.
See Contributing.
Is your feature request related to a problem? Please describe.
Warm, no-op and --frozen installs still spawn git processes per dependency even when the persistent git cache already holds the pinned commit. On the tree-10 perf fixture: no-op 8 spawns, frozen 29, warm 23. The spawns are a git ls-tree per dependency for the tracked-symlink check, a git config probe while building the auth git environment, and repeated policy git remote reads.
Describe the solution you'd like
A cache hit trusts a links-clean record bound to the commit SHA, written by the git_sparse owner when the shard is filled (removes one git ls-tree per dependency).
GitCache.pinned_checkout returns a verified hit for a lockfile-pinned SHA before building an auth git environment (removes the git config probe).
A red-first floor guard: tests/integration/test_warm_install_spawn_budget.py.
Done when: the guard is red on main and green on the PR; tree-10 spawns go no-op 8 -> 2, frozen 29 -> 2, warm 23 -> 3; a CI-bench paired-CPU run at the head; no integrity, auth or policy check weakened.
Out of scope: tag resolution on lockfile-less installs, policy 404 fetches, integrate/deploy.
Describe alternatives you've considered
Keeping the per-dependency checks: correct, but each costs a process spawn on every install.
Additional context
PERF lane B, the spawn floor for lane C (diff vs lockfile). Review contact: QL.
Decision: approve
Area: project
Scope: Performance of warm, no-op and --frozen installs. (1) A git cache hit trusts a links-clean record bound to the commit SHA, written by the git_sparse owner when the shard is filled, instead of running git ls-tree per dependency; a missing, malformed or SHA-mismatched record runs the existing strict check unchanged. (2) GitCache.pinned_checkout returns a verified hit for a lockfile-pinned SHA before building an auth git environment; any miss or verification failure builds the auth environment exactly as today. (3) The policy git remote reads are memoized per command only, never across processes. (4) A red-first floor guard, tests/integration/test_warm_install_spawn_budget.py. No integrity, auth or policy check is weakened or skipped.
Done when: The spawn-budget guard is red on main and green on the PR; tree-10 spawns go no-op 8 -> 2, frozen 29 -> 2, warm 23 -> 3; red-first cells prove a tampered or SHA-mismatched links-clean record falls back to the strict check, a cache miss still builds the auth environment, and the remote memo never crosses commands; it lands only with a CI-bench paired run at its head showing at least 30% on its target warm journey (CPU plus the request and spawn floor), proxy counts alone not qualifying, before the PERF kill date of Mon 2026-11-23 12:00; the cache-trust and auth-skip paths get QL W3b ACCEPT, with W3b reviewing only after lane C S1, before merge; QL signs off under H8; CI is green; a CHANGELOG line is added.
Out of scope: Taking time from lane C store work or lane C reviews (CEO priority); tag resolution on lockfile-less installs; policy 404 fetches (#4782); integrate and deploy phases.
Review contact: Daniel Meppiel (@danielmeppiel)
Closed as not planned: lane B was stopped on benchmark evidence (CI-bench run 45078453704, about 1% CPU, below the 30% gate in this record). The scope record on this issue is withdrawn with this closure.
performanceLegacy classification name; prefer type/performance. Retained for history.status/acceptedHuman scope approval; verify the issue's approval record and review contact before work.type/featureNew capability, new flag, new primitive.
Activity
danielmeppiel commentedon Nov 22, 2026
Decision: approve
Area: project
Scope: Performance of warm, no-op and --frozen installs. (1) A git cache hit trusts a links-clean record bound to the commit SHA, written by the git_sparse owner when the shard is filled, instead of running git ls-tree per dependency; a missing, malformed or SHA-mismatched record runs the existing strict check unchanged. (2) GitCache.pinned_checkout returns a verified hit for a lockfile-pinned SHA before building an auth git environment; any miss or verification failure builds the auth environment exactly as today. (3) The policy git remote reads are memoized per command only, never across processes. (4) A red-first floor guard, tests/integration/test_warm_install_spawn_budget.py. No integrity, auth or policy check is weakened or skipped.
Done when: The spawn-budget guard is red on main and green on the PR; tree-10 spawns go no-op 8 -> 2, frozen 29 -> 2, warm 23 -> 3; red-first cells prove a tampered or SHA-mismatched links-clean record falls back to the strict check, a cache miss still builds the auth environment, and the remote memo never crosses commands; it lands only with a CI-bench paired run at its head showing at least 30% on its target warm journey (CPU plus the request and spawn floor), proxy counts alone not qualifying, before the PERF kill date of Mon 2026-11-23 12:00; the cache-trust and auth-skip paths get QL W3b ACCEPT, with W3b reviewing only after lane C S1, before merge; QL signs off under H8; CI is green; a CHANGELOG line is added.
Out of scope: Taking time from lane C store work or lane C reviews (CEO priority); tag resolution on lockfile-less installs; policy 404 fetches (#4782); integrate and deploy phases.
Review contact: Daniel Meppiel (@danielmeppiel)
danielmeppiel commentedon Nov 22, 2026
Closed as not planned: lane B was stopped on benchmark evidence (CI-bench run 45078453704, about 1% CPU, below the 30% gate in this record). The scope record on this issue is withdrawn with this closure.