Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 9, 2026, 3:39 PM ET / 19:39 UTC (Revision 11). ClawSweeper reviewWhat this changesAdds host-approved remote text prompts between paired Reef Gateways, durable grants and outcomes, session commands, a native management panel, and registry-scoped plugin runtime lookup. Merge readiness⛔ Blocked before merge - 8 items remain Keep open: this remains distinct, useful work, but the previously reported reset-authorization defect persists and the new panel can erase unsent drafts. The protected maintainer label also rules out automated closure. Priority: P2 Review scores
Verification
How this fits togetherReef transports encrypted messages between separately owned OpenClaw Gateways. This change lets a guest propose input to a shared host session, where host approval and Gateway admission control execution. flowchart LR
A[Guest prompt] --> B[Encrypted Reef transport]
B --> C[Host mount and peer checks]
C --> D[Host approval or standing grant]
D --> E[Gateway input admission]
E --> F[Host session execution]
E --> G[Durable guest outcome]
Decision needed
Why: The body explicitly leaves acceptance open, and this choice establishes persistent authority and public plugin semantics beyond a mechanical repair. Before merge
Findings
Agent review detailsSecurityNeeds attention: Persistent remote authority survives session reset; the inspected dependency delta adds only a local workspace development link. PR surfaceSource +3021, Tests +3604, Docs +81, Config +9, Other +3. Total +6718 across 61 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep execution host-owned, bind remote authorization to the canonical session lifecycle, preserve panel drafts, and publish only an owner-approved SDK contract with demonstrated upgrade compatibility. Do we have a high-confidence way to reproduce the issue? Yes, from source: allow a mount, reset its host session, then submit through the old mount; the session ID and grant checks still match. Separately, refreshing the panel after drafting a prompt recreates an empty textarea. Neither path was executed during this review. Is this the best way to solve the issue? Partly: reusing core approval and admission owners is appropriate, but stable session IDs do not establish session incarnation, and rebuilding forms without retained draft state is unsafe. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ac0a263eebf9. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review The requested Core/SDK authority repairs are pushed at Additional closeout evidence:
I did not substitute a mock guard for the remaining configured authority proof: this environment has no Reef guard API credential available, so the full approved/revoked-before-agent-I/O run is blocked at that prerequisite. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes are blockedOpenClaw does not accept dependency graph changes through PRs unless a repository admin or security explicitly authorizes the current head SHA. Dependency updates are generated internally by maintainers so external PRs cannot change the resolved graph. Detected dependency graph changes:
Auto-scrub was not attempted because this PR changes package manifest dependency graph fields:
Dependency graph changes must be reviewed by security or handled by maintainers internally. Please remove lockfile changes manually if they are not needed. To remove lockfile changes, restore them from the target branch: git fetch origin
git checkout 'origin/main' -- 'pnpm-lock.yaml'
git commit -m 'chore: remove dependency lockfile change'
git pushIf this PR intentionally needs a dependency graph change, ask a repository admin or member of The action will approve the current head SHA ( |
|
Closing as superseded (owner decision 2026-11-27, executed by the OpenClaw agent on the owner's behalf). The branch went stale after 2026-09-18 — ~42,000 commits behind main with a DIRTY merge state, head a7c456b blocked by the dependency-graph guard, and the proposed generic cross-session grant capability never received the SDK/security-owner decision this PR was parked on. Re-scope plan: re-file against current main as two smaller PRs — (1) the plugin-gated native Reef Control UI panel, and (2) host-approved remote session prompts (federation frames, coordinator, grants) once the grant-capability decision is made. All commits remain on pb-61a/federated-prompt-admission for cherry-pick. |
What Problem This Solves
Paired Reef Gateways can exchange guarded messages, but one Gateway cannot safely propose a prompt to a session owned by the other. There is no session-scoped mount, host approval, replay-safe admission, or immediate revocation path.
Why This Change Was Made
This adds a text-only prototype that keeps the host Gateway as the sole session and execution authority. Reef carries typed, encrypted federation frames, while existing OpenClaw plugin approvals and canonical agent admission decide whether one exact remote prompt runs. The host revalidates the mount generation, session incarnation, and exact peer signing and encryption keys after approval and at canonical input-admission commit boundaries.
User Impact
Operators with two paired Reef Gateways can:
/reef session share.This prototype does not mirror transcripts, stream output to the guest, or transfer attachments.
Latest experiment: plugin-gated native Reef Control UI
Commit
f5c4349af9ebf58d33d103c66fc5284cfce461b1adds an opt-in native Reef panel without widening the public protocol or plugin SDK. This is experimental remote delegation: a trusted guest proposes text to one explicitly shared host session, while the host remains the sole transcript, approval, admission, model-execution, and revocation authority. It is distinct from ordinary Reef messaging, whose existing guard/classification path remains unchanged.The panel is hidden unless the Reef plugin is enabled and the connection has
operator.admin. It covers setup/unavailable states, short-lived pairing codes and requests, trust removal, exact-session sharing, guest prompt proposals, proposal outcomes, pending revocation, and links to native approvals. Read status requiresoperator.read; every mutation requiresoperator.admin, strict bounded validation, and the canonical owner command path. The generic SDK/security-owner decision described below remains outstanding.Tested candidate provenance
6ef84e685234984ba8cfdc887435c895e1c6577bwas frozen as a 58,582-byte binary patch with SHA-2569d8b106bb0bb13aaf299cb771852572b37a7f2ea170ba215dd631582bd55a240.f5c4349af9ebf58d33d103c66fc5284cfce461b1; no unrelated files were included.a7c456b504a229a6f028f67a7aee9aea79c1b79badds only the required// SAFETY:invariant comment. The ratchet and the 8 Control UI Gateway tests pass.6ef84e685234984ba8cfdc887435c895e1c6577bthrougha7c456b504a229a6f028f67a7aee9aea79c1b79bhas SHA-2563fed548004ddbd381867c306cf1d7c9d8505fa327738efb0be2c63213dc3b50f.0.91.git diff --check, plugin SDK/package-boundary checks, and the full repository build.Real runtime and browser proof
A two-Gateway loopback proof used OCM
0.2.33, distinct registered Reef identities, a real local Wrangler Reef relay, OpenClaw runtime, andopenai/gpt-5-miniwith mocks disabled.Harbor) and guest-added context (42).Limits: the proof used local loopback rather than a public multi-machine relay; it is candidate restart/reopen proof rather than older-release upgrade/downgrade proof; the guest receives proposal outcomes rather than streamed/final host output; attachment transfer and transcript attribution remain out of scope. Current published head
a7c456b504a229a6f028f67a7aee9aea79c1b79bhas triggered fresh exact-head CI, which is not represented as passed here until GitHub completes it. The dependency graph change inextensions/reef/package.json/pnpm-lock.yamlalso requires the repository’s documented current admin or@openclaw/openclaw-secops/allow-dependencies-changeoverride.Proposed SDK Boundary — Owner Decision Still Open
This PR proposes a generic, core-owned plugin runtime capability rather than Reef-only machinery. Explicit SDK/security-owner acceptance of that public durable authority surface is still outstanding; the rationale below is not an approval. Core owns session incarnation, approval scoping, plugin lifecycle, and canonical agent admission; Reef is the first consumer. Keeping the authority primitive at that owner boundary avoids duplicating security policy inside one channel plugin while preserving the strict trusted-official-plugin gate.
Changes
extensions/reef/protocol/federation.tsextensions/reef/protocol/pipeline.tsextensions/reef/src/federation-state.tsextensions/reef/src/federation-coordinator.tsextensions/reef/src/flow.tsextensions/reef/src/channel.tsextensions/reef/src/commands.tsui/src/components/exec-approval-card.test.tssrc/plugin-sdk/runtime-store*.ts,src/plugins/loader-channel-runtime.tsdocs/channels/reef.mdextensions/reef/**/*.test.tsEvidence
Configured two-Gateway flow
Built and tested exact head
ebc20b31daf42cb41caa1cbb504bdb37a51efc09. Two isolated Gateways, distinct registered Reef identities, real local Reef relay, encrypted transport, real host approval UI, and a recording loopback agent provider. No operator Gateway changes.session.prompt.acceptedto the guest. Agent-provider requests increased from 1 to 2.session.prompt.denied; provider requests stayed 4 to 4, and the revoked marker was absent from the host transcript. Reopening both Gateways again retained the denial and absence.[email protected]
Latest review repairs: admission and local-key recovery
OPENCLAW_BUILD_PRIVATE_QA=1 pnpm buildpassed at the exact head. Fresh final P0/P1 autoreview was scoped-clean.Rejected-mutation expiry repair
Current published head:
6ef84e685234984ba8cfdc887435c895e1c6577b. The precedingebc20b31daf42cb41caa1cbb504bdb37a51efc09passed full exact-head CI and is the built two-Gateway recording above. This follow-up changes only rejected core grant mutations and their regression tests; it has not been represented as a new two-Gateway recording.createdAtandexpiresAtafter rejection. The real Gateway regression accepted a prompt after the original standing grant's deadline because a rejected peer revocation had renewed it.Automated checks
node scripts/run-vitest.mjs src/plugin-sdk/runtime-store.test.ts src/plugins/loader.runtime-store.test.ts src/plugins/loader.runtime-registry.test.ts src/plugins/loader.test.ts src/plugins/registry-runtime.cross-session-grants.test.tsnode scripts/check-changed.mjs -- <changed paths>: formatting, core/plugin and test typechecks, SDK/contract ratchets, lint, dead-code, storage, and import-cycle checks passed. Full PR checks passed before the runtime-owner follow-up; the follow-up's complete changed-surface checks also passed.OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build: passed after the runtime-owner repair.Exact-head CI fixture repair
The first full CI run found six test-lane failures caused by fixtures retaining runtimes across registry replacement. The follow-up initializes iMessage, Matrix, Mattermost, and Zalo runtimes under the fixture registry and retires the shared test registry only after final fixture hooks. Voice Call terminal persistence/timer cleanup now completes before retirement. Production code and assertions are unchanged; test/support delta +38/-24.
node scripts/run-vitest.mjs extensions/voice-call/src/manager.test-harness.test.ts extensions/voice-call/src/manager.notify.test.ts extensions/voice-call/src/manager.restore.test.ts extensions/zalo/src/channel.pre-aborted.integration.test.ts extensions/imessage/src/monitor.last-route.test.ts extensions/matrix/src/delivery-trace.test.ts extensions/matrix/src/matrix/sdk.test.ts extensions/mattermost/src/mattermost/interactions.test.ts src/plugin-sdk/runtime-store.test.tsnode scripts/check-changed.mjs -- <six changed test/support paths>Remaining boundaries
Manual test
Enable and register Reef on both Gateways, configure the guard provider credential, then pair their Reef identities. On the host:
/reef session share @guest <host-session-key>. On the guest:/reef session list, then/reef session prompt <mount-id> <text>. Approve in the host session, verify that session receives the prompt and the guest receives acceptance. Leave another proposal pending, run/reef session revoke <mount-id>on the host, then try approving it: expect denial and no new host model run. A host-local message still works normally in the host session.View the OpenClaw team session