Repository navigation
Conversation
Prepare immutable history and object contents with the guest resumed under existing host custody, then observe guest Git state and verify the host integration identity before applying source changes. Regression proof covers cold source imports and guest index edits during downloads and source verification. Allocate 82 net test lines for these distinct failures; existing acquisition coverage is moved, not duplicated. Consistency capture and transfer recovery retain their existing pause contract.
|
🦞👀 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. |
Preserve both acquisition suites from main and the pause regression, sharing their fixture setup. The resulting change allocates 69 net test lines. Focused suites pass 45 tests; the CI artifact build and fresh independent review pass against integrated main d9094ab.
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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR downloads GitHub source objects with the guest running, then checks workspace identity before applying files under a consistency pause. Example: Prepare a fork PR in a workspace containing 62,000 files.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is ready for landing consideration: no actionable findings remain, exact-head CI passes, and the maintainer explicitly lifted the earlier hold. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe GitHub publication integration owner receives verified PR or repository-base identities, acquires immutable Git objects through host transport, and applies source changes to the canonical checkout and sandbox projection through existing reconciliation owners. flowchart TD
A[Verified GitHub source] --> B[Settle pending transfers]
B --> C[Resume guest and fetch objects]
C --> D[Verify source and observe guest Git state]
D --> E[Reacquire custody and check identity]
E --> F[Apply source under consistency pause]
F --> G[Prepare review base and resume guest]
Technical reviewBest possible solution: Land the focused separation of immutable source acquisition from paused file integration while preserving existing recovery and conflict handling. Do we have a high-confidence way to reproduce the issue? Current-main source places Git acquisition inside the paused integration callback, and supplied native baseline runs record paused fetches; no target code was executed during this read-only review. Is this the best way to solve the issue? The change fixes pause ownership at the shared integration boundary, removes the replaced fetch-under-pause implementation, and preserves consistency checks without adding configuration or a competing state owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a9c961f77748. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +77, Tests +69, Docs +8, Other +425. Total +579 across 7 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 HistoryReviewed November 11, 2026, 10:41 AM ET / 15:41 UTC (Revision 3). |
|
@clawsweeper re-review Please review final head d16e7e9. Your previous review of 28458d9 reported no findings or open checklist items. The only subsequent code change replaces a nonexecuted benchmark-header sentence; independent scoped review is clean and final-head CI is green. The body now records the completed native pairs and the interrupted measurement campaign accurately. The guest runs throughout both candidate fetches, while final contents, HEAD and index remain verified. Remaining measurement/allocation proof and the universal fixed-cap requirement are explicitly unresolved; the PR is held, with no claim that those requirements are satisfied. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review
The maintainer accepts the two completed native pairs (116.536→55.371 s and 122.232→54.592 s frozen time) with passing consistency checks as sufficient evidence for this fix. The incomplete timing/allocation campaign remains disclosed. A fixed total-freeze cap is explicitly deferred: preserve the existing partial-transfer recovery contract rather than risk correctness to meet a deadline. Attribution and reduction of the remaining consistency pause are follow-up work. The reviewed head remains d16e7e9. No code change is needed for this decision: source preparation resumes the guest at |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
|
Follow-up measurement rule for the remaining consistency pause: Use the same synthetic registered The candidate must move identified immutable preparation out of the guest-frozen interval while preserving current identity/pristine checks, source admission, guest edits/index state, and two-sided transfer recovery. The primary work-count target is zero frozen immutable before/after checkout and staging calls on initial import; no extra full-tree scan or hashing pass should be introduced to achieve it. A fixed freeze cap remains out of scope by the maintainer's decision. For the resulting production change, compare the same baseline/candidate workload serially with two A/A controls and five counterbalanced pairs where host conditions permit. Record owner wall time, total/maximum frozen duration, guest heartbeat, process/guest CPU, memory and separately sampled allocation, preserving all failures/outliers. Timing/CPU regressions need investigation; incomplete or contended proof will be disclosed rather than presented as a completed campaign. Filesystem and profiler scope remain explicit. No live deployment is part of this proof. |
…law#197243) * fix(sandbox): keep guests running during GitHub source fetches Prepare immutable history and object contents with the guest resumed under existing host custody, then observe guest Git state and verify the host integration identity before applying source changes. Regression proof covers cold source imports and guest index edits during downloads and source verification. Allocate 82 net test lines for these distinct failures; existing acquisition coverage is moved, not duplicated. Consistency capture and transfer recovery retain their existing pause contract. * docs(perf): describe the pause fixture generically
Allow initial guest PR preparation from the recorded project's published history while preserving unpublished work and original PR identity. (cherry picked from commit 2757947) Stable adaptation: preserve the existing linked-identity fixture; expand its options type and allocate exactly 89 regression LF instead of 84. Production and documentation patches are unchanged from the source. Companions: #188785 is present-equivalent. Later #188784, #190223, #190576, #190542, #195413, #197229, #197243, #199717, #195787, #197510, #193664, #199851, #199864, #197656, #198851, #193873, #197594, #189006, #188904, #194025, #196200, #192283, #189010, #188816 and e0466ff are not prerequisites to this scoped repair; retain their separate intake dispositions. No later PR-number mentions. Proof: baseline 4 failed/20 passed through registered agent action; fixed 41/41 across preparation, refresh and base-action suites. Type-aware lint4, formatting5, docs MDX1419 and diff check pass. No live GitHub or full release qualification claim. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Fixes long sandbox freezes while GitHub PR preparation or base refresh downloads repository history and missing objects.
User Impact
The guest keeps running during Git history and object downloads. Working-file application and pending-transfer recovery retain their consistency pauses. This change does not impose a universal maximum pause duration; large consistency work can still pause the guest. The maintainer explicitly deferred a fixed freeze cap to preserve correctness: finishing or undoing partially applied transfers must retain the existing recovery contract. Remaining consistency-pause attribution and optimization are follow-up work.
Why This Change Was Made
Source integration previously downloaded history, hydrated missing blobs, and prepared merge ancestors inside the frozen workspace callback. Prepare those immutable Git objects with the guest resumed while retaining host custody. After remote verification, observe the guest's current Git state and verify the host HEAD, merge state, and recorded base across the custody gap before applying changes. Guest edits remain preserved or produce the existing actionable conflict.
The generic exec/Git shim does not itself acquire this pause. This fix targets the registered
prepare_prandrefresh_baseintegration owner. It removes the fetch-under-pause path without changing schema, configuration, caches, or transfer recovery. Production code grows by 77 lines for the second custody phase and its identity checks; the preparation sibling keeps the existing file-size limit. Regression tests grow by 69 allocated lines; existing acquisition coverage is moved, not duplicated.Evidence
840105308d2964b937e42b34e44728c392408f61because fetch observes a paused guest, and pass with the fix. The final four acquisition cases also preserve guest index-only edits during download and remote verification.pnpm check:changedcompleted. Its remaining unused-export failures reproduce as identical symbol sets on the original parent and integrated main parentd9094aba06050bc3fc036392616239cd625b4237: 57 production, 33 full-tree, and 1 script. Introducing commits/PRs are recorded below; these are main regressions, not ignored failures.d9094aba06050bc3fc036392616239cd625b4237after conflict resolution, through P2: scoped-clean, no actionable findings. Source inputs were verified unchanged by the review helper.d16e7e9a6b474f5225b08c4524e3c130bec61ba7: run 43044512158. The only change from measured source28458d9f26cfb6198c7a84136336f6adfad48df8is a nonexecuted benchmark header sentence; production and generated fixture code are unchanged. Its scoped independent Codex review is also clean.Measurement limitations: this is a macOS APFS bind mount with a real Docker/OrbStack guest, not btrfs or a large-database qualification. Process CPU excludes spawned Git child CPU; planned inspector allocation profiles cover only the main JS isolate, not worker/native allocations. The benchmark permits 180 s fixture subprocesses; production's 60 s command timeout is unchanged, so >60 s completed fetches prove pause placement/content correctness, not production timeout policy. Controls/pairs ran at host load 5–10 on 32 CPUs; A3 rose to 25 and post-failure load reached 53. Concurrent source-review reads overlapped A3 and are recorded as possible interference, without attributing causality. No live deployment was run.
pnpm build:ci-artifactspasses locally in 5m 31s with nonfatal CSS/chat-boot budget warnings from unchanged UI inputs. The initial manual CI dispatch failed preflight because its selected validation tier required a different workflow/target relationship; it is not build proof and was not rerun.Exact-parent unused-export attribution