Repository navigation
revert: system-started turn principal authority (#187105) - #187126
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
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. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 29, 2026
Reverts openclaw#187105 (60e218e). It merged over six failed CI jobs, including a privilege-boundary regression: a guest-started background exec completion continued with the session principal's authority and lost the guest's AutoReview policy. The four failing test files pass locally on this revert head (99 tests).
steipete
added a commit
that referenced
this pull request
Oct 29, 2026
#187346) System-started turns now continue with the current authority of whoever started the work they continue. Before, they had no person authority: person-scoped tools like sessions_spawn refused with "User is not a participant of this turn" (8 Team-server refusals since 10-02; 4 in real-model stress on main), and the agent silently stopped work as soon as it continued from an event. - A guest's background exec, subagent or goal continues as that guest, keeping the guest's current policy (AutoReview etc.), revalidated at the point of effect. - Only system work with no originating caller (restart resume, unattributed events) falls back to the session principal's current authority. An explicit non-human assignment never falls back to a former human creator; no-principal turns get no person authority and an honest refusal. - Node exec completions keep the captured logical target and agent; the prefixed queue key is used only for storage and cleanup. - Cron keeps its own authority model. This redoes #187105, which was reverted in #187126 after it continued a guest-started background completion with owner authority (lost the guest's AutoReview). Proof at exact head b16e958: - The exec-completion sessions_spawn regression is red on base; guest-continuation, revocation and delayed-node custody tests pass; the node-owner regression is red on dc07bd4 and green here. - Locally, 21 files (430 tests) and ten static checks pass, including zero-cycle guards. - Exact-head CI: 93 jobs passed. The single failed job, checks-node-changed-compact-large-23, is sessions-create-thinking-claim.test.ts "...at the same timestamp (delivered-event)". It passed on both previous heads (dc07bd4, 425cbfb), the only change since is the unrelated 4-line node-owner fix, and it passed 6/6 locally on this head, so it is a timing intermittent.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 30, 2026
openclaw#187346) System-started turns now continue with the current authority of whoever started the work they continue. Before, they had no person authority: person-scoped tools like sessions_spawn refused with "User is not a participant of this turn" (8 Team-server refusals since 10-02; 4 in real-model stress on main), and the agent silently stopped work as soon as it continued from an event. - A guest's background exec, subagent or goal continues as that guest, keeping the guest's current policy (AutoReview etc.), revalidated at the point of effect. - Only system work with no originating caller (restart resume, unattributed events) falls back to the session principal's current authority. An explicit non-human assignment never falls back to a former human creator; no-principal turns get no person authority and an honest refusal. - Node exec completions keep the captured logical target and agent; the prefixed queue key is used only for storage and cleanup. - Cron keeps its own authority model. This redoes openclaw#187105, which was reverted in openclaw#187126 after it continued a guest-started background completion with owner authority (lost the guest's AutoReview). Proof at exact head b16e958: - The exec-completion sessions_spawn regression is red on base; guest-continuation, revocation and delayed-node custody tests pass; the node-owner regression is red on dc07bd4 and green here. - Locally, 21 files (430 tests) and ten static checks pass, including zero-cycle guards. - Exact-head CI: 93 jobs passed. The single failed job, checks-node-changed-compact-large-23, is sessions-create-thinking-claim.test.ts "...at the same timestamp (delivered-event)". It passed on both previous heads (dc07bd4, 425cbfb), the only change since is the unrelated 4-line node-owner fix, and it passed 6/6 locally on this head, so it is a timing intermittent.
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
#187105 merged while exact-head CI had six failed jobs. My merge step did not gate on the failed-check list. At least one failure is a privilege-boundary regression: a guest-started background exec completion now continues with the session principal's authority instead of the original guest caller, and loses the guest's AutoReview policy (
src/agents/bash-tools.exec-background-followup.test.ts: "background completion keeps AutoReview",expected undefined to be 'original-guest'). Other failures includesrc/auto-reply/reply/reply-run-registry.preparation.test.ts(refusal text) andsrc/gateway/server.chat-goal.test.ts(goal continuation admission).Changes
A pure
git revertof d821a7f. Main returns to the pre-#187105 behavior: system-started turns have no person authority, and person-scoped tools refuse with "User is not a participant of this turn". The fix will be redone so that system turns started by a guest's own work keep that guest's authority and policy.Evidence
On this revert head, locally:
reply-run-registry.preparation.test.ts,server.chat-goal.test.ts,bash-tools.exec-background-followup.test.tsandsession-event-config-readmission.test.tsall pass (99 tests, 2 shards).