Skip to content

feat(bin): add Devin CLI as a verified crewmate/scout worker adapter - #5188

Closed
belyaev-den wants to merge 5 commits into
kunchenguid:mainfrom
belyaev-den:fm/firstmate-devin-adapter
Closed

belyaev-den wants to merge 5 commits into
kunchenguid:mainfrom
belyaev-den:fm/firstmate-devin-adapter

Conversation

@belyaev-den

Copy link
Copy Markdown

Intent

Add Devin CLI as a worker runtime for firstmate: "what'd ya think about running dev with fusion as an implementer" - "devin cli & https://cognition.com/blog/devin-fusion - fable w/ free SWE-2 model" - route 2 of the two offered (a full verified Devin CLI adapter so firstmate can launch, steer, and watch Devin workers, unlocking both the free SWE-2 model and the paid Fusion lead-plus-sidekick pairings): "2 lgtm" - "paying for fusion - i approve".

Context: Devin CLI 3000.10.21 is installed at ~/.local/bin/devin and signed in (Devin Max plan). devin models list shows SWE-2 (swe-2-medium|high|max, free) and Fusion pairings (fusion-<lead>-sidekick-swe-2-medium, e.g. fusion-claude-fable-5-1-high-sidekick-swe-2-medium, fusion-gpt-5-6-sol-high-sidekick-swe-2-medium). devin --help shows --model <MODEL>, -p/--print non-interactive mode, --permission-mode auto|accept-edits|smart|dangerous, --respect-workspace-trust false, --prompt-file, --export [PATH] (exports after each turn), -c/--continue, -r/--resume [SESSION_ID], --config, and devin acp (Agent Client Protocol server over stdio). The captain approved Devin-billed Fusion pairings for workers; crewmate and scout use is the goal, not secondmate or primary use.

What Changed

  • Registered devin as a verified crewmate/scout-only harness across fm-spawn.sh, fm-control-lib.sh, fm-busy-lib.sh, fm-composer-lib.sh, fm-harness.sh, fm-agent-process-lib.sh, and fm-bootstrap.sh: spawns launch devin --permission-mode dangerous --respect-workspace-trust false --config <per-task snapshot> [--model <id>] -- <typed brief>, accept SWE-2 and Fusion model ids via --model, record --effort without passing it, and refuse --secondmate. Devin interrupt is a double Escape, exit is /quit, and the ❭ glyph, idle placeholder, and "esc twice to interrupt" / "Guide Devin while it works" footers are recognized as composer and delivery signals.
  • Added bin/fm-devin-config.sh, which writes a mode-600 per-task state/<id>.devin-config.json snapshot of the user's Devin config with generation-bound UserPromptSubmit/Stop/SessionEnd busy-state hooks appended; fm-control.sh interrupt invalidates the Devin busy record to unknown (cancel unconfirmed) because Devin emits no Stop on cancellation, and fm-teardown.sh removes the config file.
  • Added a portable regression (tests/fm-devin-harness.test.sh), an opt-in credentialed live guard (tests/fm-devin-signals-live-e2e.test.sh, gated by FM_DEVIN_SIGNALS_LIVE=1), new control/bootstrap test cases, the harness-adapters Devin reference, docs/verification/devin.md, and Devin mentions in AGENTS.md and the configuration, agent-control, architecture, backend, and trace-context docs.

🤖 Generated with Claude Code

Risk Assessment

✅ Low: The adapter follows the verified gemini/agy pattern at every enumeration site, the generation-bound hook wiring and conservative interrupt invalidation trace correctly, prior review-round fixes are intact, and the final commit is documentation only.

Testing

Ran the portable Devin adapter regression, the fm-control suite (including the new Devin interrupt invalidation test), and the fm-bootstrap suite (including no-key acceptance of a devin dispatch profile) as the baseline; all passed. Then drove the product live three times against the real Devin CLI in isolated homes with copied credentials and private tmux sockets: the credentialed guard with swe-2-medium, the same guard with the approved Fusion pairing, and a manual capture drive with swe-2-medium that kept styled 120x40 pane captures at launch-busy, idle, doorbell, busy-before-interrupt, canceled, and exited states, rendered into an HTML artifact. The manual drive also drove the real spawn path with --secondmate --harness devin and got the crewmate/scout-only refusal. Every live-driven scenario passed. The stale-generation Stop hook / malformed config scenario and the no-key bootstrap acceptance scenario were exercised only by the portable test suites, not against the live product, so they are recorded as untested live. The worktree is clean and my task temp directories were removed.

  • Live validation: ✅ go - 10 of 12 scenarios driven live against the product
Scenario Result Live Evidence
Captain spawns a Devin scout with the free SWE-2 model; the worker receives the typed launch brief, runs its shell tool, and writes answer.txt=80235 while the busy state flips fm-spawn -> devin-hook b… ✅ pass live devin-live-guard-swe2.log (stage 1), devin-manual-drive.log, pane-1-launch-busy.txt, pane-2-idle-after-brief.txt
Captain spawns a Devin worker on the paid Fusion pairing (Claude Fable 5.1 High + SWE-2 Medium); the full lifecycle (brief, doorbell, interrupt, exit, resume) completes ✅ pass live devin-live-guard-fusion.log (4 ok stages, exit 0)
Devin identifies itself as harness devin from inside its own shell tool despite inherited foreign markers (bin/fm-harness.sh output written to harness.txt) ✅ pass live devin-live-guard-swe2.log stage 1 (harness.txt=devin assertion)
Firstmate steers a running Devin worker with fm-send; Devin reads the inbox doorbell, writes steer.txt=1147, and moves the message into handled/ ✅ pass live devin-manual-drive.log, pane-3-steer-doorbell.txt, pane-5-busy-before-interrupt.txt, devin-live-guard-swe2.log stage 2
Firstmate interrupts a busy Devin worker with fm-control; Devin renders 'Canceled. What should Devin do?', the process stays alive, and the busy record becomes unknown fm-interrupt with cancel=uncon… ✅ pass live devin-fm-control-interrupt.log, pane-6-after-interrupt.txt, devin-manual-drive.log, devin-live-guard-*.log stage 3
Firstmate exits a Devin worker with fm-control; /quit returns the pane to a shell and prints the native resume hint ✅ pass live devin-fm-control-exit.log, pane-7-after-exit.txt
Native devin -r &lt;session&gt; resume with the private config reprocesses a new prompt (resumed.txt=493) and emits SessionStart source=resume ✅ pass live devin-live-guard-swe2.log and devin-live-guard-fusion.log stage 4
Adversarial: a --secondmate launch on devin is refused by the real spawn path with the crewmate/scout-only error and creates no endpoint ✅ pass live devin-secondmate-refusal.txt, devin-manual-drive.log
Adversarial: the idle Devin composer with its dim placeholder is classified empty by the styled composer guard so fm-send never overwrites a typed draft ✅ pass live devin-manual-drive.log (idle composer verdict: empty), devin-live-guard-*.log stage 2 precondition
Adversarial: a stale-generation Stop hook from a retired Devin incarnation neither clears the replacement's busy state nor touches turn-ended; a malformed user config is refused without replacing the… ⏸️ untested no Not driven against the live product. The prior run established this only through the portable test suite tests/fm-devin-harness.test.sh (config preservation and stale-generation rejection stage), whic…
Spawn records a devin dispatch with Fusion model and independent effort: --model reaches argv, effort is recorded in meta but never passed, private config path and autonomy/trust flags are in the laun… ✅ pass live devin-launch-command.sh, devin-task-meta.txt, devin-private-config.json (manual drive); tests/fm-devin-harness.test.sh spawn stage
Bootstrap without a TypeSafe key accepts a config/crew-dispatch.json default profile pinned to devin instead of reporting an unverified harness ⏸️ untested no Not driven against the live product. The prior run established this only through the portable test suite tests/fm-bootstrap.test.sh (devin no-key acceptance assertion), which runs bootstrap in a synth…
Evidence: Rendered tmux pane captures of the Devin worker lifecycle (launch busy, idle, doorbell, busy before interrupt, canceled, exited)

Source: Rendered tmux pane captures of the Devin worker lifecycle (launch busy, idle, doorbell, busy before interrupt, canceled, exited)

<!doctype html><meta charset="utf-8"><title>Devin worker pane captures</title><style>body{background:#111;color:#ddd;font-family:ui-monospace,Menlo,monospace;padding:16px}pre{background:#000;color:#eee;padding:12px;border:1px solid #444;width:120ch;overflow-x:auto;line-height:1.2}h2{font-size:14px;color:#9cf}</style><h1>Devin worker: tmux pane captures (120x40)</h1><h2>pane-1-launch-busy.ansi</h2><pre>
 <span style="color:#3c3">✓</span> Organization: MVD Lab
 <span style="color:#3c3">✓</span> You&#x27;re all set. Run <span style="font-weight:bold">devin</span> to get started.

⠀⣴⣾⣶⡄⠀⠀⠀⠀
⠀⠛⠿⠟⠻⣶⣾⣶⡄  Devin CLI
⠀⣤⣶⣦⣴⠿⢿⠿⠃  <span style="color:#7c7c7c">v3000.11.1</span>
⠀⠻⢿⠿⠃⠀⠀⠀⠀

<span style="color:#ffffff;background:#2a2a2a">❭</span><span style="background:#2a2a2a"> ⁣</span><span style="color:#ffffff;background:#2a2a2a">FIRSTMATE_OP: v1 launch-brief: # Current worker role contract</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">You are a crewmate: an autonomous worker agent managed by firstmate.</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">This section establishes your current identity before every project or task instruction below and supersedes any </span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">conflicting role identity in those instructions.</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">Do the assigned work yourself and report only to firstmate; do not adopt a firstmate or secondmate supervisor </span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">identity, delegate the task, run fleet supervision, or address the captain.</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">Your steering inbox is `/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/devin-</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">manual.inbox`; this exact path belongs to your current task even when it is outside the worktree or under the </span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">supervising firstmate home, so read and acknowledge its messages and do not reject it as another home&#x27;s state.</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">Never inspect or change any other home&#x27;s endpoint namespace; this authorization is limited to the exact task paths </span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">named by this brief.</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">When this task works on Firstmate itself, the repository root `AGENTS.md` (also imported by `CLAUDE.md`) is project </span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">content and the supervisor contract for the firstmate managing you: follow this brief instead of that supervisor </span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">contract.</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">Project instructions still govern the work wherever they do not conflict with this worker identity, including </span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">`CONTRIBUTING.md` and `firstmate-coding-guidelines` for Firstmate changes.</span><span style="background:#2a2a2a">

  </span><span style="color:#ffffff;background:#2a2a2a"># Task</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">## Captain&#x27;s intent</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">Runtime verification only: compute 12345 plus 67890 using your shell tool and write only the result into answer.txt. </span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">Do no other work and do not delegate. Later read and acknowledge Firstmate&#x27;s instruction inbox when the doorbell </span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">arrives.</span><span style="background:#2a2a2a">

  </span><span style="color:#ffffff;background:#2a2a2a">## Firstmate spec</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">Exercise the spawn behavior under test.</span><span style="background:#2a2a2a">

</span><span style="color:#ffaf87">⠸⠀</span><span style="color:#7c7c7c"> Thinking · 0s (esc twice to interrupt)</span>
<span style="color:#444444">──────────────────────────────────────────────────────────────────────────────────────────────</span> <span style="color:#dcdcaa">(bypass permissions on)</span> <span style="color:#444444">─
</span>❭ <span style="color:#7c7c7c">Guide Devin while it works</span>
<span style="color:#444444">────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
</span>SWE-2 Medium                                                                                  <span style="color:#7c7c7c">Run in Devin Cloud: /cloud
</span></pre><h2>pane-2-idle-after-brief.ansi</h2><pre><span style="background:#2a2a2a">  </span><span style="color:#ffffff;background:#2a2a2a">contract.</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">Project instructions still govern the work wherever they do not conflict with this worker identity, including </span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">`CONTRIBUTING.md` and `firstmate-coding-guidelines` for Firstmate changes.</span><span style="background:#2a2a2a">

  </span><span style="color:#ffffff;background:#2a2a2a"># Task</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">## Captain&#x27;s intent</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">Runtime verification only: compute 12345 plus 67890 using your shell tool and write only the result into answer.txt. </span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">Do no other work and do not delegate. Later read and acknowledge Firstmate&#x27;s instruction inbox when the doorbell </span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">arrives.</span><span style="background:#2a2a2a">

  </span><span style="color:#ffffff;background:#2a2a2a">## Firstmate spec</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">Exercise the spawn behavior under test.</span><span style="background:#2a2a2a">

</span> <span style="color:#4ade80">● </span>Ran command
 <span style="color:#444444">│</span> $ <span style="color:#dcdcaa">echo</span> $((12345 + 67890))
 <span style="color:#444444">│</span> 80235
 <span style="color:#444444">└</span> <span style="color:#7c7c7c">Exited with code 0</span>

 <span style="color:#4ade80">● </span>Wrote <span style="color:#7c7c7c">./answer.txt</span>
 <span style="color:#444444">└</span> <span style="color:#7c7c7c;background:#0d2818">1</span><span style="color:#ffffff;background:#0d2818"> </span><span style="color:#4ade80;background:#0d2818">+</span><span style="color:#ffffff;background:#0d2818">  80235</span><span styl

... [22023 bytes truncated] ...

caa">mv</span> <span style="color:#ce9178">&quot;/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/
</span> <span style="color:#444444">│</span>   <span style="color:#ce9178">devin-manual.inbox/001.msg&quot;</span> <span style="color:#ce9178">&quot;/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/</span>
 <span style="color:#444444">│</span>   <span style="color:#ce9178">devin-manual.inbox/handled/&quot;</span> <span style="color:#ffffff">&amp;&amp;</span> <span style="color:#dcdcaa">ls</span> <span style="color:#ce9178">&quot;/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/</span>
 <span style="color:#444444">│</span>   <span style="color:#ce9178">state/devin-manual.inbox&quot;
</span> <span style="color:#444444">│</span> 1147
 <span style="color:#444444">│</span> handled
 <span style="color:#444444">└</span> <span style="color:#7c7c7c">Exited with code 0</span>

 Handled <span style="color:#dcdcaa;background:#002b36"> 001.msg </span>:

   <span style="color:#7c7c7c">• </span>Computed <span style="color:#dcdcaa;background:#002b36"> 31 × 37 = 1147 </span> via the shell and wrote <span style="color:#dcdcaa;background:#002b36"> 1147 </span> to <span style="color:#dcdcaa;background:#002b36"> steer.txt </span>.
   <span style="color:#7c7c7c">• </span>Moved <span style="color:#dcdcaa;background:#002b36"> 001.msg </span> into <span style="color:#dcdcaa;background:#002b36"> devin-manual.inbox/handled/ </span>.
   <span style="color:#7c7c7c">• </span>Inbox is now empty — no further messages pending.

<span style="color:#ffffff;background:#2a2a2a">❭</span><span style="background:#2a2a2a"> </span><span style="color:#ffffff;background:#2a2a2a">: Firstmate instruction waiting: list &#x27;/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">state/devin-manual.inbox&#x27;/*.msg and, in numeric order, read and act on each, then mv each handled file to &#x27;/private/</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/devin-manual.inbox&#x27;/handled/.</span><span style="background:#2a2a2a">

</span> <span style="color:#7c7c7c">✱</span> <span style="color:#7c7c7c">Canceled. What should Devin do?</span>

<span style="color:#444444">──────────────────────────────────────────────────────────────────────────────────────────────</span> <span style="color:#dcdcaa">(bypass permissions on)</span> <span style="color:#444444">─
</span>❭ <span style="color:#7c7c7c">Ask Devin to build features, fix bugs, or work on your code</span>
<span style="color:#444444">────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
</span>SWE-2 Medium                                                                        <span style="color:#7c7c7c">Press opt+t to cycle thinking levels
</span></pre><h2>pane-7-after-exit.ansi</h2><pre><span style="background:#2a2a2a">  </span><span style="color:#ffffff;background:#2a2a2a">state/devin-manual.inbox&#x27;/*.msg and, in numeric order, read and act on each, then mv each handled file to &#x27;/private/</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/devin-manual.inbox&#x27;/handled/.</span><span style="background:#2a2a2a">

</span> <span style="color:#4ade80">● </span>Listed <span style="color:#7c7c7c">/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/devin-manual.inbox</span>

 <span style="color:#4ade80">● </span>Read <span style="color:#7c7c7c">/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/devin-manual.inbox/001.msg</span>
 <span style="color:#444444">└</span> <span style="color:#7c7c7c">4 lines</span>

 <span style="color:#4ade80">● </span>Ran command
 <span style="color:#444444">│</span> $ <span style="color:#dcdcaa">echo</span> $((31 * 37)) <span style="color:#ffffff">&amp;&amp;</span> <span style="color:#dcdcaa">printf</span> <span style="color:#ce9178">&#x27;%s&#x27;</span> <span style="color:#ce9178">&quot;$((31 * 37))&quot;</span> <span style="color:#ffffff">&gt;</span> <span style="color:#ce9178">&quot;/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/</span>
 <span style="color:#444444">│</span>   <span style="color:#ce9178">dvman.lUSCs9/wt/steer.txt&quot;</span> <span style="color:#ffffff">&amp;&amp;</span> <span style="color:#dcdcaa">mv</span> <span style="color:#ce9178">&quot;/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/
</span> <span style="color:#444444">│</span>   <span style="color:#ce9178">devin-manual.inbox/001.msg&quot;</span> <span style="color:#ce9178">&quot;/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/</span>
 <span style="color:#444444">│</span>   <span style="color:#ce9178">devin-manual.inbox/handled/&quot;</span> <span style="color:#ffffff">&amp;&amp;</span> <span style="color:#dcdcaa">ls</span> <span style="color:#ce9178">&quot;/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/</span>
 <span style="color:#444444">│</span>   <span style="color:#ce9178">state/devin-manual.inbox&quot;
</span> <span style="color:#444444">│</span> 1147
 <span style="color:#444444">│</span> handled
 <span style="color:#444444">└</span> <span style="color:#7c7c7c">Exited with code 0</span>

 Handled <span style="color:#dcdcaa;background:#002b36"> 001.msg </span>:

   <span style="color:#7c7c7c">• </span>Computed <span style="color:#dcdcaa;background:#002b36"> 31 × 37 = 1147 </span> via the shell and wrote <span style="color:#dcdcaa;background:#002b36"> 1147 </span> to <span style="color:#dcdcaa;background:#002b36"> steer.txt </span>.
   <span style="color:#7c7c7c">• </span>Moved <span style="color:#dcdcaa;background:#002b36"> 001.msg </span> into <span style="color:#dcdcaa;background:#002b36"> devin-manual.inbox/handled/ </span>.
   <span style="color:#7c7c7c">• </span>Inbox is now empty — no further messages pending.

<span style="color:#ffffff;background:#2a2a2a">❭</span><span style="background:#2a2a2a"> </span><span style="color:#ffffff;background:#2a2a2a">: Firstmate instruction waiting: list &#x27;/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">state/devin-manual.inbox&#x27;/*.msg and, in numeric order, read and act on each, then mv each handled file to &#x27;/private/</span><span style="background:#2a2a2a">
  </span><span style="color:#ffffff;background:#2a2a2a">var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/devin-manual.inbox&#x27;/handled/.</span><span style="background:#2a2a2a">

</span> <span style="color:#7c7c7c">✱</span> <span style="color:#7c7c7c">Canceled. What should Devin do?</span>

<span style="color:#ffffff;background:#2a2a2a">❭</span><span style="background:#2a2a2a"> </span><span style="color:#ffffff;background:#2a2a2a">/quit</span><span style="background:#2a2a2a">

</span> devin -r <span style="font-weight:bold">abalone-plywood</span>
 <span style="opacity:.6">resumes this session · devin -r lists recent sessions</span>


The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$
</pre>
Evidence: Live guard transcript, free SWE-2 Medium

Source: Live guard transcript, free SWE-2 Medium

ok - devin 3000.11.1 (cc4e349ca55e): spawn brief, model, autonomy, trust, identity and native Stop ok - devin 3000.11.1 (cc4e349ca55e): real fm-send doorbell read and acknowledged ok - devin 3000.11.1 (cc4e349ca55e): double Escape cancels, preserves agent, and invalidates busy state ok - devin 3000.11.1 (cc4e349ca55e): /quit and native -r session resume FM_TEST_END ... exit=0 duration_ms=263460

FM_TEST_BEGIN 2026-09-21T20:07:26Z tests/fm-devin-signals-live-e2e.test.sh family=live-harness-optin expected_gate_skip=live-capability
ok - devin 3000.11.1 (cc4e349ca55e): spawn brief, model, autonomy, trust, identity and native Stop
ok - devin 3000.11.1 (cc4e349ca55e): real fm-send doorbell read and acknowledged
ok - devin 3000.11.1 (cc4e349ca55e): double Escape cancels, preserves agent, and invalidates busy state
ok - devin 3000.11.1 (cc4e349ca55e): /quit and native -r session resume
FM_TEST_END 2026-09-21T20:11:50Z tests/fm-devin-signals-live-e2e.test.sh exit=0 duration_ms=263460 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=263534
FM_TEST_SUMMARY_FAMILY family=live-harness-optin count=1 duration_ms=263460 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-devin-signals-live-e2e.test.sh duration_ms=263460
exit=0
Evidence: Live guard transcript, Fusion (Claude Fable 5.1 High + SWE-2 Medium)

Source: Live guard transcript, Fusion (Claude Fable 5.1 High + SWE-2 Medium)

ok - devin 3000.11.1 (cc4e349ca55e): spawn brief, model, autonomy, trust, identity and native Stop ok - devin 3000.11.1 (cc4e349ca55e): real fm-send doorbell read and acknowledged ok - devin 3000.11.1 (cc4e349ca55e): double Escape cancels, preserves agent, and invalidates busy state ok - devin 3000.11.1 (cc4e349ca55e): /quit and native -r session resume FM_TEST_END ... exit=0 duration_ms=73628

FM_TEST_BEGIN 2026-09-21T20:07:30Z tests/fm-devin-signals-live-e2e.test.sh family=live-harness-optin expected_gate_skip=live-capability
ok - devin 3000.11.1 (cc4e349ca55e): spawn brief, model, autonomy, trust, identity and native Stop
ok - devin 3000.11.1 (cc4e349ca55e): real fm-send doorbell read and acknowledged
ok - devin 3000.11.1 (cc4e349ca55e): double Escape cancels, preserves agent, and invalidates busy state
ok - devin 3000.11.1 (cc4e349ca55e): /quit and native -r session resume
FM_TEST_END 2026-09-21T20:08:43Z tests/fm-devin-signals-live-e2e.test.sh exit=0 duration_ms=73628 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=73701
FM_TEST_SUMMARY_FAMILY family=live-harness-optin count=1 duration_ms=73628 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-devin-signals-live-e2e.test.sh duration_ms=73628
exit=0
Evidence: Manual live drive log (busy transitions, composer verdict, interrupt and exit outcomes)

Source: Manual live drive log (busy transitions, composer verdict, interrupt and exit outcomes)

busy after spawn: busy fm-spawn busy during launch brief: busy devin-hook ok - launch brief executed (answer.txt=80235), Stop hook settled to idle devin-hook, agent alive idle composer verdict: empty ok - fm-send doorbell: steer.txt=1147, inbox message acknowledged into handled/, settled to idle devin-hook busy after interrupt: unknown fm-interrupt ok - fm-control interrupt: Devin rendered Canceled, agent alive, state unknown fm-interrupt, cancel=unconfirmed ok - fm-control exit: /quit returned the pane to a shell

ok - secondmate launch refused: error: devin is a verified crewmate/scout adapter only and cannot run a secondmate; it has no primary supervision protocol. Select a harness verified for secondmates.
ok - fm-spawn produced launch command, meta, private config for model swe-2-medium
busy after spawn: busy fm-spawn
busy during launch brief: busy devin-hook
ok - launch brief executed (answer.txt=80235), Stop hook settled to idle devin-hook, agent alive
idle composer verdict: empty
ok - idle composer classified empty
ok - fm-send doorbell: steer.txt=1147, inbox message acknowledged into handled/, settled to idle devin-hook
busy after interrupt: unknown fm-interrupt
ok - fm-control interrupt: Devin rendered Canceled, agent alive, state unknown fm-interrupt, cancel=unconfirmed
busy after exit: unknown missing
ok - fm-control exit: /quit returned the pane to a shell; busy record: unknown missing
ok - devin 3000.11.1 (cc4e349ca55e) manual drive complete (model swe-2-medium)
Evidence: Generated Devin launch command from fm-spawn

Source: Generated Devin launch command from fm-spawn

env -u CLAUDECODE -u PI_CODING_AGENT -u GROK_AGENT -u FM_PI_HARNESS -u FM_OMP_HARNESS -u ATLASSIAN_AGENT_TYPE -u ROVODEV_CLI -u NO_COLOR '<lab>/fake/fakebin/devin' --permission-mode dangerous --respect-workspace-trust false --config '<lab>~/devin-manual.devin-config.json' --model 'swe-2-medium' -- "$(fm-operational-input.sh encode launch-brief < launch-brief.md)"

export COMPACT_ADVISER_DISABLE=1; env -u CURSOR_AGENT -u CURSOR_INVOKED_AS -u GEMINI_CLI env -u CLAUDECODE -u PI_CODING_AGENT -u GROK_AGENT -u FM_PI_HARNESS -u FM_OMP_HARNESS -u ATLASSIAN_AGENT_TYPE -u ROVODEV_CLI -u NO_COLOR '<lab>/fake/fakebin/devin' --permission-mode dangerous --respect-workspace-trust false --config '<lab>~/devin-manual.devin-config.json' --model 'swe-2-medium' -- "$('~/.no-mistakes/worktrees/873084a7cbd8/01M32RMDY3F2Q2YD32H52E0RGA/bin/fm-operational-input.sh' encode launch-brief < '<lab>~/devin-manual/launch-brief.md')"
Evidence: Private per-task Devin config with appended lifecycle hooks

Source: Private per-task Devin config with appended lifecycle hooks

{
  "hooks": {
    "UserPromptSubmit": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "'<root>/bin/fm-busy-event.sh' apply '<lab>~' 'devin-manual' busy --gen 'g1790021330.76503.19472' --source devin-hook --event user-prompt-submit >/dev/null 2>&1 || true",
            "timeout": 10
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "'<root>/bin/fm-busy-event.sh' apply '<lab>~' 'devin-manual' idle --gen 'g1790021330.76503.19472' --source devin-hook --event stop >/dev/null 2>&1 && touch '<lab>~/devin-manual.turn-ended'; true",
            "timeout": 10
          }
        ]
      }
    ],
    "SessionEnd": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "'<root>/bin/fm-busy-event.sh' apply '<lab>~' 'devin-manual' idle --gen 'g1790021330.76503.19472' --source devin-hook --event session-end >/dev/null 2>&1 || true",
            "timeout": 10
          }
        ]
      }
    ]
  }
}
Evidence: Real spawn refusal of a Devin secondmate

Source: Real spawn refusal of a Devin secondmate

error: devin is a verified crewmate/scout adapter only and cannot run a secondmate; it has no primary supervision protocol. Select a harness verified for secondmates.

error: devin is a verified crewmate/scout adapter only and cannot run a secondmate; it has no primary supervision protocol. Select a harness verified for secondmates.
Evidence: Pane capture after fm-control interrupt (plain text)

Source: Pane capture after fm-control interrupt (plain text)

   • Wrote  80235  to  answer.txt .
   • Checked the steering inbox at  /private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/dev
   in-manual.inbox  — it does not exist yet, so there's nothing to acknowledge. I'll read it if/when a doorbell message
   arrives.

❭ : Firstmate instruction waiting: list '/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/
  state/devin-manual.inbox'/*.msg and, in numeric order, read and act on each, then mv each handled file to '/private/
  var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/devin-manual.inbox'/handled/.

 ● Listed /private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/devin-manual.inbox

 ● Read /private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/devin-manual.inbox/001.msg
 └ 4 lines

 ● Ran command
 │ $ echo $((31 * 37)) && printf '%s' "$((31 * 37))" > "/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/
 │   dvman.lUSCs9/wt/steer.txt" && mv "/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/
 │   devin-manual.inbox/001.msg" "/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/
 │   devin-manual.inbox/handled/" && ls "/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/
 │   state/devin-manual.inbox"
 │ 1147
 │ handled
 └ Exited with code 0

 Handled  001.msg :

   • Computed  31 × 37 = 1147  via the shell and wrote  1147  to  steer.txt .
   • Moved  001.msg  into  devin-manual.inbox/handled/ .
   • Inbox is now empty — no further messages pending.

❭ : Firstmate instruction waiting: list '/private/var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/
  state/devin-manual.inbox'/*.msg and, in numeric order, read and act on each, then mv each handled file to '/private/
  var/folders/1y/vll9cdpn7w95vcy6wg8vlfv80000gn/T/dvman.lUSCs9/home/state/devin-manual.inbox'/handled/.

 ✱ Canceled. What should Devin do?

────────────────────────────────────────────────────────────────────────────────────────────── (bypass permissions on) ─
❭ Ask Devin to build features, fix bugs, or work on your code
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
SWE-2 Medium                                                                        Press opt+t to cycle thinking levels
Evidence: Manual drive script used to produce the captures

Source: Manual drive script used to produce the captures

#!/usr/bin/env bash
# Manual live drive of the Devin worker adapter, keeping styled pane captures.
# Mirrors tests/fm-devin-signals-live-e2e.test.sh setup; evidence stays in $EV.
set -u
ROOT=${ROOT:?}
EV=${EV:?}
MODEL=${MODEL:-swe-2-medium}
. "$ROOT/tests/fixtures.sh"
. "$ROOT/bin/fm-busy-lib.sh"
. "$ROOT/bin/fm-backend.sh"
. "$ROOT/bin/fm-composer-lib.sh"
DEVIN_BIN=$(command -v devin)
REAL_TMUX=$(command -v tmux)
VERSION=$(devin --version)
LAB=$(mktemp -d "${TMPDIR:-/tmp}/dvman.XXXXXX"); LAB=$(cd "$LAB" && pwd -P)
SOCKET="$LAB/tmux.sock"
cleanup() { "$REAL_TMUX" -S "$SOCKET" kill-server >/dev/null 2>&1 || true; rm -rf "$LAB"; }
trap cleanup EXIT
fail() { printf 'not ok - %s\n' "$1" | tee -a "$EV/devin-manual-drive.log" >&2; exit 1; }
ok() { printf 'ok - %s\n' "$1" | tee -a "$EV/devin-manual-drive.log"; }
: > "$EV/devin-manual-drive.log"
H="$LAB/home"; WT="$LAB/wt"; PROJ="$LAB/project"; ID=devin-manual
fm_test_spawn_home "$H" devin
fm_git_worktree "$PROJ" "$WT" devin-manual
mkdir -p "$H/user-home/.local/share/devin" "$H/user-home/.config/devin" "$LAB/bin"
cp "$HOME/.local/share/devin/credentials.toml" "$H/user-home/.local/share/devin/credentials.toml"
chmod 600 "$H/user-home/.local/share/devin/credentials.toml"
printf '{}\n' > "$H/user-home/.config/devin/config.json"
fm_test_spawn_brief "$H" "$ID" "Runtime verification only: compute 12345 plus 67890 using your shell tool and write only the result into answer.txt. Do no other work and do not delegate. Later read and acknowledge Firstmate's instruction inbox when the doorbell arrives."
fakebin=$(make_spawn_fakebin "$LAB/fake" claude)
ln -s "$DEVIN_BIN" "$fakebin/devin"

# Adversarial: a secondmate launch on devin must be refused by the real spawn path.
if out=$(fm_test_run_spawn "$H" "$WT" "$fakebin" devin-sm "$PROJ" --secondmate --harness devin 2>&1); then
  fail "secondmate launch on devin was accepted: $out"
fi
printf '%s\n' "$out" > "$EV/devin-secondmate-refusal.txt"
case "$out" in *'crewmate/scout adapter only'*) ok "secondmate launch refused: $out" ;; *) fail "unexpected refusal text: $out" ;; esac

FM_FAKE_LAUNCH_LOG="$LAB/launch.sh" fm_test_run_spawn "$H" "$WT" "$fakebin" "$ID" "$PROJ" \
  --scout --harness devin --model "$MODEL" --effort high > "$LAB/spawn.log" 2>&1 \
  || fail "fm-spawn failed: $(cat "$LAB/spawn.log")"
sed "s#$LAB#<lab>#g" "$LAB/launch.sh" > "$EV/devin-launch-command.sh"
sed "s#$LAB#<lab>#g" "$H/state/$ID.meta" > "$EV/devin-task-meta.txt"
jq . "$H/state/$ID.devin-config.json" | sed "s#$LAB#<lab>#g; s#$ROOT#<root>#g" > "$EV/devin-private-config.json"
ok "fm-spawn produced launch command, meta, private config for model $MODEL"

printf '#!/bin/sh\nexec "%s" -S "%s" "$@"\n' "$REAL_TMUX" "$SOCKET" > "$LAB/bin/tmux"
chmod +x "$LAB/bin/tmux"
export PATH="$LAB/bin:$PATH" FM_HOME="$H"
unset FM_ROOT_OVERRIDE FM_STATE_OVERRIDE FM_DATA_OVERRIDE FM_CONFIG_OVERRIDE FM_PROJECTS_OVERRIDE
TARGET="firstmate:fm-$ID"
"$REAL_TMUX" -S "$SOCKET" new-session -d -s firstmate -n "fm-$ID" -x 120 -y 40 -c "$WT" \
  "HOME='$H/user-home' /bin/sh '$LAB/launch.sh'; exec /bin/bash --noprofile --norc" || fail 'could not start pane'
capture() { "$REAL_TMUX" -S "$SOCKET" capture-pane -p -e -t "$TARGET"; }
snap() { capture > "$EV/pane-$1.ansi"; "$REAL_TMUX" -S "$SOCKET" capture-pane -p -t "$TARGET" > "$EV/pane-$1.txt"; }
busy() { fm_busy_classify tmux "$TARGET" devin "$ID" "$H/state"; }
wait_file() { local i; for i in $(seq 1 480); do [ -s "$1" ] && return 0; sleep 0.5; done; fail "timed out waiting for ${1##*/}"; }
wait_idle() { local i; for i in $(seq 1 240); do [ "$(busy)" = 'idle devin-hook' ] && return 0; sleep 0.5; done; fail "Stop did not produce semantic idle (busy=$(busy))"; }

echo "busy after spawn: $(busy)" >> "$EV/devin-manual-drive.log"
[ "$(busy)" = 'busy fm-spawn' ] || fail "launch not armed: $(busy)"
for i in $(seq 1 120); do [ "$(busy)" = 'busy devin-hook' ] && break; sleep 0.5; done
echo "busy during launch brief: $(busy)" >> "$EV/devin-manual-drive.log"
snap 1-launch-busy
wait_file "$WT/answer.txt"
[ "$(tr -d '[:space:]' < "$WT/answer.txt")" = 80235 ] || fail 'launch brief did not execute'
wait_idle
snap 2-idle-after-brief
[ -f "$H/state/$ID.turn-ended" ] || fail 'no turn-ended notification'
[ "$(fm_backend_agent_state tmux "$TARGET")" = alive ] || fail 'devin not alive'
ok "launch brief executed (answer.txt=80235), Stop hook settled to $(busy), agent alive"

verdict=$(fm_composer_classify_screen $'styled=1\ncursor=1\nidentity=1\nrows=0' "$(capture)" \
  "$(tmux display-message -p -t "$TARGET" '#{cursor_y}')" devin)
echo "idle composer verdict: $verdict" >> "$EV/devin-manual-drive.log"
case "$verdict" in empty*) ok "idle composer classified $verdict" ;; *) fail "idle composer was $verdict" ;; esac

"$ROOT/bin/fm-send.sh" "$ID" 'Runtime steering verification: compute 31 times 37 and write only the result to steer.txt. Acknowledge this instruction by moving its .msg file into handled/ as instructed by the doorbell. Do no other work.' > "$LAB/send.log" 2>&1 || fail "steer failed: $(cat "$LAB/send.log")"
sed "s#$LAB#<lab>#g" "$LAB/send.log" > "$EV/devin-fm-send.log"
sleep 3; snap 3-steer-doorbell
wait_file "$WT/steer.txt"
wait_file "$H/state/$ID.inbox/handled/001.msg"
[ "$(tr -d '[:space:]' < "$WT/steer.txt")" = 1147 ] || fail 'wrong steering result'
wait_idle
snap 4-idle-after-steer
ok "fm-send doorbell: steer.txt=1147, inbox message acknowledged into handled/, settled to $(busy)"

"$ROOT/bin/fm-send.sh" "$ID" 'Runtime interrupt verification: run sleep 90 in your shell tool, then wait for it to finish. Do not respond before it finishes.' > "$LAB/send.log" 2>&1 || fail 'could not steer interrupt probe'
seen=0
for _ in $(seq 1 240); do
  if [ "$(busy)" = 'busy devin-hook' ] && capture | fm_busy_lines_match devin; then seen=1; break; fi
  sleep 0.5
done
[ "$seen" = 1 ] || fail 'no semantic and rendered busy during interrupt probe'
snap 5-busy-before-interrupt
"$ROOT/bin/fm-control.sh" "$ID" interrupt > "$LAB/interrupt.log" 2>&1 || fail "interrupt failed: $(cat "$LAB/interrupt.log")"
sed "s#$LAB#<lab>#g" "$LAB/interrupt.log" > "$EV/devin-fm-control-interrupt.log"
echo "busy after interrupt: $(busy)" >> "$EV/devin-manual-drive.log"
[ "$(busy)" = 'unknown fm-interrupt' ] || fail "interrupt did not invalidate to unknown: $(busy)"
for _ in $(seq 1 60); do capture | grep -q 'Canceled. What should Devin do?' && break; sleep 0.5; done
snap 6-after-interrupt
capture | grep -q 'Canceled. What should Devin do?' || fail 'double Escape did not cancel'
[ "$(fm_backend_agent_state tmux "$TARGET")" = alive ] || fail 'devin died on interrupt'
ok "fm-control interrupt: Devin rendered Canceled, agent alive, state $(busy), $(grep -o 'cancel=[a-z]*' "$LAB/interrupt.log" | head -1)"

"$ROOT/bin/fm-control.sh" "$ID" exit > "$LAB/exit.log" 2>&1 || fail "exit failed: $(cat "$LAB/exit.log")"
sed "s#$LAB#<lab>#g" "$LAB/exit.log" > "$EV/devin-fm-control-exit.log"
sleep 1; snap 7-after-exit
[ "$(fm_backend_agent_state tmux "$TARGET")" = dead ] || fail 'quit did not return to shell'
echo "busy after exit: $(busy)" >> "$EV/devin-manual-drive.log"
cp "$H/state/$ID.busy-state" "$EV/devin-busy-state-final.txt" 2>/dev/null || true
ok "fm-control exit: /quit returned the pane to a shell; busy record: $(busy)"
ok "$VERSION manual drive complete (model $MODEL)"

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 1 info
  • ℹ️ bin/fm-control.sh:438 - Full pass over aec043c..02a5aff found no new defect. Traced paths: (1) spawn: devin resolves DEVIN_BIN before endpoint creation, arms a busy generation (bin/fm-spawn.sh:4074), writes the private config with that generation (bin/fm-spawn.sh:4117), substitutes DEVINBIN/DEVINCONFIG into the template, and refuses --secondmate (bin/fm-spawn.sh:2136); relaunch retires the prior config through fm_control_harness_wiring_paths (bin/fm-spawn.sh:4038 -> bin/fm-control-lib.sh:325) and re-arms. (2) hooks: bin/fm-devin-config.sh single-quotes every path, starts from {} when the user config is absent, refuses malformed input before replacing the prior file, and appends rather than overwrites user Stop/UserPromptSubmit/SessionEnd entries; apply calls are generation-bound so a stale Stop cannot clear a replacement. (3) classification: devin-hook fm-spawn fm-interrupt fm-recovery are the trusted sources, and the record path (bin/fm-busy-lib.sh:914-925) yields busy devin-hook, idle devin-hook, or unknown fm-interrupt as the tests assert. (4) interrupt: deliver_interrupt captures the armed gen before two Escape presses 0.2s apart and writes unknown only when a gen exists, so raw-launch tasks with no armed contract are untouched; exit interrupts only on a busy verdict. (5) identity: exact devin comm ancestry beats a foreign CLAUDECODE, and the process classifier anchors devin exactly like agy. The final commit 02a5aff changes only comments and docs. New tests execute the generated hook commands and the real spawn/control entry points rather than grepping source; the launch-log and meta assertions read generated interfaces and persisted state. Intent conformance holds: SWE-2 and Fusion model ids pass through --model unchanged, crewmate/scout dispatch is enabled, and primary/secondmate use is refused at spawn and at relaunch.
✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 10 of 12 scenarios driven live against the product
Scenario Result Live Evidence
Captain spawns a Devin scout with the free SWE-2 model; the worker receives the typed launch brief, runs its shell tool, and writes answer.txt=80235 while the busy state flips fm-spawn -> devin-hook b… ✅ pass live devin-live-guard-swe2.log (stage 1), devin-manual-drive.log, pane-1-launch-busy.txt, pane-2-idle-after-brief.txt
Captain spawns a Devin worker on the paid Fusion pairing (Claude Fable 5.1 High + SWE-2 Medium); the full lifecycle (brief, doorbell, interrupt, exit, resume) completes ✅ pass live devin-live-guard-fusion.log (4 ok stages, exit 0)
Devin identifies itself as harness devin from inside its own shell tool despite inherited foreign markers (bin/fm-harness.sh output written to harness.txt) ✅ pass live devin-live-guard-swe2.log stage 1 (harness.txt=devin assertion)
Firstmate steers a running Devin worker with fm-send; Devin reads the inbox doorbell, writes steer.txt=1147, and moves the message into handled/ ✅ pass live devin-manual-drive.log, pane-3-steer-doorbell.txt, pane-5-busy-before-interrupt.txt, devin-live-guard-swe2.log stage 2
Firstmate interrupts a busy Devin worker with fm-control; Devin renders 'Canceled. What should Devin do?', the process stays alive, and the busy record becomes unknown fm-interrupt with cancel=uncon… ✅ pass live devin-fm-control-interrupt.log, pane-6-after-interrupt.txt, devin-manual-drive.log, devin-live-guard-*.log stage 3
Firstmate exits a Devin worker with fm-control; /quit returns the pane to a shell and prints the native resume hint ✅ pass live devin-fm-control-exit.log, pane-7-after-exit.txt
Native devin -r &lt;session&gt; resume with the private config reprocesses a new prompt (resumed.txt=493) and emits SessionStart source=resume ✅ pass live devin-live-guard-swe2.log and devin-live-guard-fusion.log stage 4
Adversarial: a --secondmate launch on devin is refused by the real spawn path with the crewmate/scout-only error and creates no endpoint ✅ pass live devin-secondmate-refusal.txt, devin-manual-drive.log
Adversarial: the idle Devin composer with its dim placeholder is classified empty by the styled composer guard so fm-send never overwrites a typed draft ✅ pass live devin-manual-drive.log (idle composer verdict: empty), devin-live-guard-*.log stage 2 precondition
Adversarial: a stale-generation Stop hook from a retired Devin incarnation neither clears the replacement's busy state nor touches turn-ended; a malformed user config is refused without replacing the… ⏸️ untested no Not driven against the live product. The prior run established this only through the portable test suite tests/fm-devin-harness.test.sh (config preservation and stale-generation rejection stage), whic…
Spawn records a devin dispatch with Fusion model and independent effort: --model reaches argv, effort is recorded in meta but never passed, private config path and autonomy/trust flags are in the laun… ✅ pass live devin-launch-command.sh, devin-task-meta.txt, devin-private-config.json (manual drive); tests/fm-devin-harness.test.sh spawn stage
Bootstrap without a TypeSafe key accepts a config/crew-dispatch.json default profile pinned to devin instead of reporting an unverified harness ⏸️ untested no Not driven against the live product. The prior run established this only through the portable test suite tests/fm-bootstrap.test.sh (devin no-key acceptance assertion), which runs bootstrap in a synth…
  • bin/fm-test-run.sh tests/fm-devin-harness.test.sh (portable adapter regression: identity, worker-only kinds, composer safety, private config, spawn launch shape)
  • bin/fm-test-run.sh tests/fm-control.test.sh (control-plane tables plus new Devin interrupt invalidation test)
  • bin/fm-test-run.sh tests/fm-bootstrap.test.sh (no-key bootstrap accepts a devin crew-dispatch profile)
  • FM_DEVIN_SIGNALS_LIVE=1 bin/fm-test-run.sh tests/fm-devin-signals-live-e2e.test.sh (live, swe-2-medium, exit 0 in 263s)
  • FM_DEVIN_SIGNALS_LIVE=1 FM_DEVIN_MODEL=fusion-claude-fable-5-1-high-sidekick-swe-2-medium bin/fm-test-run.sh tests/fm-devin-signals-live-e2e.test.sh (live, Fusion pairing, exit 0 in 74s)
  • Manual live drive devin-manual-drive.sh (evidence dir): real fm-spawn launch of devin in a private tmux server, busy classification at each stage, idle composer verdict, real fm-send doorbell, fm-control interrupt and exit, pane captures at 7 lifecycle points
  • Manual adversarial check: real fm-spawn --secondmate --harness devin refused with the crewmate/scout-only error
  • Inspected generated launch command, task meta (model/effort recorded, effort absent from argv), and private per-task Devin config with appended lifecycle hooks
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@kunchenguid

Copy link
Copy Markdown
Owner

thanks @belyaev-den - this was the right base. we built on it directly in #5380 (your five commits kept with your authorship) and added three fixes on top: no paired Escape on an idle Devin (the revert picker), workers no longer import the user's Claude Code hooks, and no Devin co-author trailer. 5380 is merged, so closing this as superseded. appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants