Repository navigation
fix(memory-wiki): make metadata list replacement explicit - #190641
vincentkoc merged 2 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR explains complete-list replacement and reports before/after metadata counts in wiki mutation results. Example: Update a page containing 17 claims with one supplied claim.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a current disclosure gap without changing replacement semantics, and no actionable defects remain. Priority: P1 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe memory-wiki plugin accepts tool, Gateway, and CLI mutations, updates Markdown through its locked vault owner, and returns structured results and shared human-readable summaries. flowchart TD
A[Agent tool] --> D[Locked mutation owner]
B[Gateway method] --> D
C[Wiki CLI] --> D
D --> E[Markdown vault and indexes]
D --> F[Structured mutation result]
F --> G[Shared text summary]
Technical reviewBest possible solution: Land the focused disclosure repair through the existing mutation and presentation owners while preserving replacement and clearing semantics. Do we have a high-confidence way to reproduce the issue? Current-main source establishes that one supplied claim replaces 17 stored claims without count disclosure; the supplied named-base Gateway trace demonstrates that failure, and no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete disclosure fix: describe the existing contract before invocation, derive replacement facts inside the locked owner, and expose them through existing results and summaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3fa0f3a75c69. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +46, Tests +77, Docs +15, Other +2. Total +140 across 7 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 HistoryReview history (1 earlier review cycle)
Reviewed November 9, 2026, 5:57 PM ET / 22:57 UTC (Revision 2). |
5ea8f5f to
99d22dc
Compare
|
@clawsweeper re-review Current head: Fresh candidate validation: 80 tool/mutation/YAML/CLI tests, 14 provider-prefix tests, scoped production/test types, lint, formatting/MDX, and the exact 77-line test allocation all pass. Authorized canonical Codex P0–P2 review is clean, no findings. Full exact-head CI and ci-gate pass; its clean-install production/test type checks also cover the unrelated dependencies missing from the old local install. The PR body is current and distinguishes these new-head results from the previously accepted built CLI/Gateway/provider-wire proof at |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…90641) * chore: claim wiki metadata replacement repair * fix(memory-wiki): disclose metadata list replacements Co-authored-by: Eric Cai <[email protected]>
Closes #190606.
What Problem This Solves
Updating wiki metadata with a partial list silently replaces the stored list, while the tool contract and successful result do not explain the loss.
User Impact
Agents and operators can see that supplied metadata lists replace existing values and can identify reductions after an update. Existing replacement and clearing semantics are preserved.
Why This Change Was Made
The existing locked metadata mutation owner records before/after list counts from the read page and accepted replacement frontmatter. The successful result carries those facts to the shared tool/CLI summary. Existing array properties and the plugin/CLI guides explain complete replacement, omission, and explicit clearing.
Evidence
November 9 conflict refresh
Current head:
99d22dce149e369d3893c6608f885716e1bfb588, rebased ontof615e96b55becb3944b57de4e8af74a801814fab. The only manual conflict was in the CLI guide: both the complete-list replacement explanation and upstream's untouched-YAML formatting explanation are retained. Range-diff confirms the production patch is unchanged by this refresh.Fresh validation at this candidate:
git diff --checkpassed.The full local extension production type check failed because this older checkout's dependency installation lacks
@solidjs/webandsolid-jsrequired by unrelated browser plugins. The scoped wiki type checks passed using the official compiler options and declaration inputs; the full local failure is not called green, and its full production/test type coverage is now supplied by the successful current-head hosted CI. No dependency, lockfile, baseline, or unrelated product change was made to hide it.The authorized current-head canonical Codex P0–P2 review completed clean, with no findings and patch correct (confidence 0.91); its exact diff passed the TruffleHog scan. Current-head CI completed success: 24 successful jobs / 30 applicable skips, including production and test type checks and the baseline ratchets. This supplies clean-install CI coverage for the locally missing unrelated dependencies. The scoped CodeQL Critical Quality workflow succeeded with no applicable analysis shard; no full CodeQL analysis is claimed. The current-head ClawSweeper review, reviewed at 22:57:02 UTC on November 9, confirms complete fix scope, proof sufficient, readiness/proof/patch quality 5/6, and Before merge: None / Findings: None / Security: None. It verified that the production patch is unchanged by the mechanical rebase and accepted the named historical shipped-entry evidence with fresh current-head consumer, prefix and CI checks. Author-side work is complete; maintainer review remains. No new built CLI/Gateway/provider-turn proof was run in this mechanical refresh; the shipped-entry proof below is historical evidence at its named old head.
Historical implementation and validation
The implementation and shipped-entry proof below were published and executed at
5ea8f5f88871d07fbdbab8fb76c507a7c12f4b93; those prior-head review and CI results do not certify the rebased head.Historical completed checks at
5ea8f5f88871d07fbdbab8fb76c507a7c12f4b93:Historical exact-head validation at
5ea8f5f88871d07fbdbab8fb76c507a7c12f4b93:ocpr provepost-fix run passed (exit 0) through built CLI initialization, authenticated Gateway/tools/invoke, and built CLI metadata JSON/text. Independently parsed stored frontmatter confirms replacement and clearing; omitted/scalar fields, invalid-confidence refusal without changing the page, human notes, synthesis, and joined Gateway shutdown passed.Built embedded-agent protocol proof also passed: a local synthetic OpenAI-compatible SSE provider received the four complete-list/clear descriptions, returned an actual
wiki_applycall, and receivedReplaced metadata lists: claims 17 -> 1.in the next request. Tools stayed unchanged across both requests, the replacement persisted, human notes survived, and agent exit was 0. This is shipped agent/tool/provider-wire acceptance with a synthetic provider, not external model quality or real-service acceptance. Its first fixture assertion omitted the normalizer's existing empty evidence array; correcting that expected storage contract produced the pass without product edits.At historical head
5ea8f5f88871d07fbdbab8fb76c507a7c12f4b93, final canonical clean P0–P2 review passed and hosted CI completed successfully, andopenclaw/ci-gatereports: “CI and applicable security review requirements passed.” Security/dependency review, OpenGrep, docs and all selected CI checks passed. The CodeQL Critical Quality workflow completed successfully after scope selection; its analysis shards were skipped. The separate CodeQL workflow was not triggered because its upstream path filter excludes all touched files. No full CodeQL analysis is claimed. The historical-head ClawSweeper review confirms proof sufficient (terminal), complete fix scope, 5/6 readiness/proof/patch quality, and no Before merge items or findings. Maintainer review remains. Initial setup refusals/invalidated runs are retained privately and do not count as passes.Formal named-base proof executed through
ocpr proveat0e70bc443ec9a5e2921446e902a720a9e18cc52e. A private driver started the built CLI and Gateway, invokedwiki_applythrough authenticated loopback HTTP, and independently read the persisted frontmatter:The same run verified omitted lists, scalar updates, human-note preservation, synthesis, and invalid confidence refusal with unchanged stored bytes. Fixtures use isolated synthetic vaults and loopback token authentication. This exercises real built CLI initialization and HTTP tool execution, not a model/provider turn.
The first fixture incorrectly expected HTTP 400 for invalid confidence. Existing Gateway behavior is HTTP 500
tool_errorwith the expected confidence rejection in its log; the corrected run asserts that contract and unchanged page bytes. The original evidence is retained privately; no unrelated HTTP-status change is proposed.