Skip to content

Support Devin CLI workers using SWE-2 and SWE-1.6 #69

Closed

Description

@arjitj2

Current scope (maintainer, 2026-10-13)

Registry unit U5, read-only. See the captures and design-pass comment below for the evidence and the accepted and rejected points.

Acceptance criteria

  • Given a sheet uses devin:swe-2@<medium|high|max> or devin:swe-1.6@default, when the runner dispatches it read-only from either parent, then argv carries the full variant ID (swe-2-max, swe-1-6). The receipt's model proof is the export's generation_model, equal to that ID, and the reply comes from the export, not stdout.

  • Given an isolated-write Devin lane, when it resolves, then it is refused before launch.

  • Given a Devin lane, when it runs, then it uses a run-owned lockdown --config that turns off subagents, MCP, web search and host rules, and its environment omits DEVIN_PERMISSION_MODE, DEVIN_SANDBOX, DEVIN_MODEL and DEVIN_REFUSAL_FALLBACK.

  • Given the captured shapes, when the adapter classifies them, then:

    • logged out at exit 0 is unauthenticated;
    • an unknown status is inconclusive and maps to child-failed;
    • an unknown model is unavailable-model;
    • SIGINT and SIGTERM are cancelled;
    • a rejected tool with an empty final message is a failure.

    Unit tests use sanitized capture fixtures.

  • Given setup, when a role whose playbook delegates with isolated-write is assigned to a read-only-only provider, then setup refuses it and says why. A read-only role such as how explorer accepts devin:swe-2@max and probes it through the runner.

  • Existing Claude, Codex and Grok argv and receipts are unchanged. Bun tests, strict typecheck, static invariants and plugin validation pass.

Live checks

Both harnesses, from the candidate head, with --self-test:

  • runner with --runner-route devin:swe-2@max --runner-route devin:swe-1.6@default;
  • setup: how explorer assigned to SWE-2;
  • catalog: a Devin lane, reported as external.

Original request

Add an optional Devin CLI provider to pstack's external runner so Codex and Claude Code can delegate selected roles to SWE-2 or SWE-1.6 while retaining the parent coordinator.

Scope: explicit model and effort mapping, authentication checks, non-interactive invocation, bounded access modes, result receipts, setup documentation, and runner tests. Existing default panels remain unchanged. Devin is an external provider, not a new parent harness.

This belongs in open-pstack's provider adapters because it connects an additional CLI to the existing cross-harness runner without changing Cursor's upstream workflows.

Activity

  1. ericlitman commented on Oct 1, 2026

    @ericlitman
    Owner

    Prior art: #70. Waits on the registry design in #103.

  2. Repository owner deleted a comment from mast-factory on Oct 2, 2026
  3. ericlitman commented on Oct 12, 2026

    @ericlitman
    Owner

    The #103 registry design was approved on 2026-10-11 (design, PR #154). Devin is unit U5:

    • Entries: one adapter in runner/providers/devin.ts, one line in registry/providers.ts, and family entries for SWE-2 (efforts: { medium: "swe-2-medium", high: "swe-2-high", max: "swe-2-max" }) and SWE-1.6.
    • SWE-1.6 effort: decision 5 names the single effort default, so devin:swe-1.6@default runs --model swe-1-6.
    • Model proof and usage: these come from the --export ATIF file, which the runner reserves inside a private directory.
    • Capture before the adapter ships: a logged-out status (with a temporary empty HOME), a failed turn, a cancelled turn, and tool approval in auto and accept-edits. An access mode that the captures do not show to be bounded is left out of launch.supports.
    • Open for this issue: whether the research-preview --sandbox counts as bounded.

    This issue now waits on #155, #156 and #157.

  4. ericlitman commented on Oct 12, 2026

    @ericlitman
    Owner

    Recorded from the registry design review (Greptile on PR #154, #154 (comment)): the model-id branch of FamilyEntry cannot keep a predecessor's effort-to-model map. If a released Devin family later changes its model slug, RELEASED_PAIRS would require the old pair to keep resolving, and this shape cannot store the old mapping. U5 should add a predecessor shape for model-id families with a resolution test, or state why SWE-2 and SWE-1.6 do not need one.

  5. ericlitman commented on Oct 14, 2026

    @ericlitman
    Owner

    Captures and design pass (2026-10-13)

    Captures of Devin 3000.10.21 on the operator's Mac: ~/projects/docs/projects/open-pstack/records/2026-10-13-batch-54/devin-captures/report.md (private docs repo). The raw files stay local, because they carry account identity. Design pass by Astra (high, read-only at 40d506c): design-69.md in the same folder.

    What the captures changed

    • --sandbox forces Devin's autonomous mode and lets shell commands write in the cwd, so auto --sandbox is not read-only. Read-only is auto without --sandbox, enforced by Devin's approval policy, as Claude's plan mode is.
    • No complete bounded writer exists. --sandbox OS-bounds shell writes but rejects the edit tools, and accept-edits without --sandbox is bounded only by approval. So, by the design's rule, the adapter lists read-only only. This answers "whether --sandbox counts as bounded": not as a writer mode.
    • Devin loads the host's CLAUDE.md, MCP servers, web search and subagents by default, and no flag turns them off. A run-owned --config lockdown file does (subagents_enabled: false, read_config_from sources false, and permissions.deny for mcp__*, web_search, webfetch, run_subagent, Fetch(http*://*)). Devin rewrites that file, so the runner creates it fresh in the lane's private provider directory.
    • Print mode needs --respect-workspace-trust false.
    • devin auth status exits 0 when logged out. The preflight reads stdout: ^Logged in \(via Devin\)\. passes, ^Not logged in\. is unauthenticated, and anything else is inconclusive.
    • The result and model proof come from the ATIF export: steps[-1].extra.generation_model equals the CLI model ID. Stdout can start with a first-use welcome banner.
    • Failure shapes:
      • unknown model: exit 1, no export, maps to unavailable-model/69;
      • SIGINT: exit 1 with an export, cancelled;
      • SIGTERM: exit 143, no export;
      • rejected tool: exit 0 with an empty final message, a failure.
    • The allowlist must drop DEVIN_PERMISSION_MODE, DEVIN_SANDBOX, DEVIN_MODEL and DEVIN_REFUSAL_FALLBACK (a model fallback).

    Accepted from the design pass

    • launch.supports: ["read-only"], with argv -p --prompt-file <prompt> --model <cliModel> --permission-mode auto --respect-workspace-trust false --export <absent path> --config <run-owned lockdown>.
    • The shared contract additions U1 left out: Lane.cliModel with an effort-to-model-ID map for model-ID providers, one optional provider sidecar directory per lane holding the lockdown config and the export, and an inconclusive preflight verdict mapped to child-failed/70.
    • ATIF parsing and the failure classification above, tested against sanitized fixtures built from the captures.
    • A shared base environment allowlist for Grok and Devin, with a test that the four DEVIN_* variables are dropped.
    • No predecessor shape for model-ID families yet: no released Devin pair exists. A later slug change brings the old effort map and its test.
    • Generalize the verifier's ROUTE and setup descriptor patterns beyond claude, codex and grok.

    Added by the orchestrator

    • Setup refuses a provider whose catalog route is read-only only for a role whose playbook delegates with isolated-write: feature, refactoring, bug-fix, perf-issue and hillclimb. Otherwise the probe passes and the role fails later at dispatch. The catalog states each provider's supported modes.

    Rejected

    • Live cases for each failure shape, every SWE-2 effort, lockdown tool attempts and unsupported-writer rejection. These are unit tests against captured shapes; the live gate proves the real route.
    • Claims of network isolation. Shell network access and fetch denial were not captured, so the catalog says so.

    Live checks (both harnesses, from the candidate head, with --self-test)

    • runner with --runner-route devin:swe-2@max --runner-route devin:swe-1.6@default.
    • setup: one case assigning the read-only role how explorer to devin:swe-2@max. Setup probes it through the runner and keeps it.
    • catalog: the fixture sheet adds a Devin lane, and the parent reports it as external.

    Order: after PR #182 (#54), which shares registry/models.ts, the catalog and the recipes.

  6. added a commit that references this issue on Oct 14, 2026
  7. added 2 commits that reference this issue on Oct 15, 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