Skip to content

fix: keep unresolved session owners from blocking authorized work - #176401

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/marine-crab
Oct 18, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/marine-crab

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes agents stalling otherwise authorized work when session-owner assignment cannot resolve a person or is mistaken for a permission denial.

User Impact

Owner-authorized agents can resolve existing canonical human profiles without visitor-management access. Unknown-owner errors explain the required identity namespace, and tool/default-workspace guidance keeps unresolved responsibility separate from task authorization and completion.

Existing customized workspaces need the equivalent instruction update; this change does not overwrite them. No identity links, roles, creator attribution, or access-control checks change.

Why This Change Was Made

The existing sessions tool gains a bounded owner_profiles action backed by users.list. Optional verified GitHub account mappings select canonical profiles without guessing by name. Pages contain at most 32 profiles and omit emails and roles; restricted non-owner actions remain restricted.

The normal commit path also exposed pnpm 12 rejecting the freshness hook's removed -s option. Using pnpm run preserves the checks and their arguments; a real CLI/Git fixture covers that recovery. No hook was bypassed.

Evidence

  • Ownership recovery regression failed on the base's unhelpful wrong-ID error; the fixed flow rejects the sender ID without mutation, resolves the canonical profile, and persists the correct owner. Unmatched identities stay unmatched.
  • Four affected suites passed: 121 tests. The final extracted adapter replay passed 9 tests, including stable tool-prefix and restricted non-owner behavior.
  • The real pnpm/Git hook regression failed on -s; all 8 hook tests then passed, and the normal commit hooks completed.
  • Core typecheck, targeted type-aware lint, formatting, documentation links/glossary, and line-cap growth checks passed.
  • Full pnpm build passed in 5m 22.6s on the implementation source.
  • The opt-in isolated OpenAI gpt-6.1-sol Gateway proof passed: the real agent recorded the rejected wrong-ID assignment and canonical lookup, then completed the independent file write (1 passed, 42.35s runner / 27.194s test). Command: OPENCLAW_LIVE_TEST=1 OPENCLAW_LIVE_OWNER_ASSIGNMENT=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.live.config.ts test/gateway-owner-assignment.live.test.ts --maxWorkers=1.
  • Fresh independent P0–P2 reviews found no actionable defects.

Known inherited local check: check:max-lines-ratchet reports existing suppressions in ui/src/pages/chat/components/chat-message.test.tsx, ui/src/pages/config/config-page-state.ts, and ui/src/pages/sessions/sessions-page-state.ts. Those files and the baseline are byte-identical to starting commit 6fcf1c433273aa44c0663c09a4c0432bc5567ece; this PR does not widen that baseline or alter those files.

Thanks @steipete for reporting and directing the repair.

Work sessions

Worked on by

roboclaw-bot and others added 3 commits October 18, 2026 19:58
Expose canonical owner profiles and preserve authorized work when assignment is unresolved. Repair the pnpm 12 freshness-hook invocation encountered while validating this change, without skipping its checks.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: e9db1b25-4ffd-4377-bf8d-38e354b9a3bb
@clawsweeper

clawsweeper Bot commented Oct 18, 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 docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: M labels Oct 18, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 18, 2026 20:13
@roboclaw-bot
roboclaw-bot merged commit cd7ebe9 into main Oct 18, 2026
217 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/marine-crab branch October 18, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant