Repository navigation
fix(knowledge): show read and write settings enabled on first install - #184755
roboclaw-bot merged 2 commits into
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: needs maintainer review before merge. What this changesThis PR declares Knowledge’s existing read and write defaults in both configuration schemas so omitted settings display as enabled. Example: Open Knowledge settings with plugins.entries.knowledge.config omitted.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR corrects misleading Knowledge settings with a focused patch, convincing visual proof, and green checks; no actionable defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherKnowledge supplies plugin configuration schemas to the Gateway’s config schema builder; the Control UI renders those defaults alongside authored settings, while Knowledge resolves runtime policy. flowchart LR
A[Knowledge manifest] --> C[Gateway config schema]
B[Runtime configuration schema] --> E[Knowledge policy]
C --> D[Control UI settings]
F[Authored configuration] --> D
F --> E
Technical reviewBest possible solution: Merge the focused schema correction while retaining existing runtime policy and explicit opt-outs. Do we have a high-confidence way to reproduce the issue? Current-main schema omissions, the renderer’s false fallback, and the supplied before screenshot establish the mismatch; no target code was executed during this read-only review. Is this the best way to solve the issue? The smallest complete fix is to declare the existing defaults at both plugin schema sources and exercise the settings flow; no generic renderer change or new policy owner is needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6a1f6b0c7bc7. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +92, Generated 0. Total +94 across 4 files. Added test files: 1. View PR surface stats
LabelsLabel changes: No label 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 26, 2026, 11:54 AM ET / 15:54 UTC. |
…88556) ## What Problem This Solves Knowledge currently walks valid store keys twice and makes an extra array copy before three explorer projections. Let the existing schema validator own key validation, and let filter/toSorted/toReversed provide the arrays they already allocate. ## User Impact No user-visible behavior change. The malformed-membership path still makes affected agents unavailable. Store-key syntax, membership/authority checks, sorting, rendering, pagination, and source-array ownership stay unchanged. No SQL, schema, SDK, or provider-request change. ## Why This Change Was Made The validated schema owns key syntax; the native array methods own the required copies. Keep those owners and delete the redundant work. ## Evidence ### Acceptance and counts This is a four-site cleanup, using the final-small-batch exception; production +4/-5 lines (net -1), net test lines unchanged. Count acceptance: one redundant key scan and its regex allocation removed; three explicit array copies removed. No wall-clock, CPU, SQL, or Gateway latency claim; no timing experiment. Existing nonmutating methods remain, with no new lint suppression. - Focused existing stores-config suite: 4/4 passed, including malformed-key invalidation, revision stability, policy rejection, and conversation grants. - Changed-file oxfmt, oxlint, and git diff --check passed. - Two isolated Codex P0–P2 reviews of the full four-file diff against 8f1ef6c: both scoped-clean; no findings. Initial temporary-directory preflight refusals were corrected before either reviewer executed. - Initial exact-head CI run 41097808042 exposed a storage-schema replacement-fixture failure (expected three indexes, got two). The unchanged file passes 10/10 on both base and candidate; inode reuse was not reproduced locally. Earlier fixture cleanup can leave freed inode IDs in the module admission set. The replacement test now uses a freshly imported owner, preserves both warm-file/replacement index assertions, and passes 10/10 locally. Net test lines remain zero. - One additional isolated Codex P0–P2 delta review found no actionable issue in the fixture repair; the final import alias also passes no-shadow lint. - Final exact-head CI 41099978168 at 31f0f63: all applicable test, type, lint, source-contract, architecture, extension-boundary and baseline-ratchet gates passed, including the previously failing extensions-config shard. Security/dependency review passed. GitHub status requests intermittently returned 502/504; no test rerun or bypass was used. Open-PR overlap comparison used base and candidate merge-tree output against #186270 (2a8f1cc) and #184755 (e1a7985). Conflict blocks are identical: 51→51 and 1→1 respectively; no new conflict. Final shared-index refresh also checked the test file and found no further peers. #186270 is now merged; the remaining open #184755 still has the identical single unrelated generated-baseline conflict. Broader scan candidates needing mutable-sort lint exceptions, uncertain input contracts, or another owner were retained rather than included here. Release-note context: reduce redundant Knowledge config validation and explorer array copying without changing user-visible behavior.
…enclaw#188556) ## What Problem This Solves Knowledge currently walks valid store keys twice and makes an extra array copy before three explorer projections. Let the existing schema validator own key validation, and let filter/toSorted/toReversed provide the arrays they already allocate. ## User Impact No user-visible behavior change. The malformed-membership path still makes affected agents unavailable. Store-key syntax, membership/authority checks, sorting, rendering, pagination, and source-array ownership stay unchanged. No SQL, schema, SDK, or provider-request change. ## Why This Change Was Made The validated schema owns key syntax; the native array methods own the required copies. Keep those owners and delete the redundant work. ## Evidence ### Acceptance and counts This is a four-site cleanup, using the final-small-batch exception; production +4/-5 lines (net -1), net test lines unchanged. Count acceptance: one redundant key scan and its regex allocation removed; three explicit array copies removed. No wall-clock, CPU, SQL, or Gateway latency claim; no timing experiment. Existing nonmutating methods remain, with no new lint suppression. - Focused existing stores-config suite: 4/4 passed, including malformed-key invalidation, revision stability, policy rejection, and conversation grants. - Changed-file oxfmt, oxlint, and git diff --check passed. - Two isolated Codex P0–P2 reviews of the full four-file diff against 5fe865c: both scoped-clean; no findings. Initial temporary-directory preflight refusals were corrected before either reviewer executed. - Initial exact-head CI run 41097808042 exposed a storage-schema replacement-fixture failure (expected three indexes, got two). The unchanged file passes 10/10 on both base and candidate; inode reuse was not reproduced locally. Earlier fixture cleanup can leave freed inode IDs in the module admission set. The replacement test now uses a freshly imported owner, preserves both warm-file/replacement index assertions, and passes 10/10 locally. Net test lines remain zero. - One additional isolated Codex P0–P2 delta review found no actionable issue in the fixture repair; the final import alias also passes no-shadow lint. - Final exact-head CI 41099978168 at 31f0f63: all applicable test, type, lint, source-contract, architecture, extension-boundary and baseline-ratchet gates passed, including the previously failing extensions-config shard. Security/dependency review passed. GitHub status requests intermittently returned 502/504; no test rerun or bypass was used. Open-PR overlap comparison used base and candidate merge-tree output against openclaw#186270 (2a8f1cc) and openclaw#184755 (e1a7985). Conflict blocks are identical: 51→51 and 1→1 respectively; no new conflict. Final shared-index refresh also checked the test file and found no further peers. openclaw#186270 is now merged; the remaining open openclaw#184755 still has the identical single unrelated generated-baseline conflict. Broader scan candidates needing mutable-sort lint exceptions, uncertain input contracts, or another owner were retained rather than included here. Release-note context: reduce redundant Knowledge config validation and explorer array copying without changing user-visible behavior.
…88556) ## What Problem This Solves Knowledge currently walks valid store keys twice and makes an extra array copy before three explorer projections. Let the existing schema validator own key validation, and let filter/toSorted/toReversed provide the arrays they already allocate. ## User Impact No user-visible behavior change. The malformed-membership path still makes affected agents unavailable. Store-key syntax, membership/authority checks, sorting, rendering, pagination, and source-array ownership stay unchanged. No SQL, schema, SDK, or provider-request change. ## Why This Change Was Made The validated schema owns key syntax; the native array methods own the required copies. Keep those owners and delete the redundant work. ## Evidence ### Acceptance and counts This is a four-site cleanup, using the final-small-batch exception; production +4/-5 lines (net -1), net test lines unchanged. Count acceptance: one redundant key scan and its regex allocation removed; three explicit array copies removed. No wall-clock, CPU, SQL, or Gateway latency claim; no timing experiment. Existing nonmutating methods remain, with no new lint suppression. - Focused existing stores-config suite: 4/4 passed, including malformed-key invalidation, revision stability, policy rejection, and conversation grants. - Changed-file oxfmt, oxlint, and git diff --check passed. - Two isolated Codex P0–P2 reviews of the full four-file diff against 8f1ef6c: both scoped-clean; no findings. Initial temporary-directory preflight refusals were corrected before either reviewer executed. - Initial exact-head CI run 41097808042 exposed a storage-schema replacement-fixture failure (expected three indexes, got two). The unchanged file passes 10/10 on both base and candidate; inode reuse was not reproduced locally. Earlier fixture cleanup can leave freed inode IDs in the module admission set. The replacement test now uses a freshly imported owner, preserves both warm-file/replacement index assertions, and passes 10/10 locally. Net test lines remain zero. - One additional isolated Codex P0–P2 delta review found no actionable issue in the fixture repair; the final import alias also passes no-shadow lint. - Final exact-head CI 41099978168 at 31f0f63: all applicable test, type, lint, source-contract, architecture, extension-boundary and baseline-ratchet gates passed, including the previously failing extensions-config shard. Security/dependency review passed. GitHub status requests intermittently returned 502/504; no test rerun or bypass was used. Open-PR overlap comparison used base and candidate merge-tree output against #186270 (2a8f1cc) and #184755 (e1a7985). Conflict blocks are identical: 51→51 and 1→1 respectively; no new conflict. Final shared-index refresh also checked the test file and found no further peers. #186270 is now merged; the remaining open #184755 still has the identical single unrelated generated-baseline conflict. Broader scan candidates needing mutable-sort lint exceptions, uncertain input contracts, or another owner were retained rather than included here. Release-note context: reduce redundant Knowledge config validation and explorer array copying without changing user-visible behavior. (cherry picked from commit cd8290c) Co-authored-by: RomneyDa <[email protected]>
Preserve the current Knowledge schema and prompt metadata, regenerate config fingerprints, and align regression selectors with current UI copy. Co-authored-by: jalehman <[email protected]>
…openclaw#184755) Co-authored-by: jalehman <[email protected]>
What Problem This Solves
Fixes Operator Read and Writes Enabled appearing off when opening Knowledge settings on a first install, even though both runtime defaults are on.
User Impact
Fresh Knowledge settings now reflect the effective read/write policy without requiring an edit. Explicit
falsevalues remain off, including after saving and reloading. No migration or operator action is required.Why This Change Was Made
Declare the existing runtime defaults in both Knowledge configuration schema sources so the schema-driven Control UI can display them. This is a metadata correction, not a change to runtime permissions or generic form behavior.
Evidence
v2026.10.7has no bundled Knowledge plugin, so there is no stable Knowledge configuration to upgrade. Existing authored opt-outs were instead verified through the actual candidate persistence/restart lifecycle.Before:
After:
Real isolated Gateway round-trip
Fresh config with both values omitted:
Explicit opt-outs persisted through the real Gateway and browser reload, then independently checked unchanged after Gateway restart: