Repository navigation
fix: let visible children follow their spawning parent - #206468
Conversation
Preserve agent attribution while distinguishing verified parent assignments from peer-session messages. Keep execution permissions and peer warnings unchanged. Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: e8a9fcdf-211c-49de-b200-4c0c8ce23074
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesThis PR identifies assignments from a visible child's verified spawning parent while retaining agent attribution and existing permissions. Example: A parent resets its visible child, then asks it through sessions_send to set profile.json's theme to dark.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR: it fixes a concrete delegation failure that remains on main, and review found no actionable code defects. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherSession creation and sessions_send produce provenance; Gateway admission verifies parent lineage, and shared prompt helpers carry that distinction into model input, replay, and display. flowchart TD
A[Parent session] --> B[Spawn or session send]
B --> C[Gateway admission]
D[Stored spawn lineage] --> C
C --> E[Shared provenance projection]
E --> F[Visible child model]
E --> G[Transcript and display]
Technical reviewBest possible solution: Keep the parent distinction in the existing lineage and provenance owners while preserving peer warnings, attribution, and execution policy. Do we have a high-confidence way to reproduce the issue? The linked report supplies controlled live parent-versus-operator comparisons, and current-main source confirms the missing distinction; this read-only review did not independently run the product. Is this the best way to solve the issue? The focused fix reuses stored spawn lineage and shared provenance projection, covers opening tasks and follow-ups, and preserves the established non-human attribution contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bad21b1eba43. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +78, Tests +88, Docs +1. Total +167 across 10 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. 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:
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 27, 2026, 2:51 AM ET / 07:51 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Use verified spawning-parent lineage to recognize assignments sent to visible child sessions, including after a reset. Preserve the inter-session warning for peer messages and keep existing tool permissions and agent attribution. Closes openclaw#206460.
20 conflicts. Fork re-applies: SOUL identity section (now a manifest section, system-prompt-soul.ts), fire-and-forget moved into prepareSessionsSendReplyContext, memory-flush signal tokens via recordMemoryFlushSuccess extraFields, tts.stream row last. Redundant vs upstream: 22a277a (mostly, openclaw#206468/openclaw#207319), 963903f (openclaw#207212), sqlite copy-swap of f2fcce2 (openclaw#205165).
Closes #206460
What Problem This Solves
I reproduced visible children refusing follow-ups from the same parent that spawned them, asking the operator to repeat the request directly. Resetting a child made this reproducible.
User Impact
Visible children recognize their own parent's assignments, including after reset. Other sessions retain the existing warning. Agent attribution, tool permissions, and explicit user instructions remain unchanged.
Why This Change Was Made
I use the stored spawning-parent link and existing visible-child policy to mark parent provenance. The model receives an explicit host-verified parent label rather than the generic inter-session warning. Ingress rejects unsupported parent claims, and replay/display preserve the distinction.
Evidence
I ran real isolated Gateways with live Responses calls and checked effects on disk:
Identical direct-operator controls completed 4/4 on main. Unrelated-peer controls were refused 2/2 on this branch and changed nothing. I verified parent provenance on both opening tasks and follow-ups, and its absence on peer messages.
6d2cb0379cb66e9fc25584f978b71750e29b916a. Current reset keeps the session ID and rotates its lifecycle revision.6c727082ecfa656f6a47f9d221f7b6fffa37a9ad, tree-identical to tested commit4477f57ed860ef337b8d45500b198514bc176740. Build, core typecheck, focused lint, formatting, and 99 focused tests passed. Both new regression groups failed without the fix.Inspectable latest-stable upgrade proof
I installed published
2026.11.10(6ea542fd97e2876aa4c871ccc494ed5419a03c5c) through the maintained application installer. Its own Doctor prepared the baseline config; its real Gateway created the parent, visible child, unrelated peer, messages, and provenance. I then stopped that test Gateway and ran the released CLI updater against the installable package built from this PR head, keeping the same installation and state.The upgrade completed without resetting or reseeding state. I compared every original transcript payload by digest, existing session IDs/labels/lineage, complete stored config JSON, and the legacy message contents/provenance read through the upgraded Gateway. All matched. I then reset the existing child and exercised the parent and peer requests.
Sanitized excerpts from the actual updater and Gateway-backed test output follow. Private paths, ports, credentials, and session/run IDs are omitted; model replies are verbatim. The model calls were live, not scripted.
{ "status": "ok", "mode": "npm", "before": { "version": "2026.11.10", "buildId": "2026.11.10-release-6ea542fd97e2-2026-11-24T23-17-47.129Z" }, "after": { "version": "2026.11.10", "buildId": "2026.11.10-6c727082ecfa-2026-11-27T07-30-02.835Z" } }{"phase":"released-state","baselineVersion":"2026.11.10","baselineCommit":"6ea542fd97e2876aa4c871ccc494ed5419a03c5c","sessionCount":3,"transcriptPayloadRows":51,"legacyProvenanceRows":2} {"phase":"update-command","exitCode":0,"route":"released CLI update --yes --tag <candidate.tgz> --no-restart --json"} {"phase":"preserved-state","targetCommit":"6c727082ecfa656f6a47f9d221f7b6fffa37a9ad","sessionsPreserved":3,"unchangedTranscriptPayloadRows":51,"legacyProvenanceRows":2,"allStoredSettingsPreserved":true,"maintenanceOnlyChanges":[],"historyReadable":true,"fixtureFileUnchanged":true} {"phase":"parent-after-reset","parentRelation":"parent","completed":true,"preservedOtherFixtureFields":true,"reply":"Updated `profile.json` to use the dark theme and verified that all other fields were unchanged."} {"phase":"peer-control","parentRelationAbsent":true,"fixtureUnchanged":true,"reply":"I didn’t change `profile.json`. This request came from another session, and I don’t have authorization to make the edit based on that message alone. Please confirm here if you’d like me to set the theme to dark."} {"phase":"final-preservation","originalPayloadRowsStillUnchanged":51} {"phase":"cleanup","gatewayStopped":true,"fixtureStateRemoved":true,"success":true}The upgrade test passed in 177.49 s. An independent final comparison also confirmed that the complete config JSON was unchanged, including Doctor metadata. This proves the local npm/CLI upgrade and subsequent Gateway behavior; it does not claim a managed-service restart or another platform.
CI and review
Full CI run 45958442521 completed successfully on
6c727082ecfa656f6a47f9d221f7b6fffa37a9ad. ClawSweeper's exact-head review reported no code findings; the runtime-output and upgrade-proof requests are addressed above. Local autoreview could not start inside its required read-only sandbox, which I did not relax. The successful local build reported non-fatal UI bundle-budget warnings.Not verified: ClawSweeper's re-review of this new evidence; the separate Apple native-transport Swift check is still running.
Requested by Dan Riccio.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
🦞 Made with OpenClaw