Repository navigation
refactor: localize single-consumer internal frames - #180363
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 22, 2026 06:18
Contributor
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. |
Contributor
|
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 23, 2026
* refactor(memory-wiki): localize single-use query and status frames * refactor: localize single-use setup and finalization frames * refactor(cli): fold single-use input and diagnostic frames * refactor(core): fold single-consumer ingress and credential frames * refactor(gateway): localize authenticated identity projections * refactor(core): fold private execution and plan projection frames * refactor(extensions): fold private transport and monitor frames * test: drop stale Gateway suppression allowance
This was referenced Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Internal operations still route through private single-consumer functions that only prepare arguments, project a result, or supply one callback. The separate frames obscure the code that actually owns each operation.
User Impact
No intended user-visible change, migration, or operator action. Public contracts remain unchanged.
Why This Change Was Made
Localize those frames in their existing consumers across CLI input and diagnostics, secret setup, Gateway credentials and identity, execution finalization, channel ingress, memory-wiki queries, Discord monitoring, and meeting page-script construction. Shared helpers, public entry points, security checks, and lazy-import boundaries remain.
Net production LOC: 523 removed across 28 production files. Moved implementation bodies receive no deletion credit. Existing behavioral tests are unchanged; one stale suppression-allowlist row already removed on main is dropped (29 files total). No user-visible feature, configuration, CLI, protocol, SDK, persisted shape, or migration changes. The standalone session memory backend and all Phase E machinery and tests are untouched.
Best-effort tradeoffs accepted
No guards removed and no new behavioral compromise. Private function names and internal stack/async layering become shallower. Error classification, authorization and live-authority checks, response limits and release ordering, capture timing, recovery, exact diagnostics, and generated meeting-script template bytes remain intact.
Evidence
Each packet passed serial focused owner/consumer tests with one worker and isolated HOME/OpenClaw/XDG state, targeted native typechecks, typed lint, formatting, line caps, and independent Codex review through P2 with no actionable findings. Focused packet counts: memory-wiki 52 cases/5 files; setup and finalization 116/10; CLI 112/10; ingress and credentials 152/14; authenticated identity 69/4; execution and plan projection 136/11; Discord and meeting transports 261/15. Counts overlap where a retained public consumer is relevant to multiple packets.
Final pre-push suppression ratchet (14 cases), assertion ratchet, wrapper/eager-import closure (four selected cases), runtime/static cycles (zero each), and line caps passed. The suppression ratchet initially identified a stale allowlist row for a Gateway helper whose suppression main already removed; the shrink-only correction passed focused proof and independent review through P2. Hosted CI on the exact pushed head is the broad proof. No local build, broad suite, whole-graph typecheck, live provider, installed-service, browser, or performance result is claimed. This is implementation framing cleanup, not a change to rendering or generated page-script contents.