Repository navigation
Description
Parent
Ticket DW1 of spec #1987 (0.1.1). Size: S.
What to build
A driver for Hermes at adapters/hermes/, copied from adapters/template/ and built on the driver contract (kernel/driver.v1.md): version, schema, start, wake and stop, with a fake Hermes under fixtures/bin/ so the kit runs in CI. Hermes runs locally behind hermes gateway on loopback: start is POST /v1/runs, wake is a run on the same session_id, stop is POST /v1/runs/{id}/stop until it settles cancelled. Hermes is its own agent, so harness is passed through its bundled Claude Code or Codex skill; say plainly in the README how that mapping works and what it can't control. Hermes' own bearer key stays in its own config and is never read by the driver. The exact commands are in the drivers-wave research (private/research/drivers-wave/2026-11-20.md in jparker2006/ClosedWiz; your parent passes the section). If one of start, wake or stop turns out not to be scriptable, stop and ask on this ticket. The driver never reads, prints or passes on a credential (contract section 2). Its README opens with one login line in the spec's form: Login: stays on your machine. Shared lines, one row each: the test line in .github/workflows/ci.yml, the entry in tools/open-import/paths.json, and the name in DRIVERS in tools/release/build_products.py.
Owned paths
adapters/hermes/inopenwizdev/OpenWiz(new).github/workflows/ci.ymlinopenwizdev/OpenWiz(shared: this driver's one test line)tools/open-import/paths.jsoninopenwizdev/OpenWiz(shared: this driver's one entry)tools/release/build_products.pyinopenwizdev/OpenWiz(shared: this driver's name in DRIVERS)
Relies on: kernel/driver.v1.md, kernel/driver-kit/schema.json
Links
none
Acceptance criteria
- The kit fails against the copied template first (red log in
evidence/), then passes all five checks on fixtures, in CI - No input, argument, output or copied environment carries a login, token, key or password
- The README's login line says where the user's login 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), and after the 0.1.0 cut
Proof
P1 (this driver): test_driver.py and the kit on fixtures, red first. P3: the code review.
Activity
jparker2006 commentedon Nov 20, 2026
launch-fleet: start withdrawn
jparker2006 commentedon Nov 20, 2026
launch-fleet: start checked, branch room/1988-hermes-driver
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:06Z: 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 #1988at 20:01Z.jparker2006 commentedon Nov 20, 2026
agent: builder
state: done
harness: claude
model: claude-opus-5-5
skills: build-ticket@0.2.0
step: Fixed re-check R2 and R6 red first, merged main and named the platform at a823bb6.
time: 2026-11-20T22:13:46Z
pr: #2017
jparker2006 commentedon Nov 20, 2026
Question (builder, #1988): the run endpoints need Hermes' bearer key, which this driver may not read.
What I found in Hermes' API server docs:
API_SERVER_KEYis required on every request, loopback included (auth: {type: bearer, required: true}). SoPOST /v1/runs, a run withsession_id, andPOST /v1/runs/{id}/stopcan only be called by sending that key. This ticket says the key "stays in its own config and is never read by the driver", and driver v1 N2 says a driver never reads a credential to pass it on. As written, start, wake and stop through the endpoints are not scriptable without breaking that rule, so I am stopping to ask, as the ticket says.Options:
start:hermes chat --oneshot --query-file - --format stream-json --source tool -m <model> -s <harness skill>(the prompt on stdin; thesession_idcomes from its firstsystem/initline).wake: the same command with--resume <session_id>, the same session and transcript, so the agent edits its own note.stop: interrupt the turn (Hermes documents Ctrl-C as an interrupt, endingresultwith exit 130), then end every process the turn started, using the template's supervisor. Hermes reads its own~/.hermesconfig, as the boat driver letsboatdo. The driver never touchesAPI_SERVER_KEYand needs no gateway port. The lifecycle words stay the same (start, wake on the same session, stop until it settles).API_SERVER_KEYfrom~/.hermes/.envand sends it only as an in-process HTTP header. It is never put in an argument, an environment or the output, but the driver does read a credential. That goes against this ticket's line and arguably N2, so I would not do it without an explicit ruling.The harness mapping is the same under each option:
harnesspicks Hermes' bundledclaude-codeorcodexskill, which shells out to that CLI. The README will say thatmodelgoes to Hermes, and that the inner CLI's own model and effort are whatever that skill and CLI choose.Meanwhile I am building the parts that don't depend on this (the copied template, the red kit run, the fixture tests' frame). I will build (a) only on a record author's answer here.
jparker2006 commentedon Nov 20, 2026
Planner ruling for DW1 #1988 (Hermes): option (a). The driver drives Hermes's own CLI, not its API server. Start is
hermes chat --oneshot --format stream-json, keeping the session id it returns. Wake is the same with--resume <session_id>. Stop interrupts and ends the run's process tree through the template's supervisor. Hermes reads its own configuration, and the driver never reads, sends or prints Hermes's API key (driver contract N2). This replaces the ticket's endpoint sentence; everything else in the ticket stands. DW1L's live check then needs only Hermes installed, not its API server turned on.12 remaining items
#1988: green: the login line sits right under the README's title, as …
jparker2006 commentedon Nov 20, 2026
launch-fleet: noted #2026
jparker2006 commentedon Nov 20, 2026
launch-fleet: noted #2026
kernel/driver.v1.md (the login-line section) changed in #2026; its builder was told at 21:17Z.
#1988: red: an LC_-named caller value reaches Hermes (R2), and test c…
#1988: green: Hermes gets only exact allowed names (R2); test cleanup…
#1988: green: drop the cleanup docstring that main's comment check re…
jparker2006 commentedon Nov 20, 2026
launch-fleet: noted #2028
kernel/driver.v1.md (the Supported platforms line) and kernel/driver-kit/ changed in #2028; its fresh-round builder was told in its brief at 22:1xZ.
#1988: green: merge origin/main and sync adapters/hermes/schema.json
jparker2006 commentedon Nov 24, 2026
agent: reviewer
state: done
harness: claude-code
model: claude-opus-5-5
skills: review-ticket@0.4.0
step: APPROVE posted at ea8d2ef
time: 2026-11-24T12:57:57Z
pr: #2017
jparker2006 commentedon Nov 24, 2026
Planner note: #2017 is approved at ea8d2ef but left the merge queue on a merge conflict (14:49Z). A fresh builder in its own boat.dev sandbox merges main (a merge commit, noreply identity), gets a fresh full CI run and posts the hand-back; then a merge-only re-check.
jparker2006 commentedon Nov 24, 2026
agent: builder
state: done
harness: Codex
model: Sol 6.2 medium effort
skills: build-ticket@0.2.2
step: Resolved the merge conflicts without changing Hermes behavior; handed back the new head for fresh CI and a merge-only re-check.
time: 2026-11-24T14:54:55Z
pr: #2017
#1988: green: merge main and keep Factory and Hermes registered
jparker2006 commentedon Nov 24, 2026
agent: reviewer
state: done
harness: Claude Code
model: Opus 5.5
skills: review-ticket@0.4.0
step: APPROVE posted at 2456274
time: 2026-11-24T15:39:31Z
pr: #2017