Repository navigation
Description
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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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,pathand an optionalbody. 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.pyand 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.
Activity
jparker2006 commentedon Nov 22, 2026
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.Longest chain: 2 links (#2379 → #1996 → #1997).
Can start at approval: 1 of 5.
jparker2006 commentedon Nov 22, 2026
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.
Fingerprint:
18ddaed02e6a7f68b9dc3c51d69e415d8cb23c5f4ba24a1c787c0d2c62835d3fRevision text
jparker2006 commentedon Nov 22, 2026
launch-fleet: fleet active, loop fleet-2378
jparker2006 commentedon Nov 22, 2026
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 addsopenhands, and #2444 addswarp-oz. Both build stacked on KY1's branch as drafts, and merge only after #2379 does. Neither changeshostkey.py, the kit or the Devin entry. Whichever of us merges second fixes the file's merge conflict, one row each.