Repository navigation
refactor(channels): simplify configured-channel presence - #134362
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 6:29 AM ET / 10:29 UTC. ClawSweeper reviewWhat this changesThis PR removes a private persisted-auth test seam from configured-channel detection and tests the canonical probes through module spies. Merge readinessNo blocking defect was found in the introduced refactor. This member-owned, Priority: P3 Review scores
Verification
How this fits togetherConfigured-channel detection combines channel configuration, environment values, and persisted authentication state into presence signals. Status, Doctor, plugin activation policy, and startup selection consume those signals without loading full channel runtimes. flowchart LR
Config[Channel configuration] --> Detect[Configured-channel detection]
Environment[Environment triggers] --> Detect
Auth[Persisted authentication metadata] --> Detect
Discovery[Plugin discovery] --> Auth
Detect --> Signals[Presence signals]
Signals --> Consumers[Status, Doctor, and plugin policy]
Decision needed
Why: The source change appears behavior-preserving and has no mechanical repair, but the protected maintainer label and incomplete hosted rollup require an explicit maintainer decision. Before merge
Agent review detailsSecurityNone. PR surfaceSource -28, Tests 0. Total -28 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the direct canonical persisted-auth calls and merge only after the exact-head hosted required checks are complete and a maintainer accepts the behavior-neutral refactor. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-neutral refactor, and the reviewed source preserves the config, environment, discovery, and persisted-auth decision path. Is this the best way to solve the issue? Yes. Removing the production-only test injection and calling the documented canonical probes directly leaves one ownership path and preserves the source-specific policy consumers need. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 90dba1a51877. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
|
@clawsweeper re-review The latest completed review (comment) records |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
What Problem This Solves
Configured-channel discovery carried a private test override and forwarding helpers around the canonical persisted-auth probes. A second local collection then rechecked signals that the same function had just added, obscuring the ownership of channel-presence decisions.
Why This Change Was Made
Call the canonical probes directly and return the already-deduplicated signals. Keep state-directory gating, discovery and environment forwarding, signal order, and the distinction between persisted-auth discovery and plugin activation unchanged. Tests spy on the canonical module instead of exposing a production-only test seam.
User Impact
No intended user-visible behavior change or public SDK/configuration/storage/schema change. Production: +10/-38 (net -28); tests: +14/-14 (net 0); whole: +24/-52 (net -28). All seven owner cases and assertions remain, including the empty-options persisted-auth case.
Evidence
bd20b1267f4ff78021cba65fbf7e3c2243edf7fd. Each used two complete evidence batches. The oversized unchanged lockfile was omitted under the normal evidence cap; second-batch live process identities were not independently captured, with cleanup owned by the canonical helper.This is green/green refactor characterization, not live channel/provider, credential-serialization or SQLite-recovery proof. Historical raw-index and disposed compiler-manifest custody gaps remain documented; no independent historical compiled-byte equivalence is claimed. All 54 captured Channel contexts are unchanged through fetched main
57a7e86f8d06fde46f2a080f4bf02acb39f9f959. Exact-head CI run33423746236and requiredopenclaw/ci-gatecheck99597136929forbd20b1267f4ff78021cba65fbf7e3c2243edf7fdare successful and less than 24 hours old at this verification. The latest completed ClawSweeper review, completed at 09:26 UTC, has no source findings; its CI rank-up is addressed by those results. Mandatory native hosted prepare and merge remain pending.