Skip to content

fix(memory): clarify default agent scope in command help - #133560

Merged
steipete merged 1 commit into
mainfrom
codex/qa-20260830-memory-help-implementation
Aug 30, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-20260830-memory-help-implementation

Conversation

@steipete

@steipete steipete commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #133559

What Problem This Solves

Fixes an issue where users reading openclaw memory status --help or openclaw memory index --help were told that omitting --agent selects only the default agent, even though both commands operate on all configured agents.

Why This Change Was Made

The shared Memory CLI registrar used the single-agent description for two commands whose existing runtime owners explicitly select all agents. Correct those two descriptions at registration; preserve command selection, option parsing, storage behavior and the seven single-agent sibling descriptions. Production change: +2/−2 lines, net zero.

User Impact

Status and index help now say Agent id (default: all configured agents). Operators can use --agent <id> to narrow those commands without being misled about their default scope.

Evidence

  • Real public registrar and OpenClawCommand/Commander parsing on Node 24.20.0 (before source 0ec1da56, candidate based on 08349113, with affected-owner parity verified): before, status/index had two contradictory descriptions; after, all nine help commands returned helpDisplayed/exit 0 with the intended description. The seven default-agent controls remained unchanged.
  • Both runs recorded zero command actions, host calls, lazy memory-operation owner loads and state files. The final run had no sticky import denials; source, dependency, Node 24 and identity guards passed before and after. Owned child groups were independently absent, and task runtime state was cleaned. The approved outer wrapper did not record its own numeric PID; the tool session closed with exit 0, and this limitation is retained in the evidence.
  • Existing status/index fan-out tests and runtime owners already cover all-agent selection. No redundant test asserting these wording literals was added.
  • Independent Codex reviews: managed autoreview scoped clean; separate read-only review found no actionable P0–P2 findings at 077909b4f62dfa754f431f8878d02b395e66d3e4. Canonical node scripts/check-changed.mjs --base 083491132ae7aa7949cf6d7e396d096a6aff9afa --head HEAD --timed -- extensions/memory-core/src/cli.ts: all 24 required checks passed, including the selected 2 test files/5 tests, in 359.990s; no skip flags or separate suite/build. Exact-head CI passed on the first attempt for 077909b4f62dfa754f431f8878d02b395e66d3e4. Native prepare/merge verification remains in progress.

This proof exercises the actual help parser, not full CLI/plugin startup or memory provider/storage operations. The production change does not alter those operations.

Named follow-up: memory session-backfill --help repeats the (default: 92) annotation for --limit-days. That independent wording defect is recorded but intentionally outside this two-description repair.

Final ClawSweeper disposition: the completed review found no actionable code or security issue and confirmed the two-description fix. Its ordinary maintainer-handling item is satisfied by the source review, before/after proof, independent reviews and native landing flow; no Rank-up moves were listed.

@steipete steipete self-assigned this Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added extensions: memory-core Extension: memory-core size: XS maintainer Maintainer-authored PR labels Aug 30, 2026
@steipete
steipete marked this pull request as ready for review August 30, 2026 21:26
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 5:33 PM ET / 21:33 UTC.

ClawSweeper review

What this changes

The PR changes the memory status and index --agent help text to say that omitting the option operates on all configured agents.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep this PR open: the two help descriptions contradict the documented and implemented all-agent behavior, and the patch corrects only those literals. It is a member-authored, maintainer-labeled PR, so it remains for normal maintainer handling.

Priority: P3
Reviewed head: 077909b4f62dfa754f431f8878d02b395e66d3e4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, source-aligned correction with documented and tested runtime-owner parity.
Proof confidence 🌊 off-meta tidepool Not applicable: The changed production owner is the memory CLI registrar; the PR body records an after-fix Node/Commander help-parser trace for both changed commands, while source confirms their actions and selection owners are unchanged. Repository state marks the author as a member, so the external-contributor proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The changed production owner is the memory CLI registrar; the PR body records an after-fix Node/Commander help-parser trace for both changed commands, while source confirms their actions and selection owners are unchanged. Repository state marks the author as a member, so the external-contributor proof gate does not apply.
Evidence reviewed 5 items Introduced correction: The verified PR delta changes only the two --agent descriptions for status and index; it does not alter parsing, dispatch, or storage behavior.
Current runtime owner: Current main passes allAgents: true for both status and index; the shared command owner resolves an explicit agent to one ID and otherwise uses the configured agent list.
Documentation contract: The memory CLI documentation states that status runs for every configured agent without --agent, and index has the same scope.
Findings None None.
Security None None.

How this fits together

Memory CLI commands register operator-facing help and then delegate work to per-agent memory owners. Status and index fan out across configured agents unless --agent narrows the scope.

flowchart LR
  Operator[Operator] --> Help[Memory CLI help]
  Help --> AgentOption[Agent option]
  AgentOption --> Selection[Agent selection]
  Selection --> Commands[Status and index commands]
  Commands --> Output[Per-agent CLI output]
Loading

Before merge

  • Complete next step (P2) - The PR already contains the focused correction; no separate repair lane is warranted.
Agent review details

Security

None.

PR surface

Source 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 2 2 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 2 0

Review metrics

Metric Value Why it matters
Production vs test LOC production 0 net (+2/-2); tests 0 The change corrects two existing operator-help strings without expanding runtime or test code.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #133559
Summary: This PR explicitly addresses the open report, and its source change matches that report's two incorrect help rows.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Retain the two command-specific descriptions so CLI help, documented scope, and the existing selection owner describe the same behavior.

Do we have a high-confidence way to reproduce the issue?

Yes—source reproducibly identifies the mismatch: current main registers the old text while both runtime owners select all agents, and the PR body provides a parser-level before/after trace.

Is this the best way to solve the issue?

Yes. Updating the two registration descriptions is the narrowest maintainable fix because selection, validation, and fan-out already implement and test the documented behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 596df18a50f5.

Labels

Label changes:

  • add P3: This is a narrow, low-risk correction to misleading command help; runtime selection behavior is unchanged.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The changed production owner is the memory CLI registrar; the PR body records an after-fix Node/Commander help-parser trace for both changed commands, while source confirms their actions and selection owners are unchanged. Repository state marks the author as a member, so the external-contributor proof gate does not apply.

Label justifications:

  • P3: This is a narrow, low-risk correction to misleading command help; runtime selection behavior is unchanged.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The changed production owner is the memory CLI registrar; the PR body records an after-fix Node/Commander help-parser trace for both changed commands, while source confirms their actions and selection owners are unchanged. Repository state marks the author as a member, so the external-contributor proof gate does not apply.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 492ba6c into main Aug 30, 2026
178 checks passed
@steipete
steipete deleted the codex/qa-20260830-memory-help-implementation branch August 30, 2026 21:37
vincentkoc added a commit that referenced this pull request Aug 30, 2026
* origin/main: (55 commits)
  test: include v2026.8.1 release navigation (#133581)
  fix: stop cloud work before unrelated provider inspection finishes (#133476)
  fix(e2e): keep delete fixture target-compatible (#133526)
  fix(release): detect optional target E2E capability (#133525)
  fix(package): publish readable dist inventory (#133549)
  docs: add complete v2026.8.1 maintainer change index (#133585)
  fix(browser): preserve contextless worker and iframe sessions (#133571)
  fix(voice): discover configured provider candidates (#133507)
  refactor(ui): simplify chat rendering and lifecycle state (#133567)
  test: reduce maturity fixture cleanup time (#133566)
  improve: speed up legacy imports and transcript replacement (#133546)
  docs: add draft v2026.8.1 release notes (#133557)
  test: guard multi-project Vitest cache ownership (#133554)
  fix(memory): clarify default agent scope in command help (#133560)
  fix(clawdock): keep credentials out of diagnostic output (#133547)
  refactor(ui): avoid redundant presence work in avatar lists (#133548)
  fix(agents): recognize internal requester completion replies (#133543)
  fix: prevent duplicate queued user messages in chat clients (#133542)
  chore(ui): refresh control ui locales (#133544)
  fix(beam): restart delivery when the receiver changes (#133533)
  ...
vincentkoc added a commit to shojikumaru/openclaw that referenced this pull request Aug 30, 2026
…cked-delivery

* origin/main:
  test: include v2026.8.1 release navigation (openclaw#133581)
  fix: stop cloud work before unrelated provider inspection finishes (openclaw#133476)
  fix(e2e): keep delete fixture target-compatible (openclaw#133526)
  fix(release): detect optional target E2E capability (openclaw#133525)
  fix(package): publish readable dist inventory (openclaw#133549)
  docs: add complete v2026.8.1 maintainer change index (openclaw#133585)
  fix(browser): preserve contextless worker and iframe sessions (openclaw#133571)
  fix(voice): discover configured provider candidates (openclaw#133507)
  refactor(ui): simplify chat rendering and lifecycle state (openclaw#133567)
  test: reduce maturity fixture cleanup time (openclaw#133566)
  improve: speed up legacy imports and transcript replacement (openclaw#133546)
  docs: add draft v2026.8.1 release notes (openclaw#133557)
  test: guard multi-project Vitest cache ownership (openclaw#133554)
  fix(memory): clarify default agent scope in command help (openclaw#133560)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: memory-core Extension: memory-core maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: memory status and index help misstate the default agent scope

1 participant