Repository navigation
refactor(channels): unify configured binding resolution - #119414
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 4, 2026, 10:23 PM ET / August 5, 2026, 02:23 UTC. ClawSweeper reviewWhat this changesThe PR collapses duplicate configured channel-binding compilation, precedence selection, record materialization, and session-key lookup helpers into canonical paths without changing the public SDK. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain Keep open. Source comparison found the refactor behavior-equivalent, but the PR body provides tests and CI rather than inspectable after-fix runtime or harness proof for this routing-sensitive change. Priority: P3 Review scores
Verification
How this fits togetherConfigured channel bindings turn channel, account, and conversation facts into a selected agent target and persistent ACP session record. Channel routing and ACP reverse lookup consume the resolved record before dispatching work. flowchart LR
A[Channel event or session key] --> B[Normalize account and conversation]
B --> C[Compile loaded-plugin binding rules]
C --> D[Select exact or wildcard match]
D --> E[Materialize ACP target record]
E --> F[Route channel or recover session]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -124. Total -124 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the canonical resolver after a redacted runtime or ephemeral-gateway harness transcript demonstrates direct-versus-parent, exact-versus-wildcard, and reverse session-key selection on the PR head. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors existing configured-binding behavior rather than reporting a separate failure; source comparison establishes the affected behavior contracts. Is this the best way to solve the issue? Yes, subject to runtime proof: consolidating the one-use wrappers keeps a single compiler and selector while preserving the loaded-plugin and precedence boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 50c7444edf4b. LabelsLabel changes:
Label 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
|
|
Merged via squash.
|
* origin/main: (22 commits) refactor(plugins): consolidate lifecycle hook dispatch (#119429) fix(ci): stabilize TUI PTY proof ownership (#119420) test(system-agent): reduce suite setup overhead (#119424) fix(ui): keep session rail pill status from overlapping the headline (#119397) fix(discord): avoid doctor runtime loading (#119391) fix(media): decouple playback cache retention (#119417) fix(slack): infer upload filename extensions from MIME types (#119399) refactor(channels): unify configured binding resolution (#119414) refactor(google-meet): unify gateway and tool dispatch (#119413) test(state): reuse legacy database fixtures (#119423) fix(reset): preserve bootstrap guidance for dynamic models (#119179) fix(chutes): honor serving context limits (#119196) refactor(status): consolidate scan projections and lazy loaders (#119412) fix(status): status --all slows down with missing plugins (#119203) refactor(gateway): consolidate usage reporting and caches (#119409) perf(gateway): keep reload and recovery machinery off gateway cold start (#119094) fix(cli): align TaskFlow controller columns for wide text (#118801) fix: make startup migration restart guidance install-neutral (#119406) fix(ci): preserve cache warmer shard envelopes (#119403) fix(sessions): preserve compatible auth profiles on model changes (#117550) ...
What Problem This Solves
Configured channel bindings repeatedly compiled providers, normalized conversations, selected precedence, and materialized session-key lookups. This is part of a maintainer-requested project-wide production LOC reduction campaign.
Why This Change Was Made
Use canonical loaded-plugin binding compilation, precedence selection, and exact/wildcard session lookup paths without changing public SDK contracts or provider discovery.
User Impact
Channel and ACP routing preserve account, thread, wildcard, and exact-match behavior with 124 fewer production lines.
Evidence
gpt-5.6-solwithxhighreasoning; no accepted or actionable findings.git diff --check, scoped formatting, and direct before/after behavioral equivalence checks passed.Exact-head mock-channel binding transcript
A read-only, in-memory mock-channel harness executed nine real production modules, including all four changed configured-binding modules and the actual consumer registry. The wildcard rule was intentionally registered before the exact rule to prove precedence. Fixture identifiers only; no gateway state or credentials were used.