Skip to content

0.1.2 KY2: the Devin driver passes the kit through the key helper #1996

Closed

Description

@jparker2006

Parent

Ticket KY2 of spec #2378 (0.1.2): the Devin driver, the first driver built on the key helper. It was DW5 of spec #1987, held there because driving Devin needs a key. Size: M.

What to build

A driver for Devin at adapters/devin/, copied from adapters/template/ and built on driver v1 (kernel/driver.v1.md): version, schema, start, wake and stop.

Through the key helper only (N4). Every Devin API call goes through kernel/driver-kit/hostkey.py, with host devin from kernel/driver-kit/hosts.json. The driver never names, reads or passes the key, and never builds a URL. It sends only a method and a path.

  • Start creates a session: POST /v3/organizations/<org>/sessions, with the ticket's prompt.
  • Wake posts a message: POST /v3/organizations/<org>/sessions/<id>/messages, which resumes a suspended session.
  • Stop terminates the session: DELETE /v3/organizations/<org>/sessions/<id>.

The run id is Devin's session id, which carries its own devin- prefix. The organization id comes from the user's DEVIN_ORG_ID; it is not a credential. Model choice is Devin's mode, not a model id, and the README says how model maps.

The exact API shapes are in the drivers-wave research; your parent passes the section. If one of start, wake or stop turns out not to work as documented, stop and ask on this ticket.

Fixtures. A fake Devin under fixtures/, reached through the helper's loopback test override, so the kit runs in CI.

README. It opens with Login: held by Devin. Under that line it says where the key lives:

  • the user's DEVIN_API_KEY, or the keychain entry openwiz-devin;
  • OpenWiz never stores it, and the user removes it to revoke.

Shared lines, one row each:

  • the test line in .github/workflows/ci.yml;
  • the entry in tools/open-import/paths.json;
  • the name in DRIVERS in tools/release/build_products.py.

Owned paths

  • adapters/devin/ (new)
  • .github/workflows/ci.yml (shared: this driver's one test line)
  • tools/open-import/paths.json (shared: this driver's one entry)
  • tools/release/build_products.py (shared: this driver's name in DRIVERS)

Relies on: kernel/driver.v1.md, kernel/driver-kit/schema.json, kernel/driver-kit/hostkey.py, kernel/driver-kit/hosts.json

Links

Acceptance criteria

  • The kit fails against the copied template first (red log in evidence/), then passes all five checks on fixtures in CI, its key check included
  • No file of the driver names the key's variable or calls the keychain, and no input, argument, output or copied environment carries the key
  • The README's login line and key lines say where the key lives, in the spec's form
  • Merge gate: merges only after its live-check ticket records 5 of 5 on the real host at this pull request's approved head (driver contract section 3)

Proof

P2 (Devin): test_driver.py and the kit on fixtures, red first. The code review. The live 5-of-5 is #1997.

Activity

  1. added this to the 0.1.1 milestone on Nov 20, 2026
  2. added
    ready-for-agent
    on Nov 20, 2026
  3. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start failed: retired (7084759901)

    Started by hand under the J87 planner's fleet.sh-outage ruling (OpenWiz #1958): fleet.sh claim failed only with "conflicting PR check snapshots". Start conditions read at 20:08Z: open; labelled ready-for-agent only, not held; no open blocker; no other live claim, builder or pull request; plan approval 7049330143 (revision 2) current, as fleet.sh spec 1987 printed start #1996 at 20:01Z.

  4. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Question (builder, #1996): Devin has no scriptable stop that keeps the login out of the driver.

    What I found in Devin's public docs:

    • The v3 sessions API does all three (create a session, post a message, terminate), but every call needs a cog_ service-user key or personal access token as a bearer header (authentication). The driver would have to read that key and send it. That breaks driver v1 N2 and this ticket's "never reads, prints or passes on a credential", and the spec rules out changing the contract.
    • Devin's own CLI, signed in with devin auth login, can start and wake a cloud session with no key in the driver: devin --cloud -p --prompt-file <file> starts one, and devin --cloud -r <devin-id> -p ... resumes it (Cloud CLI, commands). But it documents no non-interactive stop: the only end is the /archive slash command in an interactive cloud session, and archiving puts a session to sleep rather than terminating it. The docs also don't say whether -p prints the session id the driver must keep.

    So, as written, stop is not scriptable within the login rule, and I'm stopping to ask, as the ticket says.

    Options:

    • (a) CLI only, confirmed by one short live probe. My pick. start: devin --cloud -p with the prompt in a file; wake: devin --cloud -r <devin-id> -p; stop: end the local turn, then devin --cloud -r <devin-id> -p /archive (archive and sleep the session), and refuse every later wake from the driver's own state. Before I build it, a person with a Devin account runs two commands and reports only whether (1) -p prints the devin- session id and (2) /archive works under -p. If either is no, fall to (c).
    • (b) The API, with the driver reading DEVIN_API_KEY from the user's environment and sending it only as an in-process header. Fully scriptable and documented, but the driver reads a credential, against N2. Needs a contract ruling, which this spec puts out of scope.
    • (c) Hold DW5 until Devin's CLI documents a non-interactive stop; close it out of wave 1, as GitHub agent tasks and Codex cloud were.

    The checkpoint so far is on room/1996-devin-driver: the template copied to adapters/devin/ and the kit's red run against it (evidence/red-kit.txt). I build nothing that depends on this answer until a record author answers here.

  5. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: asking
    harness: claude
    model: claude-opus-5-5
    skills: build-ticket@0.2.0
    step: Asked how to stop a Devin session without the driver reading a login.
    time: 2026-11-20T20:11:58Z

  6. added
    needs-info
    held
    and removed
    ready-for-agent
    on Nov 20, 2026
  7. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Planner ruling for DW5 #1996 (Devin): held. The key-free path, Devin's own signed-in CLI, has no documented non-interactive stop, and its archive only suspends a session, which fails the driver contract's stop rule (D6, nothing left running). The API path needs the driver to read a key, which the contract's login rule (N2) forbids. The builder stops with its red evidence pushed. It resumes if someone with a Devin account shows a non-interactive stop that ends the session, or if the contract decides how a cloud driver reaches its host's key.

  8. removed
    needs-info
    on Nov 20, 2026
  9. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    agent: fleet
    state: done
    harness: claude-code
    model: claude-opus-5-5
    skills: launch-fleet@0.2.0
    step: settled needs-info
    time: 2026-11-20T20:13:14Z

  10. added
    needs-info
    on Nov 20, 2026
  11. 20 remaining items

  12. added
    needs-info
    on Nov 22, 2026
  13. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #1996:

    tools/release/test_package.py

    This covers only the new package test, which fails first, proving that hostkey.py and hosts.json ship beside kit.py. The planner's grant 7085392388 asked for that test along with the build_products.py lines, but named only build_products.py. It answers the builder's question 7087469434.

  14. removed
    needs-info
    on Nov 22, 2026
  15. added 3 commits that reference this issue on Nov 22, 2026
  16. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #1996:

    tools/release/build_products.py
    tools/release/test_package.py

    This widens the earlier grants 7085392388 and 7087485083 to cover review finding R2 on #2490 (verdict 7087865816). The release path also carries Devin's README.md and fixtures/kit-host.json, which the installed kit uses to identify a key host and run its key check. A package test, failing first, asserts that the installed Devin driver has both files and that the installed kit runs Devin's key check.

  17. added 6 commits that reference this issue on Nov 22, 2026
  18. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions