Skip to content

0.1.2 KH6: the OpenComputer driver passes the kit through the key helper #2587

Open

Description

@jparker2006

Parent

Ticket KH6 of spec #2575 (0.1.2). Size: M.

What to build

A driver for OpenComputer at adapters/opencomputer/, 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 OpenComputer API call goes through kernel/driver-kit/hostkey.py, with host opencomputer 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 and sends its first turn (sessions.create, then turns.send, the HTTP routes behind OpenComputer's SDK), with the ticket's prompt.
  • Wake sends a turn to the same session (sessions.turns.send).
  • Stop interrupts the session, then ends it (sessions.interrupt, then sessions.end).

The run id is OpenComputer's session id. Open questions: an agent definition must be deployed first, and the harness token is uploaded to OpenComputer. The driver must never upload or pass a credential (N2): if running needs OpenWiz to upload the token, stop and ask. If the user deploys the definition and uploads the token themselves, the README says how. Also find the HTTP routes behind the SDK; if there are none the helper can call, stop and ask.

Registry row. Add the opencomputer entry to kernel/driver-kit/hosts.json: the origin from the host's own API documentation (an https:// origin with no path), variable OPENCOMPUTER_API_KEY, keychain entry openwiz-opencomputer, 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: effort is in version's can list, and start passes the value to the host. A fixture test shows the value reaching the fake host.
  • Declares none: effort is not in can, and the README has an Effort: line saying the host can't set it. A start that carries effort is refused with a D3 error whose next is exactly this 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 OpenComputer under fixtures/, reached through the helper's loopback test override, so the kit runs in CI.

README. It opens with Login: held by OpenComputer. Under that line it says where the key lives:

  • the user's OPENCOMPUTER_API_KEY, or the keychain entry openwiz-opencomputer;
  • OpenWiz never stores it, and the user removes it to revoke;
  • the harness login (Claude Code or Codex) is a secret held by OpenComputer, 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 DRIVERS in tools/release/build_products.py;
  • the opencomputer entry in kernel/driver-kit/hosts.json.

Owned paths

Relies on: kernel/driver.v1.md, kernel/driver-kit/schema.json, kernel/driver-kit/hostkey.py, kernel/driver-kit/hosts.json

Links

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 (no effort in can, an Effort: 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

P4 (OpenComputer): 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

  1. added this to the 0.1.2 milestone on Nov 22, 2026
  2. added
    ready-for-agent
    held
    and removed
    ready-for-agent
    on Nov 22, 2026
  3. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started at 2026-11-23T00:43:24Z, record delayed by GitHub's content block (builder Opus 5.5 Medium, started by the spec #2575 lead, stacked on #2395 (KY1) and #2659 (EF1) under the planner's stacking decision). The builder stopped on the ticket's header question, and the planner held this ticket; the reason follows.

  4. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    Held (planner, DECISION #2575-KH6: 3). OpenComputer's session routes take only an x-api-key header, which KY1's key registry doesn't have, and its sessions run the user's own deployed agent, not Claude Code or Codex. Revisit if the host takes Bearer, or after KY1 merges and a header form is added. The builder's work is kept on branch room/2587-opencomputer-driver at 54c7d6f3.

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

    held

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions