Repository navigation
docs(update): propose byte-resumable Git downloads - #185262
duyufansh2008 wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis 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. |
|
Codex review: blocked before merge. What this changesThis PR proposes incremental Git bundles for resumable source updates and adds a standalone protocol experiment. Example: The experiment interrupts a 262,651-byte bundle download after 65,536 bytes.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Partial Merge readiness⛔ Blocked before merge - 1 item remains Keep open for an update/release-owner decision: this is a coherent, bounded proposal with no concrete code findings, and its same-author feature issue remains unresolved. Priority: P3 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherThe proposed transport would hydrate the updater's private Git inspection repository before existing candidate validation, admission, activation, and rollback. flowchart LR
A[Release bundle producer] --> B[Pinned artifact descriptor]
B --> C[Resumable download]
C --> D[Integrity and prerequisite checks]
D --> E[Private inspection repository]
E --> F[Existing candidate admission]
F --> G[Activation and rollback]
Technical reviewBest possible solution: Have update and release owners decide whether to retain this bounded design stage before implementing artifact publication and durable download custody. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the missing byte-resume capability; the supplied execution demonstrates the proposed local protocol, and no target code was run during this review. Is this the best way to solve the issue? The proposal preserves existing update owners and keeps its experiment isolated, making it a coherent design stage whose production direction still requires owner acceptance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9372bf6c87ca. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceDocs +190, Other +317. Total +507 across 4 files. Added test files: 0. View PR surface stats
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 (1 earlier review cycle)
Reviewed October 26, 2026, 9:48 PM ET / October 27, 2026, 01:48 UTC (Revision 2). |
|
@clawsweeper re-review The PR body now includes captured terminal output from the documented experiment on reviewed head da04d87: both fresh-process resumptions at byte 65,536, invalid-response rejection, and successful Git verification. The current-head CI gate passes. The maintainer decision is stated explicitly and remains unresolved; this PR still proposes only a bounded design stage. |
|
🦞👀 Re-review progress:
|
|
Superseded by #185398, which implements client-only recovery of completed Git object batches in the updater. Completed batches survive process exits, Git compression is retained, and no published bundles or release-producer changes are required. An unfinished batch may restart; this is object-batch recovery rather than byte-offset continuation inside a pack. Closing this bundle-publication proposal because the implementation direction has changed. The replacement is ready for review, with its measured costs and validation limits recorded in the PR; #185253 remains open for the broader discussion. |
Related: #185253. Separate from the retry/progress work in #184452.
What Problem This Solves
Git-source operators on unstable networks need to retain bytes from an interrupted download, including after the update process exits.
User Impact
This is an architecture proposal with an executable local protocol experiment. The installed updater is unchanged; production Git updates do not gain byte resume from this PR. Release artifact publication, supported baselines, partial-file custody and retention require design acceptance and implementation.
Why This Change Was Made
The proposal uses immutable incremental Git bundles, digest-bound partial files, strict HTTP Range validation and whole-file integrity checks, then hydrates the existing private inspection repository. Existing remote authority, candidate admission and rollback retain their responsibilities. The first proposed scope is official stable/beta release bundles; development targets and installations missing bundle prerequisites retain normal Git transport.
The experiment is one self-contained command, with its real invocation registered in Knip. It creates synthetic Git history and a loopback server; it does not introduce a production downloader or storage schema.
Evidence
node scripts/dev/resumable-git-bundle-proof.mjspasses in approximately 0.9 s on Linux, Node 26.12.1 and Git 2.47.3. A real 262,651-byte incremental Git bundle resumes from 65,536 bytes after both an HTTP disconnect and a download subprocess killed with SIGKILL. Each recovery uses a fresh Node process and checks the actual Range offset.git fsck --strictpass.scripts/perf/files. The new experiment is not among those findings.This proves the local protocol experiment. It does not prove an installed OpenClaw upgrade, live GitHub release redirects, official bundle publication, production locking/cleanup or upgrade data survival. The proposal names the existing integration points and rollout decisions needed for that end-to-end implementation. This PR does not close the feature issue.
Captured execution on the reviewed head
The following is captured terminal output from this PR's documented command, rerun on the exact reviewed head. The fixture uses only synthetic Git history and loopback HTTP. The command exited with status 0; no credentials, private endpoints, or user data appear in the output.
The current-head
openclaw/ci-gatealso passes. This is separate from the disclosed local full-tree Knip findings.Maintainer decision requested
Should OpenClaw accept the incremental-release-bundle direction and retain this proposal and experiment as a bounded first design stage? Supported baselines, publication cost, immutable-payload handling, partial-file retention and production rollout remain explicit update/release-owner decisions. Human owner acceptance has not been recorded. The experiment proves the local transfer protocol; it does not complete the production capability in #185253.