Repository navigation
refactor: delete dead post-landing plugin/hooks scaffolding - #118920
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 4:21 PM ET / 20:21 UTC. ClawSweeper reviewWhat this changesThis PR removes dead plugin and hook scaffolding, aliases the browser SSRF policy type to its canonical definition, and updates Slack and workspace dependency resolutions for two security advisories. Merge readinessThis PR remains necessary: current Priority: P3 Review scores
Verification
How this fits togetherGateway startup planning determines which plugin metadata and channel owners are loaded, while the hooks CLI uses that plan to build its local fallback report. Plugin diagnostics and the browser SDK consume the same control-plane metadata and SSRF-policy contracts, so this cleanup reduces duplicate internal paths without changing their outputs. flowchart LR
A[OpenClaw configuration] --> B[Gateway startup plugin plan]
B --> C[Plugin metadata snapshot]
C --> D[Hooks CLI fallback report]
C --> E[Plugin diagnostics]
F[Canonical SSRF policy] --> G[Browser SDK config type]
H[Workspace dependency overrides] --> I[Slack and shared dependency resolution]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -26, Tests 0, Config 0, Other +43. Total +17 across 10 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the canonical startup-plan and hook-policy owners, land this deletion-only cleanup with the patched dependency pins after the merge-head dependency and compatibility checks are green. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a deletion and dependency-maintenance PR rather than a report of a user-visible defect. Current-main source and the focused test coverage identify the affected internal paths directly. Is this the best way to solve the issue? Yes. The PR deletes delegation-only wrappers and an unread parameter at their owners, preserves the existing AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f73a7809a5e6. 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 (1 earlier review cycle)
|
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes notedThis PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of
Security review is still recommended before merge when the dependency graph change is intentional. |
…outing-20260803 * origin/main: (34 commits) fix(config): reject unsupported diagnostics otel grpc (#93087) fix(providers): recognize configured media credentials across provider boundaries (#118761) refactor: delete dead post-landing plugin/hooks scaffolding (#118920) fix(cron): deliver child results after heartbeat-only parent responses (#118743) fix(ci): keep Matrix chunk tests aligned with inventory (#118917) fix(tts): preserve hidden speech answers when synthesis fails (#118690) test(gateway): add HTTP API QA coverage (#118809) test(qa): cover Control UI sessions and cron (#118838) fix(macos): preserve native command ownership and consent (#118914) test(qa): cover OpenClaw exec process lifecycle (#118819) test(ui): cover diagnostic operator flows (#118837) fix(search): propagate cancellation through provider-owned requests (#118895) test(gateway): cover loopback and LAN access (#118824) refactor(channels): own the lifecycle status contract in SDK patch factories (#118795) test(ui): add guarded config QA coverage (#118814) fix(feishu): fence external collaboration tool results (#118877) test(qa): cover Plugin SDK import topology (#118878) test(qa): register external app SDK proof (#118829) fix(gateway): expire temporal rows in cached session lists (#118875) test(matrix): isolate runtime state (#118892) ...
* commit 'efcced7207baa0b1b1db5e8e1836673a24212657': test(agents): prove process control roundtrip (#118843) test(qa): add memory redaction boundary coverage (#118916) fix(kilocode): model discovery overstates the usable context window (#118868) fix(media): isolate generated-provider text from delivery directives (#118780) test(gateway): add node control-plane QA coverage (#118784) fix(config): reject unsupported diagnostics otel grpc (#93087) fix(providers): recognize configured media credentials across provider boundaries (#118761) refactor: delete dead post-landing plugin/hooks scaffolding (#118920) fix(cron): deliver child results after heartbeat-only parent responses (#118743) fix(ci): keep Matrix chunk tests aligned with inventory (#118917) fix(tts): preserve hidden speech answers when synthesis fails (#118690)
…te-dry-run-no-state-mutation * commit '682f60ce56b37c5cd3205fdcbbf25b21d48708f2': (28 commits) fix(config): reject unsupported diagnostics otel grpc (#93087) fix(providers): recognize configured media credentials across provider boundaries (#118761) refactor: delete dead post-landing plugin/hooks scaffolding (#118920) fix(cron): deliver child results after heartbeat-only parent responses (#118743) fix(ci): keep Matrix chunk tests aligned with inventory (#118917) fix(tts): preserve hidden speech answers when synthesis fails (#118690) test(gateway): add HTTP API QA coverage (#118809) test(qa): cover Control UI sessions and cron (#118838) fix(macos): preserve native command ownership and consent (#118914) test(qa): cover OpenClaw exec process lifecycle (#118819) test(ui): cover diagnostic operator flows (#118837) fix(search): propagate cancellation through provider-owned requests (#118895) test(gateway): cover loopback and LAN access (#118824) refactor(channels): own the lifecycle status contract in SDK patch factories (#118795) test(ui): add guarded config QA coverage (#118814) fix(feishu): fence external collaboration tool results (#118877) test(qa): cover Plugin SDK import topology (#118878) test(qa): register external app SDK proof (#118829) fix(gateway): expire temporal rows in cached session lists (#118875) test(matrix): isolate runtime state (#118892) ...
…-worker-update-20260803 * origin/main: (48 commits) test(ui): add shell and PWA primary QA proof (#118788) test(qa): cover CLI distribution workflows (#118948) chore(i18n): refresh native locales (#118883) test(qa): prove plugin tool ownership in gateway flow (#118958) docs: correct onboarding risk flags and Google Chat credential shapes (#118936) fix(imessage): honor explicitly enabled accounts during startup (#118944) test(gateway): cover client transport defaults (#118798) fix(signal): normalize accounts during noninteractive setup (#118932) fix(msteams): enable channels for federated environment credentials (#118931) fix(openai): enforce final transcript bounds before callback delivery (#118928) test(tasks): cover plugin-managed flows (#118919) test(agents): prove process control roundtrip (#118843) test(qa): add memory redaction boundary coverage (#118916) fix(kilocode): model discovery overstates the usable context window (#118868) fix(media): isolate generated-provider text from delivery directives (#118780) test(gateway): add node control-plane QA coverage (#118784) fix(config): reject unsupported diagnostics otel grpc (#93087) fix(providers): recognize configured media credentials across provider boundaries (#118761) refactor: delete dead post-landing plugin/hooks scaffolding (#118920) fix(cron): deliver child results after heartbeat-only parent responses (#118743) ...
…#118920) * refactor: delete dead post-landing plugin/hooks scaffolding * fix(security): resolve fast-uri and undici HIGH advisories
Related: #118288, #118460, #118286
AI-assisted: Codex implemented and autoreviewed this maintainer-requested cleanup.
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
The #118288/#118460/#118286 landing series left a small amount of simplification debt: an orphaned Gateway startup wrapper and barrel exports, a one-use hook merge helper, a field-for-field SSRF policy type copy, and an unread plugin report parameter. There is no issue for this maintainer-requested mechanical pass; this PR description is the durable rationale.
The post-landing sweep was re-verified against current
origin/mainbefore editing. The Gateway wrapper still had zero callers, the hook helper still had one caller, the browser policy shape still exactly matched the canonical SSRF policy, andPluginReportParams.resolvedConfigwas still unread.Why This Change Was Made
This removes the dead Gateway wrapper and its two re-exports, renames the associated suite to the registry resolver it actually tests, inlines the one-use hook helper, aliases the browser policy type to the canonical
SsrFPolicy, and deletes only the unread report parameter field. The result is 26 fewer production lines with no runtime, config, protocol, or public SDK surface change.One sweep premise was deliberately narrowed after current-source verification:
resolveHookEntriesis winner-idempotent but not strictly order-idempotent when a later source overrides an earlier hook becauseMap.setpreserves the first insertion slot. Removing the first local fallback pass could therefore reorder list/JSON output for collisions. This PR removesmergeHookEntriesbut retains its existingresolveHookEntries([...])call inline, preserving observable fallback ordering and leaving the more aggressive import deletion out of scope.User Impact
No user-visible behavior changes. Operators and plugin authors keep the same startup planning, hook status ordering, SSRF policy shape, and plugin diagnostics behavior; the internal implementation simply carries less dead and duplicated scaffolding.
Evidence
Current-main sweep proofs before editing:
git grep -n -w 'resolveGatewayStartupPluginIds' origin/main -- .returned only the declaration, two re-exports, and the stale describe title—no import or invocation. The prior sole caller was replaced byloadGatewayStartupPluginPlanWithMetadatain fix(cli): speed up hook status reads through the Gateway #118288, and perf(cli): carry prepared plugin metadata through cold read paths #118460 did not restore a caller.git grep -n -w 'mergeHookEntries' origin/main -- .returned only the helper and its single call. A direct collision probe confirmed why the inlineresolveHookEntriescall must remain to preserve local fallback ordering.git grep -n 'resolvedConfig' origin/main -- src/plugins/status.tsshowed the unreadPluginReportParamsfield separately from the livebuildPluginInspectReportfield/read, which remains intact.ResolvedBrowserSsrFPolicyandSsrFPolicyhad the same seven optional members; existing SDK files already import the canonical type directly fromsrc/infra/net/ssrf.ts.git grep -n -w 'resolveGatewayStartupPluginIds' HEAD -- .andgit grep -n -w 'mergeHookEntries' HEAD -- .return no matches.+4/-30(net-26); tests:+1/-1(net0).Validation:
./node_modules/.bin/oxfmt src/plugins/gateway-startup-plugin-loader.ts src/plugins/channel-plugin-ids.ts src/plugins/gateway-startup-plugin-ids.ts src/plugins/channel-plugin-ids.test.ts src/cli/hooks-cli.ts src/plugin-sdk/browser-types.ts src/plugins/status.tsnode scripts/run-vitest.mjs src/plugins/channel-plugin-ids.test.ts src/plugins/bundled-plugin-metadata.test.ts— 205 tests passed.node scripts/run-vitest.mjs src/cli/hooks-cli.test.ts src/cli/hooks-cli.toggle.test.ts src/cli/hooks-cli.process.test.ts src/hooks/hooks-status.test.ts src/hooks/policy.test.ts— 39 tests passed across three shards.node scripts/run-vitest.mjs src/plugin-sdk/browser-facades.test.ts src/plugin-sdk/browser-subpaths.test.ts src/plugins/contracts/plugin-sdk-subpaths.test.ts— 26 tests passed.node scripts/run-vitest.mjs src/plugins/status.test.ts src/plugins/status.registry-snapshot.test.ts src/plugins/status.dependency-health.test.ts src/plugins/status-effective-plugin-discovery.test.ts— 52 tests passed.pnpm plugin-sdk:surface:check— passed; public surface remained 149 entrypoints / 4,829 exports.node scripts/check-changed.mjs— remote routing could not start a Blacksmith provider, so no remote checks ran. Per the trusted-source fallback policy,OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_HEAVY_CHECK_LOCK_SCOPE=worktree node scripts/check-changed.mjspassed locally, including core/extension typechecks, lint, dead-export scan, SDK contracts, and import-cycle/guard checks.autoreview --mode uncommitted --engine codex --stream-engine-output ...— clean: no accepted/actionable findings; patch rated correct at 0.99 confidence.git diff --check— passed.Rider: HIGH dependency advisories (d8e2e97)
Two HIGH advisories published upstream today began failing
security-fast("Audit production dependencies") for every fresh CI run repo-wide — main's last green check predates them by ~11 minutes. Per the landing policy (fix unrelated gate breakage in the landing PR), this PR carries the minimal fix:extensions/slackexact pin7.28.0→7.29.0(Slack SDK ranges^7.0.0/^7.25.0already admit it; root uses 8.x, unaffected).node scripts/run-vitest.mjs extensions/slackgreen.pnpm-workspace.yaml:130bumped4.1.1→4.1.2(same override shape per the workspace exact-pin rule; the override predates this PR).node scripts/pre-commit/pnpm-audit-prod.mjs --audit-level=highnow reports zero high+ advisories.