Skip to content

refactor: fold single-consumer internal owners - #181769

Merged
steipete merged 2 commits into
mainfrom
deslop/z25-139-private-owner-frames-20261015
Oct 23, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/z25-139-private-owner-frames-20261015

Conversation

@steipete

@steipete steipete commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Single-consumer modules and private one-use type frames split internal responsibilities across unnecessary files and names.

What Changed

Fold static Discord component handlers, Telegram list rendering, and small UI renderers into their existing consumers. Localize inbound envelope labels, CLI debug scanning, package normalization, and status-display preparation. Put exact private type shapes at their sole annotations; preserve public entry points and lazy renderer imports.

Net production reduction: 157 lines across 44 paths. Tests/support shrink by 2 lines net across 9 paths. The orphan input-dialog documentation link follows its owner. Relocated bodies receive only their actual net framing reduction, not wholesale deletion credit.

Best-effort tradeoffs accepted

None newly introduced. Existing guards, validation, authorization, fallback behavior, resource bounds, public SDK/protocol/config/CLI contracts and persisted shapes remain. Status display specializes the sole caller's already-fixed warning prefix; shared network discovery stays shared. The standalone session-memory backend is untouched.

Evidence

Focused existing suites and targeted native types, typed lint, format and line caps passed serially for each touched owner: LINE/Zalo/Tlon 81 cases; Discord public entries 29; UI config/desktop/plugin presentation 39; UI private annotations 79; package normalization 34; CLI debug scanning 28; Telegram rendering 84; five static UI folds 96; envelope formatting 26; status gathering 53. UI alias proof passed 12 unit and 24 browser cases.

Retained helper assertions moved to existing public entry points and passed before and after the folds. The status fallback case moves intact into the existing service-inspection registration to respect the gather-file cap. The raw-editor undo test now uses Vitest's cross-platform ControlOrMeta shortcut instead of Control-Z on macOS; all DOM identity, selection, undo and callback assertions remain unchanged. No retries, skips, timeout increases, suppressions or new baseline allowances.

Final checks passed: formatter parity, assertion safety, lint-suppression tests, mock-export safety, wrapper/eager-import closure, frozen updater bindings and stable prompt prefix, runtime cycles (zero), static cycles (zero), line caps and UI controller guards. Fresh independent review found no actionable P0–P2 defects. Hosted exact-head PR CI supplies broad builds and E2E; these were intentionally not run locally under the campaign CPU budget. No intended pixel or user-visible behavior change.

CI repair: generated raw-copy ownership

The first exact-head run failed control-ui-i18n and check-lint on the same owned cutover detail: the existing intentional Clean/Review strings moved from the retired security-audit module to overview, but their raw-copy baseline paths did not. The exact local verifier reproduced that error. Regenerating with the canonical keyless baseline command relocates only those two path fields; all 71 entries, strings, counts and metadata remain unchanged. No new allowance, translation-memory edit or production/test change.

The exact verifier passes after repair; all 11 public overview and 14 suppression cases pass. The baseline retains canonical generated JSON formatting (the generic formatter intentionally excludes it). Independent incremental P0–P2 review is clean. The old auto request was retired before this repair; replacement-head CI is required.

@clawsweeper

clawsweeper Bot commented Oct 23, 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.

@steipete
steipete marked this pull request as ready for review October 23, 2026 16:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 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-23T17:03:10.114269Z 4553a2c 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 channel: discord Channel integration: discord channel: line Channel integration: line channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: zalo Channel integration: zalo app: web-ui App: web-ui cli CLI command changes size: XL labels Oct 23, 2026
@steipete
steipete enabled auto-merge (squash) October 23, 2026 17:08
@steipete
steipete disabled auto-merge October 23, 2026 17:11
@steipete
steipete merged commit c3b57f7 into main Oct 23, 2026
139 of 141 checks passed
@steipete
steipete deleted the deslop/z25-139-private-owner-frames-20261015 branch October 23, 2026 17:29
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: discord Channel integration: discord channel: line Channel integration: line channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: zalo Channel integration: zalo cli CLI command changes size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant