Repository navigation
Conversation
Settle and steer runs withheld personal authoring by omitting the tool, so the parent prompt suffix changed and the cache missed. Those runs now keep the same directory entry and refuse the call. Fixes openclaw#195328 Signed-off-by: Sebastien Tardif <[email protected]>
|
🦞👀 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: blocked before merge. What this changesThis PR remembers a session’s human skill-library presentation and reuses it on non-human turns while refusing library operations. Example: Session agent:main:proof195368 spawns a subagent and resumes after sessions_yield.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR addresses a current prompt-stability bug without granting non-human library access; no actionable introduced defect was found, and current-head maintainer security approval remains required. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherGateway turn preparation supplies the library capability to agent tool assembly, which builds the model-facing directory and routes library calls to the existing authorization owner. flowchart TD
A[Gateway turn ingress] --> B[Skill library preparation]
B --> C[Remembered session presentation]
C --> D[Agent tool directory]
D --> E[Provider prompt]
D --> F[Library invocation]
F --> G[Human authority or nonhuman refusal]
Technical reviewBest possible solution: Keep the session’s library presentation stable through the existing preparation owner while preserving current-turn execution authorization. Do we have a high-confidence way to reproduce the issue? Current main shows the non-human capability omission reaching conditional tool registration, and the linked report supplies a matching live cache trace; no target code was executed during this review. Is this the best way to solve the issue? The focused repair follows the documented presentation-versus-authority contract and avoids persisting capabilities; its bounded memory retains presentation only within the Gateway process. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4e2b4efa547b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +52, Tests +34. Total +86 across 2 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 8, 2026, 3:14 PM ET / 20:14 UTC (Revision 2). |
A settle client is not the attributed user, so looking up authoring from that client still dropped the tool and changed the parent prompt. Remember the last human shape for the session and refuse the call. Signed-off-by: Sebastien Tardif <[email protected]>
|
@clawsweeper re-review The settle client is not the attributed user, so the directory entry is now the session's last human shape. Live Gateway proof is in the pull body: human |
|
🦞👀 Re-review progress:
|
What Problem This Solves
Every subagent announce or settle run rebuilt the parent session's Tooling section without
skill_library. The system prompt suffix changed, so the parent's prompt cache was dropped. The next ordinary turn put the entry back and missed again.A settle client is not the attributed user, so looking up authoring from that client still omitted the tool. The Gateway now remembers the session's last human
skill_libraryshape and reuses it. The call is refused. A synthetic client that presents itself as a human turn still gets no tool.Fixes #195328.
Evidence
Isolated Gateway from this worktree,
xai/grok-4.7,OPENCLAW_CACHE_TRACE=1, sessionagent:main:proof195368, port 19031. Headf2a8a222d00.Human turn:
skill_libraryactionlistsucceeded. The reply waslisted.Settle turn after
sessions_spawnandsessions_yield:The settle cache miss is a history timestamp rewrite. It is not
systemPromptSuffix/sections: Tooling. The parent human run and the settle run share system digest7760898c02dc689e. Nosettle-deniedskill was written.Before this shape was remembered, the same Gateway sequence logged
systemPromptSuffix (sections: Tooling)andUnknown tool id: skill_library.Real behavior proof
skill_libraryin the parent prompt and must refuse a library write./tmp, Gateway fromf2a8a222d00, modelxai/grok-4.7, loopback port 19031.node scripts/run-node.mjs gateway runon that worktree, then twonode scripts/run-node.mjs agent --session-key agent:main:proof195368turns: askill_librarylist, thensessions_spawnplussessions_yieldfollowed by askill_librarycreate.skill_libraryand gotFORBIDDEN. The system digest matched the parent human run. The cache reason was not the Tooling section.Summary
Human turns still mint the real capability and record
defaultTargetplusmultipleProfilesfor the session. Later non-human turns reuse that shape and throwFORBIDDEN. A synthetic client on a human turn, and a session that has never had a human turn, still get no tool.