Skip to content

feat: use MCP plugin apps across conversations and workspace files - #161747

Merged
steipete merged 39 commits into
mainfrom
openclaw/investigate-chatgpt-plugin-extensions
Oct 2, 2026
Merged

steipete merged 39 commits into
mainfrom
openclaw/investigate-chatgpt-plugin-extensions

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

MCP plugin apps need to work as interactive tools across conversations and workspace files, rather than only as inline results after a model tool call.

User Impact

With the existing opt-in MCP Apps host enabled, users can open advertised apps directly, change server-owned settings, attach app resources and text/image context, use file viewers/editors with conflict-aware saves, and answer rich forms. Setup skills run only when explicitly requested.

This does not enable apps by default, install native Codex plugins, grant access to ChatGPT accounts, or introduce another runtime. Existing session, requester, tool-approval and workspace boundaries remain in force. App-supplied context remains untrusted conversation data.

File saves follow the upstream optional precondition: ifMatch prevents stale overwrites; omitting it writes without a version check. Apps should send the read ETag when protecting concurrent edits. Neither form grants access beyond the opened writable file.

Native Codex Apps keep the existing conversation-owned connection and approval policy. Interactive forms work with prompting modes such as Guarded/Workspace; Codex can decline them under its never policy in Full access. Native calls to one server/conversation cannot overlap, and background previews share the existing per-view request limits. These restrictions are documented; there is no fallback connection or policy bypass.

Why This Change Was Made

The implementation extends the existing MCP sandbox and reuses the conversation, file, approval and native Codex connection owners. App instances retain their conversation identity; deep links and display-mode changes preserve the instance, and pending input remains reachable above fullscreen apps.

Requested by and co-authored with @steipete.

Work sessions

Evidence

  • Live interoperability uses the official Bits & Bolts 0.1.11 server in credential-free isolation, the real Gateway, Control UI, and direct/native MCP transports with synthetic workspace data. The built-in model endpoint is a deterministic local fixture, not a real ChatGPT account.
  • Direct proof covers discovery/global/thread launch without a model call, settings and readback, resource mentions, image context at the next model endpoint, item removal, STL edits and stale-save conflicts, 36-choice canonical answers, origin-bound uploads, fullscreen, quick-action confirmation, in-place deep links, rich messages to current/new conversations, and explicit onboarding. A fresh mounted App also completed an ordinary model turn and then read/wrote through the same view, with per-call approval.
  • Native Codex proof covers cold/concurrent discovery, real global/thread/settings/resource/file workflows and conflict handling. In Workspace permission mode, the authenticated native App route delivered a 36-choice form to the real Control UI and returned canonical answers and uploaded resource URIs. This last form test launched an unmounted file view through the public RPC to avoid competing demo thumbnail calls; it was not a mocked transport.
  • Final product build passed in 331.33s. The unchanged strict UI performance gate passed: largest ordinary JS 214.9 KiB / 215 KiB, startup JS 366,579 B. Interactive question controls now load lazily. No budget, baseline, or dependency change.
  • Regression proof includes 140 UI tests across 9 files; 37 focused lazy-card/keyboard tests after the canonical-value correction; 20 runtime-authority tests (10 failed before repair); 4 real-router/onboarding custody cases; and 41 native lifecycle/catalog/ownership cases. New native lifecycle file: 6 tests, 12.86s standalone Vitest wall, new queued-caller case 152ms. Onboarding: about 3.8s test execution / 17.35s warm wrapper wall (cold compilation 60.6s). Earlier integrated checks: 68 tests in 85.75s, 13 registry/connection elicitation cases in 3.97s. CI timing remains to be attached to the published head.
  • Core/UI/plugin and affected test types, scoped lint, assertion ratchets, protocol registry/native generators, release-train guard and UI i18n checks passed. Independent reviews resolved startup cancellation, ordinary-turn invalidation, onboarding custody and concurrent native startup defects. The queued native-borrow review concern was rejected against the existing SDK warm-borrow contract and a real Alice/Bob policy-isolation regression; contract-aware re-review was clean.
  • CI-driven ownership repairs remove type-import cycles, a test-only production export, and a Node database fixture from the UI runtime tree. Madge reports 0 cycles; the exact storage-boundary test and affected form/native suites passed (71.27s), as did focused UI cases (7.07s). The changed loading regression costs 126ms / 2.57s standalone wall. Core/UI/extension and affected test types, scoped lint, and canonical production/script/full-tree export scans passed. Raw full Knip locally reports only three unchanged, untracked generated Apple Mermaid files; the hosted failure and all tracked-source findings are addressed without scanner exceptions.
  • The next hosted UI shard passed 8,018 assertions across 532 files but correctly failed on four unhandled errors from an incomplete chat identity test context. The fixture now supplies the existing Gateway helper and a static agent-selection subscription; production UI and the identity assertions are unchanged. The original test reproduced the failure locally. All seven focused identity/context/catalog tests now pass in 2.71s, with no unhandled errors; affected UI test types, lint and independent review also passed.
  • Accepted the native overload-retry P1. Native tool calls now carry both the runtime-owner and per-call grant assertions into the existing client’s final pre-write boundary, including every retry; sibling status/resource requests carry their owner guard. No retry policy, cancellation, or elicitation ownership changes. Four forbidden retry writes were reproduced before repair; all seven boundary cases now pass, and the related four-file suite passed 58 tests / 13.83s. The final seven-case run took 35ms test execution / 57.40s cold wrapper wall (44.39s compiler preparation). Scoped dependency-closure types, lint and assertion ratchet passed; independent P0/P1 review is clean.
Native retry final-I/O evidence

The checked-in native-mcp-app.authority.test.ts exercises the production adapter and production Codex client with the existing in-memory transport. The wire supplies -32001 before enqueue, then changes authority during backoff without aborting the signal. Counts below are observed transport writes, including the initial rejected request. This is deterministic boundary proof, not a claim that the live native server was overloaded; separate real-server acceptance is described above. No credentials or user data are involved.

Operation and authority Writes before repair Writes after repair Final result
Tool, owner revoked 2 1 Refused before retry I/O
Tool, per-call grant revoked 2 1 Refused before retry I/O
Catalog, owner revoked 2 1 Refused before retry I/O
Resource, owner revoked 2 1 Refused before retry I/O
Tool/catalog/resource, still authorized (three controls) 2 each 2 each Successful retry

The shared client remains open in every case. Upstream Codex was inspected at 8f73cdee456b6c46b791780d40cadf9d556d22a4; its ingress overload response rejects before queue admission.

  • Harness limitations and diagnoses: the native transport-loss investigation reproduced a test-launcher hazard: Linux killed bwrap --die-with-parent when its spawning thread exited, even with the parent process alive. A stable proof supervisor preserves the same sandbox flags; the control reproducer and a real native settings round-trip after 15s idle passed. Initial Full-access native form attempts were declined by upstream policy; a later guarded attempt overlapped a background call and was rejected. Swift/macOS execution is unverified on this Linux host. Earlier browser-conformance container compilation was killed before assertions, not counted as a pass. Android canonical-answer coverage passed (39 tests).

Before/after images below show the same live reference app moving from an inline tool result to a conversation-side app with removable context.

Before

Before: the reference app in an inline tool result

After

After: a conversation-side app with removable text and image context

Maintainer landing notes (October 2026)

  • Installed-client answers (ClawSweeper P1, fixed). Released Android and pre-PR Apple clients submit the option label for rich-form choices. QuestionManager.validateAnswers now resolves every submitted string to one canonical answer: an exact option.value match wins; otherwise a label match (exact for form/secret questions, trim-insensitive otherwise) that identifies exactly one option resolves to that option's value ?? label; anything else stays free text and is accepted only for isOther questions. Label-sending and value-sending clients converge on the same stored answer with no capability negotiation. The regression tests fail on the pre-fix code.
  • Unconditional saves (owner decision: accepted). mcp.app.writeResource keeps the upstream extension contract where ifMatch is optional. An omitted ifMatch is a last-writer-wins save, limited to the file the same view already opened writable, under the same session and requester authority. Apps that protect concurrent edits send the read ETag, as the docs state. No force-save or broader file grant exists.
  • Integrated with current main. Main now generates the Kotlin and Swift protocol models from the schema at build time (build(apps): generate native protocol models at build time #162251), so this PR's hand-written model edits were dropped; the generated models carry QuestionOption.value, the form fields and the mcp.app.* methods (pnpm protocol:check passes for both). Conflicts with main's Gateway and UI refactors were resolved on main's owners; the moved cleanup export and the retired sync workspace-root helper (removed in fix: recover workspace icons without repeated unavailable requests #162885 with its last consumer) were re-homed at their owners; the agent-runner MCP context projection moved to a sibling module for the line-cap ratchet with identical logic.
  • Startup budget. The Control UI startup gate measures the eight initial-entry chunks. On the merged tree the PR added about 1.2 KB gzip there (main alone 372,857 B); deferring the MCP app link parser behind a cheap scheme/host probe in the document click handler and registering the MCP app English strings from their lazy consumers (the repo's register*English pattern) brings the landing head to 373,137 B, under the unchanged 373,454 B limit. No baseline change. The link probe only intercepts the /<plugin>/app/<tool> shape, so ordinary ChatGPT plugin pages keep default navigation.
  • File subscriptions on busy macOS Gateways. mcp.app.subscribeResource watched the file's directory, and FSEvents directory watches drop events under load on macOS (the same failure fix(test): checkout fixture loses its report on loaded macOS hosts #162487 fixed in the checkout fixture; reproduced on the landing host: 0 directory events, 1 file event). Subscriptions now watch the file itself (kqueue) and re-arm on atomic replacement.
  • Formatter blind spot. .oxfmtrc.jsonc ignored apps/ unanchored, which also excluded ui/src/pages/apps/; it is now root-anchored and the four affected files are formatted. Root apps/ stays excluded.
  • Local proof on the landing head is recorded in the PR comments by the landing chain; Android compilation is not available on the landing host (Kotlin generation and contract checks pass instead).

roboclaw-bot and others added 5 commits September 30, 2026 05:02
Extend the opt-in MCP Apps host with discovery and entrypoints, settings, rich forms, scoped file editing, multimodal context, deep links, and native Codex session preparation. Preserve existing requester, approval, runtime, and file authority owners.

Co-authored-by: steipete <[email protected]>
Reuse the canonical bounded plugin approval preview without rejecting otherwise valid large App arguments. Keep the same one-shot approval and live-authority gates. Bound context-strip icons and scrolling so attachments leave the composer usable.

Co-authored-by: steipete <[email protected]>
Keep App fullscreen rendering in the existing browser top layer and return to inline for same-conversation questions or approvals without replacing the iframe. Consolidate host-context, resource, and input notifications under the existing bridge lifetime.

Co-authored-by: steipete <[email protected]>
Preserve main's run identity and protocol table ownership, allow bounded rich display text, and isolate App context by agent. Reject unsupported selected native harnesses instead of opening another transport.

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: android App: android app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling extensions: codex size: XL labels Sep 30, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 30, 2026
@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 2, 2026, 7:45 AM ET / 11:45 UTC (Revision 10).

ClawSweeper review

What this changes

Extends the opt-in MCP Apps host with direct launch, server settings, conversation attachments, workspace file editing, rich forms, and existing native Codex connections.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep open: this is maintainer-sponsored work that current main does not replace. One resource-metadata forwarding defect remains; earlier authority and installed-client findings are repaired.

Priority: P2
Reviewed head: cead410702da6ed8bb6da7fea191ad8f349c34f3

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong real MCP evidence supports the feature, while a definite metadata-forwarding defect and remaining client compatibility confirmation prevent a merge-ready rating.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Recorded real Gateway/Control UI runs exercise the changed direct and native App owners with Bits & Bolts 0.1.11, observing settings readback, conflict-aware file saves, view survival, and rich-form results. Production-adapter/client traces also cover revoked-owner and revoked-grant rejection before retry I/O. Preserve that sufficient evidence; Apple and Telegram confirmation remain separate scoped compatibility gates. Prepared media contained unrelated icon images, and this PR’s attachment fetches failed reviewer-side. No new durable Gateway data model was identified.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Recorded real Gateway/Control UI runs exercise the changed direct and native App owners with Bits & Bolts 0.1.11, observing settings readback, conflict-aware file saves, view survival, and rich-form results. Production-adapter/client traces also cover revoked-owner and revoked-grant rejection before retry I/O. Preserve that sufficient evidence; Apple and Telegram confirmation remain separate scoped compatibility gates. Prepared media contained unrelated icon images, and this PR’s attachment fetches failed reviewer-side. No new durable Gateway data model was identified.
Evidence reviewed 11 items Pinned introduction and review continuity: Inspected introduced hunks from ee578bc to cead410. The targeted comparison against the previous reviewed head is empty for the resource RPC and operation owner, establishing that the newly identified forwarding defect was equally visible then.
Resource metadata is dropped: The new RPC accepts resource _meta and the browser bridge forwards it, but executeMcpAppOperation calls runtime.readResource with only server and URI. The direct adapter forwards metadata when supplied; the native adapter explicitly rejects unsupported metadata. Neither behavior is reached through this RPC.
Documented representation contract: The added SDK documentation explicitly promises forwarding resource metadata for managed clients and a visible unsupported-representation error for native remote reads.
Findings 1 actionable finding [P2] [P2] Forward resource metadata to the selected MCP runtime
Security None None.

How this fits together

MCP Apps display interactive interfaces supplied by configured tool servers. The Gateway binds their requests to conversation, requester, approval, and workspace authority before forwarding them to direct MCP transports or the conversation’s native Codex connection.

flowchart TD
 A[Configured MCP servers] --> B[App discovery and launch]
 C[Conversation and requester] --> B
 B --> D[Sandboxed App interface]
 D --> E[Gateway authority and approval checks]
 E --> F[Direct or native MCP connection]
 E --> G[Scoped workspace files]
 F --> H[App results and conversation context]
 G --> H
Loading

Before merge

  • [P2] Forward resource metadata to the selected MCP runtime (P2) - The new bridge and RPC accept resource _meta, but executeMcpAppOperation still calls runtime.readResource(server, uri) without its options. An App requesting a metadata-selected representation therefore gets the server’s default representation on direct MCP connections; native requests also bypass the adapter’s explicit unsupported-metadata error. Forward the metadata through the common operation owner and cover both outcomes at the RPC boundary. This was equally visible at the previous reviewed head; this finding is a late discovery.
  • Resolve merge risk (P1) - Apple question-control compatibility remains unverified at runtime for canonical choices, defaults, optional clearing, and multiline submission.
  • Resolve merge risk (P1) - Telegram’s changed canonical-choice resolution and label-based terminal feedback still lack the required Test Server userbot confirmation.
  • Complete next step (P2) - Repair resource-metadata forwarding and record the outstanding Apple-client and Telegram Test Server compatibility results.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P2] [P2] Forward resource metadata to the selected MCP runtime — src/gateway/server-methods/mcp-app.ts:424-428
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus regression coverage growth production/tooling +9,477 lines; tests/support +6,421 lines The substantial production growth is justified in the PR by the expanded interactive App workflows and reuse of existing owners.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete client compatibility confirmation (recommended)
    Record the Apple question-control run and Telegram Test Server answer round trip before landing the changed shared question contract.

Technical review

Best possible solution:

Preserve the existing transport and authority owners while carrying resource metadata end to end and confirming consistent question answers across native and channel clients.

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

Yes, for the identified patch defect: an App resource read with nonempty _meta reaches the RPC but loses that metadata before runtime dispatch. This is source-proven on the pinned PR head; no code was executed.

Is this the best way to solve the issue?

The existing-owner approach fits the sponsored feature, but the implementation is incomplete: forwarding resource metadata through the common operation owner is the narrow repair.

Full review comments:

  • [P2] [P2] Forward resource metadata to the selected MCP runtime — src/gateway/server-methods/mcp-app.ts:424-428
    The new bridge and RPC accept resource _meta, but executeMcpAppOperation still calls runtime.readResource(server, uri) without its options. An App requesting a metadata-selected representation therefore gets the server’s default representation on direct MCP connections; native requests also bypass the adapter’s explicit unsupported-metadata error. Forward the metadata through the common operation owner and cover both outcomes at the RPC boundary. This was equally visible at the previous reviewed head; this finding is a late discovery.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ca7b5d41b338.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): Recorded real Gateway/Control UI runs exercise the changed direct and native App owners with Bits & Bolts 0.1.11, observing settings readback, conflict-aware file saves, view survival, and rich-form results. Production-adapter/client traces also cover revoked-owner and revoked-grant rejection before retry I/O. Preserve that sufficient evidence; Apple and Telegram confirmation remain separate scoped compatibility gates. Prepared media contained unrelated icon images, and this PR’s attachment fetches failed reviewer-side. No new durable Gateway data model was identified.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.
  • remove merge-risk: 🚨 other: Current PR review merge-risk labels are merge-risk: 🚨 compatibility.

Label justifications:

  • P2: This is an opt-in capability expansion with a bounded resource-forwarding defect rather than an urgent default-workflow regression.
  • merge-risk: 🚨 compatibility: The shared question contract changes canonical answers across native and channel clients whose runtime compatibility confirmation remains incomplete.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): Recorded real Gateway/Control UI runs exercise the changed direct and native App owners with Bits & Bolts 0.1.11, observing settings readback, conflict-aware file saves, view survival, and rich-form results. Production-adapter/client traces also cover revoked-owner and revoked-grant rejection before retry I/O. Preserve that sufficient evidence; Apple and Telegram confirmation remain separate scoped compatibility gates. Prepared media contained unrelated icon images, and this PR’s attachment fetches failed reviewer-side. No new durable Gateway data model was identified.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded real Gateway/Control UI runs exercise the changed direct and native App owners with Bits & Bolts 0.1.11, observing settings readback, conflict-aware file saves, view survival, and rich-form results. Production-adapter/client traces also cover revoked-owner and revoked-grant rejection before retry I/O. Preserve that sufficient evidence; Apple and Telegram confirmation remain separate scoped compatibility gates. Prepared media contained unrelated icon images, and this PR’s attachment fetches failed reviewer-side. No new durable Gateway data model was identified.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. Shared question changes affect Telegram button answer values and visible terminal labels, which require Test Server userbot confirmation.

Evidence

Acceptance criteria:

  • [P1] pnpm test src/gateway/server-methods/mcp-app.test.ts extensions/codex/src/app-server/native-mcp-app.test.ts --maxWorkers=1.
  • [P1] pnpm test src/agents/agent-bundle-mcp-runtime.test.ts --maxWorkers=1.
  • [P1] git diff --check.

What I checked:

  • Pinned introduction and review continuity: Inspected introduced hunks from ee578bc to cead410. The targeted comparison against the previous reviewed head is empty for the resource RPC and operation owner, establishing that the newly identified forwarding defect was equally visible then. (src/gateway/server-methods/mcp-app.ts:428, cead410702da)
  • Resource metadata is dropped: The new RPC accepts resource _meta and the browser bridge forwards it, but executeMcpAppOperation calls runtime.readResource with only server and URI. The direct adapter forwards metadata when supplied; the native adapter explicitly rejects unsupported metadata. Neither behavior is reached through this RPC. (src/gateway/mcp-app-operations.ts:526, cead410702da)
  • Documented representation contract: The added SDK documentation explicitly promises forwarding resource metadata for managed clients and a visible unsupported-representation error for native remote reads. Public docs: docs/plugins/sdk-entrypoints.md. (docs/plugins/sdk-entrypoints.md:99, cead410702da)
  • Applicable native dependency contract: The patch calls Codex mcpServer/resource/read and claims compatibility with its protocol. Personally inspected McpResourceReadParams, which has thread, origin, server, URI, connector, and target fields but no _meta. Repository ownership was verified through the backing cache’s canonical https://github.com/openai/codex.git remote. (codex-rs/app-server-protocol/src/protocol/v2/mcp.rs:112, 8e68a98ef03c)
  • Prior native authority finding repaired: Native tool calls compose owner and per-call assertions into the production client’s final pre-write guard, including retries. The seven-case boundary regression records rejection before retry writes after owner or grant revocation, alongside authorized controls. (extensions/codex/src/app-server/native-mcp-app.ts:239, cead410702da)
  • Recorded real MCP proof and captured body: The captured body, SHA-256 f2590fc3daa6ac03553c0820dd39a07954721ddda564526a7ff9a64338d68e07, and disposition comment describe credential-free real Gateway/Control UI acceptance with Bits & Bolts 0.1.11 through direct and native transports, including settings readback, file conflicts, mounted-view survival, and canonical rich-form answers. The full REST body fills the supplied omitted ending without introducing Apple or Telegram runtime proof. (cead410702da)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Josh Avant: 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.

  • Forward resource _meta through the common operation owner and verify direct forwarding plus native rejection.
  • Record Apple-client question behavior and Telegram Test Server canonical-choice and terminal-label confirmation.

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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-30T08:28:17.318Z sha ad3361f :: needs real behavior proof before merge. :: [P1] Recheck App authority before every native tool-call write
  • reviewed 2026-09-30T10:51:34.091Z sha 3b39f64 :: needs real behavior proof before merge. :: [P1] Recheck App authority before every native tool-call write
  • reviewed 2026-09-30T11:36:25.186Z sha 0761176 :: needs real behavior proof before merge. :: [P1] Recheck App authority before every native tool-call write
  • reviewed 2026-09-30T11:50:40.247Z sha b5327cb :: blocked before merge. :: none
  • reviewed 2026-09-30T12:45:32.073Z sha b5327cb :: blocked before merge. :: none
  • reviewed 2026-09-30T13:37:03.591Z sha b5327cb :: blocked before merge. :: [P1] Preserve answers from installed mobile clients for rich forms
  • reviewed 2026-10-02T09:25:25.776Z sha ea579b5 :: blocked before merge. :: none
  • reviewed 2026-10-02T10:36:45.577Z sha 83a6c94 :: blocked before merge. :: none

roboclaw-bot and others added 2 commits September 30, 2026 08:11
Resolve the actual Apps-page conflict while retaining main subscription ownership and existing plugin App state.

Co-authored-by: steipete <[email protected]>
Preserve the upstream optional ifMatch contract and document unconditional-save semantics explicitly.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot

roboclaw-bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

Review disposition for the updated candidate:

  • Accepted the failed-launch cleanup finding. The registered RPC regressions reproduced leaked retained access on both upload-preparation rejection and view-fetch rejection. Launch now has one cleanup guard and transfers the borrow to the installed view only after successful preparation and current-authority validation.

  • The proposed mandatory ifMatch change conflicts with the requested upstream wire contract. The OpenAI extension specification declares ifMatch?: string with the explicit comment “Omit to write without a version check.” It also says: “If ifMatch is provided, the resource will only be updated if the ETag provided matches the latest value.” This implementation intentionally supports both conditional and unconditional saves. Both require a prior writable read, the exact host-issued file URI, and current session/requester/file authority. The docs now state the last-writer-wins tradeoff explicitly and recommend ETags for concurrent editing. The registered-route tests preserve both branches; the live conditional-save test preserves an intervening external edit. No force-save option or broader file grant is being added.

  • The optional versioned harness capability is the narrow existing-owner extension needed for the maintainer-requested full native feature. It adds no required method to existing plugins and is documented with its authority/lifecycle contract. Unsupported native runtimes fail closed rather than opening a second transport. The feature remains opt-in through the existing Apps setting; no new default, database schema, retention policy, or migration is introduced.

  • The actual Apps-page conflict with main was resolved using main’s subscription owner, preserving App launch state. Focused UI proof passed.

  • Accepted the ordinary-turn runtime invalidation and missing native-startup signal findings. Canonical selection now owns App validity; observed last-run fields cannot retire a valid view. Cold preparation retains cancellation authority. The runtime suite failed ten cases before repair and passes all twenty; a real mounted App survives an ordinary turn and then performs approved read/write calls through the same view.

  • Accepted onboarding custody and concurrent cold-start findings. Real router/transcript tests prove onboarding input survives the outer ACK while caller/session revocation still blocks it. Cold native preparation uses the existing reentrant binding lease; waiting discoveries reuse the established owner. No second connection, lock owner, or persisted schema was added.

  • Rejected the later queued-borrow concern after inspecting the unchanged SDK contract: warm App interactions explicitly borrow the conversation-owned native connection without preparation. The queued path is equivalent. A real lifecycle/client regression proves Alice and restricted Bob share one startup while Bob keeps his identity and denied-tool projection. Contract-aware independent review is clean.

  • Native forms respect upstream policy: Full access maps to native approval policy never, so Codex may decline before forwarding. Workspace-mode real native forms returned canonical answers and uploaded resource URIs. Concurrent reference-app thumbnail calls can occupy the single native elicitation route; the focused form proof used an authenticated, unmounted file-view launch to avoid unrelated background work, not an alternate transport.

  • Native transport-loss investigation reproduced a proof-launcher hazard: bwrap --die-with-parent dies when a short-lived spawning thread exits. A stable test supervisor keeps every sandbox flag; the short-lived-thread control and a real native RPC after 15 seconds idle pass. No production permissions or isolation were weakened.

Product build and selected isolated direct/native acceptance are complete; the PR is ready for review, not merged. The first exact-head CI exposed type-import cycles, an unused test-only production export, and a Node database seed helper in the UI runtime tree. These ownership defects are now repaired with a complete caller cutover; Madge, the exact storage-boundary regression, focused form/native/UI tests, types, lint, and strict UI performance passed. The source-only correction received a clean independent review. Hosted CI for the replacement head remains an enforced gate; no workflow rerun or merge bypass has been requested.

  • Accepted the native overload-retry P1. Native tool calls now carry both the runtime-owner and per-call grant assertions into the existing client’s final pre-write boundary, including every retry; sibling status/resource requests carry their owner guard. No retry policy, cancellation, or elicitation ownership changes. Four forbidden retry writes were reproduced before repair; all seven boundary cases now pass, and the related four-file suite passed 58 tests / 13.83s. The final seven-case run took 35ms test execution / 57.40s cold wrapper wall (44.39s compiler preparation). Scoped dependency-closure types, lint and assertion ratchet passed; independent P0/P1 review is clean.
Native retry final-I/O evidence

The checked-in native-mcp-app.authority.test.ts exercises the production adapter and production Codex client with the existing in-memory transport. The wire supplies -32001 before enqueue, then changes authority during backoff without aborting the signal. Counts below are observed transport writes, including the initial rejected request. This is deterministic boundary proof, not a claim that the live native server was overloaded; separate real-server acceptance is described above. No credentials or user data are involved.

Operation and authority Writes before repair Writes after repair Final result
Tool, owner revoked 2 1 Refused before retry I/O
Tool, per-call grant revoked 2 1 Refused before retry I/O
Catalog, owner revoked 2 1 Refused before retry I/O
Resource, owner revoked 2 1 Refused before retry I/O
Tool/catalog/resource, still authorized (three controls) 2 each 2 each Successful retry

The shared client remains open in every case. Upstream Codex was inspected at 8f73cdee456b6c46b791780d40cadf9d556d22a4; its ingress overload response rejects before queue admission.

The native retry finding is accepted and repaired, not waived. Replacement-head CI/security/review remain enforced before merge.

  • The next hosted UI shard passed 8,018 assertions across 532 files but correctly failed on four unhandled errors from an incomplete chat identity test context. The fixture now supplies the existing Gateway helper and a static agent-selection subscription; production UI and the identity assertions are unchanged. The original test reproduced the failure locally. All seven focused identity/context/catalog tests now pass in 2.71s, with no unhandled errors; affected UI test types, lint and independent review also passed.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: android App: android app: web-ui App: web-ui docs Improvements or additions to documentation extensions: codex feature: ✨ showcase ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts security-sensitive-changed size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants