Skip to content

Repair Browser Steward lifecycle and observer boundaries - #71

Merged
SnowBelt merged 2 commits into
steward-mvpfrom
codex/steward-mvp-post-merge-repair
Sep 1, 2026
Merged

SnowBelt merged 2 commits into
steward-mvpfrom
codex/steward-mvp-post-merge-repair

Conversation

@SnowBelt

@SnowBelt SnowBelt commented Sep 1, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Direct Gateway Browser execution could bypass Browser-owned parameter preparation and finalization, which could lose route/approval binding state. Browser lifecycle and after-tool-call observer paths could also receive raw opaque page data or raw session routing keys. This repair closes those paths while preserving the user-visible execution result.

Summary

  • Restores Browser preparation/finalization for direct Gateway tool invocation.
  • Preserves lifecycle, diagnostic-redaction, and execution callbacks through cached plugin descriptors.
  • Redacts Browser inputs/results for extension and after-tool-call observer paths, while leaving user-facing execution delivery unchanged.
  • Redacts Browser diagnostic session routing metadata without exposing session tails.
  • Keeps the combined Browser / Session / Credential Steward behavior compatible.

Evidence

Focused proof that passed:

  • Browser Steward runtime guard: 59 tests passed.
  • Plugin descriptor/cache lifecycle and diagnostic-redaction tests: 15 targeted tests passed.
  • Direct changed-file oxlint with boundary guards: passed.
  • TruffleHog scan of the complete uncommitted patch: zero verified or unverified findings.
  • Fresh sanitized autoreview: clean; no accepted/actionable findings.
  • git diff --check: passed.

The Browser direct-invocation regression test and agent-session extension-redaction regression test are included in this branch. Their full suites could not execute in this checkout because the existing installed dependencies are older than the repository lock/package contract: @openclaw/fs-safe lacks the exported ./durability surface, and the Markdown dependency mdast-util-gfm-table is absent. No source or lockfile changes were made to hide those baseline environment failures. A large build/install was not run under the active storage-containment rule.

Root Cause

The direct Gateway path invoked the before-tool hook with raw arguments and then executed the hook-adjusted object without calling the Browser-owned lifecycle preparation/finalization contract. Separately, observer-facing extension and after-tool-call paths forwarded raw Browser payloads because tool metadata did not carry diagnostic redactors through adapters and cached plugin descriptors.

Verification Scope

This is an MVP reliability/privacy repair. It does not deploy, modify fork main, add public protocol fields, add config or environment settings, add migrations, alter credential storage, reveal credentials, or perform real external actions.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@SnowBelt
SnowBelt marked this pull request as ready for review September 1, 2026 00:33
@SnowBelt
SnowBelt merged commit ea2b3b1 into steward-mvp Sep 1, 2026
252 of 272 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant