Skip to content

refactor: localize private CLI and delivery phases - #179372

Merged
steipete merged 9 commits into
mainfrom
deslop/z25-76-private-channel-registration-20261015
Oct 21, 2026
Merged

steipete merged 9 commits into
mainfrom
deslop/z25-76-private-channel-registration-20261015

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Private CLI, status and reply phases carry single-consumer helper modules and argument envelopes that their existing owners do not need.

User Impact

No intended user-visible change. CLI commands, output, config, protocol, plugin SDK and persisted formats remain unchanged; no migration is needed.

Why This Change Was Made

Keep channel registration, camera commands, status sections, Gateway discovery and small presentation phases at their actual consumers. Remove the obsolete camera, status-section and discovery modules, rather than retaining forwarding exports for tests. The camera and Gateway tests now exercise the existing public owners. Streaming configuration, diagnostics, heartbeat delivery, issue transport, private browser handoff and approval presentation lose only their private one-use frames.

This removes 511 net production lines: 1,254 added / 1,765 removed across 21 production paths. Tests, fixtures, test support, generated files and declarations are excluded. Two obsolete mock-export baseline entries are removed; no allowance is added.

Best-effort tradeoffs accepted

  • No defensive guard is removed. The change trusts ordinary typed internal values rather than preserving arbitrary side-effecting getters on private parameter envelopes. Security checks, external-input validation, exact log redaction/channel boundaries, browser permissions/escaping, uncertainty reconciliation, realistic concurrency and settlement remain at their existing owners.
  • Lazy imports remain at the same loading boundaries. Public entry points and SDK exports remain unchanged. The standalone session-memory backend and active foundations are untouched.

Evidence

Every packet has focused owner/consumer tests, targeted native typechecks, formatting, typed lint, line-cap proof and independent P0–P2 review. The latest packets pass 71 reply/streaming cases across five files, 122 infra/consumer cases across nine files, and 29 channel-log/CLI cases across two files. Earlier packets cover registered channel commands, status values/sections, CLI output, camera/migration/docs (65 cases) and Gateway/SSH boundaries (50 cases). These are focused deterministic proofs, not live provider, browser, channel, SSH or deployed Gateway acceptance.

All runtime proof used isolated state, nice -n 10 and one Vitest worker; no whole-graph local typecheck or broad suite was run. An initial camera selection mistakenly included an E2E file that began build preparation; only that task-owned process tree was stopped and its owned lock released. No local build/E2E result is claimed; that proof belongs to exact-head hosted CI.

Independent review is scoped-clean for each packet. Targeted lint caught a local shadowed variable introduced by the heartbeat inline; it was renamed before the final passing proof, without a suppression. Existing behavioral assertions are retained; docs output escaping coverage is strengthened. Final branch guards and exact-head hosted CI are recorded below when completed.

Final assertion-safety, mock-export and session-accessor guards pass. The required local suppression suite passes 13/14 and fails on the existing src/config/sessions/session-native-binding.execution.test-support.ts|typescript/unbound-method|1 entry missing from main's allowlist (98 versus 97). The source, test and collector are unchanged from the branch base; the directive came from #179124. No suppression or allowlist is added here. This is an unresolved baseline failure, not a passing replay. Exact-head hosted CI remains the broad gate.

The four selected wrapper-inventory/eager-runtime-closure cases pass (18 unrelated cases filtered, no new skips). Runtime value cycles: zero. Static cycles: zero. Whole-branch line caps and git diff --check pass. Reviewed head: c35ca16912d3df024886e29491f5a775d7480718.

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here.

Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update.

Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 21, 2026 10:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T10:51:18.309898Z c35ca16 Draft marked ready
ℹ️ 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.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes commands Command implementations size: XL labels Oct 21, 2026
@steipete
steipete enabled auto-merge (squash) October 21, 2026 10:44
@steipete
steipete merged commit 32e8d81 into main Oct 21, 2026
201 of 203 checks passed
@steipete
steipete deleted the deslop/z25-76-private-channel-registration-20261015 branch October 21, 2026 10:45

@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: c35ca16912

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

@@ -1,70 +0,0 @@
// Status overview value tests cover compact display values for agents, events, tasks, and services.

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.

P2 Badge Retarget the light-test entry before deleting this test

Deleting this file leaves test/vitest/vitest.commands-light-paths.mjs:71-72 pointing to a nonexistent test. The commands-light config consumes that list, and routing a change to status-overview-values.ts now selects this missing path; because that project enables passWithNoTests, targeted validation can succeed without running the assertions moved into status-overview-rows.test.ts. Retarget the mapping to the moved test or remove the stale source route.

AGENTS.md reference: AGENTS.md:L46-L51

Useful? React with 👍 / 👎.

@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
* refactor(cli): localize channel setup registration facts

* refactor(status): localize overview presentation values

* refactor(cli): localize private command presentation

* refactor(status): keep section formatting with report owners

* refactor(cli): keep camera and presentation phases with their owners

* refactor(gateway): keep probe discovery in the status command

* refactor(reply): inline private streaming and diagnostics phases

* refactor(infra): inline private presentation and delivery phases

* refactor(channels): inline private log filtering phases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant