Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@clawsweeper review Please review the bounded discovery and offline execution boundary, including failed prefetch, oversized pickaxe/patch/blame, native grep exit 1, hydrated histories, and preservation of speculative show hydration. Focused tests, pack-count red/green proof, A/A controls, and cold/warm CPU/allocation measurements are in the PR body. The unrelated dead-export findings were reproduced on the exact main parent and attributed there. |
|
🦞👀 Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2c7b7c56a5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| query_repository shared "$@" || return 0 | ||
| # Show prepares history speculatively; other content searches must stay offline | ||
| # after this bounded prefetch, even when discovery or the fetch cannot finish. | ||
| [ "$blob_verb" = show ] || prepared_blobs=1 |
There was a problem hiding this comment.
Include pre-rename blobs before forcing blame offline
In a shared blobless clone, ordinary blame now fails when the file was renamed and its pre-rename content is missing, even with only two commits and well below the discovery budget. Git's documentation states that lines are “automatically followed across whole-file renames” (git-blame), but history_blobs discovers blame candidates using log -m -- <current-path> with --no-renames, excluding blobs under the old path. Setting prepared_blobs=1 then prevents blame from obtaining those required objects. I reproduced git blame HEAD -- new.txt returning exit 2 on this change while the parent shim succeeds on the same fixture. Make blame discovery include rename history within the bounded budget before forcing execution offline.
Useful? React with 👍 / 👎.
|
Codex review: needs maintainer review before merge. What this changesThis PR bounds recognized shared-clone Git content searches to one blob batch and prevents lazy fetching afterward. Example: Run git log --oneline -S selectThemeSettings against the documented cold, 20,001-commit shared partial clone on Git 2.43.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a current-main download problem, resolves the previous finding, and has no remaining actionable findings; exact-head CI is still pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe agent-visible Git PATH shim receives Git commands, prepares missing content in shared partial clones, and delegates execution to native Git. flowchart TD
A[Agent Git command] --> B[Existing PATH shim]
B --> C[Bounded offline discovery]
C --> D[Shared fetch lock]
D --> E[One explicit blob batch]
E --> F[Native Git runs offline]
F --> G[Output or narrowing guidance]
Technical reviewBest possible solution: Keep discovery, one-batch preparation, and offline execution in the existing shim while preserving the demonstrated native Git contracts. Do we have a high-confidence way to reproduce the issue? Current-main source shows unlimited batching and unrestricted fallthrough, and the PR supplies matching real-Git baseline observations; no target code was executed during this review. Is this the best way to solve the issue? The patch repairs the existing preparation owner directly, removes the unlimited loop, and adds only compatibility logic supported by concrete native-Git regressions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5765898e1a29. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +53, Tests +222, Docs 0, Other +18. Total +293 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (6 earlier review cycles)
Reviewed November 13, 2026, 10:23 PM ET / November 14, 2026, 03:23 UTC (Revision 7). |
Discover bounded predecessor paths before one blob fetch, retaining native blame output without lazy hydration. Normalize internal literal and root-relative path handling. Pack-count regressions cover edited rename chains and caller path modes.
|
Addressed item 1 — preserve native blame across edited renames in The finding was real: native blame implicitly follows renamed files, while path-only preparation omitted predecessor blobs. The bounded predecessor expansion now walks deleted-path candidates from the same commits, including rename chains, before the existing single blob fetch. Metadata extraction stays offline and bounded. Native The regression matrix uses two renames with edits, asserts byte-identical native blame output, and counts exactly one new pack / 13 wanted blobs. It covers ordinary mode, @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 779d1bea42
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| missing=$(query_repository objects "$@" <<EOF | awk '$2 == "missing" { print $1 }' | ||
| $candidates | ||
| EOF | ||
| ) | ||
| [ -n "$missing" ] || return 0 | ||
| count=$(printf '%s\n' "$missing" | wc -l) | ||
| if [ "$count" -ge 2048 ]; then | ||
| echo "OpenClaw: fetching $count missing Git objects for this content search." >&2 | ||
| fi | ||
| # Keep large searches under the shared lock, with bounded pack construction. | ||
| if [ "$count" -gt 2048 ]; then | ||
| printf '%s\\n' "$missing" | ( | ||
| IFS= read -r missing || exit 0 | ||
| count=1 | ||
| while IFS= read -r oid; do | ||
| if [ "$count" = 2048 ]; then | ||
| query_repository fetch_blobs "$@" 2>/dev/null || exit 0 | ||
| missing=$oid | ||
| count=1 | ||
| ) | ||
| [ -n "$missing" ] || return 0 |
There was a problem hiding this comment.
Handle batch inspection failures before forcing content reads offline
On Git 2.43.0, query_repository objects aborts when it encounters a missing promisor blob: it exits 128 with fatal: could not fetch … from promisor remote instead of emitting a missing row. This pipeline hides that failure and treats its empty output as nothing to fetch. Because this change subsequently forces the content command offline, even a two-commit, single-file history with no renames fails for git log -p -- file and git blame HEAD -- file, despite being well within the budget. Both commands succeed with the parent shim on the same fixture. Use a missing-object inspection mechanism that works on these Git versions so bounded searches can still perform their explicit prefetch.
Useful? React with 👍 / 👎.
Use offline rev-list on bounded blob roots instead of cat-file, which aborts before reporting missing objects on Git 2.43. Preserve speculative show batching after an inconclusive probe. Real-Git history tests fail before this repair and pass on Ubuntu 24.04 Git 2.43 and Git 2.56.
|
Response to both items on
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7770634461
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| candidates=$(query_repository history_blobs "$@") | ||
| case $candidates in ''|skip) return 0 ;; esac |
There was a problem hiding this comment.
Include the endpoint blob when a blame range has no changes
In a shared blobless clone, a valid blame range can contain no changes to the requested file while its historical content is still missing locally. In that case, history_blobs returns no candidates and preparation stops here, but blame still needs the endpoint's file content. Git documents that unchanged lines are attributed to the range boundary (blame documentation). On Git 2.43.0, I reproduced git blame HEAD~3..HEAD~1 -- file exiting 2 in a four-commit fixture where only HEAD changes that file; the parent shim succeeds. Include the endpoint blob in bounded blame preparation even when the range produces no raw changes, so the suggested revision-range narrowing remains usable.
Useful? React with 👍 / 👎.
| [ "$blob_verb" = show ] || prepared_blobs=1 | ||
| ( | ||
| if [ "$blob_verb" = blame ]; then |
There was a problem hiding this comment.
Account for log.follow before forcing log reads offline
When log.follow=true is configured, Git acts as if --follow were supplied for a single path (configuration documentation: “will act as if the --follow option was used”). The parser accepts an ordinary log -p -- renamed invocation, but discovery forces --no-renames and predecessor expansion runs only for blame, leaving pre-rename blobs out of the batch. Forcing the resulting log offline therefore breaks small histories despite staying below every budget. In an isolated shared blobless fixture on Git 2.43.0, git -c log.follow=true log -p -- renamed exits 2 here while the parent shim succeeds. Detect this configuration and either prepare the predecessor history or retain the native handling already used for explicit --follow.
Useful? React with 👍 / 👎.
Prepare endpoint content when a blame range has no file changes. Preserve implicit log.follow and implicit path contracts using existing config and revision-probe facts. Keep unscoped pickaxe bounded and retarget the failed-fetch regression to the actual fetch boundary.
|
Response to the three open items on
All seven focused tests pass on Git 2.56, and all five history tests pass on Git 2.43. Targeted lint/types/format pass. Fresh Codex review of this delta with full owner context is scoped-clean. The measured default workloads have explicit paths, no log.follow setting and nonempty discovery, so these edge repairs add no Git operations to them; the pinned measurements are reused with that qualification in the body. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0246f32838
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| count=1 | ||
| # Show prepares history speculatively; other content searches must stay offline | ||
| # after this bounded prefetch, even when discovery or the fetch cannot finish. | ||
| [ "$blob_verb" = show ] || prepared_blobs=1 |
There was a problem hiding this comment.
Prepare combined merge diffs before forcing them offline
In a shared blobless clone, git diff HEAD^! -- file now fails when HEAD is a merge and its parent blobs are missing, even for a single-file history far below the budget. Git documents that this invocation produces a combined diff, whose raw records have “a colon for each parent” (documentation). The discovery parser only recognizes single-colon records, so it reports no candidates before this assignment forces execution offline. On Git 2.43.0, I reproduced exit 2 with this commit versus successful, native-equivalent output with the parent shim; the explicit git diff HEAD HEAD^1 HEAD^2 form also fails. Handle combined raw records in bounded preparation, or retain native handling for these unsupported forms.
Useful? React with 👍 / 👎.
| blob_args="$blob_args | ||
| -n | ||
| 1" | ||
| candidates=$(query_repository history_blobs "$@") |
There was a problem hiding this comment.
Include root changes in blame's fallback discovery
When log.showRoot=false is configured, blaming a historical file version created in the root commit can now fail in a shared blobless clone. This setting controls whether log displays the initial commit as a creation event (configuration documentation), so both the initial discovery and this fallback return no blobs when the root is the only reachable file change. Blame itself still requires that content. In an isolated three-commit fixture on Git 2.43.0, git -c log.showRoot=false blame HEAD~2 -- file exits 2 here while the parent shim succeeds. Force root-change inclusion for blame discovery rather than inheriting log's presentation setting.
Useful? React with 👍 / 👎.
|
Response to the three open items on
All seven focused tests pass on Git 2.56, and all five history tests pass on Git 2.43. Targeted lint/types/format pass. Fresh Codex review of this delta with full owner context is scoped-clean. The measured default workloads have explicit paths, no log.follow setting and nonempty discovery, so these edge repairs add no Git operations to them; the pinned measurements are reused with that qualification in the body. The requested second-attempt proof is also complete on this unchanged head: consecutive exact whole-history pickaxe invocations create 0/0 packs versus capped baseline 64/66; injected failed or terminated fetches and the actual ownerless-lock timeout return guidance with zero packs. Retrying the bounded command after recovery creates one explicit batch/pack and no native lazy-fetch children. The parent-shell offline marker at line 409 survives preparation failures; lines 621–627 exit before unrestricted execution. Full reproduction details are in the updated body. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Both open items on 0246f32 are repaired at
All eight focused tests pass on Git2.56; all six history tests pass on Git2.43. Fresh Codex review is scoped-clean at P0–P2. Full check:changed was rerun: every check passes except the identical dead exports already reproduced on the exact main parent and attributed in the body. These repairs add five production lines (whole PR net+53), no new Git processes or fetches. The performance owner's verbatim acceptance and second-invocation/failure/timeout proof remain in the body. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6fc0c66b86
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| grep) set -- "$@" rev-list --objects --no-walk --missing=print ;; | ||
| diff) set -- "$@" diff ;; | ||
| log) set -- "$@" log ;; | ||
| blame) set -- "$@" log -m --root ;; |
There was a problem hiding this comment.
Disable log.follow for blame's internal discovery
With log.follow=true configured, ordinary blame now fails in a shared blobless clone even on a small history. The new bypass covers log commands, but blame's history_paths query also invokes log, combining implicit follow with --full-diff; on Git 2.43 this aborts with fatal: --follow requires exactly one pathspec. Preparation consequently returns skip, and blame runs offline without its missing historical blobs. Git documents that this configuration acts “as if the --follow option was used” (configuration documentation). In an isolated seven-commit renamed-file fixture, git -c log.follow=true blame HEAD -- new exits 2 here, while the parent shim succeeds with native-equivalent output. Force log.follow=false for blame's internal discovery so this unrelated log preference cannot prevent bounded preparation.
Useful? React with 👍 / 👎.
|
The single open item on6fc0c66b86ce is repaired at
All eight focused tests pass on Git2.56; all six history tests pass on Git2.43. Fresh Codex review is scoped-clean P0–P2; targeted lint/format pass. The full check:changed run on the prior head had only the already-attributed identical dead-export findings, and its unchanged checks are reused. Prior-head CI is GREEN; current-head CI is being refreshed. Performance acceptance remains verbatim in the body. Production delta remains+53, with no new Git process or default-workload object. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…#198531) * fix: bound shared Git content searches before lazy fetching * fix(infra): preserve edited rename history in bounded blame Discover bounded predecessor paths before one blob fetch, retaining native blame output without lazy hydration. Normalize internal literal and root-relative path handling. Pack-count regressions cover edited rename chains and caller path modes. * fix(infra): inspect missing blobs without legacy lazy fetches Use offline rev-list on bounded blob roots instead of cat-file, which aborts before reporting missing objects on Git 2.43. Preserve speculative show batching after an inconclusive probe. Real-Git history tests fail before this repair and pass on Ubuntu 24.04 Git 2.43 and Git 2.56. * fix(infra): preserve bounded blame ranges and native log paths Prepare endpoint content when a blame range has no file changes. Preserve implicit log.follow and implicit path contracts using existing config and revision-probe facts. Keep unscoped pickaxe bounded and retarget the failed-fetch regression to the actual fetch boundary. * fix(infra): prepare combined diffs and blame root content * fix(infra): isolate blame discovery from log follow settings
What Problem This Solves
Fixes excessive downloads and promisor-pack creation when agents search the entire history of a shared partial clone, or when content prefetch cannot finish.
Related: #197259, #197448.
User Impact
Recognized pickaxe, patch/stat/numstat logs, range diffs, revision grep, and blame fetch at most one bounded blob batch, then read offline. If content is still missing, agents get guidance to narrow the pathspec, use revision-specific
git grep, or add a--sincebound (a revision range for blame). Already-hydrated histories remain readable. Speculativeshow rev:pathhydration retains its existing behavior. Use--before scoped pathspecs; implicit log paths, explicit rename/copy forms, andlog.follow=truepath history retain their existing native handling.Why This Change Was Made
The previous implementation bounded each fetch to 2,048 objects but allowed an unlimited number of batches. Incomplete discovery and failed prefetch also fell through to native lazy fetching. Apply the existing discovery budget to every recognized content search and retain offline execution after preparation, including its failure paths. Remove the unlimited batch loop. Native blame implicitly follows edited renames, so preparation expands bounded predecessor paths from deletions in the same commits, including rename chains, before its one blob fetch. Internal discovery preserves literal filenames and root-relative paths even with caller pathspec/relative modes. This conservative set may include other deletions in those commits. Production code is net +53 lines (124 added / 71 removed); the growth preserves native blame rename/range behavior, existing log path/follow contracts, and supported Git 2.43 operation under the bounded execution policy. No new configuration, cache, schema, or dependency.
The exact unscoped command
git log --oneline -S selectThemeSettingsengaged batching on Git 2.56, but reproduces the tiny-pack storm on Ubuntu 24.04 Git 2.43: the original shim created 65 packs / 6,159 bytes in 1.28 seconds before a 64-pack observation cap terminated it. The candidate returns actionable guidance in 119.9 ms with zero packs or fetches. This is a capped baseline observation, not completed-search latency. The source fixture has 20,001 commits and 62,001 files.On the tested Git 2.43,
cat-file --batch-checkaborts on a missing promisor blob instead of printing a missing row, even withGIT_NO_LAZY_FETCHand protocol denial; the old pipeline treats the empty result as no missing blobs, skips explicit prefetch, and permits native lazy fetching. Missing-blob inspection now uses offlinerev-list --objects --no-walk --ignore-missing --missing=printon the bounded known blob roots and subtracts present roots. It neither walks history nor scans the object database. An inconclusive speculative show probe also proceeds to bounded preparation. No Git-version branch or new configuration.The actual production Git version was not inspected, so the production-specific attribution remains conditional. The same mechanism is reproduced through the unchanged original shim on the large synthetic fixture.
Evidence
Acceptance rule: an oversized cold search must return actionable guidance with zero new packs and transport attempts; a fully hydrated search must preserve native output. Small scoped reads must retain one-batch behavior.
The following large-history Git 2.56 measurements are retained from initial candidate
2c7b7c56a50c; they precede the rename and legacy-inspection repairs. Final-code Git 2.43 and warm-read measurements follow below.Synthetic fixture: 20,001 commits, 62,001 files, 1.116 GB materialized workspace, isolated linked worktree metadata in a
blob:noneclone. Five paired A/A controls and five alternating A/B pairs;maintenance.auto=false,gc.auto=0, no partial-clone maintenance. Linux container, Git 2.56.0, 4-CPU / 8-GiB limit, overlay filesystem; this is Git-owner proof, not a database or btrfs latency claim.A/A control medians: 4,399.9 vs 4,754.2 ms wall; 4,588.5 vs 4,614.9 ms CPU. All controls produced identical output and pack counts. The candidate intentionally refuses this oversized cold search; these are not equivalent successful-search latency numbers. Independent macOS samples show 17,732.4 → 145.0 ms median and 10 → 0 packs (macOS CPU accounting is incomplete).
Reproduce with
node --import ./scripts/tsx.mjs scripts/perf/agent-git-probes.mts --scratch-parent <scratch> --bounded-history --commits 20000 --files 62000 --samples 5 --baseline-shim <pre-fix-shim>. Add--warmfor hydrated controls;--allocation-preload <counter.so>for a separate allocation run.Pack-count regression is red on baseline:
-S,-G, andlog -peach create 3 packs and request 4,098 blobs; blame creates a lazy-fetch pack. Candidate creates zero. Focused shim tests cover output/path scope, linked-worktree overlap, offline reads, failed prefetch, grep exit 1, narrowed searches, and hydrated oversized history. Final focused suites: eight tests pass on Git 2.56, and all six history tests pass on Git 2.43. These include edited rename chains, literal pathspec flag/environment, and subdirectory relative-diff regression cases. Rename behavior is red on the first PR head and green with the repair. On Git 2.43, small search/rename tests fail at head 779d1be and pass after the nonhydrating inspection repair; all existing one-pack assertions remain intact. The failed-prefetch baseline creates 11 lazy-fetch packs; candidate creates zero. Source-aware Codex autoreview: no actionable P0–P2 findings. Warm searches preserve byte-identical output: median wall 658.5 → 414.2 ms, command-tree CPU 664.0 → 411.8 ms, zero packs for both. Warm A/A control wall medians: 639.4 / 634.8 ms. Separate instrumented cold runs reduce malloc/calloc/realloc calls from 3,939,342 to 218,766 and cumulative requested allocation bytes from 11,946,259,143 to 457,625,228 (medians; not retained memory). A/A allocation controls agree exactly at 3,939,316 calls / 11,945,885,586 bytes. The counter calibration reports exactly 3 calls / 110 requested bytes.pnpm check:changedcompleted: all checks pass except the unrelated dead-export scan. The initial test-local shadowing lint findings were fixed and the focused lint/test checks pass. The same dead-export findings reproduce on the exact main parent4cffd43ee043275f6a4c693aaacee8d8e5a61288; no findings touch this diff. Source attribution:TELEPORT_PT,QA_UX_STREAM_END_MARKER858b5b01338e/ #198293 added unused exportsadoptTelegramDmTopicMessage,TELEGRAM_DM_TOPIC_ADOPT_WINDOW_SEC90c620b8e554/ #169444 added exports without production consumersmergeNodeRepositoryPublication,WorkspaceTransferOperation8e6768f91235/ #193873 added the export/re-exportRELAY_CHECK_INTERVAL_MS,RELAY_GRACE_MSd4e80ac038cd/ #198474 added exported constants used locallyChatModelPickerTargetOptioncd61ce32dd28/ #180824 moved its last external consumer into the defining module but retained the exportChatModelRuntimeControl56ca2fae9015/ #192137 added an exported component used locallyThese are inherited main regressions, recorded for their owners; the scan was not skipped or reported green.
Measured implementation and warm-read decision
These measurements are pinned to
777063446191; the final edge repairs reuse them because these workloads use explicit paths, have nolog.followconfiguration, and have nonempty history discovery. The added endpoint/native-path branches do not run and introduce no new Git operations in these workloads.Ubuntu 24.04 / Git 2.43, local container limited to 4 CPUs / 8 GiB, 600 commits, 62,000 files (1.116 GB), five paired A/A controls and five interleaved A/B pairs. Each cold sample starts with fresh shared partial-clone metadata. Output is byte-identical; these are completed searches.
Cold A/A wall medians: log 10,379.3 / 10,220.9 ms; blame 20,618.2 / 14,937.3 ms. Shared-host timing spread is disclosed; control outputs and pack counts agree. Median maximum process RSS: log 8,151,040 → 7,364,608 bytes; blame 8,126,464 → 7,331,840 bytes.
Separate allocation runs reduce public malloc/calloc/realloc calls: log 4,905,699 → 111,844; blame 5,261,711 → 104,134. Cumulative requested bytes: log 1,927,520,027 → 206,240,479; blame 1,972,682,334 → 206,026,521. These are not retained memory. A/A allocation controls agree exactly within each operation (log 4,905,100 calls / 1,927,012,505 bytes; blame 5,261,711 / 1,972,682,334).
Warm reads retain identical output and zero packs, but cost more. The campaign performance owner accepted this tradeoff; see the verbatim decision below.
Warm blame A/A medians: Linux 24.01 / 23.79 ms; macOS 79.44 / 79.43 ms. Warm log A/A: Linux 32.10 / 30.50 ms; macOS 98.54 / 95.02 ms. Git starts increase 5→6 for log and 5→7 for blame. Linux whole-command-tree CPU: warm log 30.05→31.05 ms, blame 26.76→31.93 ms. macOS CPU accounting is incomplete and is not compared. The warm-read cost pays for shared-clone detection and rename-safe preparation before unconditional offline execution. All six history tests pass on both Git versions; both general shim tests also pass on final code. Full-source/delta Codex autoreviews are scoped-clean. Reviewed head
b6eed12ef1c86c263b2318d9c2b909affcf6da97landed through native scripts/pr asff0a22cd21177f3f9971049e8735c9fbb472b8aaon 2026-11-14 at 03:45:13Z. Exact-head CI run43551030434 reached GREEN; the latest ClawSweeper review on that head had zero open items and zero findings. Both prior heads0246f328386eand6fc0c66b86cehad exact-head GREEN CI.check:changedwas rerun at6fc0c66b86ce and again failed only the identical attributed dead-export set; every other check passed. Unchanged checks were reused for the final one-line log.follow override, whose affected tests, lint/format and fresh review passed.The unchanged-range regression is red before repair and now fetches endpoint content in one bounded pack. Git's existing revision parser supplies the positive endpoint; the fallback runs only after complete, empty blame discovery. Implicit
log.followpath history follows the existing explicit--follownative contract. Implicit paths without--reuse unresolved-path facts already established by revision preparation, including paths with spaces; no extra probe was added. Unscoped pickaxe remains bounded even withlog.follow=true. The failed-batch injector now rejectsfetchspecifically and records that it ran, sorev-list --stdincannot accidentally satisfy the failed-prefetch test.Performance owner acceptance
This is the owner's explicit acceptance of the measured warm-read cost. Production figures above are supplied observations, not measurements from the synthetic fixture.
Second-attempt and failed-preparation proof
The original shim has no explicit whole-command retry loop. It does have unconditional native execution after best-effort blob preparation: a failed batch, incomplete discovery, or ownerless-lock timeout can return and reach unrestricted
exec git. Process snapshots alone cannot distinguish that fallthrough from an external second invocation or another shim on PATH; noop-negotiationfetch origin --stdinoccurs in both explicit prefetch and Git's lazy-fetch machinery. No additional production access was used to infer the launcher.At retry-proof head
0246f328386e,prepared_blobs=1is assigned in the parent shell before preparation (line 409). Returns or a terminated fetch inside the preparation subshell cannot clear it. The caller runs native Git with both no-lazy-fetch and protocol denial (lines 621–627), then exits; it cannot reach the unrestricted exec. A fresh invocation applies the same policy again.A supplemental real-Git 2.43 reproduction runs the exact
git log --oneline -S selectThemeSettingstwice against the same shared partial clone. On the 20,001-commit fixture, the original creates 64 then 66 additional packs, each stopped at the observation cap; final code creates 0 then 0 packs, returns exit 2 with actionable guidance in 122.7 and 117.2 ms, and starts no fetches. These are censored baseline observations, not successful-search latency comparisons.On a bounded 100-commit fixture, an injected first-fetch failure and a SIGTERM of the first fetch each return exit 2 with guidance and zero packs. Repeating the same command after that one-shot failure succeeds with one explicit batch / one pack, with no native lazy-fetch children. An actual ownerless-lock wait expires after 31.8 seconds, returns exit 2 with guidance and zero packs; retry after removing the fixture-owned lock succeeds with one batch / one pack. Existing committed failed-prefetch pack-count regression is red on the original source (11 lazy packs) and green on the fix. No additional source change was required.
Combined diffs and root-blame compatibility
The final hosted review identified two additional native Git contracts, both reproduced red before repair. Combined raw diff records contain one mode/object pair per parent plus the result; discovery now includes every object within the existing bound. Blame discovery explicitly includes root changes even when
log.showRoot=false, while leaving user log presentation unchanged. Regression coverage compares real native output and requires one pack fordiff HEAD^!, explicit multi-parentdiff, and historical root blame. These corrections add five production lines and no Git processes, fetches, caches or configuration; the previously measured ordinary raw records and default root inclusion cover the same objects.Internal blame discovery also overrides
log.follow=falseso caller log preferences cannot make its metadata-only --full-diff query fail. The actual user command retains the original setting. The existing rename fixture now covers log.follow=true, with native output and one-pack/13-object assertions: red on6fc0c66b86ce, green after the one-line repair. Final eight focused tests pass on Git2.56 (82.06s including compilation), all six history tests pass on Git2.43 (4.32s), and fresh Codex delta review plus targeted lint/format pass. The completed check:changed result at6fc0c66b86ce is reused for unchanged checks; its one remaining failure is the identical attributed dead-export set. No new production lines, Git processes or default-workload objects were added by this final configuration override.