Skip to content

refactor: simplify infra and plugin lifecycle bookkeeping - #173523

Merged
steipete merged 3 commits into
mainfrom
deslop/z06-2-lifecycle-mechanisms-20261015
Oct 17, 2026
Merged

steipete merged 3 commits into
mainfrom
deslop/z06-2-lifecycle-mechanisms-20261015

Conversation

@steipete

@steipete steipete commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Internal lifecycle paths repeat admission, copy producer-owned facts, and coordinate unsupported reentrant callers after their real owners already establish the required contract. These mechanisms obscure the actual security, FIFO, durability, and shutdown boundaries.

User Impact

No intended user-visible feature or public SDK change. Rare, recoverable internal reentry and manually incomplete build scenarios follow the best-effort behavior named below; security effects, FIFO, user-data durability and ordinary shutdown settlement stay.

Why This Change Was Made

Use one shared telemetry check, caller-local Git cancellation, per-registration cleanup settlement, first-settlement auth receipts, and straight-line private install batches. Remove redundant approval bookkeeping while preserving the live registered-context check before delivery starts. Consolidate official plugin-version candidate construction and service-stop preparation.

Plan transcript changes inside the existing immediate transaction and write prepared archive rows under the existing exclusive maintenance owner. Keep recovery journals, canonical hashes, publication receipts, authority checks and restart reconciliation. The state-directory latch cut was withdrawn after inconclusive changed-path proof; its producer, caller and test isolation are restored together.

Drop duplicate native removal acknowledgements, HTTP abort once flags, diagnostic drain generations and permanent profiler poisoning. Expose temporary ClawHub archive cleanup failures as warnings without replacing the installation result; its record-field normalization moves unchanged to the existing record owner.

Public SDK names/signatures, config/protocol/persisted shapes, security boundaries, normal user-data durability, ordinary shutdown settlement and Phase E standalone session memory remain unchanged.

Best-effort tradeoffs accepted

  • Git read caches: viewer cancellation stops waiting instead of borrower-counting and aborting a shared bounded read. Owner shutdown still aborts and joins actual worker work. Producer-owned results are shared; the transport-mutated diff envelopes keep their targeted copies. Unsupported mutation after handoff is no longer hidden by generic cloning.
  • Approval bootstrap: replace generations and repeated admission with one live exact-context check before external delivery starts, plus ordinary stop. Cleanup errors remain visible. A context replaced during preparation is not started. If an old in-flight start rejects after its successor starts, one retry timer may restart that healthy successor; no human incident was cited for this recoverable interleaving. The timer reads the current context, and no speculative generation protocol is retained.
  • Question delivery and exec-approval bookkeeping: keep exact request identities, live recipient/effect authority and actual stop joins, not surrounding retired-generation or own-write readback machinery. Synthetic ID reuse must not transfer another request's answer.
  • Telemetry: main's refactor: simplify private error handling and recovery #174112 already establishes one shared operation, including its cached result. This packet now removes only the redundant slot-identity comparison and temporary promise variable: no caller replaces the occupied slot. fix: keep telemetry checks responsive and drain them on shutdown #150824's earlier predecessor arbitration used synthetic fixtures and injected HTTP, not an operator incident. Main's intentional error-handling comment, consent and request-boundary policy checks stay.
  • Plugin auth and install batches: first settlement wins and ordinary orchestrators await their real preparation/compensation. Concurrent conflicting commit/rollback/close reentry by internal callers is unsupported. Credential rollback, source authority, locks, errors and physical cleanup joins remain.
  • Registration disposal: settle each registration's own work rather than globally scheduling sibling scopes until all are idle. refactor: keep plugin work and cleanup owned during retirement #144252 describes synthetic foundation scenarios, not a verified human cross-sibling-disposer incident. Cleanup that deliberately mutates a sibling's private resource must respect that owner's closure; actual registration and write settlement stay.
  • Runtime contexts/adoption and diagnostics: remove second synchronous currency/map checks with no await between them. Initial abort/currency admission, actual callback authority, request identity and disposal tokens stay. Exotic reentrant getters or custom signal methods are not supported. Concurrent heartbeat lanes on unrelated dashboard sessions collide, trip real Anthropic 429s, and the retry backoff isn't honored (self-sustaining storm) #144424's real backoff deadline remains protected; it does not require self-mutating assertion callbacks.
  • SDK aliases: a listed but manually incomplete dist graph may now fail with an ordinary missing-module error instead of scanning its relative imports and silently selecting source. f76b426 introduced a synthetic missing-chunk fixture, not a verified human incident. Rebuild/restart repairs it; absent-dist fallback, public exports and native/plugin authority stay. Complete the cutover by deleting the orphan standalone scanner/facts/AST adapter and its fabricated old-scanner fixture; generic image admission, Doctor hashes, packaged assets and native resources stay.
  • Plugin install facts: remove extra producer-owned copies, repeated parsing/compatibility checks and same-transaction own-write SELECTs. Introductions refactor: move plugin index and Board setup to workers #167702/fix(plugins): preserve exact installed-index mutation receipts #140328 and the inspected planning extractions describe transport/record bookkeeping, not human post-handoff mutation incidents. Canonical boundary parsing, worker serialization, rollback receipts, source retention and effect authority stay. The cheap completed-cache-publication preference and retained-root target-mode branch stay; the latter cut was conservatively withdrawn after inconclusive timeout evidence.
  • Transcript/archive repair: unsupported raw SQL mutation from an injected callback during exclusive maintenance is no longer detected by a second before-image/CAS owner. fix: remove delivery markers from historical sessions #124888 introduced the older drift path; fix(state): fence automatic agent database migrations #133563 later supplied exclusive maintenance. Remove only three synthetic in-custody writer tests. Real authority loss, rollback, cancellation, publication failure and between-invocation recovery tests remain unchanged.
  • Diagnostic captures: a cleanup failure marks that capture unavailable instead of permanently poisoning all future captures; the feat(gateway): add admin CPU profile diagnostics #148004/perf(diagnostics): avoid Gateway stalls when starting CPU profiles #170932 failure controls are synthetic. Current capture authority and real cleanup errors remain. The separate file-transport generation cut is withdrawn from this packet: main's transport and fixture stay unchanged after its private test-control retirement.
  • Native package work: remove an unused native-to-host removal acknowledgement left after its receiver's bookkeeping disappeared, not the real removal command or custody. Main's refactor(logging): remove package and snapshot debug instrumentation #174431 already absorbed the pending-I/O telemetry cleanup, so it is no longer part of this packet. HTTP abort uses its native once listener rather than another flag.

Net production LOC at the current head: 505 removed across35 production files, +381/−886 against 9285ef2266ef9902c7126dc6c52d11de81a80686, excluding tests, support, fixtures, generated files and declarations. Includes80 orphan script lines. Main-absorbed work is not counted. The session-planning cut was withdrawn at conflict integration; the entire current-main transcript-directives owner is retained.

Evidence

Current head

Conflict repair published signed head 060c94725398d0bda6d48b0be434325b5818ba3d on base 9285ef2266ef9902c7126dc6c52d11de81a80686; GitHub reports MERGEABLE and exact-head CI run38994461663 is attached. The actual conflict was in transcript-directives.ts: preserve main's entire masked-provider migration/repair owner instead of transplanting the older session-planning cleanup. All three signatures are valid. No merge or auto-merge is armed.

Fresh independent review completed with four findings, all source-declined: exclusive maintenance and durable archive publication remain; the npm fallback already invokes the same compatibility validator; actual transport-mutated Git diff envelopes retain copies; the first synchronous aborted-signal admission remains. No accepted actionable finding remains; this was not a scoped-clean verdict.

Conflict-focused local archive proof was interrupted before assertions. Its suppression companion/inventory cases passed, while Git-backed file listing exceeded the unchanged120-second budget. No passing archive suite or causal/inherited timeout attribution is claimed. After recovering a verified dead task-owned artifact lock, fresh archive lint/format, runtime cycles (0), Madge cycles (0), and targeted core-test-infra types (226.4s) passed under isolated HOME/OpenClaw/XDG.

Exact-head CI38994461663 is complete. Two substantive failures are inherited: job117284178026 has the same runtime-llm prepared-owner LRU expected2/received3 signature as unrelated PR174831/run38982034436/job117245342341; job117284177089 has the same mock-exports maintenance-native fixture52→update-command-database-context.js signature as scheduled main38991549274/job117275051710. None of those direct owners/tests changed here. The earlier body-parser failure is superseded by successful same-head job117285125816. Other substantive CI jobs completed successfully. Fresh complete census:185 terminal checks,123 success/57 skipped/four failures/one neutral, including the aggregate and superseded body failure.

Current canonical SDK renders both completed successfully for9285→060c. Their retained complete22MiB surfaces are byte-identical, SHA256 74e1b4ffb3908fd0b3d6b6c023178994eefde1a8c442ca042e8f4defc7dd63f9, captured only after each exact render-completed marker under clean pinned toolinga150. Canonical parse/diff/report/evidence functions separately compared those hash-verified surfaces and completed exit0: No Plugin SDK API changes, digest ff7b090f, any drift fails/no acknowledgement waiver. The original renderer wrapper remains in synchronous temporary-worktree cleanup; its terminal exit is not claimed yet. The completed lightweight comparison is exact current-head API proof, not old-head reuse or a second render.

The public archive review conversation has a source-backed maintainer response and is resolved: the two actual writers hold stopped-writer maintenance, pre-stop preparation is read-only, and live transaction authority/publication recovery remain. The accepted unsupported case is injected raw-SQL mutation inside that exclusive owner. Prior-head CI and checks below are historical only.

Prior-head evidence (not current-head proof)

Conflict-repaired signed head 57d4b86b70468239dcbde5dc07b06bde2cd94574 is published with an exact-f041 lease after conflict-specific types, lint/format, suppressions and cycles passed. GitHub reported a real conflict at published f041. This repair preserves main's whole deferred service reload/resumption implementation and moved public service types, including pendingReload assignment, cancellation and ownership. Only the existing four-statement stop-preparation deduplication is adapted at the conflict. All three Peter signatures are valid; range-diff shows that adaptation alone, with the second cutover and SDK repair exactly equal. Main's logger transport and fixture remain untouched. No merge request or auto-merge is armed. The superseded29f→b6fa SDK attempt joined130 after normal cleanup without a verdict; it is not API proof. The current ff786f→57d4 canonical SDK comparison is still rendering, without acknowledgement or waiver.

On 57d4, core production types, the affected services/plugins-platform test graphs (350.5s/355.3s), typed services lint, formatting, diff-check and both cycle checks passed; runtime and Madge cycles are zero and the complete serial chain joined0. A separate mandatory suppression run passed all3 cases, without inventory changes. Local combined focused proof ended143 at the unchanged900-second no-output worker-preparation guard, before its requested service or suppression assertions. It is not a passing service suite. The one remote request failed its staged-source identity guard before native Crabbox dispatch: no allocation or remote result. No provider retry/fallback was used.

Exact-head hosted run 38984868161 completed. All175 check runs are accounted for:120 success,51 skipped,two failures,one neutral and one cancelled. Security-fast117254330489 passed. Cancelled metadata117253848832 has successful same-head successor117254023101. CI itself remains red, not relabelled green:

Failed job Attribution and evidence
checks-node-changed-compact-small-19-3 (117254331381) runtime-llm.prepared-owner.test.ts, completion ownership lru, line923: expected2 forks, received3. Independently verified identical case/values/full stack on unrelated PR #174831, headf1ad31c293f0ab56fde42bdc81197eec47e9238b, run38982034436/job117245342341. Its35 paths have zero intersection with this cut's56 paths. The failure test and direct completion/capture/full-catalog owners are unchanged in this PR's actual tested merge.
openclaw/ci-gate (117260056973) Downstream aggregate of the single failed job above; other planned suites completed.

The automated classifier reported UNKNOWN because no comparable scheduled-main shard existed; this additional unrelated-PR evidence establishes the matching signature, not its root cause. The one local LRU replay ended143 during worker preparation at the unchanged900-second guard, with no assertion verdict or serial baseline. Host load is not claimed as attribution. Native inherited-failure admission remains pending, along with the current-head SDK comparison. The actual tested merge09c6685399b848dd25c7ad5f3fdb3e745c7ac5a1 has ordered parents2b3e9726390c2458b9a2429e67a1d8eeb9c44717 and57d4; its tree matches a freshly reconstructed merge of those parents.

On f041, core production types, both affected canonical test graphs (infra114.8s, state/logging63.5s), matching type-aware lint, formatting and diff checks passed. Runtime and Madge cycles are both zero. All13 logger cases passed with the existing Linux-only skip (387.14s); the focused command exited1 because the suppression suite's Git-backed production-file listing exceeded its unchanged120-second budget (actual231565ms). Its suppression inventory and companion rule cases passed. This remains an unresolved local timeout, not inherited-CI attribution or a passing suite. The earlier Commander explicit-registration timeout also remains investigated without a proven causal repair. No timeout, retry, skip, suppression or allowlist was changed. Lock/workspace and dependency settings match the prior frozen install; only an unrelated Windows test command changed.

Prior-head proof and investigations

Conflict repair candidate: signed local head b6fabc609a2e61981351ee7998cdc4bc39b1c4e1. Native landing aborted before dispatch when GitHub reported an actual conflict. The conflict-only rebase keeps main's package-integrity and bounds files byte-for-byte, and preserves main's question-runtime helper/table coverage while adapting only this cut's removed synthetic late-request case and captured-context expectations. The SDK contract repair replays unchanged. Isolated frozen installation, core production types, affected infra/services test types, matching fixture lint, formatting and both cycle checks passed with zero cycles; the recovered Madge command completed normally with exit0. All40 question-runtime/package-bounds assertions passed; session loss interrupted completed-worker verification/cleanup, so the focused wrapper is incomplete, not claimed green. The suppression shard had two passes and main's extra no-map-spread entry (95vs94); main has since landed the exact owner repair in #174689, with15 owner/suppression cases passing. No allowlist was changed. The new canonical29f→b6fa SDK comparison is running without an acknowledgement; exact-head hosted CI remains pending. The following e35d results are prior-head evidence, not a waiver for the repaired candidate.

Exact-head hosted CI run 38933219775 completed successfully on e35dcba29d398a869776b1a4d2838787d0787a1f: 121 jobs completed, zero failures. No CI rerun or green-only push was used. The final canonical SDK comparison also completed normally with exit 0 after both renders and cleanup: No Plugin SDK API changes between 8079cb87aefeedd6f43994bd8930efd622c6cec3 and this exact head, digest ff7b090f, without an acknowledgement waiver. Native review is ready for preparation; no merge has been claimed.

Earlier published signed head: e35dcba29d398a869776b1a4d2838787d0787a1f, pushed with an exact0926 lease after fresh local proof and identity verification. That conflict-only rebase completed with all three Peter signatures valid. Its sole conflict was main's approval-bootstrap fixture consolidation: retain all main helpers/cases plus the unique cleanup-error visibility regression adapted to those helpers. Production was patch-identical; the two later commits replayed exactly. Its read-only merge against then-current main 0dc31f5f64309d199f12aea643452bfde54f4888 was clean; a later confirmed conflict prompted the b6fa repair above.

The earlier01e-based conflict reconciliation preserved main's human-reported Gateway drain repair (#173788): fixed 45-second drainage, no renewal, and caller/owner/reason/expiry attribution. Only scheduler recovery retries remain removed. That earlier conflict was telemetry; main's #174112 absorbed the arbitration cut, leaving a four-line addition/six-line removal at its final slot release. Its two follow-up commits replayed exactly; the remaining first-commit difference was upstream loader-function naming context. Main's Git-test preparation/pruning stays, and the Gateway borrowing fixture remains byte-identical to the base.

On candidate e35d, the isolated frozen install, core production types, affected infra test graph (263.3s), matching fixture lint and all three mandatory suppression cases passed. All12 approval-bootstrap cases passed (1458.82s Vitest, dominated by worker preparation), including cleanup-error visibility, cancellation and ordinary shutdown settlement. The complete focused command joined0 after normal completed-generation verification/cleanup:15 tests across two shards,1746.59s wrapper. Both fresh cycle checks passed with zero cycles; the serial type/lint/cycle chain joined0. The current changed-check dry-run selects coreTests only; it is not an executed broad check. Prior published0926 proof remains qualified prior-input evidence: core types, telemetry lint, infra test types, zero runtime/Madge cycles, 32 telemetry tests and three suppression cases passed (2199.71s focused wrapper time), including worker-output verification and cleanup. The earlier check chain's trailing runtime-script name was mistyped after types/lint; the separate correct cycle pair passed. All six suspension RPC tests and the coordinator/handoff/Git-cache batch passed on the preceding patch-equivalent implementation (1482.13s for the batch).

Fresh whole-candidate P0–P2 review completed with three declined findings, not a scoped-clean verdict. Archive writes remain under the exclusive maintenance owner in both write callers; snapshot preparation is read-only. The removed outbound assertion is on a stable-intent collision branch that can only return an empty result or throw, not perform delivery; live queue and effect-boundary checks remain. Runtime registration still rejects an already-aborted signal before its synchronous publication block; only speculative reentrant signal methods needed the second check. No accepted actionable finding remains, and the telemetry reconciliation itself was found sound.

The superseded 01e→0926 canonical SDK comparison was interrupted after the renewed actual conflict and fully joined after normal cleanup, exit130/no verdict. The other PR's fd2→35ed comparison was also interrupted by session loss, with no result artifacts or surviving reader; neither is API proof. The final integrated8079→e35d canonical comparison completed normally in isolated state without an acknowledgement waiver, with no API changes. No dependency-store reconciliation occurred during rendering. Both renders completed (9131868ms and9163458ms), and the comparison returned only after ordinary temporary-worktree cleanup joined.

Historical proof and limitations

The following records describe earlier heads, not outstanding gates on e35d. Their references to pending SDK or type proof are superseded by the exact-head results above; interrupted checks remain incomplete, not retroactively passing.

The canonical full SDK comparison on the preceding published head found two reachable declaration changes, not a resource failure: scheduler recovery result variants and the cache SDK's usableDistArtifacts member. The repair restores their exact public shapes and matching Gateway RPC translations without restoring the retry loop or dist scanner. Incremental independent P0–P2 review was scoped-clean; targeted core lint, formatting, diff-check and the core typecheck pass. The final canonical comparison above now verifies those preserved shapes without an acknowledgement waiver.

On the repaired source, all six suspension RPC tests pass (208.35s Vitest). The coordinator shard was stopped and joined during cold compiled-worker preparation after the combined runner spent 26m58s; it reached no coordinator assertions. Its type alternatives are the only coordinator repair, with no runtime import edge or coordinator implementation change. Fresh runtime cycles are zero; the preceding zero-component Madge proof remains applicable because the repair adds no import edges. A redundant fresh Madge run was stopped and joined after 17m25s without a result. The suppression check passed two cases and reproduced the same two out-of-lane allowlist omissions already proven on clean main; no suppression or allowlist was added. These incomplete/inherited local results are not blanket green proof. The new immutable head's CI is the broad gate.

Conflict-only rebased signed head 5b07712ef799229e5fc9ae296ab09cfd31849eb9 completes the standalone scanner orphan removal, restores synchronous idle projection release ordering, and repairs fixture settlement observations. GitHub reported CONFLICTING at the preceding published head; the sole conflict was the Telegram fixture, whose identical readiness repair had already landed on main in 172aae503c5. That file now equals the new base byte-for-byte. Production changes are patch-identical. Post-rebase runtime and madge cycles are both zero; all three held-operation cases pass (706.98s Vitest, predominantly cold transform). The suppression check reproduces the two already-verified clean-main unbound-method allowlist omissions; no suppression/allowlist was added. Broad local types are not qualified because the borrowed install contains pi-tui1.0.4 while the lock pins1.1.0; exact-head frozen-install CI owns that proof. Canonical SDK comparison remains pending, without acknowledgement waiver.

Earlier isolated proof: 3 lint-suppression tests, all5 Gateway borrowing/service cases, and all3 Telegram held-operation cases passed in1126.80s total wrapper time (Gateway666.27s, Telegram290.85s). The Telegram fixture observes the real mocked setWebhook notification rather than polling before account preparation finishes; accepted commit, rollback and introduction settlement assertions remain unchanged. Gateway retained-work assertions settle the existing shared startup catalog owner before comparing counts; missing and leaked run retention remain detectable. Fresh independent P0–P2 review was scoped-clean. Core fixture lint and formatting passed; extension lint did not reach linting because prerequisite SDK declarations exceeded the existing300000ms build bound. No timeout/retry/skip was changed, and no extension-lint pass is claimed.

Earlier isolated proof passed8 restored state-directory migration tests; runtime value cycles and madge cycles are both zero. Core/tooling repair lint, format and diff checks passed. Earlier focused repair proof passed53 tooling tests,46 infra tests and45 plugin tests; the existing Commander explicit-registration case timed out at its unchanged120-second bound. That timeout remains investigated but unattributed, not a claimed inherited failure or a proven repair. Production/test typecheck and regular build groups passed on the earlier head; canonical SDK API comparison remains pending. Corrected-head hosted CI is the broad gate; no SDK acknowledgement waiver is authorized. A serial replay of published head19e9 and clean main-parentf4 reproduces the same Telegram account-preparation abort before the held-operation scenario; the repaired fixture reaches and passes all three actual settlement scenarios. This is fixture-repair evidence, not a live Telegram claim or a blanket inherited-CI exception.

Independent full-candidate review completed. One earlier cache-consistency/security-consumer finding was fixed by restoring the completed-publication preference. The signal finding is disproved by the unchanged early abort boundary; partial-dist fallback is the explicit rebuild tradeoff above. A final skipped-migration finding is also disproved by the sole caller: a prior completed migration leaves no legacy path and returns before the reported condition; preparation is called once. A captured source disappearing during teardown remains a refusal, not a successful relocation.

Repair review: the disposal-ordering and complete standalone scanner cascade passed independent P0–P2 review. A subsequent withdrawal review identified the original process-global migration-latch limitation; all17 withdrawal paths are byte-identical to the actual PR base, so this is an existing follow-up, not a change-owned regression. The withdrawn multi-root/retry feature is not replaced with another cache or latch map.

The ClawHub cleanup regression uses real parsing/compatibility/archive installation with synthetic network I/O and preserves the original result while reporting temporary cleanup failure. Existing tests remain. Earlier interrupted/load-bound proof runs are incomplete, not passes or product-failure attribution. No new suppressions, retries, skips, budgets or raised timeouts.

@clawsweeper

clawsweeper Bot commented Oct 15, 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 gateway Gateway runtime commands Command implementations labels Oct 15, 2026
@steipete
steipete marked this pull request as ready for review October 15, 2026 22:39
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

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 ✅ Completed 2026-10-17T02:22:37.176784Z 060c947 New commits
ℹ️ 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.

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 060c94725398d0bda6d48b0be434325b5818ba3d
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/infra/exec-approval-channel-runtime.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d38c13d0f1

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/infra/approval-handler-bootstrap.ts Resolved
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR simplifies infrastructure and plugin lifecycle bookkeeping, cleanup, caching, and migration paths.

Example: Two callers share a Git checkout-context read, and one cancels.

  • Before: The cache tracks subscribers and aborts shared work when the final subscriber cancels.
  • After: Cancellation stops that caller waiting while the shared read remains available until completion or owner shutdown.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful owner-approved cleanup, with a definite retry regression, diff-caused test failures, and unverified persisted-state upgrade compatibility.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 4 actionable review findings remain.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Repeated lifecycle bookkeeping makes approval delivery, plugin cleanup, and state maintenance harder to maintain reliably.
Reason: The maintainer explicitly approves the simplification and its bounded tradeoffs, and the diff generally consolidates responsibility under existing owners.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep this maintainer-authored PR open: the simplification has value, but stale approval retries can restart healthy handlers and several test consumers still expect removed behavior.

Priority: P2
Reviewed head: d38c13d0f11ecb600e41b20b67b52c89e948aa08

Before merge

  • Suppress retries from superseded approval starts (P2) - If context B registers while context A's handler startup is pending, B's event cancels only retries already scheduled. When A subsequently fails, this catch schedules another retry without checking that A is still current. After B starts successfully, that timer reads B and calls stopHandler before recreating it, interrupting healthy approval delivery. Check the captured context before scheduling the retry; a context identity check is sufficient.
  • Complete the SDK artifact-scanner test cutover (P2) - Removing the scanner leaves two existing consumers behind: test/scripts/bun-standalone-metadata.test.ts:1345 calls checkDistPluginSdkArtifact and now throws TypeError, while src/plugins/loader.lazy-alias.test.ts:268 still requires the scanner's read of an unused SDK file. Exact-head CI reports both failures. Update these tests to exercise the retained alias and standalone contracts without requiring the deleted scanner or its incidental reads.
  • Remove obsolete suspension recovery fixtures (P2) - The handler no longer accepts recovering results, but suspend.test.ts still injects that removed state in its prepare/status and resume recovery tests. Consequently the former now receives a successful response and the latter receives INVALID_REQUEST; exact-head CI reports both failures. Remove or replace those obsolete cases with assertions for the new cron-owned best-effort behavior.
  • Join deferred claim release before asserting disposal (P2) - releaseClaim now schedules cleanup asynchronously, but the failed temporary provider-projection test still assumes inspection.release alone has settled the host's pending release. Its unadopted, no-tail case observes zero disposals instead of one in exact-head CI. Update that case to join the existing host release/drain owner before checking resource closure, while retaining the adopted-view and tracked-tail retention assertions.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P2] Suppress retries from superseded approval starts — src/infra/approval-handler-bootstrap.ts:147-151
  • [P2] Complete the SDK artifact-scanner test cutover — src/plugins/sdk-alias.ts:819-821
  • [P2] Remove obsolete suspension recovery fixtures — src/gateway/server-methods/suspend.ts:41-42

Tests

  • Missing end-to-end proof: Supply a latest-stable-to-head Doctor/Gateway upgrade run preserving existing settings, credentials, transcripts, and archives through interruption and recovery; no such run or base-failing/head-passing retry regression is shown.
Agent review details

How this fits together

Gateway and CLI lifecycle owners coordinate approval delivery, plugin resources, Git workers, telemetry, and persisted-state maintenance; they receive requests and lifecycle events and produce deliveries, cached facts, cleanup, and durable migration results.

flowchart TD
  A[Gateway and CLI requests] --> B[Lifecycle owners]
  B --> C[Approval and channel runtimes]
  B --> D[Plugin resources and caches]
  B --> E[Git and telemetry workers]
  B --> F[Doctor maintenance]
  F --> G[SQLite and transcript archives]
Loading

Technical review

Best possible solution:

Keep the simpler owners, suppress retries from superseded approval contexts, and complete the affected test cutovers.

Do we have a high-confidence way to reproduce the issue?

The approval retry regression follows directly from context replacement during pending startup; exact-head hosted annotations independently establish the identified test failures.

Is this the best way to solve the issue?

The owner-approved simplification is reasonable, and a captured-context check handles the demonstrated retry failure without restoring generation machinery.

Full review comments:

  • [P2] Suppress retries from superseded approval starts — src/infra/approval-handler-bootstrap.ts:147-151
    If context B registers while context A's handler startup is pending, B's event cancels only retries already scheduled. When A subsequently fails, this catch schedules another retry without checking that A is still current. After B starts successfully, that timer reads B and calls stopHandler before recreating it, interrupting healthy approval delivery. Check the captured context before scheduling the retry; a context identity check is sufficient.
    Confidence: 0.98
  • [P2] Complete the SDK artifact-scanner test cutover — src/plugins/sdk-alias.ts:819-821
    Removing the scanner leaves two existing consumers behind: test/scripts/bun-standalone-metadata.test.ts:1345 calls checkDistPluginSdkArtifact and now throws TypeError, while src/plugins/loader.lazy-alias.test.ts:268 still requires the scanner's read of an unused SDK file. Exact-head CI reports both failures. Update these tests to exercise the retained alias and standalone contracts without requiring the deleted scanner or its incidental reads.
    Confidence: 0.99
  • [P2] Remove obsolete suspension recovery fixtures — src/gateway/server-methods/suspend.ts:41-42
    The handler no longer accepts recovering results, but suspend.test.ts still injects that removed state in its prepare/status and resume recovery tests. Consequently the former now receives a successful response and the latter receives INVALID_REQUEST; exact-head CI reports both failures. Remove or replace those obsolete cases with assertions for the new cron-owned best-effort behavior.
    Confidence: 0.99
  • [P2] Join deferred claim release before asserting disposal — src/plugin-sdk/provider-catalog-runtime.test.ts:359-362
    releaseClaim now schedules cleanup asynchronously, but the failed temporary provider-projection test still assumes inspection.release alone has settled the host's pending release. Its unadopted, no-tail case observes zero disposals instead of one in exact-head CI. Update that case to join the existing host release/drain owner before checking resource closure, while retaining the adopted-view and tracked-tail retention assertions.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6cace69448ae.

Provenance checked

  • Approval bootstrap changes intended behavior with a stated reason (d78512b: Centralize native approval lifecycle assembly; later scheduler work preserved generation invalidation while moving retries under Gateway ownership.)
  • Git read sharing and cancellation changes intended behavior with a stated reason (f0fafba: Share concurrent Git work while retaining independent results and final-subscriber cancellation settlement.)
  • Telemetry coalescing changes intended behavior with a stated reason (2a30b03: Move storage work off the application thread and preserve per-caller cache priority, network policy, and shutdown persistence.)
  • Plugin registration disposal changes intended behavior with a stated reason (05a2844: Retain plugin resources through admitted work and cleanup, including cross-registration descendants.)
  • SDK artifact selection changes intended behavior with a stated reason (f76b426: Check compiled SDK dependencies before choosing dist aliases; this PR explicitly replaces incomplete-dist fallback with rebuild recovery.)
  • Transcript and archive migration changes intended behavior with a stated reason (ed339f9: Rewrite historical directives resumably; subsequent exclusive maintenance provides the authoritative writer boundary retained by this PR.)
  • Provider authentication settlement changes intended behavior with a stated reason (dc5b3bc: Fence commit against compensation and retain one-shot rollback outcomes; this PR explicitly chooses first settlement for ordinary orchestrated callers.)
  • Plugin install facts and worker receipts keeps the original intent (f4cb17e: Move installed-index work to workers while retaining transactional receipts and lifecycle authority.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned change and policy: Reviewed the introduced merge-base-to-head diff and applicable root, docs, Gateway, outbound, plugin, and SDK instructions. The maintainer-notes directory is absent. The checkout remained clean. (AGENTS.md:1, d38c13d0f11e)
  • Superseded approval retry: The startup catch schedules a retry without checking whether its captured context is still registered. The retry reads the replacement context and stops its active handler. This independently confirms the concern in the existing Codex discussion. (src/infra/approval-handler-bootstrap.ts:147, d38c13d0f11e)
  • SDK alias test cutover: Exact-head CI reports a call to removed checkDistPluginSdkArtifact and an assertion that an unused SDK file must be read; both depend on the deleted artifact scanner. (src/plugins/sdk-alias.ts:819, d38c13d0f11e)
  • Suspension test cutover: Exact-head CI reports both suspension-handler recovery tests failing because they inject recovering results whose handling this PR removes. (src/gateway/server-methods/suspend.test.ts:183, d38c13d0f11e)
  • Deferred resource-release test: Exact-head CI reports the failed-projection test expecting one disposal but observing zero. releaseClaim now defers its release, while the test observes disposal before joining the host's pending releases. (src/plugin-sdk/provider-catalog-runtime.test.ts:361, d38c13d0f11e)
  • Recorded owner direction: The maintainer-authored body explicitly accepts caller-local Git cancellation, producer-owned values, per-registration settlement, first-settlement receipts, and incomplete-dist rebuild behavior. These are recorded design choices rather than unresolved product questions. (d38c13d0f11e)

PR surface

Source -523, Tests -516, Docs -3, Other 0. Total -1042 across 78 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 42 427 950 -523
Tests 34 263 779 -516
Docs 1 6 9 -3
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 78 697 1739 -1042

Labels

Label changes:

  • add P2: This is normal-priority lifecycle maintenance with a bounded approval-handler regression.
  • add merge-risk: 🚨 availability: A superseded startup failure can schedule a retry that stops a healthy replacement approval handler.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is normal-priority lifecycle maintenance with a bounded approval-handler regression.
  • merge-risk: 🚨 availability: A superseded startup failure can schedule a retry that stops a healthy replacement approval handler.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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.

Reviewed October 15, 2026, 6:58 PM ET / 22:58 UTC.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts channel: telegram Channel integration: telegram and removed commands Command implementations labels Oct 16, 2026
@steipete
steipete force-pushed the deslop/z06-2-lifecycle-mechanisms-20261015 branch from 8eb9135 to 5b07712 Compare October 16, 2026 02:03
@openclaw-barnacle openclaw-barnacle Bot removed the channel: telegram Channel integration: telegram label Oct 16, 2026
steipete added a commit that referenced this pull request Oct 16, 2026
…3671)

* fix(state): refuse cached plugin reads after database quarantine

A refused shared-state acquisition invalidated cached handles but left
physical schema facts available to the plugin-state row cache. Retire those
facts at the existing terminal-refusal owner so a quarantined database
cannot become readable through that cache after schema inspection.

Strengthen the existing quarantine test with a real read-only schema
inspection and canonical refusal, and retain its rejection checks for
lookup, lookupMany and register while adding entries/count coverage.
Omitting only the new revocation reproduces a lookup resolving true;
restoring it passes all 23 cases. No new latch, cache or repeated hot SQL.

Settle the existing startup catalog owner before sampling the Gateway
visitor run's shared retention counter, and again before exact disposal
comparison. All output, positive retention and release assertions stay.
This narrow fixture repair also appears in broad PRs #173523 and #173481.

Proof: pnpm test src/plugin-state/plugin-state-store.test.ts --maxWorkers=1
passes 23 cases (115.57s wrapper-reported wall); its forced negative control
fails at the rejection assertion (64.73s). The changed Gateway file passes
all 5 cases with one worker (243.58s pnpm wall, mostly cold transforms).
Core production and both owning test typegraphs, targeted typed lint,
boundary lint, formatting and diff checks pass. Final P2: scoped-clean.
Additional reader/retention and architecture checks continue in parallel;
PR CI owns broad proof. No retries, longer timeouts or assertions removed.

* test(gateway): defer startup custody fixture repair to main

Main bd5f760 (#170534) landed the pre-sample startup-catalog join
that fixes the reported visitor retention assertion. Its PR records all
five plugin borrowing cases passing. Drop our already-covered Gateway
hunk, resolving the differing-comment merge conflict without integrating
unrelated main changes or weakening an assertion.

The final PR delta is only the two quarantine files. Their reviewed
source and regression are byte-identical to the proven candidate; retain
the 52 focused safety/reader/retention/quarantine-cleanup passes, types,
lint, full architecture and scoped-clean P2. The earlier five Gateway
passes remain prior-candidate evidence; main owns that fixture repair.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…nclaw#173671)

* fix(state): refuse cached plugin reads after database quarantine

A refused shared-state acquisition invalidated cached handles but left
physical schema facts available to the plugin-state row cache. Retire those
facts at the existing terminal-refusal owner so a quarantined database
cannot become readable through that cache after schema inspection.

Strengthen the existing quarantine test with a real read-only schema
inspection and canonical refusal, and retain its rejection checks for
lookup, lookupMany and register while adding entries/count coverage.
Omitting only the new revocation reproduces a lookup resolving true;
restoring it passes all 23 cases. No new latch, cache or repeated hot SQL.

Settle the existing startup catalog owner before sampling the Gateway
visitor run's shared retention counter, and again before exact disposal
comparison. All output, positive retention and release assertions stay.
This narrow fixture repair also appears in broad PRs openclaw#173523 and openclaw#173481.

Proof: pnpm test src/plugin-state/plugin-state-store.test.ts --maxWorkers=1
passes 23 cases (115.57s wrapper-reported wall); its forced negative control
fails at the rejection assertion (64.73s). The changed Gateway file passes
all 5 cases with one worker (243.58s pnpm wall, mostly cold transforms).
Core production and both owning test typegraphs, targeted typed lint,
boundary lint, formatting and diff checks pass. Final P2: scoped-clean.
Additional reader/retention and architecture checks continue in parallel;
PR CI owns broad proof. No retries, longer timeouts or assertions removed.

* test(gateway): defer startup custody fixture repair to main

Main f35773f (openclaw#170534) landed the pre-sample startup-catalog join
that fixes the reported visitor retention assertion. Its PR records all
five plugin borrowing cases passing. Drop our already-covered Gateway
hunk, resolving the differing-comment merge conflict without integrating
unrelated main changes or weakening an assertion.

The final PR delta is only the two quarantine files. Their reviewed
source and regression are byte-identical to the proven candidate; retain
the 52 focused safety/reader/retention/quarantine-cleanup passes, types,
lint, full architecture and scoped-clean P2. The earlier five Gateway
passes remain prior-candidate evidence; main owns that fixture repair.
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 16, 2026
@steipete
steipete force-pushed the deslop/z06-2-lifecycle-mechanisms-20261015 branch from 27b9cf5 to 6bcdf02 Compare October 16, 2026 11:54
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 16, 2026
@steipete
steipete force-pushed the deslop/z06-2-lifecycle-mechanisms-20261015 branch 2 times, most recently from 0926f37 to e35dcba Compare October 16, 2026 16:35
@steipete
steipete force-pushed the deslop/z06-2-lifecycle-mechanisms-20261015 branch from e35dcba to b6fabc6 Compare October 16, 2026 22:11

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b6fabc609a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@steipete
steipete force-pushed the deslop/z06-2-lifecycle-mechanisms-20261015 branch 2 times, most recently from f041efa to 57d4b86 Compare October 17, 2026 00:07
@steipete
steipete force-pushed the deslop/z06-2-lifecycle-mechanisms-20261015 branch from 57d4b86 to 060c947 Compare October 17, 2026 02:19
@steipete

Copy link
Copy Markdown
Contributor Author

Landing evidence for exact head 060c94725398d0bda6d48b0be434325b5818ba3d.

The complete paginated check-run census after the body update contains 196 terminal checks: 128 success, 63 skipped, four failures and one neutral. The new body-evidence check117317262468 also completed successfully. CI run 38994461663 remains red; it is not relabeled green.

Non-passing check Attribution
checks-node-changed-compact-small-14 / 117284178026 runtime-llm.prepared-owner.test.ts:923, completion ownership LRU expected two forks, received three. Identical case, values and stack independently observed without this cut on PR 174831, run38982034436/job117245342341. The test and determining completion/capture/catalog owners are unchanged here. Root cause remains unresolved; no passing local replay is claimed.
checks-fast-baseline-ratchets / 117284177089 Mock-export mismatch at src/cli/update-cli/update-command-service-maintenance-native.test-support.ts:52 → update-command-database-context.js; exact same diagnostic on scheduled main38991549274/job117275051710. Both determining files are unchanged by this PR. Other ratchets passed.
openclaw/ci-gate / 117288450217 Aggregate follows those two substantive inherited failures.
PR context and evidence / 117284478381 Authored body-heading failure, repaired through body only; successful same-head successor 117285125816 supersedes it. No code push or manual rerun.
CodeQL / 117284096452 Neutral, not a failed analysis.

Conflict-focused lint/format, targeted core-test-infra types, runtime cycles (zero) and Madge cycles (zero) passed. Earlier interrupted archive tests and a Git-listing suppression timeout remain incomplete, not passing proof. Exact-head hosted suites provide broad proof. Independent review produced four findings, source-declined with owner/caller evidence already recorded in the PR; this is not a scoped-clean verdict. Security/effect authority, FIFO, durability, ordinary shutdown settlement, public SDK signatures and the standalone Phase E memory backend remain intact.

The exact current canonical renders completed for base 9285ef2266ef9902c7126dc6c52d11de81a80686 and head 060c94725398d0bda6d48b0be434325b5818ba3d under pinned clean tooling a1506c240abaa0781b7a462c30c653d2caf14dd4. Each final surface was retained only after its exact render-completed marker. Both SHA256s are 74e1b4ffb3908fd0b3d6b6c023178994eefde1a8c442ca042e8f4defc7dd63f9. Canonical parse/diff/report/evidence functions independently compared those verified complete surfaces and returned exit0: No Plugin SDK API changes, digest ff7b090f, with any drift configured to fail and no acknowledgement waiver. The original render wrapper is still doing normal synchronous worktree cleanup; its final exit is not being claimed as observed. This lightweight completed comparison does not start another renderer or depend on directory deletion.

The archive review thread now has a source-backed maintainer disposition: both real writers hold stopped-writer maintenance; the preparation caller is verify-only; transaction authority and durable publication remain. Unsupported raw-SQL mutation inside that exclusive scope is the explicitly accepted scenario, not ordinary concurrent writing. No actionable finding remains.

Native verifyPriorCiSecurity and verifyPriorCiSecurityMainSources both returned exit0 against current protected main d4623c19a35283421beddff7b04a38dbcd009cb7: enforced rollout, qualified guard statuses56577952761/56577954504, protected publisher run38995965573/attempt1/job117288522337, exact-head author authority and all13 protected source identities verified. Combined status56577956916 remains CI failure, not security failure. Native effective policy read verified authoritative classic-protection absence, CI-only gate openclaw/ci-gate integration15368, zero required approving count, no last-push approval or thread-resolution requirement, and no currently outstanding code-owner review decision. Writer steipete has verified active organization/repository admin authority. No security or enforced-review bypass is being requested.

Campaign Ending10 authorizes a direct exact-head guarded merge after repeated native infrastructure failures, not a check waiver. Two terminal native operations failed on shared origin/main compare-and-swap updates; their operation locks were recovered. An independent native init also failed OPENCLAW_STATE_LEASE_LOST before worktree creation, startup entry-not-observed 60003ms/60000ms; its operation was released. There is no uncertain merge intent or active native operation. The inherited-failure exception above and fresh effective-policy/review checks remain required.

@steipete
steipete merged commit a05b8f6 into main Oct 17, 2026
194 of 199 checks passed
@steipete
steipete deleted the deslop/z06-2-lifecycle-mechanisms-20261015 branch October 17, 2026 05:19
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
…73523)

* refactor: simplify infra and plugin lifecycle bookkeeping

* refactor(infra): finish lifecycle cleanup cutover

* fix(plugin-sdk): retain lifecycle result and cache contracts
tideclaw-bot pushed a commit that referenced this pull request Nov 6, 2026
…3671)

* fix(state): refuse cached plugin reads after database quarantine

A refused shared-state acquisition invalidated cached handles but left
physical schema facts available to the plugin-state row cache. Retire those
facts at the existing terminal-refusal owner so a quarantined database
cannot become readable through that cache after schema inspection.

Strengthen the existing quarantine test with a real read-only schema
inspection and canonical refusal, and retain its rejection checks for
lookup, lookupMany and register while adding entries/count coverage.
Omitting only the new revocation reproduces a lookup resolving true;
restoring it passes all 23 cases. No new latch, cache or repeated hot SQL.

Settle the existing startup catalog owner before sampling the Gateway
visitor run's shared retention counter, and again before exact disposal
comparison. All output, positive retention and release assertions stay.
This narrow fixture repair also appears in broad PRs #173523 and #173481.

Proof: pnpm test src/plugin-state/plugin-state-store.test.ts --maxWorkers=1
passes 23 cases (115.57s wrapper-reported wall); its forced negative control
fails at the rejection assertion (64.73s). The changed Gateway file passes
all 5 cases with one worker (243.58s pnpm wall, mostly cold transforms).
Core production and both owning test typegraphs, targeted typed lint,
boundary lint, formatting and diff checks pass. Final P2: scoped-clean.
Additional reader/retention and architecture checks continue in parallel;
PR CI owns broad proof. No retries, longer timeouts or assertions removed.

* test(gateway): defer startup custody fixture repair to main

Main bd5f760 (#170534) landed the pre-sample startup-catalog join
that fixes the reported visitor retention assertion. Its PR records all
five plugin borrowing cases passing. Drop our already-covered Gateway
hunk, resolving the differing-comment merge conflict without integrating
unrelated main changes or weakening an assertion.

The final PR delta is only the two quarantine files. Their reviewed
source and regression are byte-identical to the proven candidate; retain
the 52 focused safety/reader/retention/quarantine-cleanup passes, types,
lint, full architecture and scoped-clean P2. The earlier five Gateway
passes remain prior-candidate evidence; main owns that fixture repair.

(cherry picked from commit e51c322)

Co-authored-by: RomneyDa <[email protected]>
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 gateway Gateway runtime merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts security-sensitive-changed size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant