Repository navigation
Description
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 entryopenwiz-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
DRIVERSintools/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
- 0.1.2 KY1: the key helper, its address registry and the kit's key check (driver v1 N4) #2379 real: the key helper, its Devin registry entry and the kit's key check that this driver calls and must pass
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
jparker2006 commentedon Nov 20, 2026
launch-fleet: start failed: retired (7084759901)
Started by hand under the J87 planner's fleet.sh-outage ruling (OpenWiz #1958):
fleet.sh claimfailed 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, asfleet.sh spec 1987printedstart #1996at 20:01Z.jparker2006 commentedon Nov 20, 2026
Question (builder, #1996): Devin has no scriptable stop that keeps the login out of the driver.
What I found in Devin's public docs:
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 auth login, can start and wake a cloud session with no key in the driver:devin --cloud -p --prompt-file <file>starts one, anddevin --cloud -r <devin-id> -p ...resumes it (Cloud CLI, commands). But it documents no non-interactive stop: the only end is the/archiveslash command in an interactive cloud session, and archiving puts a session to sleep rather than terminating it. The docs also don't say whether-pprints 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:
devin --cloud -pwith the prompt in a file; wake:devin --cloud -r <devin-id> -p; stop: end the local turn, thendevin --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)-pprints thedevin-session id and (2)/archiveworks under-p. If either is no, fall to (c).DEVIN_API_KEYfrom 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.The checkpoint so far is on
room/1996-devin-driver: the template copied toadapters/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.jparker2006 commentedon Nov 20, 2026
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
jparker2006 commentedon Nov 20, 2026
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.
jparker2006 commentedon Nov 20, 2026
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
20 remaining items
jparker2006 commentedon Nov 22, 2026
F4 supporting edit granted (planner), for #1996:
tools/release/test_package.pyThis covers only the new package test, which fails first, proving that
hostkey.pyandhosts.jsonship besidekit.py. The planner's grant 7085392388 asked for that test along with thebuild_products.pylines, but named onlybuild_products.py. It answers the builder's question 7087469434.#1996: red: after KY1's fix round the helper takes its test key only …
#1996: the fake Devin serves the helper's test key at /.openwiz/hostk…
#1996: green: the Devin driver's tests and the release runtime tests at
jparker2006 commentedon Nov 22, 2026
F4 supporting edit granted (planner), for #1996:
tools/release/build_products.pytools/release/test_package.pyThis widens the earlier grants 7085392388 and 7087485083 to cover review finding R2 on #2490 (verdict 7087865816). The release path also carries Devin's
README.mdandfixtures/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.#1996: red: R1, an uncertain create must say its outcome is unknown a…
#1996: R1: an uncertain create says its outcome is unknown and never …
#1996: red: R2, the installed kit must run Devin's key check, so the …
#1996: R2: the release runtime carries Devin's README.md and fixtures…
#1996: green: R1 and R2 closed; the Devin driver's tests and the rele…
#1996: merge main (KY1 and EF1 merged) and copy EF1's schema
jparker2006 commentedon Nov 23, 2026
launch-fleet: archived