Repository navigation
refactor: localize private login, evidence, and transport phases - #179048
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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR moves private login, adoption, evidence, rendering, and transport helpers into their existing callers and removes obsolete interfaces. Example: WhatsApp group approval prompt approval-message-1 comes from participant 999@lid in [email protected].
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep this PR open: it is useful maintainer-directed cleanup, preserves the reviewed contracts, and has no actionable findings; the exact-head CI gate passes. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherCLI login, session continuation, channel finalization, and QA entry points consume provider results, thread metadata, messages, and evidence files to produce credentials, session bindings, requests, and reports. flowchart TD
A[CLI and Gateway callers] --> B[Login and adoption owners]
B --> C[Credential and session stores]
D[Agent and channel dispatch] --> E[Google and Slack transports]
F[QA scenarios and evidence files] --> G[Scenario and artifact owners]
G --> H[Reports and gallery responses]
Technical reviewBest possible solution: Retain the localized implementations with their existing authority, persistence, containment, and transport contracts. Do we have a high-confidence way to reproduce the issue? This PR claims a behavior-preserving refactor rather than a reproducible product bug; source comparison supports that scope. Is this the best way to solve the issue? The change uses existing owners, removes the replaced private paths, and preserves distinct lifecycle and security checks without adding competing machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 54b5607e5584. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -555, Tests +23, Other 0. Total -532 across 15 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 21, 2026, 1:38 AM ET / 05:38 UTC. |
5935ab3 to
07e05b4
Compare
|
Merged via squash.
|
Keep live local types and protocol enrichment private, delete unused wiki aliases and the uncalled cron-history test helper, and move test-only WhatsApp metadata into its fixture. The lost-consumer audit follows #179048, #179101, #179127, #179149 and #179180. Register the development-loop benchmark documented and invoked by #179175 as a real Knip entrypoint. Proof: all three deadcode wrappers pass at base 5ceb735; 231 focused tests pass with one worker; targeted typecheck, lint, format and independent P2 review pass. Subsequent main changes do not overlap the repair.
…nclaw#179048) * refactor(auth): localize private login and adoption phases * refactor(qa): localize gallery and wiki render phases * refactor(transports): localize private request and approval phases
Keep live local types and protocol enrichment private, delete unused wiki aliases and the uncalled cron-history test helper, and move test-only WhatsApp metadata into its fixture. The lost-consumer audit follows openclaw#179048, openclaw#179101, openclaw#179127, openclaw#179149 and openclaw#179180. Register the development-loop benchmark documented and invoked by openclaw#179175 as a real Knip entrypoint. Proof: all three deadcode wrappers pass at base 8a4943d; 231 focused tests pass with one worker; targeted typecheck, lint, format and independent P2 review pass. Subsequent main changes do not overlap the repair.
What Problem This Solves
Private login, evidence, transport and rendering phases carry one-consumer helpers and argument envelopes that duplicate facts already owned by their callers.
User Impact
No intended user-visible change. Authentication, approval matching and settlement, provider requests, Slack duplicate-send protection, evidence containment and memory-wiki publication remain intact. No migration or operator action is needed.
Why This Change Was Made
Localize private phases in their existing owners and fold the sole-consumer WhatsApp approval module into its scenario runner. Remove orphan functions and types rather than retaining test-only production seams. The participant-routing test now exercises the public scenario entry point with its original reaction assertion.
The complete cut removes 555 net production lines across 12 production paths, excluding tests and the shrink-only assertion baseline. Shared exports, public SDK/config/CLI/protocol contracts, lazy imports, security checks, durability and realistic concurrency protections stay.
Best-effort tradeoffs accepted
new Date; the general optional observation bound remains supported.Evidence
The login/adoption packet passed 123 focused tests across 12 files; gallery/wiki passed 36 owner tests across six files and two selected HTTP evidence/UTF-8 cases. Both packets passed targeted native types, typed lint, formatting and line caps. Complete-branch independent review found no actionable P0-P2 defects.
The final ten owner suites passed all 273 tests in a serial single-worker run (726 seconds wall time under host load); eight selected Slack finalization sibling cases passed in 169 seconds. The changed WhatsApp scenario suite ran within the four-file QA group (169 seconds, mostly transformation/import overhead). Targeted native types and formatting passed. Assertion-safety, mock-export, session-accessor and line-cap checks passed, along with 14 lint-suppression and four selected wrapper/eager-import closure cases. Runtime cycles: zero. Static cycles: zero.
No broad local build, whole-graph typecheck, live provider or live channel proof is claimed. Hosted CI on the exact pushed head is the broad gate.
Local typed lint reports ten Google SDK error-type annotation diagnostics. A serial clean-checkout reproduction using the identical original owner blob reports the same annotations (15 before this cut, ten remaining). Targeted native typechecking passes; no suppression or cast was added to conceal the local lint limitation. This is not a classification of hosted CI.
Conflict-only rebase: main removed an obsolete WhatsApp test injection and import; this branch keeps that removal alongside the public approval regression. The rebased head passed 45 WhatsApp tests across two files, targeted native types, typed lint of the conflicted file, formatting, 14 lint-suppression tests, and both cycle checks (zero). The previous head's successful CI run 39548903903 is prior-head evidence only; current-head CI remains the broad landing gate.