Skip to content

0.1.2 EF2: the kit's effort check, lenient until EF14 #2562

Done

Description

@jparker2006

Parent

Ticket EF2 of spec #2471 (0.1.2), effort as a first-class setting (J318). The kit learns to see effort reach the host, or the plain statement that it can't. Size: M.

What to build

Add an effort check to kernel/driver-kit/kit.py, as the spec's The kit's effort check says, and as section 3 of kernel/driver.v1.md states it (EF1). It is part of the start check, not a new line: the kit still prints exactly five lines (version, start, wake, stop, token), so "5 of 5", the kit README's order line and contracts/write-driver.v1.md stay true and untouched. start's line names the effort result, and a failed effort part fails start. Add an optional --effort <word> flag.

  • A driver whose can lists effort: the kit's start carries effort (--effort, default medium).
    • It passes when that value appears in the command line or environment of a process the run started (the kit-marked processes the token check already watches).
    • For a key-host driver (one on KY1's key helper, whose API calls go through the helper's stdin request body), it also reads what reached the host: the kit's loopback fake host log, the one KY1's key check already uses. The check passes when the value is in the request the fake host received. It must not rely on argv and environment alone.
    • It also passes when the start is refused with exactly the contract's refusal next and no run, and the README's Effort: line or table says that harness can't. Then the kit runs the remaining checks with a start without effort.
  • A driver without effort in can: the kit sends one extra start with effort. It passes only when that start is refused (D1), with no run and no marked process left, and the README beside the driver has an Effort: line saying the host can't set it.
  • A driver whose can lists effort: its README must have the Effort: line, naming the flag, or the check fails.
  • A driver without effort in can and with no README Effort: line: it passes, with the note not declared yet; required from EF14. EF14 removes this.

Add the planted drivers in kernel/driver-kit/fixtures/planted/:

  • effort-dropped lists effort in can but never passes it;
  • effort-wrong-next refuses with a next other than the exact text;
  • effort-no-readme-line lists effort in can and passes it, but its README has no Effort: line.
    Add one fake-harness option that records its arguments, and a planted key-host driver that drops effort from its request body (effort-dropped-key-host). Name the exact line each must print in test_kit.py. Update the kit README.

Stacking: KY1 (#2379, PR #2395) and polish G (#2293, PR #2337) own the same kit files and wait for the 0.1.1 cut. Branch from a merge of PR #2395's head and PR #2337's head (they merge cleanly), open a draft pull request that names both, and merge only after both. Don't change their work except to keep it green.

Owned paths

  • kernel/driver-kit/kit.py
  • kernel/driver-kit/test_kit.py
  • kernel/driver-kit/README.md
  • kernel/driver-kit/fixtures/
  • kernel/driver-kit/evidence/ (shared: this ticket's red and green files only)

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

Links

Acceptance criteria

  • Each planted effort driver fails start with its named line, and the template still passes every check
  • A driver without effort in can and with no README Effort: line passes with the note
  • env -u OPENWIZ_GITHUB_APP_KEY python3 -I kernel/driver-kit/test_kit.py passes

Proof

Spec claim: the kit sees effort reach the host, or the plain statement. Red first: effort-dropped passes the current kit. Green: it fails start, naming effort. Save the files in kernel/driver-kit/evidence/.

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
    held
    on Nov 22, 2026
  3. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started

    Hand checks (lead, plan revision 2 approved on #2471):

  4. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    Lead ruling for this ticket (EF2), on the builder's question: for a driver that is still undeclared (no effort in can and no README Effort: line), the start line stays exactly as today. The lenient note (effort: not declared yet; required from EF14) goes to the kit's stderr. start's line names the effort result only for a driver that has declared, in either form. Why: the existing driver tests assert today's exact start line, and those files belong to this spec's parallel tickets (EF3, EF4, EF5) and to polish F. Changing them here would make those tickets clash. EF14 makes an undeclared driver fail start, and by then every driver on main has declared.

  5. added 4 commits that reference this issue on Nov 23, 2026
  6. 22 remaining items

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

    @jparker2006
    MemberAuthor

    Builder question: full CI on PR #2700 at 1f67eb5a passed lint, rust, owned-paths, privacy, changelog, release (1), and every driver-kit and adapter suite in release (2), and failed only in The live-check rig's tests (kernel/live-rig/test_heads.py, and locally kernel/live-rig/test_rig.py). Both files are outside #2562's owned paths and F4 grant.

    Why they fail:

    • kernel/live-rig/test_heads.py: copies adapters/template/driver (and wraps it in adapters/four/driver and adapters/quoting/driver) into a throwaway checkout without adapters/template/README.md or Effort: READMEs beside the two wrappers. Because adapters/template/driver on main lists effort in can, kit.py fails start with effort: its can lists effort, but its README has no Effort: line naming the flag.
    • kernel/live-rig/test_rig.py: COPIED copies adapters/template/driver without adapters/template/README.md and kernel/driver-kit/fixtures/planted without kernel/driver-kit/fixtures/base (which planted/* now loads); its quoting-driver wrapper also has no README.md beside it; and its expected PASS[1] start line lacks ; effort: medium reached a process the run started.

    Smallest change needed (requesting an F4 supporting-edit grant for these two files):

    1. kernel/live-rig/test_heads.py: copy adapters/template/README.md into the throwaway checkout for adapters/template/, adapters/four/, and adapters/quoting/.
    2. kernel/live-rig/test_rig.py: add adapters/template/README.md and kernel/driver-kit/fixtures/base to COPIED, copy adapters/template/README.md beside adapters/quoting/driver, and update PASS[1] to include ; effort: medium reached a process the run started.

    Recommend: grant an F4 supporting edit for kernel/live-rig/test_heads.py and kernel/live-rig/test_rig.py (test fixture setup and expected kit start line only).

  9. added
    needs-info
    on Nov 24, 2026
  10. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #2562:
    kernel/live-rig/test_heads.py
    kernel/live-rig/test_rig.py

    Scope: in openwizdev/OpenWiz. Only the minimal fixture fix: the throwaway checkouts these tests build also receive the template driver's README and the kit's base fixture, so the kit's Effort: check can run there. No test is removed or weakened, and nothing else in either file changes. Granted on the orchestrator's ruling.

  11. removed
    needs-info
    on Nov 24, 2026
  12. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    Builder question: applying the granted fixture fix (README.md, hostkey.py, hosts.json, fixtures/base) in kernel/live-rig/test_heads.py and kernel/live-rig/test_rig.py gets test_heads.py to 11/15 and test_rig.py to 13/15, and uncovers a real blocker outside the grant:

    1. kernel/live-rig/receipt.py:198-203 (production code, not in owned paths or grant): kit_lines() validates pass start: with NOTE_ID = r'[0-9]+\Z', so it rejects pass start: the run posted builder status note 2; effort: medium reached a process the run started for every driver that declares effort. This breaks 3 tests in test_heads.py (test_five_of_five_..., test_post_reaches_only_the_fake_gh_..., test_a_post_retried_after_a_lost_write_...).
    2. kernel/live-rig/test_rig.py:28 and :230 (outside the fixture-only grant wording): PASS[1] expects pass start: the run posted builder status note 2 (without ; effort: medium reached a process the run started), and line 230 expects fail start: cannot start ... in .../adapters/quoting\n (without ; next: fix the fixture\n).
    3. kernel/driver-kit/kit.py:622 (owned): on a non-key-host driver's main start, if kind == 'bad': return 'fail', 'effort: ' + v adds effort: in front of its start output held a credential, which the kit does not show, breaking test_heads.py:368 (quoted=SECRET). I can fix that inside our owned paths.

    Options:

    • A (recommended): widen the F4 grant to include kernel/live-rig/receipt.py (accept the ; effort: ... suffix on pass start: in kit_lines(), plus its test in kernel/live-rig/test_receipt.py) and the two expected start lines in kernel/live-rig/test_rig.py, plus kernel/driver-kit/hostkey.py and kernel/driver-kit/hosts.json in test_heads.py/test_rig.py's throwaway checkouts.
    • B: land receipt.py's effort-line support in a separate ticket on main first, then re-run CI on #2562: 0.1.2 EF2: the kit's effort check, lenient until EF14 #2700.
  13. added
    needs-info
    on Nov 24, 2026
  14. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #2562:
    kernel/live-rig/receipt.py
    kernel/live-rig/test_receipt.py
    kernel/live-rig/test_rig.py
    kernel/live-rig/test_heads.py

    Scope: in openwizdev/OpenWiz, widening the earlier grant on the orchestrator's ruling (option A). receipt.py: only kit_lines() accepting the ; effort: ... suffix on pass start:. test_receipt.py: only the test for that. test_rig.py: only the two expected start lines, plus the fixture fix already granted. Both rig test files: copying hostkey.py and hosts.json into the throwaway checkouts. Nothing else in any of the four files. Reason: the kit's new start line and the rig's parser change together, or main goes red.

  15. removed
    needs-info
    on Nov 24, 2026
  16. added a commit that references this issue on Nov 24, 2026
  17. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    agent: reviewer
    state: done
    harness: Claude Code
    model: Opus 5.5
    skills: review-ticket@0.4.0
    step: final check of R10 at 96a6353: APPROVE
    time: 2026-11-24T12:09:49Z
    pr: #2700

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