Repository navigation
Description
Parent
Ticket KH3 of spec #2575 (0.1.2). Size: M.
What to build
A driver for Tembo at adapters/tembo/, 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 Tembo API call goes through kernel/driver-kit/hostkey.py, with host tembo 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 /v1/sessions, with the ticket's prompt and the harness the request names (Tembo'sclaudeCode:…orcodexagent value). - Wake sends a message to the same session:
POST /v1/messages, naming the session. - Stop stops the session:
POST /v1/sessions/<id>/stop(andDELETEit, if the API needs that to end it).
The run id is Tembo's session id.
Registry row. Add the tembo entry to kernel/driver-kit/hosts.json: the origin from the host's own API documentation (an https:// origin with no path), variable TEMBO_API_KEY, keychain entry openwiz-tembo, header authorization-bearer. If the host's auth header is not a bearer token, stop and ask on this ticket: the registry has no other header form.
Open questions stop you. The API shapes above come from the drivers census (private), which your lead passes. They come from the host's published API documentation; nothing has run live. If start, wake (the same run) or stop doesn't work as documented, stop and ask on this ticket: a host without wake or stop gets no driver.
Effort (J318, spec #2471). The driver either takes the user's effort or declares that it takes none. Never a silent default. Choose from the host's API, and record the choice and its source in the PR's Rulings:
- Takes effort:
effortis inversion'scanlist, andstartpasses the value to the host. A fixture test shows the value reaching the fake host. - Declares none:
effortis not incan, and the README has anEffort:line saying the host can't set it. Astartthat carrieseffortis refused with a D3 error whosenextis exactlythis host can't set effort: remove the effort for this harness in your Models table or Roster to run it at the host's default.
The field's shape is EF1's (#2558): the optional effort start input and the can entry, in kernel/driver.v1.md and kernel/driver-kit/schema.json. This driver's schema.json copy is EF1's new schema byte for byte.
Fixtures. A fake Tembo under fixtures/, reached through the helper's loopback test override, so the kit runs in CI.
README. It opens with Login: held by Tembo. Under that line it says where the key lives:
- the user's
TEMBO_API_KEY, or the keychain entryopenwiz-tembo; - OpenWiz never stores it, and the user removes it to revoke;
- the harness login (Claude Code or Codex) is a secret held by Tembo, named in the run, never passed by OpenWiz.
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; - the
temboentry inkernel/driver-kit/hosts.json.
Owned paths
adapters/tembo/(new)kernel/driver-kit/hosts.json(shared with 0.1.2 spec: drivers for hosts that need an API key #2378's tickets and 0.1.2 spec: key-host wave 1, OpenHands Cloud and Warp Oz drivers #2425's drivers and 0.1.2 spec: key-host wave 2, Tembo, Capy, Ona and OpenComputer drivers #2575's other drivers: only thetemboentry).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 host registry and the kit's key check, which this driver calls and must pass
- 0.1.2 EF1: driver v1's optional
effortstart field, itscanentry and the can't-set-effort statement (the contract) #2558 real: the optionaleffortstart field, itscanentry and the refusal text this driver takes or declares - 0.1.2 EF15: the kit's key-host effort proof counts only the run-creation request #2819 real: the kit must prove effort reached the host at run creation
- 0.1.2 kit: the key check's nested probe uses its own synthetic repository, not the user's --repo #2921 real: the kit's nested key-check probe uses a synthetic repository and echoes the create request's id, which Tembo's exact repository match and create-id check need
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 driver takes the user's effort (in
can, with a fixture test showing it reach the fake host) or declares none (noeffortincan, anEffort:README line, and the exact D3 refusal for a start that carries it) - 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
P1 (Tembo): test_driver.py and the kit on fixtures, red first; P5: the kit's key check and the code review. The live 5-of-5 is its live-check ticket.
Activity
effortstart field, itscanentry and the can't-set-effort statement (the contract) #2558jparker2006 commentedon Nov 22, 2026
launch-fleet: started (builder Opus 5.5 Medium, started by the spec #2575 lead, stacked on #2395 (KY1) under the planner's stacking decision; draft PR, merges only after #2379 and #2558 merge, the 0.1.1 cut and its live check)
jparker2006 commentedon Nov 22, 2026
agent: builder
state: done
harness: Claude Code
model: Opus 5.5
skills: build-ticket@0.2.2
step: Draft PR 2662 at 9ffdce1: EF1 and KY1's newer head merged in, effort in can, schema is EF1's; driver 16 of 16 and hostkey 25 of 25 behind agent CLI stubs.
time: 2026-11-23T01:06:06Z
pr: #2662
#2578: merge EF1's branch (#2558) at 371c9cb
#2578: red: after EF1, version must list effort and schema.json must …
#2578: effort joins version's can, and schema.json is EF1's byte for …
#2578: merge KY1's branch (#2395) at 4a8dfe8
jparker2006 commentedon Nov 23, 2026
F4 supporting edit granted (planner), for #2578:
tools/release/build_products.pyScope: beyond this ticket's
DRIVERSname, only thetemborow inKEY_CHECK_FILES(itsREADME.mdandfixtures/kit-host.json), so the installed kit runs this driver's key check the way it already does Devin's. Shared with the other key-host drivers, one row each. Granted by the spec #2425 and #2575 lead.#2578: green: verify Tembo lifecycle and effort on the loopback host
#2578: the installed kit runs tembo's key check too (KEY_CHECK_FILES …
jparker2006 commentedon Nov 23, 2026
launch-fleet: look: builder routing unavailable for the existing start on branch room/2578-tembo-driver; cannot verify its assignment or deliver the kernel/driver.v1.md change from #2395. Orchestrator routing reconciliation required.
#2578: red: Tembo answers off their documented shape must refuse with…
#2578: WIP: validate every Tembo answer against its documented shape;…
#2578: after-run log: fail-closed proofs pass; the nested kit key che…