Repository navigation
Conversation
Keep required checks in copied rehearsals while recording optional core inspections for after activation. Avoid preparing runtime model and tool metadata for deferred checks, including the first hop driven by published 2026.9.4. Related: #154381, #154114, #144858. Thanks @ZaneMc-AO and @agebreak0083 for the reporter phase evidence.
|
🦞👀 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: blocked before merge. Reviewed September 21, 2026, 6:41 PM ET / 22:41 UTC (Revision 11). ClawSweeper reviewWhat this changesThe PR reuses prepared plugin sources across update validation checks while giving each executing consumer an independent writable copy. Merge readiness⛔ Blocked before merge - 5 items remain Keep this distinct optimization open and held. Current main does not implement it, and the reported acquisition savings do not yet establish that the additional copying is worthwhile. Priority: P2 Review scores
Verification
How this fits togetherUpdate validation runs Doctor and plugin checks against a disposable copy of the installation. The plugin-generation owner prepares source files and dependency facts for those checks before the updater decides whether the candidate can activate. flowchart TD
A[Installed updater] --> B[Disposable candidate copy]
B --> C[Prepare plugin sources and dependencies]
C --> D{Prepared generation available}
D -->|Yes| E[Independent writable views]
D -->|No| F[Independent acquisition with warning]
E --> G[Doctor and plugin validation]
F --> G
G --> H[Candidate validation result]
Decision needed
Why: The implementation has useful acquisition savings, but accepting its storage and platform tradeoff requires the explicitly requested maintainer judgment. Before merge
Agent review detailsSecurityNone. PR surfaceSource +968, Tests +485, Docs +7. Total +1460 across 16 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain generation reuse only where representative published-updater evidence supports its storage and latency cost, while preserving independent runtime views and fallback acquisition. Do we have a high-confidence way to reproduce the issue? Not applicable to the optimization itself: current source establishes repeated acquisition, and historical measurements quantify it. Those Linux runs did not reproduce the reporters' update timeout. Is this the best way to solve the issue? Unclear: extending the existing generation owner preserves a coherent ownership model, but fewer acquisitions alone do not justify complete-copy reuse without a demonstrated net benefit. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 32c12d3eba7e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
Register transcript reconciliation with agent resource ownership before yielding, revoke new work during close, and join native completion plus lease release before the cached handle closes. Preserve cleanup custody when native settlement fails.
Share immutable plugin acquisition and inspection facts across candidate surfaces while retaining independent runtime views and late-input ownership. Leave disposable session projections to live startup, and preserve published-driver markers, native layouts, junction rebinding, fallback acquisition, and recovery.
|
Closing this generation-reuse proposal without merging. The measured implementation does not establish an update speedup sufficient to justify its additional copying and lifecycle complexity. With settlement repair and lint deferral held constant, repeated source acquisitions fell from 29 to 7, but source-plus-view logical output rose from 1,472.268 to 1,833.774 MiB: 361.506 MiB more, or 24.55%. The validating-ledger median improved from 64.056 to 62.713 seconds with overlapping ranges; the rehearsal median increased from 24.643 to 25.628 seconds. These are historical measurements of the combined tree, not fresh end-to-end proof of this generation-only split. Slow-disk and Windows benefits remain unproven. The source explains the tradeoff: preparation captures complete plugin bases and each executing consumer receives a complete independent writable copy. Reflink is optional, so filesystems that cannot clone incur ordinary copying. The resulting additional artifact snapshot, publication, and rebinding lifecycle adds roughly 968 net production lines without a demonstrated overall improvement. The independently useful fixes were preserved and already merged: #155138, which fixes validation settlement/database lock failures, and #155244, which defers optional candidate lint. This closure does not claim that main implements generation reuse. The measurements and branch remain useful evidence for a narrower future proposal that demonstrates an end-to-end improvement while accounting for copy volume and slower storage. |
What Problem This Solves
Candidate update validation repeatedly acquires the same installed external plugin sources and dependency trees for entry, setup, and Doctor surfaces.
Related: #154381, #154114, #144858. Thanks @ZaneMc-AO and @agebreak0083 for the field reports.
User Impact
This draft reuses prepared plugin generations within one disposable candidate rehearsal while keeping each executing consumer's files independent. It is held for Peter's decision: historical measurements reduced repeated acquisitions, but increased logical copy output by 24.55%, and the effect on slow disks and Windows remains unproven.
The scope is generation reuse only. Session-settlement repair is tracked in #155138; Doctor lint deferral is isolated in #155244. Neither repair remains in this PR’s authored delta.
Why This Change Was Made
The plugin-generation owner prepares one private source generation and its dependency-inspection facts, publishes it inside the disposable rehearsal, and supplies isolated runtime copies. Worker envelopes preserve that rehearsal identity across nested state scopes. Native links and SDK resolution remain bound to the candidate. Unavailable preparation records a warning and uses independent acquisition.
The installed 2026.9.4 driver still owns its initial snapshot copy and 300-second clamp. Candidate-side reuse cannot remove that already-running driver's work. The remaining change is 16 paths: production +1406/−438, tests +485/−0, docs +7/−0.
The decision is whether the reduction in repeated source acquisition justifies the extra copying of complete writable views on slow storage. No Windows or slow-disk improvement is claimed; keep this PR draft while that tradeoff is unresolved.
Evidence
The source split is exact: seven lint/settlement files were returned to main at
8c56f7239e98dbee1369e036d6b594fd560b9d9d; only their two documentation paragraphs were removed. All 15 retained source/test paths match the previously published producer4b01224f5fc6dbbb66380abee06c2efaa3ec1213byte-for-byte, and the seven-line generation paragraph is unchanged.git diff --checkpasses. A fresh generation-only build, test run, and published-driver hop have not been claimed.Historical diagnostics used the published npm
[email protected]updater with isolated state/free ports, ten v19 agent databases (365.797 MiB total; largest 338.73 MiB), and seven external npm plugins (Codex, WhatsApp, Discord, Slack, DeepSeek, Mistral, and Venice; 477.500 MiB total). The candidate upgraded the databases to v22; all three diagnostic hops passed integrity/foreign-key checks and retained transcript/trajectory hashes. The reporter timeout was not reproduced on the Linux Testbox.The following source-acquisition comparison held both the settlement repair and lint deferral constant. It is historical generation-reuse evidence, not a fresh measurement of this generation-only, full-lint PR.
The first two rows grow by 361.506 MiB (+24.55%); Codex accounts for 87.94% of that increase. Complete bases replace selective entry acquisitions, and runtime consumers copy complete bases. Reflink was unavailable (
ENOTSUP), so independent writable views used ordinary copies. These are observed API/logical payload bytes, not physical disk-write counters. The 2856.564 MiB full-lint row still includes settlement repair and is not a new generation-only hop.Historical uninstrumented runs used three samples per variant. With settlement and lint deferral held constant, generation reuse changed validating-ledger median 64.056→62.713 s, with overlapping ranges (60.674–105.110 versus 57.210–66.566 s); rehearsal median 24.643→25.628 s also had overlapping ranges. Canary startup median changed 10.696→7.558 s. These data do not establish a generation-only end-to-end speedup. The ledger includes npm staging and is not the exact validator interval.
The unchanged generation implementation previously passed package builds and owner/sibling tests within the combined tree. Historical one-worker costs were 6.35 s wall / about 1.8 s tests for the generation-rehearsal file, and 24.50 s wall / about 1.7 s tests for plugin repair. Those runs and the combined-tree full checks are retained evidence, not new proof for this split. Fresh P1 autoreview of the generation-only composition is scoped-clean with no actionable P0/P1 findings. Exact byte/path checks and
git diff --checkpassed; no new generation-only runtime proof is claimed.The diagnostic probe paired all recorded acquisition/copy spans with successful outcomes and observed no measurement/settlement faults. Each hop lacked 26 other process-exit markers (24 threads and two child processes), so whole-log completeness remains unknown. Published-driver copy timing covered seven project copies; per-plugin
copyInattribution and physical disk counters were unavailable. These limits remain part of the draft decision.Current generation-only head:
5dab15e8425d9ddc6d4b1831eda6a89176502a8c. DRAFT / HELD for Peter’s decision. No landing or auto-merge.