Skip to content

0.1.2 MG1: driver v1's model field accepts provider-qualified model ids #2904

Done

Description

@jparker2006

Parent

Ticket MG1 of spec #2427 (0.1.2): driver v1's model field accepts provider-qualified model ids. This is a contract change, by the planner's ruling. Size: M.

What to build

Driver v1's model grammar, ^[A-Za-z0-9][A-Za-z0-9 ._:@+-]{0,59}$ in kernel/driver-kit/schema.json and in the local driver's START table, refuses /. That blocks the documented provider-qualified ids that harness rows need. Reviews found it on Pi (#2774 R2), Kimi (#2785 R1: kimi login provisions kimi-code/kimi-for-coding) and OpenCode (--model provider/model). Kilo and Crush in wave 2 hit it as well.

Widen the grammar to /-separated segments:

  • each segment follows today's character rules;
  • no leading or trailing /, no //, and no segment that is . or ..;
  • ~ may open a segment only if a real CLI's own docs show it (OpenCode's OpenRouter ids such as openrouter/~anthropic/...). Cite the source, or leave ~ out.

Keep the length cap, or raise it slightly and give the reason, with the longest real ids you found.

Change only:

  • kernel/driver-kit/schema.json: the start model pattern;
  • kernel/driver.v1.md: one sentence saying the model may be provider-qualified;
  • the local driver's START model pattern, kept equal to the schema;
  • adapters/local/schema.json: the byte copy;
  • the kit's tests: real ids taken from the Pi, OpenCode, Kilo, Crush and Kimi docs, with links, all accepted; and refused shapes (/x, x/, x//y, x/../y, x/./y, a space-only segment, too long);
  • changes/<this ticket>.md.

The credential check on start fields stays as it is. A provider-qualified id is not a credential, so check that the kit's holds_credential doesn't flag the real ids.

Every other driver keeps a byte copy of schema.json (EF1's rule), checked by its own test_driver.py. Copy the new schema into each driver's adapters/<driver>/schema.json listed under Owned paths (the drivers on main when this ticket was cut). If another driver has merged with its own copy by build time, ask on this ticket for a grant, since those are byte-for-byte copies with no logic. Every open driver PR re-copies schema.json from main after this merges, or it fails release (2) in the merge queue. The PR body says so, and the lead tells the other leads.

First commit: an approach note at the top of the PR body. It covers the grammar, the threat list (path traversal if a model reaches a path, argument injection, credential shapes, length) and what the tests can and can't prove.

Owned paths

  • kernel/driver-kit/schema.json (shared: the start model pattern only)
  • kernel/driver.v1.md (shared: one sentence on the model field)
  • kernel/driver-kit/test_kit.py (shared: the model grammar cases only)
  • adapters/local/driver (shared: the START model pattern only)
  • adapters/local/schema.json (shared: the byte copy only)
  • changes/2904.md (new)
  • adapters/boat/schema.json (shared: the byte copy only)
  • adapters/cloudroom/schema.json (shared: the byte copy only)
  • adapters/devin/schema.json (shared: the byte copy only)
  • adapters/openclaw/schema.json (shared: the byte copy only)
  • adapters/template/schema.json (shared: the byte copy only)

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

Links

Acceptance criteria

  • Red first: a start with a real provider-qualified id, for example Kimi's kimi-code/kimi-for-coding, is refused at main (D3, model is not valid), and every listed bad shape is shown
  • Green: the real ids from five CLIs' docs pass the schema and adapters/local/driver start's validation, and every bad shape is refused
  • Every adapters/*/schema.json equals kernel/driver-kit/schema.json byte for byte, and every driver's test_driver.py passes
  • The kit's own tests and adapters/local/test_harnesses.py pass

Proof

The kit's and the local driver's red then green, plus each driver's byte-copy check.

Activity

  1. added this to the 0.1.2 milestone on Nov 23, 2026
  2. added 5 commits that reference this issue on Nov 24, 2026
  3. added
    ready-for-agent
    on Nov 24, 2026
  4. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started
    launch-fleet: start checked, branch room/2904-model-grammar

    Started at 00:56:21Z on the planner's ruling (driver v1 model grammar, option a), on Claude Opus 5.5 Medium. The record is delayed by GitHub's write pacing. Hand checks read just before the start:

    The planner's ruling makes adapters/local/driver shared with EF4 #2585: this ticket touches only the START model pattern.

  5. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: working
    harness: Claude Code
    model: Opus 5.5
    skills: build-ticket@0.2.2
    step: Built the provider-qualified model grammar with red-first proofs; running the hand-back checks.
    time: 2026-11-24T06:07:02Z

  6. added 2 commits that reference this issue on Nov 24, 2026
  7. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #2904:

    adapters/template/driver

    adapters/boat/driver

    adapters/cloudroom/driver

    adapters/devin/driver

    adapters/openclaw/driver

    kernel/live-rig/rig.py

    Each grant covers only the duplicated model-pattern line: each driver's START model pattern and KIT_MODEL in rig.py. Each changes to the same widened grammar as kernel/driver-kit/schema.json, with a test that a real provider-qualified id now passes. The same drivers' test_driver.py files are granted for that one test each. Other open PRs share these files by line: EF2 #2700 (boat, cloudroom and devin test start lines), EF9 #2855 (openclaw) and the live-rig PRs on rig.py. Whichever merges second merges main in, resolves keeping both sides, and gets a merge-only re-check. Granted by the wave 1 lead under the planner's ruling (option a).

    adapters/template/test_driver.py

    adapters/boat/test_driver.py

    adapters/cloudroom/test_driver.py

    adapters/devin/test_driver.py

    adapters/openclaw/test_driver.py

  8. added a commit that references this issue on Nov 24, 2026
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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions