Skip to content

docs(gateway): say which role policy binds automatic utility work - #207247

Merged
obviyus merged 1 commit into
mainfrom
w17/docs-utility-role-policy
Nov 28, 2026
Merged

obviyus merged 1 commit into
mainfrom
w17/docs-utility-role-policy

Conversation

@obviyus

@obviyus obviyus commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

What problem this solves

docs/gateway/operator-scopes.md says that "bounded automatic metadata" keeps Gateway service authority, but does not say what that covers. #207070 bound progress narration to the turn's operator role and session observer digests to the session owner's role, so the sentence now reads as if those still bypass the role modelPolicy. Operators who restrict utility models cannot tell from the docs which automatic model calls their roles control.

Change

Docs only. Replace the undefined term with the consumers and the authority each uses:

  • Progress narration: the turn's role. Execution skips refused utility models; a role that refuses every utility model gets no narration.
  • Session observer digests: the session owner's role, resolved once when a run's observation starts. A refusing owner role turns observation off for that run. Deleted owner profiles and sessions without an owner are observed on service authority.
  • Automatically generated session and thread titles, inbound media preprocessing and host-owned execution approval keep service authority (unchanged; chat-send dashboard titles and channel thread titles pass no operator authority).

Security note

Before #207070, progress narration and session observer digests ran the utility model even when the role's modelPolicy refused it (since #156346, 2026-09-23). The refused model ran on the Gateway's credentials and its short text was shown; main turns, tools and data access were not affected. #207070 fixed it on main; the narration part is being backported to the active extended-stable line and the fix pair to the next stable.

Evidence

  • Text checked against src/auto-reply/reply/progress-narrator.ts, src/gateway/session-observer-completion.ts and src/gateway/server-methods/chat-send-background.ts on main.
  • oxfmt --check, check-docs-mdx, docs:check-links (0 broken), git diff --check: clean.
  • Local review: patch is correct, 0 findings.

operator-scopes.md said that "bounded automatic metadata" keeps Gateway
service authority, without saying what that covers. Since #207070, progress
narration follows the turn's role and session observer digests follow the
session owner's role. Name each consumer and the authority it uses;
automatically generated session and thread titles keep service authority.
@clawsweeper

clawsweeper Bot commented Nov 28, 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 size: XS labels Nov 28, 2026
@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 28, 2026
@obviyus
obviyus merged commit f91c7d0 into main Nov 28, 2026
74 checks passed
@obviyus
obviyus deleted the w17/docs-utility-role-policy branch November 28, 2026 05:03
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…enclaw#207247)

## What problem this solves

`docs/gateway/operator-scopes.md` says that "bounded automatic metadata" keeps Gateway service authority, but does not say what that covers. openclaw#207070 bound progress narration to the turn's operator role and session observer digests to the session owner's role, so the sentence now reads as if those still bypass the role `modelPolicy`. Operators who restrict utility models cannot tell from the docs which automatic model calls their roles control.

## Change

Docs only. Replace the undefined term with the consumers and the authority each uses:

- Progress narration: the turn's role. Execution skips refused utility models; a role that refuses every utility model gets no narration.
- Session observer digests: the session owner's role, resolved once when a run's observation starts. A refusing owner role turns observation off for that run. Deleted owner profiles and sessions without an owner are observed on service authority.
- Automatically generated session and thread titles, inbound media preprocessing and host-owned execution approval keep service authority (unchanged; chat-send dashboard titles and channel thread titles pass no operator authority).

## Security note

Before openclaw#207070, progress narration and session observer digests ran the utility model even when the role's `modelPolicy` refused it (since openclaw#156346, 2026-09-23). The refused model ran on the Gateway's credentials and its short text was shown; main turns, tools and data access were not affected. openclaw#207070 fixed it on main. Backports are prepared for the active extended-stable line (narration) and the next stable (the openclaw#206962 + openclaw#207070 pair).

## Evidence

- Text checked against `src/auto-reply/reply/progress-narrator.ts`, `src/gateway/session-observer-completion.ts` and `src/gateway/server-methods/chat-send-background.ts` on main.
- `oxfmt --check`, `check-docs-mdx`, `docs:check-links` (0 broken), `git diff --check`: clean.
- Local review: patch is correct, 0 findings.

Co-authored-by: Ayaan Zaidi <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
Release adaptation: Keep current recap lease and profile checks, return deliberate role refusals without retry, and snapshot only the admitted model restriction for each observer run. Adapt role regression fixtures to the stable admission API.

Companion audit: #206962 already committed as the ordered companion. #207774 plugin generation handling is already in stable. #207262 cancellation, #205607 title fallback, and #208460 provider routing are separate existing behaviors; #207247 is follow-up documentation.

(cherry picked from commit 6d8d1f5)

Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant