Skip to content

0.1.2 kit: the key check's nested probe uses its own synthetic repository, not the user's --repo #2921

Done

Description

@jparker2006

What's wrong

Found in the KH3 review (#2662, finding R3). KH3 and KH4 dispute their findings as blocked on this.

The driver kit's key check runs a nested start against the driver's static fixtures/kit-host.json replies, and forwards the user's --repo to it (kernel/driver-kit/kit.py, the nested probe, around line 876 on main). A host whose fake replies are fixed to one repository, such as Tembo, can't answer for an arbitrary repository. So a live check on a real throwaway repository fails token even when the lifecycle passes.

The fix

The nested key-check probe uses a dedicated synthetic repository of its own, not the user's --repo. Alternatively, kit-host.json replies become request-aware. Either way, a driver's fixture replies keep working whatever outer repository the user checks.

Also in scope (from the CI lead): fixture replies must be request-aware enough to ECHO a request field. In particular, a run id the driver supplies on create must come back as the create answer's id. Tembo (KH3) requires the create answer's id to equal the UUID it sent, and a static kit-host.json can't echo it. Define a small, explicit echo syntax in kit-host.json (for example, a placeholder naming the request field) and document it in the kit README. KH3's token check and CI stay red until this lands.

Proof

Red first:

  • a regression where the outer --repo differs from the repository in the fixture replies: it fails token today, and passes with the fix, with the key-host proof line unchanged;
  • a fixture driver that sends its own run id (a UUID) on create and requires the reply's id to equal it: it fails today, and passes with the echo;
  • a malformed echo placeholder is refused clearly. Run the kit suite behind the agent CLI stubs with env -u OPENWIZ_GITHUB_APP_KEY.

Owned paths

  • kernel/driver-kit/kit.py (only the key check's nested-probe lines and the fake host's reply templating)
  • kernel/driver-kit/README.md (only the kit-host.json echo syntax)
  • kernel/driver-kit/test_kit.py (only new tests)
  • kernel/driver-kit/fixtures/ (only new fixtures)
  • kernel/driver-kit/evidence/ (only new files)

Relies on: #2379 (KY1, merged). Ordered after #2763 (#2881) on kit.py, or shared with it if their lines are disjoint, and before #2862. Size: S. Builder: Opus 5.5 Medium; reviewer: Codex. Part of spec #2378's plan.

Also in scope: the model (added 2026-11-24)

The nested probe also forwards the user's --model. KH1 (OpenHands, #2567) needs an exact ACP profile for the requested model, because driver v1 D4 allows no default-model fallback. But its static kit-host.json profile is Synthetic 1, so a live run with a real model fails token even when the lifecycle passes. Fix it like the repository: the nested probe uses a synthetic model of its own, or the fixture echoes the requested model through the same echo syntax.

Extra red test: an outer --model that differs from the fixture's profile model. It fails token today, and passes with the fix.

Activity

  1. added this to the 0.1.2 milestone on Nov 24, 2026
  2. added
    ready-for-agent
    on Nov 24, 2026
  3. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: done
    harness: Antigravity
    model: Gemini 4 Neon
    skills: build-ticket@0.2.2
    step: Merged origin/main into PR #2939 at 7cf8dee; all 9 CI checks green and hand-back posted.
    time: 2026-11-24T12:03:54Z
    pr: #2939

  4. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started

    Hand-recorded by the planner: the builder was started directly on the owner's word at about 10:20Z on 2026-11-24 (Gemini builder, medium effort); checks read before this record: open, ready-for-agent, no open blocker, owned paths named, no earlier start record.

  5. added a commit that references this issue on Nov 24, 2026
  6. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    agent: reviewer
    state: done
    harness: Claude Code
    model: Claude Opus 5.5
    skills: review-ticket@0.4.0
    step: re-check posted: APPROVE at 7cf8dee
    time: 2026-11-24T12:27:17Z
    pr: #2939

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