Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 11, 2026, 3:32 AM ET / 07:32 UTC. Summary PR surface: Source +160, Tests +788, Other +324. Total +1272 across 13 files. Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Review detailsBest possible solution: Retry the Codex review after fixing the execution failure. Do we have a high-confidence way to reproduce the issue? Unclear. The review failed before ClawSweeper could establish a reproduction path. Is this the best way to solve the issue? Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 418d7e1e83c5. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +160, Tests +788, Other +324. Total +1272 across 13 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
I like the origin-aware fallback here — excluding |
182404f to
8622783
Compare
Dependency graph guard clearedThis PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh
|
d38ade1 to
e126b79
Compare
|
@clawsweeper automerge |
|
ClawSweeper 🐠 reef update Thanks for the work on this. ClawSweeper opened a replacement PR only because the source branch was not writable from the available bot permissions. branch tides, not contributor blame. Why replacement: ClawSweeper could not update the source PR branch directly; GitHub did not grant sufficient push rights to the bot for that branch.
fish notes: reasoning high; reviewed against bf86d9f. |
|
@clawsweeper re-review |
|
🦞🧹 Reason: re-review requires an open issue or PR. |
Share existing config-path and retired-media traversal owners. Remove speculative rollback, retry, reentry, and diagnostic freshness machinery while preserving security effect checks, ordinary cleanup settlement, resource bounds, and public config, CLI, protocol, and persisted-data shapes. Phase E is untouched. Production delta: 335 net lines removed (+97/-432) across 16 old files. Focused proof: 311 tests in 25 files; final embedding/shutdown proof: 91 tests in 4 files. Independent scoped review found no actionable P0-P2 findings. Published as a branch only under the campaign's below-500 rule, not a PR. Best-effort tradeoffs accepted - Overlapping failed env publications may require reload/restart instead of ordered compensation; #105289/#103736 document synthetic harness proof, not a human actual-use report. - Failed in-process restart preparation/emission requires explicit config reapply or manual restart; #105289/#160375 describe synthetic timing, not a transient transport failure. - A mount changed during sampling may briefly be attributed to its parent filesystem until the next snapshot; #149792 uses forced mount fixtures, without a human incident. - CLI provider cleanup is attempted once; #113471's blocked-close fixtures do not establish a transient failed-close incident, and the CLI exits on cleanup failure. - Requested-head CI details are a snapshot until refresh; #148464's synthetic push/rerun interleavings do not justify rereading the head and check inventory after fetching jobs. - A malformed catalog resolver may repeat rejection until the existing 16-fallback bound instead of an earlier identity bailout; #92175/#89456 are synthetic trust-harness work, and every trust check remains. - Model normalizers must not reenter the same resolver; #156076's callback reentry is synthetic. Measured lookup caches and ordinary callback errors/order remain. - Offline plugin-state imports assume no unsupported same-destination writer after capacity preflight; #109679's ordinary near-capacity import remains fixed, while concurrent eviction compensation came from synthetic sibling seeding. - A delayed update verification reply may repeat a terminal broadcast or briefly show old status; #160592 supplies synthetic ordering proof, while durable effect idempotency, FIFO, repair authority, and shutdown joining remain. - A malformed reply from the fixed inline CA worker may fail instead of using a dedicated invalid-result fallback; #112338/#112336 do not report a human malformed-message incident. Timeout/error/exit handling remains. - Failed Gateway embedding cleanup blocks only its agent/provider scope until restart instead of retaining provider objects and retrying close; #113471 documents synthetic blocked-close proof, not a human failed-close incident. Local FIFO cleanup, remote concurrency, abort handling, authority, and normal shutdown settlement remain.
…#170826) * refactor: simplify older agent and channel execution paths Consolidate duplicate payload and metadata projections under their existing owners. Simplify internal bookkeeping and bounded cache invalidation while retaining public SDK contracts, security-effect authority, ordinary concurrency, and durable user state. * refactor: retain branch cache pending complete old-code cutover Withdraw the branch-cache cluster because completing its unused-export cleanup requires an infra owner touched this week. Preserve the original cache, regression assertions, and docs. The remaining old-code lane removes 424 net production lines and is branch-only under the campaign BELOW-500 rule. * refactor: simplify old gateway, config, and CLI bookkeeping Share existing config-path and retired-media traversal owners. Remove speculative rollback, retry, reentry, and diagnostic freshness machinery while preserving security effect checks, ordinary cleanup settlement, resource bounds, and public config, CLI, protocol, and persisted-data shapes. Phase E is untouched. Production delta: 335 net lines removed (+97/-432) across 16 old files. Focused proof: 311 tests in 25 files; final embedding/shutdown proof: 91 tests in 4 files. Independent scoped review found no actionable P0-P2 findings. Published as a branch only under the campaign's below-500 rule, not a PR. Best-effort tradeoffs accepted - Overlapping failed env publications may require reload/restart instead of ordered compensation; #105289/#103736 document synthetic harness proof, not a human actual-use report. - Failed in-process restart preparation/emission requires explicit config reapply or manual restart; #105289/#160375 describe synthetic timing, not a transient transport failure. - A mount changed during sampling may briefly be attributed to its parent filesystem until the next snapshot; #149792 uses forced mount fixtures, without a human incident. - CLI provider cleanup is attempted once; #113471's blocked-close fixtures do not establish a transient failed-close incident, and the CLI exits on cleanup failure. - Requested-head CI details are a snapshot until refresh; #148464's synthetic push/rerun interleavings do not justify rereading the head and check inventory after fetching jobs. - A malformed catalog resolver may repeat rejection until the existing 16-fallback bound instead of an earlier identity bailout; #92175/#89456 are synthetic trust-harness work, and every trust check remains. - Model normalizers must not reenter the same resolver; #156076's callback reentry is synthetic. Measured lookup caches and ordinary callback errors/order remain. - Offline plugin-state imports assume no unsupported same-destination writer after capacity preflight; #109679's ordinary near-capacity import remains fixed, while concurrent eviction compensation came from synthetic sibling seeding. - A delayed update verification reply may repeat a terminal broadcast or briefly show old status; #160592 supplies synthetic ordering proof, while durable effect idempotency, FIFO, repair authority, and shutdown joining remain. - A malformed reply from the fixed inline CA worker may fail instead of using a dedicated invalid-result fallback; #112338/#112336 do not report a human malformed-message incident. Timeout/error/exit handling remains. - Failed Gateway embedding cleanup blocks only its agent/provider scope until restart instead of retaining provider objects and retrying close; #113471 documents synthetic blocked-close proof, not a human failed-close incident. Local FIFO cleanup, remote concurrency, abort handling, authority, and normal shutdown settlement remain. * refactor: defer pricing cache cleanup touched on main Withdraw the usage-format production and paired test changes after main landed afc559c, keeping the hard seven-day old-code exclusion. Both files match the pre-campaign base, so main retains its interrupted-stream usage repair. The remaining reviewed o05/o06 union removes 713 net production lines across 42 files.
…openclaw#170826) * refactor: simplify older agent and channel execution paths Consolidate duplicate payload and metadata projections under their existing owners. Simplify internal bookkeeping and bounded cache invalidation while retaining public SDK contracts, security-effect authority, ordinary concurrency, and durable user state. * refactor: retain branch cache pending complete old-code cutover Withdraw the branch-cache cluster because completing its unused-export cleanup requires an infra owner touched this week. Preserve the original cache, regression assertions, and docs. The remaining old-code lane removes 424 net production lines and is branch-only under the campaign BELOW-500 rule. * refactor: simplify old gateway, config, and CLI bookkeeping Share existing config-path and retired-media traversal owners. Remove speculative rollback, retry, reentry, and diagnostic freshness machinery while preserving security effect checks, ordinary cleanup settlement, resource bounds, and public config, CLI, protocol, and persisted-data shapes. Phase E is untouched. Production delta: 335 net lines removed (+97/-432) across 16 old files. Focused proof: 311 tests in 25 files; final embedding/shutdown proof: 91 tests in 4 files. Independent scoped review found no actionable P0-P2 findings. Published as a branch only under the campaign's below-500 rule, not a PR. Best-effort tradeoffs accepted - Overlapping failed env publications may require reload/restart instead of ordered compensation; openclaw#105289/openclaw#103736 document synthetic harness proof, not a human actual-use report. - Failed in-process restart preparation/emission requires explicit config reapply or manual restart; openclaw#105289/openclaw#160375 describe synthetic timing, not a transient transport failure. - A mount changed during sampling may briefly be attributed to its parent filesystem until the next snapshot; openclaw#149792 uses forced mount fixtures, without a human incident. - CLI provider cleanup is attempted once; openclaw#113471's blocked-close fixtures do not establish a transient failed-close incident, and the CLI exits on cleanup failure. - Requested-head CI details are a snapshot until refresh; openclaw#148464's synthetic push/rerun interleavings do not justify rereading the head and check inventory after fetching jobs. - A malformed catalog resolver may repeat rejection until the existing 16-fallback bound instead of an earlier identity bailout; openclaw#92175/openclaw#89456 are synthetic trust-harness work, and every trust check remains. - Model normalizers must not reenter the same resolver; openclaw#156076's callback reentry is synthetic. Measured lookup caches and ordinary callback errors/order remain. - Offline plugin-state imports assume no unsupported same-destination writer after capacity preflight; openclaw#109679's ordinary near-capacity import remains fixed, while concurrent eviction compensation came from synthetic sibling seeding. - A delayed update verification reply may repeat a terminal broadcast or briefly show old status; openclaw#160592 supplies synthetic ordering proof, while durable effect idempotency, FIFO, repair authority, and shutdown joining remain. - A malformed reply from the fixed inline CA worker may fail instead of using a dedicated invalid-result fallback; openclaw#112338/openclaw#112336 do not report a human malformed-message incident. Timeout/error/exit handling remains. - Failed Gateway embedding cleanup blocks only its agent/provider scope until restart instead of retaining provider objects and retrying close; openclaw#113471 documents synthetic blocked-close proof, not a human failed-close incident. Local FIFO cleanup, remote concurrency, abort handling, authority, and normal shutdown settlement remain. * refactor: defer pricing cache cleanup touched on main Withdraw the usage-format production and paired test changes after main landed 7a00a9f, keeping the hard seven-day old-code exclusion. Both files match the pre-campaign base, so main retains its interrupted-stream usage repair. The remaining reviewed o05/o06 union removes 713 net production lines across 42 files.
Summary
config/globalchannel plugins discovered throughplugins.load.pathsor linked installsmainblocks trustedplugins.load.pathssetup because the catalog never sees that channel, while this branch reaches the loader and passes all four trust cases{ pluginId, origin }, then fall back to a safe bundled/non-local copy instead of suppressing all copies of the same plugin id.dtsbuild break insrc/commands/channel-setup/trusted-catalog.ts, which was failing freshpnpm build:plugin-sdk:dts/ Docker image builds even when local incremental caches hid itChange Type
Scope
Linked Issue / PR
fix(plugins): block untrusted workspace setup-only channel loads)my_docs/my_docs/04-cases/2026-04-10-channel-workspace-shadow-case/pr-86953-autoreview-follow-up.zh.mdplugins.load.paths(origin: "config") and linked/local installs that surface asorigin: "global"Problem Statement
#86953 established the product rule that untrusted local channel plugins should not get imported during setup-only channel flows. That landed for workspace-origin plugins.
The remaining gap was the broader local-origin surface:
plugins.load.pathschannel plugins appear asorigin: "config"origin: "global"Those are still local code from the operator's point of view. If setup hardening only keys on
origin === "workspace", the trust boundary is inconsistent: one class of local plugin is blocked before import, while other local shadows can still win channel catalog resolution or suppress a safe bundled fallback.This branch also had a separate concrete defect in fresh builds:
src/commands/channel-setup/trusted-catalog.tsfailed declaration generation, so Docker image builds died inbuild:plugin-sdk:dtseven though local incremental caches could mask the problem.The fresh-build failure was:
Blackbox Proof
Harness:
openclaw-e2e-gospecs/plugintrust/local_origin_followup_test.goscripts/docker/test-plugintrust-local-origin.shscripts/fixtures/plugintrust/{workspace-shadow,load-paths-shadow}/OPENCLAW_E2E_TARGET_REPO=<openclaw checkout> go test ./specs/plugintrust -vThe harness bakes a fresh OpenClaw image from source, then asserts only on marker files written by fixture plugins:
PLUGINTRUST_SETUP_IMPORT_MARKER: module top-level import happenedPLUGINTRUST_SETUP_REGISTER_MARKER: setup hook actually ranClean
main(a4196a44454f) behavior:workspace + untrusted: PASS, trust gate blocks the untrusted workspace pluginworkspace + plugins.allow: PASS, trusted workspace plugin loadsload-paths + untrusted: PASS as probe-only, marker absent because catalog rejectsUnknown channel e2e-load-pathsbefore loaderload-paths + plugins.allow: FAIL, sameUnknown channel e2e-load-paths; trusted load-path plugin is still invisible to the catalog on mainThis branch behavior from the previously built fresh image:
That is the direct before/after proof for the regression this PR fixes: on
main, trustedplugins.load.pathschannels never reach setup because the catalog cannot resolve them; on this branch, the same scenario resolves and loads correctly while the untrusted cases still stay blocked.What Changed
extraPathsthrough channel catalog resolution so trusted channel setup/add flows can actually see channel plugins discovered fromplugins.load.paths.excludePluginRefs: [{ pluginId, origin }], so rejecting an untrusted local shadow only skips that exact local candidate and still allows a bundled copy of the same channel/plugin id to win.trusted-catalog.tsby replacing the unstablePick<Parameters<...>[1], ...>shape with an explicit local exclusions type and explicit local-origin narrowing.src/commands/channels.add.trust.e2e.test.tsas a main-repo L4 E2E regression for the realchannels addCLI path.bash scripts/e2e/channel-plugin-trust-docker.shas a focused Docker/package L6 manual proof script for theplugins.load.pathstrust boundary.Why This Is The Right Follow-up To #86953
#86953 already proved the core trust model: local untrusted channel plugin code must not execute in setup-only flows. This PR does not redefine that model; it applies the same invariant consistently to the remaining local origins the earlier PR intentionally left as a follow-up hardening item.
The
pr-86953-autoreview-follow-up.zh.mdnote called out exactly this direction: stop hardcoding one origin name and move the loader/catalog gate toward a unified local trust decision. This PR stays within that scope and keeps the current product behavior for trusted plugins:Verification
pnpm build:plugin-sdk:dtspnpm test src/commands/channel-setup/trusted-catalog.test.ts -- --reporter=verbosepnpm buildpnpm test src/commands/channels.add.trust.e2e.test.ts -- --reporter=verbosebash scripts/e2e/channel-plugin-trust-docker.shgit diff --checkenv npm_config_registry=https://registry.npmjs.org/ node scripts/generate-npm-shrinkwrap.mjs --checkopenclaw-e2e-goEvidence
pnpm build:plugin-sdk:dtsnow passes after thetrusted-catalog.tstype fix; this was the blocker for Docker image rebuilds.src/commands/channel-setup/trusted-catalog.test.ts.pnpm buildpasses after the declaration-build fix.src/commands/channels.add.trust.e2e.test.tscovers workspace/load-paths x trusted/untrusted, 4/4 passing through the realopenclaw channels addCLI path.bash scripts/e2e/channel-plugin-trust-docker.shbuilt the package artifacts, packed/checked the OpenClaw tarball, installed it into the functional Docker image, then verifiedplugins.load.pathsuntrusted blocks setup entry execution andplugins.allowpermits setup entry execution.npm-shrinkwrap.jsonwas regenerated/check-verified withhttps://registry.npmjs.org/; no local mirror URLs are present.pnpm check:changedcould not complete locally because the installed Crabbox binary is0.15.0while current Testbox delegation requires Crabbox>=0.22.0. Running the child command directly reached existing shrinkwrap guard behavior for changed plugin packages; no test/lint/type failure was observed before that guard.