Repository navigation
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesReuse configured dreaming workspace owners when a known primary workspace is supplied without an additional owner. Example: An explicit roster contains primary at /tmp/example-primary and research at /tmp/example-research, with no default owner.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open for landing: current main still has the reported defect, and the focused repair has sufficient CLI proof, green exact-head CI, and no actionable findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe memory host SDK turns agent configuration and an optional runtime workspace into deduplicated workspace-owner records consumed by dreaming, memory status, and migration inventory. flowchart TD
A[Configured agent roster] --> C[Workspace resolver]
B[Optional runtime workspace and owner] --> C
C --> D[Canonical workspace identity]
D --> E[Deduplicated workspace owners]
E --> F[Dreaming and memory consumers]
Technical reviewBest possible solution: Land the existing resolver repair that reuses canonical configured ownership while retaining explicit associations and owner requirements for unknown workspaces. Do we have a high-confidence way to reproduce the issue? Yes: current-main source deterministically reaches the throwing default-owner lookup for an explicit multi-agent roster with a known primary workspace and omitted owner, corroborated by the supplied CLI capture; no target code was executed during this review. Is this the best way to solve the issue? The patch is the smallest complete repair within the existing resolver: it consults the canonical ownership map rather than changing agent-selection policy or adding caller workarounds. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9e579cde6fce. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +6, Tests -1. Total +5 across 2 files. Added test files: 0. View PR surface stats
Review metrics
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 (13 earlier review cycles; latest 8 shown)
Reviewed October 27, 2026, 9:26 AM ET / 13:26 UTC (Revision 14). |
Reuse configured canonical workspace ownership instead of requiring a default agent for a redundant primary workspace. Preserve explicit owner associations and rejection of unowned workspaces. The built plugin CLI changed from AgentSelectionRequiredError and exit 1 to five unchanged owners and exit 0; 21 tests, changed checks, full build and independent review passed.
) Apply the existing optional-ID normalizer before deciding whether the primary workspace adds an explicit owner. Empty and whitespace-only IDs now preserve configured ownership, while unknown workspaces remain rejected. Reproduced the missed case in both the regression and built CLI; 21 tests, changed checks, full build, both CLI cases and staged P2 review pass.
45398ad to
c6e53e4
Compare
|
Rebased onto main containing the merged fixture repair #149294. New head: Both repair commits are patch-identical, and the two changed files are byte-identical to the previously reviewed head. The existing CLI proof remains applicable. The five previously failing upstream fixture files now pass locally (279 passed, 1 skipped), and the rebased dreaming suite passes 21 tests. The PR body retains the original CI failure and records this recovery. Fresh exact-head CI is running. @clawsweeper re-review |
|
The upstream fixture failures are repaired by the rebase. The remaining failures on exact head I attempted a failed-job-only rerun, but GitHub returned Could a maintainer with Actions rerun permission rerun only the failed jobs? gh run rerun 35007354698 --repo openclaw/openclaw --failedThe PR body contains the exact failed job names and attribution. The repair and its accepted real CLI proof are unchanged. |
…primary-workspace # Conflicts: # src/memory-host-sdk/dreaming.test.ts
|
CI note for triage on This PR changes only |
…160032) Share canonical types and parameter/result owners, remove unused forwarding layers and callback projections, and preserve channel wire formats and policy contracts. Remove 629 net production lines across the fourth-pass sweep. Fix Telegram membership audits leaking owned transports and Mini App bootstrap issuance retaining stale configuration across awaited work. Add disposal and real-issuer currentness regressions with original-owner negative controls. Validation: 6,749 channel tests, build, changed checks, SDK API/export checks, import boundaries, and 20 byte-identical Telegram HTTP requests on Blacksmith Testbox. Exact-head CI has only the unrelated Bun plugin-retention failures also present in run 36379467856 on unrelated PR #149275; landed under the explicit maintainer exception, with a separate plugin-fixture repair to follow. See PR evidence for complete coverage, commands and limitations.
…primary-workspace
…penclaw#160032) Share canonical types and parameter/result owners, remove unused forwarding layers and callback projections, and preserve channel wire formats and policy contracts. Remove 629 net production lines across the fourth-pass sweep. Fix Telegram membership audits leaking owned transports and Mini App bootstrap issuance retaining stale configuration across awaited work. Add disposal and real-issuer currentness regressions with original-owner negative controls. Validation: 6,749 channel tests, build, changed checks, SDK API/export checks, import boundaries, and 20 byte-identical Telegram HTTP requests on Blacksmith Testbox. Exact-head CI has only the unrelated Bun plugin-retention failures also present in run 36379467856 on unrelated PR openclaw#149275; landed under the explicit maintainer exception, with a separate plugin-fixture repair to follow. See PR evidence for complete coverage, commands and limitations.
…primary-workspace
…primary-workspace Resolves the test conflict with openclaw#169516, which added its explicitly-empty-roster test at the same spot as this branch's known-primary-workspace test; both tests are kept. dreaming.ts merged cleanly and the fix is unchanged.
|
Refreshed onto current
|
|
@clawsweeper re-review |
|
Status update for the stale label: still current. This merges cleanly with |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
…nclaw#149215) Resolve the verified dreaming test conflict by keeping the upstream compact fixtures and the known-primary-owner regression. The existing production repair and contributor ancestry are retained. Focused suite: 13 passed; core and core-test typechecks, formatting, typed lint, and independent P0-P2 review passed.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Reuse the existing workspace fixture for the regression while retaining empty rosters, default fallback, both physical and aliased primary paths, blank owners, explicit additional associations, and unknown-workspace rejection. Tests are one line smaller than main; no baseline or production behavior changes. Ten tests, the test-line ratchet, test types, format, typed lint, and independent P0-P2 review pass.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
ClawSweeper status: applying reviewed decision. I am applying the reviewed decision for this pull request: fix(memory): avoid owner errors for configured dreaming workspaces This is item 1/1 in the current shard. Shard 1/1. This transient lease prevents a newer review from overlapping label, comment, or close mutations. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Closes #149215
What Problem This Solves
Fixes: dreaming workspace enumeration throws
AgentSelectionRequiredErrorfor an already-configured primary workspace when an explicit multi-agent roster has no default owner.User Impact
Callers can include a workspace whose owners are already recorded without inventing a default agent or repeating an owner. Explicit owner associations still work; an unknown workspace still requires an owner.
This fixes workspace enumeration, not the separate long-running model-call or fleet-starvation symptoms in #147157.
Why This Change Was Made
Summary
Reuse the canonical workspace entry before resolving an unnecessary default owner.
Root Cause
resolveMemoryDreamingWorkspacesbuilds the roster's workspace-owner map, but the old final primary-workspace branch resolves a default agent before checking whether the workspace is already known. That lookup throws in an explicit roster without a default owner.Changes
Evidence
Current integration: October 27, 2026
Head:
113c86276d7a7972081c4d8532b7ee40b3e9bb39.Merged current main
3bf38f77227c8b7e82e9df23be8db95ccdf14b4bwithout rewriting contributor ancestry. The verified conflict was confined todreaming.test.ts; the resolution keeps upstream's consolidated coverage and the existing known-primary-owner regression. The production repair is unchanged.The first refresh exposed the global test-line ratchet: main was already above its ceiling, and a separate regression fixture added 34 lines. The follow-up reuses one workspace fixture for all existing assertions plus the regression, making this PR's tests one line smaller than main. No assertions, baselines, or production behavior were weakened.
Real Behavior Proof
The retained before/after capture used the supported built CLI and a synthetic plugin importing the public
openclaw/plugin-sdk/memory-core-host-statusAPI. Each run used isolated real configuration, five existing workspace directories, explicit ownership, and no default/system agent. The resolver was not mocked.Command:
pnpm openclaw workspace-proof --agent primary.ca7c90068054dae7378d9d3bef42f11823bc1212AgentSelectionRequiredError; exit 121f5d8196b5eb3c47562c79848a78f7197f756cdAgentSelectionRequiredError; exit 145398ad44ce03a2bca697b6f5f479d0e75895898These are historical real-CLI captures of the retained repair, not new CLI runs on the integration head. Earlier main and repaired builds passed. No live dreaming/model run is claimed.
Test
On the integration tree, Node 24.22.1 and repository-pinned development tools:
pnpm test src/memory-host-sdk/dreaming.test.ts --maxWorkers=1: 10 passed; 7.13 seconds including transform/startup. The corresponding exact-head CI test lanes also pass.pnpm tsgo:coreandpnpm tsgo:core:test: passed.git diff --check: passed.The original owner regression was observed red before the fix. It covers omitted/null/blank owners, canonical paths and symlink aliases, explicit additional associations, and unknown-workspace rejection.
CI
CI for
113c86276d7a7972081c4d8532b7ee40b3e9bb39is green: run40508107864passed the baseline ratchets, production/test types, lint, selected tests, andopenclaw/ci-gate. The exact-head watcher returnedGREEN; superseded checks are not counted as current failures. An informational Auto response job was cancelled.Run
40501572938on5b0bf520a82586fbf9ab8884bfbaca1ab9764bd6previously failed only the test-line ratchet. The follow-up above fixes that failure without raising the ceiling.ClawSweeper's completed review of
113c86276d7a7972081c4d8532b7ee40b3e9bb39found no actionable findings, accepted the retained real CLI evidence as sufficient, and rated readiness and patch quality Diamond. The current revision is ready for maintainer review with no contributor-facing before-merge items.Risk
No owner is inferred for an already-known workspace. Explicit associations are retained, and unknown workspaces still fail closed. No schema, storage format, protocol, configuration option, or inference behavior changes.
Changelog
Release-note context: dreaming no longer rejects a runtime primary workspace whose configured owners are already known. No release-owned changelog file is changed.
Notes
AI-assisted: yes. Workspace-resolution tests and the retained real-CLI proof are described above; exact-head CI is green.