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. What this changesAdds an invocation-bound plugin capability to fork a Telegram or Discord conversation, replay an exact saved text turn, and restore its previous route. Example: An authorized plugin requests a branch titled Tangent from Telegram topic 41.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Partial Merge readiness⛔ Blocked before merge - 7 items remain This PR fills a distinct plugin capability gap that current main does not provide. Both previously reported defects remain on the unchanged reviewed head, and the public capability still needs an area-owner decision. Priority: P2 Decision needed
Before merge
Findings
Tests
Agent review detailsHow this fits togetherPlugin commands receive host-resolved messaging and session context. The proposed capability connects existing session-fork, conversation-binding, and reply-delivery owners while keeping their mutations inside OpenClaw. flowchart TD
A[Authorized plugin command] --> B[Invocation-bound capability]
B --> C[Check owner and current route]
C --> D[Select saved text or conversation tip]
D --> E[Existing session fork owner]
E --> F[Channel binding owner]
F --> G[Replay and deliver reply]
F --> H[Restore route or return source link]
Technical reviewBest possible solution: If sponsored, keep the plugin-facing contract narrow and compose the existing session, binding, and delivery owners, with reliable return settlement and explicit persistent-state semantics. Do we have a high-confidence way to reproduce the issue? Yes for the patch defects: source shows a valid saved reply rejected by text-command dispatch and a pre-topic binding change leaving a durable reservation pending. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Unclear: a narrow host capability fits the extension gap and reuses canonical fork transactions, but the proposed combined authority and persistence contract needs owner acceptance. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6b2afbfe981a. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: No concrete authorization bypass or supply-chain regression was established, but the retained replay authority needs final-effect qualification. EvidenceSecurity concerns:
What I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (16 earlier review cycles; latest 8 shown)
Reviewed October 8, 2026, 7:39 PM ET / 23:39 UTC (Revision 17). |
860e156 to
581bfd3
Compare
581bfd3 to
9cffdbf
Compare
180891b to
19d38e9
Compare
Dependency graph guard clearedThis PR no longer has dependency changes awaiting review. A future dependency graph change from an external contributor requires a maintainer's
|
cbd27e7 to
a5dc34a
Compare
|
Exact-head validation for
Proof boundary: bot-to-bot QA is not the official Telegram Test Server/human client, Discord network, production rollout, or a physical revoked-owner race through non-mocked model/tool I/O. Default transcript redaction retains the new protected transport IDs, raw archives export them, and deletion can retain them in |
a5dc34a to
1759f08
Compare
Upstream reconciliationThe core channel workflow has now landed through #190783 ( That merge does not add this PR's general third-party plugin capability, cross-channel placement/fallback, reply-to-earlier-turn replay, or return-stack contract. Those remain separate product/API decisions. I will not rebase or expand this conflicting API proposal merely to duplicate the merged native slice. The branch remains available as implementation/proof history if maintainers later want the broader invocation-bound plugin contract. |
Related: #157627. This adds a plugin host capability, not the built-in
/forkcommand. The independent native command is #162287; neither PR depends on the other.What Problem This Solves
An owner-authorized plugin command has no bounded public way to fork its resolved conversation, place the branch, replay an exact saved text turn, and return. A plugin would otherwise need private Gateway/session access or an unsafe approximation.
User Impact and Contract
The invocation-bound
conversationForkcapability lets an eligible command prepare a tip or exact saved-text-reply fork, execute one placement, inspect its bounded outcome, and request Back. The host owns transcript selection/cut, session creation, channel bindings, replay, and authority checks. This PR does not install a command or make the published dev.2 plugin work on stock OpenClaw.Eligible native Telegram/Discord user turns persist provider message ID and canonical channel/account/conversation reference in protected
message.__openclaw.transport, not model-visible content. This expands durable transcript data and requires maintainer product/privacy acceptance.Upstream-Compatibility Revision
This revision is based on upstream
9ed1b9d70a88a6bd9701bf9c40cbba556dc87af4. Exact reply cuts now use the canonical agent-executorforkSessionAtMessagetransaction and its commit/publication owner, rather than a parallel worker. A small follow-up gives a test-fixture helper a distinct exported name to satisfy the hosted source-contract check. The public seam remains invocation-bound; it exposes no general session-store or Gateway mutation API.The port follows current worker-owned binding and transcript-read paths. It retains exact protected transport provenance, generation-fenced placement/Back, absolute Back deadlines across restart, and owner/route checks through queued replay, model/tool admission, and final delivery. Generation-less legacy bindings remain routable when unchanged but cannot authorize a new fork mutation. Unsupported placement owners fail closed, and ambiguous external topic creation is not blindly retried.
Evidence for This Revision
3ef0f9d0e60dbde99d316cbbb35309773e92dec1on frozen upstream9ed1b9d70a88a6bd9701bf9c40cbba556dc87af4; the prior port head was1759f0814bc3b274d3f6682379810272675cf992.check:changedgates. The separate behavior-proof gate was skipped, not claimed.check:changedpassed all 27 core test-typecheck shards, extension production/test typechecks, three Knip unused-export scans, targeted core/extension/script lint, import-cycle check, and remaining guards. Fullpnpm buildpassed on the same head.The real Telegram Bot API, restart, and published-version upgrade qualifications recorded on the previous public head
a5dc34ado not qualify this rewritten head. They remain historical evidence of the UX, not current-head transport proof. This revision has not changed the installed OpenClaw package, plugin, or Gateway.Persistent-Data and Maintainer Decisions