Repository navigation
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. |
|
ClawSweeper closed this pull request because it changes 51,126 lines (32,368 added, 18,758 removed) across 581 files, above this repository's 50,000-line limit for review. Changes this large cannot be reviewed safely or scanned within limits and usually indicate a stale branch merged against an old base. Please open a fresh pull request from current |
ec81d2b to
db9a93e
Compare
94c5976 to
3e1f70e
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Split complete
All sixty-three focused replacements have landed with separate review, proportional checks, applicable runtime proof, and required CI. This aggregate remains closed and unmerged as the preserved historical reference.
Every replacement has a complete accepted native landing receipt. All 63 merge commits are on main. The final activation landed as
4cac00f89940bac08510360ee92c2194451c00c9; its 11 files exactly match the reviewed and built source. The original aggregate worktree and its 13 staged repairs remain byte-for-byte preserved.The completed work gives finite consumers explicit custody of plugin resources through preparation, callbacks, cancellation, and physical cleanup. Fresh model-selected RUN registrations now use the existing owner/claim machinery, with warm reuse and bounded idle retention preserved. The internal model helper requires its caller-held snapshot and removes obsolete implicit acquisition. Public SDK and injected TTS contracts remain intact, and shared SDK state remains process-owned.
Final validation passed: required checks, independent Codex reviews, 42 lifecycle/helper cases, 28 Cron cases, a normal build in 208 seconds, and ten compiled runtime groups. Actual SQLite late reads, once-only disposal/reopen, loopback model transport, MCP/LSP cleanup, real OS SIGTERM, and terminal failure fencing passed. A final audit verified the complete source/index and artifact inventories unchanged; all owned runtime processes joined. Individual PR bodies qualify synthetic state, raw-host controls, programmatic donors, and shortened fixture timeouts.
Final-PR CI exposed a shared Cron mock missing the acquisition export; the reviewed fixture correction passed with assertions unchanged. An unrelated Matrix dependency download then returned HTTP 500 before prompt-snapshot tests ran. One unchanged retry and the dependent gate passed. Final exact-head CI is green, and native landing and remote source verification are complete.
Current-source audits found no further established RUN-only lifetime defect requiring another PR. Configured, standalone, active-root, and raw-cache domains retain their existing host contracts. Historical path counts do not require porting every original hunk or activating disposal in untouched domains.
Earlier matched five-sample timings measured warm acquisition around 0.18 ms and fresh-after-release acquisition increasing from 2.79 to 5.73 ms because managed sources register anew. This is an intentional fresh-owner cost, not a speedup claim or a benchmark of the final base. Source-specific runtime timings and limitations remain in each replacement PR.
Auxiliary #142804, #143034, and #143705 are excluded from the replacement count. Historical aggregate details below are archival and do not establish the current validation state of any replacement.
Closes #140003
What Problem This Solves
Plugin discovery, prepared runtimes, and CLI operations can retain database connections after their last user finishes. Closing resources at a caller's timeout causes the opposite failure: accepted callbacks can resume against a closed database. This implements the accepted resource-only registration disposer and migrates the consumers that retain executable callbacks.
Ownership And Behavior
One resource owner spans construction, caches, prepared generations, and actual callback completion. Optional registration
disposecallbacks run after the last claim. Internal consumers acquire explicitly; shipped bare SDK APIs retain their documented host lifetime. Resource retention remains separate from execution authority.The migration covers providers, tools, speech, memory, transcripts, CLI/setup, and Gateway operations. Metadata projections retain resources until their data is produced; direct compaction now retains the same exact prepared generation as the normal runner. Independent Codex teardown branches still run after middleware cleanup fails. Catalog discovery keeps its existing deadline, terminal Talk disposal errors release admission capacity, and Cron/computer cleanup joins independent branches.
Meeting sessions receive cleanup ownership before provider startup. Failed physical cleanup stays reachable through status and leave/retry. Unfinished engine/setup work fences replacement within the existing same-transport meeting identity; settled browser-only leave failure preserves its previous replacement behavior.
SQLite schemas, versions, stored representations, retention, configuration/defaults, protocol versions, dependencies, and host floors remain unchanged. Migration/embedding paths acquire their existing owners without introducing a data migration. Public SDK export limits account for exactly the approved ownership exports; explicit limits, including zero, remain absolute.
Production net +5,940 lines; tests/support +7,475; docs +149; tooling/baselines +46. The growth implements explicit custody across escaping callbacks and deferred teardown rather than leaving multiple implicit lifetime rules.
Validation
Current head:
591b5354c85ec5c598e2496d03ddd8bafc21b158. Integrated on mained9861f2e87bba69c91630b214c8783782460a2f.The real Gateway auth-rewarm flow on prior head
bd6c8041exposed a delayed timer retaining a failed attempt's released resource scope. The repair exits that inherited resource scope only at the rewarm owner, then retains the existing independent admission, current configuration/generation selection, cancellation, coalescing, and rate-limit policy. The regression fails with the old owner while four controls pass; all five cases pass with the fix. The unchanged built Gateway case now passes on this commit, as recorded above.The first hosted run exposed incomplete fixture migrations and two real missing owners, around metadata projection and direct compaction. Repairs changed the producers, preserved assertions, and moved test callback ownership outside imported global disposal hooks. A conventional test-support filename resolves dead-code classification; direct type imports remove the static dependency cycle. Internal names distinguish core owners from public SDK wrappers. Later typechecking caught an over-broad rename of two distinct runtime objects; those four caller/mock files were restored to their original reviewed contracts.
Earlier full build/CLI evidence remains attributed to
3e1f70eb: build 335.460 seconds, runtime → metadata-only → runtime CLI calls 1.985 / 1.074 / 1.057 seconds. Both runtime generations physically closed SQLite and passed read-only reopen; metadata inspection changed neither rows nor runtime evaluation markers. These timings are not relabeled as measurements of the current commit.An earlier matched Node 24.20 lookup benchmark against main
4b547c68measured 263.311 → 261.221 ms per 200 lookups (-0.79%), with peak RSS 609,216 → 613,216 KiB (+3.9 MiB). Recorded background activity makes this descriptive and effectively flat, not an established performance win or a measurement of this final integration.Compatibility And Review Disposition
An integrity-verified official 2026.9.2 installation supplied the minimum-host proof. Separate import regressions found during that validation are merged in #141207 for Discord/llama.cpp and #141267 for Voice Call. Their maintained package builds and actual old-host import/operation probes retain their own source pins.
The broader Codex minimum-host contract remains a separate follow-up: its full package import reaches
agent-harness-registration, absent on 9.2 and introduced by #139911. An isolated newer-policy-helper fallback would not restore that package. The old VoiceCall facade's physical-close retry limitation also remains unchanged. Representative macOS arm64/Node 24 proof does not claim every plugin/platform combination or real carrier/model/browser execution.Codex cleanup was checked directly against upstream turn interruption and thread unsubscribe. Existing native wire contracts remain separate from middleware release. Secops owner involvement is satisfied by the accepting maintainer's verified active team membership.
The latest ClawSweeper review found no concrete implementation defect. Its committed build/live Rank-up move is complete; the remaining gate is the hosted CI repair described above. The local integration review used complete before/after source and the directly inspected Codex revision; the remote reviewer’s missing historical blobs are a tooling limitation, not evidence of a data/config change. Meeting retry behavior, representative proof limits, and unchanged data/config contracts are explicit above. A separate browser-target ownership follow-up remains: nominal local and node routes can alias one physical target; this preserves the existing transport policy.