Skip to content

0.1.0 KN25: the boat.dev and local drivers run on macOS #2010

Closed

Description

@jparker2006

Parent

Ticket KN25 of spec #1365 (0.1.0). Size: M. Highest priority after the release work: in-person installs this weekend are mostly on MacBooks.

What to build

The boat.dev driver, the local driver, the template driver and the driver kit read /proc (stat, environ, cmdline) to find and stop their own processes, so they only work on Linux. Replace those reads with a portable way to list and stop the driver's own processes, using the standard library only: process groups the driver creates (start each run's supervisor in its own group or session and signal the group) and ps where a listing is needed. Keep Linux behaviour byte for byte wherever tests pin it. The kit's token and stop checks must work on macOS too; where macOS can't see a process's environment, the kit uses the run's process group instead of the environment mark, and its README says how. The Cloudroom driver already says "Linux or macOS" and reads no /proc: leave it, and note it in the pull request.

State the supported platforms: one line in the driver contract (kernel/driver.v1.md), each driver README's header and the Drivers page.

Prepare one command Jake pastes on his MacBook that runs the kit against the boat.dev driver at this pull request's head and prints pass or fail per check, with no secret, token or account detail in its output. Put it in the pull request description.

Owned paths

  • adapters/boat/ in openwizdev/OpenWiz (shared with DW10 and DW11: the process listing and stop only)
  • adapters/local/ in openwizdev/OpenWiz (the process listing and stop only)
  • adapters/template/ in openwizdev/OpenWiz
  • kernel/driver-kit/ in openwizdev/OpenWiz
  • kernel/driver.v1.md in openwizdev/OpenWiz (shared with DW8: the supported-platforms line only)
  • drivers/index.html in openwizdev/WizSite (shared with DW8 and WD4: the platforms line only)

Relies on: kernel/driver.v1.md

Links

none

Acceptance criteria

  • A platform-faked test (no /proc, as on macOS) fails first for each of the boat.dev, local and template drivers and the kit, then passes
  • On Linux, every existing driver and kit test passes unchanged
  • The kit passes all five checks against each driver on fixtures on both the Linux path and the faked macOS path, in CI
  • The contract, each README and the Drivers page state the supported platforms
  • The pull request carries Jake's one-paste MacBook command, which prints only pass or fail per check
  • Merge gate: merges after the 0.1.0 cut onto main. Whether it also goes onto release-0.1.0 is Jake's call.
  • 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>. A bug gets a failing test first.

Proof

The platform-faked tests red then green, the unchanged Linux suite, and Jake's live 5 of 5 on a real Mac.

Activity

  1. added this to the 0.1.0 milestone on Nov 20, 2026
  2. added
    held
    on Nov 20, 2026
  3. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/2010-macos-drivers

    The J87 planner started this builder directly (Claude Code, Opus 5.5, Medium) when KN25 joined #1365 at revision 13. Review on a green PR goes to Codex, Sol 6.2, Medium; only real-user findings block. Merge is to main after the 0.1.0 cut; whether it also goes onto release-0.1.0 is Jake's call.

  4. added
    ready-for-agent
    and removed
    held
    on Nov 20, 2026
  5. added a commit that references this issue on Nov 20, 2026
  6. added 2 commits that reference this issue on Nov 20, 2026
  7. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    KN25 builder, for Jake's MacBook: a dry probe. It starts no agent, calls no boat command, spends nothing and prints no token, username or home path. It runs in a fresh temp folder and downloads PR #2028's head (f21e815) as a tarball. It prints python3's version, the OS, whether /proc, ps, setsid, pgrep, curl, gh and boat exist, and whether ps -E shows environments. It prints whether the kit loads, and each of the local, boat.dev and template drivers' version answer and whether its schema matches the kit's. Last, a stop probe: the template driver starts a synthetic fake-harness (just a sleep grandchild, no agent) and stops it. It prints pass when the grandchild is gone, once with the grandchild in its own session and once in the turn's process group. Paste all of it into Terminal:

    T=$(mktemp -d) && cat > "$T/probe.sh" <<'EOF'
    H=f21e81573d6839fc37795967f4e3da3ed3cfde8c; T=$1; cd "$T" || exit 1
    say() { echo "$1" | sed -e "s#$HOME#~#g" -e "s#$(id -un)#USER#g" -e "s#$T#TMP#g" | cut -c1-300; }
    say "python3: $(python3 -c 'import sys; print(sys.version.split()[0])' 2>&1 </dev/null)"
    say "os: $(uname -s) $(uname -r) $(uname -m)"
    [ -e /proc/self ] && say "/proc: yes" || say "/proc: no"
    for t in ps setsid pgrep curl gh boat; do command -v $t >/dev/null && say "$t: yes" || say "$t: no"; done
    OPENWIZ_PS_PROBE=1 sleep 30 & P=$!; sleep 1
    ps -E -ww -o command= -p $P 2>/dev/null | grep -q OPENWIZ_PS_PROBE=1 && say "ps -E shows environment: yes" || say "ps -E shows environment: no"
    [ -n "$(ps -o lstart= -p $P 2>/dev/null)" ] && say "ps lstart: yes" || say "ps lstart: no"
    kill $P 2>/dev/null
    curl -fsSL "https://codeload.github.com/openwizdev/OpenWiz/tar.gz/$H" | tar xz --strip-components 1 && say "download ${H:0:7}: ok" || { say "download: fail"; exit 1; }
    python3 -I -c "import runpy; runpy.run_path('kernel/driver-kit/kit.py')" </dev/null >/dev/null 2>"$T/err" && say "kit loads: yes" || say "kit loads: no: $(tail -1 "$T/err")"
    for d in local boat template; do
      say "$d version: $(OPENWIZ_LOCAL_STATE=$T/s OPENWIZ_BOAT_STATE=$T/s OPENWIZ_TEMPLATE_STATE=$T/s ./adapters/$d/driver version </dev/null 2>&1 | tail -1)"
      ./adapters/$d/driver schema </dev/null 2>/dev/null | python3 -I -c 'import json,sys; sys.exit(json.load(sys.stdin) != json.load(open("kernel/driver-kit/schema.json")))' && say "$d schema: same as the kit's" || say "$d schema: differs or failed"
    done
    REQ='{"repository":"example/site","ticket":7,"skill":"build-ticket","harness":"fake-harness","model":"Synthetic 1"}'
    for mode in session group; do
      rm -f "$T/turns"; E="OPENWIZ_TEMPLATE_STATE=$T/s-$mode FAKE_TURNS=$T/turns PATH=$T/adapters/template/fixtures:$PATH"
      [ $mode = group ] && E="$E FAKE_SAME_GROUP=1 FAKE_CLEAN=1"
      out=$(echo "$REQ" | env $E ./adapters/template/driver start 2>&1)
      case "$out" in *'"run"'*) ;; *) say "stop probe ($mode): fail: start said $out"; continue;; esac
      sleep 2; child=$(awk '{print $2}' "$T/turns" 2>/dev/null | head -1)
      stop=$(echo "$out" | env $E ./adapters/template/driver stop 2>&1)
      sleep 1
      if [ -n "$child" ] && ! ps -p "$child" >/dev/null 2>&1; then say "stop probe ($mode): pass"; else say "stop probe ($mode): fail: stop said $stop"; kill "$child" 2>/dev/null; fi
    done
    say "done: no agent was started; delete TMP when you like"
    EOF
    bash "$T/probe.sh" "$T"

    On Linux it prints every line as expected, including stop probe (session): pass and stop probe (group): pass. On main today, a Mac would fail the stop probes, because the drivers there need /proc and prctl.

    ETA to a green PR: #2028 is open at f21e815. The changelog, owned-paths and privacy checks pass; lint, rust and release are running. The only earlier CI failure was the comment check, now fixed. The touched driver and kit suites pass locally, Linux and faked macOS, on Python 3.11 and 3.9. Expect CI green by about 21:15Z. The full five-check boat.dev command (it creates a throwaway private repository and runs a real boat agent) is in #2028's description, pinned to that head.

  8. added 3 commits that reference this issue on Nov 20, 2026
  9. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

  10. jparker2006 commented on Nov 21, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: foreign merge verified: openwizdev/WizSite#122 merged at head a52f995d4f3206e3a8c92c4afc17b092fd73292e as 50d705ed34a657322298786a932fa9b92efd29fd (re-check APPROVE openwizdev/WizSite#122 (comment)). The Drivers page now states the platforms: Linux and macOS for the test kit, the template, and the boat.dev and own-computer drivers, with a supported Python.

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