Skip to content

[MCP code mode] Qualify an isolated JavaScript runner with a Recoup API bridge #1306

Backlog

Description

@sidneyswift

Part of the Recoup MCP autonomy epic. Technical specification and amendments.

Proposed owner — API runtime and infrastructure

Depends on — Can start with the technical specification.

Deliverable

Build a short-lived JavaScript runner and a typed bridge for Recoup operations. Qualify Cloudflare Dynamic Workers first and benchmark the same interface on Vercel Sandbox when isolation, latency, region or cost warrants it. The Recoup API owns sign-in, permissions, approval decisions and business dispatch.

Acceptance and evidence

  • Use a fresh guest per run, outbound-deny isolation and a typed request-bound channel. The supervisor holds credentials and provides the authenticated account and resource context to the owning API outside guest control. Generated code has no credentials, general network, filesystem or process access.
  • Supply read and action bridge methods. Bind the accepted run and stable per-effect key outside guest control. Use inert fixtures to verify that a read-only profile rejects an action, and that an action-capable bridge forwards to the API and returns its allow, denial or interaction decision.
  • Enforce wall time, CPU, memory, input/output, concurrent read and nested-call limits. Exercise tenant isolation, cold starts, kill/restart, repeated callbacks, lost responses, membership loss and cancellation before/after API admission. Preserve accepted receipts and prevent duplicate dispatch.
  • Measure p50/p95 cold/warm latency, successful invocation cost, setup, timeouts, region, data handling and retention. Publish the pinned SDK, compatibility date and adapter contract results before admitting production execution. API-owned durable jobs handle work that outlives a short program.

Activity

  1. changed the title [-][MCP code mode] Qualify an isolated JavaScript runner with a Recoup-only operation bridge[/-] [+][MCP code mode] Qualify an isolated JavaScript runner with a Recoup API bridge[/+] on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions