Skip to content

0.1.2 spec: drivers for hosts that need an API key #2378

Open
4 of 5 issues completed
Open

Description

@jparker2006

Problem Statement

Of the first 8 hosts tried as OpenWiz drivers, 6 pass the kit, each through its own signed-in command line. Devin can start, wake and stop a session only through an API that takes the user's key. Driver v1's login rule N2 says a driver never reads a credential to pass it on, so no driver can reach a host like Devin today. Every key host in the coming marketplace hits the same wall.

Solution

One tiny shared key helper ships in the kernel's driver kit. It is the only thing that ever reads a host key. The key lives only on the user's own computer, in the system keychain or in an environment variable the user sets. OpenWiz never stores it and runs no service that holds keys. A driver asks the helper to send one request to its host. The helper attaches the key, sends the request only to that host's registered address, and hands back the answer. The driver never sees the key, and the kit checks that. Driver v1's rules N1 to N3 stay unchanged, and one new rule covers the helper. Every driver still passes all five checks, so a host that can't wake the same run or stop it gets no driver. Devin is the first driver built on the helper, then the Drivers page and the write-driver skill explain how a key host works.

Changelog headline

Drivers can now reach hosts that need an API key, through one small helper: the key stays on your computer and the driver never sees it.

User Stories

  1. As a Devin user, I keep my Devin API key in my keychain or in an environment variable I set, and OpenWiz's Devin driver starts, wakes and stops Devin sessions for my tickets.
  2. As a user, I know OpenWiz never stores my key, and I can take it away at any time by removing it from my keychain or environment.
  3. As a driver author for a key host, I call the kit's helper with a request for my host and never handle the key.
  4. As a reviewer, I trust a key host's driver because the kit proves the driver never sees the key and that the key only ever goes to that host's own address.
  5. As a reader of the Drivers page, I can see which drivers use a host key, where the key lives, and that a host with no wake or stop gets no driver.
  6. As a user of the write-driver skill, I can write a driver for a key host, and the skill never asks for or touches my key.

Implementation Decisions

  • The new rule, N4, in driver v1's logins section (kernel/driver.v1.md). N1 to N3 are unchanged. N4 says that a host's API key reaches its host only through the kit's key helper:

    • the helper alone reads the key, from the user's system keychain or the environment variable the user set;
    • it sends the key only over HTTPS, only to the address registered for that host in the kit;
    • the driver never names, reads, receives or prints the key, and never chooses the address;
    • OpenWiz never stores a key.
  • The helper, kernel/driver-kit/hostkey.py: standard-library Python, the same platforms as the kit. A driver runs it with one JSON request on stdin: host, method, path and an optional body. It prints one JSON answer, with the HTTP status and the response body, or a driver-v1-style error. It never prints, logs or echoes the key, puts it on a command line, or passes it to another process.

  • The registry, kernel/driver-kit/hosts.json: each key host's HTTPS origin, the environment variable name, the keychain entry name and the header form. Adding a host is a reviewed change to this one file.

  • The address restriction: the helper refuses:

    • any host not in the registry;
    • any scheme other than HTTPS;
    • a path that isn't absolute or that carries a scheme, host, port, user info or ..;
    • any redirect, which it never follows.

    Tests may point a registered host at a loopback fake only through a kit-only override, which works only on 127.0.0.1.

  • The kit check: no new sixth check (KY3). For a driver whose host is in the registry, the token check also does three things:

    • plants a canary key in that host's variable and runs the five checks against a fake host;
    • proves the canary reaches the fake host only in the helper's header, and never appears in the driver's output, in any process's command line, or under any other variable;
    • proves the driver's own files never name the key's variable or call the keychain.
  • The login line: a key host's README keeps Login: held by <host>, and names both places the key may live.

  • Devin (0.1.2 KY2: the Devin driver passes the kit through the key helper #1996): its v3 sessions API goes only through the helper. Start creates a session, wake posts a message, and stop terminates it.

Testing Decisions

  • Seam 1: the kit itself (kernel/driver-kit/test_kit.py). Planted drivers must fail:

    • one that reads the key itself;
    • one that passes the key in an argument;
    • one that asks the helper for an unregistered address;
    • one that follows a redirect off the host.

    The helper's own tests cover every refusal, red first.

  • Seam 2: the Devin driver against a fake Devin under its fixtures/, in CI. Then the person's live 5-of-5 on a real Devin organization.

  • Prior art: the kit's credential checks (red-1586 and green-1586), and the template driver and the six wave-1 drivers.

Proof

  • P1 (helper and rule): the helper's tests and the kit's planted drivers, red first in kernel/driver-kit/evidence/. A full security review of the helper ticket.
  • P2 (Devin): test_driver.py and the kit on fixtures, red first, then the live 5-of-5 on the real host at the approved head.
  • P3 (words): the Drivers page and the write-driver skill each say where the key lives and that the driver never sees it, as checked in their reviews and the skill's tests.

Checkpoints

  • One-way door: yes
  • User-visible: yes

Live check

The person runs the kit against the Devin driver on a Devin organization with API access, on one throwaway ticket, with their own key in their own keychain or environment. No key is handed to an agent. 5 of 5 is recorded on the build pull request.

Out of Scope

  • Any OpenWiz service or file that stores keys (KY1).
  • A weaker start-only driver class: Grok Bot (0.1.1 DW13: the Grok Bot driver passes the kit #2318) stays held until its host adds wake and stop (KY3).
  • Changing N1 to N3 (KY2).
  • Other key hosts beyond Devin, which follow as their own tickets once this lands.

Further Notes

The grill was confirmed on 2026-11-22. Its decisions are KY1 to KY4.

Sub-issues

Sub-issues

4 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. added this to the 0.1.2 milestone on Nov 22, 2026
  2. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Plan graph, read back from GitHub (2026-11-22). KY1 is the contract-first ticket. Devin's driver and live check (formerly DW5 and DW5L of #1987) moved here. KY3 and KY4 follow KY1 in parallel with Devin. Link check: pass spec #2378: tickets 5, links 4, real 4, file 0, unlabelled 0, refusals 0.

    flowchart LR
      T0["#35;2379 · L · KY1: key helper, registry, kit key check #40;N4#41;"]:::waiting
      T1["#35;1996 · M · KY2: Devin driver on the helper"]:::waiting
      T2(["#35;1997 · S · KY2L: live check, Devin 5 of 5"]):::jake
      T3["#35;2380 · S · KY3: Drivers page explains key hosts"]:::waiting
      T4["#35;2381 · S · KY4: write-driver writes key-host drivers"]:::waiting
      B0["#93;"]:::bracket
      T0 --> B0
      B0 ---|real: Helper, Devin entry and key check| T1
      B0 ---|real: N4 text the page describes| T3
      B0 ---|real: Helper call form the skill teaches| T4
      T1 -->|real: The driver to run live| T2
      classDef merged fill:#dcfce7,stroke:#15803d,color:#111827
      classDef building fill:#dbeafe,stroke:#1d4ed8,color:#111827
      classDef waiting fill:#f3f4f6,stroke:#6b7280,color:#111827
      classDef jake fill:#f3e8ff,stroke:#7e22ce,color:#111827
      classDef bracket fill:transparent,stroke:transparent,font-weight:bold
      linkStyle 0,1,4 stroke-width:4px
    
    Loading

    Longest chain: 2 links (#2379 → #1996 → #1997).
    Can start at approval: 1 of 5.

  3. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Machine plan approval, 2026-11-22, revision 1: links, relies, sizes, width and owned paths passed.
    Grill confirmed: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7084543554

    Checks: 5 tickets; links 4; relies 4; sizes S 3, M 1, L 1; width: chain 3, widest 3; owned paths 4.

    Ticket Title Blocked by Label
    #1996 0.1.2 KY2: the Devin driver passes the kit through the key helper #2379 ready-for-agent
    #1997 0.1.2 KY2L: live check: the Devin driver passes 5 of 5 #1996 ready-for-human
    #2379 0.1.2 KY1: the key helper, its address registry and the kit's key check (driver v1 N4) none ready-for-agent
    #2380 0.1.2 KY3: the Drivers page explains hosts that need an API key #2379 ready-for-agent
    #2381 0.1.2 KY4: the write-driver skill writes key-host drivers on the helper #2379 ready-for-agent

    Fingerprint: 18ddaed02e6a7f68b9dc3c51d69e415d8cb23c5f4ba24a1c787c0d2c62835d3f

    Revision text
    plan-graph revision v2
    spec #2378 body sha256 848b84c9f505135cdf1d29b9ff2cb1f78f074545161ac7454ac7f4aa362c5a71
    ticket #1996 blocked-by #2379 body sha256 55ed1af554d729424d0d5f3a153d3a339c76a03b7b6aa3936c719a3efd2eb47c title 0.1.2 KY2: the Devin driver passes the kit through the key helper
    ticket #1997 blocked-by #1996 body sha256 ab7eac7e12b105f5dfef5a4a4d1827d15a02f487edaab837fe80ab4aae2ec302 title 0.1.2 KY2L: live check: the Devin driver passes 5 of 5
    ticket #2379 blocked-by none body sha256 f8567330606f47a693fe2b135d6adeb2c38f7a8e7e9b2bb308758e36a52213df title 0.1.2 KY1: the key helper, its address registry and the kit's key check (driver v1 N4)
    ticket #2380 blocked-by #2379 body sha256 59e4ed1e2f295c0b41a33825983919ce11d9c128e60262d62200cd0578b6fb50 title 0.1.2 KY3: the Drivers page explains hosts that need an API key
    ticket #2381 blocked-by #2379 body sha256 d4066b40a890e60e9d66be48caf6f0905237731664fdf5766511bc41ecf485f8 title 0.1.2 KY4: the write-driver skill writes key-host drivers on the helper
    
  4. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: fleet active, loop fleet-2378

  5. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Coordination, from spec #2425 (key-host wave 1): two drivers built on KY1's key helper will each add one row to kernel/driver-kit/hosts.json: #2429 adds openhands, and #2444 adds warp-oz. Both build stacked on KY1's branch as drafts, and merge only after #2379 does. Neither changes hostkey.py, the kit or the Devin entry. Whichever of us merges second fixes the file's merge conflict, one row each.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions