Skip to content

[codex] Repair Browser Session Credential Steward MVP - #128289

Closed
SnowBelt wants to merge 6 commits into
openclaw:mainfrom
mindfire-lab:codex/browser-session-credential-steward-mvp-repair
Closed

SnowBelt wants to merge 6 commits into
openclaw:mainfrom
mindfire-lab:codex/browser-session-credential-steward-mvp-repair

Conversation

@SnowBelt

@SnowBelt SnowBelt commented Aug 23, 2026 •

Copy link
Copy Markdown

What Problem This Solves

The Browser / Session / Credential Steward MVP needed one reliable authority path across Browser node routing, session targeting, approval provenance, and credential redaction. This PR prevents malformed or cross-agent session requests, keeps approved Browser node routes bound to the authorized node lifecycle, propagates Gateway run-authority revocation into in-flight paired-node execution, prevents host fallback after a failed or revoked node route, and keeps credential-like material out of policy decisions, tracked metadata, diagnostics, and browser output.

Evidence

Behavior addressed: Browser-owned approval authority, Gateway-to-node run-authority revocation, node/pairing lifecycle revocation, session-boundary validation, credential redaction, response-body safety, snapshot safety, and guarded Browser delegation.

Real environment tested: Mac Studio disposable OpenClaw verification clone with the repository Node/pnpm toolchain and temporary local Browser/Gateway/node test harnesses. No credentials, production services, real external messages, or user data were used.

Exact steps or commands run after the latest rebase and fix:

  • Focused Vitest proof for steward policy, delegated authority, Gateway, Browser, node-host, credential-redaction, meeting-runtime, and eval-harness tests.
  • pnpm tsgo:prod
  • pnpm tsgo:extensions:test
  • pnpm lint:core and touched-file oxlint checks
  • pnpm docs:list, pnpm docs:check-mdx, pnpm docs:check-links, and the repository glossary check
  • pnpm build
  • contracts-only agent-role eval
  • TruffleHog scan of the branch diff
  • fresh sanitized autoreview against current upstream main

Evidence after fix:

  • After the verified rebase onto current upstream main, the focused steward regression suites passed, including Session Steward policy/boundary/gateway coverage, delegated authority and node-host coverage, Browser runtime/approval/redaction coverage, session-tab metadata coverage, meeting-runtime compatibility coverage, and the eval harness. The Browser suite was run as isolated serial files because the repository's cross-file mock state requires isolation.
  • TypeScript, core lint, touched-file extension/script lint, documentation MDX/internal-link/config-example/format/markdownlint checks, build, contract catalog, secret scan, and fresh sanitized branch autoreview passed. The final rebased focused steward proof covered 357 core/Gateway tests and 689 Browser/plugin/node-host tests. The repository glossary check remains a pre-existing baseline failure with many unrelated missing zh-CN entries on current main; no glossary baseline files were changed.
  • The CDP regression proves Browser Steward approval revocation during target lookup prevents the final close command.
  • The node-host regression proves the live approval predicate is passed into the owned-tab close path.
  • The delegated-authority regression proves an exact Gateway run closure aborts an in-flight Browser node request before Browser I/O and prevents host fallback; multiple authority observers remain notified.
  • The compatibility regression proves the public legacy meeting helpers route through the Browser Gateway without raw node invocation; bundled Google Meet, Teams Meetings, and Zoom Meetings use the explicit Browser-owned route.
  • Fresh self-contained live role evals passed for session-steward, credential-steward, browser-session-credential-steward, and browser-session-credential-steward-safety-boundary, with static contract validation passing, using the installed local Ollama qwen3.5:4b model.

Observed result after fix: approved routes stay on the authorized Browser node; revocation or pairing replacement cancels the paired-node request before Browser/CDP I/O; failed node routes do not fall back to the host; malformed and cross-agent session requests reject safely; credential-like URL, header, response, snapshot, policy, metadata, and diagnostic material is redacted.

What was not tested: remote changed-gate proof, production deployment, real external messages, purchases, and live credential operations.

Summary

This PR includes:

  • standalone Session Steward and Credential Steward identities and policies
  • canonical redacted session-boundary enforcement in Gateway surfaces
  • Browser-owned node authority, operation-bound approval, exact node/pairing checks, and live Gateway revocation cancellation
  • credential/session redaction across Browser output, metadata, diagnostics, and snapshots
  • private typed Browser delegation for bundled integrations
  • compatibility-safe public meeting SDK routing with Browser-owned bundled paths
  • regression coverage for stale routes, revocation, close authority, redaction, and fallback prevention
  • operator documentation for session boundaries

The PR-added scheduled/manual agent-role-evals workflow was removed as out of scope for this MVP repair. Eval contracts, eval scripts, and their non-workflow tests remain.

Real behavior proof

Behavior addressed: Browser-owned authority must allow an authorized route, reject the nearest expired or revoked route before Browser I/O, cancel an in-flight paired-node route when its originating Gateway run closes, and never host-fallback after a failed or revoked node route.

Real environment tested: Mac Studio disposable local OpenClaw verification clone and temporary in-process Browser/Gateway/node harnesses.

Exact steps or command run after this patch:

node scripts/run-vitest.mjs src/plugins/registry.browser-delegation.test.ts --reporter verbose

Evidence after fix:

BROWSER_STEWARD_FINAL_EFFECT_PROOF {"allowed":{"decision":"allow","browserIo":"called"},"rejected":{"decision":"reject","browserIo":"not_called","ordering":"reject_before_io"},"redaction":"opaque-identifiers-only"}
Test Files  1 passed (1)
Tests 10 passed (10)

Observed result after fix: the authorized route completed through Browser I/O; after lifecycle revocation, the next route was rejected before Browser I/O; in-flight paired-node work receives cancellation when the exact originating run authority closes; no host fallback occurred; the trace contained only redacted categorical facts.

What was not tested: remote changed-gate proof, production deployment, real external messages, purchases, and live credential operations.

Scope and safety

  • No public protocol schema, config/env surface, migration, deployment, or credential-storage behavior was added.
  • The fork feature branch was rebased onto current upstream main and updated only with force-with-lease; fork main was not modified.
  • The local full extension lint command remains affected by three unchanged upstream Daytona diagnostics; touched steward files pass targeted lint.

Meeting runtime compatibility

  • Public legacy meeting SDK helpers remain source-compatible and route through the Browser Gateway instead of invoking raw node browser commands.
  • The legacy compatibility marker is converted to host-issued internal authority and stripped before Browser dispatch; it is not a public protocol field.
  • Bundled Google Meet, Teams Meetings, and Zoom Meetings use the explicit Browser-owned route so lifecycle, approval, and node-pairing authority stays with the Browser plugin.
  • Added focused Gateway, node-helper, transport, Browser handler, typecheck, build, documentation, and autoreview proof for this migration.

MindFire fork-local completion

  • Fork-local PR #66 was squash-merged into mindfire-lab/openclaw:steward-mvp; fork main was not modified.
  • After splitting the oversized Browser request regression tests, fork CI passed check-lint, openclaw/ci-gate, Real behavior proof, the previously failing UI E2E shard, and all other completed code/security/boundary checks.
  • Two non-required fork automation checks (auto-response and label) remain failed because the fork lacks the GitHub App private-key secret those workflows require. No secret was added and neither failure was bypassed.

Remaining external gates

  • The fork feature branch was verified against current upstream main and updated only with force-with-lease; fork main was not modified. The verified push automatically started a fresh exact-head GitHub check set for the current head. Completed current-head dependency/security guard checks are passing; the remaining CI jobs are still queued or running. If any job is canceled or fails, an OpenClaw repository administrator must rerun or dispatch that exact-head job without bypassing, dismissing, or concealing the failure. The current account cannot perform repository-admin reruns or dispatches.
  • Security/architecture owner acceptance remains pending for the bounded Browser-owned delegation and approval boundary across Browser, Gateway, paired node, node host, and Browser I/O, including the manual self-contained steward-evaluation workflow.
  • A maintainer with merge permission must squash-merge only after required checks are green and owner acceptance is recorded.

Remote proof note

Remote changed-gate proof was explicitly skipped under the user's local-proof approval. It is not claimed as complete.

@clawsweeper

clawsweeper Bot commented Aug 23, 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 security Security documentation scripts Repository scripts extensions: browser size: XL labels Aug 23, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 23, 2026
@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 6:56 PM ET / 22:56 UTC.

ClawSweeper review

What this changes

Adds Browser-owned session and credential stewardship, lifecycle-aware meeting-plugin delegation, related tests, and SDK migration guidance.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 8 items remain

Keep open: delegated Browser requests can still reach Browser I/O after either plugin lifecycle closes, and the new documentation directs third-party meeting plugins to a private allowlisted route.

Priority: P1
Reviewed head: fda06b9505209cf60203afa754d400480fb188aa

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The authority fix is incomplete at the final effect boundary and its claimed proof is limited to mocks.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: Authority-chain proof required: the claimed terminal proof counts a vi.fn call in an in-memory registry and does not exercise Browser Gateway, node transport, node host, or Browser/CDP I/O. Provide redacted production-owner evidence for an allowed request and the nearest provider- or consumer-revoked request through Gateway to final Browser effect, showing revocation blocks before I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: Authority-chain proof required: the claimed terminal proof counts a vi.fn call in an in-memory registry and does not exercise Browser Gateway, node transport, node host, or Browser/CDP I/O. Provide redacted production-owner evidence for an allowed request and the nearest provider- or consumer-revoked request through Gateway to final Browser effect, showing revocation blocks before I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 8 items Introduced lifecycle authority: The branch’s new resolver combines provider and consumer liveness into a predicate, but exposes it only through the request scope while making the delegated request.
Authority is checked only before transport handoff: Browser Gateway checks the predicate before invoking the node registry and passes its existing request signal; it does not subscribe plugin lifecycle closure into that signal.
Transport and final effect omit plugin lifecycle authority: Node transport can cancel a pending invocation when its signal aborts, but the node host’s final dispatch checks only invocation cancellation and its local approval authority.
Findings 2 actionable findings [P1] Abort delegated Browser I/O when either plugin lifecycle closes
[P2] Limit Browser-owned meeting guidance to allowlisted consumers
Security Needs attention Lifecycle revocation does not reach final Browser I/O: The branch creates cross-plugin lifecycle authority but only samples it before transport dispatch; a revoked provider or consumer can leave an in-flight request able to invoke Browser/CDP work.

How this fits together

Allowlisted meeting plugins delegate Browser work through the Browser Gateway to a paired node host, which performs the final Browser/CDP action. Provider and consumer lifecycles must remain authoritative until that final effect.

flowchart LR
  MeetingPlugin[Allowlisted meeting plugin] --> Delegation[Delegation resolver]
  Lifecycle[Provider and consumer lifecycle] --> Delegation
  Delegation --> BrowserGateway[Browser Gateway]
  BrowserGateway --> NodeRegistry[Paired node transport]
  NodeRegistry --> NodeHost[Browser node host]
  NodeHost --> BrowserEffect[Browser and CDP effect]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: Authority-chain proof required: the claimed terminal proof counts a vi.fn call in an in-memory registry and does not exercise Browser Gateway, node transport, node host, or Browser/CDP I/O. Provide redacted production-owner evidence for an allowed request and the nearest provider- or consumer-revoked request through Gateway to final Browser effect, showing revocation blocks before I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Abort delegated Browser I/O when either plugin lifecycle closes (P1) - The new predicate is checked before nodeRegistry.invoke, but provider or consumer lifecycle closure never aborts the in-flight node request. The node host therefore only sees its invocation signal and local approval authority, so replacement after node.invoke.request can still reach Browser/CDP I/O. Bind both lifecycle closures into the invocation signal and prove revocation blocks the final effect.
  • Limit Browser-owned meeting guidance to allowlisted consumers (P2) - This tells new meeting plugins to use Browser-owned routing, but that runtime is private and registration only allowlists the bundled Google Meet, Teams Meetings, and Zoom Meetings plugins. A third-party plugin following the guide reaches the strict unavailable-capability failure. Restrict the text to those consumers or document the supported legacy route until a public contract exists.
  • Resolve security concern: Lifecycle revocation does not reach final Browser I/O - The branch creates cross-plugin lifecycle authority but only samples it before transport dispatch; a revoked provider or consumer can leave an in-flight request able to invoke Browser/CDP work.
  • Resolve merge risk (P1) - A provider or allowlisted consumer replacement after node transport handoff can still permit Browser/CDP I/O under revoked authority.
  • Resolve merge risk (P1) - The published migration guidance can send new third-party meeting plugins into an intentionally private, allowlisted path that fails at runtime.
  • Resolve merge risk (P1) - The supplied PR introduction record does not provide a reliable production-versus-test LOC split for this large mixed-surface change.
  • Complete next step (P2) - Security-sensitive lifecycle repair, documentation correction, and real boundary proof require owner review before merge.

Findings

  • [P1] Abort delegated Browser I/O when either plugin lifecycle closes — src/plugins/registry-runtime-browser-delegation.ts:126-130
  • [P2] Limit Browser-owned meeting guidance to allowlisted consumers — docs/plugins/sdk-migration.md:977-984
  • [high] Lifecycle revocation does not reach final Browser I/O — src/plugins/registry-runtime-browser-delegation.ts:126
Agent review details

Security

Needs attention: The delegated authority remains usable after lifecycle revocation once node transport has begun.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Introduced scope 170 files; +14,889/-1,776 overall; production/test split unavailable The supplied introduction evidence is incomplete, so the substantial mixed production, test, and documentation change needs a classified split before merge.

Stored data model

Persistent data-model change detected: migration/backfill/repair: extensions/browser/src/browser/browser-steward-runtime-guard.ts, serialized state: extensions/browser/src/browser/browser-steward-tool-params.ts, serialized state: src/meeting-bot/browser-node.ts, serialized state: src/sessions/session-steward-policy.ts, unknown-data-model-change: src/sessions/session-steward-policy.ts, unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Fence lifecycle revocation through Browser I/O (recommended)
    Bind both plugin lifecycles to the invocation cancellation path and prove consumer and provider replacement prevent the final Browser/CDP dispatch.
  2. Correct the third-party migration guidance
    Limit Browser-owned routing guidance to the bundled allowlist and direct other plugins to the supported legacy Browser Gateway route until a public generic contract exists.

Technical review

Best possible solution:

Carry provider-and-consumer lifecycle closure as cancellation to the node-host final effect, prove revoked requests stop before Browser I/O, and restrict the migration guidance to supported consumers.

Do we have a high-confidence way to reproduce the issue?

No live reproduction was supplied; the current branch source nonetheless clearly traces the revoked-lifecycle gap from delegation through node handoff to Browser dispatch.

Is this the best way to solve the issue?

No: checking the predicate before node dispatch is insufficient because lifecycle revocation is not propagated to the in-flight node invocation or final Browser effect.

Full review comments:

  • [P1] Abort delegated Browser I/O when either plugin lifecycle closes — src/plugins/registry-runtime-browser-delegation.ts:126-130
    The new predicate is checked before nodeRegistry.invoke, but provider or consumer lifecycle closure never aborts the in-flight node request. The node host therefore only sees its invocation signal and local approval authority, so replacement after node.invoke.request can still reach Browser/CDP I/O. Bind both lifecycle closures into the invocation signal and prove revocation blocks the final effect.
    Confidence: 0.97
  • [P2] Limit Browser-owned meeting guidance to allowlisted consumers — docs/plugins/sdk-migration.md:977-984
    This tells new meeting plugins to use Browser-owned routing, but that runtime is private and registration only allowlists the bundled Google Meet, Teams Meetings, and Zoom Meetings plugins. A third-party plugin following the guide reaches the strict unavailable-capability failure. Restrict the text to those consumers or document the supported legacy route until a public contract exists.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 3c00dbc71bfe.

Labels

Label justifications:

  • P1: A lifecycle-revoked cross-plugin request can still reach final Browser I/O after transport handoff.
  • merge-risk: 🚨 security-boundary: The patch introduces authority propagation but does not enforce revocation at the final Browser effect boundary.
  • merge-risk: 🚨 compatibility: New public migration guidance recommends a private allowlisted route that unsupported third-party plugins cannot use.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Authority-chain proof required: the claimed terminal proof counts a vi.fn call in an in-memory registry and does not exercise Browser Gateway, node transport, node host, or Browser/CDP I/O. Provide redacted production-owner evidence for an allowed request and the nearest provider- or consumer-revoked request through Gateway to final Browser effect, showing revocation blocks before I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [high] Lifecycle revocation does not reach final Browser I/O — src/plugins/registry-runtime-browser-delegation.ts:126
    The branch creates cross-plugin lifecycle authority but only samples it before transport dispatch; a revoked provider or consumer can leave an in-flight request able to invoke Browser/CDP work.
    Confidence: 0.97

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • nissl24: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Propagate consumer and provider lifecycle closure into the node invocation and node-host effect boundary.
  • Add a production-owner trace covering allowed and revoked-after-handoff cases, with private data redacted.
  • Restrict the public migration guidance to the supported allowlist or legacy route.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (77 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-28T00:05:40.721Z sha c2c3f2b4fb6cbb254a5405abef5c642492e92649 :: needs real behavior proof before merge. :: [P1] Keep the Browser-owned meeting route private or support external plugins
  • reviewed 2026-08-28T04:43:29.803Z sha 3ddfc52 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-28T05:12:45.611Z sha 6f2486c :: needs real behavior proof before merge. :: [P2] Limit Browser-owned guidance to bundled plugins
  • reviewed 2026-08-28T05:41:38.397Z sha f751f0b :: needs real behavior proof before merge. :: [P2] Limit Browser-owned meeting guidance to bundled plugins
  • reviewed 2026-08-28T06:17:14.631Z sha f751f0b :: needs real behavior proof before merge. :: [P2] Limit Browser-owned meeting guidance to bundled plugins
  • reviewed 2026-08-28T17:43:20.002Z sha a8e26ec7f6360745bb67c0f2689a6236fb0fd9ad :: needs real behavior proof before merge. :: [P2] Limit Browser-owned meeting guidance to bundled plugins
  • reviewed 2026-08-28T18:07:27.205Z sha 94978e047217836e991c234f6fbd0b99c305b08a :: needs real behavior proof before merge. :: [P1] Keep Browser-node approval live after its Gateway run closes | [P2] Limit Browser-owned meeting guidance to bundled plugins
  • reviewed 2026-08-28T21:57:55.563Z sha 833ae6d :: needs real behavior proof before merge. :: [P2] Limit Browser-owned mode guidance to allowlisted consumers

@SnowBelt

Copy link
Copy Markdown
Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@SnowBelt
SnowBelt marked this pull request as ready for review August 24, 2026 00:31
@SnowBelt
SnowBelt requested a review from a team as a code owner August 24, 2026 00:31
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. and removed P2 Normal backlog priority with limited blast radius. labels Aug 24, 2026
@SnowBelt

Copy link
Copy Markdown
Author

@clawsweeper re-review

The latest head now includes:

  • a final live agent-runtime-authority check immediately before Browser node transport, plus the same predicate passed to the node registry;
  • a regression proving runtime revocation during asynchronous Browser preparation sends no node command;
  • an explicit operator-path migration in docs/cli/nodes.md for direct generic nodes invoke --command browser.proxy callers.

The remote changed gate remains intentionally skipped under the user's explicit local-proof-only approval.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 24, 2026
@SnowBelt

Copy link
Copy Markdown
Author

@clawsweeper re-review

The current head includes the root integration repairs and fresh proof:

  • Browser proxy/runtime identity authority is fenced at the final node dispatch boundary.
  • Browser/session route leases, pairing-generation binding, structured node errors, stale-tab recovery, and no implicit host fallback remain covered.
  • Credential Steward redaction ownership is kept inside the Browser plugin boundary; core-import and import-cycle/deadcode issues are repaired.
  • Focused tests, type checks, lint, build, live self-contained steward evals, security scan, and fresh local autoreview passed.

The remote changed gate remains intentionally skipped under the user's explicit local-proof-only approval.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 24, 2026
@SnowBelt

Copy link
Copy Markdown
Author

@clawsweeper re-review

Root P1 fixed: the generic trusted plugin-owner bypass for raw Browser browser.proxy/upload node control was removed. Raw node control now fails closed and requires the Browser-owned gateway request path. Meeting/Google Meet browser-node calls now delegate through browser.request with the exact node target and automatic host fallback disabled.

Regression proof passed:

  • Browser plugin policy tests prove a non-Browser owner is denied before node I/O.
  • Google Meet browser-proxy tests prove Browser-owned delegation, exact node routing, timeout handling, and no raw node invocation.
  • Full focused steward/gateway/browser/meeting suite passed.
  • Typechecks, focused lint, import-cycle, max-lines, dead-code, private-key, and build checks passed.
  • Four self-contained local steward live evals passed.
  • Fresh approved Codex autoreview reported no accepted/actionable findings.

Remote changed-gate proof remains intentionally skipped under the user's explicit local-proof-only approval. Please re-review the current PR head for the corrected owner boundary.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@SnowBelt

Copy link
Copy Markdown
Author

Rebase and verification update

The existing fork feature branch was rebased onto the current upstream main and updated with force-with-lease only. Fork main was not modified. PR #128289 now points exactly to the pushed feature branch.

Local proof after the rebase repair

  • 1,460 affected Vitest tests passed, including Browser delegation, gateway/session boundaries, browser guard, node-host behavior, and plugin lifecycle regressions.
  • session-steward, credential-steward, combined Browser / Session / Credential Steward, and safety-boundary self-contained live evals passed with local Ollama qwen3.5:4b.
  • Contracts-only role catalog passed with zero issues.
  • Fresh approved sanitized branch autoreview passed with no accepted/actionable findings.
  • pnpm tsgo:prod passed.
  • pnpm lint:core passed.
  • pnpm lint:extensions passed.
  • Documentation, formatting, link, glossary, and workflow checks passed.
  • pnpm build passed.
  • git diff --check passed.

The rebase repair prevents setup-only plugin registration from displacing a live runtime record, removes the stale public Browser runtime path after the canonical private resolver is attached, and fixes the resulting trusted-record naming conflict.

Hosted proof status

  • All currently PR-attached exact-head guard checks completed with no failures.
  • The full CI workflow dispatch was attempted with the verified PR head as its target, but GitHub rejected it with Must have admin rights to Repository for the authenticated account. No check was bypassed, dismissed, or concealed.
  • Security/architecture owner acceptance of the bounded Browser-owned delegation/approval boundary and the manual self-contained steward-evaluation workflow is still not recorded.
  • The remote changed-gate remains skipped under the previously approved local-proof-only decision.

No secrets, credentials, user data, deployments, fork main changes, or real external messages were used.

@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh /allow-dependencies-change comment after the guard blocks that new head SHA.

  • Current SHA: fda06b9505209cf60203afa754d400480fb188aa

@SnowBelt

Copy link
Copy Markdown
Author

Current rebase and verification update

The existing fork feature branch was rebased onto the latest upstream main and force-with-lease updated on that feature branch only. Fork main was not modified. PR #128289 now points exactly to the pushed feature branch.

Fresh post-rebase local proof passed:

  • 1,463 affected tests across seven Vitest shards
  • contracts-only steward catalog: 54 contracts, 10 critical, zero issues
  • self-contained live evals: session-steward, credential-steward, browser-session-credential-steward, and browser-session-credential-steward-safety-boundary
  • core and extension lint
  • production TypeScript checks
  • docs inventory, MDX, links, and glossary checks
  • formatting, workflow lint, build, and diff hygiene
  • fresh two-pass sanitized branch autoreview with zero accepted/actionable findings

Hosted gate status

The current exact-head PR checks completed with two failures: check-lint was canceled during its check-shard step, and openclaw/ci-gate failed because that selected job did not succeed. Rerunning the failed jobs was rejected by GitHub because the authenticated account does not have repository-admin rights. The authorized exact-head workflow dispatch was likewise rejected for the same admin-rights requirement. No failure was bypassed or dismissed.

The remote changed-gate remains skipped under the previously approved local-proof-only decision. No security/architecture owner acceptance is recorded in PR reviews yet, so no merge was attempted.

@SnowBelt

Copy link
Copy Markdown
Author

Verification update

The feature branch was rebased onto the current main and force-with-lease updated on the existing fork feature branch only. Fork main was not modified.

Local proof on the final rebased head:

  • affected Vitest proof: 7 shards, 1,505 tests passed
  • pnpm lint:core passed
  • steward-scoped extension lint passed; full extension lint still reports three unchanged upstream Daytona max-lines findings in extensions/daytona/src/backend.ts
  • pnpm tsgo:prod passed
  • docs MDX/link/i18n checks passed (the glossary check correctly skipped because this contributor branch has no merge base in that checker)
  • formatting and actionlint passed
  • pnpm build passed
  • fresh sanitized autoreview completed with no accepted/actionable findings

Known proof gaps:

  • The current local Ollama service did not generate a response for the current Session Steward live attempt, so no current-rebase live pass is claimed for that attempt.
  • Exact-head CI dispatch was attempted after the push and GitHub rejected it with Must have admin rights to Repository. No failure was bypassed, dismissed, or concealed.
  • Remote changed-gate proof remains intentionally skipped under the approved local-only decision.
  • Security/architecture owner acceptance and maintainer squash-merge permission remain external requirements. No merge was attempted.

@SnowBelt

Copy link
Copy Markdown
Author

Exact-head CI update

The post-push exact-head CI workflow completed. The aggregate result is not green:

  • check-lint ended when the hosted runner received a shutdown signal and the operation was canceled; its log does not contain a lint diagnostic.
  • openclaw/ci-gate consequently reported check-shard=failure.
  • The other jobs in that workflow completed successfully or were intentionally skipped.

I made no source change for this infrastructure cancellation. The authorized rerun attempt and the exact-head dispatch attempt were both rejected by GitHub because the contributor account does not have repository-admin rights. No failure was bypassed or concealed; owner acceptance and merge were not attempted.

@SnowBelt

Copy link
Copy Markdown
Author

@clawsweeper re-review

Please review the current exact PR head after the authorized rebase and local verification. Do not merge or bypass required checks. Keep the existing notes about the hosted CI runner-shutdown failure, the unavailable contributor-admin rerun/dispatch capability, and the pending security/architecture owner acceptance.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@SnowBelt

Copy link
Copy Markdown
Author

Steward repair proof update

The branch was rebased onto the current upstream main, and only the existing fork feature branch was force-with-lease updated. Fork main was not modified.

Root fix included:

  • Browser-owned tab close now receives a live approval predicate and rechecks authority immediately before the final CDP close effect.
  • Added regression coverage for approval revocation during target lookup and for passing the live predicate through the node-host close path.
  • Corrected the session-boundary documentation for malformed empty tails.
  • Removed the PR-added agent-role-evals workflow and only its workflow-specific test coverage, as authorized; eval contracts and scripts remain.

Current local proof:

  • Focused steward regression proof: 17 files, 5 shards, 732 tests passed.
  • pnpm tsgo:prod passed.
  • pnpm lint:core and touched-file oxlint passed.
  • Documentation inventory, MDX, and link checks passed.
  • pnpm build passed.
  • Contracts-only eval passed with zero issues.
  • TruffleHog branch-diff scan reported zero findings.
  • Fresh sanitized branch autoreview against current upstream main reported no accepted/actionable findings.

Known proof gaps remain explicitly documented in the PR body: the current local Ollama live eval did not complete; the full extension lint command has three unchanged upstream Daytona diagnostics while touched steward files pass targeted lint; hosted exact-head CI and security/architecture owner acceptance remain external gates. Remote changed-gate proof remains intentionally skipped under the user's explicit local-proof approval.

@SnowBelt

Copy link
Copy Markdown
Author

@clawsweeper re-review the current head after the Browser Steward final-effect approval fix, removal of the PR-added eval workflow, documentation correction, and regression proof. Report any remaining actionable findings; do not merge.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@SnowBelt

Copy link
Copy Markdown
Author

@clawsweeper re-review

Please review the current exact PR head after the Browser run-authority revocation fix. The fix adds an internal Gateway-to-Browser bridge that registers the exact delegated authority, composes its closure into the Browser request signal, passes that signal to the paired-node invocation, and cancels in-flight Browser node work before Browser/CDP I/O. It also adds multi-observer registry coverage and an in-flight revocation/no-fallback regression. Please report any remaining concrete correctness or security blocker and include the required owner/CI gates.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@SnowBelt

Copy link
Copy Markdown
Author

@clawsweeper re-review

Please review the latest exact PR head. The production fix now also has an explicit regression assertion that a revoked approved Browser node route never falls back to the Gateway host after in-flight node cancellation. The implementation keeps the Gateway run-authority closure linked to the paired-node request signal and preserves redacted, exact-authority checks. Please report any remaining concrete correctness or security blocker and include the required owner/CI gates.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@SnowBelt

Copy link
Copy Markdown
Author

Fork-local MVP proof update

The repaired steward branch was validated locally and through fork-local PR #67, targeting mindfire-lab:steward-mvp. That fork-local PR has now been squash-merged into steward-mvp; fork main was not modified.

Local proof:

  • 388 focused steward regression tests passed, including the browser runtime/approval subset.
  • Whole changed-file Oxlint shard proof, repository format check, max-lines ratchet, and assertion-safety ratchet passed.
  • Production and extension test type lanes passed.
  • Session Steward, Credential Steward, combined Browser / Session / Credential Steward, and safety-boundary contract/live self-contained evals passed.
  • Fresh autoreview against the fork target reported no accepted/actionable findings.

Fork CI:

  • Relevant steward, boundary, security, CodeQL, Opengrep, dependency, preflight, actionlint, and quality checks passed.
  • Optional failures are documented in fork PR docs: Add manual OAuth setup for remote/headless deployments #67: current-main Control UI startup-JS gzip budget, current-main full-release-validation baseline tests, fork GitHub App secret absence for automation-only jobs, and hosted lint runner shutdown.
  • No feature failure was identified in fork CI.
  • The local build and documentation i18n glossary proof retain the same unrelated baseline limitations documented in the fork PR.

Upstream status:

  • This does not claim upstream completion.
  • Upstream Workflow Sanity/exact-head CI rerun or dispatch and upstream security/architecture acceptance remain unavailable without OpenClaw authority.
  • Remote changed-gate proof was intentionally skipped under the approved local-proof path.

@SnowBelt

Copy link
Copy Markdown
Author

MindFire fork-local MVP qualification update

The current Browser / Session / Credential Steward MVP candidate was verified on the MindFire-owned fork without modifying fork main or upstream source.

Evidence:

  • Fork-local PR #68 was squash-merged into mindfire-lab/openclaw:steward-mvp.
  • The exact-head MindFire Steward MVP Qualification workflow passed source-boundary verification, the steward regression suite, the exact runtime build, built-boundary verification, and whitespace checks.
  • Fresh local contracts-only and self-contained live evals passed for session-steward, credential-steward, browser-session-credential-steward, and browser-session-credential-steward-safety-boundary using the installed Ollama model.
  • The final sanitized branch autoreview reported no accepted or actionable findings.
  • The full build's unchanged Control UI startup gzip ratchet and the repository's pre-existing zh-CN glossary baseline remain outside this MVP diff; they were not weakened or modified.

The existing remote-proof blocker remains unchanged: remote changed-gate proof was explicitly skipped under the user's local-proof approval, and upstream administrator/security-owner/maintainer actions remain outside the MindFire account's authority. This update does not claim upstream merge, remote changed-gate completion, deployment, or production credential proof.

@SnowBelt

Copy link
Copy Markdown
Author

Follow-up MVP proof: qualification-lane CI root cause repaired

The inherited fork CI run exposed one defect in the new qualification verifier: it declared a generic local isRecord helper, which OpenClaw's coercion-helper declaration guard correctly rejects outside the canonical normalization owner.

That root cause was repaired by narrowing the helper to isStewardConfigObject, then verified with the complete coercion-helper declaration guard, verifier tests, and a fresh sanitized autoreview. Fork-local PR #69 passed the exact-head Steward MVP qualification workflow and was squash-merged into mindfire-lab/openclaw:steward-mvp.

The MVP delivery state is therefore:

  • steward source/config/build-boundary verification passes;
  • focused steward regression coverage passes;
  • self-contained local live evals pass for the combined Browser / Session / Credential Steward and the standalone Session and Credential roles;
  • fork-local qualification is green and merged;
  • fork main and upstream main were not modified.

The existing external limitations remain unchanged: remote changed-gate proof was explicitly skipped under the user's local-proof approval; inherited fork automation/build checks may fail because of unavailable fork secrets or unrelated baseline ratchets; upstream administrator/security-owner/maintainer actions are still required for upstream CI acceptance and merge. This comment does not claim upstream merge, deployment, or production credential proof.

@SnowBelt

SnowBelt commented Sep 1, 2026

Copy link
Copy Markdown
Author

MindFire fork-local MVP completion update

The repaired Browser / Session / Credential Steward candidate was completed through the MindFire-owned fork path without modifying fork main or upstream source.

  • Fork-local PR #71 was squash-merged into mindfire-lab/openclaw:steward-mvp.
  • Exact-head fork qualification passed steward source-boundary verification, role-contract validation, the steward regression suite, the exact runtime build, built-boundary verification, and whitespace checks.
  • Exact-head fork real-behavior proof passed.
  • Local Browser runtime proof passed 59 tests; targeted plugin lifecycle/cache proof passed 15 tests.
  • Fresh sanitized autoreview and the local secret scan passed.

The fork's unrelated auto-response and label automation checks remain failed because the fork does not have the GitHub App private-key secret required by those automation workflows. No secret was added and neither failure was bypassed or concealed.

Upstream PR #128289 remains open because upstream Workflow Sanity/exact-head administration, security/architecture owner acceptance, and upstream merge authority are unavailable to this account. Remote changed-gate proof remains skipped under the approved local-proof path. This update does not claim upstream merge, deployment, or real-credential/external-message testing.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle

Copy link
Copy Markdown

Closing due to inactivity.
If you believe this PR should be revived, post in #clawtributors on Discord to talk to a maintainer.
That channel is the escape hatch for high-quality PRs that get auto-closed.

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 extensions: browser extensions: diagnostics-otel Extension: diagnostics-otel extensions: xai gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. plugin: google-meet plugin: teams-meetings Teams Meetings plugin plugin: zoom Zoom plugin rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts security Security documentation size: XL stale Marked as stale due to inactivity status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants