Skip to content

0.1.2 CS1: the GitHub Codespaces driver passes the kit on fixtures #2423

Open

Description

@jparker2006

Parent

Ticket CS1 of spec #2421 (0.1.2): the GitHub Codespaces driver. Size: L.

What to build

A driver at adapters/codespaces/, copied from adapters/template/ and built on driver v1 (kernel/driver.v1.md): version, schema, start, wake and stop, exactly as the spec's Implementation Decisions say. Read adapters/boat/ first: its locking, save-before-start, local turn supervisor, pinned WizSkills install and fixed-words errors are the prior art to copy.

  • Start: the pre-checks (the codespace scope; one of the harness's secret names listed by gh api /user/codespaces/secrets, with repository in that secret's repository list), before any create. Then gh codespace create -R <repository> --default-permissions --display-name openwiz-<ticket> --idle-timeout 240m --retention-period 72h (plus -m $OPENWIZ_CODESPACES_MACHINE when set), the pinned install over one gh codespace ssh, and the first turn as a local gh codespace ssh -c <name> -- <harness command> under the driver's supervisor. Claude: claude -p --session-id <uuid>; Codex: codex exec --json, saving its thread id. If a start step fails, stop the new codespace before refusing.
  • Wake: refused after a driver stop or for an unknown run; nothing while the last turn runs; otherwise a new ssh turn with claude -p --resume <uuid> or codex exec resume <id>.
  • Stop: ends every local process the turns started, then gh codespace stop -c <name>; a second stop answers again.
  • Never a key (N1 to N3): the driver reads secret names and repository lists only. No command it sends through ssh contains $NAME, ${NAME}, env, printenv or set for a secret name. gh's own text never reaches an answer.
  • Effort (J318, spec 0.1.2 spec: Effort everywhere: every driver passes the user's effort, or says plainly it can't #2471): stack on EF1 (0.1.2 EF1: driver v1's optional effort start field, its can entry and the can't-set-effort statement (the contract) #2558): branch from its approved head as a draft pull request that names that commit, copy its schema.json byte for byte, and merge after it. Then either take the user's effort, with effort in version's can and the value passed to the harness's exact documented flag or setting (Codex: -c model_reasoning_effort=<effort>; Claude Code: its documented effort setting, if any), with a fixture test showing the value reach the fake harness; or declare none: no effort in can, a README Effort: line, and a start carrying effort refused with D3 next exactly this host can't set effort: remove the effort for this harness in your Models table or Roster to run it at the host's default. If one harness can take it and the other can't, list effort and refuse it for that harness with the same next. Never a silent default. Build the harness flags in one function.
  • Check each gh codespace flag against the gh manual before relying on it. If one of start, wake or stop can't work as the spec says, stop and ask on this ticket.

Fixtures. fixtures/bin/gh, a fake gh (auth status, api /user/codespaces/secrets..., codespace create, ssh, stop, list) whose ssh runs a fake harness locally, so the kit runs in CI.

Shared lines, one row each: the test line in .github/workflows/ci.yml, the entry adapters/codespaces/** in tools/open-import/paths.json, and codespaces in DRIVERS in tools/release/build_products.py.

The README is CS2's; don't write it.

Owned paths

  • adapters/codespaces/driver (new)
  • adapters/codespaces/schema.json (new)
  • adapters/codespaces/test_driver.py (new)
  • adapters/codespaces/fixtures/ (new)
  • adapters/codespaces/evidence/ (new)
  • .github/workflows/ci.yml (shared: this driver's one test line)
  • tools/open-import/paths.json (shared: this driver's one entry)
  • tools/release/build_products.py (shared: this driver's name in DRIVERS)

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

Links

Acceptance criteria

  • The kit fails against the copied template first (red log in evidence/), then passes all five checks on fixtures in CI
  • Tests prove: the pre-checks refuse before any codespace create; a wake after stop is refused; a wake after GitHub stopped the codespace resumes the same session; no ssh command names or expands a secret; gh's stderr never reaches an answer
  • Effort: a given effort reaches the fake harness's argv or env in a fixture test, or is refused with the exact D3 next above; never a silent default
  • Merge gate: merges only after its live-check ticket records 5 of 5 on a real codespace at this pull request's approved head (driver contract section 3)

Proof

P1 (driver): test_driver.py and the kit on fixtures, red first, and the review. The live 5 of 5 is CS3.

Activity

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

    @jparker2006
    MemberAuthor

    launch-fleet: started

    Started by hand by the spec #2421 lead, 2026-11-22. Checks read just now: open; labelled ready-for-agent only; no claim, builder, branch or pull request; no blockers; no open ticket or pull request that can run at the same time owns its paths (#2423 and #2430 own disjoint files under adapters/codespaces/); plan approval 7087154545 (revision 1) is current. Builder: Claude Code Opus 5.5, medium.

  4. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: working
    harness: Claude Code
    model: Opus 5.5 default effort
    skills: build-ticket@0.2.2
    step: Stacked on EF1 and took effort (Claude --effort, Codex model_reasoning_effort) red first; pushed and waiting on CI.
    time: 2026-11-23T01:28:08Z

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

    @jparker2006
    MemberAuthor

    Plan change, held for revision 2 (J318, effort everywhere, spec #2471): this ticket gains an effort criterion and a native blocker on EF1 (#2558). Stack on #2558's approved head as a draft that names that commit, copy its schema.json byte for byte, and either take the user's effort (effort in can, the value reaching the harness's exact flag, with a fixture test) or refuse it with the exact D3 next the ticket gives. Never a silent default. The held label stops only new starts; the running builder keeps going.

  8. added
    ready-for-agent
    on Nov 22, 2026
  9. added 2 commits that reference this issue on Nov 22, 2026
  10. removed
    held
    on Nov 22, 2026
  11. 7 remaining items

  12. added 3 commits that reference this issue on Nov 23, 2026
  13. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

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

    adapters/codespaces/README.md

    Reason: main's adapters/cloudroom/test_driver.py (test_every_drivers_readme_names_its_platforms) requires each driver folder to ship a README with a **Platforms:** line, so the driver and its README must land together. #2559 merges the approved README branch of #2510 (approved at fa068e9) and then edits that README only to add the Platforms line and to match the driver's final behaviour (the #2644 stop wording, the basicLinux32gb default, the turn-began refusal, effort). #2559 then closes #2430 too, and #2510 closes unmerged with a pointer. The README changes get the re-check.

  14. added 2 commits that reference this issue on Nov 23, 2026
  15. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: look: builder routing unresolved during webhook check; private assignment evidence is required before reconciliation.

  16. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    Merge blocker for #2559. The existing merge at 54d6a8f82d8ebafaaf80f803f110308cb2529c20 passed all 21 Codespaces fixture tests locally. A trial merge with main at 50cd46f00f307c58da2388137852409b21c5e284 combines cleanly, but the Codespaces suite fails against the driver kit added by #2700.

    The kit reads only the first backticked setting in the driver's Effort: line unless the README supplies a per-harness table. In adapters/codespaces/README.md, that first setting is Claude's --effort <effort>. For Codex, the kit looks for that flag instead of -c model_reasoning_effort=<effort> and reports effort: medium never reached a process the run started. A local fixture-only probe accounted for the kit's new expected output and made the fake SSH harness visible to its sampler. Both Claude cases then passed, and Codex still failed.

    The required edit outside #2423's owned paths is a per-harness effort table in adapters/codespaces/README.md naming the two existing flags. Please assign that edit or authorize it for this round before queueing #2559. The trial merge and diagnostic edits were local.

  17. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

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

    adapters/codespaces/README.md in openwizdev/OpenWiz

    Scope: only a per-harness effort table that names the two flags the driver already passes (Claude --effort <effort>, Codex -c model_reasoning_effort=<effort>), in the form the driver kit from #2700 reads, so the kit's effort check samples the right flag for each harness. No other change to that file.

  18. added 3 commits that reference this issue on Nov 24, 2026
  19. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    agent: reviewer
    state: done
    harness: Claude Code
    model: Opus 5.5 Medium
    skills: review-ticket@0.4.0
    step: APPROVE posted at e39b880
    time: 2026-11-24T14:27:00Z
    pr: #2559

  20. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    Planner note: #2559 is approved but conflicts with main again (another driver PR landed). A fresh Claude Opus 5.5 Medium builder in its own boat.dev sandbox merges main (a merge commit, noreply identity, full fetch of main), gets a fresh full CI run and posts the hand-back; then a merge-only re-check.

  21. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: working
    harness: Claude Code
    model: Opus 5.5 medium effort
    skills: build-ticket@0.3.0
    step: Merging main into the approved Codespaces driver branch and rerunning its checks.
    time: 2026-11-24T15:54:56Z

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