You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
0.1.2 KY4: the write-driver skill writes key-host drivers on the helper #2381
The write-driver skill learns key hosts. When the user's host can be driven only through an API that takes a key, the skill does four things:
it writes the driver to call kernel/driver-kit/hostkey.py for every API call, sending a method and a path only;
it tells the user that adding the host is one reviewed row in kernel/driver-kit/hosts.json, made through an OpenWiz issue or pull request;
it says the key stays in the user's keychain or an environment variable they set, and that the driver never sees it;
it runs the kit, whose token check covers the key.
The skill's guard stays: it never asks for, reads, prints, stores or passes a key (W1). The README's key lines come from copy, which takes names only.
A host that can't wake the same run or stop it gets no driver. The skill says so and stops.
It follows driver v1 rule N4 and the helper exactly as KY1 (#2379) merges them in openwizdev/OpenWiz (kernel/driver.v1.md, kernel/driver-kit/hostkey.py): its real blocker.
Owned paths
skills/write-driver/SKILL.md in openwizdev/WizSkills (only the new key-host lines)
skills/write-driver/tests/ in openwizdev/WizSkills (only new tests)
.changeset/ in openwizdev/WizSkills (one new note)
launch-fleet: started (builder: Claude Code, Opus 5.5, medium)
Started by hand on the J87 planner's ruling (2026-11-22): start before KY1's approval, stacked on KY1's branch room/2379-key-helper at 17cb430 (#2395). The pull request is a draft naming the KY1 commits it stacks on, and merges only after #2379. fleet.sh doesn't print this start while its blocker is open. Start conditions read by hand: open; labelled ready-for-agent only, not held; no other live claim, builder or pull request (the 2026-11-20 record on #1996 is retired, 7084759901); plan approval 7084605332 (revision 1) current.
agent: builder
state: done
harness: Claude Code
model: Opus 5.5
skills: build-ticket@0.2.2
step: Fixed R1, R7, R8 and R9 red first at d5aa81d; head 1ddb560 is green and waits for the final check.
time: 2026-11-23T01:07:52Z
pr: openwizdev/WizSkills#290
Builder question (needs-info): copy's key line fails KY1's kit
Found while building to #2395 at 17cb430, with a synthetic devin driver that calls only hostkey.py:
With the README line copy --key-variable DEVIN_API_KEY writes today (API key: set DEVIN_API_KEY yourself; the driver never asks for it.), the real kit reads 4 of 5: fail token: the driver's file README.md names DEVIN_API_KEY, the key's variable. KY1's kit lets the README name the variable only on a line that also names the keychain entry, and copy can't write the entry.
With no key line (copy without --key-variable), the kit reads 5 of 5. But then the README breaks N4's login-line sentence ("names the environment variable the user may set for it and the keychain entry the helper reads").
The ticket says "The README's key lines come from copy, which takes names only". The fix is in skills/write-driver/scripts/write_driver.py (and its tests), which this ticket doesn't own.
Options:
Widen the owned paths to scripts/write_driver.py (only copy's key line) plus a new test. copy gets --key-host <name>: it reads that host's variable and keychain from <openwiz>/kernel/driver-kit/hosts.json, and writes one line naming both, names only. It refuses a host that isn't registered. --key-variable stays as it is for non-helper hosts.
Keep the script as it is. The skill says: for a helper host, run copy without --key-variable. The README then names neither the variable nor the entry, which goes against N4's login line.
Keep the script, and the skill has the agent write the key line by hand. That breaks the skill's own "never type an exact text by hand" rule.
My pick: 1. It's the only option that meets both N4 and the kit, and it stays names only, read from the reviewed registry.
Also, a ruling I'm taking inside SKILL.md (tell me if you disagree): KY1's kit passes only when the driver runs the kit's own hostkey.py (it compares real paths). So a helper driver finds the helper at ../../kernel/driver-kit/hostkey.py from its own folder, which is where it lives once it's in OpenWiz's adapters/<host>/. The skill runs the kit on a copy of the driver folder placed at <openwiz>/adapters/<host>/ in the private OpenWiz clone. Until the answer comes, I'm building the SKILL.md lines and tests that don't depend on it.
In openwizdev/WizSkills, and only for copy's key line: a --key-host <name> option that reads that host's variable and keychain names from OpenWiz's kernel/driver-kit/hosts.json and writes one key line naming both, names only. It refuses a host that isn't registered and leaves --key-variable unchanged. Its tests go under the already-owned skills/write-driver/tests/, failing first. Reason: without it, copy's README key line either fails KY1's kit (it names the variable without the keychain entry) or breaks N4's login-line sentence (builder question 7087113104, option 1).
launch-fleet: granted supporting-edit: skills/write-driver/scripts/write_driver.py in openwizdev/WizSkills, only copy's key line (--key-host), grant 7087161909. That answers the builder's question 7087113104 (option 1). The helper-path ruling in SKILL.md (the driver runs the kit's own hostkey.py from adapters/<host>/) stands for review.
In openwizdev/WizSkills, this widens grant 7087161909 to cover review finding R1 on openwizdev/WizSkills#290 (verdict 7088000076). Only the kit command's staging of the driver may change: the proxy it hands KY1's kit must carry the driver's README.md beside the executable, so the kit discovers the key host and runs its key-host check. Its tests go under skills/write-driver/tests/, failing first.
Builder question on R3 (verdict 7088000076 on openwizdev/WizSkills#290): the expired-login lesson for a key host
R3 is right, and it can't be fixed inside my grants. The write-driver contract (contracts/write-driver.v1.md, the expired-login lesson row and sign_in_next) defines the lesson as: the driver's start runs a local stand-in harness that ends on a sign-in line. The probe enforces this: "the driver never ran the stand-in harness, so this proves nothing". An API-only key-host driver never runs a local harness, because its agent runs on the host. Inside the probe's box (no sockets, only the executable and fixtures/), it also can't reach KY1's helper. So no driver written to N4 can pass this lesson, and the skill's passing report needs every lesson to pass.
Options:
A key-host route for the lesson, fixture-only, against KY1's fake host.lesson expired-login takes --key-host <name>. It runs the driver's start from its OpenWiz tree, with an empty home, a stubbed PATH and nothing else of the caller's. KY1's loopback override points at KY1's FakeHost, which hands the helper a synthetic test key and answers the start call 401: the host refusing an expired or revoked key. It passes when start exits 1 with error and a next exactly equal to a new contract form, key_next ("check your key in your keychain or environment yourself, then start again"), and nothing it started still runs. This needs grants for: the contract's lesson row and the new form (a contract change: ask-first), write_driver.py's lesson command, and SKILL.md's lesson step. The Landlock and seccomp box stays exactly as it is for every other driver. This route runs outside it, because it needs loopback, and it touches only synthetic values.
For a key host, the lesson reads not run: the agent runs on the host, like the macOS line, and the passing report doesn't need it. That needs a contract change too, and it drops a real check: start must fail on a refused key, not answer a run whose note never comes.
Defer: KY4 teaches the lesson as out of reach for key hosts, and a follow-up ticket builds option 1.
My pick: 1. It keeps the lesson's purpose (an expired login fails start with a plain next) for the login a key host really has, and it uses only KY1's fixtures. If it's too big for this S ticket, 3, with the follow-up filed now.
I'm fixing R1, R2 and R4 meanwhile:
R1: inside the widened grant 7088003810.
R2: a key-host driver is written in the user's fork of openwizdev/OpenWiz at adapters/<host>/, because driver v1 keeps every driver there and that's where the helper resolves. <openwiz> is that fork for every step.
launch-fleet: started (fresh builder: Claude Code, Opus 5.5, medium; fix round), started at 2026-11-23T00:43:31Z, record delayed by GitHub's content block
A fresh builder for one round on openwizdev/WizSkills#290 from head 10c51e1cf5f2a9ddc338cfc148a676a9656826c8: R1, R7, R8 and R9 of the re-check, then one final check by a fresh reviewer. Planner's ruling (2026-11-23). The earlier builder is archived and the branch is unchanged.
Activity
jparker2006 commentedon Nov 22, 2026
launch-fleet: started (builder: Claude Code, Opus 5.5, medium)
Started by hand on the J87 planner's ruling (2026-11-22): start before KY1's approval, stacked on KY1's branch
room/2379-key-helperat 17cb430 (#2395). The pull request is a draft naming the KY1 commits it stacks on, and merges only after #2379.fleet.shdoesn't print this start while its blocker is open. Start conditions read by hand: open; labelled ready-for-agent only, not held; no other live claim, builder or pull request (the 2026-11-20 record on #1996 is retired, 7084759901); plan approval 7084605332 (revision 1) current.jparker2006 commentedon Nov 22, 2026
agent: builder
state: done
harness: Claude Code
model: Opus 5.5
skills: build-ticket@0.2.2
step: Fixed R1, R7, R8 and R9 red first at d5aa81d; head 1ddb560 is green and waits for the final check.
time: 2026-11-23T01:07:52Z
pr: openwizdev/WizSkills#290
jparker2006 commentedon Nov 22, 2026
Builder question (needs-info):
copy's key line fails KY1's kitFound while building to #2395 at 17cb430, with a synthetic
devindriver that calls onlyhostkey.py:copy --key-variable DEVIN_API_KEYwrites today (API key: setDEVIN_API_KEYyourself; the driver never asks for it.), the real kit reads 4 of 5:fail token: the driver's file README.md names DEVIN_API_KEY, the key's variable. KY1's kit lets the README name the variable only on a line that also names the keychain entry, andcopycan't write the entry.copywithout--key-variable), the kit reads 5 of 5. But then the README breaks N4's login-line sentence ("names the environment variable the user may set for it and the keychain entry the helper reads").The ticket says "The README's key lines come from
copy, which takes names only". The fix is inskills/write-driver/scripts/write_driver.py(and its tests), which this ticket doesn't own.Options:
scripts/write_driver.py(onlycopy's key line) plus a new test.copygets--key-host <name>: it reads that host'svariableandkeychainfrom<openwiz>/kernel/driver-kit/hosts.json, and writes one line naming both, names only. It refuses a host that isn't registered.--key-variablestays as it is for non-helper hosts.copywithout--key-variable. The README then names neither the variable nor the entry, which goes against N4's login line.My pick: 1. It's the only option that meets both N4 and the kit, and it stays names only, read from the reviewed registry.
Also, a ruling I'm taking inside SKILL.md (tell me if you disagree): KY1's kit passes only when the driver runs the kit's own
hostkey.py(it compares real paths). So a helper driver finds the helper at../../kernel/driver-kit/hostkey.pyfrom its own folder, which is where it lives once it's in OpenWiz'sadapters/<host>/. The skill runs the kit on a copy of the driver folder placed at<openwiz>/adapters/<host>/in the private OpenWiz clone. Until the answer comes, I'm building the SKILL.md lines and tests that don't depend on it.jparker2006 commentedon Nov 22, 2026
F4 supporting edit granted (planner), for #2381:
skills/write-driver/scripts/write_driver.pyIn
openwizdev/WizSkills, and only forcopy's key line: a--key-host <name>option that reads that host'svariableandkeychainnames from OpenWiz'skernel/driver-kit/hosts.jsonand writes one key line naming both, names only. It refuses a host that isn't registered and leaves--key-variableunchanged. Its tests go under the already-ownedskills/write-driver/tests/, failing first. Reason: without it,copy's README key line either fails KY1's kit (it names the variable without the keychain entry) or breaks N4's login-line sentence (builder question 7087113104, option 1).jparker2006 commentedon Nov 22, 2026
launch-fleet: granted supporting-edit:
skills/write-driver/scripts/write_driver.pyin openwizdev/WizSkills, onlycopy's key line (--key-host), grant 7087161909. That answers the builder's question 7087113104 (option 1). The helper-path ruling in SKILL.md (the driver runs the kit's ownhostkey.pyfromadapters/<host>/) stands for review.jparker2006 commentedon Nov 22, 2026
agent: fleet
state: done
harness: claude-code
model: claude-opus-5-5
skills: launch-fleet@0.4.0
step: settled needs-info
time: 2026-11-22T22:55:34Z
jparker2006 commentedon Nov 23, 2026
F4 supporting edit granted (planner), for #2381:
skills/write-driver/scripts/write_driver.pyIn
openwizdev/WizSkills, this widens grant 7087161909 to cover review finding R1 on openwizdev/WizSkills#290 (verdict 7088000076). Only thekitcommand's staging of the driver may change: the proxy it hands KY1's kit must carry the driver'sREADME.mdbeside the executable, so the kit discovers the key host and runs its key-host check. Its tests go underskills/write-driver/tests/, failing first.jparker2006 commentedon Nov 23, 2026
Builder question on R3 (verdict 7088000076 on openwizdev/WizSkills#290): the expired-login lesson for a key host
R3 is right, and it can't be fixed inside my grants. The write-driver contract (
contracts/write-driver.v1.md, theexpired-loginlesson row andsign_in_next) defines the lesson as: the driver'sstartruns a local stand-in harness that ends on a sign-in line. The probe enforces this: "the driver never ran the stand-in harness, so this proves nothing". An API-only key-host driver never runs a local harness, because its agent runs on the host. Inside the probe's box (no sockets, only the executable andfixtures/), it also can't reach KY1's helper. So no driver written to N4 can pass this lesson, and the skill's passing report needs every lesson to pass.Options:
lesson expired-logintakes--key-host <name>. It runs the driver'sstartfrom its OpenWiz tree, with an empty home, a stubbedPATHand nothing else of the caller's. KY1's loopback override points at KY1'sFakeHost, which hands the helper a synthetic test key and answers the start call401: the host refusing an expired or revoked key. It passes whenstartexits 1 witherrorand anextexactly equal to a new contract form,key_next("check your key in your keychain or environment yourself, then start again"), and nothing it started still runs. This needs grants for: the contract's lesson row and the new form (a contract change: ask-first),write_driver.py'slessoncommand, and SKILL.md's lesson step. The Landlock and seccomp box stays exactly as it is for every other driver. This route runs outside it, because it needs loopback, and it touches only synthetic values.not run: the agent runs on the host, like the macOS line, and the passing report doesn't need it. That needs a contract change too, and it drops a real check: start must fail on a refused key, not answer a run whose note never comes.My pick: 1. It keeps the lesson's purpose (an expired login fails
startwith a plain next) for the login a key host really has, and it uses only KY1's fixtures. If it's too big for this S ticket, 3, with the follow-up filed now.I'm fixing R1, R2 and R4 meanwhile:
adapters/<host>/, because driver v1 keeps every driver there and that's where the helper resolves.<openwiz>is that fork for every step.jparker2006 commentedon Nov 23, 2026
launch-fleet: started (fresh builder: Claude Code, Opus 5.5, medium; fix round), started at 2026-11-23T00:43:31Z, record delayed by GitHub's content block
A fresh builder for one round on openwizdev/WizSkills#290 from head 10c51e1cf5f2a9ddc338cfc148a676a9656826c8: R1, R7, R8 and R9 of the re-check, then one final check by a fresh reviewer. Planner's ruling (2026-11-23). The earlier builder is archived and the branch is unchanged.
jparker2006 commentedon Nov 23, 2026
launch-fleet: archived