Repository navigation
fix(config): ignore empty plugin defaults when widening allowlists - #192380
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 prevents empty plugin config defaults from widening restrictive plugin allowlists. Example: Validation adds memory-core.config: {} when plugins.allow is ["codex"].
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this maintainer-authored PR provides a minimal correction for a current-main allowlist bug, with no actionable correctness findings. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherConfig validation materializes plugin defaults; runtime loading reapplies auto-enable policy to produce the effective plugin configuration. flowchart LR
A[Authored configuration] --> B[Plugin validation]
B --> C[Configuration with defaults]
C --> D[Runtime load context]
D --> E[Auto-enable policy]
E --> F[Effective plugin configuration]
Technical reviewBest possible solution: Keep the existing material-config owner and exclude empty config objects while preserving explicit enablement, nonempty settings, and deny rules. Do we have a high-confidence way to reproduce the issue? Validation, runtime loading, and the added regression establish the empty-default-to-allowlist path; no target code was executed during this review. Is this the best way to solve the issue? The predicate correction is the smallest complete fix using the existing owner: defaults remain available without an empty object implying operator selection. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 44eaed3d95d7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +14, Other +2. Total +18 across 3 files. Added test files: 0. View PR surface stats
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 HistoryReview history (1 earlier review cycle)
Reviewed November 4, 2026, 5:10 PM ET / 22:10 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…ists Validation materializes an empty config object for enabled plugins such as the default memory slot (memory-core). Runtime plugin load contexts re-run auto-enable on that runtime config, and the configured-entry allowlist pass treated the empty object as operator config, appending memory-core to a restrictive plugins.allow after any hot reload (for example models.authSetApiKey). The Codex thread's dynamic tool catalog then changed and the session rotated to a new native thread. An empty config object is not material operator configuration. Forward-port of cc9ab3d from release/2026.10.10.
183deb8 to
cba2e09
Compare
Carry the final reviewed changes from #191830, #192378, #192379, #192380, #192383, #192385, and #192386. Preserve #191838's existing file-transfer import fix. Adapt Gateway readiness to the release owner and include the narrow SQLite cold-admission prerequisite from #192586. Do not carry #192387: its Goal expectation depends on main-only Stop-to-paused behavior absent from this release. Retain regression allocations without changing the shared baseline.
…penclaw#192380) * fix(config): ignore empty default plugin entries when widening allowlists Validation materializes an empty config object for enabled plugins such as the default memory slot (memory-core). Runtime plugin load contexts re-run auto-enable on that runtime config, and the configured-entry allowlist pass treated the empty object as operator config, appending memory-core to a restrictive plugins.allow after any hot reload (for example models.authSetApiKey). The Codex thread's dynamic tool catalog then changed and the session rotated to a new native thread. An empty config object is not material operator configuration. Forward-port of cc9ab3d from release/2026.10.10. * test(ci): scope plugin config forward-port regression allocation
Problem
Validation-generated empty plugin config objects can widen a restrictive plugin allowlist.
Solution
Treat only nonempty config objects as material operator configuration; retain explicit enabled and other material settings.
Independent split of #191830, directly against
main; no sibling PR is required. Original release provenance is preserved in commit bodies. Scope excludes every other forward-port group.Evidence
node scripts/run-vitest.mjs src/config/config.plugin-validation.test.ts --maxWorkers=1: 53/53 passed. Initial worktree runs failed dependency setup before tests; restoring matching package-local dependency links resolved that setup failure.oxlint --type-aware, andgit diff --check: passed.34007820fa2c: complete, no actionable findings.Reviewed candidate:
183deb854e940299d60dd4044d6de72bcd25df92.Split CI status
34007820fa2c: missingMcpCatalogToolexport inmcp-metadata.tsand consequent optional UI metadata errors. That file andagent-bundle-mcp-materialize.ts/agent-bundle-mcp-types.tsare byte-identical to the base; SDK declaration preparation propagates the same error into build/boundary/lint lanes.Exact-head CI attribution audit
Audited 2026-11-04 at
183deb854e940299d60dd4044d6de72bcd25df92. Failed job logs were inspected individually, not inferred from their names.The MCP failures are inherited from base
34007820fa2c:src/agents/mcp-metadata.ts,agent-bundle-mcp-materialize.ts, andagent-bundle-mcp-types.tshave identical Git blob IDs at base and PR head. The missingMcpCatalogToolexport and consequent optional-property errors propagate through SDK declarations into boundary/build/lint/type lanes.The test-line ratchet is also inherited: this PR offsets its exact positive test-line delta, and its job still exceeds the adjusted ceiling by the same 47 lines already present at base (6,444,916 vs 6,444,869). No baseline increase or unrelated repair is included.
Cancelled dispatch jobs are orchestration cancellations, not passing tests or additional source defects. CI remains red; this section explains the failures rather than claiming green.
Rebase onto current main
Rebased onto
a1f99240c8367a0e012b401bed71831a3cc65026, including merged Goal-test correction #192387. New candidate:cba2e09ac6dfd857eba03d6a1e18ded68c24c135. This PR still targets main independently.Verified the complete rebased tree equals the previous PR patch integrated with that main snapshot. No new behavior was added during rebase. Prior test and CI attribution sections remain evidence for their named old revisions; fresh CI on this head is pending, not claimed green.