Skip to content

docs(update): propose byte-resumable Git downloads - #185262

Closed
duyufansh2008 wants to merge 1 commit into
openclaw:mainfrom
duyufansh2008:feat/resumable-git-bundles
Closed

duyufansh2008 wants to merge 1 commit into
openclaw:mainfrom
duyufansh2008:feat/resumable-git-bundles

Conversation

@duyufansh2008

@duyufansh2008 duyufansh2008 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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.mjs passes 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.
  • Eight transport scenarios cover those interruptions, ignored Range, malformed and unsatisfiable ranges, changed bytes, encoded responses and complete-file recovery. Git refuses missing prerequisites, then imports the reconstructed bundle after baseline hydration; exact target/payload checks and git fsck --strict pass.
  • Scoped type-aware lint, Node syntax, formatting, document MDX, changed-title glossary, whitespace and internal links pass; the link audit reports 16,030 checked / 0 broken.
  • Independent P0–P2 static autoreview reports no actionable findings.
  • Unused-file check is not fully green: production scan passes with zero entries; the full-tree scan reports 25 untouched 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.

$ git rev-parse HEAD
da04d87ecc3c65babfd0a989416edfbae088ca9a
$ node --version
v26.12.1
$ git --version
git version 2.47.3
$ node scripts/dev/resumable-git-bundle-proof.mjs
{
  "status": "passed",
  "scope": "local protocol experiment; production updater is unchanged",
  "bundleBytes": 262651,
  "results": [
    {
      "scenario": "disconnect",
      "retainedBytes": 65536,
      "resumedFrom": 65536
    },
    {
      "scenario": "restart",
      "retainedBytes": 65536,
      "resumedFrom": 65536
    },
    {
      "scenario": "ignored-range",
      "outcome": "verified"
    },
    {
      "scenario": "invalid-range",
      "outcome": "rejected"
    },
    {
      "scenario": "unsatisfiable-range",
      "outcome": "rejected"
    },
    {
      "scenario": "changed-content",
      "outcome": "rejected"
    },
    {
      "scenario": "encoded-response",
      "outcome": "rejected"
    },
    {
      "scenario": "already-complete",
      "outcome": "verified"
    }
  ],
  "git": {
    "missingPrerequisitesRejected": true,
    "targetAndPayloadVerified": true,
    "fsck": "passed"
  }
}

The current-head openclaw/ci-gate also 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.

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M labels Oct 27, 2026
@duyufansh2008
duyufansh2008 marked this pull request as ready for review October 27, 2026 00:45
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-27T00:45:16.558399Z da04d87 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:docs Preliminary submission classification; full source review pending. label Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This 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.

  • Before: The first download process exits with an incomplete transfer.
  • After: A fresh process resumes at byte 65,536 and verifies the reconstructed bundle; installed OpenClaw updates remain unchanged.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The isolated protocol experiment has captured execution and no concrete defects; evidence remains synthetic, and acceptance of the design stage awaits owner judgment.
Proof confidence 🦐 gold shrimp (3/6) Sufficient (terminal): Exact-head terminal output exercises the documented experiment with real loopback HTTP, fresh download subprocesses, retained offsets, rejection cases, and Git consumption; it satisfies the previous output request for this bounded change without establishing an installed-updater capability.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Partial
User problem: Source-install operators on unstable networks can repeatedly transfer bytes from interrupted Git packs.
Reason: A bounded proposal is useful for evaluating this distinct capability, but accepting a new release-artifact lifecycle is an unresolved product and ownership choice.

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
Reviewed head: da04d87ecc3c65babfd0a989416edfbae088ca9a
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should OpenClaw retain this proposal and experiment as the first design stage for incremental release-bundle downloads?
  • Recommendation: Accept the bounded design stage: Retain the proposal and experiment while leaving production implementation and rollout subject to update/release-owner decisions.
  • Why: The experiment demonstrates byte continuation, but source inspection cannot decide the ongoing publication, baseline-support, retention, and operational commitments, and no human owner decision is recorded.

Before merge

  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Standalone-command registration keeps the original intent (6764880: Documented development commands are registered as executable Knip roots rather than unused-file exceptions.)
  • Documentation glossary input keeps the original intent (0e0e395: The documentation translation pipeline uses authoritative glossary guidance; this PR adds its new English page title there.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Docs +190, Other +317. Total +507 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 2 190 0 +190
Config 0 0 0 0
Generated 0 0 0 0
Other 2 317 0 +317
Total 4 507 0 +507

Labels

Label changes:

  • add P3: This is a design proposal and isolated development experiment with no installed-updater behavior change.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.

Label justifications:

  • P3: This is a design proposal and isolated development experiment with no installed-updater behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-27T01:01:54.220Z sha da04d87 :: needs real behavior proof before merge. :: none

Reviewed October 26, 2026, 9:48 PM ET / October 27, 2026, 01:48 UTC (Revision 2).

Copy link
Copy Markdown
Contributor Author

@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.

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed clawsweeper:intake:docs Preliminary submission classification; full source review pending. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant