Repository navigation
Description
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
canlistseffort: the kit's start carrieseffort(--effort, defaultmedium).- 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
nextand no run, and the README'sEffort:line or table says that harness can't. Then the kit runs the remaining checks with a start withouteffort.
- A driver without
effortincan: the kit sends one extra start witheffort. It passes only when that start is refused (D1), with no run and no marked process left, and the README beside the driver has anEffort:line saying the host can't set it. - A driver whose
canlistseffort: its README must have theEffort:line, naming the flag, or the check fails. - A driver without
effortincanand with no READMEEffort:line: it passes, with the notenot declared yet; required from EF14. EF14 removes this.
Add the planted drivers in kernel/driver-kit/fixtures/planted/:
effort-droppedlists effort incanbut never passes it;effort-wrong-nextrefuses with anextother than the exact text;effort-no-readme-linelists effort incanand passes it, but its README has noEffort: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 intest_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.pykernel/driver-kit/test_kit.pykernel/driver-kit/README.mdkernel/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
- 0.1.2 EF1: driver v1's optional
effortstart field, itscanentry and the can't-set-effort statement (the contract) #2558 real: theeffortstart field andcanentry inschema.json, which the kit validates every answer against, and the exact refusal text
Acceptance criteria
- Each planted effort driver fails
startwith its named line, and the template still passes every check - A driver without
effortincanand with no READMEEffort:line passes with the note -
env -u OPENWIZ_GITHUB_APP_KEY python3 -I kernel/driver-kit/test_kit.pypasses
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
effortstart field, itscanentry and the can't-set-effort statement (the contract) #2558jparker2006 commentedon Nov 23, 2026
launch-fleet: started
Hand checks (lead, plan revision 2 approved on #2471):
ready-for-agenteffortstart field, itscanentry and the can't-set-effort statement (the contract) #2558 (EF1) is not merged: OpenWiz main is frozen. With the planner's go, this ticket builds stacked on EF1's in-review head (PR #2558: 0.1.2 EF1: driver v1's optionaleffortstart field, itscanentry and the can't-set-effort statement (the contract) #2659,371c9cb) as a draft, and merges only after EF1.jparker2006 commentedon Nov 23, 2026
Lead ruling for this ticket (EF2), on the builder's question: for a driver that is still undeclared (no
effortincanand no READMEEffort:line), thestartline 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 exactstartline, 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 failstart, and by then every driver on main has declared.#2562: per the lead's ruling, an undeclared driver's start line stays…
#2562: merge KY1's new head (PR #2395)
#2562: green: the kit's effort check, with the lead's stderr note, on…
#2562: red: review R1 to R4 and R7; the fixtures move to a fixed copy…
22 remaining items
#2562: green: remove the kit's plain retry and R11-R13 machinery; rep…
#2562: green: kit 42, hostkey 25 and every adapter suite pass after R…
jparker2006 commentedon Nov 24, 2026
Builder question: full CI on PR #2700 at
1f67eb5apassedlint,rust,owned-paths,privacy,changelog,release (1), and every driver-kit and adapter suite inrelease (2), and failed only inThe live-check rig's tests(kernel/live-rig/test_heads.py, and locallykernel/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: copiesadapters/template/driver(and wraps it inadapters/four/driverandadapters/quoting/driver) into a throwaway checkout withoutadapters/template/README.mdorEffort:READMEs beside the two wrappers. Becauseadapters/template/driveronmainlistseffortincan,kit.pyfailsstartwitheffort: its can lists effort, but its README has no Effort: line naming the flag.kernel/live-rig/test_rig.py:COPIEDcopiesadapters/template/driverwithoutadapters/template/README.mdandkernel/driver-kit/fixtures/plantedwithoutkernel/driver-kit/fixtures/base(whichplanted/*now loads); itsquoting-driverwrapper also has noREADME.mdbeside it; and its expectedPASS[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):
kernel/live-rig/test_heads.py: copyadapters/template/README.mdinto the throwaway checkout foradapters/template/,adapters/four/, andadapters/quoting/.kernel/live-rig/test_rig.py: addadapters/template/README.mdandkernel/driver-kit/fixtures/basetoCOPIED, copyadapters/template/README.mdbesideadapters/quoting/driver, and updatePASS[1]to include; effort: medium reached a process the run started.Recommend: grant an F4 supporting edit for
kernel/live-rig/test_heads.pyandkernel/live-rig/test_rig.py(test fixture setup and expected kit start line only).jparker2006 commentedon Nov 24, 2026
F4 supporting edit granted (planner), for #2562:
kernel/live-rig/test_heads.pykernel/live-rig/test_rig.pyScope: 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'sEffort:check can run there. No test is removed or weakened, and nothing else in either file changes. Granted on the orchestrator's ruling.jparker2006 commentedon Nov 24, 2026
Builder question: applying the granted fixture fix (
README.md,hostkey.py,hosts.json,fixtures/base) inkernel/live-rig/test_heads.pyandkernel/live-rig/test_rig.pygetstest_heads.pyto 11/15 andtest_rig.pyto 13/15, and uncovers a real blocker outside the grant:kernel/live-rig/receipt.py:198-203(production code, not in owned paths or grant):kit_lines()validatespass start:withNOTE_ID = r'[0-9]+\Z', so it rejectspass start: the run posted builder status note 2; effort: medium reached a process the run startedfor every driver that declares effort. This breaks 3 tests intest_heads.py(test_five_of_five_...,test_post_reaches_only_the_fake_gh_...,test_a_post_retried_after_a_lost_write_...).kernel/live-rig/test_rig.py:28and:230(outside the fixture-only grant wording):PASS[1]expectspass start: the run posted builder status note 2(without; effort: medium reached a process the run started), and line 230 expectsfail start: cannot start ... in .../adapters/quoting\n(without; next: fix the fixture\n).kernel/driver-kit/kit.py:622(owned): on a non-key-host driver's main start,if kind == 'bad': return 'fail', 'effort: ' + vaddseffort:in front ofits start output held a credential, which the kit does not show, breakingtest_heads.py:368(quoted=SECRET). I can fix that inside our owned paths.Options:
kernel/live-rig/receipt.py(accept the; effort: ...suffix onpass start:inkit_lines(), plus its test inkernel/live-rig/test_receipt.py) and the two expectedstartlines inkernel/live-rig/test_rig.py, pluskernel/driver-kit/hostkey.pyandkernel/driver-kit/hosts.jsonintest_heads.py/test_rig.py's throwaway checkouts.receipt.py's effort-line support in a separate ticket onmainfirst, then re-run CI on #2562: 0.1.2 EF2: the kit'seffortcheck, lenient until EF14 #2700.jparker2006 commentedon Nov 24, 2026
F4 supporting edit granted (planner), for #2562:
kernel/live-rig/receipt.pykernel/live-rig/test_receipt.pykernel/live-rig/test_rig.pykernel/live-rig/test_heads.pyScope: in
openwizdev/OpenWiz, widening the earlier grant on the orchestrator's ruling (option A).receipt.py: onlykit_lines()accepting the; effort: ...suffix onpass 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: copyinghostkey.pyandhosts.jsoninto 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, ormaingoes red.#2562: green: fix kit.py bad-start prefix on main start and update li…
jparker2006 commentedon Nov 24, 2026
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