Repository navigation
refactor: consolidate directive and config parsing owners - #173394
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: blocked before merge. What this changesThis PR consolidates speech directive dispatch, channel secret assignment, meeting configuration parsing, and Voice Call defaults into shared owners. Example: Parse [[tts:provider=example voice=speaker speed=1.25]].
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep this useful maintainer-authored refactor open; no discrete correctness or security defect was found, and GitHub reports a conflict on the reviewed draft. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherReply directives and plugin configuration enter parsing and secret-collection owners, which produce provider overrides, deferred credential assignments, and normalized meeting or call settings for existing runtimes. flowchart TD
A[Reply directives] --> B[Shared speech dispatcher]
B --> C[Provider policies]
C --> D[TTS host accumulation]
E[Plugin configuration] --> F[Shared config and secret owners]
F --> G[Existing meeting and call runtimes]
Technical reviewBest possible solution: Keep the shared parsing owners while preserving released configuration behavior and provider-specific policies. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a reported defect; source inspection confirms the repeated implementations, and no target code was executed during this read-only review. Is this the best way to solve the issue? The shared owners fit existing boundaries, preserve provider-local policy, and remove duplicate implementations without introducing a competing runtime owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ebca33e13c5c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -498, Tests +268, Docs +27, Config +10, Other -1. Total -194 across 61 files. Added test files: 1. 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 15, 2026, 3:06 PM ET / 19:06 UTC. |
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. |
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
d3ec3b8 to
e77c891
Compare
Complete the retained configuration family from #173394. Preserve main's cron and restart fixture fixes, and exclude the four UI-reachable changes plus their dependent omission migration. Keep provider precedence, account ownership, meeting defaults, TTS layering, and duration policies.
* refactor: consolidate secret and meeting configuration Complete the retained configuration family from #173394. Preserve main's cron and restart fixture fixes, and exclude the four UI-reachable changes plus their dependent omission migration. Keep provider precedence, account ownership, meeting defaults, TTS layering, and duration policies. * refactor(config): keep independent meeting configuration consolidation Restore the nine changed core files reachable from failed runtime tests and their dependent provider migrations. Keep the shared meeting configuration owner, typed Fish/MiniMax reads, Slack record predicate, and existing-behavior Google Chat regression coverage. Preserve public configuration, credential policy, provider defaults, and shipped SDK contracts. The excluded family remains on the preservation branch.
…#173947) * refactor: consolidate secret and meeting configuration Complete the retained configuration family from openclaw#173394. Preserve main's cron and restart fixture fixes, and exclude the four UI-reachable changes plus their dependent omission migration. Keep provider precedence, account ownership, meeting defaults, TTS layering, and duration policies. * refactor(config): keep independent meeting configuration consolidation Restore the nine changed core files reachable from failed runtime tests and their dependent provider migrations. Keep the shared meeting configuration owner, typed Fish/MiniMax reads, Slack record predicate, and existing-behavior Google Chat regression coverage. Preserve public configuration, credential policy, provider defaults, and shipped SDK contracts. The excluded family remains on the preservation branch.
What Problem This Solves
Speech providers repeated directive alias/policy dispatch, and Voice Call rebuilt defaults already owned by its schema.
User Impact
No intended user-visible change, migration, or required action. Provider aliases, policy gates, validators, warning text, independent mutable defaults, and external-input validation remain protected. No config keys, schemas, protocols, dependencies, security effect checks, or durability behavior change. The standalone session memory backend is untouched.
What changed
One lightweight speech directive dispatcher serves all bundled parsers and the compatible-provider factory. Providers retain their value contracts; the TTS host retains patch accumulation. Voice Call's existing schema owns defaulting and external validation once, while typed consumers use its parsed result. A browser helper also drops redundant undefined coalescing.
The coordinator-directed CI cut restores every changed source file reachable from either failing Gateway test to origin/main. Dropped: all channel secret-assignment consolidation, shared record omission and its provider-normalization callers, reply/CLI cleanup, TTS layered/status cleanup, video duration consolidation, and meeting-config consolidation with its registrations/tests/docs. These changes are preserved separately on
deslop/z15-parked-cron-auth-20261015with the failing-test note; no PR is proposed for that branch.Best-effort tradeoffs accepted
Size
155 net production lines removed, counting registration metadata and excluding tests, docs, fixtures, generated files, and the exact assertion-baseline shrink. The coordinator waived the size floor for this reduced branch. All other inventoried family candidates are retained for named distinct contracts or parked by the CI drop rule; no additional sound unattempted cut remains.
Evidence
Reduced-cut local proof: extension production type graph passes, covering the core speech consumers; static SCC/madge reports zero cycles. Runtime-cycle proof reports zero cycles and remains input-valid after the sole subsequent runtime import change removed Microsoft's now-unused speech SDK edge. Fresh source-frozen tests pass 30 directive/host assertions and all 3 mandatory lint-suppression assertions, with final input verification and clean wrapper exit (1491.64s, dominated by worker preparation on the loaded host). Formatting and git diff --check pass. No remaining runtime or registration reference names either removed shared helper.
Fresh independent review completed against the final staged candidate. Its sole P2 requested provider-record copies in Voice Call, alleging a new mutation regression. Declined after source verification: the base normalizer already returned
{ ...defaults, ...config, ... }without overriding telnyx/twilio/plivo, and the base resolver then performed the same credential assignments. Thus existing provider records were already retained by reference. The sole production runtime caller receives schema-parsed, plugin-owned config from registration. No new caller-immutability or environment-refresh contract is introduced here; adding copies for a pre-existing, unreported scenario would not repair a regression in this cut. The review found no directive-dispatch defect. No accepted actionable finding remains; the tool's original finding is not mislabeled scoped-clean.Prior focused, input-qualified proof covers provider parsers, host accumulation, and Voice Call configuration/webhooks. Earlier exact-head hosted run38797189603 passed production/test types, all extension-lint shards, guards, build/SDK/package boundaries, security review, and native screenshots. That is prior-head evidence only; the reduced pushed head must finish its own CI.
Known local gap retained: extension lint's unchanged declaration prerequisite previously failed with
plugin-sdk boundary dts timed out after 300000ms. This is not claimed as a local pass. No timeout, retry, skip, suppression, or budget was widened. Expensive baseline Gateway replay never reached assertions and is not attribution evidence; the coordinator explicitly selected import-graph removal without another baseline run.Gateway failure cut
Read both failing tests completely. A conservative source graph includes static imports/exports (also type edges), literal dynamic imports, mock/original imports, tsconfig aliases, the test-instance subprocess bridge into the CLI, and channel sidecars loaded by artifact name. It deliberately over-approximates imports, not executed lines.
test/gateway.multi.e2e.test.ts, scheduler-disabled Gateway edit,cron.addrejects missing route-compatible OpenAI auth.src/gateway/server.sessions.create.durability.test.ts, acknowledged control-UI first turn with worktree,chat.sendtimeout followed by hook/cleanup timeouts.Prior-head failure attribution (not relabeled green)
Landed outcome
Merged by normal pinned squash as
8d4e374169beb205e70986e02caa9da4d6f144b8; ancestry verified on fetched origin/main. Actual squash delta is 155 net production lines removed (463 added/618 deleted), with the requested parked snapshot preserved separately.Exact head
88fb128ee3cdcf7241471e7dc9531d93a69f1e03passed CI run38816293090, includingopenclaw/ci-gate. All 144 exact-head check runs were enumerated: no failed jobs; 11 cancelled non-test auto-response jobs were superseded by successful auto-response job116702009648. The CI run itself had no cancelled job or test failure. Production/test types, all three extension-lint shards, selected Node suites, UI E2E, guards/boundaries and security checks pass. Conditional unselected jobs are not claimed as executed. No inherited-red exception, CI rerun, further push, or rebase was needed for the reduced head. The earlier local declaration-lint timeout remains a documented local gap, now covered by green hosted extension lint on this head.