Skip to content

0.1.0 KN2: the driver interface and its five-check test kit #1367

Closed

Description

@jparker2006

Parent

Ticket KN2 of spec #1365 (0.1.0). Size: M.

What to build

A place that runs agents plugs in through one small contract. kernel/driver.v1.md defines the four commands (version, start with repository, ticket, skill, harness and model returning a run id, wake, stop), JSON in and out, a schema command printing one JSON Schema per command, plain field names, and errors as JSON with a plain next field. A driver template shows a minimal one in a few dozen lines. The test kit runs the five checks against any driver: start runs a throwaway ticket to a status note; wake reaches it; stop ends it; version matches records; no login or token passes through the driver.

Owned paths

  • kernel/driver.v1.md (new), kernel/driver-kit/ (new) and adapters/template/ (new)

Relies on: kernel/records.v1.md

Links

Acceptance criteria

  • The contract and its schemas cover the four commands, schema and JSON errors with next
  • The kit runs all five checks against the template driver on a throwaway repository and ticket, and fails a planted driver that passes a token through, red first
  • The template is small enough to copy and adapt in an hour
  • Test rule (The test rule: what earns a test, and what never does #687): every new test protects a supported behaviour, a contract others rely on or a safety invariant, and the pull request says per test catches: <the bug>, or no new test: <why>. No mock-returns-stub, source mirroring, compiler re-checks, quota tests or unreachable cases; a bug gets a failing test first.
  • Every test the pull request deletes names its keeper (a test that still catches its bug) or says the behaviour it protected is gone.

Proof

D1, D2: the kit against the template and a planted bad driver.

Builder Claude Code Opus 5.5 Medium and reviewer Codex Sol 6.2 Medium (J165), other family, no helper agents. A pull request in WizSkills follows the cross-repository route: a recorded claim on the pull request, exact-head CI green, the other-family review, and a merge pinned to the reviewed head.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions