Repository navigation
refactor(gateway): reuse native workspace and lifecycle facts - #177670
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. |
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 466a05068f
ℹ️ 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".
| if (result?.tlsFingerprint) { | ||
| verified = { fingerprint: result.tlsFingerprint, endpoint }; |
There was a problem hiding this comment.
Preserve the newest TLS pin across overlapping probes
When two probes overlap a TLS certificate rotation and the request using the old certificate completes after one using the replacement, this unconditional assignment restores the old fingerprint as verified. Subsequent probes made while the certificate file is unavailable or another replacement is staged then trust only that stale fallback and return null against the healthy new listener, which can make restart/update readiness report the Gateway as unreachable. Keep the certificate-observation generation ordering when updating verified rather than ordering it by HTTP response completion.
Useful? React with 👍 / 👎.
|
Codex review: needs maintainer review before merge. What this changesThis PR simplifies Gateway workspace receipts, delivery lifetimes, advisory refreshes, and cleanup by reusing existing owners. Example: A Talk catalog refresh finishes successfully after six seconds.
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: it removes duplicate bookkeeping using existing owners, and no actionable introduced defect was found beyond the explicitly accepted tradeoffs. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGateway owners receive RPCs, workspace mutations, stream publications, and maintenance requests, then produce client responses, transport writes, committed workspace facts, and cleanup outcomes. flowchart TD
A[RPCs and runtime events] --> B[Gateway owners]
B --> C[Workspace worker]
C --> D[Database transaction]
D --> E[Native commit receipt]
E --> B
B --> F[Client transport]
B --> G[Scheduler cleanup]
Technical reviewBest possible solution: Retain the smaller implementation, its explicit best-effort tradeoffs, and the existing authority, native settlement, and shutdown owners. Do we have a high-confidence way to reproduce the issue? This is a refactor rather than a reported bug; source inspection verifies the changed paths, without executing target code. Is this the best way to solve the issue? The change follows the smallest complete approach: remove duplicate bookkeeping while retaining the existing transaction, transport, validation, and scheduler owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2e6d21a18315. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -93, Tests +43, Docs 0. Total -50 across 21 files. Added test files: 0. View PR surface stats
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 Reviewed October 19, 2026, 4:10 PM ET / 20:10 UTC. |
|
Merged via squash.
|
|
The removal of Current-head CI https://github.com/openclaw/openclaw/actions/runs/39321423337 completed with two failing jobs:
The tested merge The scoped repair is to restore |
* commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits) test(gateway): restore local probe deferred import fix(agents): release prompt diagnostics for retired sessions (#177614) fix(release): tag restart plugin cohorts consistently (#177725) refactor(ui): inline single-caller detail requests (#177705) chore(i18n): refresh native locales (#177721) refactor(codex): drop unread private runtime reports (#177689) refactor(ui): consolidate static artwork registries (#177692) refactor(ui): derive settings schema analysis in the view (#177624) refactor(media): consolidate capability defaults and compression grids (#177665) refactor(auth): bind OAuth managers to native provider operations (#177676) refactor(ui): remove redundant component rendering layers (#177607) fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082) fix(agents): report failed secret input prompt delivery (#177688) refactor(ui): share chat message render contracts (#177668) fix(ui): settle model status after overlapping publication (#177667) refactor(gateway): reuse native workspace and lifecycle facts (#177670) refactor(runtime): rely on canonical async lifecycle owners (#177635) refactor: fold private operation helpers into their callers (#177655) refactor(ui): remove unused chat leaf element adapters (#177582) perf(talk): use published authority for foreign voice writes (#177533) ...
#167350) * fix(pr): retain the admitted workflow across maintainer commands * fix: refresh the reviewed correction baseline Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163 * fix(pr): preserve cold workflow admission and repository identity * chore(pr): integrate canonical main CI repair * commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits) test(gateway): restore local probe deferred import fix(agents): release prompt diagnostics for retired sessions (#177614) fix(release): tag restart plugin cohorts consistently (#177725) refactor(ui): inline single-caller detail requests (#177705) chore(i18n): refresh native locales (#177721) refactor(codex): drop unread private runtime reports (#177689) refactor(ui): consolidate static artwork registries (#177692) refactor(ui): derive settings schema analysis in the view (#177624) refactor(media): consolidate capability defaults and compression grids (#177665) refactor(auth): bind OAuth managers to native provider operations (#177676) refactor(ui): remove redundant component rendering layers (#177607) fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082) fix(agents): report failed secret input prompt delivery (#177688) refactor(ui): share chat message render contracts (#177668) fix(ui): settle model status after overlapping publication (#177667) refactor(gateway): reuse native workspace and lifecycle facts (#177670) refactor(runtime): rely on canonical async lifecycle owners (#177635) refactor: fold private operation helpers into their callers (#177655) refactor(ui): remove unused chat leaf element adapters (#177582) perf(talk): use published authority for foreign voice writes (#177533) ... Co-authored-by: Vincent Koc <[email protected]>
openclaw#167350) * fix(pr): retain the admitted workflow across maintainer commands * fix: refresh the reviewed correction baseline Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163 * fix(pr): preserve cold workflow admission and repository identity * chore(pr): integrate canonical main CI repair * commit '4f8617589b6c71d754171052b603fe534901bfa1': (52 commits) test(gateway): restore local probe deferred import fix(agents): release prompt diagnostics for retired sessions (openclaw#177614) fix(release): tag restart plugin cohorts consistently (openclaw#177725) refactor(ui): inline single-caller detail requests (openclaw#177705) chore(i18n): refresh native locales (openclaw#177721) refactor(codex): drop unread private runtime reports (openclaw#177689) refactor(ui): consolidate static artwork registries (openclaw#177692) refactor(ui): derive settings schema analysis in the view (openclaw#177624) refactor(media): consolidate capability defaults and compression grids (openclaw#177665) refactor(auth): bind OAuth managers to native provider operations (openclaw#177676) refactor(ui): remove redundant component rendering layers (openclaw#177607) fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (openclaw#166082) fix(agents): report failed secret input prompt delivery (openclaw#177688) refactor(ui): share chat message render contracts (openclaw#177668) fix(ui): settle model status after overlapping publication (openclaw#177667) refactor(gateway): reuse native workspace and lifecycle facts (openclaw#177670) refactor(runtime): rely on canonical async lifecycle owners (openclaw#177635) refactor: fold private operation helpers into their callers (openclaw#177655) refactor(ui): remove unused chat leaf element adapters (openclaw#177582) perf(talk): use published authority for foreign voice writes (openclaw#177533) ... Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Gateway workspace mutations wrap their existing native operation receipt in a second UUID/domain/source publication protocol with no independent consumer. Several advisory paths also repeat private copies, stale-observation ordering or settlement already owned elsewhere. Use the existing owners and remove those duplicate layers.
This recovers the individually qualified old residue onto current main, without reviving the deleted presence-summary owner. Production delta: 93 net lines removed across 14 production files (21 total changed files). No protocol, config, persisted schema, dependency, permission, retention or SDK contract changes. Phase E standalone memory backend and all its machinery/tests are untouched.
Best-effort tradeoffs accepted
ghCLI and show installation guidance #135028's immediate missing/install/remove behavior remains protected; unrelated cached executables retain their own lifecycle.Evidence
Independent complete-diff P0–P2 review: scoped-clean (.98), with 13 explicit intact determining-owner datasets. Current focused proof: 296 passing tests, two existing host-dependent skips and one investigated failure across 14 selected owner files. The checkpoint-stop case expected the original stop error but received OPENCLAW_STATE_LEASE_ABORTED caused by the caller's 1-second deadline. The narrow head replay reproduced it; a serial exact-base replay at e75403f reproduced the same stopped-case error and also reached that deadline in the non-stopped case. No assertion, timeout or skip was changed. This is baseline reproduction, not a claimed repair or a passing suite.
Targeted native types pass (11.25 seconds), typed changed-file lint passes (60.52 seconds), formatting passes, and the timeout-race ratchet passes without allowance changes. Mandatory suppression audit passes all 14 cases (23.20 seconds including wrapper). Earlier residue proof is historical, not current acceptance. Exact-head PR CI will be the broad gate. No live deployment, provider, device or channel claim.